Moving my Blog

April 24, 2011 Leave a comment

After nearly 2 years of inactivity I have decided to resume the work on my blog and this time i have bought hosting.

Please bookmark the new link http://djsh.net

Categories: Uncategorized

Simple espeak Program (speak_lib)

December 27, 2009 Leave a comment

One of my friends was making a project requiring espeak. He was using speak_lib.h and wanted help on using it , so here is a simple c/c++ program  i wrote:

DEPENDENCIES:

portaudio-devel
espeak-devel

USAGE:

(Assuming speak_lib.h in your current dir)

(Replace g++ by gcc and .cpp with .c for compiling as c )

g++ -g -I. Speak.cpp -lportaudio -lespeak -o Speak
./Speak

SOURCE CODE

Download

Categories: Fedora 11

MEDIAFIRE DIRECT LINK GENERATOR

December 8, 2009 3 comments

THIS SCRIPT DOESN’T WORK ANYMORE!

IF ANY FUTURE SCRIPTS WILL BE MADE THEY WILL BE POSTED  AT MY NEW BLOG

http://djsh.net/

UPDATE2: Mediafire updated their page leaving this script non functional.

UPDATE: Added Proxy Support

This is a python based Mediafire link resolution script . It resolves the input link to give the direct link to the file.

By using this script you are automatically agreeing to MediaFire ‘s Terms and Conditions.

If you wish to have the source code , contact me.

DOWNLOAD

For help use “mediafire.pyc –help”

Categories: Bash, Linux, python, Windows Tags: ,

Freeing up RAM in Linux

July 27, 2009 3 comments

NOTE: Little clarification, this is not needed at all ,as memory is freed when required.

WHY IT MAY BE HELP-FULL: This clears the page-cache , dentires and inodes.

IT’S TRANSLATION : It may be that you are watching a movie or using a Virtual Machine , a resource hungry process has filled up your ram by caching data and the data needs to be continuously removed  to make space for new data . This is managed by the kernel.

IF YOU STILL DON’T  GET IT: Notice  video in your movie hanging (not audio) while your ram gets cached Or your system running a bit slow ?


1) Stop the process consuming loads of memory. (Check System Monitor).
2) Open a terminal with root privileges .
3) Sync
4) echo 3 > /proc/sys/vm/drop_caches
5) echo 0 > /proc/sys/vm/drop_caches

Fedora 11 Fixing Various Problems

July 2, 2009 4 comments

0)  Graphic Driver Problems

– For ATI RadeonHD cards (especially x1250 and x1200)

yum install xorg-x11-drv-radeonhd

if /etc/X11/xorg.conf doesnt exist
yum install system-config-display
Run system-config-display –reconfig in terminal.

Modify /etc/X11/xorg.conf

"Device" Section
Driver "radeonhd"
Option "DRI" "True"

– Or Install fglrx (At the time of writing of post official rpmfusion drivers dont exist)

Hence Fedora 10 ‘s kernel needs to be installed .Refer this post

(Make sure that you use correct driver since ati recently removed support for many cards )

http://forums.fedoraforum.org/showthread.php?t=224519

1)  Enabling OSS
(This is needed for Real Player 11 as it crashes with ALSA)

(In Root /Sudo Mode)

nano /etc/modprobe.d/dist-oss.conf

uncomment line as mentioned

2)  Fixing glitchy sound problems.
There are many solutions to the sound problems listed in http://fedoraforums.org
They mainly deal with time scheduling
Other solutions consist of

– Enable OSS (See Above)
– Install OSS v4.x ( This replaces all the ALSA/Pulse Audio kernel modules)

3)  Enabling TAP in MousePad / Touchpad

– Temporary Measure

synclient TapButton1=1
synclient TapButton2=1

– Permanent Measures

– System > Prefrences > Mouse >Touchpad > Enable mouse clicks

OR

– Modifying xorg.conf

See this link.

NOTE: IF YOU FIND ANY PROBLEM / ALTERNATE SOLUTION WITH ABOVE FIXES PLEASE POST A COMMENT.

Fedora 11 Leonidas Essentials Guide Part 2: More Config

June 24, 2009 1 comment

NOTE:All Commands to be entered in terminal in Super User/root mode. (.:. su – or sudo)

1) Setup sudo
In Fedora the root and normal user accounts are different and one can switch between them to do administrative tasks.
However if you want to give a user other than root administrative priviliges

nano /etc/sudoers

Add to the end
Read more…

Categories: Fedora 11 Tags: ,

Fedora 11 Leonidas Essentials Guide Part 1: Getting Started

June 24, 2009 2 comments

Fedora 11 Leonidas essentials guide

Well Howdy Folks ! ,thou having trouble with getting Fedora 11 Leonidas Up and Running ?

Well then you have come to the right place !!!
NOTE:all commands r to be typed in terminal with sudo or su login or su -c
PS: All yum commands can be replaced by package kit alternatives type “info pkcon” in terminal.

0) PRESTO PLUGIN FOR YUM: Presto is a delta rpm plugin for  yum . (Delta rpm is only the difference in old and new version of packages Hence Saves Precious Bandwidth.
yum install yum-presto
Read more…

Categories: Fedora 11 Tags: ,
Follow

Get every new post delivered to your Inbox.

Join 48 other followers