HNHacker News
TopNewBestAskShowJobs

niyazpk

10,954 karma · joined July 25, 2008

Spellbound by everything in this world and beyond.

Humbled by the depth of wisdom yet to be consumed.

On a journey not knowing where it leads.

I promise you a better world.

-----------------------------------------------------------

താണ നിലത്തേ നീരോടൂ... അവിടേ ദൈവം തുണയുള്ളൂ...

-----------------------------------------------------------

"Be humble for you are made of earth. Be noble for you are made of stars." -Serbian proverb

-----------------------------------------------------------

Currently building https://papaya.fyi - We improve the quality of your AI agents.

If you have thoughts or feedback on the product, would love to connect. Please reach out!

submissionscomments
niyazpk··on Announcing Yeoman 1.0 beta 4
I am already using gruntjs for js/sass/images compression & combining, template compilation, and a whole lot of other build related stuff. Can somebody please convince me why I would want to switch to yeomen?
niyazpk··on Python.org Redesign Preview
Very nice work.

I am a bit torn on this though: http://i.imgur.com/QBEWQQc.png

It does not look simple enough with all the >>> characters.

If you are not familiar with the python shell, I am not sure that you will be able to understand which lines are commands and which lines are results. There must be a better way to do this.

More code examples would also be a welcome change IMHO.

niyazpk··on Shapecatcher: Draw the Unicode character you want
The look of disapproval is not a single character; it comprises of three characters: [1] _ [1]

[1] http://shapecatcher.com/unicode/info/3232

niyazpk··on JSON Editor Online
I had the same feeling a few hours ago when I saw this first, but now I when I think about it, it looks mildly useful.

There are a few cases in our company where designers need to provide developers with JSON (for whatever reason) and this tool will help them to edit JSONs without worrying about screwing up the syntax.

BTW you can copy the changes in either section by clicking the arrow between the two sections.

niyazpk··on Parsley.js: never write a single JavaScript line to validate your forms
Very nicely done. Beat me to it. :(

I am working on a library which takes a data definition, renders the form and then validates it before submitting it via ajax. It supports various hooks like manipulate the data before submission etc.

IMHO form rendering (in a standard way) is also a common pain point along with form validation. Anyone interested in this type of library? Any inputs will be highly appreciated.

niyazpk··on Python alternatives for PHP functions
>> but no one hires anyone to write just JS.

You are joking. Right?

There are many good job opportunities for JS developers. I don't know where you got the idea otherwise.

FWIW, I was hired to do just JS.

niyazpk··on Prof. calls out student for cheating via Math StackExchange
Is there any way to be absolutely certain that "John Paul" is really John Paul?

Otherwise this does not mean anything more than "somebody better be confessing, but I am not sure who".

(The fact that there was a an attempt on the question does not bode well for this guy, but again, that could be faked too... right?)

niyazpk··on Killed by Homeopathy
Any place where interested readers can learn more about your proposed alternatives?

Your arguments here makes it feel like there is a prerequisite of knowing your (comment?) history to understand what you really mean.

niyazpk··on Editorial: "How piracy changed my life"
I was under the [naive] impression that _every_ security check finally boils down to one JMP statement. Can you please explain what makes other programs more difficult to crack than flipping the one JMP location?
niyazpk··on Color schemes for Sublime Text 2 and Textmate
Awesome. Thanks!
niyazpk··on Color schemes for Sublime Text 2 and Textmate
What is the font used in the screenshots?
niyazpk··on Offer HN: Tell me what you need, and I'll program it (for free)
I want this[1], but a version that works online. Should support multiple calenders per user so that I can track more than one goal at the same time.

Have one dashboard view where I can see an overview of all my goals.

[1] http://seinfeldcalendar.com/

niyazpk··on Poll: What are your primary motivations for doing side projects?
One big motivation for me to work on side projects is that (since I don't expect them to be really successful or anything,) I don't have to be pedantically pragmatic about the choices I make. What I mean is that I get to do things the 'right' way, not the fastest-to-ship way.

I get to write code in _my_ way, not in the way that business requires it to be.

Doing it the right way _does_not_ mean that it will not involve hacks or clever techniques etc. It just means that I get more time and space to think about the choices I make and I get to model my data-structures, code and the visual design in the best way possible (for my definition of best).

I like the fact that I can look at the same piece of code for a few days and refactor it like crazy.

I have found that this eventually helps me in my day job too.

niyazpk··on The most common failure mode is failing to show up
> I also learn using anki, ...

Very interesting. Can you please elaborate on what you use it for and how it really helps?

niyazpk··on Shepard tone
FWIW I am also able to notice those points very clearly.
niyazpk··on Chrome DevTools could do that?
For some reason even after multiple tries over the years I have never been able to get "Break on subtree modifications" and similar to work reliably. I think I must be doing something wrong, but I don't know what. Anybody else have had issues with this?
niyazpk··on Subtle Patterns
Also this: http://www.colourlovers.com/patterns/most-loved/all-time/met...
niyazpk··on Bing vs. Google
This is not a real blind test though. (Pardon me for being a web developer, but) I can tell which is which by just looking at the green colors used in the links. The green in Google results is a little bit more saturated than the one in Bing.

Google results also seems to show share counts from Google+ as in: 73,352 people +1'd this

niyazpk··on Introduction to genetic algorithms (example in Javascript)
I really liked the way you have presented the topic in the article.

One suggestion I have is to just stick with one language instead of using multiple languages in the series. I understand that you are using different languages to prove the point that ML can be implemented in any language, but when you switch the language between articles, it might get a little awkward to follow. I would suggest teaching in one language which you think can better represent the logic and then provide a link to a github repo or something which has the same code in different languages.

Again, kudos for the effort.

niyazpk··on Collapsible comments for Hacker News
It is actually on the correct side. The screenshot a bit old. My bad.
niyazpk··on Samwers Clone Stripe
>> just some contracts and APIs

Again, you sound like a very optimistic person. :)

In reality, contracts make forever to set up, and it's better not to talk about APIs from commercial banks. Whenever monitory transactions are involved, you will have to confirm to a huge amount of regulations and conditions to meet which you will have to get involved with even more bureaucracy.

Coming from India, I am sad to say that I have got a fairly grim perspective about these things.

niyazpk··on Samwers Clone Stripe
You are vastly underestimating the effort required in setting up a payment gateway in a country.
niyazpk··on How we made our home page load faster
Here are a few that were not mentioned:

- If you have a lot of images like in a product catalog, try lazy loading the images - http://www.appelsiini.net/projects/lazyload

- For sprite-ing your images, use some tool which will automatically generate the css for you: http://spritepad.wearekiss.com

- Have a git commit hook for compressing images. (It could be part of your build, but then you are doing the work every time and the build will be slow if you have a lot of images.)

- If you are using LessCSS or something similar (hint: you should), have your compiler compress the css for you. - http://wearekiss.com/simpless

- Have multiple hosts referring to your CDN to facilitate parallel downloads in the browser.

- Compress your HTML too before deploying - http://code.google.com/p/htmlcompressor/

- Have proper versioning in the name of your JS/CSS files and then cache them for ever. Whenever you change your files, the version should change and only that file will be updated in the client. We normally take the hash of the latest git commit on that file:

   cookie-wrapper.js -> cookie-wrapper.bb9303b809210674.js
- Offload whatever you can from your cookies to localStorage or things like that to reduce request size.
niyazpk··on How we made our home page load faster
We do something like this:

  $(function(){
      setTimeout(function(){
          /* load twitter, facebook */
      }, 2000);
  });
This tries to make sure that all the essential work to be done on the page is completed before the less important Twitter, FB buttons are loaded.
niyazpk··on Never ever do business with Samsung India Software Operations
Exactly what I was thinking. I can imagine that he has to deal with a few _ssholes. I see how a foreigner would feel like he is hitting a wall when he is dealing with the bureaucracy in many Indian organisations (blanket statement), but at the same time, you have to understand that the only way you can get anything done in this scene is to have a little patience and have a cool head about the way stuff happens here.

I am not saying that being patient is a the right way to fix the bureaucracy, but being patient looks to me like the right way to navigate your way around.

BTW I am not judging the way the OP responded to his particular scenario.

niyazpk··on My Git Habits
Wouldn't git merge --squash do this for you?
niyazpk··on GitHub and Rails: You have let us all down.
The sad part is that the guy was your biggest fan: http://homakov.blogspot.in/2011/07/octocat-tattoo.html
niyazpk··on Chrome 17 preloads autocompleted URLs as you type
What will happen to my server logs?
niyazpk··on Show HN: my weekend project, PageBlox
Small nitpick: If you say you generate HTML5 markup, I think you should make use of the new HTML5 tags like <header>, <footer> etc in the rendered file. Right now it looks like you are just changing the doctype?

See how HTML5BoilerPlate uses the header & footer tags: https://github.com/h5bp/html5-boilerplate/blob/master/index....

It would also be nice it you can directly output a version of html that contains all the features from HTML5BoilerPlate.

niyazpk··on PyCon 2012 Branding: A Design Timelapse
Does not work for me because Dropbox is blocking the image & video due to high bandwidth consumption: http://i.imgur.com/omLAq.png
← PreviousPage 5 of 17Next →