Posts

RDP Automation in Ubuntu

Open gnome-terminal from Applications,  Accessories, Terminal Create a text file in your home directory, example "auto_rdp.sh" cd ~ nano auto_rdp.sh Copy and paste the following: #!/bin/bash echo 'Starting...' `date` rdesktop -u administrator -p your_password -s "cmd /k echo Hello World" & exit" 192.168.1.1 echo 'Finished...' `date` Modify 192.168.1.1 to the name or IP of the machine to connect to Change username and password to match an account that resides on the Windows computer (Warning, it's stored in clear text, using administrator is not recommended) CTRL + X, Y, ENTER, ENTER to save Make file executable with this command: chmod +x auto_rdp.sh Install gnome-schedule from Ubuntu Software Center:  Applications, Ubuntu Software Center When prompted to enable universe repos, click Yes. Open gnome-schedule. Add ~ubuntu/auto_rdp.sh to command to run and set frequency to your liking (where ~ubuntu is your signon name. ...

J2ME Selectable Table in NetBeans

Image
// ONLY WORKS FOR SELECTING ENTIRE ROWS!!! // This is a h@ck. Use at your own risk. -Tres import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Display; import org.netbeans.microedition.lcdui.TableItem; import org.netbeans.microedition.lcdui.TableModel; import org.netbeans.microedition.lcdui.laf.ColorSchema; /** * * @author A. Tres Finocchiaro */ public class SkidletTableItem extends TableItem { protected double rowBias = -1; protected double rowCount = -1; public SkidletTableItem(Display display, String title) { super(display, title); } public SkidletTableItem(Display display, String title, TableModel model) { super(display, title, model); } public SkidletTableItem(Display display, String title, TableModel model, ColorSchema colorSchema) { super(display, title, model, colorSchema); } public void setModel(TableModel model) throws IllegalArgumentException { rowBias = -1; rowCount = -1; super.setModel(model); } public void tableModelC...

AS/400 Hi-Res Icons

Image
Do you use Windows 7 or Windows Vista and still use an IBM Client Access for iSeries 5250 emulator to connect? If so, you may find the default icon (32x32) a bit small. Here's a modified icon to spruce up your Windows 7 desktop. Right Click --> Save As the image below. Name it "as400-hires.ico" Linux/Mac OSX Versions: -Tres