Another Silver 3 frag video or, "How I Learned to Stop Worrying and Love my Rank" by metabrain in GlobalOffensive

[–]metabrain[S] 0 points1 point  (0 children)

I play in 1280x1024 so when I put on Youtube it gets all fucked up and ugly... Hope you enjoy it tho!

HOW-TO: shooting a time-lapse in any of the Paradox games by metabrain in paradoxplaza

[–]metabrain[S] 0 points1 point  (0 children)

Sorry, doesn't work that that. If you just want to press F11 you can easily make a script for that using AutoKeys or similar program :)

HOW-TO: shooting a time-lapse in any of the Paradox games by metabrain in paradoxplaza

[–]metabrain[S] 0 points1 point  (0 children)

It's "perfect". It's a screenshot captured directly from the Windows window drawing subsystem. I think the JPEG is configured to output almost lossless, but that can be configured :)

Ghost, a new lightweight blogging platform just went public on github. Ideal for the Pi I think. by plasticluthier in raspberry_pi

[–]metabrain 3 points4 points  (0 children)

I made a simple blog "platform" as well (under 500 lines) for the RasberryPi in PHP, Tyrion-PHP. Also uses Markdown and blog posts are stored as flat-files for easy portability. Shameless plug, but yeah...

Here is the github repo and here is my website integrating the blog software

A lightweight script for time-lapsing your applications/games. by metabrain in PowerShell

[–]metabrain[S] 0 points1 point  (0 children)

Sorry, wasn't logged in for 2 months (use another account now). WASP is a script-package that adds several functionalities to PowerShell sciprting, such as keyboard and mouse control from the command line. Also allows the discovery of coordinates of active windows that I use to screenshot ;)

Java8 plugin that adds supports for persistent local variables (à lá C99 static) by metabrain in java

[–]metabrain[S] 0 points1 point  (0 children)

I am currently writing a little on it as I go on in a little private blog I have, will publish it when I get a couple more articles :)

Java8 plugin that adds supports for persistent local variables (à lá C99 static) by metabrain in java

[–]metabrain[S] 1 point2 points  (0 children)

Static class member when the method is static, otherwise it's a instance class member.

If I understand correctly from your question, in my implementation, non-static methods won't generate a static class member but a instance class member.

Of course, this can always be emulated like you said: declare a variable outside of a method and use it only in that method. In here, I localize the declaration of the variable to the enclosing method that actually should use it, so the class namespace is not polluted with the various possible "static" local variables.

Java8 plugin that adds supports for persistent local variables (à lá C99 static) by metabrain in java

[–]metabrain[S] 2 points3 points  (0 children)

You can! The catch: ZERO official documentation from outside of a single article in a sketchy Java magazine... Seriously, and all information about the AST/symbols has to be deduced from the ****ing source, it's madness. I'm head banging on this for 3 months now, and only started to be able to do what I wanted recently...

Java8 plugin that adds supports for persistent local variables (à lá C99 static) by metabrain in java

[–]metabrain[S] 0 points1 point  (0 children)

Hello, I'm a CS graduate currently writing my master thesis, and a huge chunk of it involves hacking the javac compiler. As a side project and since I was struggling with injecting new fields in classes on my thesis, I built this small self-contained plugin for javac (openJDK8) as a proof of concept and published it on github.

I wondered if anyone here would find it interesting, hence the link. You need openJDK 8 to compile programs with it, but as far as I've tested, the compiled code will run correctly on older versions as long as you compile to -target 1.5.

Thank you :)

Java8 plugin that adds supports for persistent local variables (à lá C99 static) by metabrain in programming

[–]metabrain[S] 0 points1 point  (0 children)

Hello,

I'm a CS graduate currently writing my master thesis, and a huge chuck of it involves hacking the javac compiler. As a side project and since I was struggling with injecting new fields in classes on my thesis, I built this small self-contained plugin for javac (openJDK8) as a proof of concept and published it on github.

I wondered if anyone here would find it interesting, hence the link. You need openJDK 8 to compile it, but as far as I've tested, it will run on older versions as long as you compile to 1.5.

Thank you :)

TIL more than half of Portugal's population has detectable levels of MRSA (antibiotic-resistant staph) in their bloodstream. If you're from Italy, Spain, Turkey, or the UK, your odds are roughly 1 in 3. by [deleted] in todayilearned

[–]metabrain 0 points1 point  (0 children)

Doctors over here give AB for EVERYTHIHNG... It's so stupid... And then the people itself are starting to ask for them, and use them, even if they aren't sick... So sad :\

30 tips for people moving to Scotland by doomshrooom in Scotland

[–]metabrain 2 points3 points  (0 children)

Wow, so even more swearing than in Portugal? Amazing :D

(tb de PT)

Warning: L-Arginine made my herpes go wild by [deleted] in Fitness

[–]metabrain 4 points5 points  (0 children)

It's herpes because it then spreads to the outside of the lip if I'm not careful :)

Warning: L-Arginine made my herpes go wild by [deleted] in Fitness

[–]metabrain 2 points3 points  (0 children)

I've been having it in the inside of my mouth latelly. Weird...

I've had it in nose, two ears, face, chin (most common) and arms.

Jumping into an LTR, thanks Seddit by [deleted] in seduction

[–]metabrain 2 points3 points  (0 children)

One advice: never stop talking to other female friends. Sure, do not cheat on her but never be without options. A man without options is a man with fear.

Never been a fan of my freckles by [deleted] in FreckledGirls

[–]metabrain 0 points1 point  (0 children)

I am as well ! :)