Better HN
topnewbestaskshowjobs
Log inSign up

techcode

173 karma · joined Dec 10, 2013 (12y ago) · 218 submissions

Senior Developer/Team Lead at one of the largest e-commerce websites in the world
Submissions

comment 3y ago · link · parent

Having started with Linux using Gentoo - after some attempted excursions into Debian/Ubuntu, then at work CentOS and even few months of having to use Slackware on servers until I finally convinced my boss that his T50-something Thinkpad will do same or better on Gentoo ... (and he won't need to manually chase up dependencies).

And even thought already for years compiling most of the things doesn't take that long. Just for not having to compile bunch of packages where I'm using standard/default config - I've tried Sabayon (back when it was still almost kind of Gentoo), went back to Gentoo ...

And then for almost a decade now - I've been extremely happy with https://www.calculate-linux.org/

comment 3y ago · link · parent

That sounds like any (semi)good car in the last 10-20 years.

Like 5-6 years old Skoda Octavia (which are generally lasting so long YouTube nickname for them is "Good 'ol miles"). Until one evening you park it just fine in front of your house. And next morning power steering is no longer working.

Official VAG dealer/repair shop folks were like "Well you know it's electric stuff like light-bulb - one day it works, and next day you want to turn it on and it goes poof". Except this light bulb is angle sensor, power/hydraulics and T beam "sealed" all-in-one, and costs 1-2K Eur (which was ~10% of whole cars worth).

comment 3y ago · link · parent

Unlike cost saving/outsourcing combinations like Renault cars or Grundig TVs being made in Turkey. Or other PR releases mentioning keywords like "synergy" (say Microchip/Atmel comes to mind).

Well I don't know about Liebherr excavators and such machinery. But Liebherr refrigerators and freezers are amongst the best there are.

comment 3y ago · link · parent

After having various Bosch machines - 4 years ago we got Miele clothes washer and separate drier - with wifi et al.

For all the good engineering put into them... I was at a loss at official way to stack two of them. Which is to buy official "add-on" that goes in between the washer (suggested to be at the bottom) and drier (suggested to be above). Attaching that add-on means drilling/screwing into top plate of the machine that's below, with kit including small (superglue size) silicone to seal those new holes.

comment 3y ago · link · parent

If we follow that project car metaphor - https://www.calculate-linux.org/ is project car where you can get all parts pre-machined (already compiled) and you can still customize bits and pieces, or even whole thing.

That said - it's default config/profile and use flags are such that it's rare some package needs to be compiled.

comment 4y ago · link · parent

Indeed it terms of view/emotions from "real programmers" towards AMOS - it was like Visual Basic <= v6.

And in practice I recall it was also slow for doing things like bigger scrolling things - like isometric RTS map, SimCity ...etc

comment 4y ago · link · parent

I just got blocked for 24 hours as well. After opening https://pcr.euprava.gov.rs/validate.php?cqcode=1641591150Q!A... just fine -tried to see what happens when you change the digits to cqcode=1641591151... :)

While I guess in these cases governments don't really worry about enumeration aka https://en.wikipedia.org/wiki/German_tank_problem - it's still often a security risk that means you usually try to avoid it.

Even when internally you have auto-incremental ID - you can provide a non-sequential public ID (e.g. at least use SkipJack/Skip32 of that incremental value).

comment 4y ago · link · parent

The point of co-working space combo with "WFH/Remote" is that you potentially get benefits of both WFH/Remote and Office.

Being in co-working space/office gives you some social interaction, less chance teenage neighbor is blasting latest trance tunes on really loud speakers on one side and another neighbor is tearing down/renovating his apartment with loads of jack-hammer action, perhaps you just don't have enough desk space at home, maybe it's easier to switch between work and personal life by having some (short) commute ...etc. Some of those might be all the time - and some might be every now and then.

Meanwhile not being in same "central" office with colleagues give you more independence/autonomy. Beyond having less interruptions (e.g: it's easier to avoid/ignore a chat/email than a physical shoulder poke), some people prefer (or actually perform better) when interactions are less "real time" and more async, or perhaps they just concentrate better at 4am or 10pm ...etc.

And in general idea is that co-working offices don't need to be as big/crowded nor as far as big company offices.

Though I'm not sure how much last part applies to places like Hong Kong (many people, relatively short distances)

159.

Calculate Linux 22(forum.calculate-linux.org ↗)

2 points · by techcode · 4y ago · discuss

comment 4y ago · link · parent

This is on a tangent - TL;DR: I'm pretty convinced that the future of Gentoo is https://www.calculate-linux.org/

After one too many times Python breaking changes got me to a point of Gentoo system that can't be updated (and it usually happens midway through bigger system/world update, so potentially many applications/tool also don't work) - I've switched to https://www.calculate-linux.org/

It's still real Gentoo system, and unlike Sabayon Linux (many years ago) where you couldn't easily switch between emerge/portage and whatever Sabayon had - with Calculate it's all seamless. You can still do manual Stage3 tarball install, or just use Live image with GUI installer ...

Most (like 99.95% percent) of packages come as pre-built binary, those remaining 0.05% is just packages where I had niche reasons to deviate from config (use flags) that Calculate used to build those binaries.

And unlike `emerge -uND world` which can easily get stuck and even break (usually if you haven't updated system and toolchain in a while) - `cl-update` has been so good that several years passed and it didn't happen - well kind of.

Combo of some python based apps being old/weird/whatever, and python breaking shit between versions - I do have multiple Python versions installed:

* dev-lang/python Available versions: (2.7) 2.7.18_p13{tbz2} - installed (3.6) 3.6.15(3.6/3.6m)^t (3.7) 3.7.12_p1(3.7/3.7m)^t - installed (3.8) 3.8.12_p1^t{tbz2} - installed (3.9) 3.9.9^t{tbz2} - installed (3.10) 3.10.0_p1^t ~3.10.1^t (3.11) ~3.11.0_alpha2^t

Which actually came in handy one time where (through my mistake) on top of pure Gentoo's emerge/portage, Calculate Linux tools (written in Python) also broke. Luckily older versions of python (with all the libs/packages tied to that version as well) worked - so it wasn't hard to temporarily use older Python version to get things stable.

comment 4y ago · link · parent

Oh and it's illegal to lie in those ways (deceive potential customers) just about anywhere in the world.

And though there is legally gray area - majority of that tends to clearly be not ethical...

But you know - Elon "promised" self driving cars in just a month/quarter or so - how many years ago? IIRC he even said it would be good, no not good but best investment because such a car could earn you money on it's own ...

Yet neither we got those self-driving cars, nor Elon is in trouble due to those "forward looking statements" ¯\_(ツ)_/¯

comment 4y ago · link · parent

Traffic distribution is basically never uniform. Unless maybe if you've only got very very few products/pages (like just 1-5), though that definitely changes long before you reach 10_000 items.

And for the majority of mid to big websites - visitors/buyers will look only at minority of products/pages. Let's say it's like Pareto 80/20 percent principle. Though if not 90/10 - for tourism/travel/flights - because places like London, Paris [France, not dozens of them in USA https://en.wikipedia.org/wiki/Paris_(disambiguation)], Rome, Las Vegas, Ibiza ...etc are much, much more interesting/visited than say Anchorage/Alaska.

And unless you've got uniform spread of visitors/customers around the world - which I'm thinking that even Facebook/Google/Amazon don't really have (because Flipkart/WeChat/etc are used more in India/Chrina/etc). You're likely to see a daily (per hour), weekly (per work vs weekend days) pattern /where west is different than Israel and predominantly Muslim countries/ - the min/max difference even within one day/week is easily 2 to 5 times.

All of that is to say that by far majority of your revenue will likely be during workday afternoon in your target audiences time-zone, and from those 10_000 items it will probably be <=100 that are seen/bought by majority of your visitors.

comment 4y ago · link · parent

Indeed it's both not ethical not legal in most parts of the world.

My educated guess it that only reason it happens anywhere at all - is within "smaller" websites/companies which:

a) don't know better because they are mostly just tech people that didn't heave to deal with big company bureaucracy, they have no legal/ethics team - or (hopefully not big chunk) they do know it's not legal, but count on ...

b) they are small enough that no one bothers to deal with until amount of money company is making suddenly makes it go over whatever amount makes it worth the effort

comment 4y ago · link · parent

AFAIK none of my own work, nor work of the people I was team lead off was unethical, harmful or illegal. Neither in EU or elsewhere.

Before jumping to further conclusions - I would encourage you to look at actual differences in website before and post that announcement you're referring to. Wayback archive should work - though some of this stuff might have not be shown, or shown differently to bots; otherwise over years there have been a bunch of articles covering persuasive techniques with examples/screenshots of Booking.com.

And then perhaps even ask specific questions based on those observations - and maybe, just maybe someone can answer them without actually breaking the law.

Though since it would be against the law for me to give too many technical and business details (employment contract, regulations related to publicly traded companies ...etc). Only way I can think off for you to get a peak into implementation - would be to become a colleague.

And finally - I will agree with you on that last sentence. It's never too late to reflect on things. That includes not acting surprised (or in denial) to hear that some "big company" you thought is doing bad things - is not.

Oh and definitely keep up with the good fight. Based on news with actual specific details of lawsuits and outcomes (some of which I initially only found about when they were used as examples in internal ethics workshops & trainings). There's a lot of companies out there that should be getting more scrutiny both internally and externally.

comment 4y ago · link · parent

That's really good thinking - and both wishlist and "bought x times" are nice representation of the real world "social proof" where you're walking next to a store or bakery and see a long queue of people waiting to enter and making you notice they are selling something good/cheap/etc.

Generally going from those towards the "X other people are considering it", and even further towards "only X left" (on their own, and especially both in combination) puts you more towards different effect of "scarcity". And that's what seems to be more polarizing with people.

Besides majority of people not noticing/caring/etc ("bell curve"). Two opposite camps are where one is really not liking it (especially when they think it's not real and just fake scarcity) and vocal about it. Meanwhile on the other end are people finding it valuable info to know, and they tend to be much less vocal. (Which, yeah - is actually same with just about everything else)

Those that find it valuable seem to be people that want specific things. Not just specific apartment/hotel, but also think of cases like parents with school age kids being limited to specific dates due to school holidays or things of that nature.

comment 4y ago · link · parent

For smaller websites the "send ping every X seconds", and/or combo of that with "onLoad do +1, onUnload do -1" might work.

Though for really big websites - with millions of users making requests to 1000s of web/api servers spread across DCs in different continents ... It's indeed a variant of what you said.

Analytics can give you confidence to say that X percentile of people spend at least Z seconds/minutes on given page. So you can use initial request + TTL value of Z.

---

PS All of the above is at least order of magnitude (if not even bigger) more complex when your page is not simply one physical product, and instead you've got "product x between Start and End dates" since that's millions of products x millions of combinations.

comment 4y ago · link · parent

I hope you realize that picking out only bits and pieces that fit your predetermined view is basically just reinforcing your personal biases, and not bringing you to see the bigger picture.

Though as long as someone doing that is impacting only that person - I don't mind.

However, I would appreciate if you didn't follow taking those bits and pieces you've selected. And then taking them out of context that I've said/wrote them in - re-combining them in ways that would bias others reading just your "curated" version.

comment 4y ago · link · parent

If you go down that route of thinking - any online marketplace (e.g.: Amazon, mobile app stores, Steam ...) and even offline your local green market and groceries store are all screwing everyone over.

comment 4y ago · link · parent

Not sure what illegal consumer practice are you talking about.

Reading through the points from the page you posted - I think internally only actions related to that were basically to add more info (e.g. popup/hover or just "on our site") to clarify to people that same as every other marketplace on the Internet ... coughAmazoncough ...

Things we show are just things we know about and have in our "inventory".

And actually after some of those changes - I believe some customers started to complain that reminding them how "X other people are looking at {name of hotel} for your dates" felt much creepier than "X other people are looking at {name of hotel}" ¯\_(ツ)_/¯

---

PS. Only reason I wrote a quoted "inventory" is that unlike physical goods with real stock. When you're renting accommodation - on top of physical rooms, there's extra dimensions due to different dates, meals (because in many hotels restaurant can't support everyone having breakfast, half/full board/meals) ...etc.

comment 4y ago · link · parent

Thanks ♡ And imagine that our mission is to have everyone feel that same way.

Obviously as middle man you take some part of the pie - though idea is that it's worth for everyone.

BTW - it's not that common to meet customer with 100+ reservations. So excuse me for asking - what do you think of the changes in the account area (My Trips)?

comment 4y ago · link · parent

I was part of "Consumer Psychology Team" at Booking.com for years. That team was/is one way or another involved in pretty much every functionality you mentioned (among other things I did in particular latest version/implementation of "X other people looking at this") and TL;DR: All of it is real - and majority of people don't find it as annoying as you, many even find it helpful

---

While I can't really give too many details (BTW I still work at Booking - just moved teams).

I did the real time (it's a stream so technically that's "near real time") processing back-end which collects all the "views events", uses anonymous unique user identifiers to make sure it's truly not counting duplicates, bots are also excluded ...etc. And result is a reverse index of sorts.

On the FE side (technically still BE so think backend for frontend) as part of producing message (or not) we literally do a real-time query on that reversed index to be sure that even if looking only at count it's "1" - we want to be sure that it's not you.

As of things like "Only X left" - that's literally how many rooms we've got left to offer to you for the dates you've entered.

---

And speaking generally. Booking.com being 25+ years old global company, one can imagine that company is basically constantly under microscope of various regulators and consumer protection agencies. So even if there was someone that wanted to fake this type of stuff (and that would be going against what they've learned in various mandatory ethics, privacy, legal ... training). Well something like that would've been very short lived.

And with so much money on the line - companies (at least those that don't have walled garden ecosystems and such) actually do look into long term effect of things like Marketing/Sales/Persuasion - because they don't want to annoy potential customers so much that they never come back.

comment 5y ago · link · parent

This totally skipped the fact that some (or most of the world?!?) a while ago started to split applied from theoretical sciences/studies.

So in that circle - they would go into slightly different directions.

comment 5y ago · link · parent

Being dad of 2 y/o and 9 y/o. Where during lockdown younger kid was strategically getting "screen time" so older kid could study & wife and I could work...

After opening new or commenting on existing similar bugs/features reports to YT/Google, trying things mentioned in other comments (e.g.: /etc/hosts, router or OpenDNS filtering...) as well as (being software engineer) also experimenting with writing something myself.

Somehow accidentally I've ran into https://account.microsoft.com/family/about. And I couldn't believe how something that was produced by company that just "a couple of years ago" was the prime example of how bad big-tech can be (also forced employee performance bell-curve, "Developers! Developers! Developers!" and many other :facepalm" things)...

That M$ company produced something that literally "just fucking works exactly as you would imagine/hope it does".

Seriously - last email I got from M$ is: "Hi {my_name}, {kids_name} wants more screen time today. How much extra time would you like to give them? 15 minutes 30 minutes 1 hour 2 hours 8 hours I don’t want to give more time today"

And the one before that was: "Hi {my_name}, {kids_name} wants more time on this app today. Extra time starts right after it's added.

Roblox

How much extra time would you like to give them? 15 minutes 30 minutes 1 hour 2 hours 3 hours I don’t want to give more time today

To change the daily limits for Roblox, you can go to App and game limits."

For context - to earn "game time" he first did some reading and math today. So latter his "Roblox time" for today (weekend) was first to run out, followed by overall "screen time".

And really the only thing I've been wondering is should we ditch Android devices/tablets and get M$/Windows stuff instead?

Meanwhile the whole "Should we ditch Sony/PS for XBox (which plays along because it's M$)?" is resolved by simply not getting next gen game console and instead kid starting to play and appreciate PC gaming \o/

comment 5y ago · link · parent

And yeah - while I didn't have luck with other ideas (e.g. DNS, /etc/hosts ...etc) because of that accounts.youtube.com or say wanting to still allow youtube for the other (toddler which was "home daycaring" because that was closed too) - somehow this Microsoft & Edge thing just works exactly as you would expect it.

And for the occasional "But teacher assigned us to watch this YouTube video" - kid can ask for permission to view particular URL.

That said - at that point we've usually went the route of just opening that particular youtube video on one of parents computers/phones and watching it together (or streaming to living room TV).

comment 5y ago · link · parent

The only reliable way I've found to block YouTube (and other things) while still allowing kid to use Google Classroom/Hangouts/etc is:

1) Use Windows 10 with Kids/Family features 2) Switch my kid to use Edge instead of Chrome/Chromium

Nr 1 allows you to block apps (e.g. Calculator, Chrome, Roblox ...) as well as websites - either completely and/or during specific days/times. There's also "screen time" feature - both for the computer/OS itself, as well as per application.

So you can allow kid to have "unlimited" screen time on week days between 8am and 3pm (during "home" school) while block all apps/games except Edge. Then say in the afternoon allow 2 hours for Minecraft/Roblox/etc. Or not allow any - so when they try to launch it you get email/notification and can allow it for the next 5/15 minutes ... 1/3/8 hours.

Nr 2 is mostly because Chrome doesn't care/use Windows block/filter rules. Luckily Edge is basically Chrome that does honor those rules.

comment 5y ago · link · parent

The disadvantage due to pregnancy leave is tricky stuff - even with best intentions. (Actually same for any other longer term leave).

Especially if in the X months you are away, someone needs to step in as temp replacement because you're the only person of that role in your team/unit.

Basically - where does that replacement come from? And where does replacement go afterwards?

It's slightly less problematic if you're 1 of say 3 or more people in the same role in the team/unit.

Though even when it works out (say if not temp backfill then you have another place/team/unit to join once you're back, or you weren't only person of that role).

Various changes/pivots likely lead to you coming back to something completely different from what you left, if it's even determined what exactly will you work on once you come back.

comment 5y ago · link · parent

As others hinted https://wanna-joke.com/parents-after-a-long-weekend/ is what just about every single parent will confirm.

And to expand on also hinted growth of skills. Having kids - gives one abundance of opportunity to practice growing others.

Obviously you won't be around your kids all the time, nor be there for them forever. So after initial "micromanagement" phase with babies. With toddlers and older you start switching towards mentoring and coaching.

Which overlaps (not specific things, but concepts) with managers/leaders growing employees.

comment 5y ago · link · parent

I'm wondering if there's similar type of analysis for renewable electricity sources like solar panels and windmills?

There's been criticism regarding longetivity and degradation of performance of solar panels.

And windmills have been criticized for amount of concrete (and with that CO2) that base requires, and same as for solar panels about longetivity, being hard to recycle ...

comment 5y ago · link · parent

Ah crap - and it's exactly those French and German speaking countries that generally don't speak great (or like at all) English.

As the other commenter already said "Puno uspeha!"

comment 5y ago · link · parent

Oh wow...

While being Serbian, with family from Croatia (some of which are now there dealing with corrupt government employees accepting faked papers to transfer land ownership). Means I totally get the pessimistic and corruption focused view of the world/governments/etc.

We just don't have enough info to go into such tabloid level direction for this guy.

---

Maybe his wife or one of grandparents came from N.Z. and he can live/work there without visa?!?

Maybe it's intra-company transfer (like how many Googlers from "east" start in EU/Canada, and then get transferred to USA after a year or two) there?

---

Either way - it's still pretty shitty "Do as I say, not as I do" behavior from the guy, and Google itself (Hey, here are great tools for remote collaboration with your team - as long as you're not a Google employee).

1
45678