If you get this error : Mysql::Error: query: not connected: or one just like it, it’s because you need an older DLL.. Which I just happen to have found, because I needed to fix this problem too!
libmySQL.dll
Enjoy.
If you get this error : Mysql::Error: query: not connected: or one just like it, it’s because you need an older DLL.. Which I just happen to have found, because I needed to fix this problem too!
libmySQL.dll
Enjoy.
It was surprisingly good. I didn’t feel very good tonight – slight headache, slight tingle in the throat. I wasn’t going to stay for my class, just help teach and then go home, get tea, get sleep.. But Continue reading »
So tonight, I went to train 35 minutes away from home, at the dojo where my sensei’s sensei teaches. Warmups / stretches, kicking drills, calisthenics, sparring, then fighting drills.
Sensei’s sensei has a son who is now 48. Now — I am fast by normal people’s standards. This guy is really fast by my standards. He also has a really positive energy – very friendly eyes, a great disposition.. And he can dislocate your jaw before you can blink or think “oh sh..!”, so don’t piss him off.
Anyway, as much as shihan (sensei’s sensei) is amazing, tall, skilled, talented, dedicated to his art, as much his son inherited many of the traits, has been training under his dad a long time, and has learned a lot from a ton of sparring and tournaments and just .. being there.
So now he imparts his wisdom and skills, and it’s WONDERFUL to watch him in action, and learn from him, and listen to his way of explaining things. Just like in Dune, “A process cannot be understood by stopping it”, he explains action and reaction within the context of a moving match, which is AWESOME.
I breathe hard when I’m in this class. It’s a bit of a work-out, and excellent cardio.
Oh ! So shihan’s son hit me twice, and I managed to shift out of the way of the third strike, like I felt his movement and reacted. It was sweet. Now I only need to make that happen ALL THE TIME.
I had a good time in the dojo tonight. Managed to bring a kid back from the verge of tears to feeling good and performing kata with solid focus and intent.. And then good sparring. Kid’s 6, by the way.
My class wasn’t that good, though I got a compliment on my push-ups from sensei. Went through my kicks.. Then sparred..
I fleetingly get a grasp of efficient body movement, and then it disappears, and then I have to train a lot more to make it happen again, and then more again, etc etc, until I can make it happen effortlessly.
I really, really love teaching martial arts. There’s something about the student-teacher relationship, in the study of something which involves both body and mind – and you can’t lie or fake your way through that. It’s all about the truth, and being naked and exposed. It forces you to examine yourself and your relationship with others.
So, I play weiqi (known as the game of go, but I prefer using the chinese name).
There are some SGF parsers out there for Ruby, but I wanted to write my own – the other ones didn’t seem comprehensive enough, didn’t seem Ruby-like enough in their objectifiying the women data.
My original goal was twofold: write a script to rename all the SGF files in my collection so they can be easily parsed later, and … Learn more Ruby!
Here is the github link: http://github.com/Trevoke/SGFParser
It’s a work in progress. Right now it parses the SGF file properly, but the user has a fair amount of work to do to use the data.. Which, maybe, is the way it needs to be. But I’m gonna try to follow the principle of least surprise to the bitter end!
http://www.spacevatican.org/2008/7/18/parametrised-to-the-max
Just a link:
http://www.databaseapplications.com.au/authentication.jsp
Something for me to read and digest later when I have time.
This is known to work on ASE 12.5.1 – you’re welcome to let me know what else worked, I am particularly curious about later versions of Sybase ASE, such as 15.
Prerequisites:
Put the Sybase files in C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt .
Copy all the DLLs in %SYBASE%\OCS-12_5\dll and put them in %RUBY%\bin (if you are not familiar with Windows notation, this simply means to go where you installed each of Sybase and Ruby and then go to the proper subdirectory). Why all of them? Well, because I’m too lazy to know which ones we -do- need.
Set some environment variables, just to make sure Sybase works fine:
Right-click on My Computer, Properties > Advanced > Environment Variables
If you have full permissions, go ahead and add those as SYSTEM VARIABLES.. Otherwise, well, only for your user (but aren’t you doing this on a server?).
SYBASE=c:\sybase (where you installed Sybase).
JDBC_HOME=c:\sybase\jConnect-6_0 (again, where you installed Sybase, then the subdirectory).
CLASSPATH=%JDBC_HOME%\classes\jconn3.jar (just make sure that’s the right number).
If you’re going to create a user on your Sybase server for specific Rails usage, it needs to have SELECT permissions on the following : sysobjects, syscolumns, systypes, syscomments.
Edit your %SYBASE%\ini\sql.ini and add the information for your server in there.
Next.. In Rails, the magic will look like this in database.yml :
production: adapter: sybase database: <YOUR_DB_HERE> username: <USERNAME> password: <PASSWORD> host: <NAME_GIVEN_IN_SQL_INI_HERE>
And that should be pretty much it!
Don’t forget to edit your model if you’re working with legacy data:
class Patient < ActiveRecord::Base set_table_name "some_odd_name" set_primary_key "some_primary_key_column" end
My answer : get Python! Someone wrote a handy program in Python that helps you out:
http://ntlmaps.sourceforge.net/
1) Download
2) change the configuration file (most likely just enter your username and password)
3) double-click on runserver.bat
4) make sure one of your environmental variables is http_proxy = http://localhost:5865 and the other one ftp_proxy = ftp://localhost:5865
5) use rubygems
Of course, if someone were to rewrite it in Ruby..
Short post to give a link to the HAML plugin for Netbeans:
http://mediacast.sun.com/details.jsp?id=3759
http://mediacast.sun.com/users/~tor/media/org-netbeans-modules-haml.nbm/details
Download and install
http://wiki.netbeans.org/FaqPluginInstall
And I get to test my wordpress-livejournal-twitter-facebook crossposting mania!