Unix Super Tip: How to CHMOD all your files recursively

| No Comments »

Problem: How do I set permissions to my files and/or directories without manually setting them up individually?

Note: You may need administrator privileges for these to work, if that’s the case simply add a sudo before typing the commands below.

If you want to chmod all your directories:

find . -type d -exec chmod 755 {} \;

and for files:

find . -type f -exec chmod 644 {} \;

That’s it!


How to: Count your regex pattern matches in python

| No Comments »

Problem: I need to display the number of times my regex has matched.

Solution: No Problem! Use the len (abbrev. for length) function:

import re >>> regex = re.compile(r”your pattern here…*”) >>> match = regex.findall(“the contents…”) >>> len(match) 10

That’s It!

On a side note, you can also use len to count the number of characters in a string.

>>> text = “All your base…” >>> len(text) 16

Unix Super Tip: Easy Access to your files and directories by creating symbolic links(shortcuts)

| No Comments »

The directory structure of Mac and Linux(both are UNIX) tends to get really _really_ long. But don’t worry, by using the ln -s, or Symbolic Link command in the terminal(unix shell), creating “shortcuts” to your folders or files is now a breeze.

ln -s   Here’s an example: ln -s /Library/Python/2.5/ /shortcuts/PYTHON  

The effect: cd /shortcuts/PYTHON is now the same as cd /Library/Python/2.5/, removing a shortcut is similar to removing a file: rm /shortcuts/PYTHONthat’s it!


How to: Fix Adium can’t connect to Yahoo Messenger

| 21 Comments »

Help: Adium can’t connect or is unable to connect to Yahoo! even after restarting the application or the whole OS.

__UPDATE__(6/24/09), Important!

Adium’s latest update includes a fix for this bug so please do download the update and after installation please make sure your connection’s login server is back to the default: scs.msg.yahoo.com, and ports: 5050, that should fix it.

Here’s a quick fix to this problem

  1. Disconnect(or Cancel) if your account is currently connecting.
  2. Change your connection’s login server from scs.msg.yahoo.com to 66.163.181.106, leave port 5050 unchanged. (You can do this by going to File -> (Select your Yahoo! Account) -> Edit Account, you can also do this in the File -> Preferences -> Accounts -> Edit
  3. Try Connecting Again.

That’s It! The steps above should be done to _each_ of your yahoo accounts.

__UPDATE__: This solution works for Pidgin as well so you may want to share this with your pidgin buddies who are experiencing the same problem.

Ciick here to share this solution with others who are experiencing the same problem!


Opera’s New Technology, Opera Unite, opens endless possibilities

| No Comments »
With all the sad stories of attempts in changing how the web works, it’s a good thing Opera did something that works very well even in a premature state(still in beta as I type)

Watch the following video to get the hands up of things: httpv://www.youtube.com/watch?v=D5hr-6cw4M8

Think of Opera Unite as creating your own server without any hassle at all! The browser itself serves as your gateway with communicating to the outside world (this is through the use of P2P technology), if you want to share your files, stream your music from anywhere, chat with friends(or anyone) everything is done with 0 configuration. You simply install the Opera 10 Browser (here), that’s it! it’s already preinstalled, click on the door with an arrow icon found on the brower’s corner (top left) and click on the propeller-like icon (hover on it and you’ll see Opera Unite), a list of available services (Media, File Sharing, Photo Sharing, Lounge and possibly more in the future) will show up. Double click on the service you want to run then login(registration is also hassle free) and that’s all there is to it! You will be given a url that you can share to friends or use for yourself so you can be connected to your files at all times! You can make your service available to everyone, limited(this is the default, a password is displayed that you can share to your those who you want access to your services to), or Private(for yourself only)

So that’s it!, once you have your services turned on, simply give your url to your friends. Remember to give them the password to your services that has Limited access’ passwords as well(each service has their own password, setting them up yourself is much preferred of course!)

Oh and did I mention that your friends don’t need to have Opera installed to access your services? Firefox, Chrome, Safari and other next generation browsers works fine! You only need Opera 10 if you want to run your service.

I’m using Opera Unite to:

  • Chat with Fellow Developers
  • Stream my music from anywhere
  • Share my photos with my friends and family

With more services to follow, Opera Unite will always be in one of my “must-have” software installed in my computer.

With all the joys and positivities surrounding the new technology, there are still some quirks that needs to be patched up(namely the webservice server isn’t living up to what all web developers are expecting) but to be fair Opera 10 is still in it’s beta stages so with all the good things it have right now, we are bound to see more surprises soon.

Kudos Opera! You have won yourself a fan.


How to: Fix “BOOTMGR IS COMPRESSED” error

| 90 Comments »

Problem: So I’ve decided to turn off compression(My Computer -> Select a Drive -> Right Click “Properties”) to speed up my computer. Compression saves disk space but it seems to slow down my computer whenever it’s accessing massive amount of files.

I was prompted to restart my PC so I did, I was then greeted by an error that says:

BOOTMGR IS COMPRESSED

Press Ctrl+Alt+Delete to Restart

SOLUTION(s):

There are 4 (possible) fix for this problem.

Option #1: Boot from your Windows Vista DVD and select Repair your Computer -> Startup Repair.
Option #2: Boot from your Windows Vista DVD and select Repair your Computer -> Command Prompt, execute the following commands: bootrec /fixboot bootrec /fixmbr Reboot.
Option #3: At the prompt to select your OS installation, click the button that says ‘Load Drivers’. This should bring up a explorer-style drive browser.Then just right-click on the drive you tried to compress, and deselect ‘Compress this Drive’, which should still be ticked on. Hit apply, and apply to subfolders/files. Reboot.
Option #4: Boot from your Windows Vista DVD and select Repair your Computer -> Command Prompt, in the command prompt, execute the following commands by typing them and pressing enter for each line: c: expand bootmgr temp attrib bootmgr -s -r -h del bootmgr ren temp bootmgr attrib bootmgr -a +s +r +h Reboot.(If the 2nd line fail, go back to 1st line and replace C with the drive letter of where your windows is installed.) -OR- execute the following where C is where your windows is installed: (thank you Liviu from Neosmart.net for sending this in) compact /U C:\bootmgr compact /U C:\ntldr

That’s it! Hope that helped you out.


How to: Create logos in 1 easy step (placeholder purposes)

| No Comments »

Looking to build a logo but don’t have the time? Need a temporary logo for your website, software or documents? Here’s a good website that you might find very useful. Logo54.com allows you to create similar logos of the following:

Here are some examples:

logo-paw

logo-mock

logo-omg

Pretty nifty huh? Oh, and please remember that the patterns used for building these logos are patented (copyright?) so only use it for placeholders or “just-for-fun” activities.


Yahoo! Mail and Yahoo! Profiles gets updated with new social networking features

| 1 Comment »
May 08, 2009: Yahoo! has updated with new social networking features.

If you haven’t checked out yahoo profile for quite some time now, now is a very good time. Yahoo has breathe new life into yahoo profiles by adding some very neat social networking features that will keep you updated with your connections straight from your yahoo mailbox and yahoo profile’s welcome page. Yahoo’s new social networking feature, which yahoo dubs as Connections, will keep you and your contacts(you need to invite them first) updated, once connected your contact’s updates (See list of supported 3rd party below) will show up in your yahoo mail and profile welcome screen. New features include:

  • Prioritized Email(Yahoo Mail) – A seperate tab that says: “From Connections” will now be available in your inbox, clicking this tab will display emails from your connections.
  • Smarter Inbox(Yahoo Mail) – With the smarter inbox feature, priority emails will not get lost in your mail anymore.
  • Social Networking(Yahoo Profiles) – Stay updated with your contacts and see what are they up to.

It is going to be interesting where this is going to, right now your connections can only share the following updates:

Screenshots

Stay connected with the new Yahoo Profiles

Stay connected with the new Yahoo Profiles

Yahoo Connections Invite

Invite your contacts to connect through Yahoo Profiles

Yahoo Mail Welcome Screen

Yahoo Mail Welcome Screen

Yahoo Mail: From Connections

Yahoo Mail: From Connections

Don’t forget to send me an invite! wowcyber@yahoo.com


How to: A beginner’s expert guide on blogging your way to the top.

| No Comments »
After writing my 6th post, i’ve decided that i’m now an expert blogger. This is a beginner’s expert guide on blogging your way to the top.

Hey, look. Isn’t that a great idea of yours that have just passed through? Ideas flashes in an instant so it’s only natural that you could forget it just as fast – this is always a bad thing because that idea that you let passed through you? That could’ve been “the” post that could’ve made you an instant hit.

Drafting your ideas should be your #1 priority. This writing as of now is an idea that suddenly popped out of nowhere while writing a blog about a game. Ideas usually comes up in the weirdest times(and places) so make sure you’re always ready for it. Whenever that happens, I stop whatever I’m doing, fire up my notepad and start writing right away. One idea leads to another so don’t break it up by letting any of those ideas pass through. So draft, save and continue editing it in a later date. Before you know it, that little idea of yours has already become a very interesting blog on it’s own. This is one of the key to having many things to blog about in the future.

Chop ’em down Sometimes even a well written post can be very exhausting when it’s too long. Break your posts down by sections or find a way to split some parts into an entire different post if its possible.

It’s all about quality of the content… How you write your content is very important. If you get a lot of visitor hits or traffic but your content is mediocre then it won’t matter, you are just turning them off and making them vow not to visit anything related to your website again, so take some time, grabe a coffee and polish your content. Getting visitors is one thing but keeping them is another.

… and the blog title How do you invite a visitor to read your content? That’s the job of your blog title, it’s the door that seperates the visitors from the blog itself. Placing a very uninteresting title is like putting a "Do not disturb" sign so make your title really stand out, read it over a couple of times and think: "If im a regular reader, will I find this title interesting?".

Nothing personal, you’re just becoming too personal. Hey let’s face it, unless all visitors are friends and relatives, personal blogs about ourselves is just plain too uninteresting. I won’t be getting as much hits as I have now if my blogs is all about what I’ve done during my vacation, what I got for my birthday or whatever, no one cares. But don’t let me get you too worked up here, personal blogging is a-ok! just avoid having too many, unless you can make them very interesting. If personal blogging is more of your thing then you might want to try twitting instead.

Reach a wider audience by sticking to a certain theme and creating an online persona. Setting a certain category or theme to your blog will put some interests into your links and post. A reader from google who found you through a keyword for Technology might not be interested to click your recent posts about cultures or cooking, stick to a few themes and all your posts will now be related to each other, which your readers might find interesting. A wider audience is good but if you become too diverse, you will lose more readers than usual. If you prefer to blog about anything, then a very good way of attracting your users is through an online persona(build your own character, create a style of writing, cosplay, act) and carry it throughout your posts. Chances are, people will subscribe to you because they find how you write very interesting or entertaining.

Do something special or unique. What makes your blog super-special? Exclusive contents of course! Contents that you can’t find anywhere but yours. Do something very original! did you a create a cool application? are you a beta tester of an upcoming hyped up game? Did you discover the meaning of life? or perhaps you made an awesome video? then blog about it.

Get your name out there. Explore, Connect. Be part of communities, participate in forums. Post a smart or helpful comment in other people’s blogs. Help people in IRCs. Join social networking websites. Getting your name out there by participating and being part of a large community is sure fire way of getting good traffic.

Share anything useful. Have you finally found the solution to a problem that’s been plaguing you for quite some time now? If you had this problem then chances are, someone else is having the same problem as yours right? Make things easier for other troubled users by blogging about it.

Motivate yourself. Getting addicted to blogging, or writing content is of course, the most important part to blogging. Installing WordPress Stats, Google Analytics, Woopra, CrazyEgg or myBlogLog to keep track of your visitors Sources(where they come from), Unique Visitors and what search keywords they used to get to your site is a great way of motivating yourself.

People are People. They have other important things to attend to as well. I respect my readers and their valuable time – that’s why I always have something in the start of my post detailing what they’re about to read to save them the trouble of going through the content only to find out what they’re looking for isn’t there.

Get Addicted to Blogging, Do a lot of Drafts, Have a lot of fun, and most importantly have a lot of heart


Versus Mode: Soulja Boy vs Screwattack and the rest of the internets

| No Comments »

screwattack-vs-souljaboy

Ok if there’s something we really know Soulja Boy(Soldier Boy) of, besides his hit single: Crank dat(Superman), is how this kid knows how to use the Internets (Viral videos via youtube). From the looks of things though his open challenged seems real enough (although some would argue that it’s a publicity stunt made for xbox 360). Now for everyone who don’t got any idea what started it all, be entertained as a group of video game nerds (Screwattack), representing all of the internets (and they have the rights to say so), gets their game on and accepted the open challenge, watch the following videos (chronologically ordered because I love you all awww):

httpv://www.youtube.com/watch?v=uHXBqo6RgN4

httpv://www.youtube.com/watch?v=74Dg9nvt-i8 Lol, Pokemon? Soulja Bitch? This is why I love Screwattack.

httpv://www.youtube.com/watch?v=CpW-X5B3MyU

and Soulja Boy’s response?

httpv://www.youtube.com/watch?v=EPtRx7RKY5s&feature=PlayList&p=A1405E7BFB1BAE0C&playnext=1&playnext_from=PL&index=2

httpv://www.youtube.com/watch?v=6B4-FCOhvcQ&feature=channel_page

I’m not sure what happened after he accepted the challenge though (besides Soulja Boy deleting his acceptance challenge in his official website) :/, well one thing’s for sure Screwattack would have updated us if something did happen so it probably never did. Now that you’ve seen how cool the people over at Screwattack is then you might want to check some of their other cool stuffs as well.

Oh and here are some of Soulja Boy’s videos against that MTV guy:

httpv://www.youtube.com/watch?v=qmImERn4rsc&feature=related

httpv://www.youtube.com/watch?v=87NC8VXF-8I&feature=PlayList&p=46B12887ED1FD89D&index=3

httpv://www.youtube.com/watch?v=FIdZhFk4Qzc&feature=PlayList&p=46B12887ED1FD89D&index=4 Lol. Classic button mashing? Sorry to break it to you.