@bbolli Nah, we think this is a quirk of p4diff. Every reported change always includes one additional line at the top. Weird but otherwise harmless.
Posts made by eskel
-
RE: For posterity.
-
RE: WTF Bites
@Bulb
I was trying to laugh at the '===' operator. While Python's 'is' does one clearly defined comparison, PHP's '===' does something like:a == b and type(a) == type(b)
'is' also neatly says what it does right there, in the operator name.
I don't know what '===' is supposed to mean as an extension of '=='. 'equaler than'? -
RE: WTF Bites
>>> 0 == False True
Shit.
Apparently Python needs the PHP '===' operator. And while they're at it they can also add '!==' (or '!!=' for bigger bang) and all related greater/less than variants.
See how from:
>>> a >== 3 False
I know that a is greater or equal than 3, and/or is not the same type. Sooo much information from just one test!
-
RE: For posterity.
@cartman82 said in For posterity.:
@Tsaukpaetra I was expecting to hate it, but I actually found these comments pretty helpful for understanding the code.
IMO this commeting style has some didactical value, as it lets the learner state their intent outside of code. Makes it obvious whether they are:
- trying to do the right thing, but fail to write correct code,
- trying to do the wrong thing,
- unable to explain in english what they want to do (usually means big problems, and probably a mistake during recruitment).
In cases of 3. I tried to default to my mother tongue a few times, but it turned out that language proficiency was not a factor.
-
RE: For posterity.
To clear up a bit: The first declaration was in the file before the change.The second one was added and was the only modification in that particular edit of the file.
@dcon said in For posterity.:
That would be a syntax error.
This is the point. They didn't even check if it compiled and happily pushed the change to integration.
@loose said:
Are you talking about forward declaration?
-
RE: For posterity.
@groo said in For posterity.:
@eskel Dunno why did you trust one of that declarations to be correct? In such a bad code, you should have commented both them and write a new one from scratch.
It was their change, not mine. This reminds me of debugging latin 'c' chars randomly mixed into our cyrillic data set. Seems trivial, but can make you tear your beard out in frustration when you don't know what you're dealing with.
-
RE: The Cooking Thread
Recipe a friend of mine learned in Uzbekistan:
- Soak chickpeas in water overnight.
- cut carrots into matchsticks
- chop walnuts (not too fine, or they will stick and burn)
- rinse some sultanas with boiling water
Fry each ingredient (except the sultanas) separately, mix everything together with basmati rice (best cooked in a rice cooker) and season with salt, a bit of sugar, fresh ground black pepper, cumin and some lemon/lime juice. Add chillies if you like it spicy.
-
RE: For posterity.
@FrostCat Yeah, it's sooo useful to have this second declaration right there where I need it, just in case!
The most commented source file I've seen here has some 80% of it's 2k lines commented out and has been unchanged for the past two years.
-
RE: Shameless Promotion of LISP - FOR KIDS!
I love it, how the 'regional indicator symbol letter ...' code points are there only for some countries and without any sane ordering. They can now add all combinations of two latin characters and claim that the regional indicators are now future proof.
via bash.org:
<i8b4uUnderground> d-_-b
<BonyNoMore> how u make that inverted b?
<BonyNoMore> wait
<BonyNoMore> never mind
-
RE: Shameless Promotion of LISP - FOR KIDS!
@anonymous234 said in Shameless Promotion of LISP - FOR KIDS!:
There's a symbol that's NOT included in unicode!
Can't be. I thought that they exhausted all possibiliti🇪🇸 when they started adding combinations of existing symbols. Clearly they're out of i🇩🇪as.
-
RE: For posterity.
@error The joke is on me - I ended up as a dev because I made a career change. Funny thing is I'm supposed to be the noob in this long-distance relationship.
-
RE: For posterity.
@groo Nope. He (She?) made this literal change (p4diff reports it as 2 line change, but only the second one was changed) in their dev branch and then pushed it into the integration branch. Looks like a copy-paste-from-unversioned-stash gone wrong to me, based on previous experience with those guys.
-
For posterity.
Me: Module X does not compile after your change because of variable redeclaration in line Z:
int a = 0; int a = 0;
Person responsible for the change (job title: software engineer): Okay, fixed it:
- int a = 0; - int a = 0; ============ + int a = 0; + //int a = 0;
I'm not sure what is more troubling: The 'fix', or how this kind of bug ended up in our integration branch. It effectively means that they (our headquarters - we are an offshore dev branch) are not only skipping tests, but don't even check if their code compiles.
-
RE: Plane not actually commandeered by wi-fi that was not actually hacked
A gas oven I can remote control without seeing, hearing and smelling it? DO NOT WANT.
Smokin'. Powered by Tizen(TM).
-
RE: Plane not actually commandeered by wi-fi that was not actually hacked
vulnerable basically because it involves computers and networks
Can't argue with that. OTOH there are still much
bettereasier ways to hijack an aircraft. -
RE: People being dicks in Coding Help suck
That's why I'm so amazed there's no solution to the problem!
So your boss is regularly complaining about too many commits to his entire IT staff? Or is everyone else at your workplace unprofessionaly ignorant about data security?
Do you actually read what people write here?
-
RE: People being dicks in Coding Help suck
Visual Studio and SQL Server have issues when told to work off network drives.
That sucks and is a WTF in itself.
You're willing to take the risk of losing your employer's work. I'm not. I'm a professional.
Gods, no! Where do you get theese ideas? I just have proper backups of my daily work. If what you describe really is a problem, then someone else working there must have encountered it as well. How do the other people do this? You could store a private branch upstream. You could use intermediate software like Gerrit. Hell, you could even add a hook to propagate your local changes to the network drive.
being hit by a bus
In this case, your boss being angry seems kind of irrelevant. -
RE: People being dicks in Coding Help suck
@eskel said:
'Git is too complicated and difficult' sounds weird from a SW engineer.
Why?
Because VC is a complicated problem unless you work in a team of two people and commit once a month.Then how do you commit when you leave the office?
git commit ... Oh, you mean push, not commit. I don't. Why would I? Is the ongoing work you do on your machine backed up properly?
-
RE: People being dicks in Coding Help suck
Unfortunately, this is because Git users tend to be idiots.
You could say that about computer users in general.
I'm fucking sick of EVERYTHING about Git being so goddamned pointlessly complicated and difficult.
I work in a mixed IT/non-IT team and nobody there ever complained about Git being too hard. Sure, the non-technical team members like perforce (that is the only available alternative because corporate policy) better, since it actually has a usable GUI. It has shitty documentation, though. We also had a short encounter with SVN, which I hope to forget someday.
'Git is too complicated and difficult' sounds weird from a SW engineer. You are supposed to know what you are doing when using a VCS. If you don't, ask for training before you break something. Squashing commits before pushing them out is standard practice in a Git environment.
-
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
In middle and western Europe you can get a conference car on intercity trains if you order in advance.
-
RE: Easier Than Fizz Buzz - Why Can't Programmers Print 100 to 1? (article)
Here is my shot:
for(int i = 0; i < 10001; i += 100){ printf("%d ", i % 101); }
Prints a superfluous zero at the beginning, but that can be easily skipped with an if.
The program also requires a main function and an include of an i/o header so the requirement not to write anything before the 'for' seems too strict. -
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
how can any train short of maybe a private luxury car be as nice as an actual place?
Oh come on, I don't have a swiming pool next to my office desk either. The point is a train is comfortable enough not to make me tired after an 8 hour trip. When I compare that to 2 hours of being pickled in a flying jar plus another two hours of to/from airport transfers and waiting, the choice is pretty obvious. Longer flights are even worse, but there is not much choice when the Middle East is in the way ...
Moving, noise, crowded, cramped bathroom facilities, etc.
- Moving - not a problem in itself (this is probably subjective).
- Noise - nope, it's really quiet on a train. Not library-quiet, but still good enough for work. Good quality track and suspension + good soundproofing of the coaches works wonders. If you can tell where the joints between the rails are, it's not good enough.
- Crowded - Nope. Even if all the seats are taken it's comfortable, without other people invading your personal space.
- cramped bathroom facilities - Compared to an aircraft? Seriously? On a train I can actually stand upright.
Among other perks: there is a restaurant coach so I can eat lunch at a damn table like a human being. There is also the option of sleeping in a bed through the trip.
-
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
Reading a book requires focus. I can't focus if my knees are wedged into the seat in front of me and my kneecaps hurt.
Your 'new job' suggestion I honestly don't get. Are your trains really that shitty?
-
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
Still, I'd rather read a book than do work, which I can do just fine on an airplane.
It's too cramped inside planes for me to read comfortably. If I get paid for it I don't care if I work on a train or at the office. Mostly because there is no real difference...
-
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
It's not necessary to find a single technology that scales from going from 21st to 22nd Street to going from LA to NYC.
This.
So are you suggesting taking freight off the existing network or building a whole new one?
Since PAX and freight trains have different requirements when it comes to the track they run on, that is the idea.
I'm traveling to be somewhere else, not "get creative work done" instead of whatever it is I actually want to do.
Huh. Did you just apply Unix philosophy here?
I don't mind doing my office work and travelling at the same time. Its better to not waste 8 hours, than to waste 2.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
Yeah, we don't need another flame war on religion today.
Good luck then - every new person to join this forum will point this out :)
-
RE: In which @Minkovsky applies for a student loan
In that case, there is no need to break into the e-banking account. How come noone is running around, screaming in panic (I'm only half-joking)?
-
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
SItting on a goddamned train for half a day instead of a couple of hours on a plane or several days vs half a day on a plane.
Do you know how long it takes to go from Seattle to, say, Chicago on a train? And that's not even halfway across the country.
Like I said, shitty trains.
For air travel, dont forget to add the time wasted getting to and from and at the airport.
-
RE: Nice way of using Angular & PHP & Bootstrap & jQuery
fortunately, there's duc[kt] tape.
My point was more about how non-IT books are just fine in this respect.
Edit: Oh right, engineering.
-
RE: If you follow lots×10¹⁰⁰ of <strike>rules</strike> Trains!
Trains offer much better travelling conditions than aircraft. Unless you are a sack of potatoes, this quite an important consideration. Even the longer travel time can be compensated by the ability to do creative work while on a train. Travelling by plane is godawful. You could mail yourself in a crate just as well.
Aircraft are also still 100% dependent on petroleum. Trains can use basically any power source.
-
RE: Nice way of using Angular & PHP & Bootstrap & jQuery
Anyway, I also hate programming books because where I'm from, the publishers can't get their shit together and typeset them in a readable way. Not to mention the poor quality binding which causes your 650 page book on AJAX to fall apart two days after purchase.
-
RE: Nice way of using Angular & PHP & Bootstrap & jQuery
Maybe someone counts on them gaining historical value? :)
-
RE: Nice way of using Angular & PHP & Bootstrap & jQuery
Man, I was not joking. I once ordered some 20 copies of a book printed in the 70'. They were still available around 2002 only because someone had an entire warehouse of them somwhere in Cambodia. They reeked really bad too...
-
RE: In which @Minkovsky applies for a student loan
If an account number is really all it takes, we're all fucked anyway.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
Already did. The albinos look nice, but the photos are a little blurred. That's it, Im off to bed - need to let my worms rest a bit.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
3 He might hurt his finger if he plays with that ring on.
Hmm, this gets better every minute: Discourse insists that 3. is 1.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
The triceratops-like hulk is awesome. I still dig Epic 40k more because:
Oh, you can field superheavies in regular 40k now? Damn.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
intelligence of elephants is about as relevant to our lives as medieval visual arts
The latter is pretty relevant for me. Not sure about the former, but animal psychology in general may be more important than most people realize.
a whole box of lizards to paint
Pics, or it didn't (won't?) happen.
My quotes are in reverse order. Sorry :(
Haha, why on earth does this forum insist that the ':(' smiley should look like this:
And who called it ''? How can it frown without eyebrows? -
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
Oh, this is rich! Two quotes from the abovementioned article:
Without prior trial and error behavior, a 7-year-old male Asian elephant showed spontaneous problem solving (...)
...
The elephant's behavior suggests, however, that he was actively trying to use different objects and strategies for food acquisition. Each time a method was unsuccessful, he switched strategies.
A.k.a. trial and error ...
Bet they got a grant for this research.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
He (The elephant) moved the cube in two of the first six sessions (sessions 1 & 4), but never towards the food. In the first session, He stood on the cube once briefly after rolling it away from the suspended food to an adjacent wall. At no time did he reach for any items while on the cube.
The elephant apparently stood on the cube for fun before getting the bright idea to use it to reach for food. Could be a smart elephant. Could be accidental. Who knows?
Stairs.
Go up.Stop for a moment and think about what this sentence actually means.
Science is barrier to fun facts.
There is much pleasure to be gained from useless knowledge
- Bertrand Russel
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
Abstract (adjective, from Oxford Dictionaries):
- Existing in thought or as an idea but not having a physical or concrete existence
- Dealing with ideas rather than events
- Not based on a particular instance; theoretical
Abstract, as in it has to imagine that it needs something high to stand on
There is no strong indication of this in the article. It's all free interpretation. -
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
That is the exact opposite of abstract thinking. Everything is about visible and tangible objects. I'm not entirely convinced that what they claim in the abstract is really justified by their results.
Fun: yes . Fact: not so much .
See also: http://en.wikipedia.org/wiki/Clever_Hans
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
Fun fact: elephants are quite good at abstract thinking, compared to most other animals.
This holds for any animal with the slightest capability of abstract thinking. What's more interesting is how someone arrived at this conclusion.
-
RE: How to add awesome into your day
Basically i'm not attracted to bodies, but personalities.
That's not complicated. I'd say it's quite desirable from a pragmatic point of view.
-
RE: Your brain is tiny but apparently people on this forum are now baby wimps who are afraid of scary words oh noes!!!
@CarrieVS said:
Why can't there be cyborgs in fantasy?
Because cyborg is science fiction.
So, you can't mix SF and Fantasy.
@blakeyrat said:Star Trek transporters are clearly fantasy. Other elements in Star Trek, like generating energy by colliding matter and anti-matter are clearly sci-fi.
But you can mix SF and Fantasy.Makes perfect sense.
Also: NSFW because horseballs.