The Official Status Thread
-
With ponies.
I hear there are plenty...
Windows 10 actually uninstalled stuff
oh good, experienced the in-place-upgrade!
Yep, that's a thing, though they're not "gone",just their shortcuts IIRC.Oh, joysticks you say? Well.... That's different.
1400 PNG images at once,
well when they're all lined up like so, what did you expect?
I don't know if you can make worker threads in shell language, but it only makes sense...
-
Status: Hungry and very tired. Eating dinner at 01:30, having been up since 03:00 yesterday.
Interview went pretty well. Aced the technical questions from 3 of the 4 interviewers. Struggled a bit with more vague and open-ended question from the 4th interviewer; ironically, this about the sort stuff I had been doing at my most recent job. The stuff that I was worried about, that's a bit outside my experience, they didn't even ask.
-
I thought gitHub might be a sensible platform
Blakey might like to have a word with you.
-
STATUS After a horror day vomiting yesterday I've actually shown up for work. Someone has given one of the users access to the kanban board. I is not amused.
In other news amazon packageing is something of a
-
I phoned Company D(the actual former employer) and they said they will pay me when/if their upper contractor pays them.
Who is your contract with? They should pay you, and it's then up to them to bear the risk of non-payment of whoever they were contracted by. Or at least that's exactly how I'd expect it to work anywhere in the EU or US (or Canada or Australia or …)
Bearing someone else's risks for them is a mug's game unless you get paid extra for doing it.
-
Which century is that carpet from?!
-
Which century is that carpet from?!
No idea. I can only hope that an unfortunate accident happens to it.
-
After all, it's only half my paycheck(I only started working on that project from March),and it's not that big.
Forget the half paycheck and labor authority and courts. Take it as an expensive life lesson and walk away. Just move on with your life.
-
This post is deleted!
-
(post withdrawn by author, will be automatically deleted in 42 hours unless flagged)
Sometimes I wonder if you're just trolling us with this stuff.
-
Not trolling, but getting mad with some people on this forum.
-
Status: I really need to read the feature list for C# 6.0.
I just found initialisers for auto-properties by accident, this is great
[code]
public string Neat { get; private set; } = "And Tidy";
[/code]
-
If you like that, you'll love the null coalescing operators
?.
and?[]
, and formattable strings ;)
-
Because multi-core CPU have only been popular in the last year or so. Not, for example, since 2008.
well when they're all lined up like so, what did you expect?
Lined-up? What are you talking about?
I don't know if you can make worker threads in shell language, but it only makes sense...
Pretty sure pngcrush is built in C or C++, and yes you can make worker threads in both of those languages.
-
I don't know if you can make worker threads in shell language, but it only makes sense...
You can run a process in the background. In bash that's done using an ampersand at the end of the command.:
$ pngcrush porn.png &
-
Not trolling, but getting mad with some people on this forum.
The feeling is mutual, I'm sure.
-
This post is deleted!
-
http://www.nathanboyce.com/pngcrush_script/
Pngcrush Script
By Nate on October 4, 2012
I wrote this little bash script to pngcruns images in a directory. It will create one thread per processor.Basically uses
xargs
to launch a limited set of processes of pngcruch in parallel.Blakeyrat: Since you did not ask for help, I have replaced one character in the URL to make it unusable. For the rest of you, replace the underscore with a dash.
-
The problem is, one thread per processor would still only be one thread. My computer only has one processor. I need one thread per core, or even better, one thread per virtual core (due to hyperthreading, which my CPU has.)
(Why do people get this easy terminology confused so often?)
-
The problem is, one thread per processor would still only be one thread.
A process is not a processor.
(Why do people get this easy terminology confused so often?)
Indeed!
-
I'll reply with a comment from the script I didn't link:
# Run 1 threads per core. Tested with 2 threads per core but found 1 or less better. THREADS="$(grep -c processor /proc/cpuinfo)"
-
In his defense, the quote I included does talk about "one thread per processor"...
-
A process is not a processor.
... yes? Relevance?
The text Mikael_Svahnberg quotes says "one thread per processor".
THREADS="$(grep -c processor /proc/cpuinfo)"
Seriously? That's how you find the number of cores on Linux? There's no API for it? Jesus.
Anyway so he obviously knows the word "core", he just wrote the text wrong the first time because... I dunno, open source quality! I guess.
EDIT: anyway it's probably done now, the "open source" solution is to just let it run all night, even though my computer hardware easily could have completed the task in an hour or less. Open source quality!
-
Status: spent at least an hour trying to fix an error which just turned out to be a typo in a class name
-
If I were to run that on my Win7 PC via Cygwin,
THREADS
would be the number of virtual cores.
-
That command returns "4" for me, in a single I5 processor, I think it really returns the number of virtual cores, despite the name.
-
Seriously? That's how you find the number of cores on Linux? There's no API for it? Jesus.
No it isn't. That's how he did it.
Try
nproc
on linux, orsysctl -n hw.ncpu
on mac.
-
That's how he did it.
You mean: wrong.
If the powers that be actually corrected their broken-ass CLI command and changed the name from "processor" to "core", that script would be broken. But of course, they wouldn't, because there's 632,217,322 other scripts like that littered all over and they'd all "break".
(Well, they were broken from day one. But it'd expose the bug. Like all the bugs in Windows software exposed when they added UAC. Of course Microsoft did it anyway because fuck that shitty software, if they had permissions that wrong they deserved to break.)
So forever and forever and forever, the number of cores has the wrong label (and the number of processors is presumably not reported at all?) because open source quality!
BTW I just looked it up. Both of those
nproc
andsysctl -n hw.ncpu
are still CLI commands and not APIs. So they exhibit the exact same problem. Andnproc
STILL HAS A WRONG MISLEADING NAME! So yes, you have really filled me with confidence that Linux is all perfectly right and good and just this one script developer was in the wrong.
-
You mean: wrong.
No. I mean "Also right, but less so". There is more than one road that leads to Shangri-La.
-
There is more than one road that leads to Shangri-La.
... except in Linux-world it's named "Shitville" and they can't change the road sign because a bunch of GPSes rely on it.
I kid, I kid, I really kind of admit the open source "just don't give a shit that literally everything is wrong or broken in some way" attitude. I wouldn't be able to get anything done in that environment, probably due to actually caring about quality to some extent.
-
not APIs
CLI is an API. What do you require? A tool that plays a video with twenty-nine hungarian mimes who do an interpretative dance of the number of cores in your computer with a big flashing blue button that says "ok"?
It's a number. No more, no less. With syscl (also available on linux, upon closer inspection), there's a database somewhere in the background (I presume, I haven't looked it up; I just quickly glanced through the information available (
sysctl -a
)) so a GUI is a perfectly viable option, but there is no use case for it.Edit:
NAME sysctl, sysctlbyname, sysctlnametomib -- get or set system information LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <sys/types.h> #include <sys/sysctl.h> int sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
-
CLI is an API.
No.
It's a number.
A number that's labeled "number of processors" when the number itself is the number of cores. (Possibly virtual cores, possibly physical cores, there's no way to even know.)
There's only two pieces of information here: a number, and its label, and one of those is grossly wrong. And you just don't care! Which is really the amazing thing to me.
-
CLI is an API
No, it's a UI. UIs can change, APIs can't. If a CLI is an API then every user who types shell scripts is an application
-
No
Yes. In Unix it is.
There's only two pieces of information here: a number, and its label, and one of those is grossly wrong. And you just don't care! Which is really the amazing thing to me.
I never care when arguing with you. That's how I keep my sanity.
Take your pick to nit-pick:
msv$ sysctl -a | grep hw | grep cpu hw.ncpu = 8 hw.cpufrequency = 2200000000 hw.availcpu = 8 hw.ncpu: 8 hw.activecpu: 8 hw.physicalcpu: 4 hw.physicalcpu_max: 4 hw.logicalcpu: 8 hw.logicalcpu_max: 8 hw.cputype: 7 hw.cpusubtype: 4 hw.cpu64bit_capable: 1 hw.cpufamily: 1418770316 hw.cpufrequency: 2200000000 hw.cpufrequency_min: 2200000000 hw.cpufrequency_max: 2200000000 hw.cputhreadtype: 1
-
A number that's labeled "number of processors" when the number itself is the number of cores. (Possibly virtual cores, possibly physical cores, there's no way to even know.)
From what I can tell, it's the count of virtual cores (what Windows calls 'Logical processors')
-
In case anyone cares, the directories "/proc" and "/sys" aren't real files, that are provided by the kernel and are APIs for any definition of API that I can think of.
-
-
sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
size_t newlen);Makes you long for the days of Mac Classic, the Mac Toolbox and the Gestalt API call. Sure it had a pretentious name, but it had this problem fucking solved. Back in 1989.
Yes.
No.
In Unix it is.
- No it's not.
- If so, then that's a horrible shitty design that nobody should have emulated and you should call out Linux Torvalds for being so stupid.
Take your pick to nit-pick:
Without knowing what hardware's in that computer, it's kind of pointless to nitpick. I'm sure half of those values are wrong or incomplete though. Also "ncpu" is reported twice, which is SUPER QUALITY A++!
From what I can tell, it's the count of virtual cores (what Windows calls 'Logical processors')
Right; but how would you get there from "nprocs"? You couldn't. Nobody could.
-
But I don't post my current status on facebook!
Oh, but you see. You don't post Status on facebook anymore. You post "What's on your mind". And people don't like it. They REACT ®©™ to it using one of four Pre-Approved Citizen Emotions.
-
Current status: amused.
Current status: fucking pissed, because apparently ONCE AGAIN Discourse decided to jellypotato me to the top of the thread. And of course, since the newlevator is effectively invisible, and the scrollbars mean fuckshit, and the posted date is not in my eyepath and light grey-- I literally had no UI hints that I was reading older messages.
Fuck Discourse. How's the new forum coming along?
-
@RaceProUK said:
From what I can tell, it's the count of virtual cores (what Windows calls 'Logical processors')
Right; but how would you get there from "nprocs"? You couldn't. Nobody could.
nprocs is the number of processes that can be actively running simultaneously.
-
-
nprocs is the number of processes that can be actively running simultaneously.
Good asspull, but we know that's not what the original name was.
-
@Lorne_Kates said:
http://i.imgur.com/8OYkqVQ.png
Nope.
At least not for you.
Nobody likes you.
I think you photo shopped that.
-
@Lorne_Kates said:
Oh, but you see. You don't post Status on facebook anymore. You post "What's on your mind". And people don't like it. They REACT ®©™ to it using one of four Pre-Approved Citizen Emotions.
-
Sorry, it's the number of available processing units.
I don't know how that could be confusing to you because that's literally the same thing that I just said.
-
No, it's a UI. UIs can change, APIs can't.
Sure they can. Maybe you meant "shouldn't." But I'm not telepathic.
-
Status: nothing to do at work, so I'm prepping for Microsoft exams. Specifically, 70-480: Programming in HTML5 with JavaScript and CSS3.
Christ' sake, they have like five hours of video material to go through. My brain is so numb it could fall out my ears and I wouldn't notice.
-
I don't know how that could be confusing to you because that's literally the same thing that I just said.
Unfortunately, you wrote words. That always causes trouble when attempting communication with blakey.
-
@Jaloopa said:
I think Blakey is psychic. He might know.No, it's a UI. UIs can change, APIs can't.
Sure they can. Maybe you meant "shouldn't." But I'm not telepathic.