Archive for the ‘web’ Category

how to disable pingback notifications in wordpress?

Monday, April 5th, 2010

I find pingback notifications to be pretty annoying.

To disable them, simply log as admin and go to /Settings/Discussion and uncheck “Allow link notifications from other blogs (pingbacks and trackbacks.)” in “Default Article Settings” function

sources

Opera: ld.so: object ‘libjvm.so’ from LD_PRELOAD cannot be preloaded: ignored

Friday, October 24th, 2008

Each time I start Opera, I get these messages:

ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
opera: X Shared memory extension is not available. ZPixmap not supported

We will first deal with java msg, then with ZPixmap

java

ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.

It means that java plugin was not found.

  1. make sure you have a java package installed (“apt-cache policy sun-java5-jre” otherwise install it “sudo apt-get install sun-java5-jre“).
  2. once java is installed, make Opera point to your java directory
    1. locate your java directory (usually: /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386)
      if you don’t know your installation directory, first run “sudo updatedb” then “locate jvm.so”.
    2. open Opera, click on Tools/Preferences/Advanced/Content/Java Options/, enter your java installation path (see above) (usually: /usr/lib/jvm/java-1.5.0-sun-1.5.0.16/jre/lib/i386), click on “Validate Java Path” and OK
      an alternative way to do this, is: open opera, type “about:config” in the url bar and look for “Open Dir” entry within “Saved Settings” section. Enter your java installation path in the field and click on save
  3. restart Opera

Error messages should be gone by now.

ZPixmap

After some searching, it looks like a problem on intel driver, which is tool old on ubuntu repository.
A quick fix is to edit xorg.conf file (sudo vi /etc/X11/xorg.conf), and insert the following:

Section "Device"
Identifier "Configured Video Device"
Option "AccelMethod" "XAA" # not EXA

Then logout and login and error should be gone.

sources

  • http://my.opera.com/SolimiaN/blog/2007/05/02/error-ld-so-object-libjvm-so-from-ld-preload-cannot-be-preloaded-ignored
  • http://help.opera.com/Linux/9.60/en/content.html#java
  • http://linux-tipps.blogspot.com/2008/06/new-intel-xorg-driver-released.html
  • http://linux-tipps.blogspot.com/2008/06/operaintel-x-shared-memory-problem.html

opera 9.5 browser: adobe reader not loading

Thursday, August 28th, 2008

With newly released Opera 9.5, I can no longer read pdf files, Opera loads the plugin but keep displaying a blank screen.
In my shell, I have the following error messages:

(acroread:4109): Gdk-WARNING **: GdkWindow 0x240014d unexpectedly destroyed
(acroread:4109): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)’ in cast to `GtkObject’

It looks like a gtk problem to me.
I did not find any matching entry on the web.

turn linksys wrt54g router into access point

Tuesday, August 26th, 2008

I needed to turn my linksys wrt54g into access point, to act as a wireless bridge in order to extend my existing wifi network.

I managed to do it thanks to dd-wrt incredible software. Be aware that by installing dd-wrt firmware, your warantly is no longer valid (in my case it was alreday long overdue), but honestly, it worth the risk given all the functionality it adds and fine tuning you can make. By the way, on linksys official website, they clearly say you cannot do this with their supported firmware => if you really want to do it, you don’t have too many other options… (cf this post on linksys forum: Using WRT54G as a access point)

Here is what I did:

  1. go to dd-wrt website http://www.dd-wrt.com
  2. go to download section and download corresponding firmware. At time of writing, latest available and stable version is v24-sp1, since my router is linksys wrt54g v2 => I needed to get “vintage” version of the software (cf. version table to find yours)
  3. At first I downloaded  the “mega” version of the firmware (cf. http://www.dd-wrt.com/wiki/index.php/What_is_DD-WRT%3F#File_Versions for versions comparison) but it looks like it’s too big for my router (requires 5.3Mo where my router’s firmware ram is 4Mo — cf. http://en.wikipedia.org/wiki/Wrt54g#WRT54G), therefore I’ve downloaded the standard flavour.
  4. Then make a hard reboot of your router (hold reset button on the back for 30 seconds, unplug the power cord while still holding reset button for another 30 seconds, plug back power cord while still holding reset button for an extra 30 seconds. Then leave the router for 10 seconds, and turn it off for 10 seconds, and power it up) http://www.dd-wrt.com/wiki/index.php/Installation#Is_your_router_supported.3F
  5. Then go to your linksys router (http://192.168.1.1 ?), admin/admin being default id/password
  6. Go to the administration panel, firmware upgrade menu, and load your downloaded md5-checked firmware. Warning, in my case, linksys wrt54g v2, every firmware update I tried failed with a red “Update are failed” error message. After my failures, I had to make a hard reboot of the router and directly upgrade the firmware using a wrt54g special version: http://www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v24/Broadcom/Broadcom%20Generic/dd-wrt.v24_mini_wrt54g.bin With this file (mini version), firmware upgrade was sucessful (Thread with guys having the same error: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=181450&sid=f06b73d5d6dd4cc5e7fdf6e2cec96f91)
  7. Once you’ve upgraded your firmware, wait for 5 minutes
  8. make another hard reboot of the router
  9. In my case, I had first to upgrade to an older mini version of the firmware (other versions all failed). Then from this version, I was able to upgrade my router firmware up to v24-sp1 “standard” version (=> repeat the same process: 1. hard reboot, 2. firmware update, 3. hard reboot)
  10. login to the router (root/admin), change username and password (for security)
  11. if your bridge-rooter has the same address as your remote router (let’s say 192.168.1.1 then change its address to a new one, let’s say 192.168.1.2 in Setup/Basic Setup page => save settings (if you changed ip address to a new one, don’t forget to update it in your browser location bar too once you changes have been applied)
  12. go to Wireless/Basic Settings page, and set:
    • “wireless mode” to “Client Bridge”
    • “wireless network mode” to the same value of your remote router
    • idem with “wireless network id”
    • set “Network Configuration” to “bridge”
    • click on “save changes”
  13. go to wireless/wireless security page and replicate entries as in your remote router, save settings
  14. if you have mac-filtering on, don’t forget to add your remote router mac address to the list (run “sudo arp -a” to find it)
  15. go to wireless/advanced settings page and set “authentification type” to “shared key”, save settings
  16. go back to setup/basic setup page, and set both “Gateway” and “Local DNS” to your remote router ip address
  17. you can check “assing wan port to switch” since it won’t be used otherwise
  18. save settings
  19. go to administration/management page, and click on “reboot router”
  20. that’s it! if you cable-connect to your local/bridged router, you should receive dhcp address, from remote router.

sources

WordPress

Tuesday, June 3rd, 2008

If you want to change wordpress from one site to another, it’s not that easy.

  1. export data & structure from old sql db
  2. replace any old starting url (ex: “remydamour.com/wordpress”) with your new url (ex: “remydamour2.com/blog”)
  3. insert the content into mysql
  4. that’s it