$> kfmclient exec
this will open the file with the default binding if at all it exists...i.e. any app that associates itself with .swf MIME type.
for GNOME:
$>gnome-open
^ open file in proper program.
Finished off the last of my library books.
I only read the sections of Upgrading & Repearing Servers that I was interested in, didn't have time to even open the book on TCP/IP... I probably don't need that level of information right now, filled for 'check out again later' hehe.
Skipped most of the book on Java and like last time I read a book on Java. I've also managed to avoid writing a lot of Java code, not a language I am very fond off... but would likely prefer Java to C++, then again I generally prefer C to C++ too hehe. The goal however was not to get into writing Java programs but to see how much the language had changed since the mid-late 1990's.
Most of my interest in the books I checked out was the Linux Programming Bible, which was useful for a few of the things common to Unix like OSes. For which the only good examples I have been able to dig up in the past, has been reading my Operating Systems user land programs.
The Security book, heck I would by that sucker if I had the cash; especially if there was a 5th edition xD
I generally inhale information when I am free to just do so, so polishing them off was not a problem.
Dixie# pkg_add -r linux-flock Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/linux-flock.tbz... Done. Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/linux-hicolor-icon-theme-0.5_1.tbz... Done.
Finally had free time to day to shave off that infernal beard.. After so many months it is kind of nice to be reminded I'm more human the Wookie haha.
Terry@Dixie$ pwd; /bin/ls -1 9:26 /home/Terry/code/Python/src/neo/testing/alpha dialogs.py main.py neo.py options.py translate.py Terry@Dixie$ 9:29
I have arranged things from the testing directory to it's own work dir to clean up. Not to mention to continue work in a more module oriented pattern then the monolith and scratch files I have been using to test the first mock up of the programs UI.
experiment with improving the wrapping paper on pkg_info; regex might be an improvement to the current process what ever the possible speed changes are. It might also be beneficial to look into using a pipe in order to ease start up times.
expanding dialogs into some thing more complete, currently it only has a routine for an error message.
Figure out how we can create a suitable display area for the output of a shell command (such as 'make').
I think I could probably do double the amount of work per day on this, if I didn't have to do it before bed... Which has the bad limit of only being able to do things until my mind gets to the point that I just have got to sleep or the clock passes a point where I need to hit the hay, in order to get enough sleep for work in the morning.
Terry@Dixie$ ls ~/Pictures/Wall_Papers|wc -l 6:38
657
Terry@Dixie$ ls ~/GNUstep/Library/WindowMaker/Backgrounds|wc -l 6:40
57
Terry@Dixie$ 6:40
for i in `ls`
do
kolourpaint $i
done
for i in `ls` 6:40
do
ln -hfs /home/Terry/Pictures/Wall_Papers/$i /home/Terry/GNUstep/Library/WindowMaker/Backgrounds/$i
done
#!/bin/sh
# A simple automatic wall paper changer for window maker.
while (true)
do
for p in `/bin/ls /home/Terry/GNUstep/Library/WindowMaker/Backgrounds/`
do
wmsetbg -u -s $p
sleep 600
continue
done
done
\#!/usr/local/bin/python
import commands
import os
import random
import time
li = os.listdir('/home/Terry/GNUstep/Library/WindowMaker/Backgrounds/')
while (True):
x=random.choice(li)
commands.getoutput('/usr/local/bin/wmsetbg -u -s %s' % (x))
time.sleep(600)
The PC I wish I could buy: 1 * Thermaltake Armor Extreme Edition ATX Full Tower case ($180) ; drooling over the VA8004BNS !!! 1 * 600W Thermaltake PSU ($130) 1 * Intel Core 2 Duo E6600 or E67x0 2.4/2.66Ghz ($190-$240) 1 * 1024MB DDR2 667Mhz (PC5300) ($22) ; Kingston preferred 2 * SATA 250GB HDD ($160 total) 1 * nVidia Geforce GPU (<=$130) 1 * Turtle Beach RIVIERA Sound Card ($30) ; ALSA support :-) 1 * 3.5" Floppy ($7 OEM / $20 retail) 1 * DVD Burner ($45 retail) 1 * CD || DVD Reader ($20 retail) 1 * 10/100MB Ethernet NIC ($12 at the local shop ;-)) 1 * 104 Normal Keys KB ($20) ; Logitech Access would be nice & cheaper 1 * Wired Laser Mouse ($40) 1 * 17" LCD Monitor, 4-5ms, No Widescreen! ($180-$200) Estimated Total: < $1350 depending on variables and RAM + Motherboard ($70-$120), any extra fans/cablesThis is a much better PC then the one I am sitting, $1600 worth !!! And I supplied my own Mouse (replacement), Monitor, and had a Keyboard when I bought it. Although I do admit, a PC Desk and sound card was necessary to add to the pre-build... Hehe The system I had originally planned to build was about the same price range as this custom list but with less specs and a complete system minus the monitor and kb... bloody thing even had a UPS in the price factors! In the end, I ended up having my mother raising all freaking heck, to the point that I had to concede to *not* build my own, or she would really drive me crazy until I did F'up. To which I had my brother raising hell at the very idea (the family gamer), to which I ended up shopping for a pre-build to shut them both up (compromise of no DIY but higher specs) and got stiffed on the core factors... Rather then building my ideal 'personal' machine, I got stuffed into a Gateway Multi-Media PC that I didn't want. Over a year later, that PC I bought has been a royal pain in the neck, often needing coercion to get it to do what I want. It has repeatedly failed to work with most tested Linux Distro's without a lot of kicking, although it does love FreeBSD 6.x as long, the only good thing I can say :-) Instead of the GF6600 I had planned for the prebuilt came with a GF6200 (A real POS but still a major upgrade) and a TV Tuner; shitty PSU, funky BTX Mobo, and a signle 500GB drive Vs the good PSU, standard ATX Mobo, and Dual Seagate drives (1 for Windows, 1 for BSD). And a card reader which I can't use (no media) vs the Floppy drive I wanted so badly. The sound card I had to buy to get the pre-built working properly for my needs was a $80 reck, it is a major POS under Windows... But works great under Linux and FreeBSD, which is why I bought it haha. If I ever could have that level of cash for a PC again, I'd hit Fry's and build it from parts there..... Rather then letting my family have any say in the matter.. *sighs*, why did I have to be diplomatic instead of exercise my right to freedom?
Describe one moment from your youth that is impenetrably seared into your memory.
Brought to you by HP
Live Journal: Writer's Block
#!/usr/bin/env python
# Neo Ports Manager (NPM) -- refer to the LICENSE file for terms and conditions
"""
"""
import sys, os
from qt import *
def main( argc, argv ):
a=QApplication( argv )
listViews=QListView()
listViews.resize(640,480)
listViews.setCaption("Qt Example - Listview") # Sets window title
# Add some columns to the list view
listViews.addColumn('Qualified name')
listViews.addColumn('Namespace')
# element is how to create a new list view item for display
element = QListViewItem(listViews, 'qName', 'namespaceURI')
# Now lets populate an array of items into view
els=[ [listViews, 'dir1', 'descr1'], [listViews, 'dir2', 'descr2'],
[listViews, 'dir3', 'descr3'] ]
for j in els:
QListViewItem(j[0], j[1], j[2])
# And sort it descending by col 1
listViews.setSorting( 1, False )
a.setMainWidget(listViews)
# draw & exec
listViews.show()
a.exec_loop()
if __name__ == "__main__":
main(len(sys.argv), sys.argv)
for ( int i = 0 ; i < attributes.length(); i++ ) {
new QListViewItem( element, attributes.qName(i), attributes.uri(i) );
}
[15:11] [SAS]_LCpl_DUKE: Did you know: The Navy takes now only not-swimmers.
[15:11] [SAS]_RSM_Spidey01: ?
[15:11] [SAS]_LCpl_DUKE: Yeah, they defend the war-ships longer...
[15:11] [SAS]_RSM_Spidey01: LOL
[15:12] [SAS]_LCpl_DUKE: the newest joke i got 5 minutes ago... ;-)
--- def test(params): ... """ Simple test ... ... More detailed info about it""" ... ... print params ... --- test.__doc__ ' Simple test\n\t\n\t More detailed info about it'
method C RB C(-O3) Java Python Total iteration 2 1 3 2 2 10 recursion 3 2 2 1 1 9 original 1 3 1 3 3 11
#include <stdio.h>
#define A 1071
#define B 1029
int
mygcd( int a, int b ) {
int t = 0;
while ( b != 0 ) {
t = b;
b = a % b;
a = t;
}
return a;
}
int
main(void) {
mygcd(A, B);
return 0;
}
#include <stdio.h>
#define A 1071
#define B 1029
int
mygcd( int a, int b ) {
if ( b == 0 ) {
return a;
} else {
return mygcd( b, a%b );
}
}
int
main(void) {
mygcd(A, B);
return 0;
}
#include <stdio.h>
#define A 1071
#define B 1029
int
mygcd( int a, int b ) {
while ( b != 0 ) {
if ( a > b ) {
a = a-b;
} else {
b = b-a;
}
}
return a;
}
int
main(void) {
mygcd(A, B);
return 0;
}
#!/usr/local/bin/ruby -w
def gcd(a, b)
while b != 0
t = b
b = a % b
a = t
end
return a
gcd( 1071, 1029 )
#!/usr/local/bin/ruby -w
def gcd(a,b)
if b == 0
return a
else
return gcd(b, a % b )
end
end
gcd( 1071, 1029 )
#!/usr/local/bin/ruby -w
def gcd( a, b )
while b != 0
if a > b
a = a - b
else
b = b - a
end
end
return a
end
gcd( 1071, 1029 )
class EuclideanIteration {
static final int A = 1071;
static final int B = 1029;
public static int
mygcd( int a, int b ) {
int t = 0;
while ( b != 0 ) {
t = b;
b = a % b;
a = t;
}
return a;
}
public static void
main( String[] args ) {
mygcd(A, B);
}
}
class EuclideanRecursion {
static final int A = 1071;
static final int B = 1029;
public static int
mygcd( int a, int b ) {
if ( b == 0 ) {
return a;
} else {
return mygcd( b, a%b );
}
}
public static void
main( String[] args ) {
mygcd(A, B);
}
}
class EuclideanOriginal {
static final int A = 1071;
static final int B = 1029;
public static int
mygcd( int a, int b ) {
while ( b != 0 ) {
if ( a > b ) {
a = a-b;
} else {
b = b-a;
}
}
return a;
}
public static void
main( String[] args ) {
mygcd(A, B);
}
}
#!/usr/local/bin/python
def mygcd(a, b):
while b != 0:
t = b
b = a % b
a = t
return a
mygcd( 1071, 1029 )
#!/usr/local/bin/python
def mygcd( a, b ):
if b == 0:
return a
else:
return mygcd( b, a %b )
mygcd( 1071, 1029 )
#!/usr/local/bin/python
def mygcd( a, b ):
while b != 0:
if a > b:
a = a-b
else:
b = b-a
return a
mygcd( 1071, 1029 )