3,289 karma · joined Jul 1, 2013 (13y ago) · 1,193 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
> Find all java files with more than 100 lines.
● I'll search for all Java files with more than 100 lines in the codebase.
● Bash(find . -name "*.java" -type f -exec wc -l {} + | awk '$1 > 100' | sort -nr)
...
● I found 5 Java files with more than 100 lines:
1. File1.java - 315 lines
2. File2.java - 156 lines
3. File3.java - 154 lines
4. File4.java - 130 lines
5. File5.java - 117 lines
The largest file is File1.java with 315 lines.
Or, if you want to count lines:> How many lines don't start with `import` in File1.java?
● Bash(grep -cv "^import " ./File1.java) ⎿ 287
● There are 287 lines that don't start with import in File1.java.
comment 1y ago · link · parent
comment 1y ago · link · parent
Sounds like the kind of system small companies can't implement and large companies won't care to implement.
comment 1y ago · link · parent
The man page for a unix binary is at least two orders of magnitude larger. At some point, the "Unix philosophy" doesn't make sense anymore. I mean, it couldn't even rightpad.
comment 1y ago · link · parent
comment 1y ago · link · parent
> doubt they even know what agency is
I doubt some people know what epicaricacy is, but they do it anyway.
comment 1y ago · link · parent
Under first-past-the-post, and electoral college, there isn't that much representation even with the popular vote.
https://www.youtube.com/watch?v=s7tWHJfhiyo
> I still think you want companies to want to cooperate with governmental leadership in a well-functioning democracy
Without education, people will succumb to bias, propaganda and misinformation, often voting against their own interests. There's already a fundamental issue with capitalism favouring profit above anything else, leading to a lot of the current issues with (for example) privatization of health care. I don't think you can have a functional democracy without education. As a species we keep falling into a pattern of a wealth gap, followed by extremism, followed by wars, followed by poverty, while at every individual step we find reasons why it's perfectly fine.
comment 2y ago · link · parent
Why couldn't you do that with a dedicated node pool, namespaces, taints and affinities? This is how we run our simulators and analytics within the same k8s cluster.
comment 2y ago · link · parent
comment 2y ago · link · parent
2. I'm assuming video editing software works on a raw format in memory with access to individual frames? Just like Photoshop would need access to individual pixels from an importend JPEG, the actual canvas uses a lot more memory than the compressed input format.
comment 2y ago · link · parent
You entered a contract where you promised to pay for a year, and they gave you a smaller fee. You cancel the contract, so they should cancel the discount.
comment 2y ago · link · parent
While I don't disagree there's a "human touch" to art, I'm not convinced it can't be synthesized to some degree. It may not be innovative, but I think since AI is extrapolating from learned data, it can at least mimic the current pop culture.