Better HN
topnewbestaskshowjobs
Log inSign up

premasagar

43 karma · joined Mar 31, 2011 (15y ago) · 41 submissions

JavaScript programmer (client-side and Node.js)

http://premasagar.com | http://dharmafly.com

Submissions

comment 10y ago · link · parent

A little playlist: https://open.spotify.com/user/premasagar/playlist/23HecvNHK1...

comment 10y ago · link · parent

SEEKING WORK

  Location: Remote - I’m from the UK, living in Portugal
  Remote: Only remote work
  Willing to relocate: No
  Availability: up to 3 days per week
  Technologies: JavaScript (front-end and Node.js), SVG, CSS, HTML
  Résumé/CV: https://www.linkedin.com/in/premasagar
  Email: p@premasagar.com
Website: http://premasagar.com

Recent projects include: data visualization of social inclusion, a Meteor/React-based community voting app; a Node.js web scraping spider; an SVG generator; and a test suite for a legal document generator. I’m happy to share details.

comment 10y ago · link · parent

Shenanigans like this will only hasten the onset of a bitcoin economy.

comment 10y ago · link · parent

SEEKING WORK

Location: Remote - I’m from the UK, living in Portugal

Availability: up to 3 days per week

I’m a JavaScript programmer, both front- and back-end. I’m familiar with ES2015+, the Node.js ecosystem and toolchain, and have been a web developer since my first website in 1999.

I have created and coordinated many web apps through my Brighton-based agency (http://dharmafly.com), and know what it is like to lead a project. These days I focus on my role as a freelancer for startups, companies and individuals.

Recent projects include: a Meteor/React-based community voting app; a Node.js web scraping spider; a SVG generator; and a test suite for a legal document generator. Happy to share details.

Email: p@premasagar.com

Links: http://premasagar.com | https://github.com/premasagar | | https://github.com/dharmafly | https://www.linkedin.com/in/premasagar

comment 10y ago · link · parent

I agree. There is always a choice, although the shift may be difficult or unsettling, and some people will feel freer to make a change than others. I think one huge component of this is location.

A little while back, I moved with my family from the city to the countryside (the foothills of central Portugal), where there is a growing community of migrants from western cities, living around and alongside the local villagers, who are mostly small-scale subsistence farmers. People call us the Neo Rurals.

Land and living costs are way less than where we came from, which means I can afford to work three days a week, rather than the 5 out of 7 days I was working before. I am fortunate to be able to work remotely (I'm a freelance JavaScript programmer) and to have come from an existing network (the wonderful Brighton, UK). Somehow projects arrive when I just need them (get in touch if you're looking for someone). But people here to do all sorts of work, and often grow food and generate their electricity to lower the base costs.

The door is open. Neighbours' children come by because they want to play. Many people home-educate / unschool. And we do pretty well as a community amusing ourselves, learning from and helping each other.

Uprooting is difficult, but I have never looked back. And it does come with some "hardships", but most of those are really joys.

comment 10y ago · link · parent

The elephant brain is better than the human brain. The fact that the elephant faces extinction at the hands of human brains and is only being saved from extinction by the work of other human brains is evidence at least at some level.

comment 10y ago · link · parent

You could also transmit to a whole room full of people without needing to connect to any networks or devices.

comment 10y ago · link · parent

Another place I'd love to see Meteor move towards the (future) standards would be an eventual replacement of Fibers with async/await throughout, which to me is more explicit and intuitive.

comment 11y ago · link · parent

As well as snap.svg, you may want to take a look at Pablo (I wrote it). It is for SVG manipulation and includes some animation methods [1] that utilise CSS or JavaScript callbacks (also SMIL which is recently deprecated).

[1] http://pablojs.com/api/#Animation

comment 11y ago · link · parent

Nice. Inter-app communication between web apps installed on any device.

A search engine for web app manifests would be a good starting point for a World Wide App Store.

11.

Convert your Honda Accord to run on trash(instructables.com ↗)

1 points · by premasagar · 11y ago · discuss

comment 11y ago · link · parent

Yes, SVGO is really good at this and other kinds of SVG optimisation and manipulation: https://github.com/svg/svgo/

13.

UK police move to take down Islamic State how-to guide from internet(theguardian.com ↗)

1 points · by premasagar · 11y ago · discuss

14.

Trovebox is shutting down(trovebox.com ↗)

1 points · by premasagar · 11y ago · discuss

comment 11y ago · link · parent

Ooops. I keep reading it as nsfw.js - I'm not sure what that module would do.

Congrats to the NW team.

comment 13y ago · link · parent

When I added the ability to import existing SVG images into Pablo, and to export the generated SVG in different image formats[1], I was pretty thrilled by the possibilities of having a JavaScript bridge between the design tools and the web app, the designer and the developer. And I see that Snap is also totally aligned to this kind of interaction between the web app and the external graphics tools, like Illustrator, Inkscape and SVG Edit.

The obvious next step is for a drop-dead simple visual interface to choreograph the graphics and the animations, with hooks into the rest of the JavaScript application. It could might be a game, interactive art, a visualisation or anything with graphics. Flash is dead, but there is nothing that exists for the open web that is as intuitive and fun to use as the Flash IDE was.

It must be just a matter of time before a tool as brilliant as the Flash IDE comes along for the open web, and I can imagine it makes a lot of sense for Adobe to be in on it.

[1] http://pablojs.com/api/#Import-Export

comment 13y ago · link · parent

There's a great little node.js-based tool called SVGO for removing the fluff and optimising SVG files: https://github.com/svg/svgo

comment 13y ago · link · parent

Wow. Snap looks beautiful. Nice one, Dmitry.

I've been enjoying working on my own SVG library, Pablo[1]. It's inspired in part by the fun I've had using Raphael, and wanting to explore what can happen when SVG is a first-class citizen of a library.

[1] http://pablojs.com

comment 13y ago · link · parent

I'll look into that. Thanks.

comment 13y ago · link · parent

Cheers for the feedback. Do you mean to add something like "Examples" to the navigation links at the top?

comment 13y ago · link · parent

It's great to see the steady rise of SVG on the web (finally!).

I've created a small JavaScript library for SVG, called "Pablo": http://pablojs.com

It packs in a lot for its size. Pablo lets you create and manipulate SVG, somewhat similarly to using jQuery and Underscore.

For those near Brighton, UK - there's a launch event this Friday: http://brightondigitalfestival.co.uk/events/pablo/

comment 13y ago · link · parent

Very nicely executed.

comment 13y ago · link · parent

Simply replace `extract: text` with `extract: href` for the anchor's href attribute. You can do this with any kind of attribute.

comment 13y ago · link · parent

Simon and Natalie, and all the team, congratulations on your continued rise of success. Yours has always felt like one of the most human and utterly useful services out there; long may it be so. Enjoy the new phase.

comment 13y ago · link · parent

A good idea. I've just added that to the docs site.

comment 13y ago · link · parent

It uses Cheerio for scraping, but it also lets you use selector queries to grab a subset of documents, whether the document is HTML, JSON or another format. It also lets you request multiple documents in one HTTP request, and a few other things.

comment 13y ago · link · parent

I didn't submit this, but I did oversee the project.

Noodle is a Node-based web scraper that also handles JSON, XML and other file formats. It was initially built as a hack project to replace a core subset of YQL.

All responses can be served as JSONP, to allow for cross-domain scraping from a website's front-end.

Selector queries can be used to grab a subset of a document - e.g. CSS selectors for HTML documents and dot-notation for JSON documents. It lets you request multiple documents in a single HTTP request, and a few other things.

I helped to guide an intern, Aaron Acerboni, at my company, Dharmafly, when he built it last year.

comment 13y ago · link · parent

Whoops. Now fixed. Not sure how that happened.

comment 13y ago · link · parent

See also http://noodlejs.com for a Node-based web scraper that also handles JSON and other file formats.

It was initially built as a hack project to replace a core subset of YQL. (I helped to guide an intern at my company Dharmafly, Aaron Acerboni, when he built it).

12