Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

ruger42

Donators
  • Content count

    123
  • Joined

  • Last visited

About ruger42

  • Rank
    InsanelyMac Geek

Profile Information

  • Gender
    Male
  • Location
    South Florida, USA
  1. Glad to be of assistance, it was a fun learning experience... Here's another script I found online that you can try for battery percentage: ioreg -l | grep -i capacity | tr '\n' ' | ' | awk '{printf("%.2f%%", $10/$5 * 100)}' Unfortunately I think you're out of luck with Hotmail - in order to get the number of unread emails you'd need to use IMAP, but Hotmail doesn't support that protocol, only POP3 which (from what I've read) doesn't provide the necessary functionality to retrieve such information. You can always forward your Hotmail messages to Gmail... If you do manage to figure it out let us know!
  2. Not using all cores?

    Double click on the CPU Usage meter and see what pops up...
  3. Here's some more stuff I found online for RAM, CPU, and Battery: #!/bin/bash ##Change the value of totalRAM to match the amount of memory in your computer myRAM=`top -l 1 -F -R | awk '/PhysMem/ {print "" $8+0}'` totalRAM=8192 myPercentRAM=`expr $myRAM \* 100 / $totalRAM` echo "RAM: $myPercentRAM%" myCPU=`top -l 2 -F -R | awk '/CPU usage/ && NR>5 {printf "%d", $7+0}'` myCPU=`expr 100 - $myCPU` echo "CPU: $myCPU%" ioreg=`ioreg -w0 -l | grep "ExternalConnected|CurrentCapacity|MaxCapacity" | awk '{print $5}'` my_ac_adapt=`echo $ioreg | awk '{print $1}'` max_power=`echo $ioreg | awk '{print $2}'` cur_power=`echo $ioreg | awk '{print $3}'` bat_percent=`echo "scale=2;$cur_power / $max_power" | bc` bat_percent=`echo "$bat_percent * 100" | bc | sed 's/.00//'` if [ $my_ac_adapt == "Yes" ] then echo "Battery: $bat_percent% ↯" else echo "Battery: $bat_percent% ⚡" fi I don't have a laptop so I can't verify if the battery percentage is actually working, but the rest seems to function properly...
  4. Don't know what to tell you, the Gmail code works perfectly for me as a single command or as part of the shell script: unreadCount=`curl --silent https://username:password@mail.google.com/mail/feed/atom/ | awk '/<fullcount>/{print}' | grep -o "[0-9]\+"` echo "You have $unreadCount unread emails at Gmail" Now gives me this: EDIT: Make sure you're not using your full email address as the username, I seem to recall reading that if you use the @ symbol in the username field the script will not work...
  5. Try this for the weather: weather=`curl --silent "http://xml.weather.yahoo.com/forecastrss?p=FRXX4403&u=f" | grep -E '(Current Conditions:|F<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/ F<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'` weather2=`curl --silent "http://xml.weather.yahoo.com/forecastrss?p=FRXX4403&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'` conditions=`echo ${weather2,,} | cut -f 1 -d ","` tempC=`echo ${weather2} | cut -f 2 -d "," | sed -e 's/^[ \t]*//' | cut -c1-2` if [ "$weather2" != "" ] then echo "It's $tempC degrees outside and the weather is $conditions." fi All combined it should look like this: This will get you the count of unread emails at Gmail (not my creation, found it on the web): curl --silent https://username:password@mail.google.com/mail/feed/atom/ | awk '/<fullcount>/{print}' | grep -o "[0-9]\+" I can't find any way to retrieve data from Hotmail...
  6. Here's some help with parts 1 - 3, but you'll need to update BASH to 4.2 for it to work properly (I followed the instructions here) #!/bin/bash hour=`date +"%H"` day=`date +"%e" | sed -E 's/([^1]1)$/\1st/'| sed -E 's/([^1]2)$/\1nd/' |sed -E 's/([^1]3)$/\1rd/' | sed -E 's/([0-9])$/\1th/' | sed -e 's/^[ \t]*//'` dayw=`date +"%A"` monthyear=`date +"%B %Y"` time=`date +"%l:%M" | sed -e 's/^[ \t]*//'` am_pm=`date +"%p"` username=`LOGNAME` if [ $hour -ge 0 -a $hour -le 6 ] then echo "Good night ${username[@]^}," echo " it's now $time${am_pm,,}." fi if [ $hour -gt 6 -a $hour -le 12 ] then echo "Good morning ${username[@]^}," echo " it's now $time${am_pm,,}." fi if [ $hour -gt 12 -a $hour -le 16 ] then echo "Good afternoon ${username[@]^}," echo " it's now $time${am_pm,,}." fi if [ $hour -gt 16 -a $hour -le 23 ] then echo "Good evening ${username[@]^}," echo " it's now $time${am_pm,,}." fi echo "Today's $dayw the $day of $monthyear." I'll try to come up with something for the weather a little later...
  7. How to load Hack OS in 32-bit mode?

    Depending on your bootloader, the Kernel Flag should be either -x32 or arch=i386 (you can put both if you're not sure which one you need)...
  8. DSDT

    DIY: http://www.insanelymac.com/forum/index.php?showtopic=235523
  9. To many RAM-slots on my H61M-D2-B2...

    From a discussion on the Apple forum: "In Mac OS X, the 32-bit kernel can actually use up to 32 GB of RAM (it uses a 36-bit memory addressing scheme). However, 32-bit applications are limited to 4 GB each." I'm running in 32-bit mode with 8 GB of fully functional RAM...
  10. Enabling all cores of i7-950?

    Double check your BIOS settings to make sure that HyperThreading is enabled, then try running Geekbench to see if all 8 threads show activity. Should look like this:
  11. To many RAM-slots on my H61M-D2-B2...

    That is not correct, 32bit mode can recognize up to 32GB of RAM. Before you try to change modes, check your com.apple.Boot.plist file to make sure you don't have maxmem=4096 as a boot flag. If not I would suggest creating your own DSDT file to see if that fixes your problem...
  12. Enabling all cores of i7-950?

    They don't show up as cores in hardware overview, but your system is recognizing them properly since you have 8 boxes displaying in the activity monitor.
  13. Enabling all cores of i7-950?

    Your processor only has 4 cores, the hardware overview is correct.
  14. Try the latest version of [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] instead of Boot-123
  15. Which Version of OS X should i install?

    Read the first post in the guide again, the author tells you to try iAtkos... There are plenty of other "distributions" of 10.5 you can try, iDeneb is only one of many choices, sometimes you have to try them all until you find one that will boot properly on your machine. Make sure you do the research, it's likely you will need to use some boot flags to get going...
×