Get rid of “X is posting about Y” on facebook.

Facebook recently has a new annoying feature promoting pages based on the content they post.

You can easily hide these messages plus the suggested posts by adding these to your ad-block filter list.

facebook.com##div.storyUnconnectedPost

Et voila!

Advertisements

#facebook

Getting back on track..

So it’s been a while! Plan is to do some major refactoring on site and post some actual content. So stay put and changes coming soon 🙂

[Ubuntu] WARNING: gnome-keyring:: couldn’t connect to: /tmp/keyring-*****/pkcs11

Do

sudo gedit /etc/xdg/autostart/gnome-keyring-pkcs11.desktop

replace

OnlyShowIn=GNOME;Unity

with

OnlyShowIn=GNOME;Unity;LXDE;XFCE

#gnome, #keyring, #linux, #openbox, #ubuntu

[Android] Add init.d support to your ROM.

1) Make sure you have busybox on your xbin folder.

2) Extract boot.img and ramdisk and place this lines on the bottom of init.rc

service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
   disabled
   oneshot

3)Repack and you are done! You can now add any scripts you like to run at boot at /etc/init.d/ folder!

#android, #cyanogenmod, #d-computer, #init, #technology

[Android] Unpack and edit boot.img

1) Get abootimg:

sudo aptitude install abootimg

2)Extract boot.img

abootimg -x boot.img

3)Extract initrd.img to initrdorg folder

mkd initrdorg
cp initrd.img initrdorg
cd initrdorg
gunzip -c ../initrd.img | cpio -i

4) Edit and repack
find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
cp newramdisk.cpio.gz ../
cd ..
abootimg -u boot.img -r newramdisk.cpio.gz

You are done!
Tip: Remember to delete any *~ files gedit might have create before repacking!

#android, #boot-img, #computer, #edit, #initrd-img, #technology, #unpack

/usr/bin/ld: cannot find -lz when compiling android source

You are probably on a 64bit system. Just do:

sudo apt-get install lib32z1-dev

#android, #cyanogenmod

“device/htc/ace/ace.mk” does not exist. Stop. Cyanogenmod

Assuming you get this error here is an easy fix.

Goto /yourcmdir/vendor/cyanogen/products and edit AndroidProducts.mk. It should look something like this

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/cyanogen_ace.mk \
…

Remove all the device .mk you don’t need and keep only the one you are compiling and already have the device tree.

Then

. build/envsetup.sh

lunch

make -j4

Et voila!