New mixes on soundcloud
- January 19th, 2012
- Write comment
Last year was really busy and it doesn’t stop. Anyway I had some time over Christmas holidays to upload a couple of mixes on soundcloud.
Enjoy!
DnB
Techno & House
Last year was really busy and it doesn’t stop. Anyway I had some time over Christmas holidays to upload a couple of mixes on soundcloud.
Enjoy!
DnB
Techno & House
Hi,
I finished work on my Dependency Injection Framework. That Framework uses a or multiple context.xml File(s) to build Project and a logging.xml for setting up a logger.
1. Key Features:
- Dependency Injection (Create Objects and inject them into their dependencies, create contructor – arguments, object properties and call init Methods and some more…)
- Logging (each package of your Project can be logged or turned off from logging.)
- Message Localization (can be used to build a localized Project.)
- FileLoader (is a queue Loader and can defined as a LoaderGroup, can be used inside a Object Tag and could load sequential or altogether)
- Global Preloader (each file gets into a queue and the queue could be used to visualize a Preloader)
- MVC Actions (can be defined in each Object Tag.)
- Error Tracking (if an object is not defined or works as expected.)
- Form Validation (based on Regular Expressions)
- Shader Support (load and use Shaders as you want to)
- Iterator (Forward / Backward Iterator)
- FPS (simple FPS Viewer)
2. Setup:
| actionscript3 | | copy | | ? |
| 01 | // classLinking is used to import classes who will be used by DI |
| 02 | // its necessary cause DI wont find those classes |
| 03 | var $classLinking : ClassLinkingV1Final; |
| 04 | // create a new ContextParser Instance. Main entry Point |
| 05 | var contextParser : ContextParser = new ContextParser(); |
| 06 | // add files to parse. logging.xml and context.xml is used here |
| 07 | contextParser.addFile("config/logging_v1_final.xml");
|
| 08 | contextParser.addFile("config/context_v1_final.xml");
|
| 09 | // Event.COMPLETE if all is ready to start |
| 10 | contextParser.addEventListener(Event.COMPLETE, onComplete); |
| 11 | // add Events for listen. ErrorEvent.ERROR is an Error occurrs |
| 12 | contextParser.addEventListener(ErrorEvent.ERROR, onError); |
| 13 | // start |
| 14 | contextParser.start(); |
| 15 | // just for preloading view |
| 16 | addEventListener(Event.ENTER_FRAME, handlePreload); |
The Code above is just all for setting up the Framework. After contextParser.start() the Framework loads and parses all given XML Files, loads alle Content stuff and injects the dependencies.
3. Context (Just simple, in my active Projects really more complex)
| xml | | copy | | ? |
| 1 | <context></context> |
is the base node and could be have only one of the following nodes.
| xml | | copy | | ? |
| 1 | <localization></localization> |
| xml | | copy | | ? |
| 1 | <factory></factory> |
The Factory Node could have many
| xml | | copy | | ? |
| 1 | <object></object> |
Here comes an Object defined as GalleryModel:
| xml | | copy | | ? |
| 01 | <object id="galleryModel" class="screens.models.GalleryModel"> |
| 02 | <loaderGroup id="galleryGroup" groupState="active"> |
| 03 | <loaderTask id="galleryLoaderTask" ref="galleryModel" method="addImage"> |
| 04 | <array>images/0.jpg</array> |
| 05 | <array>images/1.jpg</array> |
| 06 | <array>images/2.jpg</array> |
| 07 | <array>images/3.jpg</array> |
| 08 | <array>images/4.jpg</array> |
| 09 | <array>images/5.jpg</array> |
| 10 | </loaderTask> |
| 11 | </loaderGroup> |
| 12 | <loaderGroup id="galleryGroup" groupState="active"> |
| 13 | <loaderTask id="galleryLoaderTask" ref="galleryModel" method="addShader"> |
| 14 | <array>shader/pixelate.pbj</array> |
| 15 | <array>shader/reflectioneffect.pbj</array> |
| 16 | </loaderTask> |
| 17 | </loaderGroup> |
| 18 | </object> |
The GalleryModel acts as a Model and holds Files for the FileLoader after all Files have been loaded, the Images could be used in the following Object.
| xml | | copy | | ? |
| 1 | <object id="gallery" class="screens.types.Gallery" ref="galleryModel" init="initGallery"> |
| 2 | <constructor-args> |
| 3 | <uint>1</uint> |
| 4 | </constructor-args> |
| 5 | <property name="id" value="gallery"/> |
| 6 | </object> |
The really important attribute in that Object is ref=”galleryModel”. That attribute defines that the Class Gallery has a reference of galleryModel so that you can use the loaded Images.
Thats just a really simple and short about how Objects can be defined. There are a lot of more.
Right now I use that Framework in all my Project, it gives me alle features I need to build a Flash Project in a really short time. All I have to do is a setup, the context, logging and ofc the UI implementation.
If you want some more Information, just send me an EMail or write a comment. Maybe I write some more detailed posts about the features and setup. Thanks!
I’m currently in a dilemma. A major App must be built in PHP so I’ve now the framework discussion.
As I’m a new team member and I’ve worked in the past with both frameworks I got the obvious question “which one I’d prefere?”.
I’ve to say that this discussion is my fault because I introduced Cake a few weeks ago. So my colleagues made some research and told me, that the main opinion about these frameworks is that Cake is for N00bs and Zend for skilled developer. This is shitt!
There are two types of frameworks:
White Box
In this case the developer must be familiar with the internals of the framework. Basically the developer will extend behaviors by using subclases. This is called inheritance.
Black Box
For this type of framework the developer must not be familiar with the internals. Basically objects were created and behaviors were delegated between them.
In other words for non technical: With a white box you need to code e.g. the “user”. Using a black box you tell the framework “make user” and the code for the “user” appears.
From the performance point of view a white box framework would perform better. This is because a black box fw needs a lot of “features” that were not used in most cases.
Basically every project hast its requirements and dependencies. In my case requirements can be shortened to: “Build a C10K app as cost efficient as possible”. Thus hosting and locale are also really important factors.
On the one hand by using a white box framework the app will have a better performance so that machine power (Server) is less needed but the developing time will be higher than using a black box. On the other hand an app built with a black box framework will need more machine power. So now the break even point between machine power and developer time must be calculated. Anyway machine architecture is important in both cases!
But let’s go back to Zend & Cake.
Zend can be used as blackbox and whitebox. Thus an app will have different performance depending in which “mode” the frame work is used. A developer can use Zend like libraries “the white box style” or heavy weight “the black box style”.
Cake is black box BUT coded in the right way Cake can also achieve a good performance and reduce developing time. This is why I like cake. You also don’t need to bake the whole app thus you can also achieve performance increase. Also by tuning caching, Cake can achieve the needed performance. But now the developer must be familiar with Cake internals too.
Please also keep in mind that Cake2.0 will be released soon. And there will be optimizations regarding performance.
At the end what does this say about skills? In my eyes nothing. For me a good developer will never produce “Spaghetti code, will follow design patterns and produce as rapid as possible so that it’s cost efficient.
I ordered my Kinect a couple of weeks ago but because of this hard winter it was delivered last week. So I couldn’t post earlier. Anyway let’s get started.
First we need to access the Microsoft Kinect USB camera. There is a library called libfreenect which is developed and maintained by the OpenKinect Community.
Now that we have access to some of the Kinect features we need to get the data to Flash. For that a wrapper is needed. Basically it sends the data via a socket to your flash app. The best source for AS3 is as3kinect. There you will find installers and HOWTOs to get the shitt working! For OSX there is an alternative written by Koji Kimura which is based on cocoa…. it’s called flKinect. In my opinion the API is not as “good” as as3kinect but flKinect has a program installer and doesn’t need any action over Cosole. This is good for me because I like others to test my experimental apps – for me, screen recording sucks! When I choose to use flash for an app/website the most important thing is interaction thus I need the feedback of others, mainly simple users.
At this point I have a clear idea of what type of app I want to built but for this I need more information of how Kinect works and how the data can be used/implemented. So I’m currently reading this:
But what does this mean for my flash development? Well this means that it was good in the past to get in touch with BitmapData manipulation, collision detection, motion tracking, color and edge tracking etc.. and it’s also good that I have all this clases that I can reuse for this project. But first I need to finish reading – so I hope this post was helpful!
I’ve been chatting in the past month with friends in the states, they are software engeniers, geeks etc.Sometimes I search for certain topics inside the logfiles so I can make background research….Thus I noticed that trending topics were “venture capitalism”, “startups” and how engineers changefrom a big player to an other for millions of Dollaz.Now I read, that Mr Schmidt says “There Was A Time When Three People At Google Could Build A World-Class Product And Deliver It, And It Is Gone.”
I’ve to think about this logs…. Some of this friends are responsable for such products and I mean, I know some of this guys for more than 15 years now and so far I can remember – at that time trendingtopics were – sure, kidd stuff – but also dreams, ideas – a vision. I could start saying all this “sortof magic” stuff, but this would sound like the agency guy.And no one likes the agency guy because “he sold himself”. But nobody recognizes that the agency guyjust chooses an other path for his dreams, ideas and visions. Sure Business needs are not the same,but there is a lot in common.
Hello Everyone ! It was an exiting Summer and I’m really really happy to had the chance to make you dance ! That’s why I have this extra gift for you.
Write down the Track-list for the electro mix and win a special DixonBaxi Poster from Offf 2010.

Just comment your Track-list and don’t forget to enter your email or website. The winner will be chosen in October ! Good Luck ! The winner will be chosen in October ! Good Luck !

Silentium

Some friends were facing character encoding problems on an oracle db.
Well the origin of this problem is that when you install an oracle,
in this case it was a 9i, the NLS_LANG param (if not defined) is set to
AMERICAN_AMERICA.US7ASCII. The language is AMERICAN,
the country is AMERICA, and the character set is US7ASCII.
This is really a problem if you live in Germany and you want to
work with german charachters & CLOB
The best way to avoid problems with the old JDBC they are using, is
to install the DB once again with an UTF8/16. But this is not possible.
There are also some other dependencies for these guys so the best way
for their workflow ist to do an exp, drop the user and imp again. Than
connect with the SQLDeveloper and recheck the CLOB.
| sql | | copy | | ? |
| 01 | |
| 02 | exp scott/tiger filename=mydump.dmp |
| 03 | |
| 04 | sqlplus scott/tiger |
| 05 | DROP USER scott CASCADE; |
| 06 | CREATE USER scott IDENTIFIED BY tiger; |
| 07 | GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO scott IDENTIFIED BY tiger; |
| 08 | |
| 09 | imp scott/tiger filename=mydump.dmp |
| 10 |
than sqldeveloper But please use SQL Developer with causion ! It sucks.

Yesterday a guy was claiming that he had to copy all counterstrike source files from one server to another. He was telling that this takes a lot of time because he had to sftp to desktop and than upload to server.
Well rsync can do this much quicker and better. I wrote a few years ago this little script called my_syncmokey.
| shell script | | copy | | ? |
| 01 | |
| 02 | #!/bin/bash |
| 03 | echo "***************************************************************" |
| 04 | echo "* *" |
| 05 | echo "* - Your Sync Monkey started - *" |
| 06 | echo "***************************************************************" |
| 07 | echo |
| 08 | echo |
| 09 | |
| 10 | #Logfile |
| 11 | LOGFILE="PATH/TO/YOUR/LOG.log".`date '+%Y%m%d_%H%M%S'` |
| 12 | |
| 13 | #config |
| 14 | SERVER="IP FROM THE SERVER YOU WANT TO PULL" |
| 15 | REMOTEDIR="/PATH/TO/THE/REMOTE/FOLDER" |
| 16 | LOCALDIR="/PATH/TO/THE/LOCAL/FOLDER " |
| 17 | SSH="/usr/bin/ssh" |
| 18 | |
| 19 | #output |
| 20 | echo >> $LOGFILE; |
| 21 | echo "- Sync Monkey started -" >> $LOGFILE; |
| 22 | echo >> $LOGFILE; |
| 23 | echo "Timestamp: " `date '+%Y%m%d %H%M%S'` >> $LOGFILE; |
| 24 | echo >> $LOGFILE; |
| 25 | echo >> $LOGFILE; |
| 26 | echo "command: rsync -av --links --rsh=$SSH $SERVER:$REMOTEDIR $LOCALDIR " >> $LOGFILE; |
| 27 | echo >> $LOGFILE; |
| 28 | |
| 29 | #sync and write to logfile |
| 30 | rsync -av --links --rsh=$SSH $SERVER:$REMOTEDIR $LOCALDIR >> $LOGFILE; |
| 31 | |
| 32 | #print output |
| 33 | cat $LOGFILE | while read line |
| 34 | do |
| 35 | echo $line |
| 36 | done |
| 37 | |
| 38 |

Last weekend I had to answer many questions about Mr. Jobs "Thoughts on Flash".
“What is your serious opinion?”
This thought are something I want to share with you. First I find Mr. Jobs words hypocritical for many reasons. Just to make it short:
“Adopting technologies quickly”
Apple just shipped a year ago the finder in cocoa and other programs are still running on carbon e.g. Final Cut. Dear Apple why did this take so long?
Itunes on Windows is crap. Why does apple not take advantage of the new features of Windows? Apple changed iPhone SDK Agreement so that applications should take advantage of Iphone OS so why they don’t take advantage of new Windows?
“open”
I think all this open bla bla should mask that H.264 is not open! Microsoft & Apple, both members of MPEG-LA, are going to make money with this video codec because it is proprietary and patented. So in Apple’s eyes if the specification of software is free than we can call this open standard? Fine, than Flash is an open standard too.
However, Apple sucks – this is something I was saying for years now. I did not make many friends with this statement at last Adobe MAX. Now I’m looking forward to meet those people and I’m curious if they are still so proud of using MAC Book Pro.
But what is the essence of this discussion?
A few years ago everyone was claiming that software inside the browser is the next BIG THING e.g. Gmail. Now I have the feeling the trend is going more and more towards apps. People are starting to use Apps for things, which could run inside the browser.Not only because of new ways of interaction e.g. Multitouch…
This shows that something is wrong with the web and with content that runs inside the browser. It doesn’t matter if HTML or Flash. And we should keep in mind that apps are not “open”.
I think the Web is loosing sexiness, web apps like Gmail etc. are far away to offer features like mobile/desktop apps do. (Non web apps are also often much faster).
This leak of features is something that the Browser must close. Mozilla and Chrome are on the right way. They must give Developer the option to do more than only W3C “adaption”. But I also know this is not simple…..
I met yesterday a good friend who has a c level position. And he asked me if I would still recommend developing an API for their business. Sure you should! Because it give’s you the option to deliver your content anywhere (Apps or Web) and to track it. This flexibility is something important for your business……..
What about Flash?
Flash has currently around 98% penetration thus it is not dead! Also HTML5 Browser propagation is poor at the moment. (I still have lots of customers & their consumers that use IE6) I don’t know currently when Google will roll-out VP8 on Youtube. This could change the game. Honestly, I never liked Flash. Not because of its technology. I don’t like flash because it’s mostly misused.

I had a few days ago a couple of minutes and I wanted to take a look into three.js.
I had the idea to use Audio Data API to get the sound spectrum of a song and combine this with three.js particles.
Just for an experiment…
As I needed a song that I could use without get fucked by those labels/artists I started a CC search and found Galdson’s Denilio – awesome.
A few minutes later the Experiment was ready and started. And it was so beautiful in my Eyes! But my computer is really crappy so I couldn’t enjoy and my time was over too…
Yesterday I started the experiment and I was unhappy again because of performance issues. But this was the original purpose of the Experiment, get a feeling for performance…..
Anyway I hacked a quick FPS keeper and voilá.
I promised to share but first you will need a Mozilla with the Audio Data API you can get it here:
Linux:
firefox-3.7a1pre.en-US.linux-i686
Mac builds:
10.5
10.6
Windows:
firefox-3.7a1pre.en-US.win32
The Experiment is here
cheers
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.