2011-11-20 C++ HTML

Embedded Declarative HTML in C++

How about writing that in C++:

Node html
{"html", {{ "lang", "pl" }}, { // tag with attributes
  {"head", { // tag without attributes
    {"title", {
      "Page Title" // text node
    }}
  }},
  {"body", {{ "style", "background-color: #fff;" }}, {
    {"h1", {"Page Title"}},
    {"div", {}} // empty tag
  }}
}};

cout << html;

and getting that:

<html lang="pl">
  <head>
    <title>
      Page Title
    </title>
  </head>
  <body style="background-color: #fff;">
    <h1>
      Page Title
    </h1>
    <div />
  </body>
</html>

Continue Reading… Comments

2011-09-23 HTML JavaScript slideshow

Another HTML/JavaScript Slideshow Library

There's a bunch of them. Here's another one: the Sroo. My main excuse for creating it was to learn some JavaScript and DOM manipulation. It's probably not very new and original but I've combined some features that sounded sane for me:

Continue Reading… Comments

2011-06-20 Clojure sound

Sound Synthesis & Playback in Clojure

I've been playing with sound in Clojure lately so I thought I'd document what I've learned.

This tutorial covers generating simple, clean sounds of desired frequency (sines) and accessing Java Sound API (it's not that scary, really). We'll start with nothing and at the end, we'll even play some melody with synthesized sounds :) (no instruments, pre-recorded samples or whatsoever).

Entry level: know where your repl is.

Continue Reading… Comments

2011-05-22 WebGL OpenGL CoffeeScript LOL JavaScript

WebGLOL

I deviated form my Clojure stuff for a while and made something completely different.

Continue Reading… Comments

2011-05-16 GUI FTW Clojure event handling

Reintroducing GUI FTW & Progress Report

I meant this post to be a simple translation of this but some things changed that are worth mentioning.

Continue Reading… Comments

2011-05-07

Restarting in English Mode

It's time to admit that starting blog about something in it's early days (like Clojure is) in Polish was a failure. In past (almost) year I've developed belief that community should keep together tight. Creating content in Polish doesn't make sense when all Clojurians use English to exchange their knowledge. It's like intersecting two very small sets (Polish & Clojure) -- intersection elements count is very·very small.

Continue Reading… Comments

2011-04-04 GUI FTW Clojure Java event handling

Zdarzenia w GUI FTW

Tradycyjnie w Swingu bądź SWT żeby obsłużyć zdarzenie musimy utworzyć nową implementację jakiegoś interfejsu, np. MouseListener a potem go zarejestrować w obiekcie, którego zdarzenia nas interesują:

Continue Reading… Comments

2011-03-20 Clojure GUI FTW

Niech się stanie GUI FTW!

Ponieważ uwielbiam programowanie deklaratywne brakowało mi od dawna czegoś deklaratywnego do tworzenia GUI. Kod tworzący GUI jest zawsze bardzo nudny i powtarzalny: "stwórz obiekt, ustaw jego tekst, ikonę, dodaj akcję na klik (wcześniej stwórz obiekt implementujący odpowiedniego listenera), ew. stwórz obiekty-dzieci, bla bla bla".

Continue Reading… Comments

2010-09-03 Python pyparsing Makeblog fail

Błąd młodego parsownika

Parsownik -- osoba pisząca parsery.
(Termin zawdzięczam mojemu bratu.)

Continue Reading… Comments

2010-08-16 Makeblog make

Intro

Witam serdecznie. O blogu, który by się tak nazywał, działał i wyglądał myślałem od jakiegoś czasu. Będę pisał o własnych zainteresowaniach, skupiając się zapewne w głównej mierze na języku Clojure. Mam dwa pomysły na pracę mgr, których, dopóki nie dorosną, nie zdradzę.

Wygląd strony jest minimalistyczny; mam nadzieję, że jeśli nie przypadnie komuś do gustu to przynajmniej nie będzie przeszkadzał w dostępie do treści.

Continue Reading… Comments

2010-01-07 graphics Java screenshot

Efekty uboczne programowania

2009-06-07 C++ make

One Makefile To Rule Them All

One Makefile to rule them all, One Makefile to find them,
One Makefile to bring them all and in the batch compile them
In the Land of Unix where the Shells lie.

Continue Reading… Comments

Toggle: Abstracts, All Tags
Long-standing Bug: All Articles, About, RSS
Tags: Clojure[4] GUI FTW[3] C++[2] HTML[2] Java[2] JavaScript[2] Makeblog[2] event handling[2] make[2] CoffeeScript[1] LOL[1] OpenGL[1] Python[1] WebGL[1] fail[1] graphics[1] pyparsing[1] screenshot[1] slideshow[1] sound[1]
© Copywrong 2011 Szymon Witamborski