The Official Status Thread
-
@dkf said in The Official Status Thread:
@dcon Having glanced through the docs, SQLiteCpp seems to be a bit of a better binding that uses more of C++ (but not as much it should) to produce a way to interact with the DB that works better.
I'm already using wxWidgets, so .
Looks like wxsqlite updates better also - when sqlite is updated, wxsqlite is usually updated within a couple days. SQLiteCpp appears to be a few versions behind right now. (current 3.35.5, they're on 3.34.0)
-
@Tsaukpaetra said in The Official Status Thread:
The unit has seemingly died shortly after boot. The power button beeps and the light turns on, but then shortly turns off and does not interact further without being unplugged.
Whelp!Internet says it might be the hard drive going bad if the power light is at all functional.
Plugged said drive in, Windows complains that it needs to be checked, all 10 ( ) partitions.
Doing a clone, just in case:
Rather slow, even for a SATA 2 drive...
Wait, how the fuck can it have a formatted capacity larger than the actual capacity?
-
@Tsaukpaetra said in The Official Status Thread:
Internet says it might be the hard drive going bad if the power light is at all functional.
Internet was close. Apparently it was the optical drive. Unplugged that, system booted. Plugged in while running, instant death, and a spark!
Unfortunately, apparently changing the system configuration broke the trust to the drive and it factory reset itself (RIP all of those dozens of Minecraft worlds), but at least the console itself is working again.
Now to tell the bad news that the thing we used it for the most (watching Blu-ray movies) is no longer possible.
Hoo ray.
-
@Tsaukpaetra said in The Official Status Thread:
Plugged in while running, instant death, and a spark!
You're doing that on purpose, admit it.
-
@Tsaukpaetra said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Internet says it might be the hard drive going bad if the power light is at all functional.
Internet was close. Apparently it was the optical drive. Unplugged that, system booted. Plugged in while running, instant death, and a spark!
Unfortunately, apparently changing the system configuration broke the trust to the drive and it factory reset itself (RIP all of those dozens of Minecraft worlds), but at least the console itself is working again.
Now to tell the bad news that the thing we used it for the most (watching Blu-ray movies) is no longer possible.
Hoo ray.
These weird allegorical descriptions of your orgies are getting out of hand.
-
@Tsaukpaetra said in The Official Status Thread:
it was the optical drive. Unplugged that, system booted. Plugged in while running, instant death, and a spark!
You really have to have a certain... aura to kill a SATA drive that way. The power plug is made specifically so that it wouldn't happen.
-
@Zerosquare said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Plugged in while running, instant death, and a spark!
You're doing that on purpose, admit it..... Maybe?
-
@Applied-Mediocrity said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
it was the optical drive. Unplugged that, system booted. Plugged in while running, instant death, and a spark!
You really have to have a certain... aura to kill a SATA drive that way. The power plug is made specifically so that it wouldn't happen.
For the XBox, the optical drive's power is actually kinda special in that it's not a standard SATA connection (for the power. Data is normal, and the hard drive is normal. I assume some kind of special sauce).
(No that's not my hand, I took this off of the iFixit guide)
-
@Tsaukpaetra said in The Official Status Thread:
I assume some kind of special sauce
Huh, apparently it is. The fuck why tray and status needed to be moved to the power cable... shirley, so it's more difficult to replace?
Being non-standard, it likely doesn't have the precharge circuit, because who would ever disconnect the drive from a running Xbox, right? Clearly, they hadn't consulted with our notorious , the leading tech QA specialist (and at very reasonable rates, too!).
-
@Applied-Mediocrity said in The Official Status Thread:
leading tech QA specialist
I'm too overqualified, can't be hired... 😥
-
Status: A few years ago, the SSD in my parents' computer that I had built for them died suddenly, and was RMA'd. The shipment would take a few weeks, so rather than waiting it out, I bought them another SSD, intending to keep the replacement from the manufacturer for whatever potential future use. And indeed, when it arrived I stored it for later.
Now it's later, and I have a perfect use for that old, new-in-box SSD. However, I have moved house since then and at some point it got packed in a box and is now somewhere that I don't know where TF it is.
-
Real fake machine fdof. Down to real machine and fake machine.
-
@dcon said in The Official Status Thread:
Looks like wxsqlite updates better also - when sqlite is updated, wxsqlite is usually updated within a couple days. SQLiteCpp appears to be a few versions behind right now. (current 3.35.5, they're on 3.34.0)
Quite a few downstream projects have had minor problems with 3.35, which is a shame because I'd like to use
RETURNING
.
-
status went for a run today and besides smelling terrible feeling quite good. I have to return to work in twenty minutes though.
-
@DogsB said in The Official Status Thread:
status went for a run today and besides smelling terrible feeling quite good. I have to return to work in twenty minutes though.
Well if the cops are lost 20 minutes out that should be fine.
-
Status: Had the sound just mysteriously cut out on my PC. Applications just disappear from the mixer list for some reason. This happens rarely enough that I decided to look up a solution in Google. Are people retarded? Not only was most advice a brillant suggestion to uninstall/reinstall audio drivers, lots of it came in the form of YouTube videos. Which, having no sound, I could not hear.
Turned out all I needed to do was restart the Windows Audio Service (audiosrv).
-
@dkf said in The Official Status Thread:
@dcon said in The Official Status Thread:
Looks like wxsqlite updates better also - when sqlite is updated, wxsqlite is usually updated within a couple days. SQLiteCpp appears to be a few versions behind right now. (current 3.35.5, they're on 3.34.0)
Quite a few downstream projects have had minor problems with 3.35, which is a shame because I'd like to use
RETURNING
.Maybe fixed in (from sqlite website):
Latest Release
Version 3.36.0 (pending).?
-
@Zenith said in The Official Status Thread:
Status: Had the sound just mysteriously cut out on my PC. Applications just disappear from the mixer list for some reason. This happens rarely enough that I decided to look up a solution in Google. Are people retarded? Not only was most advice a brillant suggestion to uninstall/reinstall audio drivers, lots of it came in the form of YouTube videos. Which, having no sound, I could not hear.
Turned out all I needed to do was restart the Windows Audio Service (audiosrv).
Toby Faire, uninstalling/reinstalling your audio drivers will forcibly restart the Windows Audio Service.
-
@izzion Yet disabling and enabling the hardware in Device Manager (how I have to fix similar bouts of network stupidity) did not.
-
Status: I finally got a response from the show. Despite showing exactly how to send an invoice, I received a money request. Which from what I can see is an invoice that can't be paid with a credit card. Which I specifically requested an invoice to be able to use. I wonder if this mook thinks he's getting around the 3% fee doing it this way (he's not). Searching for an answer to my question is very difficult because PayPal's forum, like every corporate forum these days, is designed to prevent people from getting answers to questions.
-
@Zenith said in The Official Status Thread:
is designed to prevent people from getting answers to questions.
That's known as a Premium Feature.
-
@Zerosquare said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Plugged in while running, instant death, and a spark!
You're doing that on purpose, admit it.
-
@error said in The Official Status Thread:
@Zerosquare said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Plugged in while running, instant death, and a spark!
You're doing that on purpose, admit it.I... need... one of those....
-
@Tsaukpaetra said in The Official Status Thread:
I... need... one of those....
Save up and go for a Violet Wand.
-
@error said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
I... need... one of those....
Save up and go for a Violet Wand.
But that one looks so much stronger!
-
@Tsaukpaetra said in The Official Status Thread:
@error said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
I... need... one of those....
Save up and go for a Violet Wand.
But that one looks so much stronger!
Actually, holy shit, it looks like ESD guns start at $600... to rent monthly.
-
Renting @Tsaukpaetra for a month would be a lot less expensive.
-
@Zerosquare said in The Official Status Thread:
Renting @Tsaukpaetra for a month would be a lot less expensive.
My pricing is very compettetive!
-
Status: Burned 1 year old baby at stake. Deus vult!
-
@dcon said in The Official Status Thread:
@dkf said in The Official Status Thread:
Quite a few downstream projects have had minor problems with 3.35, which is a shame because I'd like to use
RETURNING
.Maybe fixed in (from sqlite website):
Latest Release
Version 3.36.0 (pending).?
I really doubt it. The problems come from things like the set of standard functions getting larger and conflicting with extensions put in by the wrapper. And seem to be subtle. I didn't dig in further; I don't want to take on yet another project's maintenance!
-
Ŝtatus: Tired and want to go home and sleep, but has work to do. Also, two meetings. Boss tried to schedule a meeting for when I had a meeting with another colleague, but she got him to move the time for his "emergency" meeting instead. Brain is very much atm. ~3 weeks until summer vacation...
-
Just a quick question: Don't want to open a Help thread for that.
So, if I want to draw a sine curve repeatedly (using Javascript... not much choice in the matter) and, in order to get a smooth curve, have to calculate in steps of 1° and am drawing the sine repeatedly and am doing that at 30 FPS...
... then it's probably more efficient to calculate the full sine from 0 to 359 once, plonk the values into an array and simply use the values from said array?
I.e. instead of
y = Math.sin(Math.PI * angle / 180)
I'd doy = sineValues[angle]
?Because the naive approach does use ~35% CPU time on an i5-8600K.
-
I don't get it. If the sine curve doesn't change, why are you redrawing it again and again to begin with?
-
@Zerosquare It does change - it's for a wave propagation simulation. Here's what I'm talking about:
(yes, I know, that's my school, I don't mind).
-
Ah, it's a amplitude-modulated sine curve.
A precomputed table may help, but check first that it's actually where the slowdown is coming from.
-
@Zerosquare Well, in that simulation, it's the only thing that's using a loop. The other lines and stuff are one-shot calculations.
And it's actually not amplitude-modulated, that's due to the projection using a perspective with a vanishing point. I just having figured out yet how to do an orthogonal projection (the whole thing is 3D which you can see if you move the "perspective" slider) - the amplitude is actually constant.
-
@Rhywden said in The Official Status Thread:
Just a quick question: Don't want to open a Help thread for that.
So, if I want to draw a sine curve repeatedly (using Javascript... not much choice in the matter) and, in order to get a smooth curve, have to calculate in steps of 1° and am drawing the sine repeatedly and am doing that at 30 FPS...
... then it's probably more efficient to calculate the full sine from 0 to 359 once, plonk the values into an array and simply use the values from said array?
I.e. instead of
y = Math.sin(Math.PI * angle / 180)
I'd doy = sineValues[angle]
?Yes, just storing the values will be faster than computing them again but...
Because the naive approach does use ~35% CPU time on an i5-8600K.
30*360
sin
computations really shouldn't bother your CPU at all, that's a tiny amount of work.Just as a quick performance test:
>>> timeit.timeit("np.sin(pi/180*np.array(list(range(360))))", setup="import numpy as np; from math import pi", number=10000) 0.4165470786392689
Computing 360 sine values 10,000 times takes half a second.
-
Oh, nice. When using Powershell on Linux, the GNU tools (that I normally associate with Bash) are still available. The best of both worlds.
Filed under: I know GnuWin32 is a thing but it seems a bit wonky.
-
@topspin said in The Official Status Thread:
Just as a quick performance test:
I'd build the array in the setup phase. Don't want to time that. (You'll find that accelerates the code under test by around 9 times, according to my estimation.)
>>> timeit.timeit("np.sin(pi/180*np.array(list(range(360))))", setup="import numpy as np; from math import pi", number=10000) 0.40723498002626 >>> timeit.timeit("np.sin(input_array)", setup="import numpy as np; from math import pi;input_array=np.array(range(360))*pi/180", number=10000) 0.04395893798209727
-
@dkf I don't use Python, but it bothers me that you're multiplying a scalar by an array and then passing the array to a function that should expect a scalar. Also, passing in code as a string.
-
@error said in The Official Status Thread:
@dkf I don't use Python, but it bothers me that you're multiplying a scalar by an array and then passing the array to a function that should expect a scalar.
That's for SIMD. A C back-end doing vectorized loops is much better than looping in Python.
E: And better than looping in C, tooAlso, passing in code as a string.
It's basically
eval
under the hood.
-
@error said in The Official Status Thread:
@dkf I don't use Python, but it bothers me that you're multiplying a scalar by an array and then passing the array to a function that should expect a scalar.
Behold! Numpy! Wheee!
Also, passing in code as a string.
You can pass in code in other ways IIRC, but they're much more awkward to use. By passing in as a string, the timing framework looks after running everything in an isolated environment for you.
-
@dkf said in The Official Status Thread:
You can pass in code in other ways IIRC, but they're much more awkward to use. By passing in as a string, the timing framework looks after running everything in an isolated environment for you.
I didn't check why it's done like that. Intuitively, I'd rather just pass a lambda to it, but the examples in the docs use strings. No idea why, but maybe just to make them more similar to the command line interface?
-
@topspin I believe you can pass in bytecode objects, but I suspect you have more problems with passing in a lambda precisely because in that case you don't have much isolation. Python's not very good at isolation of code. When things aren't isolated, you end up being not at all sure what you're actually testing.
-
@dkf Not to mention scope pollution and closures.
Filed under: Which I guess are just specific types of isolation failure.
-
Weird flex but OK @Polygeekery
-
Status: Since a few weeks, everytime Jenkins runs an automatic build after sources have been updated, it fails with
java.net.NoRouteToHostException: No route to host (Host unreachable)
. And then just running the same job again (with the now already up-to-date sources) works fine.Annoying shit.
-
-
Your kinks are really getting out-of-control...
-
@Rhywden said in The Official Status Thread:
Well, in that simulation, it's the only thing that's using a loop.
But there's the "drawing the curve" part. Have you timed it? It may be where the bottleneck is, as opposed to the computations themselves.