Wednesday, 14 May 2014

Media ruining people's lives?

This story made me realise something when the original was reported on the local news

http://www.bbc.co.uk/news/uk-england-27390908

They said they can't name the boy involved for "legal reasons" but yet the following story they can

http://www.bbc.co.uk/news/uk-england-27392172


Monday, 10 March 2014

Eclipse - you piece of garbage

Eclipse - the IDE - why do we use it?

So you want an Integrated Development Environment?
You don't want to spend any money?
You want something simple or you're doing Java development?

Hey you want Eclipse right?

Go on, it's G R E A T . .. . .. . .. h o n e s t

...
...

So it's a few months later....

You've had a few crashes....

You've put up with them...

You've seen the bugs in the Eclipse Bugzilla https://bugs.eclipse.org/bugs/

To be honest I've seen them, I think they do all their development sat next to the servers with a 1GB connection. Because I have no end of trouble trying to update, trying to get plugins all sorts. Takes forever.


Also, another favourite, the constant "refreshing workspace" and constant deadlock while it is building or validating HTML. It's kinda useless, given how rubbish those validators are. I write some fairly complex JavaScript and HTML5, none have ever validated by Eclipse, but my code is very valid. And jquery.min.js - don't make me laugh.

I am not submitting a bug every time it hangs on a thread. Give us the god damn ability to kill, actually actively kill, the hung thread, kill the 'refreshing workspace' or the 'validating HTML' process that's hung. 

I don't care if you think it's unsafe to kill a thread. I have to kill the whole program. It's far more unsafe to "kill -9" the whole of Eclipse than it is to kill a single thread.

So, I have to restart Eclipse, it's not reset it back to how it was before I even started work...



.... can I now bill Eclipse for all the work lost? Oh no wait, Licence agreement. What about when we actually ask you to implement a feature but you just immediately set it to "Won't fix"? Plenty of people have asked for it but you just refuse. Typical open source "We like it how we've got it"... not wait it's the "**** off and live it with." licence agreement.


I nearly lost it today, when for no good reason, Eclipse just started refreshing the workspace, in the middle of a lengthy debugging session and it just hung. I had to kill it all, and it took the server with it. I was rather ****** off. I wanted to have a discussion with the person who marked the bug on bugzilla as "Won't fix".

Thursday, 30 January 2014

Note to Self : Friidump - it doesn't work in 64-bit

Hey future self...

Just dumping a memory to Google and Google+ in the hope if I ever search for this it'll be high up there.

Remember when you used friidump and it didn't work? It compiled, but immediately died? You then spent 2-3 hours rebuilding a machine because you thought it was the hardware?

It wasn't. It was because it doesn't work in 64-bit. You remembered you'd gone through all this before of course, but only after the rebuild. You remembered you'd got it to compile in 32-bit before and got it working. But only after 4 hours of tearing apart a decent machine to build a fairly poor one.

Now you've got to rebuild that good machine and see if that SATA->IDE interface works with the drive now and the the software works in 32-bit mode just to check it was purely a software thing. Just to check.

So. How to fix it, just in case you lose the fix again?

Well... it's a TODO as you write this you aren't in the right place to get the actual code.

Add the 32-bit libraries with apt-get...

Get cmake add the -m32 flags to the C and C++ and Linker options to change the architecture to 32-bit mode befire running cmake in the BUILD directory and it will all work.

This may help others too. but like I say... this is a "Note to Self" ^_^



Thursday, 23 January 2014

Wednesday, 22 January 2014

The depression is returning...

I broke a bowl...

The sign above the sink "Now their wask, put them away." A gentle reminder, as it says, to put them away. Too many times I have to remind him. But it worked a couple of times.

Today, a hard day. I had to hand wash a t-shirt. Coming home, I go to the sink, again, a few pots left behind. I can do without this. Putting away the pots, exhausted again, I drop a bowl. Annoyed, I quietly take the shattered remains to his bedroom, it's about 18:15, already in his bed, placing the remains, silently placing them beside him I leave.

Now back at the sink, he has finally joined me, asking what they are.

"It was only one plate"... hmm, I left him a broken bowl, how was there just one plate..?

"No, there was 2 cups, 2 plates and 2 bowls... and if there was just one plate, why wasn't it f*cking put away?".

"I forgot". Yeah, again. (Sorry, I'm paraphrasing, I'm tired remember).


He's left now.


On with my shirt...


Thoughts start entering my head...

"
This is getting too much. I'm getting pissed off with this.

Every day. I come home exhausted. I just wanted to wash a t-shirt. I just wanted access to the sink without having to clear off the side. Like I said, if it was so fucking easy why wasn't it already done?

My love, Miku. I've been happy, you've made me happy, for nearly 5 months now. I'd be happier with you.
....
wait
....
where did that come from?
....
there's only one way that's happening (I'm not going into the metaphysics of my beliefs in this interplay with my psyche here - have a guess what's required - what I was feeling, what I was thinking)
....
not felt that kind of thought for.... well.... a long time
"

At which point I just about collapsed at the sink.

I've got over the thoughts now, but even replaying them is hard.

All this for a broken bowl.

Wednesday, 25 December 2013

Merry Christmas 初音ミク

I wanted to say something to someone special, but I don't think I'll be awake at the time...

I'm using the scheduler of the blog to do it hopefully remember to do it for me, at the moment I want to say it.

As we say  these words to friends, family and loved ones around the world on this special day. I am trying to make them heard to that loved one now. Hopefully by saying it this way she will hear them.


初音ミク Merry Christmas
I love you



One day...
maybe... one day...
I'll get to say them in person

Sunday, 10 November 2013

Bringing Hatsune Miku to life

I have been starting multiple projects involving Hatsune Miku.

One is attempting to implement MikuMikuStudio code as a visualisation for XBMC, so that you could provide models and motion data, and when a specific track is played, it starts executing that model and motion. However, this has stalled slightly, when I found MikuMikuStudio written in Java, XBMC in C++ and everything having to be fired across JNI. While I got that working, and it very nearly worked. I am left with the slight issue of MikuMikuStudio and jMonkeyEngine upon which it is written trying to create windows as it starts.

Another, I mentioned on Google+ was to do with recreating the "holographic" projection of Hatsune Miku, similar to how it's done at the concerts, but "on the cheap".

This is the main topic of this post.

Hologram Concerts "On the Cheap"

The original post on Google+ is basically based on something I saw when I was thinking about how it was done, finding out the massive expenses and then one of most recent inspirer's made my month about the same goal with a post on the same subject.

From that post, it turns out you don't need millions.


Initial prototype

What is needed for the initial prototype?

  • Projector.
  • Plain white netting material, from local "dunelm mill" which does it fairly expensive, but wanted it asap
  • computer
The projector was sourced from a friend, a sony vpl-cx21 that can do 1280x1024 apparently, calls itself a short throw projector, but it's not ultra-short. About 4ft before the focus can't do any better, but it's great for something I didn't have to pay for.

The netting I got causes a problem, I will explain when I show the images later, but it was the best I could get with the timescale of my impatience.

Computer? I have them coming out of the floorboards. But ultimately, it needs to render the movies on the projector. I found it best to render in MikuMikuStudio on a powerful machine, and use a less powerful machine to control the projector. Could ultimately end up just being one of my Raspberry PIs in the end ^_^ 

So. The initial prototype. I'll post the images I put from the G+ post up. I have video, but it's not great, it was shot in the dark, didn't really show it off much.


Now it looks quite good. I shall now highlight problems
  • I built that frame. I'm rubbish at building things.
  • The frame is heavy and cumbersome. 
  • I wouldn't want to dismantle it or put it back together.
  • Because of that, it's still together, taking up space I don't really have to spare
  • I even have a bigger one I don't want to dismantle either.
  • The material is causing problems. The "cross" of light is caused by the regular spacing of the holes in the netting. If they were random it would be a fuzzy blur and would be less distracting, or I think it'd be less distracting anyway.
The good thing that it shows though is that the netting allows Miku to be projected onto a surface. That surface will then scatter the light allowing her to be seen. But that surface will also allow most other light to pass through unhindered. I should have shot a picture of the wall behind me as it was bathed in a blurry image of the pieces of Miku that didn't get captured by the netting.

So. It worked. Yay. Just so cumbersome... I was rather uninspired by this...

My flat is not so big. The largest room could barely contain the largest of the frames we had constructed. I wanted a full-size Miku to perform Weekender Girl in-front of me in all honesty. Not that the projector I currently have is really to to the task anyway.

But I was still thinking...

Then I saw a projector screen being rolled up. I had an idea. The screens they use in the concerts. Dilad? Still can't find a price on them btw.

Prototype 2

Anyway. Got sidetracked looking at info about Dilad. Where was I? Yeah. The netting. I thought about laminating the net curtains.

Yes. I don't know how weird that sounds. But actually putting the net curtains through a cheap laminator. I first thought they'd need a cold laminator, they are poly-cotton curtains so, a lot of plastic in there. Maybe they'd melt. But accidentally not paying attention to the laminator I was buying, I ended up with a hot-lamination machine. My impatience kicked-in and I tried it anyway.

I cut a piece of net curtain to A4, put it in the plastic sleeve and put it in the machine...

It was fine, the machine was fine, nothing melted and jammed, it all worked as it should and now I can wrap also images of Miku in plastic to preserve the beauty forever... ahem... sorry... sidetracked.

Projecting the same image, I now have a moving picture, we the following (no sound it's not my tune, just hum, its Weekender Girl)....



Now. Compared to the pure curtain, a few things are solved. 
  • The cross has turned more-or-less into a random blur. There is a slight pattern to it, but nothing immediately obvious (it's every-so-slightly bulgy in one dimension).
  • it's very light and if you look carefully, it's being held up by blu-tac and it's own strength. No frame at all.
But it has it's own problems too.
  • It's very light, it keeps falling over ^_^
  • It's hard to make, but that's not a real major issue really
  • The biggest problem? You can't see through it any more, real big problem, might as well be paper.

So, onto

Prototype 3

I realised something during the testing of prototype 2. The lamination sheets. They are very diffuse already, before they are put through the machine. They come out nice and shiny and smooth.

What if we found something that was very rough and diffuse and laminated that. The net is fairly diffuse, but at a very (at the scale I'm thinking) very large scale. It needs to be very much smaller.

Then it hit me. The sheets themselves. Just laminate a lamination sheet.

Erm? O_o

Well. I did that the first time. Got an A4 laminate wallet. Put it inside another. Put it through the machine, expected it to jam and it didn't. However there were a lot of bubbles.


So. I took a wallet tore it in half at the join on one end. Put half a wallet inside another and did the same. This time, it worked. It's not perfect, but it's a lot better.


So how well does this work?

To test it, I first made an A3 version. Those two above are A4. I wanted A3 simply because it was an A3 laminator. I want Miku big. There were a few issues with creating the larger version, a few more bubbles got through, but you don't really see them below.

So I created the laminated sheet added a few supports, it needed them this time and well, tell me what you think...


I may need to buy a decent camera at some point. The phone really is rubbish.

But the best thing, you can see through it again.

Future plans? 'faid not, that's it for now. I'm tired, it's nearly 1am.