211 views
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...

02.03.12

Batch Source Formatting in Eclipse Indigo

Posted in Blogroll, News, Tech at 5:41 am by Liv About Liviu Tudor

This has been bugging me lately — how to do a batch formatting using Eclipse!

If you plug things like Checkstyle (and PMD to a certain extent) in your project build, you get bugged every now and then when someone else makes a change with stuff about tabs/spaces, brackets being on the same line or not, line being too long etc etc etc. Typically what you do in this instances, you just open the file in Eclipse, and a simple Mac+Shift+F (or Alt+Shift+F on Windows) automatically formats the source and you’re good to go!

However, what do you do, when you see a Checkstyle report reporting 100′s of issues across say 10-20 different files? You could of course set off to process every file manually — if you have the time! — or look for a way to do this using Eclipse in a batch manner. I personally opted for the latter — and this is how to do this using Eclipse.

Read the rest of this entry »

Disclaimer

250 views
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...

15.02.12

More Photos of Constanta in Winter, Feb 2012

Posted in Blogroll, News, Photos, Romania at 5:06 am by Liv About Liviu Tudor

These are actually pretty awesome — taken by my parents, after the sea has trashed the coast it seems, in Constanta, Romania:

Disclaimer

229 views
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.33 out of 5)
Loading ... Loading ...

03.02.12

3,000+ Page Views a Month!

Posted in Blogroll, News, Photos, Random Thoughts at 12:22 am by Liv About Liviu Tudor

In case you haven’t guessed it, yup, I’m talking about this very blog hitting a new milestone and hitting over 3,000 page views a month! I know this doesn’t sound like much for a “serious” website, but for something like this blog it IS a lot! Even more so as a lot more of the traffic nowadays seems to hit my technical articles — though, granted, there’s still quite a bit of traffic from people (my mates I guess?) looking at my pictures from what I can see…

This statistic was pulled from my beloved WassUp WordPress plugin — which this morning (PST) showed me this:

Last month's traffic on my blog

Read the rest of this entry »

Disclaimer

192 views
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
Loading ... Loading ...

17.01.12

Advertising or Information?

Posted in Blogroll, News, Photos, Random Thoughts, Tech at 10:52 pm by Liv About Liviu Tudor

This goes out to all you ad skeptics out there who bang on about how useless the internet advertising is and how it should be banned / destroyed / 101′d etc: it is sad that not often advertising is delivered as a complement to the content being viewed, and as such it doesn’t come across as an intrusive piece on the page. However, when it happens, it creates something useful!

I have just experienced something like this just now, looking at some technical article online — and even though I worked for Vibrant Media before, there’s no hidden agenda in highlighting this ad unit I spotted as one such piece of great advertising. (I know I slagged them off in the past as well, hope they don’t take it personally : guys, I’ve slagged off Google more than you, so don’t read too much into it! :) )

Read the rest of this entry »

Disclaimer

313 views
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.67 out of 5)
Loading ... Loading ...

23.12.11

System Console Support — JDK 1.6

Posted in Blogroll, News, Tech at 12:26 am by Liv About Liviu Tudor

I’m sure some of you have found the need occasionally to use the “console” input/output support provided by the JDK via System.in and System.out — if nothing else just to implement an occasional more complicated command-line “scripty” app to be run in a Linux environment and piped input in or out from/to another program.

The problem so far has been the fact that while System.out is a PrintStream instance — System.in is an InputStream implementation! So while the output deals with characters, the input deals with bytes — and you have to start wrapping it up (through a few layers!) into a BufferedReader so you can read input line by line.

Luckily, JDK 1.6 introduces a nice function on the System class : console() — which does solve these problems.

Read the rest of this entry »

Disclaimer

« Previous Page« Previous entries « Previous Page · Next Page » Next entries »Next Page »