News for hackers. Stuff that matters.

alaaibrahim

Re:Why Linked Lists Are an Interview Staple on Wednesday June 05, 2019 @10:34PM (#20111085)
I've interviewed a lot of people, and I've asked LL questions, besides other algorithmic questions, and mostly I ask these questions to new grads with no much experience. The reason is, if you don't have much work experience, what else would I ask you, it's something that you've been learning about recently in your CS degree, and I want to see if you can apply what you learned.

If you have work experience that is relevant, or don't have a CS degree, I'll ask something else.

For me I feel that a lot of people don't understand that an interview is a conversation, feel free to think out loud, ask questions, and ask for help. I want to see your thinking process, I don't really care about the actual solution.

Re:Browsing a Remote Git Repository on Thursday February 28, 2019 @06:48PM (#19276618)
If you are only interested in what HEAD has, you can use `--depth 1` with clone
Re:Modern C++ for C Programmers: part 5 on Wednesday July 25, 2018 @05:07PM (#17612816)
Wouldn't that defeat the purpose of dynamic linking?
Re:Ask HN: Is big-endian dead? on Friday January 19, 2018 @02:54PM (#16189198)
Not exctly accurate, for the part of the number that is < 100, it will always be R-L, as in 25, would be 5 and twenty in Arabic.

Also for the part that is L-R, that is not the rule, as some people still read all the number as R-L (actually in a lot of historical documents that was the case), so the would read 1925 as five and twenty and nine hundred and a thousand. Where is now most people would read it as a thousand, and nine hundred, and five and twenty.

What if foo is `null` or `undefined` ?
Re:Paradise Papers: New leak from offshore finance firm on Sunday November 05, 2017 @03:45PM (#15631448)
Thanks, that's a nice explanation.
Re:Paradise Papers: New leak from offshore finance firm on Sunday November 05, 2017 @02:20PM (#15631043)
Could you explain why is that the case, I've heard that multiple times, but for me the math doesn't work out.

If I earn an amount of (x+y), I would get taxed on (x+y), but if I donate x money, I would get taxed on y, but I've already paid x in donations, so unless there is something fishy going on with the x donations part, it would make sense for someone to not donate, as they are already being taxed on y, and the taxes on x would be less than x.

So how are the rich making these donations out of my wallet?

Re:iPhone X Teardown on Friday November 03, 2017 @04:25PM (#15621980)
I'm sorry, I'm not a native English speaker, and sometimes I fall into these mistakes. I think what threw you off is my incorrect punctuation, as I should've wrote it as

> Is it not rude to start reading a book while you are having a lunch with someone? Why is the phone any different?

For me it's not even a conscious effort, as it feels rude to be on your phone, when you are having a meal with someone. Is it not rude to start reading a book while you are having a lunch with someone, why is the phone any different.

When there is a need to look at your phone (Important message, a call, or even to look up something), I think the polite thing is to excuse yourself, do the thing really quickly, and get back to your meal.

Re:I'm not a Woman in Tech on Wednesday July 05, 2017 @03:08PM (#14705270)
> I can make nasty off-handed comments to my friends in private chat all day, with very little fear that it'll see the light.

And then, someone decides to take a screenshot, out of context, and post it somewhere for the whole world to see.

Re:A new report on a basic income scheme launched in Iran on Thursday June 01, 2017 @09:17PM (#14466686)
And if you don't have minimum wage/hiring/firing laws, that would help with the illegal immigrants problem, as there would be no incentive to hire an illegal immigrant (it's only the headache of in case you are caught).
Re:Hiring without whiteboards on Wednesday March 15, 2017 @03:02AM (#13874328)
Have you ever tried to bring a laptop to an interview, and asked to use it instead of the whiteboard? Believe me very few would object.
could you elaborate more, where does it say that your wife should make 80% than what you do?
Re:What Is the Highest Salary Can a Programmer Make? on Friday March 10, 2017 @03:19PM (#13841752)
Here is my recipe (YMMV)

- Love what you do, this is extremely important, although you have goals in mind, you should enjoy the process to reach your goals, this would make you work harder, and failure wouldn't be a big deal, as you enjoy it.

- Practice, solve useless problems for fun, sharpen your skills, until you become really good at what you do.

- Really know what you are good at, and what you are not, and don't be afraid of pointing out what you don't know, even to someone who is interviewing you, and always know why you don't know, and if you need to know what you have to do.

- At this point, have the mentality whenever you go to an interview, that they would gain more from hiring you, that you would gain from being hired by them.

- Profit!!!.

Edit: formatting

Re:The Tenacity of Tech Recruiters on Thursday March 09, 2017 @07:41PM (#13835317)
I do understand your sentiment, I was flattered when I first moved the to bay area, with all the recruiters sending me emails, and I would politely reply telling them that I'm not available (because of my immigration status).

But, the problem is that it's the same template, and most of the recruiters haven't even bothered to check the message that they sent (I think they are using some software to send these emails).

My name has an apostrophe in it, when the email starts with

    Hi Ala&#39;,
I know that he didn't check anything, and he is not interested in me, but in anyone.

When the email contains a lot of false statements, like

    Your experience in Python is impressive.
given that I don't use python, and my knowledge in it is very limited.

When you are receiving these emails 10 times a week, it becomes annoying.

Re:Why I close pull requests on Wednesday December 28, 2016 @08:36PM (#13275111)
> Remember, they said "out of the blue" which means "without prior contact to discuss doing so."

If I do contact the maintainer before I do any change, that means I'm making a commitment to do that change, which is not something I want to do.

> If you're just looking to pump and dump, I'd rather not involve you in the process, only to have to do work to fix/rm code down the road.

I think you should always assume with any PR, that it's a pump and dump, unless you have a history with whoever raised the PR.

> It's your time to waste.

I don't think it's a waste, it's an issue that I'm facing (or a feature that I want), so writing the code is for my own need, I'm sharing it back in case other people want it.

Re:Why I close pull requests on Wednesday December 28, 2016 @06:14PM (#13274508)
Why Not?

I see a problem that I can fix, I do that, and then send it back to the original maintainer, making sure that I'm not breaking tests if they exist, and providing a good description of the change. Then it's up to the maintainer to either merge it, or throw it away.

Of course, I don't have any problem with getting my PRs closed, I'm not the one who would end up maintaining the code.

in your .tmux.conf

  set -g prefix C-a
  unbind C-b
  bind C-a send-prefix
Re:Taking PHP Seriously on Thursday October 13, 2016 @05:41PM (#12704293)
> although you can mitigate much of this with various caching strategies but the typical PHP request involves reading dozens to maybe hundreds of files from disk, compiling them into byte code, and then executing that byte code, and then deallocating everything.

For the conversion to bytecode, that is what apc is for.

Re:Are Index Funds Eating the World? on Friday August 26, 2016 @02:44PM (#12368361)
no

-- Betteridge's law

You mean criminals that get caught.
Re:Welcome to the CHIP Operating System on Sunday January 10, 2016 @06:05AM (#10874943)
They are distros, they are usually referred to as distros (Although you can claim that they are Operating Systems). And they are definitely not new Operating Systems.
Re:Please petition GitHub to support HTTPS on GitHub pages on Friday November 27, 2015 @12:19AM (#10635971)
Thank you, learned something new today.
Re:Please petition GitHub to support HTTPS on GitHub pages on Friday November 27, 2015 @12:14AM (#10635955)
> configure multidomain ssls (which everytime they need to add a new domain, that means they have to reset the certificate for the other domains on the same ip),

Sorry should've called it SNI.

Re:Please petition GitHub to support HTTPS on GitHub pages on Friday November 27, 2015 @12:06AM (#10635939)
Yeah, and please send me a free flying car while you are at it.

Obviously everybody would like that, but it's not as easy as it seams. As github pages, technically are virtual domains, they share the same ip with many other pages, if you want to support https, you need to serve either each page on a different ip (not free), or they need a to configure multidomain ssls (which everytime they need to add a new domain, that means they have to reset the certificate for the other domains on the same ip), and I think there is a limit on the number of domains that can share the same ip - citation needed - . And all of this for free.

Want SSL on gh pages, setup a proxy infront of gh pages.

Re:How to Legally Own Another Person [pdf] on Monday October 26, 2015 @11:02PM (#10456025)
L1B would be a better example :-)
Re:To Master Vim, Use It Like Language on Thursday October 01, 2015 @10:43PM (#10316382)
> Vi(m) is a model, not an implementation.

I think you are talking about modal editing, vi is an application, vim is another application.

Re:To Master Vim, Use It Like Language on Thursday October 01, 2015 @10:29PM (#10316315)
Depends on your needs, Pathogen only manages your plugins, but Vundle, will checkout the plugin, install it, and you can update all your plugins from inside vim.

Edit: spelling

Re:A call to PHP's mt_rand generates only odd numbers on Friday July 24, 2015 @04:29PM (#9944980)
You do understand that urandom does not block waiting for entropy, I think you are confusing /dev/random and /dev/urandom.

  $ man urandom

Older »