Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
emidln
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
76 ms
·
781.
▲
by
emidln
12y ago
You don't really ever have to accept it. Go grab the sysvinit source and run it. Have fun managing everything yourself. Ditto for copying a simple rc system like Slackware or OpenBSD provide. For that matter, throw out everything, decl
782.
▲
by
emidln
12y ago
You can easily do this with Clojure/ClojureScript too. As I understand it, it's also possible with Haxe. Theoretically, you could do the same with Ruby or Scala too (not sure I've heard of other languages with reasonably comp
783.
▲
by
emidln
12y ago
What database do you use that supports parameterized table names? Edit: see also, ORDER BY field names
784.
▲
by
emidln
12y ago
I was immediately thinking of a town in Pokemon Red/Blue.
785.
▲
by
emidln
12y ago
Alt+F2 does this. It's actually done this since at least KDE 2.x, maybe a bit earlier.
786.
▲
by
emidln
12y ago
On the other hand, while structural soundness was much worse in the past than it might be today, this method has served humanity fairly well for a very long time.
787.
▲
by
emidln
12y ago
I think this is referring to the ability to the tagged literals api (set data-readers[1] and change/extend the various literal notations already provided by clojure (like #uuid and #inst)). The docs seem to believe that unqualified var
788.
▲
by
emidln
12y ago
I've been using Clojure for awhile now and it has never previously occurred to me that you could do: #(foo %2) instead of (fn [_ arg2] (foo arg2)) Thanks!
789.
▲
by
emidln
12y ago
Came here to say that. My github page (just flat html) loads in ~65ms. Granted, 65ms to load a couple kb of text isn't awesome, but it's not nearly slow enough to optimize for me.
790.
▲
by
emidln
12y ago
I'd rather just have a functions similar to clojure/clojurescript's get-in [0], update-in [1], assoc-in [2], dissoc-in [3] for working with nested objects/arrays. These are pretty easy to write in Python, Ruby, and J
791.
▲
by
emidln
12y ago
Named anonymous functions are there to allow you to call the function recursively while inside it. i.e. (= ((fn factorial [x] (if (<= x 1) 1 (* x (factorial (dec x))))) 5) 120) Note,
792.
▲
by
emidln
13y ago
Combine this with a TTL of 10 years for all laws. Hopefully, keeping theft, rape, and murder from going legal preoccupy all of lawmakers' time.
793.
▲
by
emidln
13y ago
The first workaround is actually the same as what you do for a map in 2.x (that always works): for x in map(lambda i: lambda: i, range(5)): print(x())
794.
▲
by
emidln
13y ago
I'm perfectly fine with defining get and get_in ala Clojure and using them (they work on __getitem__ supporting things, so dicts, lists, strings, most random user-level containers). I go a bit further in my codebases and implement:
795.
▲
by
emidln
13y ago
The only backup awareness days are the days you get audited ( by an auditor or by a disaster). Unfortunately, all other days are "backups cost a lot/are difficult to maintain/have never been tested" days.
796.
▲
by
emidln
13y ago
I've done this with home videos (the counter notice) and it was summarily rejected and ignored by YouTube. My solution is to stop using YouTube.
797.
▲
by
emidln
13y ago
I think what we need for people who don't want insurance is some way to "opt out" of the health care insurance system - maybe a special card you carry that indicates to the emergency room or hospital (where maybe you h
798.
▲
by
emidln
13y ago
It isn't gambling, it isn't a risk, it's certain. You need to be insured. Why? I have money to pay my family's medical expenses. I've done very well investing it. Giving it to an insurance company whose pr
799.
▲
by
emidln
13y ago
Fining people for failing to properly utilize a system that has never consistently worked is asinine. I imagine it won't be long after the first fines that they are challenged in court.
800.
▲
by
emidln
13y ago
I should clarify that when I say "public access to", I mean specifically that a public person can access an application talking to the SQL database. I.e. User <-> App <-> Database Input is simply not properly sanitized
801.
▲
by
emidln
13y ago
Consider this scenario (which is extremely common): Public access to a SQL database. Input isn't properly sanitized while building some complicated query. $badnick executes a SQL injection. Luckily, the database user from the public si
802.
▲
by
emidln
13y ago
I think this is actually works. Might want a configurable work factor for the kdf. (ns passwords (:require [pandect.core :refer [sha256-hmac]] [crypto.password.scrypt :as scrypt] [environ.core :re
803.
▲
by
emidln
13y ago
I'm pretty sure the intention behind something like this: (def a-password (-> pass (hmac server-stored-key) (scrypt-kdf work-factor)) is to prevent all information necessary t
804.
▲
by
emidln
13y ago
On my rMBP, I did a quick back of the envelope comparison using PyPy 2.2.1 vs CPython 2.7.6 on OS X Mavericks and came up with (best of 3 runs): $ time pypy testcode.py real 0m1.529s user 0m1.402s sys 0m0.121s
805.
▲
by
emidln
13y ago
from twitter (@gardaud): “What’s pip?” “A python package manager” “How do I install it?” “easy_install pip” “What’s easy_install?” “A python package manager”
806.
▲
by
emidln
13y ago
"Why not use Fortran 2008 if performance matters?"
807.
▲
by
emidln
13y ago
Who says they have to be fake? While a high number of requests for uncommon domains might trigger a lot of suspicion, you can cart out smaller amounts of data over DNS in ways that are really hard to detect. I've seen situations where
808.
▲
by
emidln
13y ago
An augmented version of this technology (applying known map data plus sensor data) is a huge piece of the self-driving car.
809.
▲
by
emidln
13y ago
I've done (limited) schema validation in Python. Schema exports reasonably well to EDN (it is just clojure after all). One can read EDN pretty well. I don't have a full-blown Clojure interpreter that would be necessary for arbitra
810.
▲
by
emidln
13y ago
Teams I've been a part of are 3/4 (3 successes, 1 failure) on total rewrites over my career. The failure was entirely my fault as a developer not knowing my own limits (coding, design, security, devops, business reqs, managing up
More ›