[QUOTE=BlkDucky;26032258]Ugly? I think it looks pretty slick. You can probably snip the "A thread you're following got a new post!" down to something shorter and more readable and maybe cut out the post number (or move it out of the way somewhere), though. Maybe a preview of the post underneath as well?[/QUOTE]
By ugly I mean everything about the code is ugly.
Also, I'm not responsible for the sexiness of the notification, that's notify-osd's doing.
[QUOTE=jA_cOp;26031485]git pull is for fetching remote changes and merging them with the active branch. Not sure what you mean by "sync".
To undo an earlier commit, use "git revert <commit hash>" which will revert the changes of that commit. If you don't know which commit deleted the file, you can use "git log --diff-filter=D" (you may also want to pass --summary).
If the commit in question does a lot of other changes you don't want to undo, you can check out just the file by doing something like "git checkout <commit hash>^ -- <file path>".
edit:
I think what may be confusing you is that git is distributed, unlike SVN. The repository exists locally and you can interact with other repositories by using remotes. So when you just want to restore an earlier file, the actual file contents won't actually be transferred between the local repo and the remote repo - you dig up the file from an earlier commit in your local repository, then if you want to push those changes, the remote can do the same.[/QUOTE]
I don't mean I committed the deletion.
git checkout -- <file>
should do it
[QUOTE=thelinx;26032428]git checkout -- <file>
should do it[/QUOTE]
Using tortoisegit, found a way to do it by using "check for modifications" and then reverting the delete.
With Streams in .NET, is the .Position property the position of the byte last read or the next byte to read?
[QUOTE=high;26032407]I don't mean I committed the deletion.[/QUOTE]
You should really have mentioned you were using tortoise-git. If you were using the command line interface, the solution to that would actually be right there in "git status":
[code]
# On branch master
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: test.txt
#
no changes added to commit (use "git add" and/or "git commit -a")
[/code]
Hence why I assumed you had already committed.
edit:
Thanks CarlBooth for finding it informative, at least it wasn't a complete waste of time.
Also when I write something in position X, then go back to X later on and write something else there, does it overwrite or insert itself between the stuff already written?
[QUOTE=thelinx;26031981][url=https://gist.github.com/675461][img_thumb]http://anyhub.net/file/fp-notify-lua.jpg[/img_thumb][/url]
(Linux only)
You need Lua 5.1 with [url=https://github.com/TheLinx/lstate]lstate[/url] (which in turn requires [url=https://github.com/keplerproject/luafilesystem]luafilesystem[/url]).
You also need a notify-send executable, which you can get on Ubuntu by running [i]sudo apt-get install libnotify-bin[/i].
I couldn't bother doing it with dbus and yeah it's ugly all over. Enjoy.[/QUOTE]
I hate you.
[QUOTE=geel9;26033423]I hate you.[/QUOTE]
[B]geel gonna hate[/B]
[media]http://www.youtube.com/watch?v=BEfKOBqFWzM[/media]
cleaned up screen and the code, also added inport and export, and a ugly ass menu...
Does anyone have ideas what i could change/inproove to make it bareble?
[QUOTE=bromvlieg;26033863][media]http://www.youtube.com/watch?v=BEfKOBqFWzM[/media]
cleaned up screen and the code, also added inport and export, and a ugly ass menu...
Does anyone have ideas what i could change/inproove to make it bareble?[/QUOTE]
Woah man, thats pretty sweet.
Found an old video of my RageEffect 2 game, so I decided to upload it =)
[hd]http://www.youtube.com/watch?v=vMHqJv9NNh4[/hd]
[QUOTE=thelinx;26031981][url=https://gist.github.com/675461][img_thumb]http://anyhub.net/file/fp-notify-lua.jpg[/img_thumb][/url]
(Linux only)
You need Lua 5.1 with [url=https://github.com/TheLinx/lstate]lstate[/url] (which in turn requires [url=https://github.com/keplerproject/luafilesystem]luafilesystem[/url]).
You also need a notify-send executable, which you can get on Ubuntu by running [i]sudo apt-get install libnotify-bin[/i].
I couldn't bother doing it with dbus and yeah it's ugly all over. Enjoy.[/QUOTE]
I was browsing Facepunch and my girlfriend was right next to me. She saw the notification and was like "Why is he copying your thread watcher?" I just burst out laughing.
It's cool though, glad to know I inspired someone. Any idea what it's going to become?
[QUOTE=geel9;26034488]I was browsing Facepunch and my girlfriend was right next to me. She saw the notification and was like "Why is he copying your thread watcher?" I just burst out laughing.
It's cool though, glad to know I inspired someone. Any idea what it's going to become?[/QUOTE]
This was never funny.
[QUOTE=i300;26034278][QUOTE=bromvlieg;26033863][media]http://www.youtube.com/watch?v=BEfKOBqFWzM[/media]
cleaned up screen and the code, also added inport and export, and a ugly ass menu...
Does anyone have ideas what i could change/inproove to make it bareble?[/QUOTE]
Woah man, thats pretty sweet.[/QUOTE]
This video contains content from UMG. It is not available in your country.
:byodood:
[QUOTE=geel9;26034488]Looks unbelievably like my thread watcher, girlfriends next to me and she said "Why is he posting a screenshot of your app? I burst out laughing. It's all good though, I like knowing I inspired someone. Any ideas behind what that will turn into?[/QUOTE]
fix'd
[editline]13th November 2010[/editline]
[QUOTE=i300;26034612]This was never funny.[/QUOTE]
It was. [b]Was[/b].
Like almost everything else it just got worn out because everyone kept posting it.
[QUOTE=Robert64;26033036]With Streams in .NET, is the .Position property the position of the byte last read or the next byte to read?[/QUOTE]
I believe position is the next byte to read. (Or the start of the next block, whichever way you want to think of it.)
[QUOTE=Robert64;26033093]Also when I write something in position X, then go back to X later on and write something else there, does it overwrite or insert itself between the stuff already written?[/QUOTE]
It should overwrite it.
[QUOTE=geel9;26034488]I was browsing Facepunch and my girlfriend was right next to me. She saw the notification and was like "Why is he copying your thread watcher?" I just burst out laughing.
It's cool though, glad to know I inspired someone. Any idea what it's going to become?[/QUOTE]
Did she then ask:
"Why doesn't yours satisfy me as much as [b]thelinx[/b]'s ?"
[QUOTE=yngndrw;26034744]I believe position is the next byte to read. (Or the start of the next block, whichever way you want to think of it.)
It should overwrite it.
Did she then ask:
"Why doesn't yours satisfy me as much as [b]thelinx[/b]'s ?"[/QUOTE]
Because linux users get more satisfaction out of being smug bastards. :colbert:
[QUOTE=ZeekyHBomb;26034688]This video contains content from UMG. It is not available in your country.
:byodood:
[/QUOTE]
il upload it somewhere else special for you[URL="http://carbongaming.net/gautier_part_4/"]
[/URL]
[QUOTE=yngndrw;26034744]I believe position is the next byte to read. (Or the start of the next block, whichever way you want to think of it.)
It should overwrite it.[/QUOTE]
Thanks :smile:
[URL="http://carbongaming.net/gautier_part_4/"]Here you go[/URL]
[QUOTE=bromvlieg;26033863][media]http://www.youtube.com/watch?v=BEfKOBqFWzM[/media]
cleaned up screen and the code, also added inport and export, and a ugly ass menu...
Does anyone have ideas what i could change/inproove to make it bareble?[/QUOTE]
• file-menu, possibly with preview
• ability to select multiple gates to move a group (by holding down ctrl or something), possibly also by dragging a selection-rect and all gates inside will be selected
• different colors for gate input, output and buttons
• a pause/stop button to halt (and resume :P) the simulation
Did you already implement Lua-scripting? If so, could you post the code of one of the gates? I'd specifically be interested in the indicator, since it changes its appearance, and some gate that has an output.
Almost finished chunk saving in Lewt except there is an extra byte being written when saving a clothing item and I can't find what's writing it :sigh:
Just finishing a great birthday :D, not sure if I can bother to code on my game today.
Screw it, anyone have some good resources on collision detection in C++? I am also using SFML if that matters
I just realized a cell is exactly like a computer. The nucleus is the processor (DNA is the ROM?) vacuole is the RAM/HDD, mitochondria/chloroplasts are the batteries/PSU/solar panels, the ribosomes/ER are little wires and data, and the cell wall/membrane is the case.
You must have been REALLY bored to come up with that :v:
[QUOTE=neos300;26036462]I just realized a cell is exactly like a computer. The nucleus is the processor (DNA is the ROM?) vacuole is the RAM/HDD, mitochondria/chloroplasts are the batteries/PSU/solar panels, the ribosomes/ER are little wires and data, and the cell wall/membrane is the case.[/QUOTE]
[url]http://www.facepunch.com/threads/1025681-Cell-is-like-a-CPU-Analogy-Project[/url]?
I'm actually doing a cell analogy project right now, for freshman biology class :\
[QUOTE=Xerios3;26034311]Found an old video of my RageEffect 2 game, so I decided to upload it =)
[hd]http://www.youtube.com/watch?v=vMHqJv9NNh4[/hd][/QUOTE]
Sorry, but whats the name of that song? Shazam doesn't tell me anything.
[QUOTE=Robert64;26036212]Almost finished chunk saving in Lewt except there is an extra byte being written when saving a clothing item and I can't find what's writing it :sigh:[/QUOTE]
Search all your files for any write operations, also some of your arrays could be a little too big.
[QUOTE=DeadKiller987;26036914]Sorry, but whats the name of that song? Shazam doesn't tell me anything.[/QUOTE]
Bliss n Eso - Addicted
Sorry, you need to Log In to post a reply to this thread.