Lynne is the creator of Key Values, a website that helps engineers find teams that share their values. She lives in San Francisco, is an Iron(wo)man, and loves meeting new peeps!
Location
San Francisco
Education
MIT'10 Brain and Cognitive Sciences, UCSF'12 Neuroscience
Regex. While I understand how it works and how it can be used, it's difficult for me to memorize the right regex that should be used at every point. So I just google whenever I want to make use of it. :)
Software Developer, Coffee Glutton, Quality Lover
▫◽◻⬜◻◽▫
My name is Tiago Marques and I am curious. I try to learn more about everything, and seek solutions to the problems around me.
Location
Aalborg, Denmark
Education
University College of Northern Denmark (UCN) | CS💻</>
It's funny in my case. I know enough regex to get by, but I generally need to google to find out how to actually apply it.
Do I need RegExp.prototype.test or String.prototype.match in JS? What are the order of parameters in preg_match in PHP? What are the little parentheses things called in .NET, captures or groups?
Every once in a while my postgres server isn't running and I know to punch that into my browser and land on this Stack Overflow question, where I proceed to copy this command into my terminal:
So did I then I realize how many precious minutes of my life I'm losing so I decided to buy a domain for 75 cents mycodesnippets.space :) I write things down little by little as soon as I need it the first time or I risk to never do it by lazyness !
I am a student who loves to contribute and develop in projects.Currently trying to create something that can give purpose to a huge community of developers. I hav no idea what it would turn out to be
I figured out how to remember it. To create tar, use c option and for extracting replace c with x ==> $tar will remain same for both Lol :) . tar -cvf filename.tar file/dir_path && tar -xvf filename.tar.
Started learning to program seriously early 2017, cofounded a web company, did that for a bit and then life changed and we closed that down and I moved into Sr. Ops Mgmt and Project Mgmt.
I would be responsible for 95% of hits coming from google search into the Tutorialpoint's html5 minimal template. Now I could easily type it in every time I set up a new page, but it is now a matter of extreme laziness I think.
How to find out which process is listening on a certain point on my mac. I'm often switching between projects, and have a server from another project running on a port that I now need for another server.
And it looks like Heroku's CLI doesn't always stop all processes correctly when you stop it using ctrl+c
I got a good way to remember argument order for ln:
Destination is optional so it must go second.
By default ln creates a link with the name of the source in the current directory.
Many moons ago, at one of my first jobs, I got myself in trouble with this. I was editing something in prod without knowing how to save or exit. I was a windows nt guy mostly. So, like one does, I hard-rebooted the server instead of asking for help... After the dust cleared, my boss made me sit at a keyboard for over an hour launching vim and learning how to at least save and exit. :) I have :wq, :q,:q! burned into my muscle memory to this day...
Yeah. For some reason I really find some git procedures harder to memorise than others. It's ludicrous the number of times I've googled "git unadd a file" and "git reset branch to remote"
Professional developer for twenty years. Team lead, technical lead.
What I love is to code stuff. I appreciate pair programming. I think software design is important. I also love to debug code.
I don't have to Google the spelling, but I'd say 99% of the time I type "valud". I say it correctly as "val-id" and only mistype because of the QWERTY keyboard layout. This is the only word that I consistently type incorrectly. It's not a speed thing (like "teh"), because it happens when typing slowly as well. I've been typing for a really long time and I'm beginning to think my brain just thinks this is a funny prank.
Building websites/apps for almost 20 years. Full-stack, Ruby + Rails since 2006. Hobbiest woodworker, maker, husband and father of two. Callsign W6AKJ.
Find a file in Linux. I know it involves "find" and "name" but I have to look up the exact syntax each time. (For reference, the sledgehammer version is find . -name testfile.txt from the root of the drive.)
Argument orders in all array functions in PHP for me. That's just horrible. VSCode gives hints though, so that helps. I still have to look up the exact names of functions regularly, though.
Updating the list of git remote branches. It doesn't refresh when you sync so it will continue to list remote branches that don't even exist anymore until you manually run the command below. (Which I had to google again to put in this comment.)
Born, raise in Tijuana, MX. With a degree in Philosophy, have worked as janitor, sales person, pizza delivery boy, teacher, press operator, prepress, desktop Publisher, and for the last 19 years dev
Freelance System Operations/DevOps Engineer from Belgium. Mostly working AWS and Kubernetes. Also have some experience with Python, and learning some Golang when I find the time.
Everything! 🤪
But seriously, I think I do a lot of Googling (and looking at Documentation - same thing?) for things which are new or I'm uncertain of or if I'm working with an SDK like Firebase.
Is that the way I'm supposed to do it? 😂 I'd rather get things right first time rather than get it wrong and THEN Google. Sounds like the other things people Google are a lot more advanced. 😳
Experienced ASP.NET developer passionate about learning Software Engineering, being an effective team member, and carving out my own little niche in the world.
I enjoy working with jQuery, Angul...
He/Him/His
I'm a Software Engineer and a teacher.
There's no feeling quite like the one you get when you watch someone's eyes light up learning something they didn't know.
Equal parts higher-ed IT, web dev and support; with a dash of freelance consulting thrown in for good measure. (Oct/19: Seeking change of pace. Not afraid to take a step back in order to move ahead!)
Passionate and driven software developer. I love playing with new technologies specifically for the web and will happily learn a new one for a specific project.
Professional developer for twenty years. Team lead, technical lead.
What I love is to code stuff. I appreciate pair programming. I think software design is important. I also love to debug code.
“As much as I’d love our code to be fully compliant with the great programming practices of this world, I’d rather have it working — if possible before the heat death of the Universe.”
man, i have a good one for that. put a before with height 100%, display inline block and vertical align middle on your holder div. vertical align middle and display inline block to the elements.
Software Developer who works mostly on Web stuff. I like JS, but I also like other things. I also do photography, and look at sneakers online that I will never be able to buy.
I am a Software Dev girl who loves Uncle Bob, is drawn to the human side of software development and clean coded applications, and enjoys acting as a liaison between the business and tech.
Career change decided program love and hate it. Can be frustrating. Learning python the hard way by Zed Shaw. Wonder if I'll ever get a job or be good enough for one. Yeah of course I am :)
I’m a developer with 15-years of experience in the .Net stack as well as an interest in Angular.I’m known for taking legacy projects and updating them so they can be maintainable and have new features
Software Developer, Coffee Glutton, Quality Lover
▫◽◻⬜◻◽▫
My name is Tiago Marques and I am curious. I try to learn more about everything, and seek solutions to the problems around me.
Location
Aalborg, Denmark
Education
University College of Northern Denmark (UCN) | CS💻</>
Software Developer, Coffee Glutton, Quality Lover
▫◽◻⬜◻◽▫
My name is Tiago Marques and I am curious. I try to learn more about everything, and seek solutions to the problems around me.
Location
Aalborg, Denmark
Education
University College of Northern Denmark (UCN) | CS💻</>
Yeah, I was thinking about this discussion another day, and I remembered this mnemonic... But damn, when I need to use, I Forget about it 😅
But thanks to both of you guys!
I'm a very straightforward data science student in last year before master graduation. I like to learn bottom-up step by step and go through the logical discovery process myself as much as possible
I am a PHP developer with works especially using Zend Framework.
From August 2012, I started became a Zend Framework Contributor, now as top 4 Zend Framework 2 contributor listed here : https:/...
How to cut and paste lines in VIM. I do this all the time when rebasing but can never remember the commands. I've just bookmarked the top result from each search for quick reference at this point.
Just to be sure, I google git commands quite often. Most probably because for each command my mind has given it a custom-name. So it kind of mixes up. LOL
Objective-C block syntax
bash test format and flags
vim macro create and execute
I noticed I could never remember these, so I always make aliases, shell functions, or short ~/bin/ scripts for them instead:
tar: xkcd.com/1168/
netstat flags (other than "-tulpn" which I have memorized as "tull-pin" like "Tolkien")
ssh tunnel syntax
Edit: *in one-line.
Array to list:
List to array:
Clear as mud...
Helpful protip. I learned yesterday, that
list.toArray(new String[0])
is faster than the version with the explicit size given.I was about to write the same thing. How to vertically align elements... without using flex 😂
Regex. While I understand how it works and how it can be used, it's difficult for me to memorize the right regex that should be used at every point. So I just google whenever I want to make use of it. :)
Oh yeah that's a big one
I was just like that... but then I've found regex101.com/ and now, I'm almost proficiente writing regex!
regex101 is the single best resource I've ever found for regex.
It's funny in my case. I know enough regex to get by, but I generally need to google to find out how to actually apply it.
Do I need
RegExp.prototype.test
orString.prototype.match
in JS? What are the order of parameters inpreg_match
in PHP? What are the little parentheses things called in .NET, captures or groups?I had the same problem, until I found Rubular:
rubular.com/
Bonus tip: making a permalink will also save all the test cases used. Makes for an excellent inline comment!
Same here...
BTW, I knew someone must've been written about regular expressions when I read the title.. 😂
Me too!
Hahaaahaa
I always have to Google regex. Or copied old code.
I can never remember how it works either. I found this to be helpful, though! regexr.com/
Same here. I can only remember $,,*,+ and /s /w. I always end up up googling an example and going from there.
For me it's "manually start postgresql"
Every once in a while my postgres server isn't running and I know to punch that into my browser and land on this Stack Overflow question, where I proceed to copy this command into my terminal:
It happens infrequently enough that I never bother to alias it or remember how to type it out. I just remember what to Google.
I have postgres installed via homebrew. So I use
brew info postgres
to copy the start command :)So did I then I realize how many precious minutes of my life I'm losing so I decided to buy a domain for 75 cents mycodesnippets.space :) I write things down little by little as soon as I need it the first time or I risk to never do it by lazyness !
I was gonna say this. Have bookmarked the stackoverflow post on this. :D
cant you just sudo service postgresql start ? :P
On Linux, yes. On OSX, no unfortunately.
Oh yes, I even googled and used this today because my service keeps stopping.
How to make a tar file...
at least extracting is easy (say it in a german accent) tar -xzf "xtract ze files"
and -czf == 'compress ze files'
well what works for me is tar -xzvf "xtract ze vucking files"
No kidding that's how remember it
That's a great way! Jajajaaj
But it's important to note that tar is smart enough to detect the format so I prefer the general
tar -vxf
Even though as a German with decent English pronunciation this is a little bit insulting, I'll probably never forget this ever again. Thanks! 🙈
Thank you so much.
Isn't that for zipped tar files? -xzf = extract zipped (tar) file.
I threw this one at a dev I used to work with. He answered instantly, he could have disarmed 2 bombs with that speed.
Instant respect gained
I figured out how to remember it. To create tar, use
c
option and for extracting replacec
withx
==>$tar
will remain same for both Lol :) .tar -cvf filename.tar file/dir_path
&&tar -xvf filename.tar
.Hey, I also want to make a tar file for my website name:Lenny face. Let me know if the given suggestions works for you!
sed
andawk
and how to use them.I just
ssh-k
↑ in zsh and just list all previous key generation commands or if I am not sure what I am looking for I use fzfI was helping someone with this earlier this year. Ended up creating a helper for it:
gist.github.com/Kunde21/3633e1e9ef...
Suprised tldr didn't got mentioned.
It's a pretty neat tool to do this kind of things...
Best link I've seen all week. Heroic!!!!!
That's awesome! thanks
Javascript array methods. Is this one in-place, or returning a new array? I don't know, but MDN does!
And centering things. Completely clueless every time.
here's a handy multiple choice questionnaire!
howtocenterincss.com/
holy crap, whoever made this site needs a medal. Great recommendation!!!
How to extract
tar.gz
file in Linux command line!Saw a comment from above and it changed my life.
tar -xzf filename
xzf = "Xtract Ze Files!" (german accent)Excellent, noté that you may get ride of the dash.
tar -xf filename
Read as
tar eXtract File filename
.Saw this on an SO answer and never had to google it ever again :)
Wow, I never thought of it.
Thanks :)
How to delete a remote branch in git.
Cherry picking commits in git, because I can never remember if it's cherrypick or cherry-pick
A more efficient way would be to just do it and correct if it errors, or alias it to git cherry or something
Also, how to exit vim, and how to insert in vim, and basically how on Earth did I end up in vim omg get me out
I've been using Vim now for about 24 years. Primarily because I don't know how to quit.
I would be responsible for 95% of hits coming from google search into the Tutorialpoint's html5 minimal template. Now I could easily type it in every time I set up a new page, but it is now a matter of extreme laziness I think.
This is stupid but g++ compiling filename and output order in the terminal. I've been doing it for four years now and still failing to remember.
regex
The same with me!! But I found VerbalExpressions (github.com/VerbalExpressions) to have solved it for me.
That is very good to know about.
I usually just go to regexr.com and trial-and-error the syntax until it matches what I want.
Regex kills me sometimes.
How to find out which process is listening on a certain point on my mac. I'm often switching between projects, and have a server from another project running on a port that I now need for another server.
And it looks like Heroku's CLI doesn't always stop all processes correctly when you stop it using ctrl+c
You could add a function to your .bashrc to make this easier:
Then (after restarting your terminal or typing
source ~/.bashrc
) typelistening 8080
to find out what process is blocking that port.ln -s [source] [destination]
orln -s [destination] [source]
?find . -name [...] -exec grep '...' {} \;
And of course sed, awk and more generally shell syntax (if, loops, switch, etc).
I got a good way to remember argument order for
ln
:Destination is optional so it must go second.
By default
ln
creates a link with the name of the source in the current directory.Oh yeah, linking. Forgot about that one (obviously, since I need to Google it every time lol).
How to properly write a Rails migration file.
Add a column? Huh? What???
Oh yeah. I always copy and paste from old files.
IIRC:
How to exit vim.
Many moons ago, at one of my first jobs, I got myself in trouble with this. I was editing something in prod without knowing how to save or exit. I was a windows nt guy mostly. So, like one does, I hard-rebooted the server instead of asking for help... After the dust cleared, my boss made me sit at a keyboard for over an hour launching vim and learning how to at least save and exit. :) I have :wq, :q,:q! burned into my muscle memory to this day...
Oh god why did they have the new guy making changes in prod you poor soul
Everything git related
Yeah. For some reason I really find some git procedures harder to memorise than others. It's ludicrous the number of times I've googled "git unadd a file" and "git reset branch to remote"
How to spell maintenance.
That's unneccessarrelly, but true.
I don't have to Google the spelling, but I'd say 99% of the time I type "valud". I say it correctly as "val-id" and only mistype because of the QWERTY keyboard layout. This is the only word that I consistently type incorrectly. It's not a speed thing (like "teh"), because it happens when typing slowly as well. I've been typing for a really long time and I'm beginning to think my brain just thinks this is a funny prank.
This! Plus a few other words: convenient, conscience, accommodate. I'm not a native speaker ;).
As a non native english speaker:
vs
Find a file in Linux. I know it involves "find" and "name" but I have to look up the exact syntax each time. (For reference, the sledgehammer version is
find . -name testfile.txt
from the root of the drive.)Usually, anything that is outside of my basic Git workflow.
PHP array_push and array_key_exists parameters order.
this alone should tell you you need to use another language ;)
Argument orders in all array functions in PHP for me. That's just horrible. VSCode gives hints though, so that helps. I still have to look up the exact names of functions regularly, though.
How to type this:
¯\_(ツ)_/¯
Ha! Me too. I know to go straight to textfac.es
The best thing they ever added to Slack was the /shrug command.
text-overflow: ellipsis
unzip a tar file especially with that different extensions .xz , .bz etc..
vim commands to cut,copy and paste
regex in python and other python builtins . Can't memorize the whole docs right ?
vim...
Updating the list of git remote branches. It doesn't refresh when you sync so it will continue to list remote branches that don't even exist anymore until you manually run the command below. (Which I had to google again to put in this comment.)
git remote update origin --prune
Git, brew, and bundler all have some kind of
prune
flag so it's starting to stick for me.easy to remember because it is like dried fruit!
How to flush DNS cache on OSX
I literally added an alias to my ZSH config for this one
alias flushdns='sudo killall -HUP mDNSResponder'
webpack
configuration file.Setting firewall rules with
iptables
.Ever heard of ufw?
RAILS MIGRATION
How to git checkout a remote branch. I’m gonna try it it without googling
git remote add repoFork <url>
git fetch repoFork
git checkout —track repoFork/branch
I hope that’s right I just looked it up again yesterday
My first choice was "Regex", but it seems you guys beat me to that choice.
So, without a shame I can say that everytime I search "how to insert an element at the end of another with jquery". Frigging append(), man.
What gets me is when I'm switching between languages. Java uses
add
, Python hasappend
, and Ruby usespush
. But then some gem will useadd
.This is why I shamelessly use IDEs while everyone I work with uses vim.
flexbox and grid with all their different attributes and values :/
MySQL and PHP date formatting. Every time. What’s weekday again?
"How to do x in CSS" where x is anything
Its vs It's
How to use "find ... -exec ..." correctly.
How to "unignore" files with git... Here is a nice and short way.
The order of arguments for map/reduce/filter is JS. Was it (index, item) or (acc, index, item) or (item, index)....
Everything! 🤪
But seriously, I think I do a lot of Googling (and looking at Documentation - same thing?) for things which are new or I'm uncertain of or if I'm working with an SDK like Firebase.
Is that the way I'm supposed to do it? 😂 I'd rather get things right first time rather than get it wrong and THEN Google. Sounds like the other things people Google are a lot more advanced. 😳
SQL syntax #ashamed.
How to use
grep
andfind
.Also when I write
data = {}
in Python, is this aset
or adict
?This can't be a Set
It's always a dictionary!
If you want an empty Set use:
P.S. it's handy to use the official Python REPL and type
type(youvariable)
;)When I accidentally commit on master instead of a branch and I need to reset my master to match origin:
git reset --hard origin/master
The argument order to the various PHP array functions
The arguments for JavaScript's array.slice method. Every. Damn. Time.
Vim commands.
Just...I can't even.
ever play:
vim-adventures.com/
?
bonus tip: a lot of unix commands support vim keys by default. i.e. less and man
how to undo $whatever in git
Yesterday was the first time I deleted a tag or branch (it was a tag) from a remote git repo without googling it first. Pretty proud of that.
ruby hashes lol
Selinux allow httpd
"github ssh-keygen example" :D
Array.prototype.map()
callback param order.alias_method
in Rails. Confusingly, the arguments are the opposite order toKernel#alias
. And the examples for both are terrible!How to use
ln
.ln $LINK_NAME $TARGET
orln $TARGET $LINK_NAME
? I can never rememberIn-place string substitution; usually performed on multi-gigabyte database dumps:
sed -i 's/STRING_TO_REPLACE/REPLACEMENT_STRING/g' reallybigdb.sql
Exit vim
The order of arguments to the
reduce
callback or block in any language.How to remove password expiration in Oracle. It always happens at the worst possible time, but not often enough to have it memorized.
Any switches I don't use often with linux commands.
IIS error messages on the yellow screen of death (YSOD)
git commands
How to set up a docker container. Got to look this up every single time..
Grep recursively for a pattern
Converting UNIX timestamp to Excel date-time format with the correct timezone.
Ruby .strftime() formats
Git hard pull !!
parameters for php date()
Tricky regex... empty a solr core... Python join array to string... Ssh tunnel local and remote port
I recommend devdocs.io
Offline docs! ⚡️
Starting / stopping services in linux. And it changes far to often.
How to kill a process running on some port.
Wether I'm looking for Javascript's call() or apply().
How to use HTTP client. I'm a polyglot programmer and I just can't memorize this in any of the languages I know...
man, i have a good one for that. put a before with height 100%, display inline block and vertical align middle on your holder div. vertical align middle and display inline block to the elements.
Javascript: substr vs substring. One takes start,end; other takes start,length. Would have been simpler if they only included one :(
How to ignore chmod changes to files in Git :)
How to stop tracking a file on git
"delete solr data", to clear data in solr core.
Python loop with condition
Mixins React example.
Delete in SQL Server...
The order of the parameters in the function passed to $.each().
How to list remote git branches.
how to git ignore and how to discard current changes
docker log truncation
Glad I’m not alone with this one. Been doing rails since pre-1.0 and still google “active record migration” every time.
Updates with joins syntax in SQL. Always get the SQL Server and MySQL versions muddled.
This command: su -s /bin/bash apache
On this link: linuxquestions.org/questions/linux...
Current UTC time. I will never remember what my time is in UTC time.
Switch statement format. I always forget where the {} and the () go.
And of course Regex - because memorizing Regex notation and rules is a waste of energy
Proper Regex syntax in the command line. "Wait I have to escape that?!"
For a long time it was the openssl sub commands, for instance to dump the text version of a certificate. :-)
Iterating over keys in an object (#javascript)
How to install opencv using pip !
How to redirect to URL with JS.
How to set the php errors on
How to compile from source code on linux.
I still can comprehend why, but:
rm -rf mydir
How to grep a text file without comments (#) and blank lines!
How to rescan the scsi bus. Probably not a dev thing to do, but certainly a devops thing.
Which of Java's string manipulation classes, StringBuffer or StringBuilder is the thread-safe one. I'm gonna have to Google that again.
Buffer! That's the one.
Most things sadly...
How to align div to the center. CSS. Every. Single.Time.
Date formats. SQL/JS/PHP all format dates differently and each one has different placeholders. I can never remember them. Ever.
How to use fstream. 14 years doing c++ and still cannot open a file without looking at doc.
Regexp, python join array to string, empty solr core, ssh tunnel local/remote port...
Git commands.
Python's list comprehensions
Great question, just need to firefox it. Definitely, will reflect on the question.
SQL query
Bootstrap default mobile navigations 😭
Last character of string :p
mietschuldenfreiheitsbescheinigung
Java decompilers/deobfuscator even though I have my own written
Regexes, adding permissions in Android Manifest, how to update npm
Reset and revert on a git commit...
All the good ones are taken so I'll add one I haven't found: Markdown syntax.
How to save and quit in vim
Some git commands and a lot of CSS stuff.
Fixing "orphaned" users in SQL Server
I always look up dd. Not because I don't remember the syntax, but because I am super respectful of its raw power to destroy my day if used wrong.
How to temporarily disable restraints in SQL and re-enable them.
OK, not really Googleing it, I have bookmarked the answer
IIS HTTP_HOST redirects, most regex, git beyond the basics.
Git revert. No chance to ever remember that.
Anything related to the nc, telnet, iptables tools
Almost every javascript library API...
When "gitignore is not ignoring" some file, there is always a line that I need to check to delete all the files from cache
How to revert my local branch to be exactly like its remote counterpart.
git reset --hard HEAD
what are the order of arguments in short-syntax CSS like padding, margin...
mnemonic: it's clockwise starting from the top
Or, the more fun mnemonic I learned years ago: TRouBLe!
Yeah, I was thinking about this discussion another day, and I remembered this mnemonic... But damn, when I need to use, I Forget about it 😅
But thanks to both of you guys!
Change column values pandas
How to delete a branch 😳
Regex. Almost anything regex.
What the trim function is called in python
Some CSS styles, mostly.
Installing NodeJS and having npm install global packages outside default folder.
how to use make on the command line.
i have a problem with my wifi and regularly have to reinstall the drivers I forget every time and I don't have wifi, so it's a pain in the butt.
How to exit vim.
simple_form methods. I'm always at the readme, never bookmarked.
And I still think "I really need to bookmark this" every time.
substr or substring start from 0 or 1 in database and programming language specific
How to cut and paste lines in VIM. I do this all the time when rebasing but can never remember the commands. I've just bookmarked the top result from each search for quick reference at this point.
R commands. ggplot2 options. Every single little thing in that language. I stopped learning at the <- for assignment.
Memory is not needed when you have your technical notebook for annotations :) (I have mine using org-mode)
CSS Shapes.
css-tricks.com/examples/ShapesOfCSS/
With how many 'm's do I write git amend?
The word "lieutenant"
And print statements for various languages.
Writing an Apache/Nginx configuration file.
How to use grep, sed or make
How to restart nginx 🤷♂️
How to vertically center a div for all browsers
Slice vs splice in JavaScript
*
Named captures in Ruby regex
Objective-C block Syntax, i can‘t memorize it and i don‘t know why.
all sorts of PHP functions =/
.gitignore is not working
How to close vim...
slice vs splice and css gradient syntax
CSS media queries !
Everything related to timestamps and date formatting.
Just to be sure, I google git commands quite often. Most probably because for each command my mind has given it a custom-name. So it kind of mixes up. LOL
Regex, every vim command ever
regex101.com is a lifesaver!
I recommend thefuck. brew install thefuck You will thank me for this message, I swear you will.
github.com/nvbn/thefuck/blob/maste...
Inner joins. For some reason I always get close, but never get them completely right without some good ol' google help.
carousel in bootstrap 😑