Archive for the ‘computers’ Category

Set up Verizon USB720 BroadbandAccess card on OpenSuse 11

Tuesday, September 2nd, 2008

Just wanted to share the settings I used to get it working (because discussion boards are full of things that don’t work, and most people are jerks who never share that they got something working).

Using KNetworkManager (haven’t gotten it working using if-up)

Click on KNetworkManager icon (it’s the one that looks like a globe) in the taskbar. Go to “New connection…” and select ttyUSBX from the submenu (X may be 0, or something higher if you have a USB-RS232 converter like I do). Then, enter these settings:

Number: #777
Username: YOURVERIZONNUMBER@vzw3g.com
Password: vzw

Baud Rate: 230400
Data bits: 8
Parity: None
Stop bits: 1
Send delay: 0

Make sure “no authorization” is checked. Also, in the last screen, you might want to check “auto connect”.

Similar settings should work with Sprint’s usb card, which is pretty much identical.

Install Flash Plugin in Linux x86_64

Monday, August 4th, 2008

Download the .tar.gz plugin (even if you’re using an .rpm-based distribution), untar and:

nspluginwrapper -i libflashplayer.so

You don’t have to copy the file first or anything. If that command doesn’t work, install nspluginwrapper, but any self-respecting x86_64 distro will install that plugin by default for your browser.

T-Mobile Web (formerly T-Zones) settings for Samsung/Softbank 707scii

Thursday, May 22nd, 2008

I got me a Softbank 707scii. Some sellers on eBay actually offer gprs unlock. This means, I can surf the internet on my Japanese cell phone! So, anyone who’s trying to figure out the right settings, here they are:

Access name: wap.voicestream.com
Authorization type: Normal
User ID: [blank]
Password: [blank]
Protocol: WAP
Home URL: http://wap.myvoicestream.com (I reckon this optional.. Yahoo is also good)
Gateway address: 216.155.165.050
Secure connection: Off
Log-in timeout (sec.): 90

I might add that the trick seems to be power cycling the device.

One more thing about Mac OS X keyboard suckiness

Sunday, February 24th, 2008

…they hijack the F keys. I like having a volume key, etc., but why can’t that be additional keys? F5 is refresh! kuh

Earlier Post:
Mac OS X vs. My Keyboard

How to respond to events in a custom WindowSWF panel (Actionscript 3)

Wednesday, January 23rd, 2008

One power you have in making custom panels for Flash (or whatever recent Adobe programs that support flash-based panels) that is almost never realized is the ability to respond to events. Does anything like this sound familiar to you: you want to update the panel every time the user changes a document or creates a new one? You want to do something when the document closes? The user moves their mouse (and not directly above the panel)? Fools all over the internet dogmatically claim that it’s impossible. It’s not. Here’s how you do it:

Writing purely in Javascript for Flash (JSFL), you might notice that you can attach events much like you can in actionscript thusly:

someCallback = function () {
    alert('all your bases are belong to us');
    }

fl.addEventListener("documentChanged", someCallback);

To do that in your flash panel, simply enclose that stuff in an MMExecute(); Thusly:

MMExecute("someCallback = function () { alert('all your bases are belong to us'); }");
MMExecute("fl.addEventListener("documentChanged", someCallback);");

And.. it works. Sure enough. But that’s not very interactive. I want FLASH to do something (since javascript just doesn’t do much in the authoring environment), like, say, update the display with new info. Wouldn’t it be cool if I could do this?

MMExecute("fl.addEventListener("documentChanged", SomeAS3Function);");

Alas, not possible. Holy Hell. ExternalInterface can’t even help us out here (right? I’d love to be wrong here…) But here’s what you can do. It’s not terribly pretty, but it does the job and when Adobe comes to their senses and builds AS3 JSFL communication into newer products, it would be very easy to modify the code for a more elegant solution. You can have global variables in the javascript and access them anywhere in the flash document. So, try this:

MMExecute("var updt = false");
MMExecute("updateDoc = function() { updt = true; }");
MMExecute("fl.addEventListener('documentChanged', updateDoc);");

Then, somewhere that is always looping (i.e., where stop() wasn’t called), you’ll want to add an event listener for entering the frame:

this.addEventListener(Event.ENTER_FRAME, updatey);
function updatey(event:Event) {
if(MMExecute("updt") == "true") {
   // whatever you wanna do! Resurrect dinosaurs, make robots feel...
   MMExecute("updt = false;");
   }
}

Note, that MMExecute returns a string so, though it be boolean in javascript, it’s converted to “true” and “false” in actionscript. When dealing with arrays and such, this becomes particularly frustrating, though you must question the design of your program any time you are passing complicated objects around… think about it.

Oh, one final note. It seems the capabilities I wish existed in Flash do exist in Fireworks (?) as detailed here. I looked and looked but could not find any equivalent to IsFwCallbackInstalled for Flash. Given how many things I’ve had to discover that were not anywhere to be found on Adobe’s site and how many undocumented features there are, I can’t help but wondering if a more elegant solution is lurking below.. Do tell me if you find it, mmkay?

Type runes on your Mac

Sunday, December 23rd, 2007

I finally got around to making a Mac OS X keyboard to let you type Futhorc. I don’t know why I waited until just now (probably because it’s not important?), but it was really easy since they even have a program to automatically generate Mac OS X keyboard layouts, rather than typing the needed xml by hand. This is directly equivalent to the one I made for Linux, and by extension to the only Windows one I could find (see page).

Here’s my page on typing runes on your computer. It’s good whether you’re a Windows baby, a Mac fag or a Linux ass. It’s also avail under my code > type runes on your computer.

Create iCalendar Files in PHP

Saturday, December 22nd, 2007

I whipped up a php class today to generate iCalendar files. I noticed halfway through making it that there are others (more like other, just iCalcreator). Mine focuses on just being really simple and so far, its output parses in everything I’ve used  (including Google Calendar).

Check it out here.

Mac OS X vs. My Keyboard

Sunday, September 16th, 2007

I like Mac OS X and all, but there’s just one thing that really bugs me about the Mac - Apple’s contempt for the keyboard. I wanted to know if any of you out there know the answer to these problems:

  • In Windows or Linux, you can hit the end key to go to the end of the line you’re typing or the home to get to the beginning. This neither works on my mac laptop nor my mac mini with a pc-keyboard.
  • On any other OS, you can hit the tab key while editing a form and the tab not only goes to the text fields, it goes to radio buttons, select boxes, etc. But on Mac, these are skipped right over. Why?! Can I change this? It doesn’t matter what browser I use; I could use the same browser on all platforms with the same problem only on Mac.

These issues waste more time for me than even writing this blog! The keyboard is so fast and I want to bypass Mac’s Mouse-ocracy. As a programmer, these things are particularly frustrating!

MusiTone

Saturday, March 4th, 2006

There’s this cool font you can use to pretty much make your own sheet music. It is a chore making music this way.. hmmm.. if only some robot could type the notes for you *grin* Anyway, on an entirely unrelated note, I made my own modifications to make it have additional unicode mappings, which you can download here.

Yahoo! Avatars

Monday, December 5th, 2005

Yahoo Avatars, aka e-transvestite, is addictive! I just wish they had more clothing options. There is also the Japanese equivalent at avatar.yahoo.co.jp, which is totally different and includes many clothing options one must pay for….