Skip to main content

Engelbert Tejeda

Engelbert Tejeda's Public Library

about 5 hours ago

gls*"osx" "grep" " pdf"
kwd:{find /some/path/ -iname '*.pdf' -exec pdfgrep somepattern {} \;
kwd:{to install on osx:
via homebrew:
brew install pdfgrep

about 5 hours ago

gls*The impostor phenomenon
kwd:{Impostor syndrome (also spelled imposter syndrome, also known as impostor phenomenon or fraud syndrome) is a term coined in the 1970s by psychologists and researchers to informally describe people who are unable to internalize their accomplishments. Despite external evidence of their competence, those exhibiting the syndrome remain convinced that they are frauds and do not deserve the success they have achieved. Proof of success is dismissed as luck, timing, or as a result of deceiving others into thinking they are more intelligent and competent than they believe themselves to be. Notably, impostor syndrome is particularly common among high-achieving women,[1] although some studies indicate that both genders may be affected in equal numbers.[2]

about 5 hours ago

gls*"Imposter syndrome" "college degree"
kwd:{Maybe the accomplishments themselves didn't "feel" amazing.

I and several friends that went through college graduation were weirdly not into the whole "omg we're graduating" thing. The next semester my best friend graduated and while in the ceremony he was bored as fuck.

At least in terms of getting a college degree, most of us who feel we've not "earned it" didn't go through what we think should be the typical definition of success. We as people envision success as going through some tough road in life, maybe some movie-esque climax where you cram hard for the very last final exam, and you want the payoff of doing really well, complete with 80s Hollywood triumphant music.

The reality is less, I dunno, exciting? You apply for graduation months in advance, and you're told "yep, graduating". Then you sit down and take a test that you kind of but not really did OK in. Or you flunked it but it didn't even matter because you didn't need that class to graduate. And then you know you're going to grad school, or you're too worried about the job you're taking right after.

What I'm saying is, the whole thing is a slow, established process. It's super dull, organized, and unceremonial. Even the graduation ceremony is like going through the motions. Maybe that's a big reason why we don't feel we "deserve" the degrees, because there wasn't that giant you had to kill or the dragon you had to behead, nor does it follow any kind of conflict->resolution->payoff structure.

about 6 hours ago

kwd:{trip planner, routes, driving, road trip, roadtrip, car, automobile, pitstops, pitstop, location

Nov 28, 15

kwd:{Install Git

Select Options:

Use Git from Bash only
Use OpenSSH
Checkout Windows-style, commit Unix-style line endings

Nov 26, 15

kwd:{Clothing: edit: /u/kanadakid19 posted some great background info in regards to clothing and fabric choices.
Layers. Always dress in layers (and bring layers with you). Not only do layers create more pockets of air (which help insulate), but also allow you to avoiding sweating (which will cool you off the fastest). This also goes for your legs. It might not be sexy, but long underwear or tights underneath your pants will make an enormous difference. High end winter gear creates this by design (down/fur), try to mimic this functionality with your layers. *Edit: Generally you will have three:
Baselayer (thermals/long underwear). Merino wool is go to here, but pricey. There are many synthetic alternatives, however, that will definitely do the trick. Also, quick tip and make sure that the combination of your socks/thermals don't cut into your skin (becomes an issue with ski and hiking boots). If you have high quality socks, consider getting ones that only go down to mid-calf. This layer should be quite tight and extremely soft/comfortable, and breathable. It also needs to maintain warmth when wet because this is the one that's going to get sweaty (which is bad, but prepare for it anyway).
Midlayer. On super cold days this can actually be two layers. A breathable fleece/synthetic sweatshirt type layer (see the Arcteryx shirt I linked in the cotton section), and an insulation layer (which is not really breathable). The insulation layer will almost always be some form of down (and will be integrated into heavy parkas). For this layer I'm really loving the new "synthetic down". It's so light and squishy and easy to store when you need to (which is awesome, because this is likely the first layer that you'll want to store).
The wind/waterproof layer (AKA, the shitty weather layer). This is where you'll spend the big bucks, but in a pinch, a goddamn plastic bag is better than nothing. This layer is stopping windchill and rain only. And often, you'll keep the lighter midlayer + this one after you get halfway down your run. Or to work. Or whatever.
Loose. Do not restrict your circulation. Especially on your appendages (feet/fingers). Yes, that extra pair of socks might seem like a great idea, but if you have to squish into your boots, I promise that your feet will be colder. Same goes for gloves (mitts are usually better for that reason). But /u/LeoNemean reminds us to make sure you tuck in your long underwear... You are trying to create little sealed bubbles of air between you an the cold (kind of like a thermos).
Cotton is the worst. Jeans, shirts, dress pants whatever. If it isn't wool or synthetic, it will get wet, stay wet, and provide very little insulation even when dry and zero protection from the wind. Avoid at all costs. Edit: Smartwool and Merino wool are the latest go to (especially for baselayers), but my favourite midlayer is this hoodie. I wear it almost every day, especially after working out. It's great because it still lets the sweat evaporate, but without letting you get cold.
Protect yourself from the wind. Yes, cover your ears/face/exposed skin with clothing, but also stand in whatever shelter available and walk next to buildings to avoid the wind. It's a myth that you lose more heat from your head than any other body part... but that doesn't mean that you shouldn't cover it like you would any other body part. My father always told me: You don't need to cover all your extremities, just the ones you want to keep.
Make the most of the heat you have. Get dressed inside and wait for all the little pockets of air to warm up before you go outside.
Do not get wet. Either from sweat or anything else. Getting wet will give you hypothermia/frostbite in minutes vs hours. If you feel yourself starting to sweat, immediately take off a layer... Or two. Whatever it takes. If it's slushy you're usually better off with $20 gumboots and a good pair of socks, rather than non-waterproof boots.
Edit: I'm seeing a lot of posts saying "but but I sweat when I wear.... and then I'm cold".
Sweating is caused by two things:
The breathability of the fabric(s) you're wearing. This can be rectified largely by spending more money on slightly looser/physically lighter, more insulating, items that wick away moisture. And yes, it is possible to get breathable waterproof winter boots if you spend enough money. And do not cheap out on your socks either.
You aren't removing (or wearing) your layers appropriately. In order to stay warm your toes, fingers and arms should all be able to move/rest freely and comfortably. If that movement is hampered (say you can't reach in front of you or over your head), likely you have the wrong clothing on. When you step outside you should feel a slight chill that goes away when you start moving.
Recognize the symptoms:
Stages: Lethargy in your joints, pain, and numbness. And you'll notice some freaky colour changes. Pain is good... Numbness is not.... but likely you'll have a tough time noticing which parts are numb and which just hurt. If you start feeling pain, you should do something about it. If you see blue, there is likely some tissue damage. You need to get out of the cold immediately.
Treatment: Understand that while you feel pain, the surface area of your skin is completely numb. You can try rubbing the area, but you will not be able to tell if you're damaging the skin. You can try to warm it up with water, but you likely will not be able to tell what temperature the water is. It is very easy to burn or damage your skin further while it is in the early stages of frostbite and are trying to warm up. And it will hurt a lot. Just be patient and wait.
Understand that most cases of hypothermia happen without and snow or frost (because people are not prepared). Pouring rain at 45F/8C can be just as deadly.
Recognize the Symptoms:
The shivering/teeth chattering stops.
You start to feel sluggish/slow.
It's hard to think (you almost feel drunk).
And then you feel very very sleepy and not really cold at all...
Treatment: Obviously, get out of the cold and get warm. If this isn't immediately easily available, do the following:
Get dry (change your clothes and try to dry the wet ones)
Get out of the wind (build a shelter, crawl under to the base of a tree) and the elements
Find a source of heat (even a candle in a small shelter [or your car!] can make a huge difference). Do not leave your car running (because you won't notice if your exhaust becomes blocked and starts filling your car up with carbon monoxide).
Emergency Preparedness
First and foremost: Always tell people where you are going --your anticipated route-- and when you'll arrive. Obviously unnecessary in busy city centres, but for those commuting long distances or taking trips over winter, this is a good [lifesaving] habit to get into.
Minimal emergency kit in your car at all times:
Windproof/insulated gloves + toque
Rain ponchos
Plastic bags/garbage bags (they are windproof and decent for keeping your feet and core dry in a pinch)
Emergency blanket (and sleeping bag if possible)
Candle + matches/means to light it
Reflective cones (and glowsticks or flares if possible)
Multi-tool (letherman)
First aid kit
Energy bars
An old school accurate paper map of the area
Edit: /u/8654 reminded me of a few I missed. But keep in mind this is a basic kit.
A tow rope
Salt or sand or kitty litter
Not all survival/emergency situations are created equal. It may or may not be safest to stay in your vehicle. Generally speaking, you will survive the elements longer if you wait in your car, but if your car is anywhere near a major highway, you're also more likely to get hit... But even then it's still safer to get hit while in your vehicle, rather than crossing the road on foot (this recently ended in a terrible tragedy for a canadian politician trying to help a stranded motorist).
Stay warm, stay safe!
NEW!Useful Tips
I added this section in an edit because a lot have come through.
/u/Mcfearsom has some absolutely awesome tips (I learned a few).
/u/diabolicaldebacle brought up how the 3rd (but less well known/common) way of losing heat is simply by conduction. This can come from cold benches at a football stadium/hockey arena, or simply from standing on cement for a long period of time.
/u/winterisforhome also reminded me that pets get cold too! Yes, some breeds have fur that is built to handle the elements, but their feet aren't usually so tough. And I found that these booties are the best way to protect my huskyX's feet from the salt and ice.
/u/_kingtut_ reminds us to be aware of the effect that alcohol can have on the system (don't worry, you can still drink, just know what's happening).
edited some formatting for legibility.
Edit#2 Holy balls. Obligatory RIP inbox. Trying to respond to all is getting to be impossible, so I'll edit with some more advice themes and gear suggestions.
Edit#9234083 Gah. Front page is a scary place.

Nov 25, 15

gls*python try except multiple times
"conn = MySQLdb.connect(host, user, password, database)
cursor = conn.cursor()
attempts = 0

while attempts < 3:
rows = cursor.fetchall()
for row in rows:
# do something with the data
except MySQLdb.Error, e:
attempts += 1
print "MySQL Error %d: %s" % (e.args[0], e.args[1])"

Nov 25, 15

gls*list to dictionary python
"b = dict(zip(a[0::2], a[1::2]))
If a is large, you will probably want to do something like the following, which doesn't make any temporary lists like the above.

from itertools import izip
i = iter(a)
b = dict(izip(i, i))
In Python 3 you could also use a dict comprehension, but ironically I think the simplest way to do it will be with range() and len(), which would normally be a code smell.

b = {a[i]: a[i+1] for i in range(0, len(a), 2)}
So the iter()/izip() method is still probably the most Pythonic in Python 3, although as EOL notes in a comment, zip() is already lazy in Python 3 so you don't need izip().

i = iter(a)
b = dict(zip(i, i))"

Nov 25, 15

A self-extracting archiving tool for Unix systems, in 100% shell script.

1 - 20 of 23878 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo