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 7y ago · link · parent

Collecting telemetry against user's will is not a legitimate traffic.

comment 7y ago · link · parent

Exactly. Contracts, identification, phone numbers are not necessary for this. It could be dead simple: the application on your phone generates a pair of private and public keys. You pay some satoshis to a carrier and get some amount of Internet traffic, using your private key for authentication. If you want to switch to other carrier, you just generate a new key and send some satoshis to its account, and your modem generates a new random IMEI. You generate a new key and new IMEI for every new payment so it becomes difficult to track you and sell data about your location. And you can switch between different providers any time. You can even switch depending on who has a better signal in your current location. No need for identification, making a contract, getting a phone number, selling data about you (because carrier doesn't have it) or reporting your location to the government or courts.

This is ten times better than what any provider offers today. If someone implements this, nobody will want to use old scheme anymore.

Also this should promote competition between carriers.

comment 7y ago · link · parent

But Apple software is proprietary, not friendly to open soure developers and you never know what that software is doing. Maybe they are streaming your data directly to "cloud" operated by NSA. Or iPhone doesn't upload anything to cloud?

comment 7y ago · link · parent

You can change URL for DNS resolver in Firefox using 'network.trr.uri' option or disable it: https://wiki.mozilla.org/Trusted_Recursive_Resolver

comment 7y ago · link · parent

By the way you can check your browser here https://www.cloudflare.com/ssl/encrypted-sni/ . My Firefox has all tests passed.

comment 7y ago · link · parent

If you use ESNI (that encrypts SNI field in SSL handshake) and the server uses ESNI, and you both use TLS 1.3 (that encrypts server certificate) then it is difficult to determine domain name. Latest Firefox supports both of there features, as well as DoH.

comment 7y ago · link · parent

If someone wants to filter DNS lookups, they can just disable DoH - it is easy.

comment 7y ago · link · parent

In case anybody is interested, you can visit https://www.cloudflare.com/ssl/encrypted-sni/ to see whether you have all features that prevent leaking the domain names that you visit. In Firefox 67 with network.security.esni.enabled set to true, all tests are passed.

comment 7y ago · link · parent

Then you can open about:config, find there network.security.esni.enabled and enable it. This will make your ISP even more unhappy.

comment 7y ago · link · parent

No. Many sites have a style like "display: none" on body element, to hide content until JS is loaded. But of course they have content in HTML for search engines optimization. So they show content to Google robot instantly, but the human user has to wait.

Google also uses this trick in search results if I remember correctly.

comment 7y ago · link · parent

Also, when I was using Chromium, I disabled JS by default and enabled it only on a number of sites that really need it. But now I don't want to support Google by using Chromium and Firefox cannot disable JS without installing heavy memory-hungry extensions.

comment 7y ago · link · parent

It is bad because if browser uses too much memory then it swaps out other programs like gnome-shell to the point that you cannot use Alt-Tab because the code responsible for it got swapped out.

It would be better if poorly designed sites (for example newspapers or TV channel sites) were slow or displayed without images and iframes with ad rarher than situation when browser swaps out everything else to help this poorly designed site run faster.

comment 7y ago · link · parent

It doesn't make much sense to use terminal instead of normal GUI. Terminal has no advantages over normal GUI for displaying web pages.

comment 7y ago · link · parent

What I don't like that modern browsers tend to trade memory for performance, i.e. get slightly better numbers in benchmarks by using significantly more memory. For example, have you heard about image decoding cache? A browser can waste as much as 20 or 30 Megabytes to store uncompressed bitmaps, although a better solution would be not to store them at all. If the website uses too much images, then it is not a browser's problem.

Well, wasting 100-200 Mb for one tab is fine, but what if I have many tabs opened? Browser quickly uses up all available memory and starts swapping out other programs including a shell.

I think that browser could at least reduce memory consumption for background tabs: they don't need to run when they are in background. A browser could free everything that is not necessary, including: image decoding cache, caches to speed up DOM and CSS, canvases, compiled JS bytecode (it takes more memory than source code) and JIT'ted code, any network caches, SQlite cache. Also they could gzip text resources in memory like CSS or JS code.

Note that this approach is better than simply unloading a page like mobile browsers do. But if the user didn't input anything into a page, I think it should be fine to unload it completely after some timeout (for example, 30 minutes).

The same approach could be used with iframes. Typically they are used mostly for ads and analytics. There is no need to waste precious memory for slightly better animation of an ad banner.

I remember that many years ago Opera could handle tens of tabs with 512 Mb of memory and not get swapped out.

comment 7y ago · link · parent

Same story when visiting from Russia.

comment 7y ago · link · parent

If this is made to ensure compatibility with programs using those undocumented structures then it is a different thing. They become a part of API.

comment 7y ago · link · parent

Coins are easy to sell.

comment 7y ago · link · parent

Just wanted to comment that Googling "KeBalanceSetManager" gives this article [1] among others (the article mentions the leaked source code but it doesn't contain the code itself, just the description). Many internal function names were leaked with debugging symbols, and some people were reverse engineering those functions (for example, people who deal with malware).

The similarity in code can be explained by reverse engineering. For example, constant names in switch are different (TimerExpiration vs STATUS_WAIT_0).

> Why does this code in ReactOS exist if it does nothing?

Maybe because there is software that relies on the existence of this thread?

Regarding assertions and local variable names and same declaration oder, I don't know where they come from. That looks suspicious.

[1] https://github.com/bowlofstew/rootkit.com/blob/master/90210/...

comment 7y ago · link · parent

The information about many internal "undocumented" structures is actually documented on third-party sites. And if there are structures that are really not documented anywhere then you don't have to reimplement them because no developer is using them and they are not necessary for compatibility.

comment 7y ago · link · parent

Many "undocumented" Windows kernel structures are actually documented on third-party sites, for example [1] and [2]

[1] https://www.nirsoft.net/kernel_struct/vista/index.html

[2] http://msdn.mirt.net/

They were found, for example, in debugging symbols released by MS. And sadly Axel didn't provide a single example of code that allegedly was copied.

comment 7y ago · link · parent

What "points"? Axel didn't provide a single example of what could be allegedly copied code.

comment 7y ago · link · parent

Axel didn't provide any examples of allegedly copied code, so what can they explain?

comment 7y ago · link · parent

"Many internal structures" that Axel believes are private and available only for MS employees, are actually published in the Internet, for example [1] [2]

[1] https://www.nirsoft.net/kernel_struct/vista/index.html

[2] http://msdn.mirt.net/

comment 7y ago · link · parent

Exactly. The author doesn't give any references, just says "Trust me, it is the same code". Maybe the author doesn't know that there are many resources with reverse-engineered descriptions of undocumented kernel structures and functions, for example [1] [2]

[1] https://www.nirsoft.net/kernel_struct/vista/index.html

[2] http://msdn.mirt.net/

comment 7y ago · link · parent

I tried googling for KiInitializeContextThread and there are lot of search results for this name. For example, a presentation in Chinese dated 2005 year described process creating and mentions this function: [1]

The sequence of events that happens inside KeInitThread() can be obtained from reverse engineering. If you compare the code of this function in WRK [2] and in Reactos [3] code, you'll see that while they do similar things, the code is not the same.

Regarding NpxFrame, I don't know why this name is used in KiExitV86Mode, but if you compare functions KiInitializeContextThread in WRK and in Reactos, you'll see that in WRK the variable is named NpxFrame [4], and in Reactos a similar variable is named FxSaveArea (which matches structure FX_SAVE_AREA). The variable named NpxFrame in Reactos is used in other function, KiExitV86Mode.

[1] https://slideplayer.com/slide/6561298/

[2] https://github.com/Zer0Mem0ry/ntoskrnl/blob/master/Ke/thredo...

[3] https://github.com/reactos/reactos/blob/master/ntoskrnl/ke/t...

[4] https://github.com/Zer0Mem0ry/ntoskrnl/blob/a1eded2d8efb0716...

[5] https://github.com/reactos/reactos/blob/893a3c9d030fd8b078cb...

comment 7y ago · link · parent

Regarding HTTPS, localhost is considered a "secure" origin: https://developer.mozilla.org/en-US/docs/Web/Security/Secure...

comment 7y ago · link · parent

This won't allow to load images, files from CDN etc.

comment 7y ago · link · parent

> I think this also had implications on using wasm in electon

It should not. Electron runtime is not a browser and developer can tweak its security settings.

I would suggest another idea for local files: grant access to folder whose name matches HTML file name, with suffix. For example: file some-page.html and directory some-page_files.

comment 7y ago · link · parent

I think it is not acceleration, but rather a position of mouse relative to the edge of a window.

comment 7y ago · link · parent

Also, MSPaint on Windows XP adds ".PNG" extension in uppercase which is also annoying.
1
128129130
185