1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions
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.
511.
Ruby Creator Matz on How Emacs Changed My Life (2012)(ergoemacs.org ↗)
2 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
Could we say that concetanative languages like forth have no syntax. It seems to me there is no AST in those languages, just a stack.
I'm not formally trained in CS, so that's my own individual opinnion.
comment 9y ago · link · parent
In large offices, IMHO people get billed with their capacity to pay. It has not much to do with the hours lawyers put in. If the client has the money, lawyers put in more hours. Every piece of paper lawyers print gets billed to you. Every cab fare, every x and y, you imagine. On top of all this lawyers need to bill hours so they don't get fired. But I'd rather bill hours doing serious research than manual labor.
comment 9y ago · link · parent
If the government had provided an API, the same task could be accomplished in a matter of minutes.
Likewise, most law offices have FileStore's or DMS's (Document Management System). These technologies are old and slow. If they used something like Algolia or Apache Lucene on a beefy server, the productivity would increase multiple-folds.
Another thing I want to mention is automated translation software. Most contracts we write are in dual languages. People usually slightly modify terms from earlier contracts. If there were a software that could identify identical/similar blocks and find their translation, the productivity increase would be substantial.
I wonder why these firms do not invest in IT. Being a corporate lawyer in 21st century is not that far away from being a coder. You primarily work with your computer, only instead of writing computer code, you write rules in natural languages. Programmers have IDEs, Lawyers still use MS Office products with lots of add-ons.
comment 9y ago · link · parent
IMHO on specific limited matters like obtaining a permit, customer support etc. chatbots can go a long way by using traditional methods. I think if we can map the subject in a big decision tree and apply some good-old Bayesian probability, we can achieve a working conversational chatbot.
comment 9y ago · link · parent
Bhyve seemed complex to me, because I was accustomed to Virtualbox and VMware. I tried to boot up ubuntu server with behyve and finding the kernel images, loading them, typing the boot commands were a hassle. Maybe if I had some prior experience with hypervisors, I could better understand behyve.
As for ZFS, I always had extra space in my SSD, so compression was of little use to me. My FreeBSD system only used 30-40 GB of space (including downloads). I had 8 Gigabytes of RAM, but FreeBSD only needed 1.4 GB, even whilst browsing.
I haven't used the snapshot feature, although I imagine it's powerful. I also haven't made use of FreeBSD jails, which are, according to what I read, far better than chroot.
comment 9y ago · link · parent
I think you can always say that you need some fresh air and go out.
519.
Just use pixels (2015)(benfrain.com ↗)
1 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
If you're using FreeBSD on your main computer, you need some kind of a Desktop Environment, if you don't want to stick with KDE4, you install GNOME. However, GNOME is ported from Linux and although most of the time it works without problems, there is a speed compromise (again only based on my experience).
Upsides of FreeBSD:
• The Package Repository is great, most apps such as firefox, emacs, IDE's are maintained at their latest versions.
• The system works solid, no crashes
• FreeBSD feels more like Unix, and if you're interested in the low level stuff you can learn more quickly. The source code is clean, the implementations are not complicated.
• Drivers are scarcer than Linux, but if there is a driver, it works flawlessly.
The points I'm neutral about:
• Behyve and ZFS are all great technologies, however they were a bit complex for my test. I couldn't manage to setup a Linux server with X11 forwarding. As for ZFS, I used FreeBSD on my laptop with a 256G SSD drive, so I did not see much benefit of ZFS. However, I was aware that if I had used VMs, ZFS would offer much better IO performance.
As for sleep and power management issues:
• Power management on FreeBSD is good, not great like Linux and you don't have powertop and tlp available. But it's good. You can expect upto 70-80% of the battery life you get in Linux. (You don't even have to tinker with C-States and all, just powerd or powerdxx works great out of the box.)
As for sleep issues, mostly on FreeBSD the closing the lid or pressing the power button won't be recognized as a sleep trigger. But on most laptops 'acpiconf -s3' puts your laptop to sleep.
comment 9y ago · link · parent
comment 9y ago · link · parent
I have a friend from high school, he was the smartest kid in class, was a math-genius. Somehow he lost interest in school. He has a Youtube channel, where he posts game videos, earns a bit money from there (i guess 500 dollars per month). He is "trying" to study economics, but he is still in the same semester after three years. He does lead a life, but not in the physical world. He was a handsome kid, now he doesn't eat and doesn't care about appearances. He only drinks iced tea (no water) and eats limited food he likes (like pasta or chocolate). Although his life may seem weird, I respect him. That's his choice to live in the digital world.
comment 9y ago · link · parent
I'm currently interning at a law firm, and everyone around here works 10 or more hours a day on average. (official office hours are 09:30-19:30, but only on rare occasions you can leave at 19:30 sharp. )
525.
Linux Process Memory – Types (2013)(techtalk.intersec.com ↗)
1 points · by terminalcommand · 9y ago · discuss
526.
/proc on Mac OS X (2003)(osxbook.com ↗)
2 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
>>Over a decade has passed since the LCD monitor unceremoniously ousted the boxy CRT monitor into obsolescence, but with that ousting came a small problem: CRT monitors redrew every frame from scratch, and this was baked into the fundamentals of how PCs sent information to the screen. Monitors redrew the screen with a refresh rate of 100 Hz, (100 times a second), and they were silky smooth.
>>LCD monitors don’t have this problem, because the pixels don’t need to be refreshed.
Instead, they update individual pixels with new colors, and each of those updates takes a certain amount of time depending on what the change is.
The response time refers to how long this change takes. LCDs started with a 60-Hz refresh rate but a response time of about 15 milliseconds (ms).
For more information on the subject: https://www.tomsguide.com/us/refresh-rates-vs-response-times...comment 9y ago · link · parent
TVs are said to be configured to display the best-looking colors, monitors try to stay true to the real color.
TVs have an immensely higher refresh rate, 50hz/60hz usually suffice for a TV. But on monitors we speak of milliseconds. The refresh rate makes a lot of difference, if you intend to game on your computer/monitor. An e-sport professional Redittor claims he had improved his playing performance multiple-folds after switching to a monitor instead of TV. (https://www.reddit.com/r/FIFA/comments/5whb9v/did_the_change...)
Other than these differences and the occasional overscan/underscan problems on older televisions, I personally see no reason to prefer a Monitor over a TV, if there is huge price difference. If the price difference is minor, I'd opt for a monitor.
comment 9y ago · link · parent
My old setup consisted of two monitors, one 23" and one 21". One day I realized that my 23" monitor could not reproduce colors. I needed to photoshop a picture. I sent the retouched version to my phone, but as I couldn't see the color depth on the 23" one, the image looked ugly on the better screen. At that time I learnt not to buy the cheapest monitor, just by looking at its size and resolution. So, I sold that monitor, and bought a 32" 1080p monitor at a bargain price.
Of course it would be better if I could buy a 1440p monitor at this size, (or even 4K OMG :)). But considering my budget this was all I could purchase.
I had serious doubts about the pixel density, however there was nothing to be afraid of. In usual tasks (e.g. browsing, writing code in emacs, terminal) nothing disturbs my eye, it's beautiful. However, if I open a 1080p youtube video fullscreen, it looks like as if it were a high quality SD video, because of the pixel density. I am standing close to the monitor, and although I cannot see any pixel points, I can notice the difference.
I bought my monitor for 900 Turkish Lira, equivalant to 254 dollars and I think it is a great investment.
530.
Browser Abuse Syndrome(wiki.c2.com ↗)
30 points · by terminalcommand · 9y ago · 34 comments
531.
JavaScript Abuse(wiki.c2.com ↗)
1 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
I recently read the statement that "If you can solve parsing Perl, you solve the Halting Problem "(http://www.perlmonks.org/?node_id=663393). This is not a joke, it's serious.
Python and Go keep their promise to stay simple. However I believe, metaclasses, asynchronous programming and constructs like "yield from" and the whole itertools library could be better engineered. And lastly with new approved PEPs like concerning string interpolation etc., I believe Python is making compromises in its core ideology. In contrast, in go if you want to allocate something you just use make(), if you want your code to run concurrently you just use "go", if you want to send messages between threads, you just use channels. The complexity is well hidden in the language itself.
What I don't like in Java for example is that, as a general purpose language, in each version new features are added. And these new features add complexity, and complexity leads to mistakes.
Perl I understand, it was designed as the first postmodern programming language. Javascript was written in a very short time and intended to be a browser scripting language. But Typescript?, with Typescript there is no excuse. I guess, this is Microsoft's policy: Worse is better, make everyone (or at least revenue sources) happy. You want feature x, they add it, you want lambdas, they add it etc.
Maybe I'm a bit tired of hassling through chaos, but I want my codebase to be structured. If I don't like an API, I take my time and write a simpler abstraction. One programming advice stuck in my mind from the Art of Linux Programming: you should focus on data structures (a.k.a structuring).
I think this advice is true for all aspects of life. You need to set aside a place for your things, if you want to live/work in a tidy environment. You need to plan your day, if you don't want to fall apart. You need folders to organize your e-mail/documents. You need to structure your programs in meaningful abstractions into seperate modules/subroutines.
533.
Generic C Reference Counting (2015)(nullprogram.com ↗)
2 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
Kafka intended to be a chemical engineer, but he studied law at his father's request. He had talent for writing, but stuck being a clerk drafting legal documents.
I had (have) a very similar story. At the time I read Kafka's "the process" and then consecutively this story, I had felt helplessness in insufferable amount. Computers were all that interested me, I believed I was really talented, I always believed that İ had a calling. But in real life, I had little prospects for getting into college, although I was a real good student.
At the end I conceded like I always do, and started Law School.
I guess Kafka's trying to say that don't be a conformist, stand up for your self. The protagonist (of the Process, which includes this story as far as I can remember) had a job (but he didn't like it), he had a girlfriend (but he didn't care for it). He didn't enjoy life, he He believed that he had to accept everything imposed upon him and this got him killed.
comment 9y ago · link · parent
Don't try to trick your readers by trying to use fancy words and then fail.
Brutal honesty written in an understandable manner has a real weight not to be underestimated.
You don't need to write like you're talking to a child at all, but you shouldn't reach out for words and expressions just because they sound fancier.
This may be my personal opinion, but I have no stomach for literature that is written with dishonest intentions.
comment 9y ago · link · parent
The legal personality is a fundemantal concept of our law system. For example states are legal persons, that is how you can sue the state and get compensation. Publicly traded incorporations on the other hand are a bit tricky. My professor always said these types of corporations are the greatest invention since the steam engine. Maybe we could further this analogy. Banning steam engines would've probably sustained the growth of industralization. Without industralization we could avoid the inhuman treatment of workers, the pollution. But at the same time, we wouldn't have improved, we wouldn't get to achieve the level of productivity we have today.
On the other hand the law of corporations is getting insanely complex and it must be simplified.
It takes time and stability to cultivate a healthy law culture, and at our current state I believe that new advancements in this field of law will be made.
If we could minimize corruption and try to stick to a Randian ethics standard, whilst providing free and decent healthcare and education, I believe that the society will continue to improve. I think it's not the idea of the current market that sucks, the problem is at our implementation.
comment 9y ago · link · parent
It's true that we owe a lot to our society. If I couldn't find a doctor, a pharmacist, an Internet Service Provider, a supermarket I wouldn't be able to live.
But where do we draw the line? Should we forego our right to profit from our talents/luck/ambitions to repay our debt of benefiting from the collective knowledge. Or is it enough that we make meaningful contributions (for example mentoring an intern, writing a book or coaching a team)?
The fact that we don't live in a liberal economy may be true, and I'm probably too naive in my thinking.
I want to believe in a free market, because if we don't have it I can't imagine how we would build a peaceful forward-moving society.
comment 9y ago · link · parent
In that case engineers and technicians get the money they deserve by the wealth they create. The owners of these machines provide the necessary capital (financial/technical) to make automation possible.
We don't need to envy people who own the production plants. If they're not smart enough, they'll lose their capital, and more talented people will take their place. That is the very premise of a liberal economy.
I think we need to protect the free market and ensure that everyone gets the wealth they deserve. Penalizing people just because they own more doesn't feel right to me.
comment 9y ago · link · parent
Before that I was in a rebellious phase, I didn't believe in time management and plans. I thought they caused stress and inefficiency. I thought there was enough time for everything.
However, then I crashed and realized that professionalism and proper planning have their place. But I could not and cannot manage to adopt a system.
I tried org-mode, the to-do list on my phone, some calendar apps. I tried the flash card system from Cal Newport's book Focus. I managed to stick to it for a week, and actually got some work done.
Nowadays I don't plan ahead, if something needs my attention and needs to be done I write down a checklist for the task with minimum self-explanatory items on a piece of paper.
Most things that I perceive as tasks are either not important in the end, or they go away. The ones that remain receive my undivided honest attention and in the meantime I procrastinate.
I don't trust myself, so I don't plan ahead. If I plan, I don't think I'll stick to it. If a task has the potential to haunt me, make me anxious and rob me of my sleep, I try to be cautious with it and get it done ASAP. Other than these types of tasks, I don't force myself to do anything and simply pass the time.
I wish I could be an organized person, procrastinate less, tidy up, live healthier etc. But knowing from experience that it's quite unlikely that I'll do all that, I try to focus on the bare essentials and try to feel less guilt.