Urban75 Home About Offline BrixtonBuzz Contact

Today I have mostly been using ${insert development technology here}

I'm trying to get a date range slider work. Two versions, one that slides days, the other that slides months. And make it look nice in bootstrap.

I can do it by having an array of dates, setting up a slider that has a range of 0-(arraysize-1) and modifying the tooltip to display the actual date via lookup on slide.

fun.
 
Last edited:
TIHMB debugging PAM on Ubuntu. I am almost ready to commit random acts of violence, particularly on the code monkey that enabled it without installing the necessary modules.
 
TIAM working with the twitter API in Django and Christ it's horrible. Which fecking integer is out of range? They're all 64-bit signed! ARGGHHHHH
 
I have now finished everything except the tooltip part of my slider, which is a bastard.

When you move the slider, the graph transitions to a new date range :cool:
 
I'm trying to learn F# as a way to actually do something with functional programming. Downloaded Haskell IDEs and a bunch of tutorials before but never did anything with them. Hoping to use it as another avenue for data analysis, a lot of my current code was going towards the functional formats so thought it'd be beneficial (plus good for cv!) to actually learn a functional language.
What made you choose F#? Previous experience with the CLI?

I don't know much about it but I read a few things about it going nowhere as a language.

Clojure is nice but the syntax is off-putting for some. Scala's easy if you know Java and there's some good resources out there. One of the big MOOCs was run by Martin Odersky (Scala creator). Well worth checking out if you go that way.
 
What made you choose F#? Previous experience with the CLI?

I don't know much about it but I read a few things about it going nowhere as a language.

Clojure is nice but the syntax is off-putting for some. Scala's easy if you know Java and there's some good resources out there. One of the big MOOCs was run by Martin Odersky (Scala creator). Well worth checking out if you go that way.

The reasoning went:
Oh hey whatever happened to F#?
Google search "Does anyone use F#?"
Find lots of people touting its use for scientific programming / data analysis
Do a few searches for performance vs e.g. Haskell: it seems very good performance-wise, and has inter-op with C#
"Well since I use visual studio it would be nice to work in familiar environment"
OK, F# it is!

Performance is my prerogative for choosing a language to learn: I do a fair bit of work on large sets of large files, and the program I intend to convert from C# and then enhance with my at-that-point-newfound functional abilities will be operating on a growing set of up to a few thousand files of 750MB each, and future projects may be on ever larger sets.

Thanks tho, I've a little Java, Scala looks like it might be a goer too.
 
Django again tonight. Trying to learn the bits I need on the fly to modify an existing system written by some phd students with little/no documentation :hmm:

Hopefully I can get this out the way soon so I can get back to stuff I'm more familiar with :D
 
PHP: Parsing a downloaded XML file then retrieving the associated data from a MySQL table and displaying the results in a format that isn't horrible on the eye. Fun... :D
 
Today I've been working with RESTlet and the Jackson CSV mapper. (this is java server stuff)

I've loved RESTlet for quite a while now but I think I'm going to have to switch to a full JAX-RS implementation. This could easily still be RESTlet with the plugin, but I expect I'll just use jersey like everyone else. The reason being that JAX-RS annotations are simply more expressive than their RESTlet counterparts and I need them for more complex content negotiation and query param processing.

Jacson CSV mapper remains excellent. Who doesn't want to turn a list of objects into CSV with something like this. It just works :)

Code:
CsvMapper mapper = new CsvMapper();
List<QueryResult> list = getResult();
CsvSchema schema = mapper.schemaFor(QueryResult.class).withHeader();
mapper.writer().withSchema(schema).writeValueAsString(list));
 
The reasoning went:
Oh hey whatever happened to F#?
Google search "Does anyone use F#?"
Find lots of people touting its use for scientific programming / data analysis
Do a few searches for performance vs e.g. Haskell: it seems very good performance-wise, and has inter-op with C#
"Well since I use visual studio it would be nice to work in familiar environment"
OK, F# it is!

Performance is my prerogative for choosing a language to learn: I do a fair bit of work on large sets of large files, and the program I intend to convert from C# and then enhance with my at-that-point-newfound functional abilities will be operating on a growing set of up to a few thousand files of 750MB each, and future projects may be on ever larger sets.

Thanks tho, I've a little Java, Scala looks like it might be a goer too.
I thought F# tended to work out as about the same complexity as C# when it gets compiled. Neater formulae but computationally similar.

I've just had it confirmed i'm one of the company's top PowerShell people. I'm not sure this is good news.
 
I thought F# tended to work out as about the same complexity as C# when it gets compiled. Neater formulae but computationally similar.

I've just had it confirmed i'm one of the company's top PowerShell people. I'm not sure this is good news.

I am kind of going about it 2 ways: Primarily I want to learn more functional programming, and secondarily in using it I want it to have good performance as I am using this particular task to learn it on. C# is plenty fast - recoding the initial functions from matlab to c# gave me a full 10x speed increase - so F# should do. Kinda interested in Clojure too, after looking, for learning some LISP stuff.

Powershell seems useful, I haven't got into it properly. I've stuck with batch files :facepalm: for doing stuff. As I understand, Powershell is about 6000x more useful - is it even a valid comparison?
 
Yes, MS want batch files and VB script to die and PowerShell to replace them. It's got loops, the usual arrays, hashtables and tuples and can call in C# if you really want. A big step up on the old command line.
 
A few months ago I was asked if I could find a better asset tracker than the execrable one built into nethelpdesk. I had a look, nothing seemed to do what we actually wanted, so I wrote a couple of batch files to log when a tablet was profiled. I then wrote a quick bit of VB code to import it into excel. Job done.

Oh no. My boss thinks feature creep is a great thing. Every single time I make the asset tracker do what they want they think of something else they want it to do. It now takes feeds from DPD to track the deliveries, the webui for nethelpdesk to track the tickets, the VPN software to track when the users log on, Afaria (in-house software) to also track when they log on, and keeps a log of when admin accounts are currently on the devices, and the users details so we can keep a track of their details and passwords.

This is all in excel, it works, I'm quite proud of the fact that it does everything it's asked to and is actually usable. But the whole thing is in excel and it's creaking. It now has about thirty separate subs to do different things. On the plus side I'm the only one that knows how it all works and everyone in our team is using it so I reckon my contract is safe for a while.
 
Today I am recursively visiting every apache log file in a directory, unzipping it if necessary and sticking it in Mongo.
 
Today it's joda-time. An alternative date time library for Java. It's fucking fantastic compared to normal java dates.

Also, the shade plugin for maven. Add some lines to your pom.xml and hey presto, it builds fat exceutable jars that contain all your dependencies.
 
Django again tonight. Trying to learn the bits I need on the fly to modify an existing system written by some phd students with little/no documentation :hmm:

Hopefully I can get this out the way soon so I can get back to stuff I'm more familiar with :D
Finally got this working and tested, it's just gone live tonight without any issues (yet :hmm:).

Got a bit of a Mailchimp niggle to sort next, then back onto a couple of other projects using Expression Engine and PHP.
 
TIHMBU click for python. It's a package/framework for developing command line applications. It's really good :thumbs:
 
I just wrote an assignment for a job interview I have next week. A CLI application that calculates a payment schedule and outputs it as CSV.
 
What technology? :mad:

If he used the generic "CLI" he probably didn't want to mention that... <halloween voice>it's Visual Basic</spooooooky>

Java, Joda-time and the Jackson CSV mapper :cool:

Oh, and the maven shade plugin. It takes your app and all the dependencies and sticks em into a single executable jar file.

And a one line bash script. which basically reads "java -jar myjarname.jar".
 
MS-SQL Server
... then fiddle with some of the data in Excel *I know, but it's easy, quick and suits my purpose*

then import the whole set of SQL results into R

... then I worked out I could just bypass the whole SQL and Excel bit and connect directly to the SQL server in R (wonderful 'sqldf' and 'RODBC' packages), run my SQL queries, muck around with my dataframes and voila ... good times
 
Back
Top Bottom