WTF Bites
-
@boomzilla it makes about as much sense as any other git command. I genuinely had no Idea it wasn't re flog until quite recently
-
It usually takes a while (up to a week) before commits are garbage collected.
It takes at least 90 days, unless reconfigured (
gc.reflogExpire
option).
-
@heterodox said in WTF Bites:
git reflog
is one of the best things Git hasAnd there is an even less discoverable subfeature of that. If you say
git reflog @{now}
, it annotates the entries by time when you switched to the commits rather than numbers. The syntax is, unfortunately, retarded (no, there is no option to get that effect).
-
And there is an even less discoverable subfeature of that. If you say git reflog @{now}, it annotates the entries by time when you switched to the commits rather than numbers.
WHAT. That’s awesome but how is that syntax at all intuitive? I can’t think of any other command that’s like that.
-
@heterodox said in WTF Bites:
WHAT. That’s awesome but how is that syntax at all intuitive? I can’t think of any other command that’s like that.
git stash show stash@{1}
it's kind of similar. but yeah, that's weird.
-
@boomzilla said in WTF Bites:
@jaloopa I, too, cannot read
reflog
any other way thanre-flog
.It's short for "reference log".
-
-
@lb_ that looks like one of those things that would put something unclickable in front of a Twitter tweet iframe and when you clicked on the button it would tweet some bullshit.
-
@heterodox said in WTF Bites:
but how is that syntax at all intuitive
Well, it isn't.
git stash show stash@{1}
The thing is you can also write
master@{1}
orHEAD@{5.minutes.ago}
¹ ormaster@{May.31}
. And not just for stash—everywhere a revision is expected. It is how you refer to the revisions remembered in the reflog—because stash is actually just storing the revisions in the reflog of a (not-so-)special branchstash
. AHEAD@{now}
is just a special case of the relative time variant and@{now}
is just a shortcut forHEAD@{now}
(becauseHEAD
can be omitted in many places in refspecs).That does not make the logic that it prints time if and only if you used the time-based syntax to select the branch any less retarded.
¹ I often use
gitk @{5.minutes.ago}..
just after pull to see what was pulled.
-
-
@tsaukpaetra Unfortunately, the crystal ball has not been integrated yet. They are still having problems with the mind-reading module giving too much weight to what the mice think.
-
@tsaukpaetra said in WTF Bites:
Ah! But can you do HEAD@{1.minutes.from.now} ?
At least have the courtesy of buying' em a drink first.
-
@boomzilla said in WTF Bites:
@jaloopa I, too, cannot read
reflog
any other way thanre-flog
.It's short for "reference log".
git-reflog - Manage reflog information
Nice of them to put that up front in the synopsis then
Reference logs, or "reflogs", record when the tips of branches and other references were updated in the local repository. Reflogs are useful in various Git commands, to specify the old value of a reference
So. Much. Jargon.
Seriously, it's very hard to tell a genuine git manual entry from one of those generators
-
vim good? idk, whatever. reading this made me
The "Zen" of vi is that you're speaking a language. The initial
y
is a verb. The statementyy
is a synonym fory_
. They
is doubled up to make it easier to type, since it is such a common operation.sure
This can also be expressed as
dd P
(delete the current line and paste a copy back into place; leaving a copy in the anonymous register as a side effect).ah yes, productive. I bet even atom implements copying in a non-crazy way.
-
responder in linked article by @bb36e said in WTF Bites:
delete the current line and paste a copy back into place; leaving a copy in the anonymous register as a side effect
So... There's no shortcut to just copy the current line into this "anonymous register"?
-
-
I've been using Vim for years, mostly because I can't figure out how to exit it.
-
@pie_flavor said in WTF Bites:
I've been using Vim for years, mostly because I can't figure out how to exit it.
Filed under: Someone had to...
-
-
except you get no opportunity to actually do it
What the hell are you talking about? Just run the command it gives you with a new branch name.
-
-
-
@pie_flavor said in WTF Bites:
Try getting that stuck in the shredder.
Try cutting it off before it gets pulled in anyway.
-
@pie_flavor said in WTF Bites:
Try getting that stuck in the shredder.
Try cutting it off before it gets pulled in anyway.
The elastic at the back of the neck should snap fairly easily.
-
@pie_flavor said in WTF Bites:
Try getting that stuck in the shredder.
Try cutting it off before it gets pulled in anyway.
The elastic at the back of the neck should snap fairly easily.
What elastic?
-
@wharrgarbl said in WTF Bites:
https://www.cnet.com/news/rat-cafe-san-francisco-dungeon-pop-up/
The good ideas thread is
-
@ben_lubar Yeah, I was TR, I thought the commit was just gone immediately until @dkf pointed me towards git reflog. I still maintain that the output wasn't very helpful, though.
-
-
In my bank, I have a small loan open. When I took it, I got a payment schedule and an advice from the teller that if I wanted to pay the loan off earlier, partially or fully, I should go to the bank and sort it out in person.
However, when I checked my account online, it turned out that the bank does generate a separate account for the loan, with its own number, balance and everything. So I wired a small amount for testing purposes to the account number - and sure enough, the amount due decreased. "Hey, that's convenient" - I thought - "if I ever have a surplus in my budget I can just send it over to that account and get the loan paid off earlier".
And so I did a few times, and it seemingly worked well. Until I visited my family and picked up the mail, including some ten different letters from the bank.
Sure enough, the bank does book the money sent to the account as loan payments (specifically, as paying off the last installment). However, every single transaction requires the bank to generate a wholly new payment schedule, put it in print along with a letter explaining that they booked my payment of one dollar, have someone in the bank sign the letter personally, and then send it over via snail mail. Efficient!
-
@maciejasjmj said in WTF Bites:
Sure enough, the bank does book the money sent to the account as loan payments (specifically, as paying off the last installment). However, every single transaction requires the bank to generate a wholly new payment schedule, put it in print along with a letter explaining that they booked my payment of one dollar, have someone in the bank sign the letter personally, and then send it over via snail mail. Efficient!
That's amazing!
You should totally do it every month!
-
@maciejasjmj said in WTF Bites:
In my bank, I have a small loan open. When I took it, I got a payment schedule and an advice from the teller that if I wanted to pay the loan off earlier, partially or fully, I should go to the bank and sort it out in person.
However, when I checked my account online, it turned out that the bank does generate a separate account for the loan, with its own number, balance and everything. So I wired a small amount for testing purposes to the account number - and sure enough, the amount due decreased. "Hey, that's convenient" - I thought - "if I ever have a surplus in my budget I can just send it over to that account and get the loan paid off earlier".
And so I did a few times, and it seemingly worked well. Until I visited my family and picked up the mail, including some ten different letters from the bank.
Sure enough, the bank does book the money sent to the account as loan payments (specifically, as paying off the last installment). However, every single transaction requires the bank to generate a wholly new payment schedule, put it in print along with a letter explaining that they booked my payment of one dollar, have someone in the bank sign the letter personally, and then send it over via snail mail. Efficient!
Given the warning, I'm surprised there wasn't something like a prepayment penalty attached if you didn't do it right.
-
@blek The output told you what to do. Had you done what it said, you would have had a branch with your commit. How was that not helpful?
-
@boomzilla said in WTF Bites:
@jaloopa I, too, cannot read
reflog
any other way thanre-flog
.It's short for "reference log".
Fuck off dickhead. Obviously I know that, but re-flog is funnier.
-
Registered for a 30-day trial of Intel's VTune whatever. That's fine, thanks for the trial serial number.
Now, when did I sign up for newsletter-anything-at-all? I'm usually very fastidous about these kinds of things. Whatever, that's not the WTF byte.
No, the WTF is that in order to subscribe, I first had to fully subscribe (giving Intel the apparent signup country to boot), then wait for the confirmation that I signed up, then finally unsubscribe.
O.M.G.
-
So, I had to poke some life into VMWare again. Not my preferred VM solution as I'm used to VirtualBox, but it's what's preinstalled on the computers here. As expected, I got a notice there was an update available. So I want to check for more information so I can update.
Well, VMWare has made a combo update and upgrade to pro notification box. Which sends me to the product page for Workstation for Windows. I'm running Linux. So I guess VMWare is as good at porting their products to Linux as Microsoft is!
And I forgot about the fact that I have to go directly to the downloads section to download the free version, as the product pages just try to get me to purchase the pro versions.
-
-
Whatever you say, Visual Studio.
-
So, I had to poke some life into VMWare again. Not my preferred VM solution as I'm used to VirtualBox, but it's what's preinstalled on the computers here. As expected, I got a notice there was an update available. So I want to check for more information so I can update.
Well, VMWare has made a combo update and upgrade to pro notification box. Which sends me to the product page for Workstation for Windows. I'm running Linux. So I guess VMWare is as good at porting their products to Linux as Microsoft is!
I take it QEMU is out of the question? flrrd
Filed Under: I don't actually dislike QEMU, but I can see why it wouldn't be the best choice for most use cases.
-
@scholrlea Yeah, I need a VM I can export to Windows computers and to be used by less skilled people. Qemu does have that little of issue of not being as user-friendly as VirtualBox and VMware.
-
@scholrlea Yeah, I need a VM I can export to Windows computers and to be used by less skilled people. Qemu does have that little of issue of not being as user-friendly as VirtualBox and VMware.
You should be able to pack of all up with an App packager like Thinstall or something so all they do is double-click.
Then again...
-
God dammit Windows could I shut my computer down so I can leave for my next class?
-
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
-
@anonymous234 said in WTF Bites:
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
Right, and just carry it in a backpack with the hard disk still spinning. I've lost a drive that way.
Yeah, sleep mode, but maybe I want to store it for an extended period of time and not have it just run out of power.
-
-
@anonymous234 said in WTF Bites:
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
If I don't leave mine fully powered on 24/7, it won't come back on again. I can't even reboot it for updates.
-
@pie_flavor said in WTF Bites:
hard disk
throw it in the trash and buy another computer
Any particular reason? Unless this is an SSD joke in which case I have both.
-
@anotherusername said in WTF Bites:
@anonymous234 said in WTF Bites:
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
If I don't leave mine fully powered on 24/7, it won't come back on again. I can't even reboot it for updates.
How did you discover this, if by the very nature of this discovery the computer became permanently turned off?
-
@pie_flavor said in WTF Bites:
@anotherusername said in WTF Bites:
@anonymous234 said in WTF Bites:
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
If I don't leave mine fully powered on 24/7, it won't come back on again. I can't even reboot it for updates.
How did you discover this, if by the very nature of this discovery the computer became permanently turned off?
Both times I've done so, over the course of fiddling with it for several days I've eventually managed to get it to come back on, although no single thing that I've done seemed to "fix" the issue, nor have any combinations of things I tried. There's more in the Status thread of you're interested.
-
@anotherusername said in WTF Bites:
@pie_flavor said in WTF Bites:
@anotherusername said in WTF Bites:
@anonymous234 said in WTF Bites:
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
If I don't leave mine fully powered on 24/7, it won't come back on again. I can't even reboot it for updates.
How did you discover this, if by the very nature of this discovery the computer became permanently turned off?
Both times I've done so, over the course of fiddling with it for several days I've eventually managed to get it to come back on, although no single thing that I've done seemed to "fix" the issue, nor have any combinations of things I tried. There's more in the Status thread of you're interested.
Forgot I muted that.
Also, have you tried turning it off and turning it on again?
-
@pie_flavor said in WTF Bites:
@anotherusername said in WTF Bites:
@pie_flavor said in WTF Bites:
@anotherusername said in WTF Bites:
@anonymous234 said in WTF Bites:
@pie_flavor said in WTF Bites:
shut my computer down
! You're supposed to leave it on or in "sleep" 24 hours a day so it can wake up in the middle of the night to reboot.
If I don't leave mine fully powered on 24/7, it won't come back on again. I can't even reboot it for updates.
How did you discover this, if by the very nature of this discovery the computer became permanently turned off?
Both times I've done so, over the course of fiddling with it for several days I've eventually managed to get it to come back on, although no single thing that I've done seemed to "fix" the issue, nor have any combinations of things I tried. There's more in the Status thread of you're interested.
Forgot I muted that.
Also, have you tried turning it off and turning it on again?
:fry_stare:
Filed under: Emoji Request