BenBE's humble thoughts Thoughts the world doesn't need yet …

13.11.2013

GeSHi on Git

Filed under: GeSHi — Schlagwörter: , , , , — BenBE @ 09:55:09

It’s FINALLY done!

GeSHi is now officially available on GitHub!

Text für „GeSHi on Git“ anzeigen
Direkt zum Beitrag

Flattr this!

06.03.2013

Zero is too large!

Filed under: GeSHi — Schlagwörter: , , , , , — BenBE @ 22:36:02

Welcome to our new series of strange bugs. Today we’ve got a brand new candidate called emptyness which is a really great star on the floor of PHP bugs. I was being stumbled upon this one by Thomas Puls who mailed me about the fact, that if you highlight a single 0 with GeSHi, it magically disappears.

Text für „Zero is too large!“ anzeigen
Direkt zum Beitrag

Flattr this!

22.11.2012

Schlimmer als Debian

Filed under: Software — Schlagwörter: , , , , , — BenBE @ 07:17:05

Dass ich nun nicht gerade über die Aktualität von Debian erstaunt bin, dürfte relativ gut bekannt sein – egal ob wir von über die Geschmacksrichtung Veraltet, Instabil oder Kaputt reden. Aber dennoch eignet sich Debian als gutes Beispiel um eine neue Metrik einzuführen, die die Aktualität (oder Inaktualität) von Software beschreibt, da Software die in Debian enthalten ist zumindest soweit ausgereift ist, dass man sie produktiv einsetzen kann.

Inaktualität ist an sich zwar nichts Schlechtes – zumindest bei der bereits genannten Distribution kommt damit ein recht solides Werk raus, aber ab irgendeiner Stelle sollte man klar sagen, so alt und nicht älter. Im Folgenden möchte ich diese Grenze als „Debian-Grenze“ bezeichnen.

Text für „Schlimmer als Debian“ anzeigen
Direkt zum Beitrag

Flattr this!

04.11.2012

Doing updates

Filed under: GeSHi — Schlagwörter: , , , , , , — BenBE @ 13:07:46

What does it take to get Debian to update a package?

More than two years, about 50 mails, 10 people from 3 different Debian-related IRC channels, 4 bugs filed by upstream and 2 security-related issues reported to the Security team … Sound’s legit IMHO.

Text für „Doing updates“ anzeigen
Direkt zum Beitrag

Flattr this!

27.08.2012

News in and around GeSHi 1.0.8.11

Filed under: GeSHi — Schlagwörter: , , , , , , , — BenBE @ 00:00:14

Being way overdue, and not only because some other projects askednagged for a release, I’m really pleased I finally had everything together last week so I could do the release of GeSHi 1.0.8.11. Besides the 18 new language files there are also two important bugfixes addressing problems in contrib scripts.

Text für „News in and around GeSHi 1.0.8.11“ anzeigen
Direkt zum Beitrag

Flattr this!

15.08.2012

Kurz notiert und abgehakt

Filed under: Allgemein,Software — Schlagwörter: , , — BenBE @ 21:47:15

Da ich gerade am Vorbereiten des Releases von GeSHi arbeite, durchsuchte ich routinemäßig den Bugtracker, um zu schauen, was so an Fehlern gemeldet wurde. Dabei stieß ich unter anderem auch auf einen Fehler, der das Variablen-Highlighting betraf. Soweit unspektakulär.

Text für „Kurz notiert und abgehakt“ anzeigen
Direkt zum Beitrag

Flattr this!

06.08.2012

Last steps towards GeSHi 1.0.8.11

Filed under: GeSHi — Schlagwörter: , , , , , , , , — BenBE @ 01:06:12

Hi guys,

I know it’s been quite a bit since the last release of GeSHi and even though there’s been some confusion about what the most recent version actually was, I’ll probably lighten up the confusion a bit and present some good news to all of you who are waiting for some of the most recently included language files. But first things first.

Text für „Last steps towards GeSHi 1.0.8.11“ anzeigen
Direkt zum Beitrag

Flattr this!

15.04.2012

DCPU-16 highlighting

Filed under: GeSHi — Schlagwörter: , , , — BenBE @ 00:55:54

Not quite 0x0001 0000 0000 0000 years since the last post in this category but still long enough to justify emitting a new sign that there’s still some developement going on with GeSHi. And it’s quite a coincidence that Markus „Notch“ Persson is taking over GitHub with its own new language now being highlighted. And since most assembly languages are quite easy to highlight it’s only natural to add support for highlighting of this new language for GeSHi.

So there it is: After only about 10 minutes looking at the language specs the basic structure looked simple enough and since GeSHi already supported a bunch of different assembly languages it’s only natural to use another one of them as the template. In this case I decided go for Z80 assembly as the ZiLOG Z80 instruction set is quite simple and still the language file was elaborate enough to support all the features required by Notch’s new assembly language. Actually: I even could remove some features not required to properly highlight DCPU-16.

After a short clean-up of the language file – removing all the old instructions, registers and directives – it took only few more steps to fill in the list of supported instructions: In the case of the DCPU-16 instruction set this is a quite small set of only 16 instructions, 11 registers and 3 „memory shortcuts“. Thus there was not that much to copy from the specs, althoug the example given there looks quite nice when rendered with this new language file:

; Try some basic stuff
              SET A, 0x30              ; 7c01 0030
              SET [0x1000], 0x20       ; 7de1 1000 0020
              SUB A, [0x1000]          ; 7803 1000
              IFN A, 0x10              ; c00d 
                 SET PC, crash         ; 7dc1 001a [*]
 
; Do a loopy thing
              SET I, 10                ; a861
              SET A, 0x2000            ; 7c01 2000
:loop         SET [0x2000+I], [A]      ; 2161 2000
              SUB I, 1                 ; 8463
              IFN I, 0                 ; 806d
                 SET PC, loop          ; 7dc1 000d [*]
 
; Call a subroutine
              SET X, 0x4               ; 9031
              JSR testsub              ; 7c10 0018 [*]
              SET PC, crash            ; 7dc1 001a [*]

Text für „DCPU-16 highlighting“ anzeigen
Direkt zum Beitrag

Flattr this!

02.08.2011

FizzBuzz BrainFuck

Filed under: Fun,GeSHi — Schlagwörter: , , — BenBE @ 01:17:35

Well yeah, after some nasty person dropped a link about why programmers are so bad at programming I somehow got to have a look at the Rosetta Code project’s site detailling this task and found (not to my surprise) that noone had solved that task — yet! So I sat down and implemented it. Usually this task should take you only about a few minutes but since I hardly ever programm anything in BrainFuck it took me roughly 45 minutes to complete. But well: Here’s the result (Beware: Ugly code)!

Text für „FizzBuzz BrainFuck“ anzeigen
Direkt zum Beitrag

Flattr this!

11.02.2011

GeSHi getting signed

Filed under: GeSHi — Schlagwörter: , , — BenBE @ 23:10:08

Because of a recent attack against SourceForge all the GeSHi releases will be available signed to allow for verification of authenticity of the released files.

Text für „GeSHi getting signed“ anzeigen
Direkt zum Beitrag

Flattr this!

Older Posts »

Powered by WordPress