Tech and Academic things for Chianshin

Friday, February 23, 2007

Advanced Linux Programming

Advanced Linux Programming: "This is the official home page for Advanced Linux Programming by CodeSourcery LLC, published by New Riders Publishing."

10 Linux commands you've never used

10 Linux commands you've never used: "pstree, list the processes in a tree format. This can be VERY useful when working with WebSphere or other heavy duty applications."

Friday, February 16, 2007

Sun-MPI

Sun: "There are two potentially exciting developments in the Sun implementation. The first of these is the Prism debugger. This debugger, originally developed by Thinking Machines Corporation, won nearly universal praise for its excellent user interface, and for its built-in performance and visualization features. In its new incarnation, Prism can debug HPF applications as well as MPI applications. "

Wednesday, February 14, 2007

MATLAB Tips

MATLAB Tips: "surf(peaks)
for i=1:size(colormap,1)
M = colormap;
colormap(M([end 1:end-1],:))
colorbar
drawnow
end
figure('Units','pixels','Position',[100 100 200 300])
"

Tuesday, February 13, 2007

MacKichan Software - The Home of Scientific WorkPlace, Scientific Word, and Scientific Notebook

MacKichan Software - The Home of Scientific WorkPlace, Scientific Word, and Scientific Notebook

Sunday, February 11, 2007

Enable and Disable Ubuntu Root Password -- Ubuntu Geek

Enable and Disable Ubuntu Root Password -- Ubuntu Geek: "sudo” means superuser do. “sudo” will prompt for “Password:”. Please specify user password"

RootSudo - Community Ubuntu Documentation

RootSudo - Community Ubuntu Documentation: "This means that in the terminal you can use sudo for commands that require root privileges. All programs in the menu will use a graphical sudo to prompt for a password. When sudo asks for a password, it needs YOUR USER Password; this means that a root password is not needed."

ChangeForgottenPwd - Ubuntu Document Storage Facility

ChangeForgottenPwd - Ubuntu Document Storage Facility: "Now you should see a menu with many options. Use the arrow keys to navigate to the newest kernel (the one with the highest number) that has '(recovery mode)' written next to it. Now, hit enter (return)."

Saturday, February 10, 2007

How to Reset forgotten Root passwords LG #107

How to Reset forgotten Root passwords LG #107: "Append ' single' to the end of that line (without the quotes). Make sure that there is a space between what's there and 'single'. If your system requires you to enter your root password to log into single-user mode, then append init=/bin/bash after 'single'. Hit 'Enter' to save the changes."

os develop env

os develop env

Making PDFs with free software | Free Software Magazine

Making PDFs with free software | Free Software Magazine

CUPS-PDF

From a Unix-like environment, you can use the Common Unix Printing System (CUPS) to create PDF files by installing CUPS-PDF, a GPL virtual printer. While not as versatile as PDFCreator, it provides the base functionality needed to be effective. Check out the Print to PDF using cups-pdf blog entry for installation and usage tips; read through the comments for some additional use scenarios and other updates.
Other Options

The OpenOffice.org Writer includes the ability to export to PDF without installing any additional packages. Another technique is to send a document to a PostScript virtual printer, then use GNU Ghostscript to convert the result to a PDF or by using the *nix command ps2pdfwr, but that's unnecessarily unwieldy and impractical for everyday use. CutePDF Writer, a no-cost but proprietary product for Windows, utilizes Ghostscript to generate PDFs. Finally, Mac OS X provides the ability for all applications to directly create PDF documents as long as they support the "print" command.

Friday, February 09, 2007

XML Notepad 2007 Design

XML Notepad 2007 Design: "I finally got around to fulfilling a promise I made to a friend at MSDN. Back in 1998, we shipped an XML Notepad, written by Murray Low in C++. Later on it fell behind in support for XML standards and, because we didn't have time to fix it, we pulled it off MSDN. But Murray apparently did such a nice job that MSDN was inundated with requests to put the notepad back up, so MSDN asked me for a replacement."

developerWorks : Linux Professional Institute (LPI) exam prep

developerWorks : Linux Professional Institute (LPI) exam prep

nerdylorrin.net wiki: PackageManagement

nerdylorrin.net wiki: PackageManagement

Maintenance
APT doesn't ever wipe the cache of .deb files that have been downloaded. To do this run apt-get autoclean.

APT doesn't automatically uninstall unneeded dependencies when packages are uninstalled. deborphan attempts to detect unused packages. Try deborphan -P to see the priority level of the detected packages; best not to unstinstall anything not marked optional or extra. By default packages that are suggested or recommended are treated as if they were required (i.e. deborphan won't list them).

Picking the Best Mirror
Install apt-spy and run apt-spy -d sarge -a North-America, substituting your distro and geographical area. It will automatically write the results to your /etc/apt/sources.list. Note that if you've done anything to your sources.list (e.g. tracking stable and unstable or a non-official archive) you'll have to merge the new sources.list with the old sources.list.bak.

Troubleshooting
An error like this

Hit http://non-us.debian.org testing/non-US/non-free Release
> Reading Package Lists... Error!
> E: Dynamic MMap ran out of room
> E: Dynamic MMap ran out of room

means you ran out of memory because apt's default mem allocation is too small. Add the following to /etc/apt/apt.conf (this file may not exist yet)

APT {
Cache-Limit 16777216;
};

Resources

Thursday, February 08, 2007

Java 2007: The year in preview

Java 2007: The year in preview: "Personally, I'm underwhelmed. I'd like to see the Java platform adopt a more Eiffel-like approach in which we could actually use public fields. However, if getters or setters are defined with the same names as the fields, then reads and writes to the fields are automatically dispatched to the methods instead. It uses less syntax and it's more flexible."

Why java wants to be complex? These fancy things has no use! isn't it?

IBM developerWorks : developerWorks podcasts

IBM developerWorks : developerWorks podcasts