• Home
  • Log
  • Projects
  • Gallery
  • About
  • Contact

Compile GD with JPEG Support

November 3rd, 2006

In the wee hours of the morning as I work on compiling random bits and pieces here and there I stumbled across a problem when attempting to compile gd and have it recognize my jpeg-6b libraries. I thought it worth noting that gd is specifically looking for ‘libjpeg.so’, which on my particular system doesn’t exist, instead I have a copy of ‘libjpeg.so.62′ which I simply created a softlink to the file and ran ‘configure’ again.

ln -s /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so

Don’t forget to set your CPPFLAGS environment variable to include your jpeg-6b header files!!

Once again all is right with the world.

Posted in Programming | No Comments »


Firefox 2.0 on Ubuntu AMD64

October 24th, 2006

Well now that I have all the tag-lines out of the way. I figured I would just share my simple help for installing the new Firefox 2.0 (released today) for Ubuntu … well you already know the rest.

To begin at the beginning. You need to create your .mozconfig file. Your best bet is just put this in your home directory. You can scrutinize the following, or just accept it as is, but this is my .mozconfig file.

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-static
ac_cv_visibility_pragma=no
ac_add_options –enable-optimize
ac_add_options –disable-debug
ac_add_options –enable-static
ac_add_options –disable-shared
ac_add_options –disable-tests
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options –enable-application=browser
ac_add_options –enable-optimize=”-march=k8 -O2 -funroll-loops -ffast-math -fschedule-insns2 -fexpensive-optimizations”

The next item of business is of course to go download a copy of the new Firefox source (yes it’s early enough that we are going to have to compile it, if you haven’t already guessed that).

I don’t want to direct anyone to any particular FTP as apparently there has been some concern about this lately about bandwidth. Simply find a copy for yourself and extract it into your favorite build directory.

You are only going to need to write two more commands after you’ve finished extracting the files (from inside the mozilla directory in your extraction folder).

make -f client.mk build
and
sudo make -f client.mk install

Enjoy!

Posted in Programming, Misc | No Comments »


Quieting Ruby’s SOAP warnings

August 18th, 2006

At work lately I’ve been developing a SOAP interface from a third party vendor we are currently using. In the process I’ve decided to use Ruby to do this. I need to learn more Ruby and I thought it would be easier to use than the last time I worked with Python and SOAP.

Thus far everything is working great, the only annoyance I have is that I keep getting this as output from my connection:

peer certificate won’t be verified in this SSL session
.
I know this is because I’m connecting to an HTTPS URL but there must be someway to quiet this error message down, because it’s really becoming irritating.

Some quick Googling turnes up this command:

https = Net::HTTP.new(URL, 443)
https.use_ssl = true

https.verify_mode = OpenSSL::SSL::VERIFY_NONE

I included the first two lines to give context on how this was used and how it doesn’t precisely carry over to the SOAP module becuase it isn’t an option inherited by the SOAP object.

However I figured that the SOAP module must be creating an HTTP connection in there somewhere. So I decided to quickly jump into the source code and see what I can find. I located a single line in the source code for creating the HTTP object similar to how it’s used above.

/soap/netHttpClient.rb: http = Net::HTTP::Proxy(proxy_host, proxy_port).new(url.host, url.port)

After quickly firing up my vi and adding the line:

http.verify_mode = OpenSSL::SSL::VERIFY_NONE

Even though it isn’t specifically creating a HTTPS connection here it ended up silencing the warnings. So I’ll just leave my code this way and enjoy it being much, much quieter.

Posted in Programming | No Comments »


Samsung T509 Unlocking and other Codes

August 17th, 2006

Well still waiting for my laptop to be fixed so I never got around to posting my items from SIGGRAPH. In the interrum I’ll share all that I’ve discovered about the T509.

Lets start at the beginning. How to unlock the T509 and let you roam free in the world using any SIM card you wish.

  • *7465625*638*00000000*00000000#
  • #7465625*638*00000000#
  • *#7465625#

Now lets go over what these mean, the first code selects the network lock, the second code deactivates the lock and the final code displays the lock status and should inform you that all of your locks are currently undone.

So now you are free to roam about the world using any SIM card you choose. Of course some services like T-Zones or equivalent will not allow you to use them once your phone has been unlocked. These may be circumvented simply by changing some settings on your phone or re-activating the network lock.

I’ve also found this code to be useful:

  • *#8999*8378#

This is the hardware test mode which allows you to verify speaker and microphone functionality, as well as the camera, etc. Not to mention there also is this very handy feature which allows you to increase the speaker volume on your phone. So for those of you complaining that the t509 is too quite, consider this your solution. Of course I’m not going to tell you what settings you should change it to because I haven’t played with it myself, the onerous is on you to do it yourself or do a google search to find someone who has.

I have verified that all of these codes do in fact work on the t509 at least with whichever software revision I have on my phone. I’ll look that up. I also have a whole slew of other codes but which I have not yet tested, I’ll see if I have time this weekend to evaluate them and update this post.

Lastly I’ll cover (until I verify a few codes) how to create your own ringtones for transfer to the phone via BlueTooth. Unfortunately it requires you to ‘buy’ a piece of software. Quicktime Pro to be exact. After installation of QTPro you simply open the MP3 sample you would like to use and follow these instructions:

  • File-> Export
  • Export: Movie to 3G
  • Then click the Options button
  • Below the File Format there should be a box which contains several formats, choose Audio
  • Audio Format: AAC LC (Music)
  • Choose the rest of your settings as you wish (Mono is all the phone can handle BTW)
  • Click OK
  • Save the file

After that transfer the 3gp file over to your phone using BlueTooth and you will finally have the option to set the ringer as a ringtone.

Enjoy the phone.

Posted in Programming, Misc | 10 Comments »


« Previous Entries

    You are currently browsing the archives for the Programming category.

  • Pages

    • About
  • Archives

    • November 2007
    • November 2006
    • October 2006
    • August 2006
    • July 2006
    • June 2006
    • April 2006
    • March 2006
    • February 2006
    • January 2006
    • December 2005
    • October 2005
    • May 2005
  • Categories

    • Uncategorized (1)
    • Music (1)
    • Graphics (2)
    • Programming (7)
    • Misc (15)
    • Travel (3)
    • Linux (2)
 Use OpenOffice.org

Powered by WordPress Entries (RSS)
and Comments (RSS). 17 queries. 0.309 seconds.