Hacker Newsnew | past | comments | ask | show | jobs | submit | more codezero's commentslogin

I complained about my speeds and they upgraded my router to a newer one. I find it pretty unacceptable that when I'm renting equipment from them, they don't provide me the equipment that is the speed of the pipe I pay for unless I complain...


For anyone about to try out algo – I assume it's great if you are using AWS or DigitalOcean, but if you're self hosting, or have an unsupported VPS, I've had nothing but trouble getting it up and running. I am most certainly to blame, but just a heads up.


Not to toot my own horn, but here's a blog post I just wrote on some issues I ran into setting up Algo on a pre-existing Vultr server. It might help.

http://modulolotus.net/posts/2016-03-28-setting-up-algo/


Excellent I'm embarrassed that I didn't ask if anyone had done this and wrote up their results.

From what I was experiencing, I bet it was either the root privileges, or the SSH connection errors. Thanks a ton.


My vpn doesn't prevent my cell provider from selling my location info.


Does your cell provider have monitoring software installed at the OS level?


Uh. No but cell tower negotiation over LTE isn't using TCP/IP which is all the VPN has power over. Or am I really confused? The LTE radio is totally independent of internet protocols and can be tracked by cell providers since I must connect to their tower.

And maybe. I don't control the carrier firmware.


It's a little known fact (is it?) that you can use a SQL like query language on Google Sheets.

You can query across different tabs on a single sheet, or query a totally different sheet!

https://developers.google.com/chart/interactive/docs/queryla...

https://support.google.com/docs/answer/3093343?hl=en


This feature makes me think, "When all you have is SQL, everything looks like a relational database."

I recently confused some co-workers when they examined my Google Sheets query - not knowing Excel very well, I just wrote SQL-ish. Now they have to live with my SQL-ish spreadsheet or figure out how to redo it with Excel functions.


How about "when all data is fundamentally structured, a Structured Query Language will be highly useful in many cases?"

Seriously, we live in a universe where everything is composed of lots of smaller things that exist in relation to each other. Relational Data isn't so much a database technology as it is fundamental information theory.


Let me preface this with: I'm a huge proponent of SQL when appropriate. I understand why Cassandra et al were required when generating dynamic live newsfeeds for each user in an ecosystem when the RDBMS query plan was pretty much designed in a naive non-uber-scalable-fashion.

That being said - let's take a field which changes fairly rapidly, all things considered - medicine. You have two forms of changes which can occur within your data model -- (a) definition changes where your schema stays the same effectively and (b) paradigm changes. Let's say you're with a patient and need to code in a ICD[1] value for whatever malady he has. A crude analogy would be a comparison between the Dewey decimal system and the ICD. As the ICD evolves, new codes might be added but the fundamental structure remains the same. So, a new database paradigm TotallyAwesomeRuleBasedImmutableDB pops up, and you just use the pre-existing code for "Databases" (say 20) and appropriate the next available integer in that set for TARBIdb(lets say, 73). No problems there. Essentially, we just inserting a new value (73, or added a new "smaller thing") into the set of Databases to universe U_1 by without violating any invariant properties. Consider (a) a non-issue.

The problem occurs when you need to address the issue of your patient being an alcoholic. Previously, this was referred to as trunksucht (loosely translated as: "dipsomania"). This would fall under the 305, 303, 291, or 980 codes depending on if you were say, a non-drinker with no psychological cravings for alcohol who pledged for a frat, drank too much and developed alcohol poisoning as a result of that. If you were a daily drinker exhibiting physical withdrawal symptoms, you would be coded from an entirely separate section. From the ICD-9 to ICD-10, the WHO reclassified this entirely (such that either patient would be coded in to an entirely new category 'F10').

This breaks a lot of things, from the front-end GUI which would do validation with a regexp [0-9]{,3}\.[0-9]* or some such which is trivial enough I suppose, to the stored procedures which then have to get vendor approved schema changes, all of which will be rolled up and sent to your IT guys who have to go through tedious QA to make sure everything works. (And I mean literally every modal dialog, every validation, every external XML-RPC call to bill out your patients insurance company, Universe U_2).

I've read Codd's paper, the entire ANSI SQL11 standard, and have a fair grasp of both major vendors. There is nothing in there about gracefully dealing with these situations. I suppose one could argue that an RDBMS' purpose is solely to act as a data-store while retaining availability and data integrity -- that is, U_1 is all your Oracle instance cares about (manage your tablespace's set of schema objects and the interaction between U_1 <--> U_2 is completely out of the scope of it's set of responsibilities). Maybe so, but when Oracle added the XMLType with full XPath selector capabilities in 9i (give or take?) they certainly co-opted the responsibility to deal with changes of a structural (that is, "of type 'b'") nature. Dynamically typing, weakening of type systems, writing to an 'duck typing'), serializing via the Protobufs methodology, etc are all just band-aids; we need a surgeon to go in there with some surgical sutures.

[1] https://en.wikipedia.org/wiki/ICD-10


Relational calculus is pretty fundamental. A better quote might be "Every application that uses complex data has buggy hand coded relational database plans it in."


If you work with data, you should learn basic SQL. It's a lot more useful and safe than a tangle of Excel functions.

The relational model was a real breakthrough. It really does describe, generically, any data structure you may have. Folks who adopted NoSQL solutions are now learning this the hard way


Also little known, extremely powerful feature of Google Apps is full-on scripting: https://developers.google.com/apps-script/overview

With urlFetchApp you can use it as an API runner: https://developers.google.com/apps-script/reference/url-fetc...


It's a little known fact (is it?) that there are database functions in Excel! You can calculate simple aggregates like count and sum of records subject to some constraints. Example: https://support.office.com/en-us/article/DAVERAGE-function-a...

These functions were available since Excel 2.0 but many people don't know they exist


Excel's filtering syntax (e.g. SUMIF) and this function are obtuse, difficult to use, and very simplistic just compared to a WHERE clause on a sql statement. And this ignores other very powerful sql features like pivot and group by that are exceedingly difficult for excel to produce.


You just described pivot tables, which are well-supported by Excel and Google Sheets.


Sumifs and countifs are far more powerful (see my other comment) I no longer use d functions since these where added in office 2013


High five to you for adopting (did you?) my (is it?) quasi-half-assertion.


You could also query Excel with SQL; the ODBC driver is part of Windows. http://stackoverflow.com/questions/15844633/using-excel-as-a... gives an example of how to use. Not the best database in the world, but sometimes "SQL can save ya".


I often wind up needing kind of the opposite of this: a spreadsheet as a view on a complex SQL query I've written, so that folks can manipulate the results themselves.

A quick way I've set this up with Google Sheets is via IMPORTDATA(), combined with a url that dumps a csv of my query results. That way people can do all sorts of analysis and manipulation in a different tab while being able to refresh the underlying data. https://support.google.com/docs/answer/3093335?hl=en


Wow. This is what I've wanted for years. Amazing you can even write a query into a URL string.


You might like (love!) this: "Programming in the URL string"

http://apenwarr.ca/log/?m=201212#18

http://afterquery.appspot.com/help


And BigQuery!


Google uses a lot of signals. The article above is on http, I saw a drop in spam flagging when the web host on my email domain was https only.


I've been wondering why a lot of things are the way they are in functional programming, not being very lambda inclined myself, I didn't seek it out, but this post summarized a lot that has been on my mind lately.

In particular, and with apologies for being so clueless – it never occurred to me why currying was necessary – I didn't realize lambda calculus required functions to take only one argument. With that limitation, currying is genius.


If anyone else is curious why he didn't die, according to Wikipedia it wasn't enough sheep blood to kill him.


I see your 2 and raise you 2:

"(this is a color-hued hand from Apple that doesn't render on HN)".length == 4

I ran into the length==2 bug when truncating some text, it led to errors trying to url encode a string :)

The author's `fancyCount2` still returns a size of 2 for these kinds of emoji, but I'm not too surprised.


I think they mean unique users.


According to LittleSnitch Omnigaffle 5 doesn't phone home at least when entering license keys. It may do so at some other time though.


Speaking of little snitch...

http://i.imgur.com/JR5Ehbc.png


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: