Better HN
topnewbestaskshowjobs
Log inSign up

terminalcommand

1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions

Corporate lawyer with a passion for computers.

Software design and implementation should be a joyous art, a kind of high-level play. If this attitude seems preposterous or vaguely embarrassing to you, stop and think; ask yourself what you've forgotten. Why do you design software instead of doing something else to make money or pass the time? You must have thought software was worthy of your passion once...

To do the Unix philosophy right, you need to recover that attitude. You need to care. You need to play. You need to be willing to explore.

Submissions

comment 6y ago · link · parent

The thing that cracks me most is that they suggested to mandate the use of e-government authentication tools for accessing adult content.

If they want to fight this, the most effective way would be a nation-wide ban of VPNs, ip blocking and deep packet inspection to discover and ban other tunnels/VPNs. Sure, you can rent your own server and run shadowsocks on it but it will complicate the process.

In Turkey, I feel like most VPNs are actively banned, it’s a roulette basically to get a working one. The only reliable solution is to rent your own server and setup your own VPN. I think in China, they can also find out and block those.

comment 6y ago · link · parent

As a recent newcomer into reddit, I feel the same way. The only thing I do differently is that I only subscribe to subs I like and live happily inside my filter bubble. I only browse through my own feed.

comment 6y ago · link · parent

Just out of curiosity, would you prefer 24” 4K multi-monitor setup, or a giant single 50” 4K TV with good input lag and latency?

As for the post, IMHO the danger of using your phone to access these is that you’re constantly thinking of the media you’re consuming without any breaks. For example, at universityvI was extremely proficient in distracting myself for hours on end by reading every single comment on HN submissions. I started the day with mindless wikipedia readings and HN and didn’t have much energy/mental capacity to do anything else.

comment 6y ago · link · parent

There is a special type of entity that can raise money for acquiring other profitable businesses as well, they are called "special purpose acquisition companies" (SPACs). You can basically raise money out of thin air only by only using your reputation and your desire to invest in other companies.

comment 6y ago · link · parent

I don't know about Surveymonkey, but Zynga makes profit from games. Games are addictive, people pay.

comment 6y ago · link · parent

Auditors work on assumptions, they assume that the document presented to then are correct and not falsified. If they cannot see that the document is falsified and didn’t see any indications that might raise questions either, how can they be held liable?

OTOH, why does a German company keep 2 billion euros in a Philippine account, that’s strange.

comment 6y ago · link · parent

Could they have been pirating the books? In my home country (Turkey), there were alternative sellers (basically photocopiers) who made pirate copies of books (usually on much thinner paper and washed out colors) and sold them. They were exactly like bookstores and they'd have the books you needed in stock. They usually sold textbooks for 1/10th of the price.

comment 6y ago · link · parent

Watching used constants and trimming them to fit the cache seems like a good idea. I'm a total noob PC-architecture wise so apologies beforehand, but doesn't the CPU handle the caching of most used memory locations itself? If there are an equal number of hot constants, how does changing the order of them help performance? CPU is going to cache the most used locations anyway. In this example, the constant was never used, so there is no reason for the CPU to cache it.

BTW, adding some contact info to your HN profile could help in the job search. Best of luck!

comment 6y ago · link · parent

I am not familiar with C++ templates, but isn’t this a similar ambigious pattern? If the compiler doesn’t evaluate the sizeof’s before parsing, there are still more than one equally logical ways to parse it.

Nevertheless I think the C# way of choosing generics over comparison without semantic processing is strange. The example above should run as intended (as a simple function call with two arguments) and not fail because of some spec rule.

comment 6y ago · link · parent

Another great piece by Eli on how Clang solves this problem and the nested functions inside C++ classes is https://eli.thegreenplace.net/2012/07/05/how-clang-handles-t....

Clang basicaly moves the semantic processing to another pass, and tokenizes both types and variables as ‘identifiers’.

I’d agree that C/C++ have some sort context sensitivity. However I think this is not an ambiguity. You can deduce a single logical solution when you see T *x; . If the T in scope is a variable you do multiplication, if the T in scope is a type definition you make a variable declaration.

Real ambiguity happens when there are two logical solutions to the same statement and the language specification has to prefer one to remove ambiguity and undefined behaviour.

For example a C# code example from spec that is ambigious and therefore doesn’t compile:

“ static void F(bool a, bool b) { Console.Writeline($”{a} and {b}”); }

static void Main(string[] args) { int G = 2; int A = 1; int B = 2; F(True, False); F(G<A, B>(7)); ”

The compiler prefers to interpret the last line as a function call with one argument, which is a call to a generic method G (that doesn’t exist in the code above) with two type arguments a one regular argument. Instead of one function call with two boolean arguments.

comment 6y ago · link · parent

I am also an amateur in these things. If indexing is O(N), does that mean it has the same performance as a linked list? Basically that would mean you have to go through each and every item until you reach the index you want.

Does homomorphic encryption allow running operations blindly on an encrypted dataset and return encrypted results without ever decrypting the dataset?

comment 6y ago · link · parent

Last time I tried SBCL didn’t work. Emacs also acted funny under powershell’s terminal emulator. I guess it’s better now with WSL2.

comment 6y ago · link · parent

The opposite thing happened to me. I work as a lawyer and I was advised to get nicer suits and grow a beard to look older. I was told that my work was good, but appearances mattered. They said that I wasn't looking trustworthy enough to be presented to clients.

comment 6y ago · link · parent

Linux software is usually distributed as source code, so I think the comparison does not suit very well. It's the package maintainers' duty to compatible, tested, secure binaries for you. But I imagine this sword cuts both ways. If you are a commercial app developer who wants to keep its source code to itself, maintaining binary packages for each distro and testing it could cost a significant amount.

comment 6y ago · link · parent

This is it definitely my experience. Those of us who were stubborn to stick with Linux (or BSDs) learned it inside out. It is hard to switch habits after all those years. If all those sleepless nights trying to fix hardware problems were spent on learning the Winapi/NT kernel inside out, it could be hard to switch back.

What I found most interesting was that I saw a video of the creators of plan9 who were running it inside a Windows VM. At that time, I thought if those guys formerly working in the experimental OS division of Bell Labs are not bothering with Linux hardware support and simply using Windows, why shouldn't I. I forced myself to use Windows as a host and ran a Linux VM for development for 6 months or so, then I gave in again and formatted back to Linux.

The same stubbornness that led me use Linux for years also led me to switch to FreeBSD, because off-the-shelf Linuxes became so decent that no config was necessary. (I also jumped on the systemd hate train.) After switching computers and getting a modern one I couldn't use FreeBSD because of GPU support. Now it has support but I don't go back to FreeBSD. I got older and valued my time more. Debian is what I feel the most comfortable with and I shall use Debian for a while.

OTOH, I really also want to try NixOS and DragonFlyBSD as my daily drivers at least for a couple of months :).

comment 6y ago · link · parent

I tried to switch back to Windows numerous times, each time I hated that I can't just spawn a terminal window and do things on CLI. It is not impossible, but it doesn't feel right for me. Maybe if I were more acquainted with .NET libraries and powershell, I could achieve similar proficiency.

I feel like I am being suffocated when I'm using windows for development. My current solution is to keep a windows laptop for browsing/light gaming/travel, keep a Linux desktop for programming.

But we probably feel this way because we know Linux and many things are incorporated in our muscle memory. If we spent nearly equal time on Windows, it could be hard to switch back.

comment 6y ago · link · parent

I feel like Pardus project has lost some momentum. Maybe I feel like this because there was a lot of publicity and hype around Pardus project when I was growing up.

What interested me most is that Pardus project had its own packaged manager called PiSi, which was then adopted by Solus.

I bet Pardus project had their own reasons to adopt the apt system and rely on Debian volunteers for all packaging support. As the OS is largely maintained by a government institution, I'd imagine it doesn't have the large userbase as Debian does.

There are also some other cool projects made for Pardus, for example Zemberek, a spell checker for the Turkish language that uses natural language processing for Libreoffice and Openoffice: https://github.com/ahmetaa/zemberek-nlp

comment 6y ago · link · parent

Legal documents have cross-references to annexes/addendums. In addition, some words used are defined in the definitions section.

For contracts, there is a customary order, you start with subject of the contract and end with force majeure, severability, term etc.

I don’t believe there is a hyperlinked inherent structure in legal documents. Skilled lawyers can of course draft a meaningful, concise document. But, I think that’s analogous to a skilled programmer writing clear and understandable code.

Most lawyers I know dread formatting and checking for cross-refs.

However, I think we do have one quality, we are used to subconsciously analyze sentences for ambiguities, double meanings, logical contradictions etc. Therefore, lawyers may use English in a way that would do the least harm (or most harm depending on which side they’re on :)).

If we figured out natural language processing or (even if very unlikely) switched our legal documents to an unambigious context-free language such as Lojban, lawyers’ jobs could be entirely automated.

I suspect that impressively structured legal documents stem from templates that have been perfected over the years by multiple lawyers, battle-tested by actual use.

That’s my impression being a junior associate and normally doing the grunt work of checking cross-refs and formatting contracts.

comment 6y ago · link · parent

Free as in beer and free as in freedom debate again :).

Propriatery for me means closed source, not free (as in freedom). All the free applications that spy on you do not share their source code, therefore are in nature propriatery.

As far as I understand Qt considers to put a 12-month delay before opening up its source code.

I think this would be a zero-sum game for Qt in the long term. They will continue to milk their existing commercial userbase, but lose the support of the community.

comment 6y ago · link · parent

Speaking of books: Games people play by Eric Berne was an eye-opener for me. If you want to find a logical framework to wrap your head around social interactions, it is a useful book.

For me at least, I found that watching comedy series helps a lot to figure out social transactions. As a positive byproduct you learn to make jokes, which can also help in your pursuit to become socially appropriate.

I also find that if I stay away from computing for a while, I tend to get more normal.

Putting an effort into dressing acceptably (clean, fitting clothes), getting regular haircuts, figuring out how to chit-chat, generally smiling and nodding are my current strategy to fit in.

comment 6y ago · link · parent

Hardware has its limits of course, but sometimes if you can’t upgrade your OS, you can’t install apps. You’ll be stuck with a screen saying “This application requires IOS X and higher”. When that frequently happens, you are forced to upgrade your phone, even if you’re content with the hardware.

Avoiding updates and ignoring notifications could stem from a different reasons. People may not want to take the time and maintain their phones. I consider myself a techy person, but I also put off updating my phone, taking good care of it, upgrading it. I also dread tidying up my room, getting a hair cut, shopping for clothes, eating healthy, sleeping well etc. It could be a personality trait.

Avoidance conserves energy :)

comment 6y ago · link · parent

Most BIOS are also closed source. If I used a microkernel primitive enough not to require changes, I could live with not updating the kernel unless there is a security bug.

A third solution could be to require device manufacturers to share their source code with a trusted third party (such as google/certification authority). This third party will make sure that the driver does not include any harmful code and provide signed binaries. Binaries could also be updated for newer versions that way, even if the original manufacturer loses interest/goes bankrupt. If the IP gets stolen, the device manufacturer could sue this third party, therefore business people will also feel secure.

It is not ideal, but I could be able to live with this solution.

comment 6y ago · link · parent

Yes, I think we shouldn’t label kids as autistic or something else. A theory of mine is that people on the spectrum always existed throughout the history. I think it’s also not true that an autistic person cannot hold normal jobs.

For example, I work as a lawyer in a law firm. There are a couple of associates who I suspect are in fact on the spectrum. People sometimes make fun of them, they generally like to work alone and in isolation, but they are brilliant attorneys and praised and respected for their work.

comment 6y ago · link · parent

I think this is very true. I also had a lot of social communication issues growing up and still do. Not receiving special treatment and trying hard to conform with others improved my social skills a lot. Social skills can definitely be learned. You can learn to make eye contact even if it hurts a lot, you can learn to attentively listen and nod.

But I think the greatest help in my social skills was watching a lot of TV shows (especially sit-coms). Many make fun of socially awkard situations, word plays, misunderstandings taken to the extreme teaches you social interaction by example and it's fun :).

comment 6y ago · link · parent

I think there could be latency because of the buffering.

A solution could be to stop the movie for everyone, get the timecode. Send everyone the new timecode and start the movie from there after the countdown.

(heck, this could even be a sync/break feature. If someone’s internet connection gets disrupted everyone can stop and sync. Or if they want a movie break, they can do it like this.)

comment 6y ago · link · parent

On the website it says that they figured out the autoplay feature on those sites.

I imagine when the countdown ends, it enables the autoplay and the movie starts.

comment 6y ago · link · parent

Maybe that is so, because teaching people assembly allows them to pull magic tricks on companies. An example I can think is Apple banning all dynamic code generation and execution on ios apps.

comment 6y ago · link · parent

This may be true, if the employees are receiving high salaries under normal working conditions. But sometimes, the high pay is a result of insane work conditions. For example investment bankers, lawyers in biglaw all work crazy hours and are under an immense stress from juggling multiple projects at the same time. You sacrifice your health, family, friends for earning a high salary. The turnover at those jobs are super high and the job requires a certain amount of breaking-in.

In my experience (as someone working in Biglaw), high pay equals high stress, because the employers demand it.

comment 6y ago · link · parent

As a counterpoint, I’d like to state that being able to raise efficiency when you need it could be a huge selling point.

On slow days, I don’t want to raise my efficiency that much , I take my time and review more thorougly. But on busy days, where I bill 13+ billable hours for a week, I’d want as much efficiency as possible.

1
91011
23