Ardi's Online Stuff

  • About Me
  • Contact Me
Browsing: / Home
Shortlink

How to play iTunes Radio from your iPhone, FREE

By ardnet on May 14, 2011 in My Experiments

No need app to do this, and it’s completely FREE.

OK, nuff the crap, so here it is:

1. Open your iTunes, then click one of your favorite radio stream in your own Playlist (you should create a Playlist first to do this).

2. click Command + I. Under Where section, click Edit URL, then copy the URL.

3. Open you Safari browser, create a bookmark called say… stream, paste the URL there. You can add as many URL you want.

4. Now connect your iPhone with iTunes, click Info tab, scroll down a bit, then under Other tick Sync Safari bookmarks. Click Sync afterward.

5. After finish syncing, disconnect your iPhone with iTunes. in your iPhone, go to your Safari, go to your stream bookmark, and click.

6. AWESOMENESS!!

 

Credit to this forum for the helpful info: http://www.everythingicafe.com/forum/threads/radio-station-on-itunes-to-iphone.37358/

I’m glad now I don’t need to buy some expensive app just to hear my favorite radio station from iTunes, which I always hear it quite often.

Enjoy :)

 

 

Tweet
Share this on: Mixx Delicious Digg Facebook Twitter
Shortlink

HTML5 Presentation (Inspired by GoogleDevFest Spore 2010)

By ardnet on August 20, 2010 in What I've Done
Here is one presentation that I created about HTML5.
Google Dev Fest HTML5 Presentation
View more presentations from Pratomo Ardianto.
And this is me presenting the HTML5 to my colleagues. Credit to Mike Cherng for the picture :)

Tweet
Share this on: Mixx Delicious Digg Facebook Twitter
Shortlink

Inception is Amazing Movie

By ardnet on July 18, 2010 in Some Stories

I didn’t really expect that Inception is going to give me some WOW-est of the movie, maybe because I watched his previous awesome movie which is… you know… WHY SO SERIOUS!! hehe. But no doubt that Christopher Nolan still can give me some huge satisfaction.

The concept of the idea of the story is not really new to me. It reminds me of the The Matrix and Minority Report, which those movies tells about how great the MIND POWER is, either by ‘running around’ in the computer program, find a culprit of homicide case by reading the future, or able to plant an idea through the dream.

Who knows maybe somewhere in the future this kind of “technology” will exist, or is it sooner than I expected?

Yet, in term of the CG effect, IMO, this movie still considered as ‘simple’. There’s not much special effect going on in this movie, maybe it’s because I compared it with the movie Avatar :-)

But, there’s one thing about this movie that I should give huge credit… is the MUSIC, the sound effect was freakin’ amazing!!

And this is why I like about Christopher Nolan’s movie, even though the movie is not much using special effect, but still in term of the story line and also the sound effect, plus also the amazing cinematography… was INCREDIBLE!!!

Can’t wait for his other movie.

So what you guys think about this movie? Are you in the same page like me or not? Or do you have some different opinion? Please share with me by give some comments.

Thanks.

Tweet
Share this on: Mixx Delicious Digg Facebook Twitter
Shortlink

Setup SVN in CentOS Linux Tutorial

By ardnet on July 18, 2010 in My Experiments

Please note that I’m no expert of doing some server stuff or what so ever, I wrote this tutorial based on my trial and error by using my company shared hosting server. By the way, I’m using CentOS Linux. To find out what Linux version/distro that you use, use this command: cat /etc/issue

Let’s just get to the point shall we:

1. Install SVN by run this command:

 yum install mod_dav_svn subversion

After that, check whether your SVN is successfully installed by running this command:

 svn --help

If you see something like this below, then you’re good to go:

usage: svn  [options] [args]
Type "svn help " for help on a specific subcommand.
 
Most subcommands take file and/or directory arguments, recursing
on the directories.  If no arguments are supplied to such a
command, it will recurse on the current directory (inclusive) by
default.
2. Create a user for SVN by using this command:
htpasswd -cm /var/www/svn-auth-conf yourusername
Press Enter, then after that  you need to key in your desire password as well.
To create another user, use this command:
htpasswd -m /var/www/svn-auth-conf anotherusername
3. Create your repository folder to save all your repository under /var/www/ by using this command:
mkdir svn

4. Go to folder etc/httpd/conf.d And open the file subversion.conf by using this command:

nano subversion.conf

, and edit the file so it will look like below:

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
<Location /repos>
   DAV svn
   SVNParentPath /var/www/svn
      AuthType Basic
      AuthName "Subversion repos"
      AuthUserFile /var/www/svn-auth-conf
      Require valid-user
</Location>

After that, restart your server by using this command:

 /etc/init.d/httpd restart
5. Now we need some URL to access the SVN. Let say you already have some URL/domain say: http://svn.your-domain.com
Then after that, open your httpd.conf or virtual-hosts.conf file (usually you will find it under folder /etc/httpd/conf.d/ ) and add the line like below:
<VirtualHost *:80>
ServerName svn.your-domain.com
DocumentRoot "/var/www/svn"
ErrorLog logs/svn-err_log
CustomLog logs/svn_log common
</VirtualHost>

Restart your server once again.

 /etc/init.d/httpd restart

From this step, you should already be able to access http://svn.your-domain.com/repos

6. Now it’s time to create a repository for one of your project.
Let say your files/folder of your web project is in this folder: /var/www/html/yourproject/

Go to folder /var/www/svn and use command below:

svnadmin create --fs-type fsfs yourproject
chown -R apache.apache yourproject
/etc/init.d/httpd restart

Now you just created a folder named yourproject under /var/www/svn/ to contain the repository of your web project later.

Then we need to import the web project under /var/www/html/yourproject/ to /var/www/svn/yourproject/ by using this command:

svn import /var/www/html/yourproject/ file:///var/www/svn/yourproject/ -m 'Initial import'

Then go to your root folder of where your project lies /var/www/html/ and run this command:

Please note: you might want to rename yourproject folder in to something else before run the command below.

svn checkout file:///var/www/svn/yourproject

That’s it, you managed to create repository of your web project files/folder. But there’s one more thing need to do. Let’s go to the next step shall we.

7. We need to setup automatic update to the web project every time we make commit to the repository. Here’s how.

Go to folder /var/www/svn/yourproject/hooks. Create a file name svnupdate.c and put the code below inside that file:

#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
int main(void)
{
execl("/usr/bin/svn", "svn", "update", "/var/www/html/yourproject",
    (const char *) NULL);
return(EXIT_FAILURE);
}

And compile the file by using the command below:

gcc -o svnupdate svnupdate.c

And change the file ownership to root and set the permission also

chown root.root svnupdate
chmod +s svnupdate

Test your compiled code by running the command below:

env ./svnupdate

If you see notification something like below, then your compiled code is success:

At revision 1.

After that, still under folder var/www/svn/yourproject/hooks, copy-paste file post-commit.tmpl, then name it to post-commit (without any extension) and put the code below:

#!/bin/sh
/var/www/svn/yourproject/hooks/svnupdate

And change the file permisson

chmod 755 post-commit

Restart your server.

OK, that is a wrap.

To test out the repository, download TortoiseSVN, access the repository by using this URL http://svn.your-domain.com/repos/yourproject and login using your user name and password from step 2.

If there’s something that you still don’t understand, please feel free to put in some comments, I will try my best to help you :-)

Same thing as well if you want to add something that I might miss in this tutorial.

Thanks

Tweet
Share this on: Mixx Delicious Digg Facebook Twitter
Shortlink

Test post something from WP app

By ardnet on June 23, 2010 in My Experiments

Whoaa… now this one is posted using android WP app,sweeeeet!! :-)

Tweet
Share this on: Mixx Delicious Digg Facebook Twitter
1 2 ... 7 Next »

Search

Categories

  • My Experiments
  • Some Stories
  • Things I Got
  • Things I Like
  • What I've Done

Recent Comments

  • Spotnassi11 on How to play iTunes Radio from your iPhone, FREE
  • Iincognitor on How to play iTunes Radio from your iPhone, FREE
  • Horseface on How to play iTunes Radio from your iPhone, FREE
  • Xtremepoint on How to play iTunes Radio from your iPhone, FREE
  • Gordonsky on How to play iTunes Radio from your iPhone, FREE

Most Comments

  • Menanggapi Soal Comments Para Kawan2 Pemerhati IT tentang www.my-indonesia.info - 46 comments
  • Upgrading My Wordpress Blog - 9 comments
  • How to play iTunes Radio from your iPhone, FREE - 7 comments
  • About Me - 3 comments
  • [Just for fun] What do you see in this pict? - 3 comments

Tags

busway cool css3 fun google html5 inception incubus internet iphone itunes linkedin love me mobile movie philosophy presentation projects radio recession relax slide SVN time tips tutorial wifi

Archives

  • May 2011
  • August 2010
  • July 2010
  • June 2010
  • February 2009
  • October 2008
  • August 2008
  • June 2008
  • April 2008
  • March 2008

Affiliates

  • Sophisticity

Inspirations

  • Elliot Kember
  • Photo Matt
  • Tim Benzinger

Knowledges

  • jQuery
  • SitePoint
  • TutorialBlog
  • Web Design from Scratch