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

I don't know Chinese but I guess the text will become much more difficult to read. At least in Japanese there are many characters that have the same reading but different meaning. So with roman alphabet all those characters will be written the same way.

comment 8y ago · link · parent

Those IoT devices are getting more and more computing power. They can run the server software (like Web UI) on the device itself. For example, they can serve static SPA that would connect back to the device via Websocket. So you don't need a sophisticated web server and can do most computations in a browser.

comment 8y ago · link · parent

If vendor's website has a vulnerability like CSRF (which are very common because browsers allow cross-domain GET/POST requests by default and developers often don't realise they should block such requests) then the attacker can gain control over IoT device if they make an employee visit their page.

comment 8y ago · link · parent

What the article doesn't mention: IoT devices are harmful not only because they are vulnerable. They can be used to collect data on users. Every enterprise aims to get as much profit as possible; collecting users' data and selling them later obviously gets you more profit than not collecting.

Why would a thermometer need to connect to the Internet in the first place? It is absolutely unnecessary. The software could be installed on a server in a local network or even inside the thermometer itself.

I think the reason why these devices require an Internet connection is that vendors just want to lock user to their servers and collect "anonymous statistics" from them.

comment 8y ago · link · parent

The website you are mentioning (lurkmore) was blocked in Russia and had to edit its content. See https://reestr.rublacklist.net/search/?q=lurkmore

Please do at least a little research next time.

comment 8y ago · link · parent

And Jabber doesn't require your phone number and doesn't copy your contact list to the server.

comment 8y ago · link · parent

Blocking rules are not perfect. For example, DNS resolution is done by Roskomnadzor and the lists are not updated instantly (usually they are updated daily or several times a day). If you change your IP address faster than lists are updated, blocking effectively doesn't work.

comment 8y ago · link · parent

There is a formal process for that. First, a messenger must register with Roskomnadzor (a government organization). So if a messenger is not on the list, it doesn't have to share anything yet.

comment 8y ago · link · parent

Opposition activists use mostly Telegram. WhatsApp is not so convenient and not so popular among them.

comment 8y ago · link · parent

I found that if you google for "usa flag ascii" then this is the first result [1]. So probably hackers just copied it from that page.

[1] http://chris.com/ascii/index.php?art=objects/flags

comment 8y ago · link · parent

It is interesting that in the message left by hackers [1] American flag is pictured incorrectly: there are too many stars.

[1] https://cdn.i24news.tv/upload/image/9d8a60d8155d08ddbfe86542...

comment 8y ago · link · parent

Deleting the message will look like admitting a thing done wrong.

comment 8y ago · link · parent

Usually artifacts are not the result of using interleaved source but the result of recoding done wrong. I remember reading mencoder manual about "pulldown" and other recoding options.

comment 8y ago · link · parent

Windows used a separate buffer for mouse cursor and video overlay. Seems like a good idea that helps to achieve smooth GUI performance even on a slow machine. You don't have to calculate what part of video frame is covered by other windows and you don't have to update pixels when moving a mouse cursor.

comment 8y ago · link · parent

I have a feeling that framebuffer must be something very slow. When I used both Windows and Linux without proprietary drivers for a video card (so they use some generic VGA or VESA driver), GUI would be slower. For example, scrolling in a window was laggy. Or dragging a window around the screen. Why it could be so? Do video card vendors intentionally slow down video memory access or is VGA or VESA some poorly designed standard?

I was not using Compiz or something like this so it cannot be explained with the lack of 3D acceleration.

Also, with generic VGA driver you cannot have 100Hz frame rate on high resolutions.

comment 8y ago · link · parent

Absolutely. If both parties can match people in their lists, they can find out who is who even if the lists contain some random ids instead of names.

comment 8y ago · link · parent

It would be super easy. Facebook has both source data for a person and the hash that was generated. So they can always reverse the hash.

comment 8y ago · link · parent

Both parties have hashes and source data. If they are able to match people in their lists, then they can find out who they are. So it is a matter of seconds I think.

comment 8y ago · link · parent

> Facebook proposed using a common computer science technique called "hashing" to match individuals who existed in both sets

But Facebook has the source data from which hashes were generated so they can alway reverse them.

Furthermore, if you take a hash from name and surname, it can be easily reversed because the set of names and surnames is relatively small.

comment 8y ago · link · parent

This is where unix philosophy fails. Patch should be editing files itself, not via an external program.

comment 8y ago · link · parent

    const zeroPad = num => ‘00000000’.slice(String(num).length) + num;
What a bad way to declare a function. Starting with the word 'function' will make the code much more readable. Arrow functions are supposed to be used as a small callbacks, not to obfuscate the meaning of the code.

comment 8y ago · link · parent

That is a good thing. Either US makes GSM networks secure for everyone or they'll have to let other countries spy on their citizens too.

comment 8y ago · link · parent

I use Chromium, not Chrome, but it doesn't matter. Software vendors should not be allowed to do this.

Imagine if you hired an electrician but he would secretly go across your house and searched everything to get rid of bugs (at least that's what he said). Would you like that?

If you advertise your app as a browser then it should not secretly scan files.

comment 8y ago · link · parent

Also, I think the article is misleading:

> it [antivirus] only has normal user privileges (meaning it can’t go too deep into the system),

On a single user system all personal files are accessible with "normal user privileges".

> In other words, Chrome Cleanup Tool is less invasive than a regular “cloud” antivirus that scans your whole computer (including its more sensitive parts such as the kernel)

How kernel is "sensitive"? It is the same on every computer running same OS.

> Chrome Cleanup Tool is less invasive than a regular “cloud” antivirus that ... uploads some data to the antivirus company’s servers.

How do you know Chrome doesn't? Is this module open source? They write Google got it from ESET so it is possible that Google themselves never saw the source code and received it as a binary module.

comment 8y ago · link · parent

Do you believe that this is really an "antivirus"? Is it open source? Please remember the case with Kaspersky software that moved files from NSA contractor's PC to Russia. Now let's think what is the probability of Chrome moving your files to NSA?

comment 8y ago · link · parent

This gets complicated quickly. For example, what if you need to add a CSS class, a placeholder or some custom attribute to an input field? You'll have to write code for every such case.

And you can do the same thing with template engines like Twig with macros. Futhermore, Web frameworks like Symfony already have macros that are necessary to display a form. You don't even have to write them and that is a strong point of Symfony compared to weird self-made Lisp template engine.

comment 8y ago · link · parent

Writing templates in Lisp, I think, is an awful idea. Template languages have evolved for a long time to include all the things you will probably need.

For example, imagine if you want to test some HTML code in a browser. Browser doesn't understand Lisp so you have to write it in HTML. And then you have to convert it to Lisp to use as a template. What a waste of time.

There are all king of template languages around. There are editors that can highlight the syntax, there are plugins to write HTML faster. I don't imagine how you justify writing your own template engine. Probably that is just a NIH symdrome.

> First, they work on HTML serialization to string instead of HTML semantics as a tree, making it easy to introduce both bugs and security vulnerabilities.

This can be easily solved by validating HTML code.

> The concepts of "escaping",

Tenmplate engines do necessary escaping automatically. For example, in Twig you just write

    <div>{{ user.getName() }}</div>
and don't have to worry about escaping. I guess in Lisp you cannot even write user.getName() because it doesn't have objects.

> Views absolutely do need code, and so they should be written in a proper programming language.

In my experience, template engines like Twig have enough features. If you need soem complicated logic, you can write a helper function.

comment 8y ago · link · parent

Russia has been doing this for a long time, for example Trotsky was assassinated in 1940 [1]. The goal is to remind the "traitors" that the punishment can come at any time and make them live in fear.

It reminds me how some religious communities go after the people who don't follow their rules even after they flee to other country [2].

[1] https://en.wikipedia.org/wiki/Leon_Trotsky#Assassination

[2] https://meduza.io/en/feature/2017/05/25/we-will-set-them-str...

comment 8y ago · link · parent

What's wrong with damaging USA? They use military to damage other countries.

comment 8y ago · link · parent

It seems that main purpose of WebRTC was disclosing user's IP addresses. By the way, did you know that Websocket can be used for port scanning [1]? I was surprised to find that Aliexpress code scans 127.0.0.1 (visitor's computer) for VNC, RDP and similar ports.

[1] https://datatracker.ietf.org/meeting/96/materials/slides-96-...

1
156157158
185