Elsewhere there are things that we all miss, yet it takes just one to notice...

BASH script VLC player

In just 15 lines of script I’ve got a fully working test player running from BASH and using the VLC player. All I need now is just a simple Java program to fetch the data from the server and if there are changes then restart the player. Ah, scripting makes life easy. From Java I can check the exit status of System.exit(status) in the bash script and act accordingly. This will speed development up a hell of a lot.

Currently the Java server is rock solid. And I do need the much needed device editor so that I can assign playlists to devices. Now that I have the player I will write a simple device manager. Probably in Qt first then I will transfer it over to mobile.

EDIT: Change that to 10 lines of script. Now to get on to a simple device manager.

EDIT 2: Initially I setup a UI in Qt, but then decided to setup the same UI in Netbeans using Swing and Java. This is mainly because the server is written in Java.

Problems with Overlap2D and LibGdx

Linux… Everything so far I’ve done can be done much faster on Linux when it comes to development.

Then came Overlap2D…

It runs on Linux fine for a short while, but when you really start getting into editing a level, all the graphics start to vanish on the display and all it leaves is the white bounding boxes of the level graphics. So far I cannot find a solution.

I’ve installed IntelliJ and a few other bits on Windows 10 and everything loads up fine, but it’s getting a tad late now.

I’ll report back tomorrow when I finally get something working.

I’m wondering if it is something to do with Linux’s Java and a rendering issue. If I get round to it then I might just look into it sometime over the next few days.

In the meantime, I’m going to get Overlap2D working for both Desktop and Android finally.

EDIT: Overlap2D seems to be working on Windows. Although I really do not like developing on Windows, I think it is about time I tried.

LibGdx and Overlap2D download

I had found what looked to be an awesome utility for LibGdx, Overlap2D. The problem is the website is down and for some time all I could find was the github repo for it here. Now that would be alright if I knew how to build it, only a couple of years into Java. I will get round to getting it to build and I will do another post on how to do that.

There are also plenty of other youtube videos on how to use it which without a doubt make it ‘awesome’. Such as youtube link.

However, to get overlap2d running out of the box, and as I’ve said, the main website is down. I did find buried within a forum post a dropbox link.

Ah crud, I’ve closed the link to the forum post. Instead, just for the time being, the dropbox link:

Overlap2D Java executable

Now I can get on with making use of this excellent piece of kit.

EDIT: The github forum link here.

Just minor updates

It’s been nuts today and yesterday because the missus had an emergency. Hospital and all.

Apart from more research into various areas of coding and getting my own project back up and running, I’ve been researching. Yep, it’s been chaotic which means no programming zone. I’ve learnt a few things which is always a good thing.

Hopefully over the next couple of weeks I should have reached the 100% completion mark on my project and ready for a thorough test run. The server runs solidly, the player runs solidly but needs finishing. It’s only really now the mobile app and the media manager software that needs finishing. The cryptographic communication works just great which is something I’m happy with. Various parts of this project I will eventually release the source too, but for now it’s under wraps.

The next step is to get some bash scripts done to automate some of the management things I keep doing manually at the moment. Especially when it comes to making backups. One little script could do the lot.

Until next time.

Random update Dec 11th 2017

Well, the update of the ancient Android Studio project worked perfectly and it builds much faster and optimises better. Well made up with that. Even with a few problems with the network in work (someone had switched the router off and not told me), I finally got everything back up and running.

Tonight I have had running umpteen programs including Chrome and Android Studio (twice), as well as a 2 Gb Android emulator with ram to spare. Chuffed with this 12 Gb in my laptop now.

I’ve started an openGL ES project to test out some stuff. I will keep coming back to it because I want to not just play around with shaders, but also bench marking C++ and assembler. I know I’ll be doing this test with both ARM and x86_64. If I can run some math over bitmaps in assembler the old school way then I should be able to produce some decent effects. Especially some of the stuff I used to write on the Amiga in assembler.

Plans, plans… Fingers crossed I can stick to a night time routine and start getting some stuff done to showcase. At the moment I get home from work and get my weights and exercises done. Then I have my tea and watch an hour worth of TV. And then I try and chill out on my laptop. This chill out time trying to get some coding done can be difficult at times with the background noise of conversations that completely throw me off. I might look into getting some noise cancelling headphones.

Converting an ancient Android Studio project

Well, it’s unlikely this is going to be appreciated, but these last three days I took it up on myself, as a big challenge to convert a very old project in Android Studio and get it working with the latest gradle and CMake things. The project involves the inclusion of the ffmpeg API.

I actually tried this out in work a couple of weeks ago and failed. This time though, I created a new project from the start. The first day was getting all the source files included and getting the directories working in Android Studio. A little bit of googling and I got it.

The next two days were the big headache days. And I’m still unsure whether it is done, but at least it runs on my phone and my tablet.

Two days worth of googling with little to no help and a lot of trial and error, I managed to get the bloody thing to build. This project I had worked on in work for the last year or so. And Android Studio had gone through it’s multitude of changes and upgrades I couldn’t keep up at the time.

Anyway… It’s bed time. I’m up for work in the morning at 6am. Goosed…

The need to scrap code

Today I found the need to scrap over a weeks worth of coding to start again. These days it’s nothing to me to have to do that because I’ve faced issues with programming many times before. You only have to look at my Previous Projects (especially the procedural level generator) to understand that sometimes when something just isn’t right, you need to scrap it and start again. In the 80’s when I was learning, it was disheartening to have to give up. I was young then. Programming is a massive learning curve for anyone who takes the journey. And what I’ve learned is that sometimes it just doesn’t work. You can’t do anything to fix it. At that point, don’t dwell on it, just take what you need from what has already been done and move on.

As I’ve already mentioned, I’ve had to do that today. Everything was working great, apart from being a tad jumpy, it was working. Almost on to the next stage of the project. Then it would crash. This crash would happen within a certain time frame too, every time, and with the same error. After a few hours of continuous testing and fruitless research into the issue I decided I had to admit defeat. Fortunately though, because of a ‘thread pool’ class which I was using extremely heavily which was causing the problem, the rest of the code is sound and plays nice without bad behaviour. (so far)

So having to ditch, dump, throw away, code, happens… Sometime it’s damn painful…

This all reminds me of the ProcMap project.

It started with a random maze generator which worked great but anyone could do that and I wanted to have corridors and rooms. So came version 2 and 3 which each although the math didn’t work, the ideas where there. The maps didn’t turn out as they should even though they looked genuine. The last version, but not the one I actually wanted to finish on had all the corridors and rooms and sloping dungeons and everything. Including the ability to get coordinates to place other items, including rotations and offset. The math worked perfect in V4. Unfortunately I didn’t get started on V5 because it was going to be a gigantic project that was to create a pseudo random generated planet, complete with landscape, towns, cities, dungeons, life, etc. Yep a big project. I’ve still got a few pieces of paper with plans on upstairs somewhere I hope still.

 

The weekends plans

Yay! Friday finally came around and it’s the evening. I’m currently on a wind down, my body is aching and I’m mentally and physically zapped out. And that’s why I’m writing an update.

Over this last two weeks my website has had a few changes to it, such as https and a theme upgrade, oh and a few speedups which really did need to happen. As mentioned in an earlier blog post, there’s still a couple of minor changes that need doing, but they’re not important at the moment.

My big project I want to get back to work on over this weekend because I’ve kind of left it behind for a while. Most times when I get home from work, I just sit on my backside watching TV with my laptop. So to fix this problem, I transferred all my projects to my laptop. Win win. I already had the router set to divert a test port to this laptop anyway, so with that change in the sources, last night, everything was back up and running, 100% perfect. The mobile app has just two things to finish off, and the media manager will get a rewrite.

I have noticed that the WebGl demos only work on full screen now and not embedded in a frame since the https thingy update. If I get round to it, then I’ll look into it. Web stuff really ain’t my thing, hardcore programming is.

If I get bored over the weekend I might also create a new home hosted website using GWT or CopperLicht even. We’ll see.

Early night for me tonight because it’s been three nights on the trot of hitting the weights bench. I think the peas on my arms are growing.

Until next time.

WLGfx

This website

I’ve still got a few formatting issues with this theme which will be ironed out over time.

I’ve noticed two so far. One with images not stretching to 100% of the posts width. And the other with using the <pre> tags and the line spacing.

Apart from that, I’ll be re-organising the menus so they look a lot better and categories stuff.

I’ve added a new java page about thread pooling which I want to work on a C++ version of it over the next day or two for my personal project.

Catch y’all soon.

Not much of an update but here goes

Got many plans, and little time to get everything done. The story of my life. he he

Anyways… My journey with the ffmpeg API has now taken another turn. Now I’m travelling the realm of using the AVIOContext. This is because I need to temporarily store a UDP transport stream locally when a pause of playback is required. Before the weekend I was non the wiser of how to do this, but after a good think about it, sorted.

All I need to do is to join the multicast stream manually, grab the packets, buffer them up and when ffmpeg, via the AVIOContext requests data, just send it. Simple. One problem I’ve yet to face is that after a pause, I want to be able to seek through the saved stream. I’ll come to that.

As for my own stuff. I’m kind of halfheartedly putting my feet up. I really need to put my feet up properly actually but I’ll take what I can get.

Posts navigation

1 2 3 4 5 6 7
Scroll to top