posted Nov 22, 2009 4:17 PM by Jerome Boismartel
[
updated Nov 23, 2009 4:50 AM
]
Ubuntu 9.10 and Lotus Notes 8.5.x do not mix well together. You will get all the menu and buttons, but nothing inside the window. The issue has been identified and Ubuntu comminuty is waiting for a fix from IBM. In the meantime, the work around is to use a set of library files to patch the broken ones. In the attachments section of this page, you will find an archive containing 4 library files. As root, copy them to notes installation directory as follow : sudo cp libgtk-x11-2.0.so.0 /opt/ibm/lotus/notes/libgtk-x11-2.0.so.0 sudo cp libgdk-x11-2.0.so.0 /opt/ibm/lotus/notes/libgdk-x11-2.0.so.0 sudo cp libgdk_pixbuf-2.0.so.0 /opt/ibm/lotus/notes/libgdk_pixbuf-2.0.so.0 sudo cp libgdk_pixbuf_xlib-2.0.so.0 /opt/ibm/lotus/notes/libgdk_pixbuf_xlib-2.0.so.0 This should work with 32bits and 64bits Ubuntu 9.10 installation. Thanks to JKLocke and the IBM Lotus Notes forum for this fix ( http://jklocke.com/?p=194 ) For best display result, I recommand DejaVu font : ;) |
posted Oct 28, 2009 4:14 AM by Jerome Boismartel
Below are some few tips you might find usefull... Changing default capture type image file : defaults write com.apple.screencapture type jpg Changing default location to save captured images : defaults write com.apple.screencapture location /my/new/path/ Showing hidden files : defaults write com.apple.Finder AppleShowAllFiles YES ( followed by killall Finder to refresh current opened windows )
|
posted Oct 20, 2009 5:45 AM by Jerome Boismartel
[
updated Nov 7, 2009 5:04 PM
]
InfoClock was working nicely under Python 2.5 with almost any version of gdata. Now that I migrated it to python 2.6, I got the following error messages : jboismar@jboismar-work:~/MyDocuments/python/infoclock$ python InfoClock.py /var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Tuesday October 20 08:15:33 2009 Updating Weather [DEBUG] Text is [ Cloudy ] [DEBUG] Imagenumber is na [DEBUG] Text is [ Partly Cloudy ] [DEBUG] Imagenumber is 30 [DEBUG] Text is [ Rain ] [DEBUG] Imagenumber is 12 Tuesday October 20 08:15:33 2009 Weather is updated Tuesday October 20 08:15:33 2009 Updating Google info /var/lib/python-support/python2.6/atom/http.py:225: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead. ssl = socket.ssl(p_sock, None, None) /var/lib/python-support/python2.6/atom/http.py:226: DeprecationWarning: FakeSocket is deprecated, and won't be in 3.x. Use the result of ssl.wrap_socket() directly instead. fake_sock = httplib.FakeSocket(p_sock, ssl) Traceback (most recent call last): File "InfoClock.py", line 471, in UpdateInfo self.UpdateGoogle() File "InfoClock.py", line 583, in UpdateGoogle myGoogleCalendar = GoogleCalendar('jerome.boismartel', 'chiasen02!') File "InfoClock.py", line 47, in __init__ self.cal_client.ProgrammaticLogin() File "/var/lib/python-support/python2.6/gdata/service.py", line 748, in ProgrammaticLogin headers={'Content-Type':'application/x-www-form-urlencoded'}) File "/var/lib/python-support/python2.6/atom/http.py", line 135, in request connection.endheaders() File "/usr/lib/python2.6/httplib.py", line 868, in endheaders self._send_output() File "/usr/lib/python2.6/httplib.py", line 740, in _send_output self.send(msg) File "/usr/lib/python2.6/httplib.py", line 719, in send self.sock.sendall(str) AttributeError: sendall
InfoClock was unable to get any information out of Google Calendar Services. Thanks to a post by cwrazi ( http://www.google.com/support/forum/p/apps-apis/thread?tid=1e3f3df6de9a8efe&hl=en ), I found out that 2 files in gdata are using deprecated functions in Python 2.6 and need to be corrected : http.py and cryptomath.py. If you click on the link you will see what needs to be done. On my Ubuntu 9.04 installation, I corrected the following 2 files : /var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py /var/lib/python-support/python2.6/atom/http.py
I've enclosed the 2 files so you can simply copy them to the right location...
Why everything breaks when we upgrade !!!! this is so frustrating !
|
posted Oct 20, 2009 4:51 AM by Jerome Boismartel
Here is a basic guide to install the latest gdata client for Python 2.6 under Ubuntu 9.04 ( actually this guide can be followed on almost all distributions ).
Go to gdata client website : http://code.google.com/p/gdata-python-client/downloads/list Download the package you would like to use. I used 2.0.3 as an exemple.
Once downloaded, open up a terminal and go to your download directory. From there, type tar -zxvf gdata-2.0.3.tar.gz. This will extract the files. Change directory to gdata-2.0.3 Type sudo ./setup.py install
|
posted Oct 20, 2009 4:40 AM by Jerome Boismartel
I recently upgraded my workstation with Ubuntu 9.04. I was very confused with the wx modules for python. When I tried to launch InfoClock.py, python was responding with :
Traceback (most recent call last): File "InfoClock.py", line 10, in <module> import wx ImportError: No module named wx
So I headed to Synaptic and then I got even more confused.... After googling around, here is the package once needs to use wx with Python 2.6 under Ubuntu 9.04 : python-wxgtk2.8 So you can either do a sudo apt-get install python-wxgtk2.8 OR use Synaptic and search for that package.
|
posted Oct 15, 2009 7:31 AM by Jerome Boismartel
After figthing to get a clean install of java and of java plugin for firefox under Ubuntu 9.04, I found this one liner : sudo aptitude install sun-java6-jre sun-java6-plugin
After I did that, Java was enabled and the java plugin worked under firefox 3.0.14.
Hope this will save you from getting the same headache I had....
|
posted Oct 8, 2009 4:39 AM by Jerome Boismartel
I'm working on a new version of InfoClock but having some difficulties with Python, wx and gdata compatibility. So here are the version I tested that work : Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) - wx-2.8-gtk2-unicode - python-gdata 1.0.9-1ubuntu1
I'll update this post as I test new version.
|
posted Jan 29, 2009 9:24 AM by Jerome Boismartel
Please note that the following articles is a copy. You can view the original at http://www.associatedcontent.com/article/878633/how_to_change_a_photograph_into_a_sketch_pg2.html?cat=2
OH HAIHave you ever seen a commercial in which the producers had taken a video of real people, and 'cartoonified' them? Or, have you ever read the New York Times and seen the little 'cartoonified' images of the authors? This is a really sweet technique, in which a real photograph or video is turned into a 'sketch' style image. For most users, the closest they will ever get to this is by using the simple 'cartoon' filter available in many image editing programs. However, for people willing to work a little harder, much better 'cartoonified' images be created from photographs. Take a look at the before and after images on the left of this article for an example of how swell this effect is, if done properly. Here, I will walk you through the steps necessary to create such an image, using the popular image editing program, GIMP. If you do not have GIMP, consider downloading it online at www.gimp.org. It is a wonderful image editing program, very similar to Photoshop, except that it is freeware (free)!
For our first cartoonified image, choose a standard portrait-style photograph. Ensure that it has balanced lighting and that it is clear (no blurriness or excess 'noise' to distort it). Open the photo file in GIMP, and adjust the contrast by clicking through the following path (I'll be using this format for most of the instructions) Layer>Colors>Brightness/Contrast (This step is not necessary in newer version of GIMP). Next, desaturate the image you are editing; Colors>Desaturate.
Open up the layer(s) panel and duplicate the layer (Right Click on image>Layer>Duplicate). Take the duplicated layer, and invert it (Colors>Invert), then adjust the blending mode by changing it to 'dodge' (Ctrl+L to bring up layer window, Mode>Dodge). After this step, you'll have a very faint looking image, nothing like the cartoon or sketch-style you are expecting. Hang in there, this is almost complete!
Finally, go to filters and add a Gaussian blur effect (Filters>Blur>Gaussian Blur). You should now see your image turned into a wonderful sketch-stylized image. If not, carefully reopen the orig inal image, and follow the steps again-it is important not to skip any! Take a look at the before and after images on the left of this article for an example of how swell this effect is, if done properly.
If you like how your image turned out, save it as a .png (for more detail) or .jpg (for conserving computer space). Be careful to save the entire image, and not just one layer. Otherwise, you will ruin the effect, and have something totally different. Try different photos, and see which ones come out better. Have fun!
|
posted Oct 12, 2008 6:27 PM by Jerome Boismartel
[
updated Oct 14, 2008 6:54 PM
]
I actually coded that LAMP app 2 years ago. It eases the pain of managing ssh keys in an entreprise. Let's say you have 167 unix servers and you have to manage access for users and batch scripts accross that environment. It can get very confusing and difficult. With Skm (that's the app's name) you'll be able to : - Manage servers, accounts and keys - Deploy ssh keys - Search where a user has access
|
posted Oct 12, 2008 6:23 PM by Jerome Boismartel
This is my first app in wx python. I loved programming with it. If I find time, I'll probably write again with it. InfoClock is supposed to convert your laptop or desktop into an alarm clock. It displays time and date and wakes you up with a song of your choice. It also displays your google calendar events and the weather for the next 3 days.
|
|