The Official Status Thread
-
@ben_lubar Gross. Putting private state on random objects? WeakMaps exist for a reason.
-
@error said in The Official Status Thread:
@ben_lubar Gross. Putting private state on random objects? WeakMaps exist for a reason.
Ok it turns out that's only in Firefox 22. In Firefox not-22, it crashes because of a stack overflow.
On Edge and Chrome,
:minidisc::horse_racing:
turns into 💽🏇, but on Firefox, it's all broken for some reason.
-
@ben_lubar said in The Official Status Thread:
and Chrome
Clicking the button does nothing.
Not sure what I'm doing wrong.
-
@Tsaukpaetra said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
and Chrome
Clicking the button does nothing.
Not sure what I'm doing wrong.
Well, you put it in the search demo instead of the replace demo. Try the other box.
-
@ben_lubar said in The Official Status Thread:
Try the other box.
Ah.
Wonder if this lets you select to quote? 💽🏇 Probably not...
-
Status: https://jsfiddle.net/t9Lzbw93/
-
@error said in The Official Status Thread:
I'm not sure if it actually looks better though. Thoughts?
You've just made it work a while ago, key features are missing, and you've already been bikeshedding the board look for a week now.
I think you're doing pretty great for 2016!
-
Status: thanks, Google, for microaggressing me!
-
@Tsaukpaetra said in The Official Status Thread:
Status: Ten guesses as to what's wrong with this section of code, and why the assumptions are incorrect.
i += 2
-
STATUS
Testing a cheapo android usb keyboard on my phone.
It works surprisingly well!
Android seems to have a full blown keyboard mode, with selectors, tabbing, shortcuts, the whole deal. Compare with iOS, where keyboard is limited to text fields and a few shortcuts.
-
@cartman82 Or assumes that the
Eval
call won't change the list of nodes. (That's an evil problem once hit, FWIW…)
-
@cartman82 android started off with hardware keyboards, a lot of the code to support it is probably still there
-
@cartman82 said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Status: Ten guesses as to what's wrong with this section of code, and why the assumptions are incorrect.
i += 2
Actually no, that assumption is correct. It's more to do with how
i
is static (apparently) and the lazy constructor thing essentially (highlighted at the breakpoint) always calls the same, no matter what the loop was at when the lazy object was instantiated (ie, no matter the length, by the time it gets called each object will received the same init parameter).
-
@Tsaukpaetra oh right. Lazy doesnt execute closure right away, i presume.
A legit problem with closures - you cant tell at a glance their synchronisity. In js, I like to put them all beneath the return statement, making it clear they will execute outside the flow of function body.
-
Stattus: E_HEADACHE.
-
-
@anotherusername said in The Official Status Thread:
I think you're pretty far into the bikeshed.
Can a one-man team really bikeshed? I thought that was a thing for committees. I'm just making changes to my pet project and soliciting feedback.
Not that I wouldn't welcome contributors, but the idea that FOSS projects are inherently collaborative seems to be a myth...
-
Status: Well.... shit.
It's a good thing Windows 10 doesn't force me to reboot or anything. At least it forewarned me of the impending data loss.
Edit: well at least it wasn't kidding...
Edit edit: Huh. Apparently Paint has autorecover. Whatever.
-
Status: Fricken... No the fuck they obviously were not if you keep installing the same update over and over again!
-
STATUS
Good news: I'm given a week to go wild refactoring and fixing up this API project.
Bad news: It won't be enough to do all I'd like.
-
Status: Deleting SharePoint ... (one can have dreams ...)
Where are you taking me with that GO BACK TO SITE link dear SharePoint? You just confirmed the site I was on is no more, it's an ex-site.
-
Delete Web
Oh great, you wiped the Internet.
-
STATUS:
My idiot brother is trying to program React with JSX in Visual Studio.
Hahahahaha. Good luck, sucker.
-
@Tsaukpaetra said in The Official Status Thread:
Status: Um, no, no it does not.
Did I make a mistake in using this library?
Edit: Wait a minute... Nevermind, I has the dumb. Var() does the actual calculation because code reuse I guess...
I see several mistakes. Everything being typed
object
, an explicit array parameter of typeobject
, and a method namedVar
.Burn it. Burn it all.
-
@Magus said in The Official Status Thread:
Var
Variance.
Consistent with the way they shortened StandardDeviation. I have a calculator at home with that meaning of "Var".
-
@aliceif I reject abbreviations.
And before someone says something stupid, no, I don't think
AbstractSingletonProxyFactoryBean
is a good name either.
-
@Magus said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Status: Um, no, no it does not.
Did I make a mistake in using this library?
Edit: Wait a minute... Nevermind, I has the dumb. Var() does the actual calculation because code reuse I guess...
I see several mistakes. Everything being typed
object
, an explicit array parameter of typeobject
, and a method namedVar
.Burn it. Burn it all.
Yeah, not my creation, I'm just hacking into it. Everything is object because functions can literally receive anything at all (or even nothing, which is even more fun). And functions are expected to deal with that. And no, the default handler for these add-on functions doesn't really exist.
-
@Tsaukpaetra sounds like it was ported from Javascript or something
-
@Tsaukpaetra said in The Official Status Thread:
@Magus said in The Official Status Thread:
@Tsaukpaetra said in The Official Status Thread:
Status: Um, no, no it does not.
Did I make a mistake in using this library?
Edit: Wait a minute... Nevermind, I has the dumb. Var() does the actual calculation because code reuse I guess...
I see several mistakes. Everything being typed
object
, an explicit array parameter of typeobject
, and a method namedVar
.Burn it. Burn it all.
Yeah, not my creation, I'm just hacking into it. Everything is object because functions can literally receive anything at all (or even nothing, which is even more fun). And functions are expected to deal with that. And no, the default handler for these add-on functions doesn't really exist.
Burn it. Burn it all.
-
double var
Huh, you can do that?
-
@Maciejasjmj That's... actually really weird as well. I have yet to see a good thing about this code.
Looks like that's valid syntax, somehow...
-
@Maciejasjmj
var
is one of the keywords that was added later on, and made into a context sensitive one to avoid breaking existing code (see alsoyield return
.This is an invalid program because
var
is explicitly defined, sovar2
is defined as the classvar
:class var { } class Program { static void Main(string[] args) { var var = new var(); var var2 = new object(); } }
This one is perfectly legal:
class Var { } class Program { static void Main(string[] args) { var var = new Var(); var var2 = new object(); } }
-
Status: Was watching this Japanese guy play through all the megaman games, and he's mostly through number 5, (Where, incidentally, the last boss before the fake protoman is very similar to Battalion in Mighty Number 9), and he beat the fake Protoman.
Dr. Wily shows up and complains that he never thought the real one would show up.
"Of course he would! If you found out an evil clone of yourself was abducting people, of course you'd show up! You gave him free will yourself, why would you think a clone was a good idea?" - Approximately translated.
-
STATUS:
Calling cable company tech support.
"Estimated wait time: less than 3 minutes" = actual wait time, 7-10 minutes
"Estimated wait time: more than 3 minutes" = better give up
-
@cartman82
Still faster than a Taco Bell drive thru...
-
Status: Considering how to write unit tests for our C functions. Notably including static functions. Is it a WTF to suggest
#include
ing a C file into the test file in this case? Or is it a WTF to test static functions at all?
-
@Magus said in The Official Status Thread:
Burn it. Burn it all.
Eh, pet project and all that. Besides some weird issues with string versus boolean comparison, it seems mostly ok.
-
I wanted to use the fake-leather tablet cover that I had in a drawer for a few months.
It was fucking moldy. Since when do things that are not food get moldy?
-
@anonymous234 are you sure it was not edible?
-
-
I work in a flexi-time environment. I turn up at 7.30 and normally go home at 4.30. I usually listen to podcasts at work, Radio 4 or Audio books while working.
This guy always does "You going home early after taking a long lunch break and listening to his podcasts".
Me - "I don't mention the fag break you take every half an hour, Piss off.."
-
@Tsaukpaetra said in The Official Status Thread:
Status: Well.... shit.
It's a good thing Windows 10 doesn't force me to reboot or anything. At least it forewarned me of the impending data loss.
Yeah, I got that one day last week.
-
As an experiment since I've never used kpatch before, tried creating and installing a patch for the Dirty Cow vulnerability (no vendor fix yet) and was successful. Yay! kpatch is pretty cool.
-
Status: 01:32:03.67 / 02:01:54, pass 2 / 2...
The jet engine in this thing has been running on high for a while now.
-
@anotherusername said in The Official Status Thread:
The jet engine in this thing has been running on high for a while now.
You're running a nodeBB server instance?!
-
@dkf I tends to generate the same sort of heat.
-
@lucas1 To be fair, some of the things that my users do really does do that sort of thing. Saturating the CPU of a small cluster (only about $50k's worth of kit) for a day is a reasonable thing for what they're up to. I try to get smarter with my own code though; exhaustive searches of computationally complex spaces isn't my sort of thing…
-
ffmpeg.exe -y -ss 42.05 -r 23.809523 -i Star.Wars.1977.Silver.Screen.Edition.35mm.v1.mkv -vf "scale=1280:-2,crop=1280:550:0:85" -c:v libx264 -preset veryslow -b:v 872k -pass 1 -an -f matroska NUL ffmpeg.exe -ss 42.05 -r 23.809523 -i Star.Wars.1977.Silver.Screen.Edition.35mm.v1.mkv -vf "scale=1280:-2,crop=1280:550:0:85" -c:v libx264 -preset veryslow -b:v 872k -pass 2 -c:a aac -b:a 128k -y "Star Wars Episode 4 - A New Hope [720p] [Silver Screen Edition - Team Negative One].mkv"
edit: goddamnit if the A/V didn't get progressively more out of sync as the file plays now. Guess maybe I'll have to remove the
-r
flag? I only even put it in because it was spitting out a shitton ofPast duration 0.9999391717 too long
messages otherwise, and someone suggested that putting an explicit input framerate would eliminate those (and it did)...
-
@dkf I normally end up thinking about how to reduce loops and caching variables as much as possible. But I find with the current thing I am working with it isn't always possible due to the problems with the platform.
-
@lucas1 said in The Official Status Thread:
I normally end up thinking about how to reduce loops and caching variables as much as possible.
The old engineer's rule applies: don't optimise until you've proved it is a bottleneck. Otherwise you're just wasting your time. Using the right algorithm to start out with isn't really optimisation though. More not being dumb. ;) That's why we've got libraries for sorting and searching.
If you're looking at optimising stuff, the first thing to look for is I/O (especially network traffic), then other OS calls, then memory allocation, then data copies/scans, and only at the end do you fiddle around with variable usage. Modern compilers can usually clean that variable stuff up for you pretty effectively without your help, FWIW, especially with local variables.