Better HN
topnewbestaskshowjobs
Log inSign up

HugThem

301 karma · joined Oct 26, 2016 (10y ago) · 77 submissions

In love with technology
Submissions

comment 7y ago · link · parent

I tried sleeping 0.1s every 5s or so. It did not help. Still crashed.

I don't think swapping would even occur since neither mysql nor php grow their memory usage over time.

It's not an SSD. It's good old rusty HD.

comment 7y ago · link · parent

I fire the queries sequentially. So there is never more then one query running.

comment 7y ago · link · parent

I witnessed MySQL bringing linux servers down two.

In my case it happens like this:

I have a long running PHP process that constantly fires away mostly SELECT but also a bunch of INSERT and UPDATE statements and also some DELETEs.

Since the DB and the key files do not fit into memory, its all disk bound work.

All tables are MyISAM.

Like clockwork, this stalls the virtual machine once per day.

All I can do is to hard power down the VM and restart it. Afterwards the table data is corrupted beyond repair.

Not sure it is related to memory though. Because the memory usage of PHP and MySQL seem to be constant. Most RAM seems to be used by Linux for caches.

34.

Libraries are fighting to preserve your right to borrow e-books(edition.cnn.com ↗)

83 points · by HugThem · 7y ago · 6 comments

comment 7y ago · link · parent

But can't anybody sue anyone for anything anytime? Does that mean anybody can bankrupt anyone at will?

As far as I know, being bankrupt means you owe someone more money then you have.

At what point does this situation occur?

I would think at first a court needs to accept the plaint and order him to write a rebuttal or to appear in front of the court or something? I wonder what exactly would happen.

comment 7y ago · link · parent

You write:

    They know they could bankrupt me
    without breaking a sweat.
How does that work? What exactly would they do to bankrupt you?

They already started taking action but as I understand it, you are not bankrupt yet.

If you put the links back in place, what would they do next? And at which step would you be bankrupt?

comment 7y ago · link · parent

    you're still transmitting/redistributing
    the content
Parts of it. Google does the same in their search results. The user can even decide which parts, because they show you the part that contains the search term.

So they provide a service that includes storing your content in it's entirety.

Has this ever been tested in court?

comment 7y ago · link · parent

    I guess you wouldn't pay $499K for a $1M/$0 flip
No. But the discussion here is about shares. And they are not $499k a piece.

We are discussing if the share price of a company that publishes numbers in line with expectations should go up.

comment 7y ago · link · parent

If that is true, then I will happily buy $1.1/-$1 flips for $0.049 from them!

comment 7y ago · link · parent

Well, if you pay me more then $0.05 for the $0.6/-$0.5 coin flip, I will happily sell you some. How much do you want?

comment 7y ago · link · parent

No. Imagine a coin flip where you earn $1.1 on head and lose $1 on tail. What is the value of such a flip? $0.05

Now I offer you a coin flip with less uncertainty. It earns you $0.6 on head and loses you $0.5 on tail. Would you pay more then $0.05 for it? No. Uncertainty was reduced, but no value was created.

comment 7y ago · link · parent

Is that $5B fine deductable from taxes?

comment 7y ago · link · parent

Have you built an API based business before?

comment 7y ago · link · parent

Why on earth is the text of Home/Explore/Notifications etc on the left bold and twice as big as the content aka the tweets?

You see the navigation every day. You know where it is. Its not that you have to read through it. So if anything, shouldn't it be smaller?

comment 7y ago · link · parent

I don't see such a limit. When I search, I still can scroll. Just tried and it worked all the way down to 2011.

comment 7y ago · link · parent

If you don't need transactions, then MySQL with the MyISAM engine has several aspects I love:

1: Blazingly fast. As it simply hands DB writes to the OS and benefits from all the caching and optimization the OS does. Depending on your storage medium, insert/updates/deletes often are 100x faster then with an ACID compliant engine.

2: Simple data structure. Want to see the sizes of your tables? "ls /var/lib/mysql/your_database" and you see each table as two files. One for the data, one for the indexes.

3: Easy to copy the data "cp -r /var/lib/mysql/your_database somewhere" and you are done.

comment 8y ago · link · parent

Searching for it on Youtube brings up videos of a pretty ugly interface. With 80s style text windows.

I like OPs version because it just puts a one pixel border around the window and except everything is black.

comment 8y ago · link · parent

That's cool!

Are there other versions of this idea around? Maybe older, more stable and trustworthy solutions?

49.

Product Chart replaces product lists with scatterplots(productchart.com ↗)

2 points · by HugThem · 8y ago · discuss

comment 8y ago · link · parent

Ah yes, I came across that DB once. Cool.

comment 8y ago · link · parent

You make it sound like somebody gives up their copyright by using a certain data encoding.

comment 8y ago · link · parent

Where is that data from?

Also, it looks like you republish recipes from other websites. Do you have their permission to do so?

comment 8y ago · link · parent

The web already is decentralized. Most HTTP requests are fulfilled by a computer that is part of a CDN, not by the publishers computer.

IPFS is like Wikipedia, Uber, AirBnB. There have been encyclopedias, taxis and hotels before. But now it's easier to participate.

My computer has this article cached right now. So if my neighbor want to read it, he could get it from me. The infrastructure is just not there yet. IPFS will add it.

comment 8y ago · link · parent

It would be interesting to simulate a little world with species that evolve via genetic crossover. And let them have an aging gene that is just a number: The average lifespan.

Wonder what evolution in the simulation would come up with as the best lifespan.

Could be a fun weekend project.

comment 8y ago · link · parent

No, you can't.

You can uses CSS as part of a keylogger in conjunction with Javascript that triggers your selectors based on keypresses.

There are sites that already ship javascript that change attributes that trigger selectors on certain keypress events. So by adding 'pure css' to these sites one would be able to log keystrokes on certain fields.

One example is Instagram. It ships Javascript that changes suitable attributes of the password field on every keystroke. So adding the right CSS to Instagram could result in passwords being logged.

comment 8y ago · link · parent

Thanks for the info!

I tried your site and I saw that it adds the VAT when the user selects their country. Since the order page makes network requests to ChargBee, I guess they provide all that functionalilty.

Would you say ChargeBee is also a good solution for small one-time-payments?

When you say it abstracts away 'most of the pain' - what pain is left?

comment 8y ago · link · parent

One thing I would love to know more about is how European SAAS startups handle invoicing and taxes. Afaik the tax situation in Europe is super complicated and you have to charge the tax of the country the customer is from.

I am in Europe and want to start a SAAS service that caters to individuals and small companies. I wonder if it is feasible to do so in Europe. Do I really have to ask each customer where he is based, if he is an individual or a company and then tax him accordingly? Do I have to create invoices?

US based startups seem to simply not care. Even big companies don't. They just ask for your credit card number and thats it. For example I used Amazon Mechanical Turk recently to outsource some work. And there simply is no way to get an invoice from them.

Do European startups have a big disadvantage in this regard or am I missing something?

Are there services that abstract that away? Deal with all the invoicing and tax issues?

comment 9y ago · link · parent

The glossy screen is a showstopper for me.
123