#: dpkg-reconfigure --force localesSelect locales you need to be installed/configured in your system. Then select, for example, en_US.ISO-8859-15. This will configure your system to use ISO-8859-15 encoding by default. Restart computer and off you go. ~ts
Sunday, December 23, 2007
Midnight Commander not displaying properly in mrxvt
Sunday, December 09, 2007
STAF silent install with options on user login and quick menu
d:\>STAF323-setup-win32 -is:log D:\ismplog.txt -silent -W license.selection="Accept" -W setupTypes.selectedSetupTypeId="Full" -W stafOptions.updateEnvironmentVariables="System" -W stafOptions.defaultIPvVersion="IPv4 only" -W stafOptions.startSTAFOnLogin="false" -W stafOptions.iconsOnQuickStartMenu="false"This assumes that STAF323-setup-win32.exe is in the system path or on D:\. ~ts
Error message when you try to set an IP address on a network adapter
c:\>set devmgr_show_nonpresent_devices=1 c:\>DEVMGMT.MSCThen in the Device Manager window, do View->Show Hidden Devices. Delete network cards that are not present in the system as necessary. See this link for more information and other methods. ~ts
Saturday, December 01, 2007
Getting sound working on ECS A097 under Debian Etch
~: suand off you go. Also visit the following links for more information http://forums.debian.net/viewtopic.php?t=21180 http://newbiedoc.berlios.de/wiki/Sound_in_Debian_GNU/Linux ~ts#: apt-get install alsa-base alsa-utils
Friday, November 30, 2007
Changing the default system font used by Iceweasel/Firefox on Debian Etch
~: su #: apt-get install terminus #: exit ~: cd ~/.mozilla/firefoxHere you need to determine what is the first part of *.defualt. Once you have the name then do change into that directory, example:
~: cd xpwzepdt.defaultNow make a copy of userChrome-example.css
~: cp userChrome-example.css userChrome.cssDo edit the file, then make the following changes
# ~: nano -w userChrome.css
# this one will set the default system Iceweasel font to terminus
* {
font-family: terminus !important;
font-size: 8pt !important;
}
Enjoy!
~ts
Wednesday, November 28, 2007
Configure gateway on an interface brought up with dhcp
#: nano -w /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp gateway 192.168.1.10 up route del default up route add default gw 192.168.1.10~ts
Thursday, November 22, 2007
Assigning keyboard shortcut for "Remove Last Icon" in FreeMind
I really like this application and the design is quite intuitive. Since this program is still in beta there are rough around the edges. Like say setting the keyboard shortcut for removing the last icon for a node is not working.
What I am going to do here is to document how to get this one functionality working. By default (at least for 0.9.0 beta 14) "Remove Last Icon" is assigned to "BACK_SPACE" key. But for some reason it is not working.
Here are the steps on getting this guy working:
1.) Extract a copy of mindmap_menus.xml. For zip installation, this can be found in <Extracted_Dir>/lib/freemind.jar. I used 7-zip to extract the file. Tough 7-zip's website didn't mention that it supports jar files it is capable of handling the file type successfully. Jar is pretty much the same as zip format which is supported by 7-zip.
2.) Using a text editor, I am using wscite, add the following line.:
<menu_category name="icons"> <menu_action field="removeLastIconAction" key_ref="keystroke_remove_last_icon"/></menu_category>
This should in line 138 for 0.9.0 beta 14
3.) Merge back the file into freemind.jar. Again you can use 7-zip to do this.
4.) Restart FreeMind. Note here that "BACK_SPACE" is still not working. In this case I don't how to make this work with this key. But in this exercise, we will re-assign it to Ctrl+D.
5.) Re-assign the key to Ctrl+D. Open auto.properties. This file can found in C:\Documents and Settings\<user name>\.freemind. Add the following line to this file:
#start to copy from this line
keystroke_remove_last_icon=control D
#end here.
6) Restart Freemind again. It should be working by now.
You might be interested on how to determine the "field" part of mindmap_menus.xml. For most cases it can found in the source file http://sourceforge.krugle.com/kse/files/cvs/cvs.sourceforge.net/freemind/freemind/freemind/modes/ControllerAdapter.java staring line number 165.
Happy mind mapping!!!
~ts
Sunday, November 11, 2007
Configure STAF to run as a Windows service
There are some advantages on running STAF as a Windows service. Common reason being that the STAF functionality is available even without user logged into the system.
Configuring STAF to run as a service needs an auxiliary application, like srvany.exe. This file is part of Windows Resource Kit. Due to licensing restrictions I cannot attach the file here but it should not be big of a problem as you can download the resource kit from Microsoft for free. Do a google using the keywords "Windows Resource kit" and start from there. The filename of the installer normally is rktools.exe. Once downloaded, install the software look for srvany.exe and instsrv.exe. You can copy this files somewhere so that you can use it other machines. See below for the steps for configuring STAF to run as a service:
1) Copy instsrv.exe and srvany.exe into C:\Windows\System32 (actually $windir\system32 ).
2) In Windows console ( Start->Run "cmd.exe"), change to directory C:\Windows\System32.
3) Install a Windows service placeholder, like:
instsrv.exe STAF C:\Windows\System32\svrany.exe
Note "STAF" here can be any string but for convenience and easy correlation we used STAF.
4) Modify this service to actually run STAFProc.exe via registry. Open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\STAF
5) Under this subkey, add a key named as "parameters".
6) Select the new "parameters" key and add a string value named "application". It should be of type REG_SZ.
7) Change the data to "C:\STAF\bin\STAFProc.exe".
8) Close regedit.exe.
9) If we need STAF to interact with the desktop then minor adjustment is necessary. Modify the STAF service using services applet ( in Windows 2003/Windows XP it can be accessed via Start->Control Panel->Administrative Tools->Services ). Double click on STAF service ( or via context menu then Properties ), select Log on tab. Enable "Allow service to interact with desktop"
Useful links:
How To Create a User-Defined Service by Microsoft
~ts
Wednesday, November 07, 2007
Configure Ubuntu to search hostnames across domains
Or this can be done through the file /etc/resolv.conf. See below for an equivalent configuration.
#: nano -w /etc/resolv.conf #<-- start here nameserver 142.176.1.82 nameserver 142.176.1.101 nameserver 142.176.1.102 domain asia.nothing.com search asia.nothing.com na.nothing.com
~ts
Wednesday, October 03, 2007
Manually configure networking in Debian under VBox
#: ifdown eth0Now, let us bring it up manually with an IP that is probably not being used by other VMs running inside VBOX in this case we will try 10.0.2.3.
#: ifconfig eth0 up 10.0.2.3 netmask 255.255.255.0Note that by default, VBOX gateway is 10.0.2.2 or basically we can also say that this is the IP address of the host machine internally. Let us now add entry into the routing table to route traffic to the gateway.
#: route add default gw 10.0.2.2One last change we need to make is in the file /etc/resolv.conf.
#: nano -w /etc/resolv.conf #<-- this line is not included, search for namesever nameserver 192.xxx.xxx.xxxNote that the IP address that should be used for the nameserver should point to an existing DNS server. Since my host is running Windows XP Sp2, nameserver/DNS can be easily determined via the command:
C:\>ipconfig /allAs sample output would be:
C:\>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : machine_name
Primary Dns Suffix . . . . . . . : me.atmy.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : me.atmy.com
me2.atmy.com
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for
VMnet8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.33.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for
VMnet1
Physical Address. . . . . . . . . : 00-50-56-C0-00-01
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.106.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter Wireless Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 2200BG Network
Connection
Physical Address. . . . . . . . . : 00-13-CE-F0-BD-CB
Ethernet adapter Network Bridge (Network Bridge):
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : MAC Bridge Miniport
Physical Address. . . . . . . . . : 02-FF-EC-C1-2E-3C
PPP adapter HUAWEI3G.Globe - 3G with HSDPA:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.60.136.220
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 10.60.136.220
DNS Servers . . . . . . . . . . . : 192.40.100.30
203.177.255.10
NetBIOS over Tcpip. . . . . . . . : Disabled
C:\>In the sample above we have two DNS servers, 192.40.100.30 and 203.177.255.10. So you might have a nameserver entry of both or just one of them.
~ts
Thursday, September 27, 2007
Thursday, September 20, 2007
How to get Linux box ping a Windows machine via netbios/wins
# ~: nano /etc/nsswitch.conf # <----- several lines before this one hosts: files dns wins
What this says is that the gethostbyname and similar functions will first check the local database (/etc/hosts). If the name cannot be found then do use dns and finally wins.
But for wins lookup to work, winbind needs to be installed. Winbind provides 3 major functions for integrating with Windows network. But we are not really using anyone of those 3 major functions but rather we need the functionality provided by /lib/libnss_wins.so library. So to get this file installed, do:
#: apt-get install winbindAnd as a side note, I have to reboot the machine to get this to work. There might be some service that I need to restart but which I don't know. Related links:
For a Ubuntu box, use the following link:
~tsTuesday, September 18, 2007
Creating Windows icon using GIMP
Wednesday, July 18, 2007
Installing Bugzilla in Ubuntu 7.04
#: nano -w /etc/apache/httpd.conf #<-- lots of lines before this of course Alias /bugs/ /usr/lib/cgi-bin/bugzilla/~ts~AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit
Tuesday, July 03, 2007
Install vmware-tools in Debian Sarge
#: uname -rA sample output of the above command could be:
>> 2.8.18-4-686which basically says that you have a linux-2.8.18-4-686. 2) Now let us check if we have Linux headers for the version as shown above.
#: apt-get install -s linux-headers-2.6.18-4-686The statement above means that we will do a simulated install of package "linux-headers-2.6.18-4-686". See below for a sample output:
technomachine:/home/techno# apt-get install -s linux-headers-2.6.18-4-686 Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: linux-headers-2.6.18-4-686 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Inst linux-headers-2.6.18-4-686 (2.6.18.dfsg.1-12etch2 Debian-Security:stable) Conf linux-headers-2.6.18-4-686 (2.6.18.dfsg.1-12etch2 Debian-Security:stable)3) Since it looks like it is good, then lets install this package.
#: apt-get install linux-headers-2.6.18-4-686 4) Do create a smylink of the linux header.
#: ln -s /usr/src/linux-headers-2.6.18-4-686 /usr/src/linux5) Install GCC.
#: apt-get install -s gcc Sample output should look like the following:
technomachine:/home/techno# apt-get install -s gcc Reading package lists... Done Building dependency tree... Done Suggested packages: manpages-dev autoconf automake1.9 libtool flex bison gcc-doc Recommended packages: libc6-dev libc-dev The following NEW packages will be installed: gcc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Inst gcc (4:4.1.1-15 Debian:4.0r0/stable) Conf gcc (4:4.1.1-15 Debian:4.0r0/stable)Again, since it looks like it is okay, then let us install GCC.
#: apt-get install gcc 6) Define our C compiler now.
#: export CC=/usr/bin/gcc-4.17) In VMware Host, do VM->Install VMware Tools... 8) Now back in the virtualized Debian, do:
#: mount /dev/cdrom #: cd /mnt/cdrom #I am assuming that the cdrom is mounted here, else consult manpage #: mkdir ~/temp #: cp VMwareTools-1.0.3-44356.tar.gz ~/temp #: cd ~/temp #: tar -xvzf VMwareTools-1.0.3-44356.tar.gz #: cd vmware-tools-distrib #: ./vmware-install.plThen just use the default values (thus say, hit the Enter key :) 8) After all is done, we need to copy the VMware mouse driver for mouse integration.
#: cd /usr/lib/vmware-tools/configurator/XOrg/7.0 #: cp vmmouse_drv.so /usr/lib/xorg/modules/drivers9) Edit /etc/X11/xorg.conf to use the new mouse driver:
#: nano -w /etc/X11/xorg.conf Section "InputDevice" Identifier "Configured Mouse" Driver "vmmouse" #<---this part Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ps/2" Option "Emulate3Buttons" "true" EndSection10) Reboot the machine :). We need this so that the fast network driver will also load. This is the easiest anyway. Happy Debian :) ~ts~
Monday, July 02, 2007
Generating UUID in Jython
Generate universally unique ID in Python
In my previous post, I discussed how to generate GUID (Windows world) or the standard equivalent UUID to generate a guaranteed unique identifier from Python. I didn't know that their is a CPython library that can do this in a more platform neutral way. Just today, I came across the module uuid. uuid is now part of the standard Python library but as to when, I am not sure. One thing I am certain, it is there in Python 2.5.1.
Below is a sample code to generate a UUID version 4.
print uuid.uuid4()
If you want to know more about UUID and the standards using it, please pay a visit to Wikipedia - UUID.
~ts~
Saturday, June 30, 2007
Getting PUTTY to draw line correctly
Tuesday, June 26, 2007
Generate GUID in Python running in Windows
GUID can be useful as a primary key for a databases and also for the records or rows of data that needs to be unique. There are a lot of tools that can generate a GUID but in this quickie blog, I am documenting how to generate a GUID using Python in Windows.
To generate a GUID, import the code below:
_guid = pythoncom.CreateGuid()
_guid_str = str(_guid)
print "%s GUID is %d long"%(_guid_str,len(_guid_str))
~ts~
Wednesday, June 20, 2007
Grab screen capture programatically
- Python 2.5 for Windows
- Python Imaging Library (PIL).
#--<-start code here->--
import ImageGrab;
img = ImageGrab.grab()img.save("D:\\test.jpg")
#--<-end code here->--
~ts~
Saturday, June 09, 2007
Direct link download to Yahoo Messenger installer
Here is the link for downloading v9 Yahoo Messenger.
Here is the link for downloading v8 Yahoo Messenger.
~ts~
Friday, June 08, 2007
Detecting the process using/locking a file
handle readme.txt~ts~
Thursday, June 07, 2007
Clear arp cache
netsh interface ip delete arpcache~ts~
Saturday, May 12, 2007
Uninstall an application from the command line
Determine the application that spawn a certain process
Saturday, April 28, 2007
Programming icons
Sunday, April 22, 2007
List Microsoft Windows products installed in a system
<---code-----
import _winreg
import sys
hkcu = _winreg.ConnectRegistry(None,_winreg.HKEY_LOCAL_MACHINE)m_key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"m_UnInstall = _winreg.OpenKey( hkcu, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
_index = 0while True: try: m_subkey = _winreg.EnumKey(m_UnInstall,_index) m_newkey = m_key + "\\" + m_subkey
m_RegistryKey = _winreg.OpenKey( hkcu, m_newkey ) try: if _winreg.QueryValueEx(m_RegistryKey, r"Publisher")[0] == r"Microsoft Corporation":
print _winreg.QueryValueEx(m_RegistryKey, r"DisplayName")[0] _winreg.CloseKey(m_RegistryKey) except:# print "Unexpected error:", sys.exc_info()[0] pass
# print "current key %s" % m_newkey _index = _index + 1
except EnvironmentError:# print "Nothing to retrieve" break_winreg.CloseKey(m_UnInstall)_winreg.CloseKey(hkcu)
<---code-----
Or download it from here.
~ts~
Tuesday, April 10, 2007
Enable command line completion using TAB char for Windows 2000 Professional
Thursday, April 05, 2007
Python 2.5 install issue on some Windows XP machines
---------------------------
Python for Win32
---------------------------
The application can not locate win32ui.pyd (or Python) (126)
The specified module could not be found.
---------------------------
OK Searching in ASPN network I found out that this is an open issue, see 68141. The good thing with this bug is that the workaround is quite simple if you have a working installation. Just copy pythoncom25.dll and pywintypes25.dll into c:\windows\system32 of the machine that PythonWin does not work.
What if you don't have a working machine? Well, low and behold, I have it for you. Download it here. I'll be more than thankful if anyone can report to me that this issue is already fixed so that I can update this blog.
Another work-around is to install pythonwin on top of currently installed version from http://sourceforge.net/project/showfiles.php?group_id=78018. Select pywin32-210.win32-py2.5.exe and download.
~ts~
Sunday, March 25, 2007
Gentoo make.conf for ECS A097
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
# CFLAGS="-O2 -mtune=i686 -pipe"
# CHOST="i386-pc-linux-gnu"
# CXXFLAGS="${CFLAGS}"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
USE="-qt3 -qt4 -arts -kde -bindist gtk gnome hal avahi X tk bitmap-fonts truetype-fonts type1-fonts alsa nptl nptlonly"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://gentoo.gg3.net/ "
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="sis"
ALSA_CARDS="ali5451"~yth
Sunday, March 04, 2007
Installing Gentoo into ECS A097
- Safe CFLAGS for Transmeta Crusoe http://gentoo-wiki.com/Safe_Cflags#Transmeta_Crusoe
- LDFLAGS optimization
- Migrating to NPTL (Native POSIX Thread Library)
#: emerge --update --deep --newuse world #: emerge --deepclean #: revdep-rebuildVery Important when updating kernel: Run the following command to rebuild external modules:
#: module-rebuild rebuild~yth~
Friday, March 02, 2007
Globe Visibility Speed Tracking
Decide for yourself if this internet subscription is worth the cost
Impression: Globe Visibility is very slow compared to wired, always on internet subscription. Upload is very very slow. Browsing is marginally/slightly faster to dial-up. But note the price. Globe Visibility is 2000.oo flat which is way more expensive compared to cable/dsl. If you don't need extreme mobility please do yourself a favor, get wired connection.
Note: Listed below are top speed, nominal/average speed is way below dial-up speeds.
[Update (04March07)] After pooking around with how E220 modem works, I was able to achieve reasonable speeds. I think with this new speed Globe Visibility is good enough for home and for mobile users. I will create another blog entry describing how I managed to get decent speeds from Visibility.
See the table tracking here. I have another table with more columns here .
Udpates:
As of 06August2007 I can only connect to Edge network :(.
23Nov2008 - Seems like Globe has issues with DNS. Accessing random websites return something indicative of DNS issues. I have called Globe and asked them to contact me if they have more information from their tech group but to no avail. Seems like they just don't really care about their customers but the bill is coming on time though. And for the past 3 or 4 weeks we can only connect reliably through EDGE.
Sunday, January 28, 2007
Creating a dynamic form in Palm OS
Code below shows how to create a dynamic form for Palm OS 3.0 or greater. See this link of the entire project created using Palm OS Development Suite.
/****************************************************************************** * Application Name : DynamicUI.prc * Purpose : Demonstrate how to create a dynamic UI * Programmed by : Techno Scavenger *****************************************************************************/ #include <PalmOS.h> /*********************************************************************** * * Internal Constants * ***********************************************************************/ #define appFileCreator 'ewa8' #define appVersionNum 0x01 #define appPrefID 0x00 #define appPrefVersionNum 0x01 /*********************************************************************** * * Application constants * ***********************************************************************/ #define MainForm 1000 /*********************************************************************** * FUNCTION: MainFormHandleEvent * DESCRIPTION: This routine is the event handler for the * "MainForm" of this application. * PARAMETERS: pEvent - a pointer to an EventType structure * RETURNED: true if the event has handle and should not be passed * to a higher level handler. * REVISION HISTORY: ***********************************************************************/ static Boolean MainFormHandleEvent(EventType* pEvent) { Boolean handled = false; FormType* pForm; switch (pEvent->eType) { case frmOpenEvent: pForm = FrmGetActiveForm(); FrmDrawForm(pForm); handled = true; break; default: break; } return handled; } /*********************************************************************** * FUNCTION: AppHandleEvent * DESCRIPTION: This routine loads form resources and set the event * handler for the form loaded. * PARAMETERS: event - a pointer to an EventType structure * RETURNED: true if the event has handle and should not be passed * to a higher level handler. * REVISION HISTORY: ***********************************************************************/ static Boolean AppHandleEvent(EventType* pEvent) { UInt16 formId; FormType* pForm; Boolean handled = false; if (pEvent->eType == frmLoadEvent) { formId = pEvent->data.frmLoad.formID; // pForm = FrmInitForm(formId); pForm = FrmGetFormPtr(MainForm); FrmSetActiveForm(pForm); // Set the event handler for the form. The handler of the currently // active form is called by FrmHandleEvent each time is receives an // event. switch (formId) { case MainForm: FrmSetEventHandler(pForm, MainFormHandleEvent); break; default: break; } handled = true; } return handled; } /*********************************************************************** * FUNCTION: AppEventLoop * DESCRIPTION: This routine is the event loop for the application. * PARAMETERS: nothing * RETURNED: nothing * REVISION HISTORY: ***********************************************************************/ static void AppEventLoop(void) { Err error; EventType event; do { EvtGetEvent(&event, evtWaitForever); if (SysHandleEvent(&event)) continue; if (MenuHandleEvent(0, &event, &error)) continue; if (AppHandleEvent(&event)) continue; FrmDispatchEvent(&event); } while (event.eType != appStopEvent); } /*********************************************************************** * FUNCTION: AppStart * DESCRIPTION: Get the current application's preferences. * PARAMETERS: nothing * RETURNED: Err value errNone if nothing went wrong * REVISION HISTORY: ***********************************************************************/ static Err AppStart(void) { // FrmGotoForm(MainForm); static Char strTitle[13] = "Dynamic Form"; FormType* pMainForm; pMainForm = FrmNewForm( MainForm, strTitle, 0, 0, 160, 160, false, 0, 0, 0); FrmGotoForm(MainForm); return errNone; } /*********************************************************************** * FUNCTION: AppStop * DESCRIPTION: Save the current state of the application. * PARAMETERS: nothing * RETURNED: nothing * REVISION HISTORY: ***********************************************************************/ static void AppStop(void) { // Close all the open forms. FrmCloseAllForms(); } /*********************************************************************** * FUNCTION: PilotMain * DESCRIPTION: This is the main entry point for the application. * PARAMETERS: cmd - word value specifying the launch code. * cmdPB - pointer to a structure that is associated with the launch code. * launchFlags - word value providing extra information about the launch. * RETURNED: Result of launch * REVISION HISTORY: ***********************************************************************/ UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { Err error = errNone; switch (cmd) { case sysAppLaunchCmdNormalLaunch: if ((error = AppStart()) == 0) { AppEventLoop(); AppStop(); } break; default: break; } return error; }
Sunday, January 21, 2007
Useful Internet Explorer 7 addons
Saturday, January 20, 2007
Use Palm OS Developement Suite documentation in latest version of Eclipse
Sunday, January 14, 2007
Open any document in IFix via shell
Private Sub CommandButton1_Click()
Dim ret As Long
Dim hwnd As Long
hwnd = FindWindow(vbNullString, Application.Caption)
ret = shellExecute(hwnd, "Open", "c:\DVPendingFileRenameOp.log", vbNullString, vbNullString, 4)
End Sub
Note: Application is an IFix global variable.
Monday, January 08, 2007
Shell extension issue with Free Download Manager
VI common commands
The command commonly used command for cutting is d. This command deletes text from the file. The command is preceded by an optional count and followed by a movement specification. If you double the command by typing dd, it deletes the current line. Here are some combinations of these:
- d^
- deletes from current cursor position to the beginning of the line.
- d$
- deletes from current cursor position to the end of the line.
- dw
- deletes from current cursor position to the end of the word.
- 3dd
- deletes three lines from current cursor position downwards.
There is also the y command which operates similarly to the d command which take text from the file without deleting the text.
Pasting:
The commands to paste are p and P. The only differ in the position relative to the cursor where they paste. p pastes the specified or general buffer after the cursor position, while P pastes the specified or general buffer before the cursor position. Specifying count before the paste command pastes text the specified number of times.
Windows Update fails
http://update.microsoft.com/
FreeBSD common commands
#: cd /usr/ports/x11-wm/fluxbox ; make install cleanRun fluxbox when executing startx
$: cd ~ $: touch .xinitrc $: echo "exec fluxbox" > .xinitrcInstalling vmware-tools (FreeBSD 6.1, comes with XOrg 7.x)
#: mount /cdrom #: cp /cdrom/vmware-freebsd-tools.tar.gz /tmp #: cd /tmp #: tar xvzf vmware-freebsd-tools.tar.gz #: cd vmware-tools-distrib #: ./vmware-install.pl ;defualts here should be fine #: cd /usr/X11R6/lib/modules/drivers ;we need the following since vmware-install.pl does not install the mouse driver #: cp /tmp/vmware-tools-distrib/lib/configurator/XOrg/6.8.x/vmmouse_drv.o #: vi /etc/X11/xorg.confIn vi, change the following lines:
Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse" #<<-- this line (changed from "mouse")
Option "Protocol" "ps/2"
Option "Device" "/dev/input/mouse0"
Option "ZAxisMapping" "4 5 6 7"
EndSection
//@end@\\
Friday, January 05, 2007
Common QNX commands
c:\path_to_phindows>phindows.exe -t{IP_ADDRESS} -w800 -h600 ;opens a Phindows session on the specified ip using 800x600 res
Thursday, January 04, 2007
Compile farms and test machines
Wednesday, January 03, 2007
Common Solaris 10 commands
#: kdmconfig (note can only be used for XSun)To reboot the machine
#: init 6or
#: shutdown -i6 -g0 -y
Monday, January 01, 2007
Reading documents in Handspring Visor
Zig basic Windows application using win32 API
Zig basic Windows application using win32 API Info : OS: Windows 10 IoT LTSC 2021 Zig: 0.15.2 Sample application using zigwin32, Window...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...
