goodsoul
 
 

say HERE on google maps 2. May 2010

Filed under: autohotkey,customize,dev — eRiC @ 14:03

Short Story: Want a short link to a spot on google maps? Without a url-shortener service?

look it up at gmaps, get an about 200digit “link” from the upper right, throw away anything but http://maps.google.com/? the ll= and the z=-tags:

http://maps.google.com/?ll=40.662404,-73.972113&z=20

want a marker? Rightklick on a map and say “What’s here?”, get the link from upper right and do the same but with the q=-tag included:

http://maps.google.com/?q=40.662434,-73.972099&ll=40.662487,-73.972113&z=20

For that I made a small Autohotkey script to use with ac’tivAid.:

gmapURLShortener.ahk

If you are Autohotkey-able you could easily add an own hotkey to the script.. but … ;]

if you want the whole rant…: (more…)

No Translations


usability stuff: findWhenTyping manifest 3. January 2010

Filed under: autohotkey,bla,customize,dev,mel,scripts — eRiC @ 1:00

I love “findWhenTyping”-stuff: You know the new (sllloooooow-ass) search bar in windows vista in the start-menu and in every explorer? (Yes the thing they somehow borrowed from osx..)
In Firefox for instance there is Tools>Options>Advanced>”Search for text when I start typing“. So on any website you can just hit some letter-keys and it finds the occurence.

And they have it in the Options>Application tab as well as in the about:config. Just like it should be: If there is an interface with a list: You just never ever know how long the list can be. Will it be 10 entries or 7000? … I just made this a paradigm myself:

It’s a list? Offer findWhenTyping!

because manual scrolling and seeking just sucks.

Finally I had a little time to build such a thing myself. In our companys Maya-Toolkit (sorry no link, seems offline now) we have a lot of list-dialogs. Actually we have loads of list-dialogs all over the place. But the Maya toolkit is the only spot (thanks to my lame-ass scripting only skills) where I can put my hands on.

exept from the obvious things:

  • on keystroke: list content automatically shows matches only
  • entering nothing shows all entries
  • matching is non-case-sensitive
  • completely keyboard driven – you “can” handle the dialog without the mouse.

I have some additions that I haven’t seen in other similar dialogs:

  • a phrase that has does not match anything still shows the last matches – so if you have a spelling mistake the list doesn’t go empty. An empty list would be just useless.
  • first entry is always selected – so you don’t have to extra select something if you already typed the right letters – just hit enter
  • when entering an asterisk * the default asterisks around the *phrase* will be omitted – so you can write start* and it matches everything that begins with start but not with start somewhere within.

What I need to implement in the future because its so useful in the AwesomeBar from firefox:

  • hitting space starts a new search withing the current hits – this means you can combine keywords just with space. For example in your image-folder “cat cap” would find all pictures with “cat” in the name or tag but within this list only the ones with a “caption”-name or tag.

Ok. As I’m unable to finish this right now. I gonna just amend it with a video when I have something to show. :]

No Translations


release 3. April 2009

Filed under: bla,customize,dev — eRiC @ 0:26

Ahh releasing is just great! Now.. I got nothing :]

But I’m working on it! And I just want to shout it out here to make it myself aware and that its important! No matter what it actually is. If finally a new Mix, some graphics or something scripted.

Last weekend I went to the MAOW 09. The Mozilla Add On Workshok. That took place at c-base. Different lectures about stuff about Firefox. There was a speech of one of the original Mozilla guys and he had something is his slides:

release early, release often

you may know that one. So True if its about free projects or beta versions (the opinions may differ if its about commercial things like computergames … nope there is nothing to differ: these should be as bugfree as possible when coming to the market) With those things I do, say open source scripts for the closed source Maya or Autohotkey-stuff this is very appropriate of course!

But the next phrase! That one really catched me:

If you’re not embarrassed by your initial release
you waited too long!

Bam! I’m always tinkering until the cows come home. But what are versions for? And how shall I get feedback If I don’t publish?! So out with that shit!

Big on the agenda and hopefully here soon:

  • toolSyncTool
  • sunshine house mixtape
  • ewerybody in the house so blue – mixtape
  • lowtion – mixtape
  • ac’tivAid promo-screencast
  • melDrop 2
  • runAndHide

ok get going… Ehmm nope its so late alread…

Other Languages:


Whats going on… 28. December 2008

Filed under: bla,blog,demo,mel,music — eRiC @ 21:16

Hmmm been a while, huh? I’m a little rushed from some sides. But there is a lot up!

At the moment I’m actually blogging from the tUM in Karlsruhe Durlach! So Yes! a little demoscene again. And looks like I’m going to do a release myself! okok nothing really special: There is a music loop compo held. Its about a small piece of music (7sec) thats made to be played over again 3 or 4 times without getting boring. Actually my speciallity. Because every time I make music I don’t get past making loops. Finishing a track is not my cup of tea. I like arranging live. Isn’t it more exiting anyway? For apology on this spot I could say that good old Aril Brikha is recording his records this way only (at least I strongly believe he is doing it that way)! :]
If oficially released I gonna make the releases of our group available here.

Not much time for mel scripting though. But theres been at lease a little buzz on cgtalk about melDrop. But looks like I already threw it all over again on paper :D

Next version melDrop will be only directly available for script authors. Users get the melDrop script in the zips already so they don’t need to bother. Actually that wors already but I have some more thing up my sleeve that I need to work on the interface for. Apropos interface: This is gonna be awesome next version! All settings on one page. All on one view. You click Ok and see the installation progress and thats it. Plus arbitrary number of attached files and shelfButtons and Hotkeys with arbitrary commands.

The blog needs care as well I know.. I’d need to finish the about page and the language integration. But I upgraded to wordpress 2.7! Its not perfect but real cool that the next upgrades will be sans manually copy file by file.

Other Languages:


melDrop 2. December 2008

Filed under: dev,mel,scripts,video — eRiC @ 12:23

pchew… I got the stone rolling :D

ok, this is the homepage for melDrop. I gonna fill it by the time. For now its just a placeholder. Stay tuned.

I just uploaded melDrop to highend3D.com but they gonna take a moment to approve it.

Update: Ok melDrop is up at highend3D:

melDrop – Maya script installer

There should be everthing you need to know about that. I updated resetPivot and temporary uploadet melDropEnabler to sendspace to be awailable as long as its not up at highend as well.
Ah yea and I created a little transparent logo!

ok. Lets give it a try. I gonna make a post on cgtalk about that ^^

Update: Ok I posted at cgtalk, percutio (german Maya forum) and now highend3D as well.. No comments so far. Its been 3 days! They don’t like it :(

I mean .. its not the video, isn’t it? People say its a little fast. I know.
Shall I make another recording and then everthing goes BAM??! :D I don’t think so. Nah whatever.. I gonna use it anyway.

No Translations


do-what-I-mean-shit with Autohotkey 21. November 2008

Filed under: autohotkey,customize,dev,mel,video — eRiC @ 21:23

Hehe :]

Technical director floh wasn’t thrilled.. But I actually was looking for a way to do this long time:

If you script code sometimes you define stuff, a variable e.g. at the point where you finally want to use this variable you need to go back to the definition somehow (via mouse or cursor) copy it and return to the point where you felt like having that variable available. A word-autocomplete might help in that case as well. But if your var has a long prefix and … nah!

What I actually was looking for:

  • you get the idea: Oh I need this from over there
  • I press a hotkey to remember the position
  • you move to the thing you need and select it
  • you press another hotkey

then its finished: The piece you where looking for is at the spot.
Ok now chill the fuck out: I got this:

This has nothing to do with the code editor: Its all Autohotkey:

  • on Ctrl+Ins it figures out the typing-cursor/caret-position (does not always work FF e.g.)
  • places a tooltip and waits for you to press enter
  • you make a selection somewhere else
  • If you press Enter: It gets the selection
  • clicks the mouse to the old position
  • inserts the selection
  • restores clipboard and mouse position

Thats actually it! If you want to take a look at my puny source code:
or even want to test it out without having Autohotkey try the .exe:

http://goodsoul.de/ahk/rememberPosTool.ahk
http://goodsoul.de/ahk/rememberPosTool.exe
(virus total online check link: suspicios file… well it waits for your keystroke.. ;) )

First I had an ac’tivAid UserHotkey-snippet without the hotkey on/off crap… but somehow UserHotkeys somehow deselects the current window. Need to look into this later… This example works much better. So it doesn’t matter if you click via mouse or select with keyboard.

BUT: now the downsides:

  • I made it cancel when you scroll with the mouseWheel
  • but if you scroll somehow else its broken of course! Works only on screenspace!
  • some apps do not support the caret-position. Like Firefox for instance.

try on your own risk of course ;]

No Translations


nice site: Lifehacker 23. October 2008

Filed under: autohotkey,bla,blog,customize — eRiC @ 19:38

Why shouldn’t I post about when adding a new link. Nice Idea huh? :]

Lifehacker.com is a real cool glog! There is almost everything I’m interested in besides 3D-Stuff, electronic music, games and demoscene and even more of topics that I really should take a deeper look into:

  • handy tools for every Operating system, even online and very likely free and Open Source
  • customization-stuff and scripts for all sorts of things: Browser, OS, Gadgets
  • helpful Tips & Tricks & Tutorials for OS and tools
  • collections and polls for “Best 5 things for …”

but even stuff like that:

  • DIY (Do-It-Yourself)- and CheapAss-instructions for all kinds of things
  • tips for concentration and sorting tasks (getting things done stuff)
  • simple and comprehensible environment tips
  • fitness for nerds

Of course there is always crappy stuff flooding in e.g. Apple-news … *yawwwn*. But you get to know things beside your everyday round and if you are not happy with anything 100% (Texteditor, Calendar, Notestool..) might be there is already an alternative discussed at lifehacker.

If I finally get to release something Autohotkey-related I’ll definitely try to get it on Lifehacker! There isn’t even a dedicated ac’tivAid-Post! OKok, it lacks a cool presentation… My ac’tivAid-Vidcast is still long time coming ;] nah it will it will..

First I gonna get melDrop going. But thats a quite Maya-kind thing. More about that another time … (hopefully soon :D )

Other Languages:


scripting insights – fall-throughs 14. October 2008

Filed under: dev,mel — eRiC @ 18:17

Oh if you are scripting or coding you might come across those “insights”. This is of course to share my thoughts but to have a place to keep and remember this stuff as well. I mean maybe this is completely bollocks!! Comment if you you think so! :]

Ok: fall-throughs:
As I always try to cover as many cases as possible (within reason of course!) I create a lot of masseges to the user. In this style I really became sick of that huge if-else blocks that have the fall-through-message at the end. These tree like creatures:

if ($condition1)
{
    // do all this ...

    if ($condition2)
    {
        if ($condition3)
        {
            // do this too ....
        }
        else
            error "bla because of ...";
    }
    else if ($condition4)
    {
        // do other stuff ...
    }
    else
        error "bla bla blub...";
}
else
    error "bla bla bla...";

this shows the usual style one would do: But there are major drawbacks: the conditions and the error-messages are at opposite positions. And if you add a condition that might escape the whole thing you’d have to add another “scoping-level”…
Ok, now the insight: I write the escape-relevant conditions in negative style a line in the very front of the script:

if (!$condition1)
    error "because of ...";
else if (!$condition2)
    error "because of ...";
else if (!$condition3)
    error "because of ...";
else if (!$condition4)
    error "because of ...";

// now do stuff ...

With this style I have the conditions right at the error messages. The indentation is much less deep. And all the stuff that could crap up the thing is coupled at a definite place.

Ok.. this might sound like kindergarten to a real programmer but. I felt quite smart when doing so ^^

whatever now I wrote it down. So be it.

No Translations


Hooray its customize day! 22. September 2008

Filed under: customize,greasemonkey — eRiC @ 15:46

Wow, so much cool stuff today:

I just installed a fresh (obviously released yesterday) Find Toolbar Tweaks-version for Firefox 3 from Joji Ikeda. That addon is really a helper highlighting you every occurrence of your search in Firefox. It was already in Firefox 2 but it got outdated for the time being. I remember that there was an occurrence counter … maybe he adds it later.. dunno: More:

I was already digging in gmails DOM to maybe write a greasemonkey script that widens the darn message-box when reading and replying. but as I’m too dumb for that Raffles beat me to it with the userscript: Gmail Full Width 2

btw: On lifehacker – a nerdish website about customizing, tools, environment, fitness and cheapass stuff (whatta punchout combo!) – a best of the best list was just posted. “Best Digital Photo Organizer”, “Best Instant Messenger”, “Best Desktop Media Player”…. All collected over some months only voted by the users of the site. One special contestant triumphed at 3 disciplines:

Best GTD Application: Pen and Paper
Best Note-Taking Tool: Pen and Paper
Best To-Do List Manager: Pen and Paper

Okok 3 quite similar things and I don’t know whats the main difference between “GetThingsDone Application” and “To-Do List Manager” but very interesting that this made it to the tops so widely. :D

So go download your copy of Pen and Paper now!!

No Translations


YouTube Theater Black2 26. July 2008

Filed under: dev,greasemonkey,video — eRiC @ 17:49

I finally created my first Greasemonkey userscript!: :D
YouTube Theater Black2

And if you install it youtube looks like ->

OKOK, I didn’t do it from scratch. I’ve seen the yet a little puny but cool Better Youtube via Lifehacker. And the there included YouTube Theater. But that cuts away a little too much in my opinion. Then there is YouTube Theater Black. It already keeps the stuff but leaves it cluttered around after resizing the player and Text that is still written in black of course is no longer visible. Ok Now I just hacked this one with a little help from FireBug.:

  • like the others do: enlargens the player (a little bigger in my version. you know size matters)
  • like the others do: hides crap
  • background black
  • black text white
  • places the boxes nicely far under the player
  • removes the background of the searchbar

So still lots of Kudos to : Erik Nomitch (YouTube Theater) and Ivan Ivanovic (YouTube Theater Black)

Btw: The video I linked in the image: Very very funny and from Paul Fenwick! I wish all presentations would be made up like that. I wish I could do then when talking about scripting so people don’t hurt their heads no more on the table edges when dozing off.
There are other ones on his youtube page but very funny too was : SweeperBot 2000.

Other Languages:


Next Page »