HN user

vyuh

1,069 karma

I like extremely concise source code, particularly in C or PERL.

Posts83
Comments31
View on HN
tesseract-ocr.github.io 1y ago

Command Line Usage

vyuh
3pts0
web.evanchen.cc 3y ago

The Napkin Project

vyuh
1pts0
www.gnu.org 4y ago

Smalltalk Tutorial

vyuh
3pts0
cortexjs.io 4y ago

MathJSON data interchange format for mathematical notation

vyuh
5pts0
www2.archivists.org 4y ago

What Are Archives?

vyuh
2pts0
gretl.sourceforge.net 4y ago

GNU Regression, Econometrics and Time-Series Library

vyuh
62pts10
literature-clock.jenevoldsen.com 4y ago

Literature Clock

vyuh
3pts0
xwmx.github.io 4y ago

Nb is a command line note‑taking, bookmarking, archiving, and knowledge base app

vyuh
4pts0
blog.thechases.com 4y ago

How I Use remind(1)

vyuh
3pts0
www.w3.org 4y ago

Declaring Language in HTML

vyuh
2pts0
www.unexpected-vortices.com 4y ago

Python Notes and Examples

vyuh
2pts0
tcl.tk 4y ago

How to Use Tcl 8.1 Internationalization Features

vyuh
3pts0
gregheo.com 4y ago

Foreign Keys – An Introduction

vyuh
2pts0
www.bbc.com 4y ago

Covid vaccine: India gives 20M jabs in a day

vyuh
1pts0
georgecoghill.wordpress.com 4y ago

Plain Text Journaling System

vyuh
4pts0
hackage.haskell.org 5y ago

JSON-autotype: Automatic type declaration for JSON input data

vyuh
2pts0
lispcast.com 5y ago

JSON and Algebraic Data Types

vyuh
2pts0
developer.mozilla.org 5y ago

Front-end web developer learning pathway

vyuh
2pts0
wiki.lazarus.freepascal.org 5y ago

Basic Pascal Tutorial

vyuh
15pts3
github.com 5y ago

Flame: A PureScript front-end framework inspired by the Elm architecture

vyuh
156pts39
faq.whatsapp.com 5y ago

What is traceability and why does WhatsApp oppose it?

vyuh
1pts0
people.csail.mit.edu 5y ago

Quasiquotation in R5RS Scheme

vyuh
2pts0
smlnj.org 5y ago

Standard ML

vyuh
3pts0
www.vectorian.net 5y ago

The biggest library of vintage graphics

vyuh
2pts0
introcs.cs.princeton.edu 5y ago

Programming in Java · Computer Science · an Interdisciplinary Approach

vyuh
15pts1
www.elm-spa.dev 5y ago

Elm-spa: single page apps made easy

vyuh
4pts0
elmcsspatterns.io 5y ago

Common CSS patterns done in elm and elm-CSS

vyuh
1pts0
github.com 5y ago

Elm-visualization: A data visualization library for Elm

vyuh
2pts1
www.mathcha.io 5y ago

Mathcha – Online Mathematics Editor

vyuh
20pts3
www.scipy-lectures.org 5y ago

Scipy Lecture Notes

vyuh
320pts45

I like this idea, It'll be good to have the best of both worlds. Is there a way to optimize search engine visibility for such short urls? perhaps with a good title, meta tags having keywords etc.? Is there a HTML meta tag that gives the search engine crawlers an alternate hierarchical url for the same page? I believe setting up the server to do this is not too difficult.

Nim 1.6 5 years ago

Fast compile times: a full compiler rebuild takes ~12s (Rust: 15min, gcc: 30min+, clang: 1hr+, Go: 90s) [2].

Whoa, this really surprised me!

"A good programmer uses the most powerful tool to do a job. A great programmer uses the least powerful tool that does the job." I believe this, and I always try to find the combination of simple and lightweight tools which does the job at hand correctly.

Awk sometimes proves surprisingly powerful. Just look at the concision of this awk one liner doing a fairly complex job:

    zcat large.log.gz | awk '{print $0 | "gzip -v9c > large.log-"$1"_"$2".gz"}' # Breakup compressed log by syslog date and recompress. #awksome
Taken from: https://mobile.twitter.com/climagic/status/61415389723039744...

I think if someone implements this thing without breaking backward compatibility, then it will be valuable even as a fork of the original elm compiler. I think the License allows this.

Also, Evan has not closed this issue since 2015. Most probably it is about "too much work to get it right" rather than "I'm not convinced that we need it".

Elm handicaps my attempts of "making impossible states impossible" because:

- I can't have Sets of arbitrary Types they must be `comparable`. I cannot create a custom comparable type.

- Records, Bool and custom Union Types are not `comparable`

- Bool and Simple Union Types could have been comparable if their comparison worked like they were Enumerated Types. Elm does not have Enumerated types.

Basically https://github.com/elm/compiler/issues/1008 made me look for better alternatives.

Inkscape 1.1 5 years ago

I agree, this can be shocking for many casual users. I think there is an option to save a "plain SVG" as opposed to "inkscape SVG". Does "plain SVG" also include such information?

A few months ago I tried my hand at this because it had some better defaults. Also, I didn't like camel case variables everywhere in Hugo. Then, I gave up when I realised that Zola does not even allow YAML config files. Nit picks everywhere..

When I removed snapd from Ubuntu, all installed snaps and their mount points still remained. Then I reinstalled snapd to remove the snaps. I could not find a command to force remove a snap if other snaps depend on it. So I had to delete each snap one by one manually, taking care of dependency tree.

Even if you need to preserve client state between page loads (for e.g. music or video playback) you can let the browser do most of the heavy lifting by fetch()ing a new page and replacing your content container at the DOM level.

Anyone knows of some easy to learn example of such DOM replacement?

"to convert the PDF (or Word doc, XLS, etc) remotely without the file ever touching the user's device"

This made me think that the site accepts a URL to a PDF/XLS/DOC file and returns PNG.

I posted this link but now the title has somehow changed. I do not know what is the policy on HN. But the title saying "[video]" might give a wrong impression that this points to a one hour long video. The link points to a tutorial which embeds an entirely optional two minute video that introduces the main content contained in five web pages.

The author has also written related tools. One to convert XML to JSON and back (https://github.com/ldn-softdev/jtm) and another to convert JSON to SQLite tables (https://github.com/ldn-softdev/jsl). Combining these with the hxnormalize tool ( https://www.w3.org/Tools/HTML-XML-utils/man1/hxnormalize.htm...), one can do very sophisticated manipulation on HTML web pages.

HTML -> XML (via hxnormalize) -> JSON (via jtm) -> process using jtc (or even jq)

I wrote a program that generates all sudokus that satisfy constraints given in a partially filled grid. I thought it might be feasible to find out the distribution of 81 digit numbers that are valid Sudokus by such brute force. Since there are so many sudokus, I made the program capable of resuming an interrupted computation using a dump file. All this I did in C. It was quite a learning experience. Here goes: (https://github.com/vyuh/sud.c)

For some fun I also translated the algorithm to Javascript (https://github.com/vyuh/sud.js) and Java (https://github.com/vyuh/sudoku-lister/blob/master/java/sudok...). The javascript code is used in a toy browser application i made (https://su-do-ku.herokuapp.com/).

Some day I might generalize the program to larger Latin Squares (https://en.wikipedia.org/wiki/Latin_square).

When I downloaded my Facebook data few years ago, my notes were missing. I had to reactivate my account, save them as HTML pages, and queue account for deletion again. One should not think of profiles on these sites as reliable archive of ones data. There is no alternative to local backup for this. With deletion one loses so many little memorable things, for example comments.

In config.h:

  /*
   * appearance
   *
   * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
   */
   static char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
Try to specify font name in this format.