Control-P doing stuff other than Print
-
fmt.Sprintf
is completely safe to use.
-
-
There's also snprintf and (IIRC) aprintf.
And fopencookie if you've got some kind of custom buffer.
EDIT: And I almost forgot open_memstream()
-
I feel a need to reply because this caused a geniune "lol".
Good job, have 10 internets good sir.
-
Thank you, kind sir. It's always a pleasure to make people laugh by spending 2 minutes¹ in GIMP.
¹ 1:50 for finding the text tool, 10 seconds for actually adding the text.
-
Things the letter K is an abbreviation for:
- strikeout
- black
- absolute temperature
- potassium
- one thousand
- one thousand twenty-four
- lysine
- phylloquinone
- permeability
- tanker
- Dallas
-
Things the letter K is an abbreviation for:
- strikeout
- black
- absolute temperature
- potassium
- one thousand
- one thousand twenty-four
- lysine
- phylloquinone
- permeability
- tanker
- Dallas
karat/carat
Kyrgyzstan
-
WHY THE FUCK DOESN'T CONTROL-P PRINT ANYTHING!
Printing? On paper? That's old-school, but not old school enough to be cool again yet. 2015 is gonna be the year of the stone tablet.
-
Use Eclipse instead?
I have Ctrl-P mapped in Eclipse to "Show Whitespace". Because who the fuck prints stuff? It's 2015! Digital devices have been portable for some time now.
-
sprintf
I found this the other day:
$var = sprintf('%s', $var);
In perl. There are already too many other places where this idea is used but with other characters in the format string.
Why!?!?
-
old school enough to be cool again yet
I hear green bar paper could become hip again.
-
Since neither Sublime (...) actually allow printing,
WTF. It's a text editor. How does it not print.
it's currently a low priority.
Even Notepad has printing. There is an area in which you guys are beaten by fucking notepad.exe. Which is basically a rich text control in a window. With no features. Other than printing.
-
-
In case you missed it, fmt.Sprintf() allocates a string that gets automatically garbage collected.
-
Are you suggesting that plain text is for the poor?
-
Are you suggesting that plain text is for the poor?
My text's got bling, baby.
-
It's certainly not for the rich.
-
Things the letter K is an abbreviation for:
- strikeout - black - absolute temperature - potassium - one thousand - one thousand twenty-four - lysine - phylloquinone - permeability - tanker - Dallas
karat/caratKyrgyzstan
Both of which start with the letter K, so they're less interesting than the ones I gave.
(Damn, formatting is screwed up something awful.)
-
-
y = yank
TRWTF is that
vim
andemacs
both have a Yank command, but it means “copy” invim
and “paste” inemacs
...
-
fmt.Sprintf
is completely safe to use.Not sure if whoosh or shameless Go advocacy....
-
-
That's what I hate most about IDEA's standard keymap. No single shortcut uses a letter key that has anything to do with the operation being performed. I spent 4 hours creating a keymap which sane people¹ could actually remember. The whole company now uses it.
Are you willing to share? I have finally trained my fingers to some of IDEA's keys, but $DEITY, it's tough!
-
Sure. A few caveats, though:
- Most of the time, I use IDEA for PHP development, so some important shortcuts for other languages might be missing
- I don't use the US keyboard layout
- Since I never navigate menus using the keyboard, I've used the combination Alt+[Letter Key] for a lot of shortcuts.
Still want it?
-
WTF. It's a text editor. How does it not print.
it's currently a low priority.
Even Notepad has printing. There is an area in which you guys are beaten by fucking notepad.exe. Which is basically a rich text control in a window. With no features. Other than printing.
Notepad had printing in 1985 for fuck's sake. Thirty fucking years of the stripped-downest editor on the planet, and it could print right from the very beginning.And it's not a rich-text control. It's a plain old "edit" control. (Well, it was a plain old "edit" control in XP and before. YMMV on Vista/7/8/8.1/9-that's-called-10.)
-
Are you guys doing some stupid pretending to be me thing here? What is this?
-
Are you guys doing some stupid pretending to be me thing here? What is this?
Me? Not at all. I'm pretending to be me. I rant sometimes...
-
Are you guys doing some stupid pretending to be me thing here? What is this?
Rehearsing for a school play.
Seriously though, do you hold a copyright for swearing a lot and liking Microsoft?
-
Seriously though, do you hold a copyright for swearing a lot and liking Microsoft?
Yes. Yes I do.
-
Blakeyrat's true identity revealed
http://cdn.ientry.com/sites/webpronews/pictures/ballmersmash_320x245.jpg
-
Sure. A few caveats, though:
Most of the time, I use IDEA for PHP development, so some important shortcuts for other languages might be missing
I don't use the US keyboard layout
Since I never navigate menus using the keyboard, I've used the combination Alt+[Letter Key] for a lot of shortcuts.Still want it?
Hmmm. I'm mostly doing Flex/Actionscript development and a US keyboard layout, and I use the menus a lot. I'll either work my own out or learn theirs.
Thanks anyway, though!
-
As soon as I have some time to spare, I'll improve my keymap to work with both my current keyboard layout and the US layout. (Since I'm moving to the US this summer, I'll have to do that anyway.) I don't think I'll change the Alt+[Letter] shortcuts, though. In my keymap, they open the context menus for Git etc. and I like those context menus a lot more than the menus at the top of the screen. Alt+A opens the "Search for action" menu so you can access menu options which appear in none of the context menus.
If you ever finish your own keymap, let me know about it. Maybe together we can work out a sensible and – above all – consistent alternative to the stupid default one that is worth sharing with everyone.
-
Fun fact. I can print from my laptop to a multi million dollar custom built trade secret infested mega printing press halfway across the country.
No, I don't know why they set me up with that. Meanwhile I had to install the local workgroup printer myself.
-
This is nothing!!!!
Nothing I say!!!I worked on a platform that had been around for years, enough to have existed as its own OS in one iteration.... shudders.
Ctrl-S searches
Ctrl-C clones (or save-as)
F12 was the submit buttonThose are the ones I still remember.
The list was as long as there are keystrokes, almost.
-
WTF. It's a text editor. How does it not print.
....
Even Notepad has printing.
It's intended purpose is code editing, not document editing. Users will naturally want to print documents (the kind you work on in Microsoft Word). Who prints code? What are you going to do with printed source code - fold it up, put it in an envelope and mail it?
If you're doing anything with Sublime (or Notepad) that requires printing, you're using the wrong software.
I wouldn't give Notepad a bonus over another text editor for having a a feature that neither of them have any use for.
-
What are you going to do with printed source code - fold it up, put it in an envelope and mail it?
For Great GPL Compliance, of course!
-
Who prints code? What are you going to do with printed source code
I do it if I need to rewrite a bunch of code I'm not familiar with. It's far easier for me to analyze code on paper, since I can scrawl notes on it, highlight sections, circle blocks, etc. And I can lay out all 12 pages on my desk and see the whole source file at once without scrolling or being limited by screen space.
-
Notepad had printing in 1985 for fuck's sake. Thirty fucking years of the stripped-downest editor on the planet, and it could print right from the very beginning.
A program from 1985 has an obsolete feature and a program from ~2010 doesn't have it. And you're upset?
-
A program from 1985 has
an obsolete featurea feature I don't use and a program from ~2010 doesn't have it<I don't remember the last time I printed from a text editor either, but I won't let that stand in the way of a good argument
-
I do it if I need to rewrite a bunch of code I'm not familiar with. It's far easier for me to analyze code on paper, since I can scrawl notes on it, highlight sections, circle blocks, etc. And I can lay out all 12 pages on my desk and see the whole source file at once without scrolling or being limited by screen space.I AM FROM THE 13TH CENTURY
That would explain your archaic work methods. Maybe it's not your fault, maybe you're limited to archaic tooling by your work environment.
If you're working with modern tooling, printing source code is like an atrocity. Maybe if you were working on a COBOL system and you have to sift through 3000 lines of gotos that make up a sorting procedure (duplicated with slight variations in 100 different places, all of which perform worse than bubble sort, I've seen it), it could be understandable.
-
TIL that Python and C# are archaic tooling.
-
Yeah, maybe it should be able to interpret morse code too!
-
-
-
At the risk of posting an "actually,", Morse code is trinary.
-
pauses between letters? I was just thinking of the dots and dashes
-
TIL that Python and C# are archaic tooling.
Wouldn't the code be easier to navigate if you had all the editor's/IDE's functionality available to you? Try doing a Ctrl-F on your piece of paper. Or "Go to Declaration".
-
Pauses are crucial:
The following are both plausible messages, but have a completely different meaning:
SOS HELP = ...---... .... . .-.. .--. => ...---.........-...--.
I AM HIS DATE = .. .- -- .... .. ... -.. .- - . => ...---.........-...--.
-
What if I need to compare 6 long and very similar functions in a stupid 1200-line source file to figure out how I can combine them into a single one? Much easier on paper where I can see all of them at once.
-
There are definitely times when trying to work out what's happening in a 1000LOC method would be helped by being able to refer to another part of the file in a known place on my desk would be more useful than having to scroll up a few hundred lines and lose my place.