« first day (1626 days earlier)      last day (3327 days later) » 

5:00 PM
If you can't then something is holding a lock on it, which means you have some git process that didn't exit or you're using VS git integration or something
 
Can you remove that .swp file manually?
It sounds like the typical Windows file lock fuckup.
 
swp is vim, so you've got the editor still open
 
Something's keeping it open, I can't delete it manually
 
Yep, Windows file lock fuckup.
So awesome.
 
There needs to be a process for the lock :v
Look at the process list
 
5:01 PM
@AndyProwl You sure there's no vim open?
 
Ok, I probably have the editor open
But I don't know this linux-like environment
 
probably
 
Everything has to be done through the keyboard and I don't know the shortcuts
 
It's vim, no?
 
Yes
Or whatever I don't know
 
5:02 PM
Press Escape a couple times, then :qa!
 
I killed the whole git bash
now I could delete the file
So yes it was the editor
 
lol, Objective-C took the lvalue and rvalue concepts... and then didn't make them useful
 
lol you backgrounded it
 
Now I just need to get my snapshot back and never ever try to edit the history again until I read a book or something
@CatPlusPlus Is that what Ctrl+Z does?
 
@AndyProwl Now you can probably rebase --continue.
 
5:03 PM
@AndyProwl Yes
 
I backgrounded it
 
@R.MartinhoFernandes Nah, there shouldn't be any rebase in progress
 
When I do that stuff, after doing the amending or whatever, I just do Escape and then capital Z twice. That saves and closes.
 
I tried Ctrl+C, Ctrl+D, Ctrl+Z... it disappeared
 
@CatPlusPlus He did edit, and then amend by hand..
 
@Cat's right, no rebase in progress
 
Editor exited with an error, so that attempt was aborted
 
Now I wonder if my files are up to date
 
Oh.
Nevermind.
 
Just remove the empty rebase-merge directory
 
5:05 PM
I did that yes
 
@BartekBanachewicz Weird, any change to the OpenGL context results in a segmentation fault.
Even though GLFW is initialized correctly and the window too.
 
I guess my snapshot should now be consistent with my latest push?
 
908
A: How do I make git use the editor of my choice for commits?

digitaldreamerIf you want to set the editor only for Git, do either (you don’t need both): Set core.editor in your Git config: git config --global core.editor "vim" Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim If you want to set the editor for Git and also other programs, set the standa...

You can set it to notepad or some shit.
 
@Jefffrey Make it current
 
@CatPlusPlus I am, with GLFW.makeContextCurrent $ Just window
 
5:06 PM
@AndyProwl Probably, check commit IDs
 
@R.MartinhoFernandes I don't have any command-line editor of choice unfortunately. I'm just illiterate.
 
All recent commits can be reached through reflog if you fuck a rebase up or something
 
git --log gives me the list of commits I see on GH too
 
@AndyProwl No need to be command-line.
220
A: How do I use Notepad++ (or other) with msysgit?

zumalifeguardgit config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" Or, for 64-bit Windows and a 32-bit install of Notepad++: git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -no...

 
omg Lounge<Git>
quit spamming, robat!
 
5:08 PM
Terminal UIs are shit
 
@R.MartinhoFernandes Oh
 
@AndyProwl In fact, I use gvim.
 
Get SmartGit or something
 
@R.MartinhoFernandes Thank you
I think I'm gonna try that history editing once more
I need to get this right come on
 
5:09 PM
I only use a terminal editor when SSHing.
I wrote a function that doesn't fit on screen.
It's like everything in this code is ThePhDy.
 
@R.MartinhoFernandes X-Forwarding kills that necessity ;)
 
precompiled headers should burn in hell (when they are in-use without you knowing about it)
 
@gha.st I wasn't too happy with Xming.
 
X forwarding is worse than terminal UIs
I'd rather manually copy the file back and forth than wait 5 seconds for every screen refresh
 
5:11 PM
Terminal vim is quite good. It just doesn't look as nice. It even supports the mouse.
 
@R.MartinhoFernandes Have you tried sshing from inside cygwin with a running x-server?
 
I don't cygwin.
 
terminals are the shiznit
 
ggrrgh
so apparently it doesn't like the path to the editor
 
It's really just font and colour support that makes terminal vim inferior to the graphic one.
 
5:13 PM
it cannot contain spaces, I presume
 
@AndyProwl There's a comment saying they had to use escapes.
I had to use: git config --global core.editor "c\:/Program\ Files\ \(x86\)/Notepad++/notepad++.exe -multiInst -nosession -noPlugin" ...not sure why. — David Faivre Feb 12 '13 at 19:34
Alternatively you can just PATH it.
 
All right, I managed
Now where am I supposed to type those commands?
 
Oh, so I edit the commit messages, close the editor, then type those commands?
 
Wait, which commands?
 
5:14 PM
Which commands
 
# Commands:
#  p, pick = use commit
#  r, reword = use commit, but edit the commit message
#  e, edit = use commit, but stop for amending
#  s, squash = use commit, but meld into previous commit
#  f, fixup = like "squash", but discard this commit's log message
#  x, exec = run command (the rest of the line) using shell
This appears in my text editor
 
No, they're inside the file you're editing
Everything is pick by default
 
@AndyProwl There should be a list of commits with pick before them. Change pick to what you want in the commit you want.
You want reword.
 
Wow this looks really intuitive
 
@R.MartinhoFernandes Ok, I'm getting closer. Now I guess I should save that file?
It asks me where do I want to save it...
 
5:16 PM
@LightnessRacesinOrbit Nothing about git is.
@AndyProwl wut
 
@R.MartinhoFernandes huh I might stop recommending it to people then
 
Shouldn't.
 
@R.MartinhoFernandes I hit Ctrl+S, it asks me where do I want to save that file
 
Mercurial is better
 
5:16 PM
What's that editor?
 
EditPlus 3
Have I fucked up something again
Seems so
 
Get a GUI like SmartGit
Or something
 
lol "smart git"
 
@CatPlusPlus I thought of it, but then I thought that if I want to call myself a programmer I should be able to edit a word in an old commit message using the command line tool
I don't think I'm gonna call myself a programmer after all
 
5:19 PM
@AndyProwl It always launches the editor with an existing file. And usually saving on a text editor just saves to the same file. No idea what you're witnessing.
 
@R.MartinhoFernandes I thought it would work that way
 
Does the editor say you have a specific file open, or a "new file"?
 
[cradles his tortoisehg]
 
If your editor is not on the list it's a bad editor
 
@R.MartinhoFernandes I don't know. I closed the editor, saved the file to my desktop, now I'm back to bash, typed git rebase --abort, got no rebase in progress?
 
5:20 PM
Works for me with notepad2.
@AndyProwl Oh.
 
This is just frustrating
 
I get it.
If you try it again, when the editor opens, is the terminal waiting, or back to the prompt?
 
Oh wait, so the editor is indeed editing an existing file, but when I try to save it, for some reason it asks me where and points me to another folder by default, as if it did not have permissions or something
 
Because it detaches itself
How rebase -i works is that it opens up the editor and waits until editor process exits
If it's wrong process or whatever then the rebase will execute with defaults, i.e. do nothing
 
@AndyProwl If the editor detaches from the console, it returns immediately and git will just proceed and then remove the folder.
Some editors accept flags to not detach. Others just don't do it.
 
5:23 PM
@R.MartinhoFernandes Yep, it seems that's what happened. The merge-rebase folder was not present, which is why the "Save as..." dialog popped when I tried to save
 
4 mins ago, by Cat Plus Plus
If your editor is not on the list it's a bad editor
 
So I re-created the folder manually and saved the file
 
That won't do anything
 
@AndyProwl The rebase process is long gone.
 
Yeah, git rebase --continue is giving me rubbish
 
5:25 PM
Basically the editor wants to run "asynchronously" and rebase won't wait for it.
 
All right let's reconfigure it to use notepad
 
You don't need to use --continue unless there are conflicts to fix
 
@CatPlusPlus Or you're editing.
 
For editing commit messages you'll just get editor for every one of them
 
lol notepad does not show and line returns
goood I'll never sort this out
 
5:26 PM
Notepad is shit
 
@Jefffrey sounds like badly initialized FN pointers
 
Possible
 
Let's install some other editor
 
Notepad2 is a nice notepad replacement.
 
grrrr
So I installed Notepad++, which does show the newlines and also runs synchronously.
I save the file, close the editor, git does something and pops up the editor again
 
5:31 PM
@AndyProwl Now you change the commit message.
As you would normally.
 
And now there's the same file as before, except the first line with the commit I want to reword is gone, and a new empty file is also open in a separate tab. If I type the commit text there and close the editor, git works for a while and then... nothing's changed.
 
@AndyProwl Wait what?
 
Oh.
Notepad++ is opening the previous session.
 
Goddamnit
I swear this is driving me crazy :D
 
5:32 PM
Add these fagls to the invocation -multiInst -notabbar -nosession -noPlugin
They should make sure it only opens the one file.
(From the answer I linked above; I don't use NP++)
 
gvim master race
 
user1804599
Vim is very nice.
 
OMG IT WORKED
Thank you so much @R.MartinhoFernandes and @CatPlusPlus
 
5:36 PM
Well
The history is full of bullshit commits now so I've definitely messed up, but I guess I can't do better than this
I need to remember to never get a commit message wrong ever again
 
Why the fuck every single app ever has to be a fucking singleton.
 
When I run a program two times, I expect two processes to be launched.
 
user1804599
@AndyProwl No problem, my friend.
 
lol
 
user1804599
5:40 PM
So I had this wonderful idea.
 
Not the browser behaviour "launch a program if it's not launched, otherwise show me the other window I already launched"
 
user1804599
Requires synchronisation of config files, cache files etc for something very few people care about.
 
...which are not changed for 99% of the time?
 
user1804599
The additional complexity isn't worth it.
 
@райтфолд I think that's oversimplified. certainly true for some programs, but most should just fucking work if launched twice
Oh no, you'd like to edit two text files at once, in two separate editor processes? WHO WOULD'VE THOUGHT!
 
5:43 PM
On Android, they thought it's such a great idea that they made every single app a singleton.
 
that's not a singleton, that's a multiton with a limiting mechanism on top
I doubt you can't spawn two identical processes with root access
 
> multiton
 
well dunno what to call it
 
I think the technical term is "metric fuckton"
 
user1804599
@AlexM. you can't.
 
user1804599
5:45 PM
Two identical processes would have identical PIDs which is impossible.
 
why can't you isn't this like linux
he means something else :P
 
user1804599
You can run the same program twice, though.
 
that's what we were talking about I think
 
user1804599
In the behaviour he describes, you also do, but the program checks and exits immediately.
 
user1804599
So you're just running it for a very short amount of time!
 
5:48 PM
Sublime Text has the singleton behaviour. Following the discussion, I tried to make it so it'll be my default git editor, without luck.
 
user1804599
@milleniumbug ST as EDITOR worked fine for me.
 
If I have a Sublime Text running already, I have to close it too.
 
why do you call it a singleton behavior
 
user1804599
There's a flag you can pass to subl.
 
@BartekBanachewicz I've removed the FN interface and it still gives segmentation fault.
Weird.
 
5:48 PM
wait
did me capitalizing FN accidentally meaned something to you
 
Foreign interface
 
shit
i meant "function"
uh
 
user1804599
What is FN?
 
also wait
 
user1804599
Fuck Nazis?
 
5:50 PM
Hate works for you but OpenGL doesnt?
 
How do you get from FN to foreign interface
 
If I clear a buffer,everything is fine
If I set something using $=, then it segfaults
and it seg faults
@CatPlusPlus ForeigN
 
Makes sense
 
user1804599
FFI
 
Man I feel weak today
 
5:51 PM
@AlexM. Because you can't have more than one instance.
 
I need to finish this shit
 
user1804599
I prefer "Alien Function Interface."
 
user1804599
AFI, like API and ABI.
 
@Jefffrey maybe that's the new StateVar broken
 
Xeo
> While the details of the city were off, this is exactly what driving in Amsterdam is like. Cars going way too fucking fast and hitting everything in their path, all drivers thinking the road is theirs and theirs alone. Cyclists engaged in a mass exodus to the rural parts of the country, and pedestrians had to evolve Spider-Man powers to swing from building to building in order to avoid the murderous cars. We sometimes plant down steel trees that damage the cars that hit them, but nothing can stop them. Even if we destroy them by the millions they all come back, hungry for speed and blood
hahaha
 
5:52 PM
@BartekBanachewicz But that didn't give me any issue before
 
user1804599
s/pivot/piwo/g
 
I got the window opening and clearing the buffer
I'm stupid
I thought you meant the TQueue thingy
Also I'm using the version of OpenGL that you are using
OpenGL >= 2.9 && < 2.10,
 
@milleniumbug yes you can, if you run as root
 
4 mins ago, by Bartek Banachewicz
Hate works for you but OpenGL doesnt?
 
I think I'm missing something silly, like glInit
 
5:55 PM
no such thing
GLFW init should do that
 
ikr
 
@Jefffrey wait where's your engine used there
am I missing something
main :: IO ()
main = initGame >>= play
initGame = do
    GL.blend $= GL.Enabled
 
@BartekBanachewicz play calls withEngine
 
@Jefffrey and initGame calls ($=). It's executed before play.
 
@Xeo im laugihn
ahaha
oh god
 
Xeo
5:57 PM
Cr1tikal is great.
 
user1804599
$= is a variable in Perl.
 
user1804599
It represents the current page length (printable lines) of the currently selected output channel. The default is 60.
 
user1804599
> Mnemonic: = has horizontal lines.
 
user1804599
:(
 
@BartekBanachewicz shit
Good catch
 
5:58 PM
@Jefffrey lmao
gogo fix it
 
@Xeo am i the first person to ever come last here
oh god
 
@BartekBanachewicz Also I hope that from shader version 430 to 330 nothing relevant changed. :P
 
user1804599
oh god that language feature: perldoc.perl.org/functions/format.html
 
Because I'm currently using some basic 430 shaders, just with 330 version descriptor
 
6:05 PM
@Jefffrey uh
 
Don't worry
 
user1804599
@Jefffrey ok! I won't worry!
 
Be happy instead.
 
Now, I need to find out how do I run subl on Windows
 
@Jefffrey some things might be supported
 
6:17 PM
@Xeo the amsterdam thing was funnier because the game was a joke too
 
Xeo
The char creation just brought me to tears.
 
user1804599
Alright, awesome.
 
user1804599
Raw string literals are a library feature in Mill!
 
is Mill your new language?
 
no
it's his old language
because it's older than a week
 
6:26 PM
oh
 
user1804599
@AlexM. Yes!
 
user1804599
A few programs already compile and run! You should check it out!
 
@райтфолд do you have an EASY way to compile and run things? or do I need a specific Linux distro and stellar alignment to do hello world?
 
user1804599
You need to clone git@github.com:rightfold/baka.git to $HOME/baka and you need LLVM and Boost installed as well as a C++14 compiler and Perl.
 
SJD
Sup!
How can I get thread if having the instance of thread? (thread is not running)
 
user1804599
6:38 PM
Then it should work fine.
 
SJD
As I know there is pthread_self() function inside thread
but, outside of thread running process, any solution for finding id? tx in advance.
 
@райтфолд missing Perl :P
 
user1804599
And you have to install the Modern::Perl module from CPAN.
 
user1804599
I also make use of POSIX functions right now.
 
user1804599
So it probably won't work on Windows.
 
user1804599
6:40 PM
Also, the build system needs Python 3 and AWK.
 
@AndyProwl like this?
 
@SJD std::thread::get_id
 
@JohanLarsson Sort of :P
 
SJD
@Pris that's in C++. I got it. What about C?:D
 
Actually the mistake in my commit message wasn't that bad, I just wrote "renamed" instead of "rename". FWIW, the mess I ended up causing in the history is much worse. But I guess I learned the lesson: be careful when writing commit messages.
 
6:44 PM
@SJD Nobody here knows or cares about C.
 
user1804599
So basically, these are the dependencies of Mill: AWK, Baka, Boost, C++14 compiler, LLVM, Modern::Perl, Perl 5, Python 3 and Set::Scalar.
 
SJD
^_^ It's a great challenge to know in deep both C/C++.
@Puppy and why not?
 
because knowing C is pointless, so it's a great challenge to motivate yourself to waste time on it.
 
SJD
well at least in real world there are enough C written programs.. so:D
 
I try to avoid thread ID's anyway. I don't need them, don't want them.
 
6:46 PM
Gees. The dupe-hammer is nice. Except when people are ignorant lazily disputing it.
 
user1804599
> Two officers involved in the investigation into the notorious website Silk Road during that investigation supposedly stolen bitcoins.
 
user1804599
hahahaha
 
@SJD "How can I get thread if having the instance of thread?" - what?
 
user1804599
blame Google for crappy translation
 
@райтфолд original/sauce?
 
user1804599
6:47 PM
@sehe ANP
 
I thought that "sauce" was something people only said on porn boards on 4chan
 
@BartekBanachewicz Holy shit it almost works
 
@Puppy possible. It's been used here for some months now. Mind if I join?
 
SJD
@sehe having a simple declaration: pthread_t myThread. Want to find out it's id.:D
 
join what?
 
Xeo
6:49 PM
@Puppy "sauce" is used all over the place
 
Debugging OpenGL sounds fun
 
@SJD That's been solved for you. Next time, focus on getting the question right instead of fast?
 
> GL: Error InvalidOperation "invalid operation"
 
@Puppy in the habit of saying "sauce" for "source"
 
inb4 "GL: something bad happened"
 
6:50 PM
@sehe Yes.
@sehe Probably just shows how much time I spend working instead of Lounging
 
SJD
@sehe nope. That wasn't solved. that was in C++.. But it's fine if nobody cares about C
 
@SJD try the C room
 
@SJD duh. man pthreads(7)? Also, what "id" do you seem to expect?
 

« first day (1626 days earlier)      last day (3327 days later) »