Better HN
topnewbestaskshowjobs
Log inSign up

RubyPinch

888 karma · joined Feb 5, 2013 (13y ago) · 406 submissions

Submissions

comment 10y ago · link · parent

it can still be up for debate

Maybe a slow language doesn't matter too much when the majority of the work is conveying data back and forth from the database to the users

comment 10y ago · link · parent

you can add it only if kenneth wants it near his opinion

https://github.com/kennethreitz/python-guide/pull/506

https://github.com/kennethreitz/python-guide/pull/723

comment 10y ago · link · parent

Well that sounds like the kind of thing that should be recommended by default then

its "grr, use python 2, unless, ugh, if you want to do what everyone recommends the average person do, use python 3 I suppose" which is just silly

comment 10y ago · link · parent

if its a pile of function calls, and you feel that walls between the database and code would be a pain, then probably flask. Its good for taking something and throwing a UI on it

If you think "golly gosh, maybe some abstraction between the database and the code, hell, maybe even one of those wonderful Model View Controller things, whatever they are, would be great fun" then probably go for django or any other MVC framework

Flask can do all that, but it requires your help to achieve it. You get control over what ties with what. Django is already set up for usage, just put your code in one of three boxes, and done, but you can't decide what those boxes are or how to use them. It brings a standard structure but you lose control.

comment 10y ago · link · parent

a) that wouldn't affect a build, assuming they cache their packages, which they probably would since that event

b) didn't they change their unpublishing policy after that event?

comment 10y ago · link · parent

You are able to take his code (with credit and license) and incorporate it into yours, just as he can do to you.

comment 10y ago · link · parent

the latest recap from the reddit live thread

https://www.reddit.com/live/x99pqdwudg0l/updates/b7a15982-4a...

What do we know so far?

A white truck have Thursday evening, driven through a police cordon and into a big group of people, who were celebrating, France national day, (Independence Day) in Nice.

The truck driver is dead and shot by the french police. According to french media and local charges, there is at least 70+ dead and 100+ injured.

Authorities have cordoned off the crime scene, rescue workers have arrived and helicopters in the air. The local prefecture has urged people in the area to remain indoors.

Several media sources reports guns and grenades have been found inside the truck, that drove over the crowd. Police are still determining if he worked alone. Eiffel Tower covered in smoke has nothing to do with the attack, it was just fireworks. French officials call it "Accidental".

French President Francois Hollande was returning back to Paris for crisis talks in the capital, his office said. Mr Hollande was in the southern city of Avignon on a private visit.

Some reports spoke of shots being exchanged between police and the occupants of the lorry but these have not been confirmed.

Remember to follow the authorities instructions, and notify relatives if you are okay. If it is not important, please use WiFi instead of Mobile Data if you are in Nice.

comment 10y ago · link · parent

"not caring to act" would also be a very wrong thing and as one would expect from any other job, they should be fired for not working.

comment 10y ago · link · parent

You are taking my comment a bit too literally (especially since the only thing I was trying to convey was: url files != filesystem files). I don't mean defined behavior, I mean what is expected, since that is what you were talking about.

If we go with defined behavior, then wget using the server-provided name just like a web browser does (resolving the redirects, and then explicitly noting that the file is being saved with that new file name), is completely expected, no?

comment 10y ago · link · parent

You talk of native ads, + bloggers being ruined by ad blockers (with all their near zero operating costs?). Isn't native/sponsorship ads practically the perfect fit for blogs? along with being unblockable?

comment 10y ago · link · parent

Can you give a couple of examples of how you feel it is arbitrary?

And you are not really giving any "benefit of the doubt" by calling them scammers straight out, are ya?

comment 10y ago · link · parent

eh, the path the url contains isn't a file system path, its a string of characters that a server can treat in a million different ways, so its not exactly practical to rely on that

e.g. if the url was along the lines of

    http://example.com/dl/f3ct4t3c4c3/
what do you expect the file name to be?

comment 10y ago · link · parent

If I'm not mistaken, the view is,

a) don't want to provide nice tools to windows users because then they'll no longer have the need to switch to a libre system

b) do want to provide nice tools to windows users because then they'll get a taste of how liberating freedom is

obviously there is a balance there, and I think GNU/NT might be a bit too far into entrenching-the-user for his tastes, though I can't speak for him obviously.

It seems there is no political note on his site for the announcement of ubuntu-on-windows.

comment 10y ago · link · parent

There are some smaller groups that are working on their own engines (slowly but surely)

https://gngr.info/ comes to mind

comment 10y ago · link · parent

> and only Ruby programmers who have used ActiveRecord will know how the first one does.

do you really think the first one is /that/ hard to understand?

comment 10y ago · link · parent

> So, in fact, the W3C is not telling us what algorithms to use at all. [so they'll all pick bottom-of-the-barrel-algos, which] in the hands of amateurs are akin to handling plutonium.

It isn't up to the browser to stop people shooting themselves in the foot, "Why is your web app's download verifier so slow?" "Oh because some person's blog demanded that only cryptographic functions he liked should be allowed, so I had to use a javascript-based one instead" sounds like a pain in the ass, but totally possible (mega, mediafire, etc), hypothetical

And browsers at this point in time are getting far better at making an approximate "standard" for these kinds of things

> However, this approach just doesn’t work in a browser, as illustrated by the MEGApwn utility

Yes, this approach doesn't work in a system where you can't generate a number on the other side of the sandbox. Hence, we should not try to make a system that would allow putting/creating a number on the other side of the sandbox? That logic is a bit daft, isn't it?

comment 10y ago · link · parent

https://www.backblaze.com/b2/docs/large_files.html

comment 10y ago · link · parent

> send [...] using FTP, SFTP, Rsync or SCP,

and upload and download are both free, operations (archiving/unarchiving?, et al) are not

Unless they changed it in the space of 16 minutes, I think you might of wanted to give a closer look for making your tl;dr

comment 10y ago · link · parent

I don't know whether "get it out there" is the right idea here

It feels more like a warning to avoid WAFer, as opposed to a good advertisement.

comment 10y ago · link · parent

Its encryption, you apply a transform before putting it onto the dropbox, and then you apply a transform after you pull it back, and the key it'd be encrypted against would be per user (like most encryption)

comment 10y ago · link · parent

unless the "corruption" is reversible by the torrent client, which it would be

comment 10y ago · link · parent

as long as the torrent client knows how to reverse the changes it made to the file (why wouldn't it?) then there won't be any problem.

Its just a really really simple form of "encryption", which most torrent clients do support

comment 10y ago · link · parent

excessively large userbase compared to the amount of people who vote/comment is what I figure

+ I'd imagine quite a lot of people were expecting this blogpost, probably anyone who put more than $50 towards the DAO, and is currently awake

comment 10y ago · link · parent

> Nope, just a wrapper

Nope, its still a fully fledged client, because being a capable client is not /that/ dependant on the UI rendering method, believe it or not.

> but it still has all the disadvantages that you incur when your client is just a web page in a browser.

No? Do you think electron exposes absolutely nothing? There is code being executed with access to the rest of your computer, this has the same access as any other language to the rest of your computer, I mean, hell even if you wanna do something weird, you could write some stuff in C (or use the pythonesque ctypes module), and then run that in turn, once again with access to the rest of your computer.

I could understand these complaints if this was an important critical thing, but its a chat client, its only job is to display text nicely with formatting, browsers are pretty good at that

comment 10y ago · link · parent

refactoring (select a variable name, select all instances of that name, change), and also 1 time pre-processing data

comment 10y ago · link · parent

The acquiring company removed that feature the moment they acquired SF

comment 10y ago · link · parent

GA, popups, FB, et al. all get done in with modern ad blockers, don't they?

comment 10y ago · link · parent

github also does versioned releases, no?

https://github.com/kennethreitz/requests/releases as an example

comment 10y ago · link · parent

> Adblock Plus is not less "vulnerable", so to speak, than the other mentioned add-ons, despite what the article states. It's just that those "researchers" were not competent enough to understand how to "exploit" it.

This, (plus the fact that ABP was harder to exploit than others via the researchers methods), made me giggle a bit considering the pasts of the two extensions

https://google.com/search?q=adblockplus+noscript

1
678
14