Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 8y ago · link · parent

This video looks too dark, as if the camera had not enough sensivity.

comment 8y ago · link · parent

Even if there were no street lights, the car's headlights should give enough light to see the pedestrian on an empty road.

comment 8y ago · link · parent

The car also had headlights on and I think they should give enough light to see the pedestrian in 20-30 meters ahead even without street lights.

comment 8y ago · link · parent

Why did the pedestrian walk into the traffic? She should have seen the car. Probably she got used that the cars stop to let her cross the street.

comment 8y ago · link · parent

What is the problem? 50 millions people voluntarily published information about them on the Internet and now they have complaints about someone using it? Don't use Facebook them.

And Facebook is not that bad. You can use Facebook with a fake name and without a phone number. But for example in Russia social network sites require a phone number to register. They have much more to leak.

comment 8y ago · link · parent

What's the use of night mode? Even if someone needs to browse web in the darkness (which is a bad idea anyway), it should be implemented somewhere in the OS, not in applications.

comment 8y ago · link · parent

I think it was not independent, it might be just a trick to make government not responsible if soldiers did something bad.

comment 8y ago · link · parent

This link doesn't open neither in Chromium 46 (ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY) nor in Firefox 45 (shows just blank page). Is it only me? I thinks there is something with their server setup.

comment 8y ago · link · parent

Was East India Company really independent from the government? Wikipedia says [1] in 18th century the government effectively had control over those territories.

I think the idea was to allow private investors to colonize new territories and later seize control from them.

[1] https://en.wikipedia.org/wiki/East_India_Company#East_India_...

comment 8y ago · link · parent

Well, WhatsApp might be not doing this, but other messengers save history on the server. And by the way , how do you know what WhatsApp really does if it has closed source code?

comment 8y ago · link · parent

> They then made a copy of each server's entire drive, including ... every conversation that took place through its anonymized messaging system.

That's why you should not keep history. All messengers like WhatsApp that save history on the server have zero respect for privacy. A decent messenger should not save anything unless allowed by the user.

comment 8y ago · link · parent

My suggestion is to allow to fight back (you can send 100 packets back for every incoming packet) - if someone DDOSes Github then they get 1 Gbps of flood and go off the network (maybe with their ISP that didn't do proper job to prevent attacks).

comment 8y ago · link · parent

One of the way to fight DDOS could be to allow those who are under attack send traffic to the origin of the attack. So for example, if you receive 1 Mbps of traffic from some IP, you can send 100 Mbps back.

If the origin is an infected computer, then it will most likely go off the network, and will stop participating in the attack. If the origin is a data center, then they will lose connetivity and it will motivate them to cure infected servers.

comment 8y ago · link · parent

This is super easy to fix. You know the source IP addresses of memcached servers. Just send to them a spoofed packet with their own IP so that they attack themselves. Or if you know that your competitor is behing the attack, just attack them.

comment 8y ago · link · parent

Skype protocol is proprietary and obfuscated, so I assume that you are going just to pack a browser inside an app.

comment 8y ago · link · parent

Classic version of Skype (with all the "improvements" ) takes about 200-250Mb on Windows XP after long use. Pre-Microsoft versions could take a half of this.

comment 8y ago · link · parent

The "simple example" on the front page uses promises which silence all exceptions by default. Not a good idea. Futhermore, with synchronous operations the code would be much simpler.

comment 8y ago · link · parent

Chromium can do that. You can disable JS globally in the settings and then there will be a script icon in the address bar to enable it on a specific site.

comment 8y ago · link · parent

Also, web version of Skype isn't working in Android browser.

comment 8y ago · link · parent

Google has been doing that for a long time. For example, many years ago it showed a warning about an unsupported browser if you tried to visit Google Docs using Opera. Now it is using user-agent to choose Youtube UI version (if you are unlucky to use a modern browser, you will get that bright whitened UI with huge margins).

comment 8y ago · link · parent

Is it really so? Can OpenGL update only a small part of a framebuffer (for example, when a single letter is typed) or will it rerender the whole text?

comment 8y ago · link · parent

Not all graphics hardware is supported by WebKit. For example, Intel 965 chipset doesn't support WebGL.

comment 8y ago · link · parent

By the way, Notepad cannot display files with unix-style line ending, it doesn't keep indentation and it inserts BOM when saving file as utf-8.

comment 8y ago · link · parent

I even think it would be annoying if someone would just move cursor around when I edit something. And there definitely would be conflicts if they would try to edit the file at the same time. Who needs this feature?

comment 8y ago · link · parent

Are 5k monitors that popular? Do they even exist? I think it makes sense to make editor available on maximum number of platforms.

Things like filling rectangles or scrolling have been hardware optimized for years on Windows without using any OpenGL and it works even on ancient graphic cards. So I think it might be a better technology for a text editor.

comment 8y ago · link · parent

Also, I noticed that it requires WebGL so without modern and supported by WebKit graphic card it won't work. Why is OpenGL necessary for a text editor? I don't understand.

comment 8y ago · link · parent

It is faster than all other editors I've used, especially startup time and scrolling smoothness. So I think it is optimized.

comment 8y ago · link · parent

> For all interactions, we shoot for the following targets on the hardware of our median user:

> 8ms Scrolling, animations, and fine-grained interactions such as typing or cursor movement.

I don't believe that. Either they use expensive powerful hardware or they measure performance only on start with empty documents. Because even Sublime Text starts lagging after long use and typing several pages of text. There is no way HTML page can be faster than optimized native code.

Especially with React (which adds even more overhead and which was never made for high performance) and these weird ideas:

> a CSS-in-JS approach that automatically generates atomic selectors so as to keep our total number of selectors minimal.

comment 8y ago · link · parent

Every time I visit medium, it shows a popup reminding me how much times I visited it before. Do they want to make me feel guilty for visiting too often?

comment 8y ago · link · parent

Many years ago Opera had a blacklist for URLs with wildcard support that was implemented in a native code, not HTML/JS. I used to use it then.
1
158159160
185