« first day (1436 days earlier)      last day (3511 days later) » 

user3010322
12:00 PM
Windows' ExpandEnvironmentStringsW has %% as the delimeter. Unix's shells use ${} or just $. I'm trying to decide which of these should be the delimeters for my "Environment.ExpandVariables" function.
 
@ThePhD Well, both platforms have a HOME: on Windows, it's C:\Users\<username>`. On Unix, it's /home/<username>`.
 
No Windows doesn't have HOME
It has HOMEPATH and HOMEDRIVE
Or something like that
 
welll yeah, different names, same functionality.
It's not Unix after all.
 
And really you shouldn't be using it anyway because files should usually go into other known folders
 
not that I am claiming HOME is related to Unix (I actually don't know at all).
 
user3010322
12:01 PM
I need it to fish out all the potential font directories (particularly on Unix).
 
Use fontconfig.
 
user3010322
But I also need it for %win_dir%
 
Why do you have those things anyway? There are API functions to get those paths.
 
@ThePhD hahaha
Use fontconfig
 
user3010322
Fontconfig can die in a fire. :l
 
12:02 PM
@CatPlusPlus He's been trying for the past few days.
 
He's not listening, that's why he's trying for few days
 
user3010322
Well, I've listened and now I just need %win_dir%
 
Linux font directories are governed by fontconfig p much exclusively, and that means they're configurable through fontconfig
So environment variables won't help you
 
user3010322
Nevermind.
 
12:05 PM
2 hours ago, by Sofffia
-3
Q: . Ask the user (Batman) about the nature and distance of his destination, and depending upon this input, suggest which vehicle he should take.

akhilBatman wants to keep a record of all his vehicles (like Batmobile, Batpod and The Bat). Create a C++ program with class Vehicle which has attributes like Name, Dimensions, Top Speed, etc. Ask the user (Batman) about the nature and distance of his destination, and depending upon this input, sugges...

rofl
 
user3010322
"What syntax should I use for environment variables in my program's strings?"
->
"Use fontconfig"
 
Also Font directory can also be redirected on Windows so
Your solution is shit
hth
 
@ThePhD No, you are trying to get a list of fonts by using environment variables.
Or you're not being clear at all
 
user3010322
No, you fucking twat.
 
user3010322
I told you what I'm trying to do, in plain fucking english.
 
user3010322
12:06 PM
And then we had to have an x-y wankery fest.
 
user3010322
I'll bikeshed by myself.
 
5 mins ago, by ThePhD
I need it to fish out all the potential font directories (particularly on Unix).
 
lolf
I just want to reinvent wheel badly~~
 
user3010322
@rubenvb Orthogonal to the original problem, or does "separate problems" not compute to your brain?
 
No need to get snarky.
Just pick a damn syntax and write a parser and use an unordered_map and be done with it.
Sheesh.
 
12:09 PM
The condition (playerName != "Slut") || (playerName != "slut") will always be true. If it is one, it cannot possibly be the other, so the complete eval will be true. If it is neither it is still true. Only if it were both simultaneously would it eval as false, which is impossible. — WhozCraig 3 hours ago
 
Software will forever be unreliable shit
 
Hmm so what do you suggest.. a bool? — Filip Brännlund Ståhl 3 hours ago
LOL
 
Because people just don't understand why reinventing shit is a bad idea
And how many corner cases are in things that look simple
 
@rubenvb By the way, unordered maps have reverse insertion order, right? ;)
 
@FredOverflow oh dang I remember some sort of discussion on the order of the elements in an unordered_map... Yuch :-p
 
12:11 PM
@sehe did you get the ioc thing to run?
 
oops. Looks like I forgot. Far too busy @ work. Anyhoops: this is now on my reading stack martinfowler.com/articles/dipInTheWild.html - I suppose it would be a good reader?
 
@rubenvb We had a discussion in the Lounge just yesterday:
19 hours ago, by Xeo
The unordered_set will, as the name suggests, not have them in any specific order.
 
Words are hard
 
@FredOverflow oh, I wasn't there to "enjoy" it then :^)
 
12:16 PM
How can one seriously think than unordered containers are ordered?
Especially those based on hashing.
 
They're obviously ordered :/
 
well, there's some order to the elements you iterate through.
 
Just not in any particularly order meaningful to the outside
 
they are ordered; it's just that that order is not really meaningful
 
7 seconds late
 
12:19 PM
everything is ordered either by the order of entrance or by priority or by hash or by name or key or something else
 
I can't get past 4th level in Bejeweled :<
 
lol you suck :-p
 
BAD AT PUZZLES
 
That's on purpose. Otherwise, you couldn't fix MediaWiki installs
 
@CatPlusPlus cat's puzzle solving skill iz so terribu
 
12:21 PM
fail
 
This mistake stems from a misunderstanding of English and likely your native language. When you say "the player name is not Slut or slut" you're actually making a common error. You should say "the player name is not Slut and it is not slut" (which directly translates to the correct code), or "the player name is neither Slut nor slut" (which has no equivalent in code). — Lightness Races in Orbit 40 secs ago
 
pretty cool
 
I have to study
but my head aches
 
@LightnessRacesinOrbit how does the latter not have equivalent code?
 
It doesn't use JLE, JNZ or JS
 
12:36 PM
lol JS
"jump if javascript" actually sounds like an emergency instruction
 
@sehe Oh, Wolfram is an actual person? :)
 
user1804599
@BartekBanachewicz from a building
 
hi hi
help me study
I can't do it
 
@rightfold Yeah, flats are usually too flat for JavaScript-related suicides.
 
@FredOverflow Yeah. He named his company after himself (who does that anyway? :-p)
 
12:37 PM
@BartekBanachewicz Leave the Lounge is the best advice I can give you if you want to study.
 
@BartekBanachewicz turn off electricity
 
@sehe how will it help?
 
Just do it
 
I won't be able to read anything
 
books and candles
 
user1804599
12:38 PM
object DeadCodeEliminationPass extends Pass {
  override def apply(instructions: Seq[(InstructionID, Instruction)]) = {
    val (untilTerminator, rest) = instructions.span(!_._2.isTerminator)
    untilTerminator ++ rest.headOption
  }
}
 
user1804599
That was easy!
 
@FredOverflow boo-what?
ah you mean like those ancient manuscripts
 
@BartekBanachewicz ebooks with the e
 
@rightfold !_._2.isTerminator
 
Don't you have a Kindle or something that can only be used for reading ebooks?
 
12:38 PM
@FredOverflow ooks with the b
 
user1804599
eboola
 
What kind of spaghetti code is this?
 
@rubenvb Terminator 2 was awesome!
 
@FredOverflow that uses electricity
 
@rubenvb That's the predicate "the second component of the tuple is not a terminator" in Scala.
 
user1804599
12:40 PM
@rubenvb That somebody doesn't know the language the code is written in doesn't make said code spaghetti code.
 
but _ is what then?
 
@rubenvb The argument of the lambda.
 
user1804599
It's equivalent to instructions.span { x => !x._2.isTerminator }.
 
_.foo is the same as x => x.foo
 
Ok nevermind. Not in the mood to wrap my already fragmented brain around Scala today. But thanks for the patience :-p
 
12:41 PM
@BartekBanachewicz you can light the books using the candle
 
@rubenvb _ is spelled it in Kotlin. But don't ask me anything else about Kotlin, that's all I know :)
 
user1804599
@sehe And vice versa, with enough friction.
 
user1804599
@FredOverflow It's also spelled it in LiveScript!
 
user1804599
And $1 in Swift. :F
 
@rightfold Aren't there "one dollar stores" in America? :)
 
12:42 PM
@rightfold friction lights up the world
 
ugh friction by itself won't do anything of the sort.
 
@rubenvb How do you know? Have you studied Science Friction?
 
you just don't have a dirty enough mind. Skeptics are no fun if they don't know what they're skeptic for
 
user1804599
I'm eurosceptic.
 
user1804599
And now I want bacon.
 
12:44 PM
isn't it "skeptic" ?
 
user1804599
NO
 
In engrish maybe
 
user1804599
bruket help me implement write a compiler
 
@rightfold use raw lua bytecode
it's well-defined
 
user1804599
12:45 PM
I compile to Styx bytecode and in my VM I translate that to Lua.
 
 
@rightfold why don't you output lua bytecode directly
@sehe sigh
 
user1804599
Because the Lua VM is an implementation detail.
 
user1804599
It isn't exposed in any way by the VM.
 
12:46 PM
> This was it. A new world opened up before me. The restrictions imposed upon my imagination by the material world were gone. My creativity unshackled, the cathedrals in my mind would be made manifest! To what lofty end should I put this new-found tool? It was obvious. The Fuck Generator.
> As simple as it was elegant, the Fuck Generator (fgen.exe) was a command-line program, and my first advance beyond “hello world”. Upon starting, it would prompt the user for a number. With this number n, it would then print out the string “fuck “, n times. Finally the user was given the option to repeat the exercise, or quit. Perhaps a little limited in use, I nevertheless was hooked on the power that I had tasted.
 
the war of the references
 
@rightfold do you generate lua bytecode out of your bytecode?
 
user1804599
Currently I plan on generating Lua source code, but if Lua byte code is well-defined and doesn't change every version then I will do that.
 
> lol >omg your funy
youtube comment under chicken hipnotization video
ah right I was supposed to study
 
12:50 PM
Why don't you just study?
 
user1804599
I'm glad Lua does TCO.
 
Because it's boring
 
@CatPlusPlus INSTAHIT
 
@FredOverflow because it's shit
 
Freedom from religion maybe
 
12:51 PM
We can only hope
 
I like teacher student talks ...
 
user1804599
It would otherwise be a goto fest that instantly breaks with non-recursive cases.
 
freddy, maybe you can use bartek for your student psychology case study ...
 
@chmod711telkitty we know. Because you're an obvious attention whore
 
@sehe right
@sehe lol the last line
 
12:52 PM
@chmod711telkitty And which side are you?
 
user1804599
Lua doesn't have anything like const, right?
 
user1804599
For immutable variables.
 
> fornicating, drug-addicted evolutionist
 
@rubenvb There is no direct equivalent operator pair to the English "neither nor" in C++. Of course you can write equivalent code but I think you can see the point I was making in the context of the OP not understanding what that equivalent code would be.
 
@FredOverflow neither ... I like fireworks ~_~
 
@chmod711telkitty The song?
 
you know what the funniest thing is? My fellow students are trying to reverse engineer the questions to understand what part of the PDF the tutor wants to be rewritten on the exam /cc @sehe
 
yeah hilarious
 
12:54 PM
amazing innit
 
I hate when students moan about exams because they think they are supposed to be studying for exams rather than, y'know, learning the subject.
 
@LightnessRacesinOrbit sure, but pointing out a language mistake by making another (well, the equivalent code bit) is a bit... cocky
Not that I don't agree with you.
 
there's stuff like "this table has to have 4 rows or it's 0 points"
 
@LightnessRacesinOrbit I love you
 
@LightnessRacesinOrbit or had to use software for release in Canada (Canadian French and English are required by law)
 
12:55 PM
@LightnessRacesinOrbit you can't pass that exam by knowing the subject
 
Friend of mine went apeshit at failing her resit exams the other week just because she'd only studied the topics that happened to appear on the original paper... and other topics from the course appeared instead. Claims it's "unfair". Like.. wha.
 
@LightnessRacesinOrbit hahaha many exams have little to do with learning the subject
 
It's stupid word-for-word memorisation or other bullshit
 
@rubenvb I wasn't talking about equivalent code, but equivalent operators, so it's not incorrect. I agree it was a bit unclear though.
 
12:56 PM
You learn the exam, the subject is more or less irrelevant
 
You just did what I hate, Cat.
 
he got to the point?
:P
 
No, he made your mistake.
I can already see that this is going to be an unproductive discussion, though
 
my mistake of what
 
I haven't made any mistake
 
12:57 PM
you've no idea how this (our) exam looks like
 
I speak from direct experience
 
I had a fucking RSA calculation test on databases exam
2
 
@Mgetz The discussion is about the UK
 
Because someone thought it would be a good idea
 
12:57 PM
@CatPlusPlus You speak from your broken analysis of the situation when you were in that experience
 
@BartekBanachewicz that's kinda sad
 
You can't win by learning the subject
@LightnessRacesinOrbit No
 
@CatPlusPlus Wait, what do databases have to do with security?
 
If RSA was in the syllabus, you should have learnt it.
 
@FredOverflow Absolutely fucking nothing
 
12:58 PM
If it was not, the exam was fundamentally broken and should have been thrown out on appeal.
 
@LightnessRacesinOrbit ahahahaha
 
@FredOverflow Absolutely loads
 
@LightnessRacesinOrbit is en-UK-YKS a valid locale... because it's basically a different language
 
You think that's possible
It's adorable
 
12:58 PM
@LightnessRacesinOrbit lol
 
@CatPlusPlus I speak from direct experience
 
you're perfectly right
 
The exam should have been taken to the toilet and put to good use.
 
it should've been thrown out
 
How about we know how this shit works in our country??
 
12:58 PM
Maybe this is a problem with the Polish education system. Perhaps all your professors have gone rogue and there is no education oversight. Am I right?
 
so what? we still have to write it
 
Yes, everything about education is shit
 
@LightnessRacesinOrbit +/-
our education system is p terrible alright
 
@BartekBanachewicz So if you turned up to a databases exam and were asked ten questions on the best places to eat in New York, you'd just do your best, come here to moan about it, but otherwise take no action?
 
I was offered an oppotunity to create a new subject material about programming basics
 

« first day (1436 days earlier)      last day (3511 days later) »