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.
comment 9y ago · link · parent
Maybe you could automatically generate invoices with LaTeX and save a pdf, that would be cool.
Also, you could add an account overview, where you could see the balances of all your accounts, compare it with previous periods. Paint them red if you're expenses are soaring etc. Maybe some graphs...
You could also prepare a screen for financial indexes such as cash flow, debt-capital ratio etc.
573.
Let's Learn Go (Online Book)(go-book.appspot.com ↗)
3 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
The test is really cheap and is an indication of your glucose levels in the last 3 months. If that is over 7 mg/dl you're diabetic.
I sincerely hope you don't have T1D. Good luck.
comment 9y ago · link · parent
What interesting things can you do with it, that you previously couldn't? Or is it simply the speed and the ease of use?
I'm also thinking of building a desktop PC, but I'm afraid that I won't be needing it. I don't game, I mostly write programs and browse the web. Does it really change things in terms of latency and if it does, does that have an impact on the relationship with your computer?
comment 9y ago · link · parent
Now I see that there is. The two lisp books I read (Paul Graham's ANSI Common Lisp and gigamonkey - Practical commmon lisp) always used text editors.
Whereas for smalltalk I installed a VM (scratch) that included a GUI.
And also even in an old issue(80s?) of Byte magazine dedicated to smalltalk there were extensive toolings with GUI. https://news.ycombinator.com/item?id=7052479
"By resembling smalltalk" I wanted to mean that the user needs to interact with a development environment to get the full benefits of powershell. And that this is in its nature.
Nevertheless, I stand corrected. I never knew that there were lisp implementations designed to work with an IDE.
comment 9y ago · link · parent
Trying to write powershell scripts without the ISE (Interactive Scripting Environment) is very hard.
Also powershell is not suitable to just open and "bash" thigs out at it. For example to download a file, you need to remember the corresponding .net package. Or to list a directory, you use -without the alias- get-child-item etc.
I think the verb+noun syntax and the ability to use all .net packages are awesome. But you first need to do your research, find the modules, look up the required parameters, put those in a file etc.
In bash, most linux users just "bash" things out, if you don't know something no problem, you just "man" that.
Although the same thing could potentially established with powershell through aliases and extra binaries/scripts for utilities like diff/curl, powershell in its nature is a different beast.
I really like powershell, writing scripts with the ISE and the object oriented design are really powerful. That's why I think powershell resembles smalltalk rather than lisp.
In order to write powershell comfortably and efficiently you need to use its development environment with GUI.
579.
Relational Databases 101: Looking at the whole picture(agiledata.org ↗)
2 points · by terminalcommand · 9y ago · discuss
580.
Makefiles in Python Projects(krzysztofzuraw.com ↗)
3 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
The article basically states if you can't establish what the other party thinks, and had no way of being aware, you can go on with your business.
In this case, the instruction is written to comp-sci students. I imagine most of them are technical and know how hard it is to try fixing computer-related problems of other people.
comment 9y ago · link · parent
The DBs implement the binary-search, not the back-end Dev.
For the average programmer, IMHO learning about data structures/algorithms makes you a better programmer, but it's not that essential.
comment 9y ago · link · parent
Seeing two pages side by side, like a book, even on small screens makes a huge difference for me. Also the ability to switch between documents easily (ctrl+tab and ctrl+shift+tab) is really handy, when I am researching a topic.
I haven't figured out the annotation and highlighting part yet. I just copy and paste important parts into an Emacs org-mode document and summarize the article I read.
It's also easier to remember, what I tought when I read the article at the time, if I take extensive notes.
comment 9y ago · link · parent
You also may want to separate your work and your private life. On your free time I think you should simply do nothing for a while. No HN/no music/no computers, hang out with friends, or simply sit and reflect.
Lastly, if you think you're irrevocably broken, you're not. You're just tired, overworked and taken advantage of. Think, could it be any worse than working 60 hours per week and getting only 5 hours of work done.
When a CPU overheats, you let it cool down. When you can't solve a technical problem you're facing, you take a walk, do something else and then return. Work does not have to define who you are nor your level of success. Push out all your haunting dreams and plans for a while and just live. No purpose, no work outside of your job. Try to keep commitments to a minimum. With rest you'll be better. It's just like a physical illness, if you're sick, you need to rest to recover.
Best of luck, if you're in need of a distraction I would recommend the book: Reasons to stay alive.
comment 9y ago · link · parent
As for CPU intensive task, I do video conversion from HEVC to x264 to watch movies on my TV via chromecast. I suspect that would happen really fast.
Like you said, I could tinker more, install couple of disk drives and run multiple OS's without hitting the MBR limit.
comment 9y ago · link · parent
As for remote connection, I can setup a way to connect to it from the internet as I manage my own VPN on a cheap server.
I definitely want to build a PC and my laptop is going nowhere.
587.
Ask HN: Should I invest in a desktop PC in 2017?
38 points · by terminalcommand · 9y ago · 69 comments
comment 9y ago · link · parent
Are you passing the reference to an mmap adress, or using the shm systemcalls? In what language are you programming in? Does race conditions endanger the shared memory? If so, how does using semaphores help?
Sorry, if I asked a lot of questions, feel free to answer any/none of them :)
comment 9y ago · link · parent
The rulings and the operation are quite different in most countries.
Since you're dealing with the state, it's also hard to protect your rights alone. If you're going it alone, I would advise talking with a friend with a law-degree. At least, that way, you could probably avoid grave errors.
And if you're being audited, or in trouble with the authorities in any way, definitely try to get some legal help.
PS: These are my own opinions, take it with a grain of salt. I just took the exam for the first semester of tax law :).
590.
Moscow or Kano – how do you prioritize?(hotpmo.com ↗)
3 points · by terminalcommand · 9y ago · discuss
comment 9y ago · link · parent
I am an avid Debian user for many years, lastly I used FreeBSD for a couple of months on the x201. Now, I'm using ElementaryOS.
With Debian iwlwifi was a problem, did not work reliably. FreeBSD was a lot of hassle to work with -with no network manager being present etc.-, but driver support was excellent. ElementaryOS is currently working like a charm.
Another tip besides installing an SSD is to enable multicore support in Firefox.
comment 9y ago · link · parent
In order to write good programs, you already need years of work and self study. It's much like being a writer. The most important role of education is to guide people and teach properly, so they won't get lost and have courage to pursue knowledge.
The problem is that not all people are passionately interested in computing. Most people here on HN are, and would still be amazed if they did not have an access to computers and wrote hand-written assembly. But regular people, even the ones who have an interest in technology in general and most of my friends who are currently studying CS, do not feel the same way.
The current university education aims to supply specialized workers, not free tinkerers. In 4 years you can train someone to write working programs. But training someone to be good at programming requires a different mindset. In order to become better at programming one needs to enjoy programming and devote a certain piece of his/her life to it.
In short: programming is a lifelong pursuit. Like all skills you get better over time, if you stick to it. But guidance can really help in the process and opens many doors for the interested. That's why a path that covers the lowest level is important. There are not many resources and it can be quite frustrating for a beginner. I never had the chance to study CS in a formal setting, but I still remember everything from my computer classes in high school. I am grateful for every piece of theoretical knowledge I acquired at that time. I had a real hard time accepting that I could not study CS. It took me a while to realize that they do not teach the CS I want at the universities that my friends attended and I could still work with computers like I always did; by reading and tinkering.
I think books like this are extremely important for the unfortunate ones amongst us, who are really passionate about computers, but cannot pursue CS full-time in formal settings.
comment 10y ago · link · parent
I don't know how to write a single line of latex, but I can write a beautiful paper, full with footnotes, links, italics, quotations etc. thanks to emacs.
On the other hand, on some larger papers with heavy footnotes, sometimes tex doesn't compile. Then, I find the error through trial-and-error by editing the tex file.
comment 10y ago · link · parent
The biggest disappointment I had by not using Node is that I couldn't easily integrate all the beautiful javascript libraries by just loading a module from npm.
For example, I'm using Quilljs for text entry, and I have to write something that parses Quill's JSON output and turns it into a renderable html/markdown. If I had used Node, there is already a module for it :).
If I started from scratch, I would have designed the back-end first without using any library. (I would define my objects User, Post etc. and hid the SQL as methods (e.g create, update, delete) under the hood) That way, I could debug the app, add new features without having the need to setup a web server. I could also write sound unit tests. I seriously regret not having done that.
The problem with my CMS was, that it was easy at the beginning. My customers asked new features and I just hacked them in. Now, my code is still legible, but since I've used wrong abstractions, it's a pain to add new features.
Your mileage may vary, I was inexperienced with FLASK and SQL at the time I started the CMS. I've learned a lot during the making and wanted to share my two cents.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
First, I shouldn't mention my passion for computers. They're looking for a lawyer, not an engineer. They already employ engineers, who are active in legal research. Second, I should pick a career outside of IT-Law. Solely working on technology feels too close to the heart. Third, I shouldn't speak a lot and reveal details about my life when I'm too excited during an interview.
Now, I only have to endure the next couple of days, then the sting will go away. After a couple of months, I'll remember this as an experience and I'll laugh at how foolish I was.
comment 10y ago · link · parent
I just had an interview at an IT Law Firm, and made a fool of myself. That's why I completely agree that, we as "people who are good at computers" need to keep seperate identities.
Because if you go full Aspergers, you make yourself vulnerable. Once people realize you're "different", you get the "poor boy treatment" and that hurts.
PS: I am still trying to get over the interview, sorry if I don't make any sense.