BlackHC's Adventures in the Dev World | Just another weblog
Title: BlackHC's Adventures in the Dev World | Just another weblog
Description: BlackHC's Adventures in the Dev World | Just another weblog BlackHC's Adventures in the Dev World Just another weblog Menu Skip to content About Projects Before 2008 moreBench LX for more3D GmbH Nexui is ranked 12298836 in the world (amongst the 40 million domains). A low-numbered rank means that this website gets lots of visitors. This site is relatively popular among users in the united states. It gets 50% of its traffic from the united states .This site is estimated to be worth $9,537. This site has a low Pagerank(0/10). It has 1 backlinks. has 43% seo score. Information

Website / Domain:
Website IP Address:
Domain DNS Server:, Rank

Alexa Rank: 12298836
Google Page Rank: 0/10 (Google Pagerank Has Been Closed) Traffic & Earnings

Purchase/Sale Value: $9,537
Daily Revenue: $26
Monthly Revenue $783
Yearly Revenue: $9,537
Daily Unique Visitors 2,404
Monthly Unique Visitors: 72,120
Yearly Unique Visitors: 877,460 WebSite Httpheader

StatusCode 200
Content-Type text/html; charset=UTF-8
Date Tue, 16 Aug 2016 11:14:10 GMT
Server nginx/1.10.1 Keywords accounting

Keyword Count Percentage Traffic Sources Chart Similar Website

Domain Site Title ADEHospitality | Just another WordPress weblog | Just another WordPress weblog a2art ? Just another WordPress weblog Just another WordPress weblog Nominas | Just another WordPress weblog DreamTemplate - Just another WordPress weblog FicusTree | Just another WordPress weblog Cris' blog | Just another weblog Welcome To | Just another weblog BlinkServe | Just another WordPress weblog Alexa Rank History Chart aleax Html To Plain Text

BlackHC's Adventures in the Dev World | Just another weblog BlackHC's Adventures in the Dev World Just another weblog Menu Skip to content About Projects Before 2008 moreBench LX for more3D GmbH Nexuiz Some Notes and Tales About Nexuiz Red Thumb Games Shelled Inside Shelled’s Development Sploidz Inside Sploidz's Development Blender MD5 Exporter University Acceler8 2011 Accelerate Your Code, Early 2012 BSc Thesis: Discrete Elastic Rods Light Propagation Volumes MSc Thesis: Assisted Object Placement PowerPoint Tools Seminar about Motion Retargeting Seminar about Rigid Body Motion Student Job at CAMPAR VGA Hardware Project Search for: Imitating PBRT-style literate programming in LaTeX March 25, 2013Coding, Tools, Universitycode fragments, LaTeX, literate programming, Macros, PBRTBlackHC Today, I want to release another bit of code from my master's thesis. However, this time it won't be C++ code, instead I'm going to release some LaTeX code which I used to display source code fragments with. Specifically the results look like this: You can download the accompanying example PDF here. This mirrors the style of PBRT, which uses literate programming to develop and explain an advanced raytracer. Only it doesn't require you to write source code that adheres to literal programming principles. I used it to take parts of the source code of my master's thesis and explain them. The following LaTeX code is used to create the fragment above: \defTaggedCurrentFileFragment+= 1 \defTaggedCurrentFileFragment+= You can either inline code fragment using a special listing environment, or you can reference code fragments in an external file. C++ // = int fac_r( int n ) { if( n 1 2 3 4 5 6 7 8 // = int fac_r( int n ) { if( n Cross-referencing is allowed as well and forward page references are created just like in PBRT. However, I have not figured out how to create backward references. You can find the LaTeX code on GitHub. I have not wrapped it into a LaTeX package because I don't consider it mature enough, but maybe someone finds it useful, and it eventually ends up in a package (that would be neat :)). To close, I want to say that the book More Math into LaTeX1 has been very useful while creating these LaTeX macros. It is the first book that covers creating custom macros and commands understandable and in-depth. It feels good to finally understand a bit more about how you can customize LaTeX to fit your needs Cheers, Andreas Footnotes (? returns to text) see also Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Creative learning, Scratch and alternatives for learning how to create games February 28, 2013Coding, Game Projects, Games, UniversityAlice, App Inventor, BYOB, Etoys, GameFroot, Greenfoot, Learning Creative Learning, Lifelong Kindergarten Group, MIT Media Lab, Scratch, SmallBasic, Snap, StarLogo, Stencyl, TouchDevelopBlackHC I'm still working at university as a student researcher for the chair of software engineering in a very unconventional placement: I help prepare and teach courses about topics in computer science to pupils, usually age 12-16. My university 1 actually invests a lot of resources in promoting engineering degrees and applied sciences because the schools cannot. Schools here have only so many resources, and the computer science and mathematics curricula are mostly boring and uninteresting. For me, computer science is a lot about being creative and about identifying and solving problems. I'm not sure I would have been interested in computer science that much if it had been just another subject like biology or geography. The courses we give are usually just one or two hours long for groups that visit our faculty, but we also have courses that last a whole day or two and cover topics in more detail. We usually choose topics that are more interesting than what you might learn at school and that show that computer science is not just about typing in code for hours without end but consists of analyzing real-world problems, devising algorithms and tinkering. Most pupils already know a bit about computer science, and some even know how to code a bit with Java, but they are always positively surprised when we work out together how to get out of a labyrinth 2, how to come up with sorting algorithms, or how to encrypt messages easily with some binary magic 3. Right now I am tasked with updating and recreating a two-day course about creating games that was held two times in the last years. The original course was only intended for girls with no former coding experience and used Scratch as development tool. The updated version should be a bit more advanced and introduce more elements of game development properly to be both fun and educational. For this, I examined Scratch and alternatives to determine how to proceed. It ended up consuming a whole day and when I was done I had a beautiful mind map covering quite a number of different tools and frameworks. Having some spare time, I decided to write it all up in a blog post Scratch Scratch is a programming language with an IDE that is targeted at young people who have never coded before. It has been developed by the Lifelong Kindergarten group at the MIT Media Lab. Scratch Coincidentally, I'm participating in an online lecture they are offering right now: Learning creative learning. It is free and quite interesting---and Scratch is mentioned and discussed there as well. Scratch's user interface is very simple and intuitive to use. You can code programs without having to type code. Everything is based on blocks that can be dragged and dropped to create event-based behaviors. Users can draw their own sprites and animate them or easily import their own pictures and use them. Scratch has an active online community and it is easy to share your projects with others and get feedback, which encourages participation. However, a more experienced user quickly finds many limitations; for example, it is not possible: to create procedures, ie custom blocks, and the message sending blocks are too primitive to create really complex behaviors; to rename variables, which makes refactoring impossible; to change the sequence of statements easily; or to create new sprites (game objects) dynamically. Moreover, I already found a Heisenbug: I could not write a simple lock to keep an event script from being run multiple times that works at run-time---it only works as described in the docs during step debugging (at reduced script execution speed). Nonetheless, I consider it a very valuable tool that can be used to ease children into coding. The current 1.4 release needs to be installed on your computer, but they are working on a 2.0 release that will run entirely in the browser. You can give its beta a try here. Creating programs using drag and drop is a very nice idea and I really appreciate Scratch's user interface. And I'm not the only one: Scratch has spawned many spin-offs that expand on its design. This has been possible because its source code has been released. You can find it here. I have also examined some Scratch spin-offs that I have found: Snap Snap (formerly called BYOB for Build Your Own Block) extends Scratch and adds support for custom blocks, first-class lists and procedures, and continuations. It becomes a lot more like a functional language this way. You can run it here. The available documentation explains the new concepts very well. A German translation is available for download, too. The last release is from 2011, so it might not be actively maintained anymore. Snap StarLogo TNG StarLogo TNG extends Scratch into 3D and has been developed at the MIT as well. It is targeted at multi-agent systems and older users. It is more complex and there are some interesting tutorials and workshops available online: one shows how to build an ant population that knows how to pick up objects; and another one shows how to develop an epidemic model. MIT App Inventor MIT's App Inventor lets you build mobile apps easily using a Scratch-based programming interface. It supports a WYSIWYG UI editor as well. This used to be Google App Inventor apparently. GameFroot GameFroot's editor looks pretty polished. It is browser-based, and it is very simple to create a side-scrolling platformer out of the box. However, scripts are not that important and most behavior is predefined. So it's probably not a good tool to tinker with. The games that have been created with it naturally look very similar. GameFroot Stencyl Stencyl is another game-creating tool, but it looks very mature and there is a pro version that is sold for 80-150 USD per year to publish your games to mobile devices and computers. The normal version only supports browser games. It is updated regularly but there is no localization support (yet). Stencyl The documentation is fairly complete, and it supports writing behavior scripts by using a Scratch-like interface, which supports custom procedures as well, or by writing JavaScript code. Lots of different games have been created with Stencyl. Here are some which I've tried and which are really fun to play: The Little Who Balls in Space The Wish I've also looked at IDEs that are not based on Scratch. Etoys Etoys is similar to Scratch but not as polished. However, it has been translated to many different languages. It also lacks the social community features which are so prominent in Scratch. Moreover, you cannot run projects in the browser straight-away because a special plugin has to be installed first. This all probably hinders its adaption. When you actually give it a go, you will be surprised by how nice it is. It feels very different to Scratch because it uses a unified workspace. There is no special script plane like in Scratch. Everything is part of the workspace. For example, when you look through the tutorials, you not only see an elastic ball bouncing, but you also see the special workspace frame that contains all different animation frames and the script code to assign them to the ball one after the other to emulate its deformation. This way you don't have to imagine anything. It's all there in the open for you to see---and debug if necessary. Sadly, there is not much documentation and for me it is not as intuitive as Scratch. Alice Alice is is similar to Scratch and Etoys, only that Alice is using 3D scenes and is geared towards story telling. It's quite to big with over 600MB, but for this you get quality models to play around with. I can't say much about its features. There is not much documentation available online. You probably need to buy their book "Learning to Program with Alice" to really learn more about it. I do not like this. However, there is some free stuff available. It is somewhat hidden, but here is a link. Again, you only code using drag and drop, but you can switch to a Java mode which makes the blocks look like their equivalent Java statements. Greenfoot Greenfoot can be used to teach programming with Java in a game-oriented context. Programming is done in a normal text editor. Greenfoot displays a class hierarchy and allows you to place instances of actors in a 2D scene. You can then control them manually or subclass actors and override their methods. It's fairly basic but probably a good introduction to Java programming. If you start out with Scratch or Alice, it should be a small step from drag and drop coding to "real" coding. Microsoft SmallBasic I have learnt programming using good ol' QBASIC on my parent's 386, so I wouldn't disagree with a Basic dialect as a first language. Microsoft gave it some love, and it looks polished. I'm not sure how many are using it because there is no social community linked to it and the last release is from 2011. There is no specific support for creating games and the language is quite limited. Microsoft TouchDevelop This is really cool. Microsoft Research has a developed a fully fledged script language for mobile devices, so you can code using a touch-based interface. You can read more about it in the free online book "touchdevelop - programming on the go". Of course, it also runs in your browser and you can try it yourself I don't think it is the best choice for creating games, but you can certainly learn how to program with it by creating "serious" apps for your mobile device. Maybe this makes it interesting for adult beginners to programming. That's it for today. Cheers, Andreas Footnotes (? returns to text) Technische Universit?t München, Maze solving algorithm? Xor cypher? Share this: Print Facebook Google Email Like this: Like Loading... View all 2 comments Al et WML February 26, 2013Coding, Tools, UniversityJSON, WML, YAMLBlackHC First, I have created some new pages regarding old university projects. Among them is a condensed page about light propagation volumes, which also made me update the project files to Visual Studio 2012, a page about my bachelor thesis in mathematics (Discrete Elastic Rods) and a page about my master thesis in computer science (Assisted Object Placement). I have not written about the latter two subjects before. Maybe I'll talk some more about them later and write a full post-mortem on them. This is the first of a number of posts that will be related to my master thesis, or rather code drops from its code base. I have written about 60k LoC in the 6 months of my master thesis and there are a few bits that might be useful in the future. The first one that I want to talk about is a very simple file format I came up with. Devising new text file formats is not something that I have been very keen about lately. Especially not as some many already exist. However, I have found none which has really fit my requirements: minimal clutter (preferably indentation-based), support for raw text inclusion, and good C++ support. JSON has too much clutter and doesn't support raw text. YAML, on the other hand, sounds like the perfect choice, even though it's not that easy to find a good library for it. However, when it comes to raw text, you run into the issue that tab characters are never allowed as indentation. Moreover, I was not very happy with the API choices and some bugs in the libraries that I tried to use. So I decided to develop a very simple text-based data storage format: WML - Whitespace Markup Language I'll just start with an example, ie my readme. You can find the full readme here. 'Whitespace Markup Language': Aims:: * very simple * no clutter while writing * only indentation counts * empty lines have no meaning * embedding text is easy * everything is a map internally Example: title "test\t\t1" path 'c:\unescaped.txt' version 1 content:: unformated text newlines count here properties: time-changed 10:47am flags archive system hidden streams: stream: data:: some data this is nested too flags: read write execute stream: data:: key names dont have to be unique (see stream) flags: read write: users andreas root 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 'Whitespace Markup Language': Aims:: * very simple * no clutter while writing * only indentation counts * empty lines have no meaning * embedding text is easy * everything is a map internally Example: title "test\t\t1" path 'c:\unescaped.txt' version 1 content:: unformated text newlines count here properties: time-changed 10:47am flags archive system hidden streams: stream: data:: some data this is nested too flags: read write execute stream: data:: key names dont have to be unique (see stream) flags: read write: users andreas root As you can see, it is a whitespace-based format inspired by Python. Like in Python, indentation is used to convey structure. A WML file represents a map structure: every node has a name and possibly multiple children. A node definition in a WML file either contains the node name first and then multiple children names (which won't have any children themselves), the node name followed by one colon to signify that a nested definition follows (similar to JSON), or the node name followed by two colons to signify a raw text block. Two different kinds of strings are supported: single-quoted raw strings that do not interpret escape sequences, and double-quoted C strings that support escape sequences. All in all, the grammar is very simple: Grammar:: INDENT, DEINDENT are virtual tokens that control the indentation level NEWLINE is a line break Indentation is done with tabs only at the moment. Here is a rough EBNF syntax for WML: root: map value: identifier | unescaped_string | escaped_string identifier: (!whitespace)+ unescaped_string: '\'' (!'\'')* '\'' escaped_string: '"' (!"\"")* '"' with support for \t, \n, \\, \', and \" key: value map: map_entry* map_entry: inline_entry | block_entry inline_entry: key value+ NEWLINE block_entry: key ':' ( ':' NEWLINE INDENT textblock DEINDENT | NEWLINE INDENT non-empty map DEINDENT ) Note:: This file is itself a WML file and root["Whitespace Markup Language"]["Example"].data() is the example WML node 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Grammar:: INDENT, DEINDENT are virtual tokens that control the indentation level NEWLINE is a line break Indentation is done with tabs only at the moment. Here is a rough EBNF syntax for WML: root: map value: identifier | unescaped_string | escaped_string identifier: (!whitespace)+ unescaped_string: '\'' (!'\'')* '\'' escaped_string: '"' (!"\"")* '"' with support for \t, \n, \\, \', and \" key: value map: map_entry* map_entry: inline_entry | block_entry inline_entry: key value+ NEWLINE block_entry: key ':' ( ':' NEWLINE INDENT textblock DEINDENT | NEWLINE INDENT non-empty map DEINDENT ) Note:: This file is itself a WML file and root["Whitespace Markup Language"]["Example"].data() is the example WML node I've used this format for custom shaders as well as for my settings files and the declaration files of my test scenes: boxes: -: name 'platform, brown' size 20 2 20 webColor 945412 -: name 'platform, green' size 20 2 20 webColor 129429 -: name 'platform, muddy blue' size 20 2 20 webColor 6488a5 -: name 'platform, light blue' size 20 2 20 webColor e5eaf1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 boxes: -: name 'platform, brown' size 20 2 20 webColor 945412 -: name 'platform, green' size 20 2 20 webColor 129429 -: name 'platform, muddy blue' size 20 2 20 webColor 6488a5 -: name 'platform, light blue' size 20 2 20 webColor e5eaf1 I've uploaded the current code for WML to GitHub, and you can find the code here. The API supports an overloaded index operator to access children of a node and contains both a parser and an emitter for WML. Afterthoughts First, the current API isn't brilliant. It would be nice to separate the data model from the parser and emitter by using templates and type traits to improve abstraction. I think I might go and investigate different API types in the future and see which one works best for some simple cases. Second, it would be possible to reduce clutter even more and remove the need for single colons to denote nested maps. A even simpler format could look like this: nodeA nodeB nodeC nodeD nodeE nodeF nodeG: raw data with fixed indentation would be interpreted as "raw data\n\twith fixed intendation\n..." 1 2 3 4 5 6 7 8 9 nodeA nodeB nodeC nodeD nodeE nodeF nodeG: raw data with fixed indentation would be interpreted as "raw data\n\twith fixed intendation\n..." This would yield the following JSON-equivalent: JavaScript { "nodeA": { "nodeB": {} , "nodeC": {} , "nodeD": {}, "nodeE": {}, "nodeF": {}, "nodeG": { "raw data..." : {} } } } 1 { "nodeA": { "nodeB": {} , "nodeC": {} , "nodeD": {}, "nodeE": {}, "nodeF": {}, "nodeG": { "raw data..." : {} } } } This still separates raw text from normal data. A node that contains raw text can never contain other children this way. However, I cannot think of a good way to accomplish that without introducing a special character to end a raw text block. That's it for now Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Unity Prototype Project February 6, 2013Coding, Game ProjectsGame Development, Prototype, UnityBlackHC For the last two days I've tried out the Unity engine with a friend from university, Andreas Ostermaier. If you don't know the Unity engine, go and check it out. Its design is very similar to Torque 2D. I can't tell who used it first, but Unity's design is more mature than what I remember from Torque 2D 1.3 back when I was still using it in 2007. A scene is made up of game objects. A game object is a container of components (also called behaviors)1. A game object always contains a Transform component which places it in the scene (and in the scene hierarchy). Usually, it contains a Mesh component and a Physics component for handling rendering and collision detection. But sometimes empty game objects are useful as well: as respawn points for example. Custom scripts, written in JavaScript or C#, can be wrapped in a Script component and tied to game objects in the same way. Templates/prototype objects2, called prefabs, are used to avoid creating all game objects by hand. Instances of a prefab link back to the prefab, that is the original object, and automatically inherit changes to it (or the children in its hierarchy). Torque 2D 1.3 lacked this feature: GarageGames had an editor plugin in development when I was doing contract work for them but I'm not sure it has ever been released. We have spent the last two days implementing a PoC for a game idea my friend came up with. The idea is about being able to switch between 2D and 3D in a platformer to solve puzzles. It is about reinterpreting a level when it is seen from a 2D perspective. For example, two separate tiles above an acid pool that cannot be reached by jumping from one to the other can suddenly be connected by switching to 2D because they look connected. This slideshow requires JavaScript. You can play the PoC build here, using Unity's webplayer, or download it here in a .zip archive. Use the left mouse button or 'c' to switch between 2D and 3D. There are a few games that are similar to this idea: Echochrome, Super Paper Mario, and Crush (and its sequel Crush 3D). You can find the code on GitHub (ie here). Cheers, Andreas Footnotes (? returns to text) See eg,, and for an overview? See Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Presentation (seminar) about convex analysis September 29, 2012Maths, UniversityBasics, Convex AnalysisBlackHC Last year (yes, I'm really slow with writing things up "lately") I did a presentation about convex analysis as part of a seminar about inverse problems in imaging. I want to write about it today. The seminar was based on the book 'Handbook of Mathematical Methods in Imaging (Springer Reference)'. It's very expensive and, in my opinion, pretty useless to learn about any details. At least the chapter about duality and convex programming was very dense and you could not learn anything from it without consulting other book. The presentation was supposed to give an overview over duality and convex analysis and serve as introduction. Summarzing 42 very concise pages in 45 minutes is impossible, so I had to choose a few topics that give an overview over the important concepts and go into detail there. The book itself does not really contain many proofs which makes it hard to follow. As a mathematician I like proofs. They help clear things up usually and they can give valuable insight into the methods of a theory when they're good. But proofs suck when you see them on powerpoint slides. They also suck when you're the presenter. So I gave a blackboard presentation---using a few slides only to show some pictures and sketches which I could not draw well enough on a blackboard. To prepare the presentation I used OneNote and my Bamboo tablet. I scribbled all down over a weekend in one OneNote notebook and later extracted some sketches into another notebook that I used instead of a PowerPoint presentation. I exported the original notes as PDF and used this as handout after the presentation. The presentation was alright. I had fun writing everything down on the blackboard and developing the subset of the theory I wanted to present, and the audience was content with it, too, because it was just at the right speed and like a lecture everybody was used, too. In retrospect I can say that using OneNote and a tablet to create a blackboard presentation was the best decision. I don't want to think of the time I would have lost if I had created everything with LaTeX or PowerPoint. Long story short: here are my notes Cheers, Andreas Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Molecular Dynamics and CUDA---my interdisciplinary project April 16, 2012Coding, UniversityCUDA, IDP, MarDyn, molecular dynamicsBlackHC You have to do a interdisciplinary project for your Master's degree at the Technische Universit?t München. I decided to do it at the Chair for Scientific Computing. My topic was the Efficient Implementation of Multi-Center Potential Models in Molecular Dynamics with CUDA. For this, I have parallelized the molecule interaction calculations in the molecular dynamics simulator MarDyn with CUDA, optimized the code, and added support for more advanced potential models on the GPU. What is molecular dynamics? Molecular dynamics deals with the simulation of atoms and molecules. It estimates the interaction between a high number of molecules and atoms using force fields which are modeled using quantum mechanics equations. Such simulations are important for many different areas in biology, chemistry and material sciences. For example you can examine the folding of proteins or the nanoscopic behavior of materials. The simulations are sped up using sophisticated approximations and algorithms. Molecules only have strong force interactions with molecules that are nearby. One of the first approximations is to take into account these strong interactions only and ignore weaker long-distance ones. This space locality of the calculations leads to the Linked Cell-algorithm. It divides the simulation space into a grid of cells and only interactions between molecules inside each cell and with nearby cells are calculated. Molecules are composed of atoms which interact using different physical principles. This is approximated by having different sites in a molecule that use different potential models. The most common and simplest potential model is the Lennard-Jones potential. What is MarDyn? MarDyn is a molecular dynamics simulator that has been developed at the Technische Universit?t München. See Martin Buchholz's thesis for more information. Its code is rather ugly and it features some crazy design decisions. I have been told that the people who were initially developing it where learning how to code in C++ at the same time---and it shows Previous work When I started, there was a 'working' implementation of Lennard-Jones potentials for molecules with only one site on the GPU. It used OpenCL and was the result from somebody else's IDP. However, it was not very useful: the code was crammed into one function and one letter variable names were used through-out. The main aims of the project The idea was to port the previous OpenCL implementation to CUDA and continue from there to add support for multiple sites with different potential models. Chronology of my work Porting the code to CUDA was a straight-forward API change. However, I found the original code to be impossible to read, maintain, and optimize. The logic behind the code was not clear or well explained. Consequently my supervisor and I decided that I would rewrite everything and optimize it from the beginning. This took longer than expected and while the resulting parallelism and the logic behind it were clear in the code, code complexity was an issue. The code consisted of three helper functions and two kernel functions in two files and when I went and integrated support for multiple sites and potential models, it became clear that the current design was not clear enough to endure further feature additions and lacked the flexibility for quick changes. Treating the old implementation as a prototype and knowing about many possible traps and fallacies, I set out and rewrote everything again. This time the focus was on modularity and separation of concerns instead of performance. Code architecture was the most important thing this time around. I scaffolded the new version around the old code, which was working correctly and already optimized. I embedded it into the new design step by step. Afterwards I optimized the code. What I've done I've: worked with CUDA 1.x and 2.x, used both the driver and the runtime API, implemented a template-based, very modular code design, tried lots of optimizations, and learnt how to read PTX to find work-arounds for compiler bugs. Sadly many optimizations didn't improve the performance noticeably. I think the monolithic, all-in-one approach I've used is the main issue. My code uses the driver API, because it would be easy to dump all the CUDA calls and replay them later for debugging purposes. If I could iterate over the code one more time, I'd try to use many small kernels instead of only two rather large ones. Currently the kernels sequentially calculate all potential models for the molecule pair that are needed (for each site). This makes it difficult to measure performance improvements and isolate bottlenecks. And I suspect it's slower than it has to be. I'd also create a sandbox application to test and develop the kernels instead of using MarDyn as starting point, because it is unnecessarily huge and it is not really needed to verify that the CUDA code works (or not). Final paper & code You can find the final paper that contains a description of my code and the performance results here, and my code here (I cannot include MarDyn's code because its source is closed, but at least I can share my code). Alternatives I just want to share two more links: HOOMD-blue is a molecular dynamics framework, which uses CUDA, too, and the code design looks what I probably should have done VMD is a molecular visualization application, which looks promising, too Cheers, Andreas Share this: Print Facebook Google Email Like this: Like Loading... One comment so far A Long Journey: Acceler8 and TBB November 16, 2011Coding, UniversityBlackHC A month has passed with Intel's Acceler8 competition and it has finally come to an end. It's been a long way from implementing the first sequential algorithm to having a fully-fledged parallel version. I have never worked with Intel's Threading Building Block library before and it was a nice opportunity to examine it, since it offered a better abstraction than OpenMP or pthreads. The documentation is very good and you quickly learn how to work with the library. One of the caveats is that I didn't have to use a low-level synchronization construct once in the development and everything worked fine without any race conditions or similar . The parallel_* functions (eg parallel_for, parallel_reduce, and parallel_scan) together with icc's C++0x support (lambda functions) allowed for very concise code and little programming overhead. The implementation builds on Kadane's algorithm for the two dimensional case using prefix sums. One implementation that gets across the basic idea can be found here. Mine is similar and I simply parallelized as much as possible. As you can see the outer two loops iterate over a two-dimensional range that is pretty much an upper right triangle of the whole possible domain. For this I've implemented a custom range that allows for better load balancing. A range in TBB defines an iteration range of any kind and supports a split operation that is used internally by the task scheduler to distribute the range dynamically on multiple threads as it sees fit. Last but not least I came up with a way to parallelize the 1D part of Kadane's algorithm that is being used by splitting the column range into linear subranges and merging the subsolutions into one solution, ie a classical divide and conquer approach. Because it's the most abstract yet interesting part of our implementation, I'm going to go into more detail here. How can you find the maximum subarray of a 1D array, if you know the maximum subarray of the two "halves" (they don't have to be split evenly)? Well, you don't, you need more information. We calculate the following information for each chunk: maximum subarray that starts at the beginning of the chunk maximum subarray that ends at the end of the chunk total sum maximum subarray It's easy to figure out how to merge these values for two neighboring chunks into the values of the merged chunk. The merged maximum subarray that starts at the beginning of the merged chunk is either said value for the left chunk or the total sum of the left chunk + that value of the right chunk. You can figure out how it works for the maximum subarray that ends at the end of the merged chunk The maximum subarray is just the biggest of all merged values or the left maximum subarray or right one. Using this idea you can use a simple parallel_reduce to parallelize Kadane's algorithm. Of course, there is some overhead but for the right problem sizes this will be faster than the sequential algorithm as always. Two more take-aways: Always try to use language features like templates or lambda expressions to reduce duplicate code or make the code more concise. Write unit tests. I have used googletest which is a very small but very capable library, and it has spared me a lot of debugging trouble. Cheers Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Reading Nonfiction Books Quickly November 2, 2011Personal Rantings, UniversityBlackHC I like to read books and I also like to read nonfiction books and in particular nonfiction books that I do not agree with. Speed Reading For this I've decided to look into speed reading. It is an umbrella term for methods that increase your reading speed while keeping a satisfactory comprehension level. A usual reading speed is 200-300 wpm (words per minute). Speed reading advertises increasing your speed to > 600 wpm. I've searched around for a bit and read lots of blog posts and articles and here are my favorites: is a good introduction to the main techniques of speed-reading. It also includes some exercises and is a short read. describes the author's personal experience with fourhourworkweek's article. There is also speed-reading software available. The idea is your eye movement is the main hindrance to reading really fast, so this software displays the text for you to read in groups of several words in the center of the screen. This way you can read everything at once without having to move your eyes at all. As crazy as it sounds, it works to a great degree. is an online reader that works this way. Give it a try! You can make it display the introduction text at 600 wpm or 800 wpm and see how you'll understand - you'll be surprised! 'The Speed Reading Workbook' is what I've been using to practise it. It's okay written and has plenty of exercises and includes timing and evaluation sheets, which are really useful for measuring your progress. A good summary of many concepts can be found in the PowerPoint Presentation 'Double your Reading Speed in 25 Minutes'. About Reading in General is a good read and has many good suggestions about how to increase your reading productivity. Own Expierence I've been exercising with the workbook now and then for the past weeks and I've become faster but this is still an ongoing process for me, so I'm going to blog about it later (or rather update this post). For what it's worth: my reading speed was 300 wpm and now it is around 550 wpm Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Presentation Advice August 14, 2011UniversityBlackHC So.. the summer term has passed and I'm wrapping things up and one of the final things I want to get out of my notebooks into this blog are some notes I took for feedback during my Hauptseminar in my maths studies. Everybody had to do a 60 minutes presentation and the audience was asked to take notes about the presentation style to give feedback later (in addition to paying attention to the presentations). There were 4 blackboards in the room and a beamer. Here are my notes: 4 pages are the most you can do in 60 minutes (ie write down on the blackboard) really think about your audience and what you want them to take away and focus on that in your presentation practice your presentation a few times before your big day if you use formal mathematical symbolism to express an idea, make sure all symbols and variables are properly defined/explained (for it to make sense!) never tell people to "only ask questions at the end because it would disturb your presentation"! focus on important concepts and ideas motivate definitions and formulas - prefer an algorithmic view on things try to use images and graphs to visualize ideas if you can't avoid complex definitions and deductions, use a handout make sure the handout doesn't contain superfluous information which will only confuse readers don't just copy your handout onto the blackboard, if you hand it out at the beginning of the presentation (it's okay, of course, if you do it afterwards) never clean all blackboards at the same time avoid long breaks in your presentation keep on talking all the time, even while cleaning the blackboard to keep people engaged if the blackboards are in front of each other, always start writing on the one on the back if you can use PowerPoint, try to use it for complex/boring formulas or for visualizations, which are impossible to draw by hand on the other hand, make sure, you don't put things into PowerPoint, that would be better written out slowly on the blackboard always listen to criticism politely, but don't take notes of it, while you're in front of your audience don't degrade yourself by apologizing exaggeratedly for mishaps put the sources of referenced material onto the slide the material is used in don't waste time on complicated 'examples' that are too detailed to be of any use for the audience don't let technicalities obscure examples - stick to the important parts of them it's nice if the handout doesn't exactly match the presentation always conclude your presentation with a summary of the main points of your talk try to build intuition for your topic in your audience instead of explaining difficult proofs no one will remember or care for later anyway make sure you have chosen the right priorities for your presentation and trim it down as much as possible This was it Cheers, Andreas Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment T61 Extractor August 13, 2011Coding, Tools, Webbackup, extractor, firefox, Java, selenium, thesixtyoneBlackHC I've been a vivid fan of - until they changed the design. The old site can still be found here: Many of my most favorite songs are from this site and I have only been able to listen to them through the site. However, since the aforementioned design change, the site has really died down in my opinion and I was fearful ever since that it would simply go down some day and vanish - taking my songs and playlists with it. As counter-measure I've written a java console application to extract playlists and songs from thesixtyone. It uses Selenium to remote-control a FireFox instance that uses the normal user-interface to play songs and read in playlists. I've uploaded the code to launchpad: I've tested and used it myself and it runs alright. This was a small weekend project (or rather two weekend project) that I did a few months ago but I only found time now to write about it. The code should be mostly self-explanatory and it's not a lot of code either. Cheers, Andreas Share this: Print Facebook Google Email Like this: Like Loading... Leave a comment Posts navigation ← Older posts Blogroll Chris Hecker’s Homepage Entar’s Blog Experimental Gameplay Introversion’s DevBlog My Info1 Blog (German) Check This Out! Anteru's Blog Fabien Sanglard'sWebsite Kot-in-Action My PowerPoint Tools Categories Alientrap (1) Books (3) Check This Out! (8) Coding (63) Game Projects (19) GameInADay (2) Nexuiz (5) Red Thumb Games (5) Tools (7) Visual Studio Extensibility (10) Web (6) PHP (3) Games (8) GarageGames (10) Maths (14) Personal Rantings (44) Uncategorized (1) University (25) Meta Log in Entries RSS Comments RSS Tags ActionScript analysis ANTLR Binomial Coefficient Blender MD5 Exporter Python C# Code Model Crysis Crytek Custom Attribute custom project Darkplaces Gecko Tabletop Debug Engine Extensibility FBO Flash game Gecko Darkplaces Rantings guidance package hacking Java LaTeX Light Propagation Volume Macros Math Problem Maths Message Sending MiKTeX mirror's edge OpenGL PHP PowerPoint random SplashDamage office photos TGB Torque Game Builder TorqueScript trailers Transfer Functions VBA Visual Basic Visual Studio Visual Studio 2008 Visual Studio SDK WordPress xkcd Proudly powered by WordPress Send to Email Address Your Name Your Email Address Cancel Post was not sent - check your email addresses! Email check failed, please try again Sorry, your blog cannot share posts by email. %d bloggers like this: Whois

Domain Name: BLACKHC.NET
Registry Domain ID: 1510500106_DOMAIN_NET-VRSN
Registrar WHOIS Server:
Registrar URL:
Updated Date: 2016-06-12T20:30:24Z
Creation Date: 2008-07-09T22:31:49Z
Registrar Registration Expiration Date: 2017-07-27T07:02:15Z
Registrar: FastDomain Inc.
Registrar IANA ID: 1154
Registrar Abuse Contact Email:
Registrar Abuse Contact Phone: +1 801 765 9400
Reseller: HostMonster.Com
Domain Status: clientTransferProhibited (
Registry Registrant ID:
Registrant Organization:
Registrant Street: 560 E TIMPANOGOS PKWY
Registrant City: OREM
Registrant State/Province: UTAH
Registrant Postal Code: 84097
Registrant Country: UNITED STATES
Registrant Phone: +1.8014948462
Registrant Phone Ext:
Registrant Fax:
Registrant Fax Ext:
Registry Admin ID:
Admin Organization:
Admin Street: 560 E TIMPANOGOS PKWY
Admin City: OREM
Admin State/Province: UTAH
Admin Postal Code: 84097
Admin Country: UNITED STATES
Admin Phone: +1.8014948462
Admin Phone Ext:
Admin Fax:
Admin Fax Ext:
Registry Tech ID:
Tech Organization:
Tech Street: 560 E TIMPANOGOS PKWY
Tech City: OREM
Tech State/Province: UTAH
Tech Postal Code: 84097
Tech Phone: +1.8014948462
Tech Phone Ext:
Tech Fax:
Tech Fax Ext:
DNSSEC: unsigned
URL of the ICANN WHOIS Data Problem Reporting System:
Last update of WHOIS database: 2016-06-12T20:30:24Z
For more information on Whois status codes, please visit
The data in the HostMonster.Com WHOIS database is provided
to you by HostMonster.Com for information purposes only,
that is, to assist you in obtaining information about or related to
a domain name registration record. HostMonster.Com makes
this information available "as is," and does not guarantee its
accuracy. By submitting a WHOIS query, you agree that you will use
this data only for lawful purposes and that, under no circumstances
will you use this data to: (1) allow, enable, or otherwise support
the transmission of mass unsolicited, commercial advertising or
solicitations via direct mail, electronic mail, or by telephone; or
(2) enable high volume, automated, electronic processes that apply
to HostMonster.Com (or its systems). The compilation,
repackaging, dissemination or other use of this data is expressly
prohibited without the prior written consent of
HostMonster.Com. HostMonster.Com reserves the
right to modify these terms at any time. By submitting this query,
you agree to abide by these terms.
UNLIMITED storage, bandwidth and domains on one account. Also receive a *FREE* domain for one year when you host with