+ 0 - 1 | § ¶DISA for Asterisk
In order to set up DISA on Asterisk@home (or Asterisk if you put this in extensions.conf rather than _custom.conf):
to extentions_custom.conf; where 9998 is the extention you want to dial and xxxx is a numeric pin[ext-local-custom] exten => 9998,1,Answer exten => 9998,2,DigitTimeout(5) exten => 9998,3,ResponseTimeout(10) exten => 9998,4,Authenticate(xxxx) exten => 9998,5,DISA(no-password|from-internal)
**** If anyone can help me figure out why this hangs up on me; please drop me a note at adrianhensler at gmail (dot) com. It authenticates okay; but then either times out or just hangs up after I try to dial.
+ 1 - 1 | § ¶Common Java errors
I'm starting to feel like I might have some promise. I made a few nice generic errors today; and caught them. One that I was proud of was realizing that I had used the '=' to test for equality rather than '=='. Not only that; but I had also been checking to see if one string was equal to another string of equal contents. But of course; they were'nt the same objects to this test failed; because I obviously wanted to test for equality of the string contents of those two objects. (Hello$ = "Hello" is not equal to a string called Hello2$ that also holds "Hello" because they are not the same object. If you had Hello$="Hello:; Hello2$=Hello$ then they refer to the same object and Hello$==Hello2$. To get the desired results I used the s.equals(test) as in "Hello".equals(Hello2$). I also missed dozens of semicolens and I am starting to get the hang of some of the Java compiler errors. This error though; was today's best:
I spent about 30 minutes trying to fix my classpath before giving up and going to Google. Even that took a good 20 more minutes before someone pointed out in a forum that the "HelloDate/class" is the key here. Note to self - when you run a java application; don't call it by "java application.class" (or worse; "java application.java which I kept doing as well); but rather call: "java application". I think I got thrown off by running the compiler so much with "javac application.java". I think I'm about ready to graduate to a proper IDE like Eclipse.org or netBeans.org. Up to now; I've been using the excellent jedit.org.Exception in thread "main" java.lang.NoClassDefFoundError: HelloDate/class
+ 1 - 1 | § ¶Make XP look like a Mac
I may have to try this; check out the July winner from www.osx-e.com. Pretty sharp. Either that; or try to get a copy of the Intel version of Tiger.
+ 0 - 1 | § ¶Hacking the flourescent light bulb
Hacking the flourescent light bulb is a great idea. Basically; add some flourescing material to a bulb; that way it continues to glow for hours after you turn it off. The idea here is to cover situations like emergency power lighting or power outages. The article even mentions that you can remove the light from the fixture and carry it around, as well as continuing to provide light after being shattered. That had me thinking; so I did a quick search on glow paint and got a few decent results. I'm thinking that painting the bathroom door trim might be kind of fun; or perhaps the inside of a lamp shade. Cool? Perhaps. I haven't run it by Lori yet.
+ 0 - 1 | § ¶Using Java to access password protected URL's
I was looking for this the other day; and didn't find it - and today I stumble on it almost by accident.
If you want to use Java to access a URL that requires a username/password combo; this page will tell you how to do it:
Java Tip 46: Use Java 1.2's Authenticator class
Although I may use this other tip:
Java Tip 47: URL authentication revisited
because it looks like it might be easier for me to wrap my head around and insert the username and password combo right in the code. There are a bunch of user/pass combos that I need to put in there; I know it's not very secure but usability would suffer and the way I want to use this, security won't be an issue anyways.