debuggable.com
Blog » Debuggable - Node.js Consulting
http://debuggable.com/blog
Releasing node-mysql 2.0.0-alpha. Posted on 15/5/12 by Felix Geisendörfer. Today I am releasing an alpha version of node-mysql v2.0. If you are using v0.9.x at this point, I highly encourage you to try it out, as now is your best chance to influence the API and features of the final release. To install the new version, do:. Npm install mysql@2.0.0-alpha. Then check out the Upgrading Guide. And adjust your code as needed. After that make sure to join the new mailing list. Support for stored procedures.
debuggable.com
Git Fake Submodules » Debuggable - Node.js Consulting
http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb
Posted on 20/1/10 by Felix Geisendörfer. Git submodules suck. They are a pain to use, difficult to explain and you cannot check out partial trees. The later is an inherent limitation of git, but I have a fix for the rest. Meet fake submodules. The idea is simple, instead of using actual submodules, you just trick git into thinking the files belong to the main repository while having the respective sub-dirs remain independent clones. Doing that is simple:. Cd my-subproject $ git pull. To me this is a pret...
kvz.io
Loosely Typed Code Deserves Triple Equality | kvz.io
http://kvz.io/blog/2013/04/23/change-your-codebase-to-use-triple-equality
On regex operators coding style javascript php. Loosely Typed Code Deserves Triple Equality. In loosely typed languages such as JavaScript or PHP, using. To compare values is bad practice because it doesn't account for type, hence. False = 0 = ' = null = undefined. Etc And you may accidentally match more than you bargained for. If you want you can limit unintented effects and bugs this may lead to, it's often wise to use. In case of comparing variables against non-numerical strings. Age = = 4. Make sure ...
kvz.io
Scrape All Text From a Domain | kvz.io
http://kvz.io/blog/2013/04/19/obtain-all-text-from-your-website
On wget spelling grammar bash markdown. Scrape All Text From a Domain. Here are some commands to download the most important pages of your site as plain text (determined by. And save it into one big. This could come in handy when you want to have everything checked for grammar and spelling errors. After the spellcheck you'd still have to search through your codebase / database to find and fix the culprits, but this should already save you some time in discovery. If you can install Pandoc.
kvz.io
Yesterday I Wrote My First Firefox OS App | kvz.io
http://kvz.io/blog/2013/08/12/yesterday-i-wrote-my-first-firefox-os-app
On fxos mobile javascript raspberrypi arduino automation apps. Yesterday I Wrote My First Firefox OS App. This article was on the Hacker News Frontpage. More comments. Yesterday I wrote my first Firefox OS App. For now it's called kbt2. And it's a round timer that I can use to give kickboxing lessons. A few very frustrating hours dealing with the unintuitive and sometimes even failing Everlast Round Timer. Knowing that I could not use my own phone as it will be playing music during kickboxing sessions.
kvz.io
Deploy to a Dynamic Serverlist With Capistrano | kvz.io
http://kvz.io/blog/2013/07/15/deploy-to-variable-targets-with-capistrano
On capistrano deploy ssh ruby. Deploy to a Dynamic Serverlist With Capistrano. At our company we use Capistrano for deploys. It reads Ruby instructions from a. In the project's root directory, then deploys accordingly via SSH. It has support for releases, shared log dirs, rollbacks, rsync vs remote cached git deploys, etc. It can be run from any machine that has access to your production servers. Be it your workstation, or a Continuous Integration server. Will you keep changing the. Seems like effort ; ).
kvz.io
Fixing Heartbleed | kvz.io
http://kvz.io/blog/2014/04/11/fixing-heartbleed
On heartbleed security stunnel ubuntu transloadit ssl openssl. Four days ago the news about the Heartbleed. Got every sysadmin's attention. Renowned security expert Bruce Schneier. This means that anything in memory SSL private keys, user keys, anything is vulnerable. And you have to assume that it is all compromised. All of it. Catastrophic" is the right word. On the scale of 1 to 10, this is an 11. Using a webtool to test for Heartbleed. It became clear that my encoding startup Transloadit. Looks like ...
kvz.io
It's Almost 2014 and We Are Still Committing Broken Code | kvz.io
http://kvz.io/blog/2013/12/29/one-git-commit-hook-to-rule-them-all
On git ci travis jenkins ruby javascript python bash go golang php. It's Almost 2014 and We Are Still Committing Broken Code. Dispite testcases, syntax errors still find their way into our commits. Maybe it was a change in that bash script that wasn't covered by tests. Too bad our deploys relied on it. Maybe it was just a textual change and we didn't think it was necessary to run the associated code before pushing this upstream. Too bad we missed that quote. This needs to change because in the. Will skip...
kvz.io
Prefix Streaming stdout & stderr in Go | kvz.io
http://kvz.io/blog/2013/07/12/prefix-streaming-stdout-and-stderr-in-golang
On go golang streams shell ssh. Prefix Streaming stdout and stderr in Go. If you are writing code in Go and are executing a lot of (remote) commands, you may want to indent all of their output, prefix the loglines with hostnames, or mark anything that was thrown to. Red, so you can spot errors more easily. For this purpose I wrote Logstreamer. You pass 3 arguments to. Your desired prefix (. Prefixed have special meaning). If the lines should be recorded. This is useful if you want to retrieve any errors.
kvz.io
Make Your MySQL Tables Strict | kvz.io
http://kvz.io/blog/2013/12/02/make-your-mysql-table-strict
Make Your MySQL Tables Strict. When you're upgrading to MySQL 5.6 you may notice strict mode is turned on by default. You can disable it, but now might be a good time to get your schemas strict, to ensure smooth upgrade paths in the future. One particularly common failure, is columns that:. Have no default (e.g. Now when MySQL has to create a record in which you have omitted such a field, it has to guess what to store there. For VARCHARS it'll save. SELECT @ sql mode. MySQL will error out:. ALTER TABLE `...
SOCIAL ENGAGEMENT