Tag Archive: APIs


uploadingThe first image upload API is now finished. This API will now take images in any format and save it tied to a relevant record in a web neutral format to the archive. This work took more effort than I expected, but it’s making things move very well. I’ve also fixed several links so that development and production environments work exactly the same. The client is now pulling entirely from the new APIs and works when used over the VPN. For some useless statistics I now have over 100 active source files with about 110 lines of code on average per source. This seems very short but the reality is that there are several subclasses that are very tiny working off nicely complex but not obfuscated super classes. I am likely missing a tonne of material. There are also several test apps that are folded in there whose entire purpose is to test APIs. Once they are removed the numbers will be a little more realistic. However, the important thing in development is not the size of the work but the results.

On the downside I’ve been fighting a bad back for the past 3 days. I will likely be calling my doctor tomorrow to take a look and see what is going on there. On the upside, however, the only chair I find any comfort and support in is the one in my home office. So, as long as I discipline myself to work… the pain isn’t as bad. (Granted, a good bit of AleveĀ® helps quite a bit)

Tomorrow’s goals are to call the doctor. Implement the location uploader in the DataUploader utility, And make sure that I blog for the day.

 

OfficeDesk-smTime at the desk has been limited this week. The extreme cold has listed Pittsburgh as one of the 20 coldest cities hit by the arctic polar vortex. As a result, My 7 yr old has been out of school both Tuesday and Wednesday and my over/under guess is that he will also be out on Thursday. We are due for another sub-zero with windchill morning. My time in the office has been limited. I have however, had time to finish doing some cleaning to my work desk. I’ve been trying to do a full clean and organise over the past month due to the fact that this is now my 24/7 work place. (If only I were getting paid)

But onto the progress. Software design is often an experience of two steps forwards one step back. Sadly, the one step back also usually consists of several O’Reilly manuals, a bunch of gSearchs, and of course documentation and answers found on StackOverflow. Today was no exception. Finally back on my desktop app for entering data I realised that I wasn’t just doing SQL puts to the database. I was also uploading graphic resources. These however were going into a directory with references being added to the database. Sigh, back down to the API level.

So today, I had to learn in Java (and to some extent on the Client level) how to compose programmatically an upload post and then correctly save it to my server. Now, I (as always) realise that there are probably simple libraries to do this and experienced Java, JSP, and LAMP folks will scoff at the likely banal process this is. I however hadn’t done it before so I had to teach myself. Happily, info was available in the form of a few StackOverflow questions, a couple of nice online tutorials, and a few hours later; my Poster test app is sending the requisite info and it’s causing a file to be saved. This isn’t finished. I haven’t actually put in some of the path and file directives and I’m not sure that the file is storing up in clean shape. But considering the fact that I have only gotten about an hour at the desk today; and that before that hour I didn’t know how to do this at all; I’m kind of happy about the results so far.

Tomorrow, I hope to have more time at the desk (even though the child is home again) and I hope to finally be done on the API level… for a while. Also, I will be having a conference with one of my “volunteers for credit counting.” What this means is that they’ve agreed to volunteer time in exchange for tracking hours and converting it to value once we see more funding. I’m incredibly excited to have this person working on the team because they have great business depth, incredible sense of organization, and a great working relationship with me to call me on stupidity when needed without taking a response of NO personally.

Things trudge, but I think we’re on track to keep moving forwards.

As always, if people are interested on helping out.. I’ve got plenty of work to go around.