Recent News

PHP Feeds Revisited – Part 2

Posted by Root on November 9th, 2010

what is php feeds and what I am hoping to achieve with it ?
 is the question that I closed off with yesterday and today I will explain the vision I had when I came up with the idea.

I read a lot of feeds daily and throughout the years I have built up a very big list of feed subscriptions from different technology sites that i try to keep up with on a day to day base, but the problem I encountered was that I had to go through lots of feeds daily to only find one relevant piece of news that was important to me and in this particular case php  news/articles/ tutorials is what I was interested in – Then friendfeed.com  was launched and I saw what I wanted but could not explain this whole time , the idea started to take form then which was to take all feed subscriptions and put them in one place and at the same time apply filtering to them so that I only see what I wanted with less effort ,  phpfeeds.co.za was then born.

So whats the plan now?
I want to expand phpfeeds.co.za from just offering links to a collection of php news,article and tutorials but to also have a directory of all the php frameworks , libraries and extensions available on the Internet .

1) PHP frameworks

  •   Directory Listing all known php frameworks available on the internet
  •   Allow developers who use the frameworks to rate / comment and review the frameworks instead of  the typical blogs you get comparing php frameworks which the blogs themselves are written in some cases by the same folks who built the frameworks.
  • Highlight framework relevant information about the availability of documentation , tutorials and forums where one can get help. crucial when you are in the market for a new framework 

2) PHP Libraries

  •  A categorized directory listing of all known php libraries especially ones which make a big difference e.g. Simple Pie, Nusoap , Swift mail and phpmailer just to mention a few.
  • Allow developers to rate / review and comment on their usefulness.
  • Add Tutorial sites that deal with these libraries

3) Extensions

  •  Link extensions available on pecl to sites that offer documentation and tutorials.
  •  Relevant Material about writing extensions.  

Thats is all i have for now and will update this when I think of more things to add but for now my plate if full. Tomorrow I will discuss the technology stack that I will be using on this project – stay tuned.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] none

PHP Feeds Revisited – Part 1

Posted by Root on November 4th, 2010

About 5 months ago , I launched  http://www.phpfeeds.co.za to the world which was my first attempt at learning the php symfony framework . I have improved my skills since then with the framework and It has become my favorite php framework from all the ones available out there. On a sour note though I have not had time to work on http://www.phpfeeds.co.za since then and the website is still in Alpha mode.

I have decided as of today to go back to the drawing boards and rework the site until it’s done. I will be documenting the process on a daily base on this blog and you are more than welcome to give input about the technology, functionality and other ideas you might have but I ask that your ideas must help me reach my goal instead of derailing me from it.

The next logical question is, what is php feeds and what I am hoping to achieve with it ? read tomorrow for the answer.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] none

Create your own Hotfile Download load server

Posted by Root on November 2nd, 2010

I am a very lazy person in general and if I can automate a manual process then it shall be automated. I have created a tiny script which gets all my downloads from hotfile and rapishare, but will focus on hotfile for now.

The script is not entirely my idea I just put together pieces that I found while scrapping through the internet and I hope it will help you.

Step 1:
NB: Please make sure you have a premium hotfile account otherwise you might as well stop reading.
we need to create a hotfile cookie for your server so please execute the following code in a command console.

wget –save-cookies /path/to/hotfilecookie –post-data “returnto=%2F&user=yourusername&pass=yourpass&=Login” -O – http://www.hotfile.com/login.php > /dev/null

The command we just executed allowed us to build a cookie file which we will load when doing are downloads and will allow of us to utilize our hotfile premium account.

Step 2:
 We need to create a file which will use to store our download list, Our server will read and download all the links stored on the file.

In your download server directory e.g /home/dl/ create a file by executing “touch .wget-hotfile-list and please check the permissions we have on the file since we need to able to execute , read and write to the file.
 
Step 3:
We now need to write the bash script that will take care of our download process, first thing  – lets create a bash script and give it a name e.g.  “touch wget_server_hotfile.sh  and open the file with your favourite editor and insert this code snippet.

#!/bin/sh
# .wget-hotfile-list: manage the list of downloaded files

# invoke wget-list without arguments

while [ `find .wget-hotfile-list -size +0` ]
 do
  url=`head -n1 .wget-hotfile-list`
   wget -c –load-cookies /path/to/hotfilecookie  $url
   sed -si 1d .wget-hotfile-list
 done

Please make sure you enter the path we used in Step 1 when we were creating the cookie file. and lastly make sure that your script is executable by running “chmod +x wget_server_hotfile.sh .

Step 4:
We are now almost done, just a couple of loose ends to tire up. Please login to your hot-file premium account and make sure that your enable the option direct downloads“. Once thats done you are now ready to run the server , first open the file we created in Step 2 .wget-hotfile-list and start pasting your download links inside e.g.

http://hotfile/download/96747859/myfile1.tar
http://hotfile/download/96747859/myfile2.tar
http://hotfile/download/96747859/myfile3.tar
http://hotfile/download/96747859/myfile4.tar

Save and close the file then run the bash script we created in Step 3 “./wget_server_hotfile.shthen your download should start. 

NB:
The bash script terminates once all the entries in  .wget-hotfile-list have been downloaded .
  
Here is a list of sites that helped me get this process working and all credit should go to those guys and not me.
http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/
http://lampbear.wordpress.com/2010/04/05/use-wget-to-download-from-hotfile-automated/
http://friendfeed.com/kris/c9a389b8/use-wget-to-download-from-hotfile-automated-web

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] none

Random FFmpeg and Mencoder Commands

Posted by Root on October 7th, 2009

I keep a list of all the FFmpeg / Mencoder command that I come across on the Internet and add it to my Knotes for future refernce, Today I am sharing the list. The credit goes to all the website and forums which I have come across to build this nice little list of FFmpeg / Mencoder commands.
Capture video of a linux desktop
$ ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out

Convert other video to FLV
$ ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320×240 video

Download YouTube videos as .flv and convert them to .3gp for your mobile phone.
$ ffmpeg -i file.flv -r 15 -b 128k -s qcif -acodec amr_nb -ar 8000 -ac 1 -ab 13 -f 3gp -y out.3gp

Extract audio and video from a file
$ ffmpeg -i source_movie.flv -vcodec mpeg2video target_video.m2v -acodec copy target_audio.mp3

Convert bunch off oggs to mp3
$ for x in *.ogg; do ffmpeg -i “$x” “`basename “$x” .ogg`.mp3″

AAC conversion
$ ffmpeg -i source.mp3 -acodec libfaac -ab 128k dest.aac
iPod / iPhone
$ ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320×180 -title X output.mp4
convert-almost-any-image-into-a-video
$ ffmpeg -loop_input -f image2 -r 30000/1001 -t $seconds -i frame/$num.ppm -y frame/%02d.mpeg 2>/dev/null

Record MP3 audio via ALSA using ffmpeg
$ ffmpeg -f alsa -ac 2 -i hw:1,0 -acodec libmp3lame -ab 96k output.mp3

Convert files to xvid

$ mencoder “$1″ -ofps 23.976 -ovc lavc -oac copy -o “$1″.avi

Covert wmv to avi
$ mencoder “/path/to/file.wmv” -ofps 23.976 -ovc lavc -oac copy -o “/path/to/file.avi”
Merge video files together using mencoder (part of mplayer)
$ mencoder -oac copy -ovc copy part1.avi part2.avi part3.avi -o full_movie.avi
Encode a file to MPEG4 format
$ mencoder video.avi lavc -lavcopts vcodec=mpeg4:vbitrate=800 newvideo.avi

Convert mp3/wav file to asterisk ulaw for music on hold (moh)
$ sox -v 0.125 -V <mp3.mp3> -t au -r 8000 -U -b -c 1 <ulaw.ulaw> resample -ql

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] none

Converting mp3 files to iPhone ringtones in Linux

Posted by Root on March 31st, 2009

I got a couple of emails a while ago about  people who were interested in creating ring tones for the  iPhone, Well since I do not own an iPhone or have any intentions of having one I have instead found a nice little how to guide for those interested in the subject …..read more.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] none

Recent Comments | Recent Posts


designed by: Website Builder | Coded by: Blog Directory | Provided by: Wedding photojournalism chicago
bottom