Showing posts with label How To. Show all posts
Showing posts with label How To. Show all posts

Thursday, April 21, 2011

Setting Mime-Types Using Google Code and RapidSVN

I am using Google Code to store some files needed by my blogs. Storing files in Google Code isn't as straight forward as uploading file then hotlinking to the said files. For one thing files uploaded to Google Code is automatically served as a text-plain mime-type. Simply put HTML would simply be just plain text as well as images, and CSS. By Googling i was able to find a site that has the answer on how to store file with the correct mime-type. The site is TechPortal.in. If your using windows you should follow their guide from registering to Google Code and creating a new project. to configuring and using TortoiseSVN to upload files.

Since i'm using Ubuntu/Linux my SVN client is RapidSVN. In order to set the proper mime-type you have to edit subversion's config file using whatever text editor you like mine is gEdit. You can find the config file by going to your home and look for your .subversion folder.
Using gEdit paste the following text at the very end of the file and save the file. Hopefully everything will work out fine.

[miscellany]
enable-auto-props = yes

[auto-props]
# Scriptish formats
*.bat        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
*.bsh        = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-beanshell
*.cgi        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
*.cmd        = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
*.js         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/javascript
*.php        = svn:eol-style=native; svn:keywords=Id Rev Date; svn:mime-type=text/x-php
*.pl         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl; svn:executable
*.pm         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl
*.py         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-python; svn:executable
*.sh         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-sh; svn:executable

# Image formats
*.bmp        = svn:mime-type=image/bmp
*.gif        = svn:mime-type=image/gif
*.ico        = svn:mime-type=image/ico
*.jpeg       = svn:mime-type=image/jpeg
*.jpg        = svn:mime-type=image/jpeg
*.png        = svn:mime-type=image/png
*.tif        = svn:mime-type=image/tiff
*.tiff       = svn:mime-type=image/tiff

# Data formats
*.pdf        = svn:mime-type=application/pdf
*.avi        = svn:mime-type=video/avi
*.doc        = svn:mime-type=application/msword
*.eps        = svn:mime-type=application/postscript
*.gz         = svn:mime-type=application/gzip
*.mov        = svn:mime-type=video/quicktime
*.mp3        = svn:mime-type=audio/mpeg
*.ppt        = svn:mime-type=application/vnd.ms-powerpoint
*.ps         = svn:mime-type=application/postscript
*.psd        = svn:mime-type=application/photoshop
*.rtf        = svn:mime-type=text/rtf
*.swf        = svn:mime-type=application/x-shockwave-flash
*.tgz        = svn:mime-type=application/gzip
*.wav        = svn:mime-type=audio/wav
*.xls        = svn:mime-type=application/vnd.ms-excel
*.zip        = svn:mime-type=application/zip

# Text formats
.htaccess    = svn:mime-type=text/plain
*.css        = svn:mime-type=text/css
*.dtd        = svn:mime-type=text/xml
*.html       = svn:mime-type=text/html
*.ini        = svn:mime-type=text/plain
*.sql        = svn:mime-type=text/x-sql
*.txt        = svn:mime-type=text/plain
*.xhtml      = svn:mime-type=text/xhtml+xml
*.xml        = svn:mime-type=text/xml
*.xsd        = svn:mime-type=text/xml
*.xsl        = svn:mime-type=text/xml
*.xslt       = svn:mime-type=text/xml
*.xul        = svn:mime-type=text/xul
*.yml        = svn:mime-type=text/plain

CHANGES      = svn:mime-type=text/plain

COPYING      = svn:mime-type=text/plain

INSTALL      = svn:mime-type=text/plain

Makefile*    = svn:mime-type=text/plain

README       = svn:mime-type=text/plain

TODO         = svn:mime-type=text/plain

# Code formats
*.c          = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.cpp        = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.h          = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.java       = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.as         = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
*.mxml       = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain

Source: [Techportal.in]

Saturday, March 26, 2011

MMSH Not Working

I listen to a lot of internet base radio especially Accuradio. But when i want to listen to local radio stations i go to eRadioPortal.com. But it seems MMSH Streaming is broken for Ubuntu 10.10.
Since i need eRadioPortal to work so that my mom can listen to her favorite radio station while IM'ing her friends. I was able to work MMSH streaming using VLC. You have to dig into the source code to look for the MMSH streaming URL. As an example below, the URL is was looking for is located inside the object tag (sometimes its in the embed tag).
Once you have URL you just need to fire up VLC click on Media and select Open Network Stream. Enter the Url and voila! You now have eRadio.

Friday, January 21, 2011

APTonCD Load Button Not Working

One of my favorite apps in Linux is APTonCD. APTonCD is a tool with a graphical interface which allows you to create one or more CDs or DVDs (you choose the type of media) with all of the packages you've downloaded via APT-GET or APTITUDE, creating a removable repository that you can use on other computers. APTonCD will also allow you to automatically create media with all of your .deb packages located in one especific repository, so that you can install them into your computers without the need for an internet connection. As qouted from its official website aptoncd.sourceforge.net.

I'm using APTonCD in Ubuntu 10.10. My problem is the APTonCD version that is available thru the Ubuntu Software Center is broken. You can backup APT packages but you can't restore it. Downloading the latest file from the website is futile since the download page has "the project has no file" in it. Search high and low for the answer but couldn't find one. So i did the next best thing and that is download an older version. APTonCD's website is a no go since there isn't a file to be found old or new. So i search google using "index of aptoncd" as the keyword and voila found some directories containing old vesions of APTonCD. I used securehost.com/mirror/debian/pool/main/a/aptoncd and downloaded aptoncd_0.1-1.2_all.deb. Installed it without a hitch, fired up the application and it work on Ubuntu 10.10 perfectly. I was able to load and restore 400mb worth of updates.

Now I do hope they fix the current APTonCD but until then i'm sticking with the old one.

Tuesday, December 7, 2010

Copy a Key Using a Coke Can

I have been looking for this video for quite sometime now and i have found it. yey for me! No need to explain the title says it all.

Wednesday, October 20, 2010

How to make An a-line into a pencil skirt (Step by step)

We've wanted a print pencil skirt for a while now. We also happened to have a printed A-line skirt in my closet that never got much wear. One day these two facts clicked and it came to me: make the A-line into a pencil! Can't be too hard, right? Well, it wasn't.try it Step by step

This works best with a skirt that zippers up the middle in the back. For the measurements, I cheated and just

Monday, October 18, 2010

Setting Up Netfirms' Domain Name with Blogger's Custom Domain

I bought a domain name from Netfirms a couple of weeks ago i must say they have one of the cheapest domains out there. I Googled for infos on how to setup the domain with Blogger's custom domain and what i found was a bit lacking. So i decided to make a complete guide on how to do it. Hope this helps. :)

1.Login to your NetFirms Control panel

2.Go to Domains > Domain Manager settings


3.To configure your A Record click on the “+” button next to the domain you wish to use

4.Click the "A Record" check box and add the following IP addresses.


216.239.36.21
216.239.34.21
216.239.38.21
216.239.32.21

5.Click on add.

6.To configure your CNAME record. Click the Sub-domain tab

Enter your sub domain name as www

Click the "CNAME" check box, Enter ghs.google.com as your Host Name

7.Click on add.

These usually takes up to 24 to 72 hours for the domain name to propagate. With my experience it only took  an hour to propagate.


For those who don't know how to setup Blogger's Custom Domain here is a quick guide on how to do it.

1. Login to your Blogger account select blog you want to use with your Domain.

2. Click on Settings > Publishing > Switch to: Custom Domain

3. Blogger is going to ask to "Buy a domain for your blog" but we already have one so just click on "Switch to advance settings"

4. Enter your Domain Name then Save Settings.

5. Lastly, After saving a check box for redirect will appear. Click the check box  to redirect YourDomain to www.YourDomain.com then save settings.

and.... your done.

Monday, October 4, 2010

Setting up an online store

 A friend of mine asked me how to setup an online store because she is thinking of starting one. So i created a list of what you will need to start. This may look simple but this is how I do it. Hope this helps her and some you guys.

Setting up an online store/e-tailer
what you will need
1. Products
2. Domain name
3. Hosting
4. Shopping cart
5. Website/Layout
6. Payment system
7. Marketing

1. Products
images of items to sell
description of products
price (wholesale or retail)

2. Domain Name
get catchy easy to remember name
preferably use .com via
you can get your domain at GoDaddy.com, Yahoo Domains or Network Solution
.com.ph or .ph are expensive to maintain

3. Hosting
reliable hosting w/ good customer support
good uptime
fast servers
ex. Bluehost, Hostmonster

4. Shopping Cart
use shopping cart system in .PHP or .ASP
you can also use flat file(html and CSS)
ex. Opencart, osCommerce, Zencart


5. Layout/Website
hire or make your own website
use shopping cart's free or paid templates

6. Payment system
use reliable credit card processor/gateway
small transaction fee
can be use for non-shopping cart implementation ie. HTML Buttons
can send money to the Philippine thru bank or cheque by mail(risky) or thru Paypal
ex. Paypal, Authorize, Linkpoint, Payeasy, 2checkout

Alternative payment
Western Union
Bank deposit
Globe's GCash
Smart's SmartMoney

7. Marketing
Online Ads
Print Ads
Guerilla Marketing



Stuffs you will need on hand
Credit or Debit Card
Identification Cards
Utility bills
Bank statements

Cost to setup( the cheapest i think)
Domain name $10
Hosting $50/yr
2Checkout $49
total: $109

Sunday, September 19, 2010

Using Blogger's Custom Domain with a Dot TK URL

Been using Dot TK redirection service for 5 years now. Recently i learned that they are now offering free DNS service. I wanted to test this out by using Blogger's custom domain. If you are currently using a DOT TK domain just login to your My.Dot.TK account and modify your domain, select "Use Dot Tk Free DNS Service" and configure using blogger's A and CNAME records.

Wednesday, August 11, 2010

Running Globe's Unlimail and eBuddy's Mobile Instant Messenger on a Non Supported Phone

I use this method whenever i want to try some Java MIDP applications on my old LG KU250 mobile phone. A brief description of Unlimail is that its a push email application made by Emoze for Globe Telecom and it runs on Symbian and Java MIDP capable phones. It can access multiple email such as GMail, Yahoo! Mail and MSN among other things.

First off we will need Mozilla Firefox and 2 Firefox addon namely WML Browser to simulate WAP browsing and User Agent Switcher.  To download the Unlimail application you will need to use a user agent that is close to your phone. In my case i'm using a 3 year old LG KU250 which they say is not supported so i choose to use a Nokia 3120 user agent. Once your user agent is set you can now go to the WAP site and download the application to your computer. When finish downloading from the WAP site you can now download it to your phone whether by cable, bluetooth or via card reader and install it and hopefully it will run.


With this method you can also download eBuddy's Mobile Instant Messenger. Proceed to eBuddy's mobile webpage get.ebuddy.com choose you phone model or for a non supported phone the closes to your model. I choose LG KU380 since my KU250 is not supported. Download the eBuddy application, install it and your done.

Monday, April 20, 2009

How To Remove A Magnetic Security Tag

 

I was surfing the world wide web when I found this very helpful How to for removing a Magnetic Security Tag. This would have been handy for me last Christmas werein the bag i bought has its magnetic tag still attached to the bag. I have to go back to the store which is a 3 hour drive from where i lived and the traffic was such PITA!

To remove the tag you just need to get a very powerful magnet. The easiest way to get these magnets is from your computer's Hard Drive. When I say Hard Drives I mean busted hard drives not the ones your using right now. You can go to a computer repair shop and buy them non-working hard disk or if your a good actor/actress ask for one for free. A warning though; make sure to keep your ATM cards and Credit cards away from the magnets as the magnets will definitely erase any data stored in your cards.



Once you have the magnet it's just a matter of making the magnet touch the security tag as shown in the images below and voila the tag is removed.



[via ziza.ru]