The following quick command can be used to kill one or more processes found using the combination of ps and grep.
ps -ef | grep FooBar | awk '{print $2}' | xargs kill -9
Things that amuse me...
The following quick command can be used to kill one or more processes found using the combination of ps and grep.
ps -ef | grep FooBar | awk '{print $2}' | xargs kill -9
Posted by marcM at Wednesday, April 18, 2012
Received the following error from a Ruby application when it called require 'json'.
irb(main):002:0> require 'rubygems'
=> true
irb(main):004:0> require 'json'
LoadError: no such file to load -- json
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):4
from :0
sudo apt-get install libjson-ruby
irb(main):001:0> require 'json'
=> true
Posted by marcM at Saturday, April 14, 2012
Tags: json, linux, programming, ruby, ubuntu
Posted by marcM at Tuesday, February 21, 2012
Tags: linux find xargs
A few tips, tricks, gotcha's, and other findings from working with Django for Python.
Posted by marcM at Friday, July 29, 2011
These cool tools are awesome for tweeking your Linux workflow. Admin multiple machines at the same time, add GUI dialogs to your bash scripts, and more.
In Short: shFlags, xvkbd, xclip, Zenity, cssh, tree
| Zenity Date Select Dialog |
Recently, after moving to a different timezone, I noticed that my automated backup scripts were failing. Why? They were running based on the old timezone (during a disallowed time).
To update to the new timezone, specify the correct timezone in the directory path below:
cd /etcIssue the date command to see the new date/time/zone.
sudo ln -sf /usr/share/zoneinfo/US/[yourzone] localtime
Posted by marcM at Thursday, March 17, 2011
Tags: linux, localization, time, timezone
My Google search results recently returned a couple of Google tools that I hadn't seen listed yet. I occasionally browse the more | even more page in my Google account to see what's new. Here are two tools I haven't seen listed there yet (one very useful, one just for fun).
Posted by marcM at Thursday, March 10, 2011
A recent issue of Database Trends and Applications magazine quoted a Forrester Research study that found 80% of database installations only use 20% of the features provided. My estimation is that this statistic also applies to other software, especially some of the most "popular" used and required on home, school, and office PCs. And this is a large aspect of why open source software should be used, encouraged, and by no means discriminated against in the public arena.
Let's avoid any anti-Windows or anti-Microsoft propaganda or personal preference. Anyone who knows me, already knows my personal preference for Ubuntu Linux anyhow. I'm going to focus briefly on the MS Office suite of applications, because as we know it is the dominant software in this arena.
My wife does things with MS Office at work that would make most people's head spin. She needs and uses the power, APIs, and scripting that it provides. She justifies the $X for her corporate license for Access, Word, Excel, etc. At home, she uses a word processor, rarely, for basic documents and a spreadsheet for rosters with name, address, etc. There is no justifying the expense of MS Office for home. She will occasionally use the old copy of Office97 from our college days, but our primary productivity software is OpenOffice.org. For me, running a Linux desktop, it's always OpenOffice or other open software.
If a corporation decides to buy a corporate license for MS Office or other proprietary productivity software, that's fine by me. When a government spends tax money on licenses for employees who don't use/need the added functionality, it's misuse of resources.
When a public school requires students to use MS Office to read an assignment downloaded from the Internet or as the only format for submitted assignments, there is a problem and an unfair bias toward students who can afford home computers and more over the MS Office software. This irks me. Of course OpenOffice can read/write to MS Office formats, so those "in the know" are OK (most of the time) but the majority of educators do not know this and if they do it is not taught or explained to students.
Teach students fundamentals, not memorized specifics, so that they can rapidly adapt and learn a variety of tools. I have seen countless times educators and students alike turn aside from alternative software options because it's "not the same," "too different," "too hard." The fundamental differences in MS Office and OpenOffice are negligible, and in my opinion, no more difficult to grasp than when MS Office dropped the menu bar and got all decorated with ribbons and bows. Users adapted to the changes due to necessity. It is no more difficult to adapt to another office suite.
The principle of cost vs features vs needed features vs compatibility, should be looked at in all organizations from small to large corporations, schools, governments, churches, and non-profits.
My point in all this is use the software you need for the job your performing and don't force others into your boat when another (potentially free) option will work equally well.
Posted by marcM at Wednesday, March 09, 2011
Tags: linux, MSOffice, open source, OpenOffice, software, ubuntu, windows
Today I noticed that my USB storage device (thumb drive, usb drive, memory stick; call it what you will) was not mounting when plugged into the PC. Note: I'm currently running Ubuntu 10.10 Maverick Meerkat.
The solution that fixed this was
sudo apt-get install usbmountIt's also good to note that lsusb will list usb devices detected on your system. Here you'll likely see reference to the usb drive although it isn't being mounted.
Posted by marcM at Wednesday, March 02, 2011
Unfortunately had to remove Linux from a dual boot machine today due to compatibility issues (shame on you hardware manufacturers). I wanted to reassign the Linux partition space back into the Windows partition. No problem, right? Maybe if you do this type of thing regularly and already have the tools at hand. This is the first time I have actually had to remove Linux, a sad day for sure, but a new set of tools for the future. Following is a brief walkthrough. (note: this was complicated by being a Eee PC meaning no CDs, USB memory devices only.)
In Brief:
Posted by marcM at Thursday, June 24, 2010
Tags: boot loader, boot USB, grub, MBR, partition
Reviewing some software today and saw a link for SupportPRO SupportDesk. Their site leads with the following statement
"SupportPRO SupportDesk is an open source web based Helpdesk system with integrated knowledge base application."Looking around all I see are links for pricing, demo, order, free trial. No links for download, source, OSI, etc.
Posted by marcM at Thursday, January 14, 2010
Tags: open source, software
Looking for a native tool for bulk manipulation of images on Linux.
Enter two fantastic solutions:
Some observation from a recent (brief) encounter with Windows 7
Posted by marcM at Friday, November 13, 2009
Tags: gnome, linux, taskbar, ubuntu, ui, user interface, wallpaper, windows7
While flipping through the junk mail recently as it headed to the trash can, I noticed that the daily credit card junk mail is going green. Or eco-friendly, or eco-conscious, or whatever. At least that is the impression they would like to give, by adding a small "recycle please", "recyclable", or "please recycle" logo on the back of the envelopes.
Recycling pickup is not free where I live. So these companies, who want my money and to charge huge interest rates for credit also want me to pay to recycle the junk they send me so they can appear more eco-friendly? How about they wasting huge amounts paper and other resources each year to send me these things. Do I really need all the legal details about a credit card I don't want? Try sending me that stack of paper when I express interest in your product, or provide it electronically.
Point is, they are wasteful. Don't make me pay or feel guilty for your waste so that you can improve your eco-image.
Posted by marcM at Friday, October 23, 2009
Tags: credit cards, environment, green, junk mail
Had the need to test Apple's Safari browser on a website or three. Issue: I'm a Linux (Ubuntu) user. Of course Linux is awesome and super good, but the big Apple doesn't make a version of Safari for Linux.
Solution: PlayOnLinux
Looks like it is popular for gaming, but it also has more practical use, it sets up and configures to let me run Safari through Wine. BTW, it also supports Google Chrome (yeah!).
Download it for your distro here.
http://www.playonlinux.com/en/download.html
Many to choose from with instructions or simply use the available .deb file. Install and launch PlayOnLinux (it appeared in my Games menu). Click the Install option, select Internet, choose Safari, click Apply, then walk through the screens and your all set. Once installed it will show up in your wine menu and desktop if you chose the desktop option (i had to manually make the desktop launcher executable).
Note while installing Safari: When asked about "Install Bonjour for Windows" and "Apple updates" uncheck both of these, you do not want them as they will cause problems.
Beginnings of a model railroad in the basement. Additional videos over the next week, catch them on YouTube.
Posted by marcM at Thursday, August 27, 2009
Formerly known as GScrot, Shutter is a fantastic screenshot tool for Linux.
In their own words,
Shutter is a feature-rich screenshot program. You can take a screenshot of a specific area, window, your whole screen, or even of a website - apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all within one window. Shutter is free, open-source, and licensed under GPL v3.For what it's worth, Shutter comes highly recommended by me. I am currently using it for all my screen capture needs.
Posted by marcM at Wednesday, August 26, 2009
Tags: linux, screenshot, software, ubuntu
Needed to merge and then reorder the pages several pdf files today. I don't have and prefer not to use Adobe tools when I can avoid them. A quick google turned up a couple of options.
Posted by marcM at Tuesday, August 25, 2009
Saw the Coaster in SanDiego; fantastic in real life, great on video, and cool surfliner in small scale. Check it.
Posted by marcM at Wednesday, August 19, 2009