News for hackers. Stuff that matters.

arunitc

Re:Ask HN: How do I get fit and healthy as a software engineer? on Friday September 17, 2021 @02:47AM (#28562060)
Start small. This is what I do - Drink a large glass of water as soon as I sit at my desk. This forces me to pee within 45-60 minutes. When I go to the bathroom, I ensure I do 20 squats before coming out. Sometimes I do 10 lunges on each leg. Takes about 2-3 minutes. Back to my desk and take another gulp. Repeat!
Delete From "APCRoleTableColumn" Where "ColumnName" Not In (Select SC.column_name From (SELECT SC.column_name, SC.table_name FROM information_schema.columns SC where SC.table_schema = 'public') SC, "APCRoleTable" RT Where SC.table_name = RT."TableName" and RT."TableName" = "APCRoleTableColumn"."TableName");

I know this is not an optimized SQL. But this takes about 5 seconds in Postgre while the same command runs in milliseconds in MSSQL Server. The APCRoleTableColumn has only about 5000 records. The above query is to delete all columns not present in the schema from the APCRoleTableColumn table

I used to be a heavy MSSQL user. I do love Postgre and have switched over to using it in all my projects and am not looking back. I wish it was as performant as MSSQL. This is just one example. I can list a number of others too.

Of course it doesn't help. Just shows local governments that they are trying all they can to stop spread of fake news
What I'm really looking for is a H Series processor with a 14" screen. I want to replace my desktop with a laptop, hooked on to dual monitors. So I don't even need a Ultra HD screen. A laptop helps on the rare occasions I want to travel. But all the manufacturers seem to brand laptops with H Series processors as gaming machines and have a 15.6 inch screen minimum.
I just switched to Edge and it looks great. One of the reasons I had used Chrome and had recommended all my customers to use Chrome was the ability to print to PDF, which Firefox did not have (not sure if it does now). Edge does and will be recommending all my clients to try out Egde.
Re:Why Can't Everyone Do the 'Asian Squat'? on Saturday March 17, 2018 @01:38AM (#16605735)
I'm 43 years, Indian and have never had a problem squatting. Was surprised this is such a tough thing to do for some. I work sitting on a chair for 8-10 hours everyday, but ensure I take a squat break every 1 hour or so. To make it a habit, I take every opportunity to squat, when I have my green tea, play with my son, watch TV. It does feel great after squatting for 3-4 minutes. I also workout in the gym and perform 4-5 sets of squats with 30Kgs.

I read this yesterday - “Every joint in our body has synovial fluid in it. This is the oil in our body that provides nutrition to the cartilage. Two things are required to produce that fluid: movement and compression. So if a joint doesn’t go through its full range—if the hips and knees never go past 90 degrees—the body says ‘I’m not being used’ and starts to degenerate and stops the production of synovial fluid.”

https://quartzy.qz.com/1121077/to-solve-problems-caused-by-s...

Re:From Bootstrap to CSS Grid on Friday December 29, 2017 @01:53PM (#16031142)
Let alone using CSS Grid. Here in India, I can't even use Flexbox. Thanks to UC Browser having a 30% market share. Sigh, back to those IE 6 days.
Re:Firefox 56 supports headless mode on Windows on Thursday June 22, 2017 @07:06AM (#14611349)
I was wondering if I could use this (using a plugin) or Chrome to generate PDF files on the web server. Most of the PDF generation software out there are quite expensive.
Here in India, you are not only asked your previous salary, you have to provide your last (sometimes three) payslip while joining. Some companies have a policy of NOT giving more than a 30% hike from your previous salary - you need top management approval for such a hike.
Re:I am an Uber survivor on Tuesday February 28, 2017 @04:26AM (#13752478)
I just returned to India after working in the US for one year. I find it extremely difficult to believe such a culture can exist in the country let alone an organization. People there were friendly, extremely polite and well mannered. I never once faced any incidents or racism or hatred in my work place and out. I can't imagine things like this even in my wildest dreams.

-Chauvinistic, racist and homophobic attitudes were far too normal

-It was normal for guys to openly refer to attractive female colleagues as sluts

-They had private chats where guys wrote sexual fantasy stories about female colleagues and supervisors where they performed all sorts of demeaning acts on the women

Also the fact that she talks about driver compensation makes it look like it was an article written just to smear Uber. I may be wrong though, but really, really hard to believe.

Edit: She refused to meet Freda Kapor (see comments in post) makes it all the more suspicious.

Re:Proposed JavaScript Standard Style on Thursday April 28, 2016 @09:32AM (#11588648)
I always use a tab and set the IDE to show two spaces for each tab. Visual Studio has a setting for this. In the same project if someone wants 4, they can just change it to 4 spaces. In the file, its always stored as a tab
Re:CaptionBot by Microsoft on Wednesday April 13, 2016 @11:50AM (#11489232)
I gave this image - https://i.imwx.com/images/maps/truvu/map_specnewsdct-109_lts...

and I got this result "I am not really confident, but I think it's a couple of glass vases with flowers on top of a surfboard."

Re:A Pure-CSS Approach to Tabs (2014) on Monday February 22, 2016 @01:45PM (#11153211)
This breaks the browser back button since each click on the tab heading is a hyperlink
Re:New Windows 10 Devices From Microsoft on Tuesday October 06, 2015 @01:13PM (#10340477)
What i5/i7 processor are they using MQ, HQ, M or U?
The only reason I didn't sign up for prime was the inability to Chromecast.
With 8 years of experience, you should be able to get a H1B. Every 3 years of experience adds 1 year to your education. You need 16 years of education to get a H1B. I too do not have a degree and managed to get a H1B. The challenge is to get through the lottery.

However, as many others have suggested, I too would recommend you to try another country, where visa rules are relaxed.

What is the workaround you are using? I too am facing the same problem in IE and am evaluating multiple options.
I have been trying intermittent fasting for the past three weeks - finish my dinner by 7 and breakfast the next day at 11 or 12. Initially it was difficult, but you get used to it quite fast. One thing I have noticed is my afternoon drowsiness has completely disappeared. I used to feel extremely lethargic and just couldn't put my mind to anything. Now I'm completely alert and my productivity has increased dramatically.
Re:Surface 3 Update on Sunday November 02, 2014 @12:40AM (#8545648)
OTOH, I really wish they released a Service Pack 2 for Windows 7. It takes over 4 hours to download and install all the updates since SP1. I understand they want all of us to upgrade to Windows 8, but not at the cost of making existing user's life difficult
Google throws a nice red warning saying the SSL certificate is invalid and they want us to host on their platform?

Older »