HNHacker News
TopNewBestAskShowJobs

cosmok

133 karma · joined March 28, 2007

http://www.trk7.com/blog/about/ http://github.com/cosmok
submissionscomments
cosmok··on Show HN: Decision OS – A framework to evaluate job offer risk (not just salary)
Sample Report: https://decide.trk7.app/assets/sample-offer-full-llm.pdf
cosmok··on Show HN: Decision Audit – A deterministic decision engine for career pivots
Sample Output: https://decide.trk7.app/assets/sample-brief.pdf
cosmok··on I read all of Cloudflare's Claude-generated commits
I have documented my experience using an Agent for a slightly different task -- upgrading framework version -- I had to abandon the work, but, my learning has been similar what is in the post.

https://www.trk7.com/blog/ai-agents-for-coding-promise-vs-re...

cosmok··on Ask HN: What non-AI products are you working on?
I have been working on a private diary app. All data stored in the device and is available as a SQLite export. Android: https://play.google.com/store/apps/details?id=com.trk7app.ap... iOS: https://apps.apple.com/us/app/app-ananda/id6446887879?itsct=...
cosmok··on Stable Audio: Fast Timing-Conditioned Latent Audio Diffusion
I have had a lot of success with this: https://ultimatevocalremover.com/ for de-noising
cosmok··on Show HN: My Privacy Friendly Diary App
Links: Android: https://play.google.com/store/apps/details?id=com.trk7app.ap...

iOS: https://apps.apple.com/us/app/app-ananda/id6446887879

Community: https://community.trk7.app/c/app-ananda/app-ananda-goals-dis...

cosmok··on I regret using Ionic for app development
Debug builds are big. Production releases of Apps are very small - one of my Flutter Apps 7.6 MB.
cosmok··on The Future of HHVM
Laravel encourages DI via Service Containers: https://laravel.com/docs/5.5/container And, Laravel static methods (as you see in the docs as Facades) are not truly static (and testable/mockable). https://laravel.com/docs/5.5/facades#facades-vs-dependency-i... http://usman.it/laravel-4-uses-static-not-true/
cosmok··on Ask HN: Idea Sunday
I created a bookmarklet many years ago that does this and a little bit more: https://github.com/cosmok/HackerNews_Sorter
cosmok··on Google's text-to-speech engine randomly inserts phrase "he now praises the ipad"
I was able to reproduce this on a Galaxy Nexus.
cosmok··on Joel Spolsky: Lunch
Great points! But, it can get pretty lonely to have your lunch alone - sometimes even depressing. I tend to have lunch with 1 or 2 of the closest of workmates whenever I can.
cosmok··on Dear Dr. Stallman: An Open Letter
It is almost impractical for me to be like Stallman and shun a lot of Hardware/Software. But, I do not wish for Stallman to be any less radical than he is as: by being radical he gains my attention and some of his thoughts and ideas stick with me and, it has made me think about 'freedom' while buying any piece of Hardware/Software.

I would never want to work him on anything - I watched him tear apart people while responding to their concerns - but, people like him are essential to the Free Software movement.

cosmok··on How not to protect against SQL injection (view source)
Very easy in PHP. http://php.net/manual/en/pdo.prepared-statements.php
cosmok··on Ask HN: What are your best life hacks?
I have forced myself to stop checking mail, facebook, time, etc. on my mobile after I have decided to rest. I have slept better since then.
cosmok··on 8.9 earthquake hits Japan
Not according to the guidelines:

    "Off-Topic: Most stories about politics, or crime, or        sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic."
But, I don't mind it all as I get to read views and firsthand accounts from fellow hackers that is much different from what I see on TV.
cosmok··on Ewww, You Use PHP?
Good example!

Things like "stat cache" and "memory leaks" are what I watch out for when I write command line scripts in PHP. Also, I do not run my scripts as a daemon and I make sure that they do not run for more than a set maximum execution time.

So yeah, it may not be the most perfect choice but, it beats : having to learn another language when I know what to look out for when I write a command line script in PHP.

cosmok··on Ewww, You Use PHP?
I have been writing command line scripts in PHP for the most part of the past 18 months.

I will have to agree with you that PHP is perceived as a web language. Hopefully with more articles like these that perception will change.

cosmok··on Ewww, You Use PHP?
Stupid was a bit too strong, but, I stand by what I said based on my experience. Articles like these exist partly because of the belief that PHP programmers in general are not competent. You do not hear such frequent rumbling on Python and it's practitioners. One could apply the same O(N)and O(k>>N) logic there as IMO, Python is not harder to learn/program in compared with PHP.
cosmok··on Ewww, You Use PHP?
I use PHP at work for creating not only web applications but, also to do a lot of non-user facing backend stuff. It's great to know that someone out there is using PHP at a much bigger scale for backend stuff.I hope he shares more technical details. If you don't like PHP, fine, but, don't think all PHP programmers are stupid.

I once had a Python programmer looking at the kind of stuff that I was doing with PHP and he was surprised that such things could be done in PHP.

This is an actual conversation that I had in a meetup:

Guy1: If PHP were to disappear, it would bring down a lot of the web with it, wouldn't it?

Guy2: Nah, but, that would be the case if Java or .net were to disappear.

Me: (to myself)Wtf!

Guy1: But, most of the links that I click on the web end with .php.

Guy2: um.....

Me: (to myself)pwn3d!

cosmok··on Tell HN: HNdroid, Hacker News android client
I love ihackernews! The integration with ViewText makes it a perfect choice to read HN stories on my phone. Thanks and Great Job!
cosmok··on Coming Home to Vim
+1 for LustyExplorer. Use that every day at work and at home.
cosmok··on What Happened to Yahoo
Yep, the search API is far better than what Google is offering.
cosmok··on Ask HN: What Vim Plugins do you use?
My favorite would be LustyExplorer: http://github.com/sjbach/lusty . Why? Among all the different file browser plugins, I found Lusty to be the most easiest to use while being intuitive.
cosmok··on Creator of PHP talks to Digg about performance and security
Wow! I saw some actual code/command that I could use at work. Like PHP itself, his talk was very practical. Thanks for the link!
cosmok··on Dammit, MySQL
I wrote about how I ran into his complaint #1 here:http://www.trk7.com/blog/programming/innodb-mysql-implicit-a... . MySQL is quite annoying but, it seems to do the job for most of the projects that I have worked on.
cosmok··on How to Lose Time and Money
Great read! I wish PG starts writing essays that are both short(emphasis on short) and interesting to read as this one.
cosmok··on Ask HN: I program in pure PHP - Should I be doing something different?
Welcome to the world of web development! You are going to be recreating a lot of stuff (especially if you are going to be working for a corporation). I have a little experience with using djano but, I do most of my work in PHP. I have started to like Zend Framework(ZF) and I would recommend that to you as you already know PHP (instead of learning django, ror, etc.). ZF should speed up your development a bit. These days, I mostly prefer doing Sys Admin stuff and playing with Javascript and I shudder at creating a web app from scratch. When I am not working for money, I do not force myself to create a web app. But, when I do start working on something I tend to work extremely hard.
cosmok··on HN News sorter bookmarklet
sounds like a useful feature, will try to add it.
cosmok··on Ubuntu Is A Poor Standard Bearer For Linux
I know it can be frustrating to have a software not work as expected but, I don't think Ubuntu is doing too bad in this respect (I have been using Kubuntu @ work and Fedora at home for the past 2-3 years). The author IMO is a bit too harsh on Ubuntu. On a somewhat related note, I think people should also read this while passing judgement on another OSS (esp bug fixes): http://ryanbigg.com/2010/04/want-it-give/ http://news.ycombinator.com/item?id=1255905
cosmok··on Vimcasts
I would also recommend the Vim Tutorial Videos here: http://www.derekwyatt.org/vim/vim-tutorial-videos/
Page 1 of 3Next →