Tim Habersack

Category: Coding (page 2 of 10)

Should I trash my old i18n project or revamp it?

So, three years ago I created a project called Lemon-Filling. From the repos readme:

Lemon-filling is a tool to build i18n support into your small to medium-sized application. With Lemon-filling, you can create terms, define those terms in various locales, and group terms together into pages. Via MySQL query in your application, ask for a page, specify the locale you desire, and all terms on that page will be returned. Comes with web-based admin area to create and manage your localized content.

At the time, it seemed to make sense, and I wanted a tool so I could add internationalization to my web apps. I used the tools I knew to build it. Also, I think the grouping of terms by the ‘page’ they are on had merit.

However, having a separate DB for storing all the language of a project and having to have an extra query on every page load now seems excessive. A better approach would be to poll then cache some JSON of all the language needed for the app. I just thought of that, and dang that makes this more useful..

Anyway, the admin interface was built on top of CodeIgniter 2.1.3, which, thanks to PHP becoming a better and better language, has some errors now on every page load. Also, the repo on github has no stars or anything; as far as I can tell no one uses it.

There is some basic work that would need to be done in order for it to get working again, and no one (including me) is using it right now. Should I just delete the repo?

I do like my modified use I described above, and caching all the web apps language in some JSON. However, I don’t really have a burning desire to do this. Also, there would need to be work done to actually make this a thing that can be easily pulled into other projects.

Oh snap. This could be a free service for open source projects. I could see that being really helpful. I will spec out my idea, and float it out to several i18n groups and see if it would even be something they’d want to try/use.

Fax App for Android?

Today, one of my fellow devs at Dark Horse received a random call on his mobile phone from a fax machine. After the obligatory “faxes are so old” jokes, he mentioned, “yeah, my mobile can’t accept faxes, sorry”.

But then! We all got the same idea. Why not? Why isn’t there an app that would let you answer the phone, and if you hear the telltale beeping you tap an icon on your screen and the fax app takes over, answering the fax on the other end, receive the transmission then save it as a PDF?

A spotty connections would be an issue of course, but other than that I don’t see many hurdles.

I have stats now!

I haven’t had any kind of analytics running on my blog.. ever I think. I finally connected it to a friends Piwik instance.

I actually have people visiting my site, which surprised me a little. It seems my posts that share solutions to problems I’ve come encountered in Laravel and MySQL are ones that are getting traffic. This is super inspiring to write more and share more solutions with others.

Shatter OST; Friday Music Recommendation

I am always on the lookout for music that I enjoy, that I can also code to. I’ve decided to start sharing some of my favorites and new finds every Friday.

To start, I cannot recommend the Shatter Original Soundtrack highly enough. This is a smooth, electronicy album full of energy yet doesn’t distract. Each track is unique, with lots of varying melody.

As an aside, it is a great soundtrack. It stands on its own, and tells its own story.

HTML5 contextmenu is rad.

WHat? What?


Right click on their logo, in Firefox.

View when you right click the logo

It uses the contextmenu element. I’ve never seen it in the wild before.

<header contextmenu="logomenu" id="header" class="logged" data-contextmenu="Download our logo" lang="en">
    <h1><a href="/" title="\o/ Gandi">Gandi</a></h1>
    <p id="baseline"><a href="/no-bullshit" title="No Bullshit?">no bullshit ™</a></p>
    <menu type="context" id="logomenu">
        <menuitem label="Download our logo" icon="/favicon.ico" onclick="window.location = '/press#logo'"></menuitem>

SO COOL. For web app stuff, that could be SUPER COOL.

Olderposts Newerposts

Copyright © 2019 Tim Habersack

Theme by Anders NorenUp ↑