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

Chrome was also offered when downloading Adobe Flash and as I remember it was often bundled with various free software.

comment 8y ago · link · parent

Google also showed a warning about an unsupported browser when Google Documents were used with other browser like Opera.

comment 8y ago · link · parent

Mozilla probably doesn't have so much money to pay for installing their browser.

comment 8y ago · link · parent

Those Chinese phone manufacturers often use Google Services without a license. So what Google does doesn't change anything for them. Also, Google's agreements do not prevent vendors from installing malware as long it is not competing with Google apps.

comment 8y ago · link · parent

I would like to add that there was a similar case in Russia where Yandex, a Russian company, accused Google that it made contracts with phone manufactures that banned them from preinstalling Google competitors' software. So the manufacturer had either to agree to those terms or was unable to get a license for Google Play Services and Google Play [1]

[1] https://techcrunch.com/2017/04/17/google-reaches-7-8-million...

comment 8y ago · link · parent

Can you print them too?

comment 8y ago · link · parent

Doesn't it make sense to restrict selling of bullets? This plastic gun is pretty useless without them.

comment 8y ago · link · parent

Chrome has always been a memory hog. For example, the Intel chipset in my machine doesn't support installing more than 4Gb of memory (and I feel that it is artificial limitation to force consumers buy new Intel chipsets) and on top of that, some proprietary 32-bit operating system cannot use more than 3Gb because of so called "PCI hole" - a part of address space that is allocated for PCI devices and cannot be used for accessing memory.

I think that browser developers are making a wrong choice. They increase memory consumption for caches and similar type of data so that complicated and bloated websites work faster; I don't want that. I don't visit such sites anyway and have JS disabled so I would prefer that browser just consumes less memory. Let bloated websites be slow; they deserve it.

comment 8y ago · link · parent

Is it that important? As a user I don't really care much how the select element looks. Standard one is totally fine for me. It allows to customize its size and colors and that is more than enough.

comment 8y ago · link · parent

But is not breaking into a debugger and seeing the call stack often faster? Brain won't help you much if you have thousands of files and more than 100 000 LOC and with the debugger you just walk up the stack until you see where that NULL came from. And after fixing the bug, of course you can use your brain and search for similar code patterns to make sure that there is no same mistake anywhere else.

comment 8y ago · link · parent

I think that is because there are no good free open source debuggers? In Visual Studio you just set a breakpoint and examine the variables; it works great. On Linux you are left alone against a command-line monster with outdated weird command syntax.

gdb has an awful interface; it requires you to read a long manual and learn outdated command syntax before even using it; it is often faster to add logging and rerun the program. It is not a debugger for humans.

For comparison, JS debugger in Chrome devtools works pretty good and is easy to use. It is really helpful and allows you to identify a problem very quickly (faster than reading an introduction page for gdb). But it has problems sometimes, when you try to set a breakpoint and it is set in another place or is not set at all without any error messages.

I saw some comments here against visual debugging; maybe their authors had experience with some buggy or poorly written debugger?

I also tried to use Firefox developer tools in several versions up to FF45 and almost every time something didn't work. And when they work, they choke on scrolling large minified files or heavy sites with lots of ads.

comment 8y ago · link · parent

PHP might be not the best designed or nice looking language out there, but you cannot even compare it to JS. It has real classes, doesn't require you to put underscore before private methods and type checking. And it issues a warning if you divide by zero or try to access array index that doesn't exist

comment 8y ago · link · parent

Article with detailed description, machine translated from Russian: https://translate.google.com/translate?sl=ru&tl=en&js=y&prev...

It says the OS had user's home directory encrypted, but not the whole filesystem.

For those who prefer video, here is what you can do if you forgot your or someone's password: https://www.youtube.com/watch?v=cGu5AFCQ1Uw

Also, I think this bug also deserves a name, but nothing comes to mind. "hddunlock" maybe?

4484.

Ubuntu lockscreen bypass by removing hdd, devs say fix unlikely(bugs.launchpad.net ↗)

9 points · by codedokode · 8y ago · 3 comments

comment 8y ago · link · parent

It looks like a solution to a very rare case - using eval on user input (who does that?). It doesn't protect you from more popular SQL injections, XSS, XSRF vulns etc.

The better use would be obfucation of code to lock client to your services.

comment 8y ago · link · parent

Digital Ocean also refuses virtual Visa card. Maybe there is higher amount of fraud with such cards or maybe they want a credit card so they can charge you even if you don't have money. Of course, I would never agree to this.

comment 8y ago · link · parent

Managing subscriptions is what banks should do and not some third-party company.

comment 8y ago · link · parent

Recurring payments are implemented in the worst way possible. You cannot see a list of your subscriptions online, cannot see how much you have spent, cannot stop or cancel them. And even if you don't use some service anymore, they still can charge you. That is because systems like Visa earn money only when you spend and have no motivation to make cancelling easier.

comment 8y ago · link · parent

Android is fine as long as you:

- don't login into Google Account

- don't enable GPS, because every time you enable it, you get a popup suggesting you share your location with Google. If you choose "don't ask me again", the button "decline" gets disabled so that you cannot choose a wrong option by mistake [1] (I wonder, why Google wants to know where I am going to so badly? Did NSA made an offer they couldn't refuse?)

- don't have spyware from a manufacturer (noname Chinese phones often have it)

[1] https://android.stackexchange.com/questions/115944/in-lollip...

comment 8y ago · link · parent

It is interesting how they hide important details in long terms and conditions document. Cannot other industries learn from this Silicon Valley invention? For example, a car dealer could hide a condition that they are only temporarily lending a car instead of selling. There are people who don't read the documents they sign carefully.

comment 8y ago · link · parent

This is a perfect case where even if you pay you still are the product. Of course this needs regulation.

comment 8y ago · link · parent

It is an awesome idea, but what if there is more than two parties?

comment 8y ago · link · parent

What if there are chips and wires inside PCB?

comment 8y ago · link · parent

It makes sense to keep full version of a movie along with trailers, promo pictures etc. So when you need to check something you can just watch it.

comment 8y ago · link · parent

I don't think so. There are cases when SPA provides better user experience (apps that work offline, complicated editors, endless feeds with images, like buttons and comments) but if you need to display text with images, using SPA (and writing two applications) is an overengineering, making a complex solution instead of simpler one. Server-generated HTML is not an outdated technology.

> I don't understand your complaint about the "preloader".

It makes page load seem slower. Browsers can display HTML progressively even if it is not completely loaded, but preloader makes the user wait until all the resources are fetched. This is effectively discarding all the improvements browsers implemented for faster page rendering.

Also it is annoying to see a blank page when you navigate back and forward.

comment 8y ago · link · parent

No, sadly modern browsers are not smarter. If you make a page with thousand of images then they will load all of them. There are JS libraries to fix it, but they make images inaccessible for bots.

comment 8y ago · link · parent

SPA is for apps, and websites are often better done with plain HTML. You don't need a megabyte of Javascript to display text with images.

I guess that people might prefer SPA because they are not very good at server programming or maybe they think it can make their resume look better (though I don't think choosing a complicated solution instead of simple one makes a good impression of an engineer).

Of course there are cases when you can't do without SPA: apps that work offline, interactive apps, online editors etc. But it doesn't make much sense to use SPA for a blog.

> at some point you decide how much effort you're going to put into supporting users who don't have javascript (usually out of choice), and for most people the answer is zero.

...until SEO people say that the site is poorly indexed so you need to generate a HTML version of the site. And you understand that it would be easier just to make a plain HTML site from the start.

comment 8y ago · link · parent

It doesn't even work without Javascript. And it uses a preloader. Preloaders are harmful: they block progressive page rendering by a browser; even though they might look fancy, I strongly advise against using them. And what's worse, it shows a preloader on every click.

So I would rather consider it a poorly implemented website. Since when do we need Javascript to display a grid of images? This site can be easily implemented in plain HTML; why did they chose to use JS here?

comment 8y ago · link · parent

At least they can put a label like "This site has an agreement with XYZ Music" or "This site received 1000 takedown notices in last year".
1
149150151
185