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

By the way, to use IMAP/SMTP you will need to switch "enable unsecure apps" in Google Account preferences. Google considers all auth methods except OAuth2 to be insecure (and OAuth2 doesn't work in my slightly outdated version of Thunderbird). But I think the opposite: with OAuth2 the token is stored on your device, with password auth the password is not stored anywhere.

comment 8y ago · link · parent

Also, HTML version works even with JS disabled.

comment 8y ago · link · parent

The driver can ask to show your screen when giving the rating.

comment 8y ago · link · parent

I remember earlier Google switched Doubleclick for Publishers to UI made with Dart and material design. It is awful and looks like a product of some low quality outsourcing company. It is slow to load (needs to load about 10 Mb to start), it works very slowly, all animations are laggy.

I checked with Developer Tools, didnt't see anything resembling Dart in Gmail (and it is not as slow as DFP). But there is 2.8 Mb JS file and 1.3 Mb CSS file (loaded 3 times, don't know why). I am not sure if this is really necessary to display a list of 20 newest emails. Also, a hangouts widget loads additional 600 kb of JS and 600 Kb of CSS.

comment 8y ago · link · parent

This is not what an average user of Facebook can do. What an average user can do is demand adopting laws like GDPR to regulate PII.

comment 8y ago · link · parent

Gay legend might be necessary to divert attention from Skripal poisoning or to explain why their passport numbers are close to each other.

comment 8y ago · link · parent

While there are flags for closing file descriptors on exec(), they are not set by default. This means that delvelopers of every application that uses fork() must set these flags otherwise descriptor leak is present.

comment 8y ago · link · parent

While Google cannot put you in jail, Google can give your data to government (that can put you in jail). There is no big difference between large private company having the data or the government.

Of course Western surveillance on the Internet cannot be even remotely compared to what happens in China.

comment 8y ago · link · parent

US is not perfect too (but nowhere near China). For example, it is incredibly difficult to become an independent president candidate: you need to get ballot access in all states, and every state has its own rules.

comment 8y ago · link · parent

Self portraits are even older than photography. For example, I saw a self portrait in a gallery painted 200 years ago and realized that it can be called a selfie too.

comment 8y ago · link · parent

I don't like that different Google services are linked together. It would be fine if Youtube would remember what videos I prefer, but I don't want Google to save my search phrases to the same account, don't want Google to know what sites I visit (using Google Adsense and Google Analytics that are present on most sites). That would be too much information and I don't want to share it with Google.

So when I need Gmail or Google Maps, I have to open it in a private window. Not very convenient, so I don't use them often.

By the way, if you use Chrome and haven't changed the default search engine from Google, then your browser pings Google every time you open a new tab. You can check it yourself with Developer Tools: a new tab page is loaded from Internet and it sends cookies. It can be fixed by creating and choosing as default a new search engine with Google's URL, but using other name (for example, Gogol instead of Google). Then Chrome will load its start page from disk, not from Internet.

comment 8y ago · link · parent

Censorship can also be unofficial, when there is no law for it, but someone from the government unofficially advises that the company should "filter" some information and they comply.

comment 8y ago · link · parent

It probably depends on IP address reputation. For me in Russia, Google always requires a phone number, but I saw reports by others that phone isn't required for them.

comment 8y ago · link · parent

These kiosks can collect WiFi and Bluetooth MAC addresses of devices people carry. If those are Android devices, then Google probably knows their MACs and can identify users passing by.

comment 8y ago · link · parent

More awesome image examples: https://www.microsofttranslator.com/bv.aspx?from=&to=en&a=ht...

4366.

Creating old school illustrations for physics book programmatically(github.com ↗)

4 points · by codedokode · 8y ago · 1 comment

comment 8y ago · link · parent

Rebooting phone doesn't look like a tragedy.

comment 8y ago · link · parent

Outlook Mail does the same. Registered a free email account, logged in from other IP (from the same network) and got a requirement to enter a phone number.

comment 8y ago · link · parent

Exactly. Winning candidates (like Putin) often don't take part in debates, don't make campaigns, don't meet with voters. But they are promoted by government-controlled TV and internet media. Competing candidates don't do anything at all and don't get promoted by TV. And finally, some candidates are not allowed to take part. It looks more like a scripted play where everyone knows who is going to win.

comment 8y ago · link · parent

For those who might not understand the context where this is happening:

- Russian authorities plan to raise retirement age to 65 years, while the average life expectancy for men is 66.4 years. It means many people will pay pension tax for all their life and get almost nothing back. Navalny is planning large protest rallies against this and against Putin as well. They are unlikely to become big (judging by previous ones) - maybe some 20-40 000 people max but the government in Russia doesn't want to admit that there are people who are against it.

- Therefore, in most cities including Moscow rallies are not approved by local governments and will be considered illegal. It means participants will be arrested by the police and fined or get 10 to 30 days in prison (organisers can get up to additional 25 days).

- Also, on Sept. 9 there will be local elections in some regions and cities, but opposition candidates were not registered for them (this is one of the ways how Putin and his party wins elections - by allowing only weak candidates to take part in them). So September 9 is a perfect date for protests against this too.

- Opposition buys ads on Youtube to promote the rallies because most media are controlled by the government and only report how life will be better for seniors with new law and how everyone will win from it, and that most countries in Europe had raised retirement age too. So many people don't know about protests.

- Russian authorities sent a letter to Google demanding them to stop displaying ads because it is considered a political ads which is not allowed the day before elections (you cannot promote candidates the day before elections). But Youtube removed ads even in the regions where there are no elections.

comment 8y ago · link · parent

In non-GDPR countries you are the product no matter if you pay or not. For example, Mastercard sells your data to Google although you pay for it.

comment 8y ago · link · parent

I think it would be much easier just to use Qt or GTK. Otherwise you'll have to write your own widget toolkit, make it cross-platform, solve hundreds of issues (like hotkeys not working in alternative keyboard layouts), this is going to be a titanic work.

comment 8y ago · link · parent

It is an USB device. Cannot it attack a PC by pretending to be a keyboard and typing some commands?

comment 8y ago · link · parent

And on Android 5, every time you enable GPS, a popup appears asking you to let Google track your location [1]. If you tick the "Don't ask anymore" checkbox, the "Decline" button becomes disabled so that you don't make the wrong choice.

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

comment 8y ago · link · parent

Can it be that they just allow modem to use the same RAM and ROM that CPU uses, so that they don't have to install another RAM chip?

comment 8y ago · link · parent

I don't know what information Apple collects, but Google is definitely the opposite of ethical. If you have Google Play Services, then they continuosly ask you to enable track your location, track what cell towers and WiFi networks are around and so on.

comment 8y ago · link · parent

This is clearly overengineering. There is no need to write a generalized function because it is only useful for adding polynomials.

And a function that works only with polynomials will be easier to read.

comment 8y ago · link · parent

No, I like CMake because it is better than writing Makefiles manually or using autotools.

comment 8y ago · link · parent

I think they did it in order not to duplicate make's functionality. Make is useful for partial rebuilds (when you change a single file only it is recompiled). You either use make or have to implement this yourself.

comment 8y ago · link · parent

I used CMake and I liked that it can produce NMake files, which can be used for building with Windows SDK (not bloated Visual Studio, SDK contains just headers and compiler) on Windows XP.

And generally it is much easier to use than manually write Makefiles or use Autotools with weird unintuitive syntax. As I remember, they use `dnl` keyword (download?) for comments!

1
145146147
185