Subscribe to RSS Feed Log in

CRACKMAC.COM

Saturday
4 July 2009

Linux command to gathers up information about a Linux system

If you are developing an application for Linux desktop and would like to automatically find out more information about system, use the following commands in shell scripts to gather information about system. Recently I was involved in project where I need to collect information about running GUI, browser and other information such as disk space, running kernel etc.

Linux command to gathers up information about a Linux system.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

1 CommentContinue Reading

How to flush DNS Cache on Mac OS 10.5

Finally a way to flush the DNS cache on Mac OS 10.5 “dscacheutil -flushcache“. PC users have always had a way to do this with “ipconfig /flushdns” but Mac users usually had to restart. In Mac OS 10.4 there was “lookupd -flushcache” but that never quite worked 100% of the time. Here’s a bit of the MAN page and a link to the complete page via developer.apple.com.

dscacheutil — gather information, statistics and initiate queries to the Directory Service cache.

SYNOPSIS
dscacheutil -h dscacheutil -q category [-a key value]
dscacheutil -cachedump [-buckets] [-entries [category]]
dscacheutil -configuration dscacheutil -flushcache
dscacheutil -statistics

DESCRIPTION
dscacheutil does various operations against the Directory Service cache including gathering statistics, initiating lookups, inspection, cache flush, etc. This tool replaces most of the functionality of the lookupd tool previously available in the OS.

Mac OS X Manual Page For dscacheutil(1).

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

maatkit - Google Code

Maatkit (formerly MySQL Toolkit) contains essential command-line tools for MySQL, such as table checksums, a query profiler, and a visual EXPLAIN tool. It provides missing features such as checking whether slaves have the same data as the master.

maatkit - Google Code.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

The Secret to Reformatting a Western Digital WD 1TB My Book External Hard Drive « Psychohistory

Taken from Adam Nash’s blog Psycohistory. I apologize for not giving credit more explicitly when I first posted the article.

Read the rest of this entry »

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

3 CommentsContinue Reading

Official Google Blog: Holiday templates to keep you organized

Official Google Blog: Holiday templates to keep you organized
The holidays are upon us, and theres much to do: Gifts to be wrapped, lights to be strung, candles to be lit, and a long list of tasks at the home and the office. A little creativity can come in handy at this time of year. You can save time and money with the Google Docs template gallery for documents, spreadsheets and presentations. Whether youre a small business owner or the chief holiday organizer, the gallery includes a few special templates designed to help you spread a little holiday cheer. Here are a few tips to help you get everything done on time

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

CherryPy - Trac

CherryPy   - CherryPy is a pythonic, object-oriented HTTP framework.

CherryPy allows developers to build web applications in much the same way they would build any other object-oriented Python program. This results in smaller source code developed in less time.

CherryPy is now more than six years old and it is has proven very fast and stable. It is being used in production by many sites, from the simplest ones to the most demanding ones.

Oh, and most importantly: CherryPy is fun to work with :- Here’s how easy it is to write “Hello World” in CherryPy 3:

import cherrypyclass
HelloWorldobject:def indexself:
return "Hello World"
index.exposed = True
cherrypy.quickstartHelloWorld

Examples: Hello World & What is your name?

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

Tomato Firmware | polarcloud.com

Tomato Firmware | polarcloud.com
Tomato is a small, lean and simple replacement firmware for Linksys WRT54G/GL/GS, Buffalo WHR-G54S/WHR-HP-G54 and other Broadcom-based routers. It features a new easy to use GUI, a new bandwidth usage monitor, more advanced QOS and access restrictions, enables new wireless features such as WDS and wireless client modes, raises the limits on maximum connections for P2P, allows you to run your custom scripts or telnet/ssh in and do all sorts of things like re-program the SES/AOSS button, adds wireless site survey to see your wifi neighbors, and more.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

Test Early » Hudson - Tips and Tricks

Test Early » Hudson - Tips and Tricks
Hudson is an open source CI server that is by far the easiest one to configure. Second to ease of use is Hudson’s impressive plug-in framework, which makes it easy to add features. For instance, Hudson has a plug-in for tracking FindBugs issues, PMD issues, and CheckStyle issues over time as well as code coverage. It also trends test results from JUnit, as well as build results and corresponding execution times. In spite of all these cool features, we had to find ways to get around some common issues we faced at work using Hudson.

This article describes a few real-life tips and tricks that we have found at work and will assist in configuring Hudson to work most effectively in your environment as well:

1. Changing Hudson home directory
2. OutOfMemoryError
3. Securing Hudson
4. Hudson Views
5. Hudson and Groovy
6. Spaces in directory names
7. Browser to use

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

Enhance your Blog Design with JQuery

Enhance your Blog Design with JQuery
JQuery

JQuery is a JavaScript library that simplies event handling, animation, Ajax interactions and much more. The WordPress admin uses JQuery to enhance a variety of sections - the show/hide tabs in the Write page, the lightbox for the media uploader. So it’s already built into Wordpress, all we need to do is call it from the front end and use it ourselves.

JQuery is stored at /wp-includes/js/jquery/jquery.js. To use this we need to load it into the header of our page. So we need to add the following line in our header.php theme file, somewhere between the head tags.
view plaincopy to clipboardprint?

<script type=”text/javascript” src=”/wp-includes/js/jquery/jquery.js” charset=”utf-8″></script>

<script type=”text/javascript” src=”/wp-includes/js/jquery/jquery.js” charset=”utf-8″></script>

This will then load the JQuery library whenever someone loads your site. Note, the path will need to reflect your own installation of WordPress on the server. So if you have WordPress installed in the root directory, the above will work, however if you have it in a subdirectory then you’ll need to add this to the start of the source path.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading

How Digg works - New Digg Technology Blog

We often get asked how Digg works from a technology perspective, so wanted to shed some insight on this with our first post from the newly-launched technology blog. We
’ll be posting regularly to give you a peek at what’s under the hood from the Digg development teams.

read more | digg story

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google]

No CommentsContinue Reading