Samstag, 25. Oktober 2014

so this is an interview question for a programmer:

swap two variables without a temporary variable

well

a=3
b=5

a=a+b
8=3+5

b=a-b
3=8-5

a=a-b
5=8-3

a=5
b=3

greetz WV

Freitag, 12. September 2014

cool, its still as simple as the last time I tried, well lets see what all leads from here :)



greetz WV

Montag, 28. Juli 2014

Life Hack #3127: DIY Airconditioner



hate the heat or do something about it... I chose latter :D

greetz WV



Dienstag, 20. Mai 2014

first real print test

-hardware works on long runs... check
-software is stable for now... check
this looks actually ok to me. now some better coding and the results are actually usable (just 6 layers here) :D



greetz WV

Sonntag, 4. Mai 2014

Montag, 24. Februar 2014

Voltage Measuring over USB

yay, with a simple resistor divider I can measure the temperatur of my sensor (variable resistor), this way Ill be able to make a better heating controller :D




greetz WV

Mittwoch, 29. Januar 2014

3D Printer over USB

finally I had time to rewrite my software for the stepper motor controller card, so now I can use it over my USB IO board/expansion board. Now all that is left to do, is the additional stepper controller (my circuit), but I guess I forgot to buy some parts for it, so it will take a while... and then yeah, build the damn mechanics!



greetz WV

Sonntag, 26. Januar 2014

Expansion Board IO

Here a demo of using my Expansion Board for IO


greetz WV

Expansion Board

yay, finished my expansion shield for my IO board, so now I have access to data0-7 and strobe on parallelport! this way I can do usually LPT bitbanging or in my case control a stepper motor card!





greetz WV

Freitag, 17. Januar 2014

And done! added the other 12 pinouts, some hotglue to the usb port and made some "feet" out of the hotglue... works 1A!




greetz WV

Donnerstag, 16. Januar 2014

USB 4 All

finally all parts arrived, and I could solder the first time this year :D this is my all-in-one-IO circuit, after sprut's USB4All circuit and firmware (source) also wrote a little testprogram to flip a LED on/off


greetz WV

Montag, 30. Dezember 2013

LAN Pong

Here comes the first version of my demo game, LAN Pong. For now only single player is done, but almost all game mechanics for MP are prepared, so next step will be including the SDK for MP



now on SVN...
greetz WV

Mittwoch, 25. Dezember 2013

well fine, my server has player and session list implemented, time to write a real demo game :) on SVN...

greetz WV

Dienstag, 24. Dezember 2013

it actually works fine! I love my packed vars... :) now on SVN


greetz WV

Montag, 23. Dezember 2013

Universal Game Server SDK

following up to the previous post, I created a SDK for a universal gameserver. It will handle player authentication, stats, lobby chat and game listing. So f.e. an example game log into it and sees what other players and games are available. Once a hosting player starts a session, the other talk to him over p2p with the IP they got from this game server. The "protocol" are the packed variables from previous post. WIP and first stable version on SVN :D



here the example code for creating the test packet, convinient enough for me^^

public static void SendTestPacket()
        {            
            List<NetHelper.PackedVariable> l1 = new List<NetHelper.PackedVariable>();
            l1.Add(NetHelper.CreatePackedVar(1, -1)); 
            l1.Add(NetHelper.CreatePackedVar(2, (uint)0x1000)); 
            l1.Add(NetHelper.CreatePackedVar(3, 3.1415f));
            List<NetHelper.PackedVariable> l2 = new List<NetHelper.PackedVariable>();
            l2.Add(NetHelper.CreatePackedVar(5, l1));
            l2.Add(NetHelper.CreatePackedVar(4, "Hello World"));
            List<NetHelper.PackedVariable> l3 = new List<NetHelper.PackedVariable>();
            l3.Add(NetHelper.CreatePackedVar(5, l2));
            l3.Add(NetHelper.CreatePackedVar(2, (uint)0x1111));
            SendPacket(NetHelper.CreatePackedVar(5, l3));
            log.Write("GameClient : Test Packet Send", 5, Color.Blue);
        }


greetz WV

Sonntag, 22. Dezember 2013

Packed And Streamed Variables

Sometimes a picture explains alot more than text. I needed a way to send structured (nested) variables over network as streams of bytes, so I decided to go for blocks that can nest, and quickly implemented this (10 mins). Its a bit like binary xml I guess :)


greetz WV

Mittwoch, 13. November 2013

Samstag, 9. November 2013

So, ACTA, SEPA and what they are not all called, prevent me from circumventing any reverse engineering protections and also any copy protection? So loading my DVD in my player, which loads it into its memory for playing, is actually illegal? Or cant I actually just copy any digital code, sell it for less and claim mine, just add a little protection and the original owner cant legally bypass it and proof its stolen? Does it help to delay research into critical infrastructure, just because I could really find out how it works? sometimes...

greetz WV