LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Creating a patch . . .

Posted 05-28-2011 at 01:03 PM by Lufbery (The Slacker's Blog)

Hi all,

I thought I'd share a procedure for making patches that I learned.

Starting with information from a mailing list or newsgroup for a patch, copy the relevant information to a text file and give it a descriptive name with a .patch suffix.
  1. tar -xf file.tar.bz2
  2. mv file file.orig
  3. tar -xf file.tar.bz2
  4. cd file
  5. patch -Np1 ../file.patch # Applies patch from newsgroup or other source with offsets
  6. cd ..
  7. diff -Naur file.orig file > file.new.patch
...
Senior Member
Posted in Uncategorized
Views 635 Comments 0 Lufbery is offline
Old

java in debian 6

Posted 05-28-2011 at 10:40 AM by sumeet inani

Code:
apt-get install default-jre icedtea6-plugin
involves following files
default-jre_1.6-40_i386.deb  default-jre-headless_1.6-40_i386.deb
icedtea6-plugin_6b18-1.8.3-2_i386.deb
Check following page in your browser --> http://www.java.com/en/download/testjava.jsp

Tested in opera 11.11 , iceweasel 3.5.16
Member
Posted in Uncategorized
Views 2484 Comments 1 sumeet inani is offline
Old

dumping a file in hexadecimal

Posted 05-28-2011 at 04:03 AM by neonsignal

There are several ways to dump a binary as hex values. The following examples generate single byte hex values with no addresses (which can be useful when generating array initialization code).

There is the program od:
Code:
od -A n -t x1 file.bin
The '-A n' turns off the addresses, and the '-t x1' sets it to single byte hex formatting.

There is also the program hexdump, which is more flexible in the formatting of the results:
Code:
hexdump
...
Senior Member
Posted in Uncategorized
Views 289 Comments 0 neonsignal is offline
Old

running mathcad under wine

Posted 05-28-2011 at 03:52 AM by neonsignal
Updated 05-28-2011 at 07:21 PM by neonsignal

Mathcad is a commercial visual mathematics editor that can execute formulae. Because it is what-you-see-is-what-you-get, it makes for a useful documentation tool. I have searched for equivalents in the free software world; Octave is useful for running mathematical models, and TeX can handle the typesetting of complex formulae, but having a visual editor means that working models and their results can be printed out in a human readable form.

The versions of Mathcad run with varying...
Senior Member
Posted in Uncategorized
Views 2498 Comments 0 neonsignal is offline
Old

Lenovo Thinkpad T420 Notebook PC

Posted 05-28-2011 at 02:27 AM by spazticclown
Updated 02-23-2015 at 06:49 PM by spazticclown

Today I received my new Lenovo Thinkpad T420, I will be installing Fedora 15 tomorrow and I will post everything that I find on how everything works and any recommendations. I may also be testing with other distributions (possibly Ubuntu and open SUSE). Any requests?

--Edit--

Laptop arrived and testing as much as I can.
First off it loads Fedora 15 x64 easily. Optimus Graphics do not auto switch and had trouble getting the drivers to take. Looks like nVidia...
Member
Posted in Uncategorized
Views 1624 Comments 0 spazticclown is offline

  



All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration