Click here to check if anything new just came in.
March 09 2010
Reduction ad Palindromo
It is claimed that all numbers, when reversed and added to theirThe following is my solution:
reversal repeatedly, will eventually become palindromes. Write a
program that allows a user to enter a number and then displays the
series of efforts to find its palindrome. If the statement turns out
to be false, stop iteration of your program after some number of tries
to find the palindrome.
#!/usr/bin/python def partition(obj): """Return a triple of the first half, middle (if it exists), and last half of an iterable object. """ ctr, odd = divmod(len(obj), 2) fwd = obj[:ctr] if odd: mid = obj[ctr] aft = obj[ctr+1:] else: mid = None aft = obj[ctr:] return (fwd,mid,aft) def palindromic(obj): """Return the palindromicity of an object.""" if type(obj) == type(list()) or type(obj) == type(tuple()): pass else: obj = list(str(obj)) front,mid,rear = partition(obj) return front == rear[::-1] def reductio_ad_palindromo(num): """If a number is not palindromic, sum it and its reverse. Repeat until a a palindrome is found. Return a list of all attempts. """ num = int(num) # Make sure its an int. iterations = [] def pal(n): iterations.append(n) if not palindromic(int(n)): pal(n + int(str(n)[::-1])) pal(num) return iterations if __name__ == "__main__": """Since this most likely will be ran from `bash`, return the array in the form of a space delimited `bash` array.""" from sys import argv print " ".join([str(i) for i in reductio_ad_palindromo(argv[1])])
I am not sure what she means by this antecedent, "if the statement turns out to be false," but Python's got the antecedent covered. Python will stop a recursion automatically after 1000 loops, that is unless it is told otherwise.
March 08 2010
I subscribed to shedskateboards’s channel on YouTube.
I subscribed to hgoodman9’s channel on YouTube.
I subscribed to rajdaggubati’s channel on YouTube.
I subscribed to sweetestpea3’s channel on YouTube.
I subscribed to mbrich422’s channel on YouTube.
Accessing Apple Time Capsule From GNU/Linux
If one wants to have write access and has already connected to the share with Nautilus, unmount or "eject" it. Then, run sudo mount.cifs //10.0.1.1/"My Book" /mnt/tc -o pass=$tr0ngP@55w0rd from the command-line, where 10.0.1.1 is the IP address of the Time Capsule, My Book is the name of a drive connected to the Time Capsule, /mnt/tc is an empty directory designated for use as the mount point, and $tr0ngP@55w0rd is the Time Capsule base station password. If all goes well, a connection to the drive should be established with both read and write access. This is all fine and dandy if one wants temporary access to the Time Capsule, but for a more permanent mount, one must edit fstab.
The fstab configuration file sets mount points for the system at boot time and is located at /etc/fstab. To set a longer lasting mount point for the Time Capsule, open fstab using a text editor and append the following line:
The string fragment "\040" is used in this line to designate that a character space is being used. Everything else should be self-explanatory.//10.0.1.1/My\040Book/Share /mnt/tc cifs password=$tr0ngP@55w0rd
If all goes well, a permanent read/write solution has been established from a GNU/Linux system to an Apple Time Capsule. Many thanks goes to Ubuntu Forums and Linux Forums for all the help.
Now with this solution and PS3 Media Server, my home computer network has become a little more connected.
March 07 2010
Streaming Media From Linux to PS3 With
Today, I set up a program called PS3 Media Server, or PMS for short, on my home network. It is an application that makes it possible to stream media from one's desktop computer to a PS3. It's pretty handy and sure beats dragging and dropping files to a USB drive just to watch or listen.On first try, streaming was a bit too fidgety for for my wife's and my tastes, so we opted to do a network copy instead. Although we had to wait for the copy to finish before we could begin watching, we still did not have to dig out a thumb drive, but stutter free streaming would definitely be best. We were just too impatient and wanted to watch an episode of Stargate Atlantis over our fancy new PMS setup now and could not wait on me monkeying around with configurations until streaming was perfect.
In addition to streaming and copying movies to the PS3, other great features include:
- YouTube Viewing
- Podcast Streams
- Internet Radio
- Image Streaming
EDIT:
I thought that the PS3 may have used some proprietary locked-in service to do its streaming, but I was wrong. After doing some more research, I found out that the PS3 uses a technology standard called DLNA to do its streaming. I posted a question on a forum to find out if in fact PMS was my best option. And now I await answers.
March 05 2010
What's the Best Way to (and Why Should I) Create a Home Inventory? [Ask Lifehacker]
Dear Lifehacker,
In light of all the natural disasters wreaking havoc across the globe, I've realized I should take a home inventory to document everything I own for insurance purposes. What's the best way to do this?
Signed,
Happy Homeowner
Hi Happy,
You're smart to want to document your possessions in case of burglary, damage, or fire. The short answer to your question: The best tool for the job is the one you'll actually use.
Taking a home inventory isn't really hard, it's just time consuming. It's also extremely important; a good inventory will speed up the insurance claims process and ensure your insurance takes care of everything you lost. (You do, of course, need the insurance.)
Many tools can guide you through taking your inventory and storing it (we'll list some below), but the basics are pretty simple. You'll want to take pictures of all your stuff. (It's also a good idea to snap pictures of serial numbers of your gadgetry.) If you've got a video camera, you can simply walk through your home and film every room for a good and simple start.
It's also very important that you store your inventory outside your home in some form. You could store it at your office or somewhere else outside of your home. If it's digital, upload it to a server somewhere. Videos can go to YouTube or Vimeo (marked as private), images can be uploaded to Flickr, synced with Dropbox, or emailed to yourself. Of course, that's sort of the minimum.
We've covered a lot of home inventory software, tips, and ideas at Lifehacker, so let's take a look at some of your options for managing your inventory.
- Know Your Stuff Inventories Your Home - This free Windows/Mac download from the Insurance Information Institute not only keeps a database of all your stuff, it also lets you export the file for offsite storage.

- Inventory Your Home or Office with StuffSafe - A free web site that stores pictures, descriptions, and other vital information about the stuff you own. It's web-based, so you don't have to worry about losing your inventory if something happens to your home.

- Photo Inventory Your Stuff - At the very minimum, free online photo storage sites like Flickr make great safehouses for photo documentation of your belongings. Just take some pics and make a "home inventory" set; it's better than nothing.
- Declutter Your Home with a Detailed Inventory - A nice side benefit of a thorough home inventory is that you can declutter and get rid things you don't need along the way.
- ManageMyHome - Reader wjglenn recommends checking out ManageMyHome.com for tracking home inventory and managing home projects.
Readers, we'd love to know how you manage the monumental task of documenting your possessions. Share your ideas in the comments.
Love,
Lifehacker
Thanks, Lauren!
March 04 2010
The BK Noah's Ark: Two Of Every Kind Of Patty From Burger King (Plus Bacon Strips!) - Geekologie
Shared by Kaleb Hornsby
Fish patties? Fish weren't on the ark.
www.npc.navy.mil
Shared by Kaleb Hornsby
What's in the check off sheet to earn this I wonder?
A Public Funded "Microsoft Shop?"
Shared by Kaleb HornsbyAn anonymous reader writes "I work at a public hospital in the computer / technical department and (amongst others) was recently outraged by an email that was sent around our department: '(XXXX) District Health Board — Information Services is strategically a Microsoft shop and when talking to staff / customers we are to support this strategy. I no longer want to see comments promoting other Operating Systems.' We have also been told to remove Firefox found on anyone's computer unless they have specific authorisation from management to have it installed under special circumstances. Now, I could somewhat understand this if I was working in a company that sold and promoted the use of Microsoft software for financial gain, but I work in the publicly / government funded health system. Several of the IT big-wigs at the DHB are seemingly blindly pro-Microsoft and seem all too quick to shrug off other, perhaps more efficient alternatives. As a taxpayer, I want nothing more than to see our health systems improve and run more efficiently. I am not foolish enough to say all our problems would be solved overnight by changing away from Microsoft's infrastructure, but I am convinced that if we took less than half the money we spend on licensing Microsoft's software alone and invested that in training users for an open source system, we would be far better off in the long run. I would very much like to hear Slashdot's ideas / opinions on this 'Strategic Direction' and the silencing of our technical opinions."
What happened to lowest bidder contracts?
Read more of this story at Slashdot.
Registration for Google I/O 2010 is now closed
Shared by Kaleb Hornsby
:( I wanted to go.
March 03 2010
Life Before Google
Shared by Kaleb HornsbyOn the theme of research before the internet era, Daniel Kirk shared this cartoon:
Awesome.
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...





