Profile

Cover photo
Michael Murphy
Works at Unemployed
304 followers|462,311 views
AboutPostsPhotosYouTube

Stream

Michael Murphy

Shared publicly  - 
 
Linux saves the day.
 
Recover data from a corrupt Windows drive with Linux

This week we had a call about a Windows machine that wouldn't boot up. While diagnosing the problem it became obvious that Windows was corrupted beyond repair and needed to be reinstalled.

Normally we are able to remove a hard drive and plug it into a Windows computer as an external USB drive. That allows us to copy the data over before doing anything drastic to the drive itself.

However, in this instance Windows could not read the drive and instead prompted to format it!

Obviously that would not do.

The simple solution we found was to plug the drive into a Linux computer. It read the drive normally and we were able to back up the data.
2
Add a comment...

Michael Murphy

Shared publicly  - 
 
Interestingly, a KDE developer fixed a bug within minutes of me reporting it: https://bugs.kde.org/show_bug.cgi?id=336646

For anyone that wants a fix for this issue right now, install this go.xml file to /usr/share/apps/katepart/syntax: https://gist.githubusercontent.com/mmstick/5f77c1366ae8921db7c9/raw/a43f7ddf29f47e7dc313e709a27b12baac7e2987/go.xml
1
Add a comment...
 
Just for the heck of it, I made a KDE theme to go alongside that Kate them I made earlier. #KDE
1
Add a comment...

Michael Murphy

Shared publicly  - 
 
... And I finally got this working well. The output of default and long mode of my golang implementation of ls in action is below.

#golang  
1
Michael Murphy's profile photoAustin Heisley-cook's profile photo
2 comments
 
+Austin Heisley-cook Arch Linux
Add a comment...
 
Does anyone know the correct way of converting group id's from files into group names in Linux? There is a package that does this for usernames (os/user) which provides the user.LookupID() function, but there isn't anything to do the same for groups.

I'd also like to mention that I have found the speed of user.LookupID() to be extremely sluggish, which I have also reported here: https://code.google.com/p/go/issues/detail?id=8264
3
1
george oloo's profile photoTristan Colgate's profile photoRobert Obryk's profile photoLars Tørnes Hansen's profile photo
9 comments
 
Yes, but it works only for systems which store group info in /etc/group. Many systems that share authentication store group info in some other way and use NSS libraries to provide access to it.
Add a comment...
 
A relative informed me that when I was in Plano, Texas, the entire town of Nashville, Arkansas, where I live, was without Internet for 14 hours -- AT&T having issues as usual. I'm always having this suspicion that AT&T only has one fiberoptic line holding the entire southwest section of Arkansas together on the Internet. People were freaking out since they couldn't perform their jobs without Internet. Of course it doesn't help that your only choice of Internet is either AT&T or dialup here.
2
Michael Murphy's profile photobrianna outlaw's profile photo
3 comments
 
Dang
Add a comment...
In his circles
23 people
Have him in circles
304 people
 
Found an interesting tip for drastically improving responsiveness of a system by caching all of /usr in RAM on boot without using squashfs. You can simply have the following command execute on boot:

echo 10 > /proc/sys/vm/vfs_cache_pressure
echo 99 > /proc/sys/vm/dirty_ratio
echo 50 > /proc/sys/vm/dirty_background_ratio
(nice find /usr -type f -print0 | nice ionice -c 3 wc -l --files0-from - > /dev/null)&

It seems to work by reading every line of every file in /usr, which the kernel will hold that in cache as it writes the output to /dev/null. It's a good idea to also increase the amount of RAM the kernel will use for read/write caching.

Placing it in /etc/rc.local is an example of how you can get it to do this on boot. After executing the command, all my programs open up instantly (after it finishes caching). Of course, you need more RAM than you have files in /usr to have this work well.

#Linux #optimization #optimizationtips  
1
Vignesh Palani's profile photo
 
Nice tip.. Thank you..
Add a comment...
 
I've made another Kate color scheme: Blue Night. It is also available on kde-look for download: http://kde-look.org/content/show.php?content=165856
1
Add a comment...

Michael Murphy

Shared publicly  - 
 
If you are using the Kate text editor for programming, you may find this useful. I have recreated the monokai color scheme in Kate, and have uploaded the color schema to KDE-Look: http://kde-look.org/content/show.php?content=165852

#Kate #KDE  
2
1
Michael Murphy's profile photoBhaskaran Payyanur's profile photoBrad Fonseca's profile photo
3 comments
 
+Bhaskaran Payyanur Lost emails? What are you talking about?
Add a comment...

Michael Murphy

Shared publicly  - 
 
Still going at it. #golang  
1
Michael Murphy's profile photoSimos Katsiaris's profile photo
2 comments
Add a comment...

Michael Murphy

Shared publicly  - 
 
I've just installed Go 1.3, which is 45 MiB lighter (315.17 MiB to 269.93 MiB)  than the previous version, and tested out the compiler binary size efficiency and time to compile between 1.2 and 1.3 with the entire go-coreutil suite, which I have been working on nonstop the last week.

The binary size was reduced from 63.2 MiB to 51.4 MiB -- an 18.73% decrease in size. The compile time was reduced from 1719 milliseconds to 980 milliseconds -- a 42.99% decrease in time.

I've since completed a golang implementation of date, dirname, basename and wc, while improving my prior ls code drastically, which now supports printing in long mode format, which required a slight bit of lower-level system programming with the syscall package to obtain the user/group ids of files. According to github, I am a top contributor to the project with 1,815 added lines of code and 856 lines removed.

Lately I've been trying to write code that relies on the main function as little as possible, and instead uses many small functions that do one thing, but do that one thing well with good documentation above them for how they work and what they do.

#golang  
2
1
János Fehér's profile photo
Add a comment...

Michael Murphy

Shared publicly  - 
 
I've completed yet another coreutils program in Go. I've also sort of joined the 'GO-Coreutils develeopers' team, and I've submitted both my ls.go and wc.go to the project, while also rewriting a sizable portion of their existing mv.go code.

#golang
1
Add a comment...
People
In his circles
23 people
Have him in circles
304 people
Work
Occupation
Unemployed IT Genius
Skills
Information Processing, Adaptability, Mathematics, English, Writing, Creative Writing, Critical Thinking, Complex Problem Solving, Judgment and Decision-Making, Active Listening, Planning, Persuading, Strong Work Ethic, Time Management, Self-Confidence, Conscientiousness, Typing at 100 WPM, Computer Hardware and Software Repair, Shell Scripting, Scheduled Backups, Security, Office Suites, Desktop Publishing, Image Manipulation, Multimedia Transcoding and Streaming, Systems Administration, Server Administration, Network Administration, Cable Management, Switches, Routers, Access Points, RDP, VNC, SSH, Golang, C++, Bash, Python, LibreOffice, Microsoft Office, GIMP, Photoshop, Scribus, InDesign, ffmpeg, VIM, NFS, Samba/CIFS, Windows: XP, Vista, 7, 8; Linux: Ubuntu, Debian, Fedora, Gentoo, Arch, Sabayon; Mac OSX
Employment
  • Unemployed
    Computer Repair and Custom Building, 2012 - present
    Refurbishing old machines with Ubuntu. Upgrading or building new low-cost but powerful Ubuntu machines. Offers personal technical assistance and training. Designs IT solutions to all customer needs. Actively experiments with the latest open source software and Linux distributions; often testing and debugging new unstable software releases; engages in the Linux community; actively monitors Linux news sources and Git repositories to stay on top of the latest developments in FOSS/Linux. Spends all hours of the day experimenting with anything and everything in regards to Linux, such as bash scripting, finding solutions to various problems, and distributed computing.
  • Howard Memorial Hospital
    IT Intern, 2010 - 2011
    Keeping records of all the available IP-connected devices, RDPing to Windows desktops and performing regular maintenance updates and upgrades, solving user errors, performing maintenance of printers, auditing computer and network equipment, installing new systems, computer repair, and managing networks.
Contact Information
Home
Email
Story
Tagline
IT Extraordinaire and Intellectual Rapist
Introduction
I speak concisely, or not at all.
Bragging rights
Graduated High School at age of 14; Graduated IT College at the age of 18; Graduated as Magna Cum Laude with the highest GPA; Owns a personally encoded anime archive of 14,000+ anime episodes and 500+ series; Can master a programming language within a week
Basic Information
Gender
Male
Birthday
July 30
Other names
mmstick
Links
Contributor to