HNHacker News
TopNewBestAskShowJobs

kovrik

603 karma · joined April 2, 2012

https://github.com/kovrik/
submissionscomments
kovrik··on Eating more fruit and vegetables 'improves mental wellbeing'
From the top of my head: beans. Canned fish (mackerel, sardines). Oats. Nuts/nut butters (ok, these are not that cheap).
kovrik··on Out-Of-Office Messages Are a Security Risk
If I am not sure whether an email is legitimate or not, then I just ignore it assuming that if it is something real and important, then the other party will find a way to contact me (send another email, call me, approach me in person etc.).
kovrik··on Out-Of-Office Messages Are a Security Risk
So the real issue here is not emails or autoresponders, but lack of IT security knowledge among employees. Hence, do (mandatory) trainings or something.
kovrik··on Out-Of-Office Messages Are a Security Risk
I agree with you that under these circumstances autoresponses could be a security risk. But then I'd better fix the underlying security problem(s) and let everyone use autoresponders if they wish to.
kovrik··on Out-Of-Office Messages Are a Security Risk
Sorry, still not clear to me.

- Whom the would-be attackers send this email to?

- Do they send this email from their own email address?

- Is there an assumption that sysadmin/support team will blindly reset a password on someone else's request?

- How do attackers bypass corporate VPN?

kovrik··on Out-Of-Office Messages Are a Security Risk
So the attacker gets autoresponse. What's next? What is the attack vector here?

UPD: also, I guess any attacker could just assume that you're Out of Office at night time.

kovrik··on Lombok makes Java cool again
Yeah, Kotlin pretty much killed Lombok.
kovrik··on Racket v7.2
I just wanted to say that Racket docs are the best docs I have ever seen. It feels they document everything -- so much detail. Treasure trove of knowledge. Thanks guys!
kovrik··on JIRA is an antipattern
In my experience, the problem is always in people, not tools.

Nowadays, Agile/Scrum is a buzz word, every company is trying to get it, but rare people understand it. They buy tools (like JIRA), they do standups, they assign story points...and then things become messy and it all turns into into a glorified waterfally kanban with story points.

JIRA is just a tool (bloated, maybe), nothing wrong with it. Personally, I find it to be OK -- no major complaints about it.

kovrik··on Firefox desktop market share now below 9%
I really want to use Safari, but for me the deal breaker is the fact that Safari doesn't seem to block pop-ups properly.

Yes, they've changed it in the latest version. I have Block and Notify option selected in Privacy tab. But many popups still go through -- sometimes they open in a new tab, sometimes in a new window.

Is there a way to fix that?

Also, is there a Tree Style Tab alternative for Safari?

kovrik··on Indirection Is Not Abstraction
Can't see where this 'magic' comes from. IoC frameworks are not rocket science. Everything is very-well documented and pretty straightforward.

> dependency injection frameworks are an unnecessary and overcomplicated way of achieving it.

But why? I don't want to write my own DI framework for each new project.

I'd better add one dependency, put some @Autowired (and other well-documented) annotations and continue writing business logic.

Aforementioned 'magic' is basically creating a context, scanning all annotations, registering beans, instantiating them (calling constructors), then injecting them.

kovrik··on Bayes’ Theorem in the 21st Century (2013) [pdf]
https://en.wikipedia.org/wiki/Quantum_Bayesianism
kovrik··on A Comparison of Functional Data Structures on the JVM
I always thought it came from the well-known 'Purely Functional Data Structures' by Chris Okasaki.
kovrik··on In Search of Darkness
For me the darkest place I have ever been to was Abbey Caves in New Zealand. But I think almost any cave would work. Obviously, you can see no sky from there though.

But still... The darkness there was surreal. It was thick and you could almost feel it with your skin. And all your senses go crazy.

One of the best and bizarre experiences I have ever had. Would definitely recommend (however, be careful with caves!).

kovrik··on SETI spots dozens of new mysterious signals emanating from distant galaxy
But what's the point?

First, they have mass, hence travel slower than the speed of light, which means they are less effective.

Second, it is very hard to detect neutrinos, which means they are very bad communication medium.

kovrik··on Ask HN: What's a starting point for learning how to write programming languages?
What worked for me: read Norvig's tutorials (How to write lisp). It gives basic understanding.

Then continue enhancing that tiny language, add more features.

Start with an interpreter, they are easier to grasp. You can always add a compiler later.

I grabbed Scheme R5RS standard and started implementing it in Kotlin: https://github.com/kovrik/scheme-in-kotlin

Then added more Clojure-like and Racket-like features, plus some Kotlin features.

kovrik··on Nelson woman delighted after Apple unlocks iPhone of late husband
'Encrypted, but _they_ have the keys' means 'not encrypted'
kovrik··on Nelson woman delighted after Apple unlocks iPhone of late husband
So iCloud Backup is not encrypted then?
kovrik··on Deleting Facebook
Honestly, I don't really understand why we are getting posts like this one. People don't post 'How I deleted my Github account', right?

So what's the big deal? Is it some kind of accomplishment and people expect praise?

UPD: I mean, if you are not using FB anymore (like me), then does it really matter if you delete it or not? If you actually do use it, then why delete it?

kovrik··on New Zealand Passes Law to Crack Down on Foreign Home Buyers
That is what concerns me: if they can't afford a house, then why don't they buy an apartment?

There are apartments in Auckland for $300-400k, which is even cheaper than affordable KiwiBuild houses ($500-650k).

kovrik··on New Zealand Passes Law to Crack Down on Foreign Home Buyers
The thing I don't get though is: why build houses? Why not apartment complex? That'll be much cheaper and much more effective.
kovrik··on New Zealand Passes Law to Crack Down on Foreign Home Buyers
Yes, when I first started living in NZ I was baffled by completely alien culture and the way of living. But then I began to understand it, like it, enjoy it (to some extent)!

And I respect people if they choose to live this way, not fight for survival, enjoy their lives. But I don't think it is fair if later they start complaining about lack of money, lack of career and expensive houses they can't afford and start asking the government (read 'other people') to pay for it.

kovrik··on New Zealand Passes Law to Crack Down on Foreign Home Buyers
Yes, you are right and I don't disagree with you. I understand this. And I really love New Zealand, no regrets moving here at all!

That is just my view on such policies. As you might have guessed, I'm not a labourist.

kovrik··on New Zealand Passes Law to Crack Down on Foreign Home Buyers
My opinion may be controversial, but I never understood this logic... I live in New Zealand at the moment. I am not Kiwi though, my wife and I moved from Russia. And I disagree.

First, stats show that foreign buyers own ~3% of homes. Everything else is kiwi-owned.

Second, there is another thing going on here -- KiwiBuild. Basically, government funds and builds 'affordable houses'. Prices (in NZD) are $500-650k, but now they want to have even more affordable houses - $300k. For comparison, actual average house price in Auckland is above $1kk.

My wife and I work really hard, NZ is not our country, English is not our language, the culture is different, we have nothing to inherit here. Why should we pay (with our taxes) for poor kiwis who can't afford a house? Shouldn't they work harder instead? Get education, get better job.

We wish we could buy a $1kk+ house in Auckland too, but we can't. If you can't afford a house, then buy an apartment because they are much cheaper. Yes, it is not that fancy, but at least you'll have a place to live in.

I mean, yeah, Labour party is in power in NZ at the moment, hence such policies like 'Let's increase salaries to poor workers, let's give them houses, let's increase maternity leave etc.'. The problem is that somebody has to pay for that.

UPD: another problem in my opinion is that Kiwi culture is very different. NZ is isolated from the rest of the world. It is very quiet here, people are very relaxed, everything goes slow. People are not used to work hard (in my opinion). It is common here to spend a year or two doing nothing, just traveling around the world after graduation. Many people don't want to build a career, they want to 'try many different jobs, find themselves, enjoy life'. Many people live with their parents, start thinking about career at the age of 30-35. At work, if it is 4pm (sometimes 5pm) -- people just leave and go home. "We have an urgent task" here means that it must be done within a week. In schools they teach children that everyone is a winner -- even if you have poor marks. Also, if there are any competitive games/sports, then sometimes they make it that the winner is not the one who actually won, but the one whose turn today is. And so on. Hence many people here, when they grow up, are not used to fight for survival. Just enjoy their quiet life in a beautiful country. But then they are 35, have no money, no career, but want a fancy house...

Sorry if I'm being too harsh, don't mean to offend. But this is my take on Kiwi culture, the way I see it as a non-native.

kovrik··on How a billion dollar autonomous vehicle startup lost its way
Yes. Looks like it is becoming a common thing with all that startup hype.
kovrik··on Emacs Lisp JIT Compiler
As far as I know, things like: changing gc-cons-threshold, setting file-name-handler-alist to nil, adjusting some jit-lock-* values. And using deferred package loading.
kovrik··on Odeillo solar furnace
Dumb question: is there any difference (in terms of costs and effect) between solar panels and solar furnaces?

I mean, say you have N square meters of solar panels. If I understand it correctly, then it doesn't matter whether you make them flat or turn them into parabolic solar furnace, does it?

Yes, with furnace you can concentrate that energy on smaller area (hence more heat), but does it matter for house owners?

kovrik··on Can you recreate Objective-C in C?
But that is my point: if host language doesn't have feature X, you still can implement that feature yourself, can't you?

If host language is untyped, then write your own type system.

Another example: Java has no co-routines, has no continuations, but Kotlin (written in Java) does. They compile Kotlin code with co-routines into finite state machines in Java.

kovrik··on Can you recreate Objective-C in C?
Ok, maybe I'm missing something, I'm not C nor Objective-C dev but...

Language is just a specification, right? Which is just a document.

Then you have to implement that language using that spec: interpreter, compiler, VM, runtime, whatever.

So I was always under impression that you could implement any language in any other language (almost; sometimes with the help of another, more low-level lang, say assembly, C etc.).

It is like saying "Java has no Tail-Call optimization (yet), hence you can't implement Scheme (which requires TCO) in Java". Surely you can! Just use trampolines or even use your own stack and calling convention.

What am I missing?

kovrik··on Problem Solving and Clojure 1.9 with Rich Hickey
Sorry, should have mentioned that I'm not in US
← PreviousPage 2 of 8Next →