News for hackers. Stuff that matters.

ghinda

Great news to hear Lexical replacing Draft. Also great that you're handling `beforeinput` (like Slate). I work on a text expander browser extension and supporting Draft is a pain[1].

Are there any plans to make inserting text from the "outside" easier on Lexical? Maybe exposing the Lexical instance on the dom node (like CKEditor does)? Right now we're using `execCommand` to support Lexical.

[1] https://github.com/Briskine/briskine/blob/master/src/content...

Re:Show HN: Private front-end code playgrounds on Tuesday September 17, 2019 @03:14AM (#20992505)
Great work! Have you found a way to compress/shorten the urls?

I built something similar[1] a while ago, but the urls are still too long for sharing without a shortener. I'm using lz-string[2].

[1] https://www.siloz.io

[2] https://github.com/pieroxy/lz-string

Re:How solid is Tim’s plan to redecentralize the web? on Friday October 05, 2018 @02:35AM (#18146132)
CouchApps had a better vision for the web. You would run a local CouchDB and replicate the app next to your data, rather then giving the app access to your data while hosted somewhere else. It has the added benefit of working offline.

Some sort of cross-domain request blocking could then prevent the app from stealing your data.

A bit of a shameless plug, but if you want predictable, I've built a browser extension for the "nudge" part: https://www.nudgeti.com/

It shows a browser notification when you spend more than two minutes on certain websites.

Re:Ideal OS: Rebooting the Desktop Operating System on Sunday August 20, 2017 @02:41PM (#15059653)
You have most of these, or at least very similar versions, in Plasma/KDE today:

> Document Database

This is what Akonadi was when when it came out for 4.x. Nepomuk was the semantic search framework so you could rate/tag/comments on files and search by them. They had some performance problems and were not very well received.

Nepomuk has been superseded by Baloo, so you can still tag/rate/comment files now.

Most KDE apps also use KIO slaves: https://www.maketecheasier.com/quick-easy-guide-to-kde-kio-s...

> System Side Semantic Keybindings

> Windows

Plasma 4 used to have compositor-powered tabs for any apps. Can't say if it will be coming back to Plasma 5. Automatic app-specific colors (and other rules) are possible now.

> Smart copy and paste

The clipboard plasmoid in the system tray has multiple items, automatic actions for what to do with different types of content and can be pinned, to remain visible.

> Working Sets

These are very similar to how Activities work. Don't seem to be very popular.

Re:An interactive way of blogging about JavaScript on Tuesday June 21, 2016 @04:47AM (#11944408)
I built something very similar a while ago: https://github.com/ghinda/jotted

I'd say it's more lightweight by default (it's not mandatory to use an editor like CodeMirror) and more flexible because of the plugin system (there are plugins for using Ace or CodeMirror as editors, or for compiling ES6, CoffeeScript, Less, Stylus, Markdown).

It also has a Console plugin, like the one in devtools, that makes it work like klipse. https://twitter.com/ghindas/status/697790917302996993

There are a bunch of demos on the site: https://ghinda.net/jotted/#demos

Sure, because of the plugin support it shouldn't get too complicated.

You can use strings instead of urls, for files. So you could do something like:

  loadFromS3(function (fileContent) {
    j = new Jotted($container, {
      files: [ type: 'css', content: fileContent ]
    })
  })
then create a plugin for it that saves the changes back to s3:

  j.done('change', function (err, params) {
    saveToS3(params.content)
  })
Here's some details about the plugin api: https://github.com/ghinda/jotted#plugin-api
Re:Flexbox in 5 minutes on Wednesday September 09, 2015 @06:34AM (#10190664)
Ironically IE9+ support for display:table is worse then IE8-, especially regarding inherited dimensions on child elements.

I wrote a small grid library[1] using display:table, as a flexbox alternative for older browsers, and had no choice but to use js to fix IE support.

Firefox also has some issues, don't know if because of the spec or the implementation, but those can be worked around with css.

[1] https://github.com/ghinda/gridlayout

Re:Ask HN : What side project are you working on? on Wednesday August 19, 2015 @11:34AM (#10086207)
GridLayout, a flexbox-alternative CSS grid with support for older browsers. Needs a small script for IE support.

https://github.com/ghinda/gridlayout

Re:Mozilla to open first-world front in Firefox OS war on Sunday March 01, 2015 @04:34PM (#9128988)
I don’t want to sound like a broken record, but Webkit was originally a fork of KHTML, which is LGPL, so they were required/forced to release it under the same license.

And based on the their upstream contributions[1] it doesn’t look like it was a gesture of goodwill.

[1] https://en.wikipedia.org/wiki/WebKit#Split_development

Re:1Password on Linux on Monday February 23, 2015 @07:15AM (#9093864)
I'm surprised nobody mentioned https://www.passwordmaker.org/. It takes a different approach, but works surprisingly well.
I also have a similar, but definitely not tragic, story. In the late '90s my dad got us a ZX Spectrum, so me and my brother learned BASIC and played Deathchase.

Around ~2000 we got a Pentium "75", that is - 75mhz, 16mb ram, 500mb hdd with no cdrom or sound card. I think it had a 2mb S3 video card, and came with Windows 95.

At some point, after some tweaks, you could play Mortal Kombat 4 in a very small window, installed from multi-rar archives on around ~20 floppys.

We had a lot CDs with games from gaming magazines, with "cool" (or so I thought at the time) HTML/JavaScript autoruns, that ran with Internet Explorer 4. Since most of these games (eg. NFS 3) wouldn't run on my PC, I found out how to "View Source", and I basically learned HTML/CSS/JS from them. In 2003 I sold my first "DHTML" menu widget.

Re:Ask HN: Freelancer? Seeking freelancer? (July 2014) on Wednesday July 02, 2014 @12:51AM (#7975259)
SEEKING WORK - Remote, based in Cluj-Napoca, Romania

We’re a two-man team good with JavaScript (node, angular, phonegap, etc.), all-round front-end work, and UI design.

Lots of experience with building single-page apps - APIs with Node and client apps with Angular or other frameworks.

https://github.com/ghinda

[email protected]

Re:Ask HN: Freelancer? Seeking freelancer? (March 2014) on Saturday March 01, 2014 @11:23AM (#7324768)
SEEKING WORK - Remote, based in Cluj-Napoca, Romania

We’re a two-man team good with pretty much anything JavaScript (node, phonegap, angular, etc.) and all-round front-end work. Also good with design (graphic, ui), dbs (mongo, couch), project management, testing or front-end ops.

Lots of experience with building single-page apps - both the back-end Node APIs and client-side apps with Angular or other frameworks.

https://github.com/ghinda

http://ghinda.net/

Re:Only 90s Web Developers Remember This on Tuesday February 25, 2014 @04:34PM (#7300717)
90s? I was still building "DHTML menus"[1] with IE filters[2] in ~2003. Don't know if proud or ashamed.

I used to use an editor called Arachnophilia [3], which surprisingly is still in development. Way better than FrontPage.

[1] http://www.effectmaker.com/gallery/jsslidemenu/index.html

[2] http://www.effectmaker.com/gallery/jsimageswapmenu/index.htm...

[3] http://www.arachnoid.com/arachnophilia/index.php

Re:Ask HN: What are you working on and why is it cool? on Sunday October 27, 2013 @04:30AM (#6621269)
I'm working on Business Card Maker(http://bizcardmaker.com/), a very simple client-side business card generator that can quickly export PDF or JPEG.

It's definitely not as cool as most of the stuff here, but it's real easy to work with, that's why I'm hoping it will be helpful for people with no technical skills and small businesses.