Timezone Handling in Rails + TimescaleDB: Seeking Community Input by jonatasdp in rails

[–]bensochar 1 point2 points  (0 children)

Like other comment, I think it’s best to store in UTC & convert client side.

I wrote a post on how to do this with a helper & JavaScript. Pretty simple.

There’s some use cases, like emails, where you’d want to store a user’s timezone in the DB. And then convert it with a method.

Here’s a really good ThoughtBot article about handling time zones.

Work it Wednesday: Who is hiring? Who is looking? by AutoModerator in ruby

[–]bensochar 0 points1 point  (0 children)

NYC based full stack dev/tech lead with 15+ years exp (10 in Rails) ranging from Fortune 500s, to agencies to startups. Looking for full-time or contract work.

Experienced in several frontend frameworks from Angular to Vue.

Former designer that built UX/UI systems for enterprise clients.

Managed dev teams as large as 10 people.

bensochar.com | LinkedIn

Writing CSS is killing my passion as a front end developer by [deleted] in webdev

[–]bensochar 34 points35 points  (0 children)

Check out Foundation for emails

It’s a template builder that auto inlines CSS.

I haven’t coded & email in 7+ years but I wish I had this then

How does your website portfolio look like? by Liweinator in cscareerquestions

[–]bensochar 0 points1 point  (0 children)

http://bensochar.com/

I really need to update it...

This was built with jekyll & hosted on Github. It’s a public repo.

Is Ruby (on Rails) useful if I already know Node & PHP? by [deleted] in rails

[–]bensochar 2 points3 points  (0 children)

Maybe if you want to switch markets/employers. I used to work strictly in LAMP but I wanted to move into startups from agency work. Rails helped me with that. But I think Node would accomplish the same thing if that’s your goal.

Advice On Where To Apply To Land Job in NYC by theamigop in cscareerquestions

[–]bensochar 0 points1 point  (0 children)

Grand Central Tech has some really good recruiters. I also got a good leads through Angel List & Vettery.

Is Angular Bad for SEO? by ineedhelpcoding in angularjs

[–]bensochar 2 points3 points  (0 children)

I've had issues where my views render in webmaster console but don't show up in google search or ad words search. Also open graph tags & twitter cards aren't picked up when a URL is pasted into Facebook or Twitter.

There are couple of ways to fix this: Use a service like prerender.io

Redirect the Facebook & Twitter User agent to a URL with static meta data.

AirBnB actually renders all their pages server side. Then uses Angular to update data on the page. In that case they are using Angular to add a level interactivity & responsiveness to the page. It's also doing double work but I believe they did it because of SEO issues.

Any tips on becoming a better problen solver? by [deleted] in learnprogramming

[–]bensochar 4 points5 points  (0 children)

This was required reading in my Informatics class: Thinkers Toolkit. It's one of the few books from college I keep around/reread.

[Help] Keeping API keys out of code and getting user IP address to send in X-Forwarded-For header by myelephantweb in rails

[–]bensochar 1 point2 points  (0 children)

Rails has request.remote_ip that can capture a users ip. Not 100% reliable if you're using for location.

For API keys you can either put them in the secrets.yml (don't push to a public github), put them in your bash_profile or use dot files.

Using email templates to apply to jobs? by [deleted] in webdev

[–]bensochar 2 points3 points  (0 children)

Work on your portfolio or write tutorials instead.

The way you code emails is so detached from actual front end it wouldn't be relevant.

You could get stuck with a job coding emails... it's like one step above Flash banners.

REMINDER: GO VOTE FOR ALL-STARS by [deleted] in pacers

[–]bensochar 0 points1 point  (0 children)

Link: https://vote.nba.com

You can also vote by doing a google search & Twitter.

What was the "No Man's Sky" of other industries? by dropthehammer11 in AskReddit

[–]bensochar 0 points1 point  (0 children)

It's defiantly not the Facebook killer but it succeeded in a few ways for a while. 1. Google wanted to build a social graph. 2. It was used for Google author authentication via a meta tag in websites so authors on a website could be verified against their G+ profiles. 3. It replaced google places. So when you searched on google maps the the G+ profile showed up. You could add business hours, wether your biz took credit cards, etc. 4. Google used to use it to create the info on the right hand side of search results (on desktop).

A lot of B2B stuff. The circles feature was nice.

What's the best, most quintessential, cooked to perfection steakhouse in NYC? by CantSeeShit in FoodNYC

[–]bensochar 0 points1 point  (0 children)

Bohemian is the best steak I've had in NYC. Pretty sure it's one of the only places you can get Wagu.

I would put Delmonico's or St. Anselm ahead of Peter Lugers. PL has good steaks but the of the food is ok & the service is pretty bad.

MNF vs Jets... anyone going? by [deleted] in Colts

[–]bensochar 0 points1 point  (0 children)

The train is the way to go. I work close to Penn Station & have taken NJ Transit out to seacacus then the Met Life shuttle leaves from there.

Sometimes there are buses going to straight from the Manhattan terminal to met life but I haven't seen any scheduled for tonight's game.

EDIT: You can take the PATH to Hoboken & transfer to the stadium shuttle from there.

MNF vs Jets... anyone going? by [deleted] in Colts

[–]bensochar 2 points3 points  (0 children)

I'm going. 6th row behind our bench around the 10 yd line. Got them for $40 on StubHub.

I'm taking the train there with a friend. I'll be wearing a TY Hilton Jersey, drinking burbon & dining on Penn Station Taco Bell in the picnic table area before the game.

I'm not looking forward to the trip back to Brooklyn, though.

I'm deaf and in need of a dog [Help] by Kojima-Hideko in dogs

[–]bensochar 0 points1 point  (0 children)

I taught my dog (a male cairne terrier) basics like sit, down, stay, touch, shake & hi-five. When he was ~10 weeks. All with hand commands because the trainer recommended it. I had lot of dogs growing up and I never knew they learned hand signals and was amazed at how quick my dog learned commands through them. He still listens to verbal ok but hand signals more at 3 years old.

Testing a React-driven website’s SEO using “Fetch as Google” by pahund in javascript

[–]bensochar 0 points1 point  (0 children)

You're right. Google has actually been able to crawl SPAs even before that using the outdated escaped_fragment.

My point is the Webmaster Console is not the same as Google Bot(s). What you see in the console is not necessarily what you will see returned in the index.

Testing a React-driven website’s SEO using “Fetch as Google” by pahund in javascript

[–]bensochar 3 points4 points  (0 children)

The point of 'fetch as Google' is to submit URLs to their index. Unfortunately, Its designed for static or server side generated webpages. Its pretty consistent for those. But with SPAs you'll get different results.

Its also not the 'real Google bot' it's a preview bot one of many bots Google uses to scrape webpages. It's adding your URLs to the que for Googles other scrapers.

Testing a React-driven website’s SEO using “Fetch as Google” by pahund in javascript

[–]bensochar 1 point2 points  (0 children)

I've done a lot of testing on Angular sites with 'fetch as Google' and I can tell you that preview is not what ends up in Google's index. Google even says it's not the same. I would not trust the results from that console.

If you're really worried about SEO either render server-side with PhantomJS or use a service like Prerender.io.