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

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 »


Business Objects XI Issues

August 17th, 2006

Okay. I’m going to take the reponsibility to post this because it seems that no one has even posted this error yet. We are currently running Business Objects XI on Linux. We are even doing it on AS3 and not the support AS4. So some unexpected errors will likely crop up now and again. I keep seeing this very odd issue re-appearing and haven’t yet figured out where it is coming from but I’ve figured out how to fix it. So I figure I’ll post it with the hope of helping someone else (and my forgetful self). The errors I’ve seen:

  • Account Information Not Recognized: Server not found or server may be down
  • Failed to get auditing data source name
  • Unable to read the database connection string from the registry

So what I know about the first one. This indicates that the server CMS as they call it isn’t running, typically I think this happens on port 6400. You can verify this is running or not by checking it with netstat. If it isn’t then a portion of the startup script failed to start the CMS. I think this has something to do with the fact that BO is installed with a particular username and that this username is not the one responsible for the startup scripts, that’s roots job.

So to fix this initial issue I’ve tried running the ccm.sh script only to have it tell me everything started when it quite clearly hasn’t. To fix this I’ve run the cmsdbsetup.sh script provided, the purpose of this script is to fix the connection script and get a connection to the database. I have noticed, however, that when it asks for a ‘friendly’ name for the CMS I’ve given a name containing uppercase letters. After getting the error message I’ve subsequently searched for a file with that servername.cms. Only to find it in all lowercase letters.

Intuition tells me to run the script again but this time provide it with a lowercase name. Bingo, it goes through. I have no idea why their script presents me with the ‘correct’ name, the one I provided last time containing the caps but then later ignores this when creating the file. I then choose the ’select datasource’ and provide the correct username and password for the database. This shouldn’t have to be done but alas I do it again.

After this running ccm.sh as the user which BO belongs to starts the cms correctly and we are up and running again. Now I just need to figure out what’s causing this problem in the first place. I hope I’m not going to need to modify their scripts, only because I shouldn’t have to.

Posted in Misc | 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 »


    You are currently browsing the Aetheric.net weblog archives for August, 2006.

  • 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). 15 queries. 0.307 seconds.