For full recipes, please visit our recently launched Egyptian Cuisine Recipes web site.

Logging with Syslog-NG on OpenWRT

Contents: 

Tags: 

Update 2014-10-08: If you upgraded to the stable Barrier Breaker 14.07, and Syslog-NG is not available, or if don't want to use Syslog-NG for any other reason, please check our other article on using the built in logging feature of OpenWRT to write the log to a file.

We wrote earlier on OpenWRT on D-Link DIR-835. Now, we need to expand the functionality a bit more.

On OpenWRT, the default logging mechanism is an in-memory circular buffer. The user interface for it is the logread command. The log buffer default size is 16 kB. There are a couple of directives that can be set in the system configuration for OpenWRT, but because of the limited size of flash and the non-permanence of RAM, you need another solution if you want to store logs for anything longer than a day or two.

Syslog-NG

Syslog-NG is a good system logging program that is available for OpenWRT.

Solutions for Android battery drain because of suspend_backoff/Wakelocks

Contents: 

Tags: 

If your Android phone is suffering from suboptimal battery life, you may be suffering from suspend_backoff problems. This happens when the phone is woken up by applications in quick succession, so it decides to keep the phone awake for a little while. For example, there is data to be sent over WiFi, so the WiFi connection is kept awake, which keeps the phone awake.

Youtube/Flash not working on Semperon under Ubuntu? Use Gnash!

Contents: 

Tags: 

If you are using Ubuntu 12.04 on an older computer with a Semperon CPU, you will soon find that Flash is not working and therefore Youtube videos will not work either.

Adobe Flash built with SSE2 flag

This is because Adobe has build the recent Flash versions with the SSE2 flags enabled, yet many Semperons lack this particular flag.

$ cat /proc/cpuinfo
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : AMD Sempron(tm) 2600+
...

Four hours of battery time on a Linux laptop

Contents: 

Tags: 

I previously wrote about reducing CPU usage for Firefox by disabling Firebug. Later, I wrote on disabling the YSlow extension also reducing CPU usage.

Now, the laptop is able to exceed 4 hours of battery time under Kubuntu Linux 12.04:

Four hours, seven minutes:

09:37:27 localhost pm-utils: Power source switched to battery, Battery: discharging, A/C adapter: off-line

Quick How To: Installing OpenWRT on the D-Link DIR-835 wireless router

Contents: 

Tags: 

This is a quick how to for installing OpenWRT custom firmware on a D-Link DIR-835 router.

Though these instructions were tested on the DIR-835, they apply to many other router models from Linksys, Netgear, ASUS, and many other brands.

Check if your hardware is supported

مهند الحطاب

Contents: 

مهند الحطاب، شاب سوري بيقلد العرب و المصريين في فيديوهات قصيرة جدا مضحكة

هنا مجموعة من فيديوهاته

مذيعة بتقول للكوافيرة تعمل شعرها ازاي

بنت صاحبها سابها

بنت صاحبها سابها الجزء الثاني

جاك و روزا بعد التيتانيك ما غرقت

How to install Firefox ESR on Ubuntu 64 bit LTS

Contents: 

Tags: 

Update: 2017-Nov-19: See the last section for automated installation and upgrading, which is now possible.

To read my RSS feeds, I use Tiny Tiny RSS, which worked fine until 21 Feb 2014.

On 22 Feb 2014, Ubuntu pushed Firefox 27, Tiny Tiny RSS stopped working, with a Javascript error. After logging in, there would be a pop up error referring to getCookie and tracing to prototype.js.

To solve this, I went back to the ESR (Extended Support Release). This was quite a few steps, so I am documenting them here.

How to get better fonts in Firefox on Linux

Contents: 

Tags: 

To have better fonts in Firefox, you need to disable anti-aliasing, and clear all font caches.

Do achieve this, run the following commands from a terminal:

Clear the cached fonts in your home directory

cd ~
rm -f .fonts.conf .fonts.cache-1 .fontconfig/*

Disable antialiasing

cd /etc/fonts/
sudo mv 10-antialias.conf disabled-10-antialias.conf 

Reconfigure the fonts

sudo dpkg-reconfigure fontconfig

Now, restart FIrefox and check if the fonts look better ...

How often do you reboot your laptop?

Contents: 

Tags: 

How often do you reboot your laptop?

Well, for me, I run Linux (Kubuntu 12.04), and I usually do it when a new kernel security update is released. And put it on sleep otherwise.

This means I can go for a month and a half without rebooting.

Here is a recent example, output from the "uptime" command:

14:31:46 up 45 days, 2:10, 7 users, load average: 1.45, 1.29, 1.28

Hindi words of Arabic origin

Contents: 

Tags: 

Having worked with many people from India and Pakistan in the 1990s, I was often fascinated by words that sounded Arabic in origin. When asking about the meaning, they were indeed Arabic. And I could detect more words in the few Hindi Bollywood movies that I have seen as well.

Arabic influence on Hindi may have been via several avenues. One was via Farsi (Persian) as an intermediate, having been the language of the court for the Mughal emperors. Another was through Muslim scholars using these words from Arabic texts and they made their way into the vernacular.

Pages

Subscribe to The Baheyeldin Dynasty RSS