chronx Find something you love to do and you'll never have to work another day for the rest of your life

7Dec/110

rename dir of jpgs with preceding dot

Posted by oxchronxo

debian based linux distros offer the rename command

rename -v 's/(.*)\.jpg/\.$1\.jpg/' *.jpg

How to Bulk Rename Files in Linux (Terminal or GUI)

Filed under: Ubuntu No Comments
19Sep/110

Updating hostname on Mac OSX

Posted by oxchronxo

temporary:
sudo hostname NEW_HOSTNAME

permanent:
sudo scutil --set HostName NEW_HOSTNAME[.local]

Tagged as: , No Comments
7Apr/110

Ubuntu please remember my wireless password

Posted by oxchronxo

1) right click on wireless antenna icon in the notification tray
2) click edit connections
3) click the wireless tab
4) double click the wireless adapter
5) check the box at the bottom that says "Available to all users"

next time you reboot you won't have to enter your keychain password to connect to your wireless network

11Jan/110

Turn off Macs click on volume change

Posted by oxchronxo

1) Load "System Preferences"
2) Click "sound"
3) Cilck on the "Sound Effects" tab
4) Deselect "Play feedback when volume is changed"

Tagged as: , No Comments
8Dec/100

4.2.1 is on its way

Posted by oxchronxo

23Nov/100

Restoring iPhone Software… … … … … …

Posted by oxchronxo

Recently I have been having problems making it through a full restore in iTunes. The process gets to about 99% in iTunes and about 65% on the phone and then it just stalls. Waiting doesn't help(I've waited up to 4 hours). A quick call to tech support(2.5 hours) and they had me ready to take my phone in for repair or replacement, say what?

Their first attempt was to completely remove all traces of iTunes from my mac and do a fresh install of iTunes after a reboot. That didn't work and ya' know what the worst part was... they had me move the directory with all my backups to the trash. Now I know what I'm doing so I made a backup of all this stuff as we were going, but the tech didn't suggest doing that and for the standard user this would have removed any possibility of ever restoring from a previous backup. Bad Tech!!! FAIL

They had me edit my hosts file and remove the stuff that TinyUmbrella inserts, then reboot. FAIL

They had me try restoring from another computer. SUCCESS. The other computer had an old copy of iTunes 9 on it and I had just updated to 10.1 so I made the assumption that it was a problem with iTunes. Then I went back to my computer and destroyed my current iTunes 10.1 and used iTunes 9 to try again. FAIL

At this point I couldn't think of anything that would be interfering...oh wait... I use "Wi-Fi Sync". So I went to their site and got the "uninstaller". Ran it and then rebooted. SUCCESS

Their site states that it is "...now fully compatible with iTunes 10.1" and that you should uninstall "Wi-Fi Sync" before updating/restoring in iTunes and then reinstall "Wi-Fi Sync" when done with iTunes.

By the way, "Wi-Fi Sync" is an awesome concept and works great. Go buy it and sync without wires.

23Nov/100

a photo was found in the iphoto library that was not imported

Posted by oxchronxo

Ever ran into this problem? Here's how to solve it.

1) Close iPhoto
2) Open Finder
3) Open Pictures folder
- In this folder you will find(for newer versions at least) a package called "iPhoto Library"
4) Press CTRL then click the Trackpad
5) Select "Show Package Contents"
- In this package you should find a folder called "Import"
6) Drag the "Import" folder to your Desktop
WARNING - Do NOT do anything else in this package
7) Close the package
8) Open iPhoto

4Nov/101

iPhone Mail.app… ERRRRRT CRASH

Posted by oxchronxo

Recently everytime I open mail.app on my iphone the app crashes. I have 2 accounts setup in the app, a personal gMail account and a corp Exchange account. I have a jailbroken iPhone 4 running 4.1.

Keep in mind that it's not the mail.app itself that is causing the problem, tons of people use mail.app with gMail and other accounts with success. It is typically another app interacting with mail.app the contents of the mail itself.

Here are some steps to determine if an account is causing the problem.
1. Disable all accounts in settings.app. Don't remove them just disable the "mail" option.
2. Let the phone sit/idle until the notifications on the mail.app icon go away. Which means there is no longer any data in the app itself. There is probably a better way by shelling into /var/mobile/Library/Mail or something but I had time to wait so blah.
3. Now try to open the app. At this point there are no active accounts so you should get the "add account". If you do not then keep waiting until that screen appears.
4. Try activating each account one at a time, load mail.app, and see if the crash happens.

So now you have isolated the bad account. For some people the crash happens because of mal-formed email. If this is the case some have suggested using a desktop client and removing mail until you find the culprit. But this solution blows because the problem will come back the next time you get a bad email.

For me it wasn't the mail it was another app. There is no "good" way to find the bad app, well unless you have "Crash Reporter" installed(seriously get it and help everyone out), so the rule of thumb is to think of all the other apps that deal with mail(Notified Pro, Grip, LockInfo, Attachment Saver, etc). If you don't use Crash Reporter your best bet is to uninstall each one, one at a time, and use the phone for awhile to determine if that was the cause. If you take this route do a full reboot between each uninstall. Once you find the source of the problem you have 2 options, leave it the way it is, or re-install the offending app and see if there are some tweaks you can make to that apps settings that will fix the problem.

For me I used Crash Reporter which basically "told" me that the problem was in a library belonging to Notified Pro. So I opened "Notified Pro" to see if there were any settings for mail. Sure enough I went to its settings, selected "Manage Alerts", selected mail, and turned off "Log Notifications"(which to be honest was getting a little annoying anyway since I get a new email every 5 minutes or so). Mail.app works fine now

27Oct/100

Eject stuck CD on OSX

Posted by oxchronxo

drutil eject

which is a synonym for...

drutil tray eject

to see other options

man drutil

still stuck, try this...
turn off the computer and boot the machine while holding down the Trackpad button(this forces an eject)

Filed under: Uncategorized No Comments
24Oct/100

Converting line endings

Posted by oxchronxo

on ubuntu...
to do basic line ending conversion use

sudo apt-get install flip

for mac CR only terminators use

sudo apt-get install recode