Archive for October, 2008

slow ssh under ubuntu fix

Oh, the grinding and gnashing of teeth! My ssh to various boxes was redonkulously slow… I finally realized… it was just me… or rather just my ubuntu… or actually… just the ssh_config for my ubuntu…

Thanks to ssh -v, I saw:

debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found

which made me say: wtf is gssapi-with-mic? After some digging, I found this crap in /etc/ssh/ssh_config:

GSSAPIAuthentication yes

I changed it to

GSSAPIAuthentication no

check the difference:

% time ssh some_host echo GSSAPIAuthentication yes
GSSAPIAuthentication yes
real    0m15.398s
user    0m0.028s
sys     0m0.004s
% time ssh some_host echo GSSAPIAuthentication no
GSSAPIAuthentication no
real    0m0.364s
user    0m0.028s
sys     0m0.008s

The math sez it’s about 42x faster with that dumb junk turned off!

>.<

Comments (1)

haXe 2.01 Released

Dang! How did I miss this? Two weeks ago… haXe 2.01 Released!

% wget http://haxe.org/file/hxinst-linux.tgz
% tar xfz hxinst-linux.tgz
% sudo ./hxinst-linux
% haxe -h 2>&1 | grep ^Haxe
Haxe Compiler 2.01 - (c)2005-2008 Motion-Twin

The only issue with the installer is it doesn’t have a “hell yeah” option…. imho… :-D

Leave a Comment

haxe archetype

This page is out of date! The current page is over here!

Start new haxe projects fast!

Installation + Quickstart

% sudo haxelib install archetype
% haxelib run archetype create -artifactId=myProject -packageName=us.versus.them -version=1.0
% cd myProject
% haxe compile.hxml
% ls myProject.swf
myProject.swf

Introduction

This is based on the idea of the maven archetype plugin.

In maven this works something like this:

mvn \
        archetype:create                   \
        -DartifactId=myProject             \
        -DgroupId=myGroup                  \
        -DpackageName=us.versus.them       \
        -Dversion=1.0.0-SNAPSHOT

The syntax is similar:

haxelib run                               \
        archetype                         \
        create                            \
        -artifactId=myProject             \
        -packageName=us.versus.them       \
        -version=1.0

The arguments artifactId and packageName are mandatory.

If version is not set, it will default to 1.0.

In this example, the archetype would create a directory structure like so:

        myProject/
        |-- Main.hx
        |-- Test.hx
        |-- haxelib.xml
        |-- compile.hxml
        |-- test.hxml
        |-- tests
        |   `-- AppTest.hx
        `-- us
            `-- versus
                `-- them
                    `-- myProject
                        `-- App.hx

Despite the name, this is not nearly as flexible as maven’s archetype plugin. In order to add more archetypes, you would actually have to modify the source code for this module.

Maybe someday, it can grow into a real equivalent. For now, it is better than nothing.

Compilation and package

% haxe compile.hxml
% cd ..
% zip -r myProject.zip myProject

You can install them into your local haxe library ala:

% haxelib test myProject.zip

running testcases

Running unit tests is a little clunky…

% haxe test.hxml && neko test.n

Unfortunately, you have to update Test.hx to add new tests. They can live in the tests subdirectory to keep them separate from the main code.

source

I put the source such as it is where you can get it and play wif it like it was some sort of ball or barbie!

Comments (3)

update: maven + seam numberguess demo

Well… I finally got around to cleaning this up and getting it completely converted over to maven2 using seam 2.0.0.BETA1.

The troubles I had with the ear plugin went away when I move to maven 2.0.9!

Here is the quick and dirty:

% wget http://brianin3d.googlepages.com/in3.tgz
% tar xfz in3.tgz
% cd in3/
% mvn package
% cp ear/target/in3.ear .
% mv in3.ear ${JBOSS_HOME}/server/default/deploy/in3.ear

hit it as http://localhost:8080/seam-numberguess-mvn

Next up, I want to try a bigger app like the dvd-store example.

Then I should be able to create an archetype :-D

For now, the tarball makes a pretty good maven2 starting point for some types of fun

Comments (2)

Yahoo’s “Search Submit Basic” is a total freakin’ rip!

A while back, I stumbled across Yahoo’s “Search Submit Basic” and (though I notice the service description has changed now), it claimed that any urls you submitted would get “crawled” and “indexed”

Well… what it turns out to really mean is you give them $49 to do what Google Analytics does for free.

Save your time and money… it is a total scam.

I’m not sure what the legitimate use for such a crap service would be but if you are trying to get web pages indexed this is not it.

Of course, I’m sure Yahoo’s not really trying to defraud anyone… and the language on the description of service are much better now, but still… $49 would have payed for a lot of s3…

The bottom line is I don’t really mind so much and I wouldn’t mention it, but I don’t want my previous reference to be taken as an endorsement.

Save your money.

Leave a Comment

Older Posts »