Go Vegetarian

Go Vegetarian

Monday, October 15, 2012

How to make the plugin 2.3.1 delicious work again in firefox 16.0.1 on ubuntu 12.0.4 ?

Introduction

You have to change 2 files (install.rdf and overlay.css), restart firefox and reenable the plugin. Then you can use delicious again. Read the remark below (delicious is automatically disabled after a reboot).

1) increase maxVersion

vi ~/.mozilla/firefox/eb1sf09r.default/extensions
/{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}/install.rdf

increase maxVersion

example :
6.*

In this example, it was increased to include de version 6 and upper (16 and upper).

2) disable the awesome integration

a) backup the file overlay.css (in case of)
cp ~/.mozilla/firefox/eb1sf09r.default
/{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}/chrome/skin/overlay.css
~/.mozilla/firefox/eb1sf09r.default
/{2fa4ed95-0317-4c6a-a74c-5f3e3912c1f9}/chrome/skin/overlay.css.orig

b) edit the file overlay.css and comment out the line that includes ybAwesomeBarBindings.xml#ybookmarks-awesomebar-autocomplete-richlistitem

example :

/* Awesomebar component binding ^M
.autocomplete-richlistitem ^M
{^M
        -moz-binding: url(chrome://ybookmarks/content/ybAwesomeBarBindings.xml#ybookmarks-awesomebar-autocomplete-richlistitem) !important;^M
}^M
*/^M
^M

3) restart firefox

4) reenable the plugin

Reenable the plugin  (in tools, addons).

5) Enjoy your plugin d e l i c i o u s again. :-)

Remarks :

-If the plugin is disabled again (after a reboot), this time simply do a touch on install.rdf, restart firefox  and reenable the plugin (in tools, add-ons).

Monday, June 27, 2011

changing the background color of Oracle SQL Developer windows

If you have read the post on Lotus, it is the same kind of solution.
Tools-->Preferences-->Environment
Then apply the Look and Feel "Windows" in place of "Oracle".
I repeat another time, it is at the OS level that the background color of the windows can be configured in this case.

Hope this helps,

-Rudy-

changing the backgroung color of Lotus Notes windows

IBM Lotus Notes 8.5
First open the preferences :
File-->Preferences
The solution is not in Fonts and Colors
You have to apply "the Operating System Theme in Windows and Themes"
And then click on Apply
In others words you configure the theme at the operation system level...

-Rudy-

Thursday, April 09, 2009

MPLayer on OpenSolaris 2008.11

Hi,

I am in my hotel room in Paris and god damn I would like to read a dvd on my laptop...

Totem ? Not working !!!

So what ? Install Windows in Virtual Box ???
This is overkill !

The answer is MPlayer. OK. You have to compile it. But not that difficult.

I followed the procedure described here.
  • Get the packages
root@vegan:~# pfexec pkg install SUNWgcc SUNWgmake IPSgawk SUNWxorg-headers DOWNLOAD PKGS FILES XFER (MB) Completed 12/12 2941/2941 40.67/40.67 PHASE ACTIONS Install Phase 3835/3835 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 12/12 root@vegan:~#
  • Change your path
root@vegan:~# echo $PATH /usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin root@vegan:~# export PATH=/usr/gnu/bin:/opt/csw/gnu:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
  • Download MPLayer
root@vegan:~# wget http://www8.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 --18:20:17-- http://www8.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 => `MPlayer-1.0rc2.tar.bz2' Resolving www8.mplayerhq.hu... 81.91.100.172 Connecting to www8.mplayerhq.hu|81.91.100.172|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9,338,201 (8.9M) [application/x-bzip2] 100%[====================================>] 9,338,201 564.69K/s ETA 00:00 18:20:36 (595.41 KB/s) - `MPlayer-1.0rc2.tar.bz2' saved [9338201/9338201] root@vegan:~#
  • Extract MPLayer and enter the directory
root@vegan:~# tar jxf MPlayer-1.0rc2.tar.bz2 && cd MPlayer-1.0rc2
  • configure the software for your particular platform
root@vegan:~# ./configure
...
...
...

  • compile the software for your particular platform
root@vegan:~# gmake

gmake[1]: Leaving directory `/root/MPlayer-1.0rc2/libmpdemux'
cc -o mencoder mencoder.o mp_msg-mencoder.o parser-mecmd.o xvid_vbr.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libmpcodecs/libmpencoders.a libmpdemux/libmpmux.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a osdep/libosdep.a -L/usr/lib -lkstat -lposix4 -lsocket -lnsl -ltermcap -lsmbclient -lpng -lz -ljpeg -lz -lspeex -ltheora -logg -rdynamic -lm
cc: unrecognized option `-rdynamic'
root@vegan:~/MPlayer-1.0rc2#

  • Modify the file configure
root@vegan:~/MPlayer-1.0rc2# diff configure /export/home/rudy/Download/configure 7329a7330,7331 > # ruv > _ld_dl_dynamic='' root@vegan:~/MPlayer-1.0rc2#
_ld_dl_dynamic was emptied(1 modification in total).

# Dynamic linking flags
# (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
_ld_dl_dynamic=''
bsd && _ld_dl_dynamic='-rdynamic'
if test "$_real" = yes || test "$_xanim" = yes && not win32 && not qnx && not darwin ; then
_ld_dl_dynamic='-rdynamic'
fi
_ld_dl_dynamic='' <=== this line was added !!!
  • configure again
root@vegan:~# ./configure
Detected operating system: SunOS
Detected host architecture: i386
Checking for cc version ... 3.4.3, ok
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... GenuineIntel (6:15:6)
Checking for CPU type ... Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of ssse3 ... failed
...
...
...
Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
  • compile the software again
./version.sh `cc -dumpversion`
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/X11/include -I/usr/include/SDL -D_REENTRANT -c -o mplayer.o mplayer.c
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium-m -mtune=pentium-m -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/X11/include -I/usr/include/SDL -D_REENTRANT -c -o vobsub.o vobsub.c
gmake -C libvo libvo.a
...
...
...
gmake[1]: `libmpmux.a' is up to date.
gmake[1]: Leaving directory `/root/MPlayer-1.0rc2/libmpdemux'
cc -o mencoder mencoder.o mp_msg-mencoder.o parser-mecmd.o xvid_vbr.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libmpcodecs/libmpencoders.a libmpdemux/libmpmux.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a osdep/libosdep.a -L/usr/lib -lkstat -lposix4 -lsocket -lnsl -ltermcap -lsmbclient -lpng -lz -ljpeg -lz -lspeex -ltheora -logg -lm

  • run MPlayer






Friday, April 03, 2009

Adobe Reader on OpenSolaris !!!


Youpee !!!

Adobe Reader

root@catalogne:/export/home/rudy/Download# chmod +x AdbeRdr9.1.0-1_i486solaris_enu.bin
root@catalogne:/export/home/rudy/Download# ./AdbeRdr9.1.0-1_i486solaris_enu.bin

Extracting files, please wait. (This may take a while depending on the configuration of your machine)

This installation requires 171 MB of free disk space.

Enter installation directory for Adobe Reader 9.1.0 [/opt]
/opt

Installing platform independent files ... Done
Installing platform dependent files ... Done
Setting up libraries ... Done
Setting up desktop and menu icons ... Done
Setting up the browser plugin ... Done

-Rudy-

OpenSolaris 2008.11 - CUPS - Brother HL-2030 USB

I was a little bit disappointed... I plugged my laser printer Brother HL-2030 ( USB ) and enabled cups and played a little bit with the cups website but was not able to print anything as the printer goes offline ! S...

After reading several sources what have to be done :

  • enable cups
The package SUNWcups was not installed. Start the Package Manager and type cups in the "search field". I installed the 3 packages to be sure : SUNWcups, SUNWcups-libs and SUNWpycups(if I remember well this one was already installed).

Query the print service and cups is enabled.

root@catalogne:~# print-service -q
active print service: cups

If cups is not enabled :

print-services -s cups

  • enable your user to use the cups website(when authentication is required)
Getting Admin rights to modify CUPS settings

You have to be in the group "sys".

root@catalogne:~# cat /etc/group | grep sys:
sys::3:root,bin,adm,rudy

In this example, the user "rudy" is in the "sys" group.

"THIS IS TEMPORARY ! ROOT CANNOT AUTHENTICATE INTO CUPS"
please remove later your user from "sys" !
  • Access the cups website and create a new usb printer
example : http://localhost:631

This will create the necessary configuration for a test1 printer.
  • Modify the cups configuration
Add "FileDevice Yes" in cupsd.conf(backup the file before).

root@catalogne:/etc# more /etc/cups/cupsd.conf
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# RUV
FileDevice Yes
...
...
...

Modify printers.conf

root@catalogne:~# more /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2009-04-02 20:04

Info test1
Location test1
DeviceURI file://dev/printers/0
State Idle
StateTime 1238695489
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer


From DeviceURI usb://Brother/HL-2030%20series
TO file://dev/printers/0
  • Access the cups website
example : http://localhost:631

Printers--->Print Test Page



Printed a test page !!!

That's all for today !

-Rudy-

Monday, March 23, 2009

swap space on Solaris 10(in Virtual Box)

Can we define space using a zfs pool... Seems not...

I did the exercise but swap -a did not accept to add the files I created with the command mkfile !
It was a little bit trickier that I thought because I was using a Solaris 10 created in Virtual Box.
  • Create a new disk in Virtual Box and assign the disk to you Virtual Machine
  • Boot the Virtual Machine(Solaris) and execute a reboot -- -r
reboot -- -r is necessary to make Solaris see the new disk.
  • use format and fdisk to partition the new disk
-bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
2. c1d1
/pci@0,0/pci-ide@1,1/ide@1/cmdk@1,0
Specify disk (enter its number): 2
selecting c1d1
NO Alt slice
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1d1s0 is currently mounted on /extraswap. Please see umount(1M).


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
volname - set 8-character volume name
! - execute , then return
quit
format> pa


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> pr
Current partition table (original):
Total disk sectors available: 8372158 + 16384 (reserved sectors)

Part Tag Flag First Sector Size Last Sector
0 usr wm 256 3.99GB 8372158
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 8372159 8.00MB 8388542

partition>
^D
  • use newfs to create the filesystem
-bash-3.00# newfs /dev/dsk/c1d1s0
newfs: construct a new file system /dev/rdsk/c1d1s0: (y/n)? y
Warning: 2370 sector(s) in last cylinder unallocated
/dev/rdsk/c1d1s0: 8371902 sectors in 1363 cylinders of 48 tracks, 128 sectors
4087.8MB in 86 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
7472672, 7571104, 7669536, 7767968, 7866400, 7964832, 8063264, 8161696,
8260128, 8358560
  • mount the filesystem
first create a directory where to mount then mount

-bash-3.00# mkdir extraswap
-bash-3.00# mount -F ufs /dev/dsk/c1d1s0 /extraswap/
  • create the swap space and add it to the system
-bash-3.00# mkfile 1g swap1
-bash-3.00# mkfile 1g swap2
-bash-3.00# mkfile 1g swap3
-bash-3.00# mkfile 900m swap4
-bash-3.00# swap -a /extraswap/swap2
-bash-3.00# swap -a /extraswap/swap2
-bash-3.00# swap -a /extraswap/swap3
-bash-3.00# swap -a /extraswap/swap4
-bash-3.00# swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 1048568 1048568
/extraswap/swap1 - 8 2097144 2097144
/extraswap/swap2 - 8 2097144 2097144
/extraswap/swap3 - 8 2097144 2097144
/extraswap/swap4 - 8 1843192 1843192

That's all !

-Rudy-