Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dkopi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
121.
▲
by
dkopi
10y ago
I'd argue that all code should be fairly defensive. Security flaws in the end are just bugs. And defensive programming helps reduce bugs. As for toy projects - you never know when your futzing around becomes a full blown product. Obvio
122.
▲
by
dkopi
10y ago
I don't know how dropbox has actually implemented this, and I'm not sure about OSX, But on windows you might use a kernel file system filter driver or a shell namespace extension: https://msdn.microsoft.com/en-us&#
123.
▲
by
dkopi
10y ago
If any of the dropbox product managers are following - I would REALLY appreciate this in the individual paid version as well. Given a laptop with an SSD<1TB , I still want to be able to make use of the 1TB I'm paying for. Its curren
124.
▲
by
dkopi
10y ago
It can't. This is the type of features that have to be developed for each OS separately.
125.
▲
by
dkopi
10y ago
From the scasm readme.md: "Do not ask for the final goal of this: this is more a learning vehicle to abord several interesting topics." Isn't security one of those interesting topics?
126.
▲
by
dkopi
10y ago
edit: exDM69 actually makes more sense.
127.
▲
by
dkopi
10y ago
Jailbreaking and modding are probably the main cases where users choose to exploit arbitrary code execution bugs on themselves, often to bypass DRM protections.
128.
▲
by
dkopi
10y ago
Protecting the safety, security and privacy of users isn't "user-hostile". Leaving your users exposed to hackers, viruses, malware, malicious adware, ransomware, government espionage and bot networks is. I find it completely
129.
▲
by
dkopi
10y ago
Good point. https://www.npmjs.com/package/get-pixels can help parse an image to pixels, but it returns a different format than the canvas API's Uint8ClampedArray.
130.
▲
by
dkopi
10y ago
Also - CSS tricks don't work if you're writing command line tools or backend code in JS.
131.
▲
by
dkopi
10y ago
While very(!) cool as a proof of concept, This type of solution should probably be avoided for security, stability and portability reasons. Allowing a string in your program to be dynamically converted to assembly code, copied to executabl
132.
▲
by
dkopi
10y ago
Acquihires of companies that only have 2-5 members usually involve the entire team.
133.
▲
by
dkopi
10y ago
Imagine reversing a string: while(pStart <= pEnd) swap(*pStart++, *pEnd--); If swap doesn't work for a self swap, this code would break in the case of an odd length string. It's an easy fix in this case, but being
134.
▲
by
dkopi
10y ago
This is an awesome library, and seems to be very vibrant on Github. If you're looking for something commercial (and paying for something commercial) however, I'd probably recommend one of the step by step tutorial tools that allow
135.
▲
by
dkopi
10y ago
"The married engineer, who is in his 30s, and has been quietly tracking down stolen bikes for the last year, spoke to the Guardian on the condition of anonymity amid increasing curiosity about his identity, motives and methodology.&quo
136.
▲
by
dkopi
10y ago
Check your options before quitting. Go to a few interviews. Tell friends you might be free for offers. Stop ignoring recruiters on linkedin. Make an educated decision between real options, not between a real option and a hypothetical option
137.
▲
by
dkopi
10y ago
This could probably be solved if Javascript had map/filter/reduce functions for iterators (and hopefully dictionaries) as well as arrays. And of course a range(start,stop,step) iterator similar to python's range. it would the
138.
▲
Show HN: An App that makes your cellphone go “ahhhhhh” when you plug it in.
(play.google.com)
2 points
by
dkopi
10y ago
|
0 comments
139.
▲
by
dkopi
10y ago
List comprehensions are incredible. But they're just syntactic sugar for map() and filter() and lambdas. Python's prev = [1,2,3,4] next = [x * 2 for x in old] Is the same as javascript's prev = [1,2,3,4]; next
140.
▲
by
dkopi
10y ago
ES2015 was finalized in June 2015. Comprehensions aren't part of it. If you ask MDN: Was initially in the ECMAScript 6 draft, but got removed in revision 27 (August 2014). Please see older revisions of ES 6 for specification semantics.
141.
▲
by
dkopi
10y ago
"It seems that most do it for tradition sake and I have a hard time getting on board with something like that" Are traditions so bad? Perfectly okay if you don't have certain traditions, but I wouldn't disrespect other p
142.
▲
by
dkopi
10y ago
Semi serious answer: clearly not enough to meet the demand.
143.
▲
by
dkopi
10y ago
The problem with hosting JS libraries on CDNs is that the cache has a network effect. You only gain performance if the browser already has a cached version of this specific version on this specific CDN. If you don't - you end up losin
144.
▲
by
dkopi
10y ago
"I'm hoping you did actually have a proxy in front of it and Orange just didn't catch that." That sounds a lot more reasonable than actually having the private key on each individual server.
145.
▲
by
dkopi
10y ago
These chips are actually smartcards - ASICs that perform cryptographic operations based on a secret key inside of them. "Visa chip cards are not only more secure, they are also simple to use. Chip cards and terminals work together to p
146.
▲
by
dkopi
10y ago
It's just the year % 8 == 0 alarm going off.
147.
▲
by
dkopi
10y ago
Read that one again with </sarcasm> at the end :)
148.
▲
by
dkopi
10y ago
Not sure if it's an Israeli thing, but Facebook groups are probably the biggest value I get out of Facebook (excluding messanger/whatsapp). We have very active programming groups (Israeli IOS/Android devs, Javascript Israel),
149.
▲
by
dkopi
10y ago
... which is why I use Whatsapp and Instagram, which are totally not Facebook.
150.
▲
by
dkopi
10y ago
Viber is an Israeli company, don't be so judgmental of their poor startup spelling skills.
More ›