The Official Status Thread
-
@dcon They may be getting me an SSD. I hope.
-
Status: JUST USE THE FUCKING INDEX ALREADY
-
@Magus said in The Official Status Thread:
Plus it's Win7, so it's awful.
Still waaay better than Win8.
EDIT: The PC has no SSD? Even more NOPE to Win8, then.
-
@Magus I'm still not sure whether I understand what you're trying to do, but it seems like a parser would be really simple. Like, javascript almost oneliner simple.
All you're concerned with is the
{
and}
characters, and it doesn't look like you're concerned with nesting at all; as long as every{
can be matched to a corresponding}
, it's okay. If that's the case, parse each character, give it a number,{
increases the number,}
decreases it. Check the resulting array of numbers; if you find -1, it's an error; check it again in reverse; if you find $lastvalue-1, it's an error.function foo(s) { var n=s.length+1,a=[].reduce.call(s,(a,c)=>[...a,+a.slice(-1)+(c=='{')-(c=='}')],[]); return Math.min(a.indexOf(-1)+1||n,(a.lastIndexOf(a[n-2]-1)+1||n-1)+1)%n-1; }
Output:
foo('abc') == -1 foo('a{b}c') == -1 foo('a{0}bc') == -1 foo('a{0}b{1}c') == -1 foo('a{}bc') == -1 foo('a{bc') == 1 foo('ab}c') == 2 foo('a{0}{bc') == 4 foo('a{0}{{1}bc') == 4 foo('a{0}}bc') == 4 foo('a{0}}{1}bc') == 4 foo('a{0} { bc') == 5 foo('a{0} { {1}bc') == 5 foo('a{0} } bc') == 5 foo('a{0} } {1}bc') == 5 foo('a{0}{bc') == 4 foo('a{0}{{1}bc') == 4 foo('a{{0}}bc') == -1 foo('a{0}}{{1}}bc') == 4
-
@anotherusername said in The Official Status Thread:
Like, javascript almost oneliner simple.
@anotherusername said in The Official Status Thread:
function foo(s) { var n=s.length+1,a=[].reduce.call(s,(a,c)=>[...a,+a.slice(-1)+(c=='{')-(c=='}')],[]); return Math.min(a.indexOf(-1)+1||n,(a.lastIndexOf(a[n-2]-1)+1||n-1)+1)%n-1; }
Um...
-
@aliceif At this point, I'd feel better with 8 than 7, personally. But I know I'm an odd case in that regard.
-
@Magus said in The Official Status Thread:
@aliceif At this point, I'd feel better with 8 than 7, personally. But I know I'm an odd case in that regard.
Eww! Either 7 or 10. But not 8.
-
-
@ben_lubar said in The Official Status Thread:
Status: Anyone have any ideas about what I can do with this?
No.
What is it?
-
@Tsaukpaetra are you behind a proxy that blocks everything on subdomains of guildwars2.com? It grabs my account data and then shows what I still need for various goals.
-
@ben_lubar said in The Official Status Thread:
@Tsaukpaetra are you behind a proxy that blocks everything on subdomains of guildwars2.com?
Yes.
-
@ben_lubar said in The Official Status Thread:
Anyone have any ideas about what I can do with this?
When in doubt, nuke it from orbit; it's the only way to be sure.
-
@ben_lubar said in The Official Status Thread:
Status: Anyone have any ideas about what I can do with this?
rm -rf
-
@TimeBandit said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
Status: Anyone have any ideas about what I can do with this?
rm -rf
On one non-write-protected file?
-
@ben_lubar said in The Official Status Thread:
@TimeBandit said in The Official Status Thread:
@ben_lubar said in The Official Status Thread:
Status: Anyone have any ideas about what I can do with this?
rm -rf
On one non-write-protected file?
Sometimes, you just gotta be sure!
-
Status: Okay, so my MSDN won't be tied to my Microsoft Account, but only my Organizational account now?
That's... nice? I guess?
Lets check it out!
... Why did I expect it to work? Of course it wouldn't!
-
@boomzilla said in The Official Status Thread:
@anotherusername said in The Official Status Thread:
Like, javascript almost oneliner simple.
@anotherusername said in The Official Status Thread:
function foo(s) { var n=s.length+1,a=[].reduce.call(s,(a,c)=>[...a,+a.slice(-1)+(c=='{')-(c=='}')],[]); return Math.min(a.indexOf(-1)+1||n,(a.lastIndexOf(a[n-2]-1)+1||n-1)+1)%n-1; }
Um...
"almost simple enough to be packed into a oneliner" !== "the resulting almost-oneliner will look simple".
If you actually examine what the code does, apart from all the clever shortcuts, it's pretty simple.
-
@Tsaukpaetra Maybe you should anonymize that, Harry
-
@TimeBandit said in The Official Status Thread:
@Tsaukpaetra Maybe you should anonymize that, Harry
Awe hell, I spent five minutes blocking out shit.
I hate how Snipping Tool will re-copy the image back to the clipboard just because you accidentally focused on it...
-
@anotherusername said in The Official Status Thread:
"almost simple enough to be packed into a oneliner" !== "the resulting almost-oneliner will look simple".
I'm sure it would have been simpler if it hadn't been minified first.
-
@Magus said in The Official Status Thread:
They gave me this machine while it was in the middle of encryption, IN SLEEP MODE
My home desktop managed to go to sleep in the middle of installing the Anniversary Update. How it managed this… ¯\_(ツ)_/¯
-
@Tsaukpaetra Oh that bollox. I just sign in with MSDN account I already have and it doesn't complain. This worked with VS2013 and 2015.
I am still a retro-fag and use 2008 and 2010.
-
@dkf said in The Official Status Thread:
@anotherusername said in The Official Status Thread:
"almost simple enough to be packed into a oneliner" !== "the resulting almost-oneliner will look simple".
I'm sure it would have been simpler if it hadn't been minified first.
Yeah, my point exactly.
Also why I provided a small-ish paragraph that described, in simple language, what the code actually does.
-
@Tsaukpaetra said in The Official Status Thread:
Why did I expect it to work? Of course it wouldn't!
Because After October 4th, 2016
(Yeah, just got the same email)Okay, so my MSDN won't be tied to my Microsoft Account, but only my Organizational account now?
That's interesting - I just noticed that too. (I've always using my MS account for MSDN - the corporate one is added and things "just work")
-
@lucas1 said in The Official Status Thread:
I am still a retro-fag and use 2008 and 2010.
We just upgraded from 2008 to 2010.
-
@dcon Don't you mean downgrade :D
I still do a lot of stuff in 2010 and then just run it in 4.5 and it works fine.
-
@lucas1 said in The Official Status Thread:
@dcon Don't you mean downgrade :D
Fuck no. We can now do (almost) modern C++! (And it still opens about 3x faster than 2015 does.)
-
@dcon i am a C# / VB.NET fag so I couldn't care less about that.
-
status We're talking about dogfooding our product internally and adding a special button for employees to submit feedback. I want to propose Ok, it's the wrong end of the dog
(node is pretty smart - I typed
:shi
and it proposed:poop:
I'm impressed.)
-
@lucas1 Well it'll run, sure; .NET is quite good at backwards compatibility.
But you've missed like 6 years of compiler changes, some of which are kind of nice.
Now, VS15 on the other hand seems to be faster and more stable than 2015, but I don't want the new syntax.
public (string Hello, string World) IHateThisSoMuch()
RefReturnsAreCancer(ref what, ref why) = 3;
-
@dcon said in The Official Status Thread:
(node is pretty smart - I typed :shi and it proposed I'm impressed.)
Well,
...
No, it's not smart, someone just added it as an alternative. :D
-
@Magus said in The Official Status Thread:
RefReturnsAreCancer
You can do what now?
Edit: Heh, palindrome.
-
Status: FFS, Microsoft! There's a reason I deleted it, leave it GONE!!!
-
Status: Where did this come from? I don't have that anywhere in my site code...
-
@Tsaukpaetra said in The Official Status Thread:
Filed under: Wow, I think that's the first time I used that word correctly
Using it sarcastically is also correct, though.
Filed Under: Sarcasm is always correct.
-
@Fox said in The Official Status Thread:
Sarcasm is always correct.
No. It can sometimes land you in a whole ton of trouble; sassing a judge is a bad move pretty much everywhere in the world…
-
-
@Fox Reading #tags is a to replying…
-
Status: Operation ChromeCast is a total success! I have streaming of a computer source (e.g. Twitch) to my TV, and I even figured out how to get the TV to stop overscanning.
Ready for worlds!
-
Status: Well it's a good thing I can control the bit-rate of a Hangouts On Air session, right?!!?
-
@Tsaukpaetra
#potatoStreams
-
@izzion said in The Official Status Thread:
@Tsaukpaetra
#potatoStreams#vbr showing a video of a black screen with a logo. Either that or the Hangouts window really didn't like me switching from Wifi to Ethernet.
-
STATUS: Yay people!
Also, YKYBOWTDWTFTLW you type WOMM to a user.
-
-
@Tsaukpaetra said in The Official Status Thread:
Status: Okay, so my MSDN won't be tied to my Microsoft Account, but only my Organizational account now?
That's... nice? I guess?
Lets check it out!
... Why did I expect it to work? Of course it wouldn't!
Not seen something like that. Maybe MSDN subscription that is bought personally is not affected?
-
@sloosecannon said in The Official Status Thread:
STATUS: Yay people!
Also, YKYBOWTDWTFTLW you type WOMM to a user.
-
@Tsaukpaetra said in The Official Status Thread:
Status: Well it's a good thing I can control the bit-rate of a Hangouts On Air session, right?!!?
Status Update: Livestream was a success! Internet was probably the limiting factor, and CPU power because Hangouts uses software encoding.
Also, does anyone have a good and fairly reliable, cheap (read: ideally free), video conferencing software/site we could use? Ideally I'll be utilizing it with something like OBS and the ability to separate the viewers manually and at full resolution for capturing in the broadcaster.
From my experience most software either has the cameras all in one window, tries to focus directly on the speaker automatically, or blah....
-
@Tsaukpaetra 60 kbps 720p at 30 fps is approximately 0.002 bits per pixel.
-
@cheong said in The Official Status Thread:
Status: Before I go home today, I sent a email to my boss CC-ed my teammate outlining things that I'm not happy and keeping me from "functioning properly", then end it with the lines:
If you decide you're not going to change, please tell me early so I can submit my resignation because that'll be the best for the interest of the company (there's no point in keeping a low performing staff) and me.
Let's see what will the action bring tomorrow.
So after the meeting we reached the following agreements:
- He'll try to email me the requests if possible, and only interrupt me if that's something that requires my immediate attention.
- The major source of disruption turns out to be on unlear requirement, will try to create screen layout drawings (either him or team member responsible for the feature before doing actual work.
I'd be contented if these will hold, but I suspect these, like lots of meeting conclusions that degrades over time, will end in trash. I'll wait and see.
-
@ben_lubar Joshu indeed.