February 2012
2 posts
Looks like pron industry could increase popularity of sound industry xD
KASIA...
– http://www.youtube.com/watch?v=ZDA4UkGLfUM
Set windows hardware time to UTC
If you dual booting between Mac / Linux and Windons, you’re noticed that your time always fucked up. To fix that, you should set Windows OS to treat BIOS time as UTC. And here is how to do that:
Open Notepad
Paste this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
Save as...
January 2012
1 post
4 tags
WordSquared bot
Looks like i wrote a good enough bot for http://wordsquared.com/
Version 0.1b at youtube: http://www.youtube.com/watch?v=NilCjtRIvng
It was more laggy, than current :)
As below log shows, its completing words with 2-4w per 1s, but this affected only by my current internet connection.
Later i’ll move it to dedicated server in hetzner.de to test European’s speed.
P.S. from 3k...
November 2011
4 posts
3 tags
How to Run SSD's TRIM on a Mac
To force cleaning of unused blocks, boot in Single-User Mode:
Chameleon's flag: -s
Original mac: Hold ⌘+s
When you see command prompt, write this:
fsck -fy && mount -uw / && exit
After process finished, your Mac will be booted with TRIMed blocks ;)
October 2011
5 posts
1 tag
Bug with Chameleon, affects performance of nVidia...
Found that newest Chameleon(that support FaceTime fix) lowers performance of GTX 470GT 1280 (i think all nvidia’s) to about 20% of total.
For example, My normal Minecraft’s FPS around 300, with newest Chameleon i got about 34.
Fix
Just add to Boot Flags in org.chameleon.Boot.plist: SkipFTFix=Yes
2 tags
Playing with Ruby + Processing + Audio
Don’t really know, what i wrote… but this thing can react on audio beats ))) and you can specify channels to visualize(circle).
Controls:
“a”, “s” — sets minimum & maximum samples to display as circle
“d” — output current min & max
“x” — exit xD
And don’t forget to put sound.mp3 near .rb file
You need...
September 2011
12 posts
Transfering mysql database from another server to...
Very often i’m in need of moving external database to my own pc, bored of ssh + mysqldump + tar -zcf + scp + mysql < file
And here goes, oneliner:
ssh user@server 'mysqldump -uUSER -pPASSWORD DATABASE_NAME | gzip' | gunzip | mysql5 -uUSER -pPASSWORD DATABASE_NAME
Samsung ISN'T copying Apple!!! Trust me!
There goes just 2 images, why Samsung is 100% different from Apple.
2 tags
Power of Zen Coding
I found interest plugin for most IDEs (and for textmate too), named Zen Coding.
It lets you take advantage of writing html as css selectors.
As example:
a.no-trans[href="#"]>img.bordered
will be converted to
<a class="no-trans" href="#"><img class="bordered" src="" alt="" /></a>
And, if you wish something harder… looks at...
Anonymous asked: Why are you writing a bot for Dofus?
I'm not like, OMFG STOP BOTTIN MY PRECIOUS GAYME I'm just genuinely curious D:
I'm not like, OMFG STOP BOTTIN MY PRECIOUS GAYME I'm just genuinely curious D:
Anonymous asked: share
mineshaft82 asked: I love your site!!!! I am currently trying to teach myself Ruby at the moment! Any tips? How would i get started doing GUI with Ruby???
Anonymous asked: why you hacked vbulletin site?
Anonymous asked: where is the forum??
Anonymous asked: nice hacking!!!
Anonymous asked: Речь идет о 1м дофусе, или о 2м?
Писал много под первый, правда давно это было.
С интересом взглянул бы на распаковку/расшифровку карт - ибо на тот момент не осилил.
kcop@mail.ru
ICQ 48313937
Писал много под первый, правда давно это было.
С интересом взглянул бы на распаковку/расшифровку карт - ибо на тот момент не осилил.
kcop@mail.ru
ICQ 48313937
August 2011
4 posts
1 tag
July 2011
13 posts
2 tags
Harry Potter and Deathly Hallows: Part II
Just watched it:
+ Many effects
+ Many battles
- No idea / sense of scenario at all
Congratz! End of Harry Potter is here!
1 tag
1 tag
3 tags
MovementRequestMessage -> AutoBan for 2 hours
Generally, if you want move using packets, u will notice, that without MovementCompleteMessage, after re-login, you’ll be teleported back to start position.
And 2nd “thing”, after MovementRequestMessage, without sending MovementCompleteMessage, you can’t move anymore xD
Fix… send MovementCompleteMessage… but if u send it too fast, after 20-30 steps u will be...
3 tags
Dofus first AI… Roaming between wheet :) That later it will farm…
3 tags
Ruby & Binary data... My way of parsing:
Wrote class, that help me reading binary data:
Usage
"\x11\x5f\x14".log # show hexdump
"\x40\x40".readShort # & etc
Code
module NetString
LITTLE_ENDIAN = 1
BIG_ENDIAN = 2
SYS_ENDIAN = ([42].pack('i')[0].ord == 42) ? LITTLE_ENDIAN : BIG_ENDIAN
def endian
#@endian = SYS_ENDIAN if @endian.nil?
@endian = BIG_ENDIAN if @endian.nil?
@endian
end
def endianess=(endian)
...
3 tags
Flickr & Ruby...
Simple ruby script, for downloading flickr’s photosets
Requirements
sudo gem install flickraw mechanize
Usage
ruby flickr.rb
Code
#!/usr/local/rvm/ruby
# encoding: utf-8
require "fileutils"
require "flickraw"
require "mechanize"
m = Mechanize.new
FlickRaw.api_key = "<YOU_API_KEY>"
FlickRaw.shared_secret = "<YOR_API_SECRET>"
photosets = %w{<PHOTOSTREAM_ID>...
3 tags
Oh yeah!
Now it can login, move, and say through console :)
[ INFO] [D2I] Parsing i18n_en.d2i
[ INFO] [D2O] Parsing InfoMessages.d2o
[ INFO] [D2O] Parsing Servers.d2o
[ INFO] [D2O] Parsing ChatChannels.d2o
[ INFO] Connected
[ OK] Authentification successful
[ INFO] Connected
[ OK] Ticket accepted
[ INFO] Position in character selection queue: 1 / 1
[ INFO] Position in character selection queue: 0 /...
1 tag
3 tags
Dofus «login -> game» sequence
Just got it…
def check_connection
recv # receive packets
case @state
when STATE_NOT_CONNECTED
reconnect
when STATE_CONNECTED_TO_LOGIN
@packets.pop do |packet|
case packet
when Com::AnkamaGames::Dofus::Network::Messages::Handshake::ProtocolRequired
if packet.requiredVersion > $config.protocol_build
log("Current protocol build:...
3 tags
YouTube Video Uploader
Wrote script to upload bunch of videos to youtube through YouTube API:
To get developer’s key, visit: http://code.google.com/apis/youtube/dashboard/gwt/index.html
Thanks to kylejginavan@github for this cool gem: YouTube It
Usage:
ruby youtube-it.rb --user <user@gmail.com> --password <password_for_gmail> --key <your_dev_key> *.avi
Before run
gem install youtube_it...
June 2011
5 posts
9 hours of defending vs deface...
Oh… i did it, and i found exploit…
This prove my skills…
2 tags
Unpacking Dofus' d2p files... the source of...
Generally, d2p files looks like splitted archives and each one have some pack of maps in it.
.d2p or PakProtocol2 files
module Com::AnkamaGames::Jerakine::Resources::Protocols::Impl
class PakProtocol2
include Singleton
attr_accessor :indexes, :properties
def self.method_missing meth, *args
instance.send(meth, *args)
end
def initialize
@indexes = {}
...
1 tag
Show ~/Library & hide ~/bin
Show ~/Library & hide ~/bin
> chflags hidden ~/bin
> chflags nohidden ~/Library
May 2011
13 posts
2 tags
Virtual Dedicated Server vs Dedicated Server
Can somebody explain me, what differences in them?
For example if we took http://hetzher.de’s Root Server EQ8 vs any other virtual dedicated server.
For the same price of VDS i can get DS that will be faster, powerfull and i’m still in need to manual install… then… WHAT THE DIFFERENCE?! :D
1 tag
PakProtocol2 + Dofus Bot...
Just some new additions…
Wrote for Ruby class named PakProtocol2 for reading dlm files(maps for dofus).
This means, that i can fetch info about cell, something like… IS MOVABLE??? xD
My visualizer:
And the original dofus screenshot:
As you can see, if you rotate my visualizer by 45° CW, you can find that 3-4 cells(and the bottom one) are same as on screenshot :)
Time to...
1 tag