Recent submissions

Comment · 6 years ago
Thanks for sharing the video. Very interesting. If the whole thing is too long to watch suggest to start 17:30.

Here is my layman interpretation (disclaimer: I am not by any means knowledgeable in biology, and just wikepidyed most of the terms used):

1) our immune system has T cells that are responsible for recognizing if an antigen is 'foreign' molecule/substance or something that's generated by our own body (self).

These types of T-cells are called 'Regulatory T-Cells' [1]

2) Cancers, as an example, trick these types of cells to think that the cancerous cells are 'self'

3) For these type of regulatory T-Cells (T-regs) to get activated, they need 2 signals:

-a- signal that says -- here is a pathogen

-b- signal that says -- this pathogen is foreign (if not, immune system will not get activated).

Toll-like receptors help with -b-.

They work, in a way (this is my analogy, sorry if it is lame), like RegEx (regular expression), that have evolutionary encoded patterns that indicate the origin of a given antigen. And that's the core of Ruslan Medzhitov's research

4) So if we get the regex match of the antigen structure (which is being sliced 'prepped up' for the check, by slicing its proteins into peptides) -- the signal 2 is generated, and immune system will activate.

If the match did not happen -- no activation.

5) Another interesting thing, (or may be I misunderstood) Is that those TReg cells, each do not have 'all the patterns'. Instead, our body generates, randomly, many of those cells, and each one just have one of those 'RegEx'. So another key, is that our body has to, in parallel, so to speak, apply multiple of them to the foreign body. And so some of those TReg cells would never get activated (as they did not have the pattern to induce the -b- signal). But others, hopefully, would get the match and the -b- signal will happen, and immune system will get activated.

[1] https://en.wikipedia.org/wiki/Regulatory_T_cell

Comment · 6 years ago
How up-to-date is clojurescript+react-native workflow?

I checked Re-natal as tool to manage build/debug workflow with clojurescript+react-native

https://github.com/drapanjanas/re-natal

But re-natal supports up to React native 0.59, which is quite far back, in the RN-release-years time units.

Now React-native is 0.62.

Comment · 6 years ago
no.

I also know that they donate (or at least donated before now) hosting service to lobste.rs

I found them just by searching through like anybody else would.

I had never seen their ads.

are you affiliated with any of their competitors?

Comment · 6 years ago
PRGMR.com 1.25 GiB RAM, 15 GiB Disk for $5 per month.

https://prgmr.com/xen/ inexpensive. no overage charges. can pay by bitcoin. (and a FreeBSD friendly).

I wonder if you would also benefit from installing something like yunohost [2] on top of Debian. This will get you your personal cloud. And the use YounoHost's 'Custom web app' container [4]

This way, you get an automatically configured web server (nginx), with certificates (via Let's encrypt) that get auto updated.

You also get a pre-configured user/sftp access to your app's folders.

And those folders will be backed up when you hit the backup button...

Nginx will invoke your python app when the predefined URL is hit.

All you have to do is to point your domain registrar to the prmgr VPS host running yunohost.

[2] https://yunohost.org/#/whatsyunohost [3] https://yunohost.org/#/apps [4] https://github.com/YunoHost-Apps/my_webapp_ynh

Comment · 6 years ago
has it been established, without a doubt, that IQ is a quantitative genetic trait?

">..We proceed by summarizing IQ psychometrics and IQ as a quantitative genetic trait..."

Comment · 6 years ago
got it. thank you for the explanation. I am planning to add 'multiplayer' feature, where multiple participants needs to quickly exchange positional and surrounding attributes.

Currently system is in Java+JS front end. I feel that JSON serialization that I currently use, is not the right thing..

But at the same time, I care about 'size in kb' of the js front end. Therefore have been learning the options.

Comment · 6 years ago
I am wondering if D, Nim and Zig would be able to just leverage C++ version of Cap'n proto library directly ? (I think D has built-in C++ API support across compilers, not sure about the others)
Comment · 6 years ago
react native packaging into an Android app. More specifically: the @react-native-community/cli followed by metro bundler.

Every single time I have to upgrade react-native, I have no problems with the code base,

but with these horrible 'put a js config file here', put 'node_modules' there, set environment variable this way -- kind of tools.

This is approximately equivalent in frustration, trying to build a Linux-kernel with a new network-interface driver in early 90s.

..may be even worth than that.

Comment · 6 years ago
I looked at Soverign at the time I was setting up private cloud on a $5 VPS (prgmr.com with 1.5 gb ram)

I went with YunoHost.

https://yunohost.org/#/apps

I initially tried sovereign, but once I figured out I had to pay for tarsnap backup service, and that it did not have ansible for nginx setup (I needed that experience for work stuff), I went with Yunohost.

Sofar I am happy with YunoHost and subscribed to send periodic donation to the project.

Overall, though, if you are working with ansible at work, or want to advance in devops field, learning ansible and contributing to Sovereign project would be a good path to take.

Comment · 6 years ago
Yes, I have been doing same thing, only with LMDB.

I do not think LMDB could load from in-memory only object (as it has to have file to memory-map to), however.

But same design reasons, I wanted something that

a) I can move across host architectures

b) something that can act as key-val cache, as soon as the processes using it are restarted (so no cache hydrating delay)

c) something that I can diff/archive/restore/modify in place

We tested sqllite for the above purpose at the time, and writing speed and ( b ) - lmdb was significantly faster.

So we lost the flexibility of SQLite, but I felt it was a reasonable tradeoff, given our needs.

I also know that one of the Intel's python toolkits for image recognition/ai, uses LMDB (optionally) store images that processing routines do not have incur the cost of directory lookups when touching millions of small images. (forgot the name of the toolkit though)…

Overall, this a very valid practice/pattern in data processing pipelines, kudos to you for mentioning it.

Comment · 6 years ago
Comment · 6 years ago
Oracle has done the same in the last 25 years. Company I worked for used Oracle database for an enterprise system.

Oracle over the years, acquired some of our competitors.

Then every time customers would need to renew database licenses with Oracle, Oracle's sales reps would try to sell them the competing enterprise systems that they had acquired.

Comment · 6 years ago
For a specific ansible role for nginx, suggest to look at

https://github.com/nginxinc/ansible-role-nginx

it is complete free, open source, not difficult to use, does not require any additional tools on the target host.

On the control (source) host you just need ansible and target hosts need python3.

And from there you can use this role to push nginx install on 10 or 100 target hosts (with same single command). The hosts do not have to run the same OS (they can run a mix Debian-based, or -redhat based Linuxes, and a FreeBSD.. I think (although did not try that) ).

This role automatically setups and download the appropriate versions of nginx binaries, and allows pretty flexible config of nginx itself, from load balancers to reverse proxies, to plain-jane web servers...

Any passwords that may need to be transmitted to target hosts (eg for cert files), are normally encrypted in crypto-secure ansible vault. So they get transferred with SSH over to the host, without being ever bein stored plain on the source/controller host.

With regards to

> Most automation scripts are used to sell additional products like Ansible so this script avoids that.

I think most open source software, nginx including, can be though of as 'promoting' something or somebody. Just like any other endeavor that meant to be publicly consumed.

Comment · 6 years ago
> One can create new languages fit for the purpose of a given class of problems and thus reducing size of codebase 10 to 100 fold

interesting, thank you for sharing.

Could I transpose your thought into:

--

Solutions (or large scale programs), should not be written in a general purpose language.

Instead, there should be core domain language (solution DSL) developed (using a general purpose language) and then the solution should be developed using the solution DSL.

?

Comment · 6 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton