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

Aruba has 1-dollar tiny VPS which could be enough for a VPN server, don't know about their performance though. Vps.ag offers 3 euro instances. Both of them use pre-paid payments and accept virtual cards.

I recommend checking what VPS technology is used. If it is OpenVZ or similar then you won't be able to edit iptables config, load kernel modules, setup ipsec. Because OpenVZ is more like a userspace container rather than a virtual machine. KVM, XEN, VMWare work fine.

comment 8y ago · link · parent

I don't like that it is running in the kernel. Running in userspace makes everything more secure and I'm fine with little less bandwith.

comment 8y ago · link · parent

Is not it better just to disable Javascript instead of cutting your CPU performance?

comment 8y ago · link · parent

I once wanted to write an Ansible playbook to install VPN on a server but found out that you cannot just pass parameters via command line like

ansible setup-vpn 1.2.3.4

Ansible expects you to write host address into a file in /etc. So inconvenient. Also, Ansible doesn't support Windows and Cygwin.

It turned out it was easier to write instructions into a Bash program. Sadly, it is non-portable and works only with a specific distribution.

It is also surprising how many files are there in the repository for a relatively simple task. And how complicated installation process is. In PHP everything would be easier, because you can pack your application into a single phar archive like in Java.

They don't support builtin Android client. I remember I installed Strongswan or something like this and it worked with Android out of the box.

I wouldn't recommend Digital Ocean. They don't accept virtual debit card (they want a real card so they can charge you whenever they want) and their VPS are too expensive. $5 per month is too expensive when you can find offers as low as 1 euro/month in Europe with pre-paid system.

comment 8y ago · link · parent

So you are saying it is Ukraine's fault that NATO was expanding and it deserved a punishment? I cannot follow your logic.

Regarding referendum, it's results (95-96% vote for independence) are obviously falsified. There is nothing new: in 1938 Hitler also got 98-99% votes in occupied Austria [1]. Those 95% in Crimea as real as Hitler's.

[1] https://en.wikipedia.org/wiki/Austrian_Anschluss_referendum,...

comment 8y ago · link · parent

Usually they compare found samples with samples used in other attacks. So they can assume that they were made by the same group.

comment 8y ago · link · parent

So you are saying US paid to everyone of tens of thousand people protesting against cancelling agreements with EU? So you think that protests only happen when US pays for them?

And whatever US did doesn't justify using political instability to annex a part of Ukraine. Russia did it because it could and there was an opportunity.

comment 8y ago · link · parent

> US, Israel, Saudi Arabia and UAE have thrown literal billions at arming and training jihadist militias to take towns and terrorize the Syrian population.

The article [1] estimates the number of members of anti-governments on order of tens or hundreds thousands people. You cannot just hire 100 000 people out of nowhere and send then to Syria. Most of them are local people.

[1] https://en.wikipedia.org/wiki/Syrian_Civil_War

comment 8y ago · link · parent

If Unkranians believe that US were meddling with their elections then they can investigate that. If you are not an Ukranian citizen then probably it doesn't affect you anyway.

comment 8y ago · link · parent

Of course Russia is still a threat and NATO (while serving primarily American interests) helps to protect Eastern Europe countries from Russia. We should not forget that in 1939 USSR invaded into Finland, Baltic countries, Poland if I remember correctly. In 1968 they invaded Chekoslovakia. With NATO those countries probably feel safer.

Ukraine didn't have NATO bases - and lost its territory. This is a reminder for other countries.

comment 8y ago · link · parent

USSR already did this in 1939: annexed a part of Finland [1] to move the border further from the city.

[1] https://en.wikipedia.org/wiki/Winter_War

comment 8y ago · link · parent

> What Russia is trying to do is ensure it has a strategic buffer zone between it and the West

It is just an excuse. If the country wants to invade another country, they will always find a good excuse. This is not only about Russia - take any recent war US took part in or any other war. Nobody wants to look evil.

Regarding NATO expansion, of course it serves the interests of USA but it can be also good for other countries. For example, the presence of NATO troops in Baltic countries helps them to stay independent and avoid repeating the situation that has happened in 1939 [1].

[1] https://en.wikipedia.org/wiki/Occupation_of_the_Baltic_state...

comment 8y ago · link · parent

Also I wanted to add that in some other ex-USSR countries the situation is similar to Ukranian: there are parts of Russian population who associate themselves with Russia and didn't integrate well into the society. For example, in Baltic states (like Latvia) there is a part of Russian popluation many of whom moved in during Soviet times. They don't speak the national language, they feel disappointment because of dissolution of USSR. To make things worse, Latvia doesn't count them as citizens and they don't have some rights, for example, a right to vote [1]. So who knows, maybe Russia will try to escalate this conflict next.

[1] https://en.wikipedia.org/wiki/Non-citizens_(Latvia)

comment 8y ago · link · parent

As I know Euromaidan (protests in Ukraine's capital in 2013) has started because pro-Russian Ukranian president decided to cancel plans about integrating with EU, not because of some US involvement.

As Ukraine was a part of USSR, there are people sympathising with the West and people sympathising with Russia. And when one part comes to power, other feels disappointed.

Russia uses this distrust in its propaganda to divide the society, spreading ideas like the Ukranian government is going to ban Russian language at public schools and sadly the government doesn't take steps to reassure Russian people in Ukraine. Russian is not an official language in Ukraine or in any of its regions (except the annexed ones).

Your point about annexation of Crimea is similar to what Russian propaganda says: if we didn't take a part of Ukraine then there would be new NATO bases (another excuse: "Crimea has always been our land and people living there are mostly Russian"). But it is nothing more than an excuse - you can justify anything this way. USSR earlier did similar things - in 1939 they annexed a part of Finland [1] using an excuse that the Leningrad city was too close too the border so they needed to push the border further.

It is like US foreign policy - they always have a good excuse to bomb some country and pretend to be the good guy saving people from a dictator.

[1] https://en.wikipedia.org/wiki/Winter_War

comment 8y ago · link · parent

Regarding Syria, as I understand, their leader (Assad) has good relations with Russia and there is a Russian military base. It is obvious that if US-supported opposition would win then there would be pro-US government and American bases instead of Russian and Putin doesn't want that. I don't see how US's motives are anything different than Russians'.

While Assad is a dictator, he has support from a part of a population (and is hated by the other part). If you side with one part and drop bombs on another, the conflict won't go away. If you just look at the Wikipedia page [1] you'll see how many military groups and countries are taking part.

[1] https://en.wikipedia.org/wiki/Syrian_Civil_War

comment 8y ago · link · parent

OP mentioned that they just buy the data from someone else and therefore OP is not a database rights holder.

comment 8y ago · link · parent

Copyright protects only creative works, not any information as I understand.

comment 8y ago · link · parent

We decided to spend a minute of your time for registration to improve your experience (and another minute that it will take to unsubscribe from spam later).

But I think it's only fair. Those developers who dislike this probably do the same to their users.

comment 8y ago · link · parent

While that is possible it would make no sense. Why spend time refactoring code to improve a legacy UI for old browsers almost nobody is using? Legacy UI doesn't know anything about categorization because it was added later.

Actually Gmail's approach is sane. They just keep old UI working as it used to many years ago although the backend could have changed completely.

comment 8y ago · link · parent

https://mail.google.com/mail/h/

comment 8y ago · link · parent

Maybe it is better to disable CFG then. Because now it makes a memory leak.

comment 8y ago · link · parent

Does Linux has ETW or something of similar level?

comment 8y ago · link · parent

I usually append /h/ to the URL (/mail/h/) and get a HTML version. It can work even without JS and it has classic design with small rows that works well on my small screen. No Material Design and no huge elements with large offsets.

comment 8y ago · link · parent

So basically it is the problem with CFG (exploit protection) which is not ready for the cases when there are many allocations and freeing of excutable memory blocks.

comment 8y ago · link · parent

Another issue with remote desktop (using VNC) on Linux is keyboard layouts (for inputting non-latin characters). With X server, the server passes a physical key number (keycode) and modifiers state (whether keys like Shift or Caps Lock are active) to the client and the client converts it to the corresponging character (keysym) using translation tables loaded earlier from the X server.

When you are accessing another computer remotely using protocols like VNC the local computer's keyboard layout can be different and it can produce characters not present in remote computer's translation tables. The VNC protocol itself transmits keysyms, not keycodes. So there can be a situation when there is no matching physical key number (keycode) for given character. So VNC servers like x11vnc had to modify translation tables on the fly and insert non-existing key into the tables and pass that key's number to X clients.

I wonder if this problem is solved with Wayland. As I understand, Wayland uses similar scheme and the compositor sends only a physical key number (keycode) along with the modifiers to the client and the latter does the translation. By the way, would not it be easier if the compositor did the translation itself?

The hack I described can also cause issues with hot keys. If I run application locally and it has a hotkey like Ctrl + S, and my keyboard has two layouts (English and Russian) then it will probably work with both of them because the application can bind the hotkey to physical key number. But when we send key presses remotely over VNC we send only a keysym (a letter code), not a keycode. If the remote server doesn't have Russian layout it is unable to guess what physical key was pressed and cannot recognize that I pressed Ctrl + S in Russian layout.

comment 8y ago · link · parent

Please note that it is not written from scratch and is using a wlroots library that does most of the job. Most of the code are just the handlers for events emitted by the library. You cannot write a Wayland compositor and implement all required interfaces with just 500 lines.

comment 8y ago · link · parent

I don't know if this brigde collapse could be prevented but they could at least not build bridges above buildings. There probably was a better place for the bridge.

comment 8y ago · link · parent

> The host sites put forward a defence saying they did not know these videos were filmed illegally.

They should just adapt a law that would require such sites to verify documents proving that the video was taken legally. This is just a loophole in Korean law.

comment 8y ago · link · parent

Let's say that you work for the government and accidentally read top secret documents with your Google Glass on and accidentally upload the recording to Youtube. Would it be a good excuse? And of course other people's privacy is much more important than those documents that are boring and uninteresting to 99% of people.

So of course the use of cameras should be regulated.

1
147148149
185