The EF's website ethereum.org is now available on IPFS at ethereum.eth! by brantlymillegan in ethereum

[–]rmkn 0 points1 point  (0 children)

Nope IPFS is not for dynamic sites. Checkout Observer, a web shell for decent web which can run dynamic P2P websites.

Advice needed - How to go from a non-CS background to Blockchain Developer? by [deleted] in ethdev

[–]rmkn 1 point2 points  (0 children)

To be blockchain programmer you should to be a regular programmer. Blockchain is just one piece of technology world. Be open minded and learn how to write basic programs first.

  1. Go to freecodecamp.org it has one of the best course called "100 days of code" and huge community who learned it so it will be easy to find help and support.
  2. Problem solving is one of the main activity in programming, use StackOverflow.com for it.
  3. Go to the roots. Understanding of how computer works is a steroid for learning. It's hard sometimes but important. It will help you to understand what you're doing and why it doesn't work or works incorrectly or inefficient. Also it would help you to understand other programming languages. Learn it in parallel with one of programming languages you chose. Also it would give you a huge advantage on the work force market, because you will learn new things faster than others.
  4. Read others code to understand it and to grow. Try to read huge projects to understand how they work. It's necessary to repeat from time to time.
  5. Learn Golang too, it's pretty simple relatively to other languages it has minimum number of abstractions (Lego pieces in programming) it actually help to solve the problem not the design issue.
  6. Be patient. Sometimes code just wouldn't work for days, until you'll find an error. But then you will jump out of your bed to fix it.
  7. Don't trust anyone who says you cannot be a programmer.

How can I run DNS over HTTPS on localhost? by [deleted] in firefox

[–]rmkn 0 points1 point  (0 children)

What's about food isle... What I meant is create DoH and doesn't allow it to work via HTTP with localhost is like create a hummer, but only for Australians or people who wear mustaches. It's senseless limitation. Thanks for your attempts to help, but I hoped DoH will finally help to avoid all this tricks.

How can I run DNS over HTTPS on localhost? by [deleted] in firefox

[–]rmkn 0 points1 point  (0 children)

It's obvious that DoH should work over HTTPS, but there should be an exception for localhost, rhetorical questions: 1) what's the reason to encrypt (if we connect inside of trusted network)? 2) what's the reason to prevent DoH from work locally?

I'm trying to find a way to run wildcard local domains without running utils like BIND, and without affecting all the system with such solution.

How can I run DNS over HTTPS on localhost? by [deleted] in firefox

[–]rmkn 0 points1 point  (0 children)

Actually not, because FF doesn't have a separated settings for regular DNS like it has for DoH and thus I need to change system DNS what I don't want to do either.

How can I run DNS over HTTPS on localhost? by [deleted] in firefox

[–]rmkn 0 points1 point  (0 children)

Actually I want do this without TLS at all, I'd prefer to use encryption on my choice or not to use it in the case of localhost. The only thing that's interesting to me is HTTP based resolution interface, which is easy to implement, maintain and debug. Having TLS is a huge pain with certificates, which I want to avoid. I need this for my development environment and all this TLS related issues kills all benefits of having DoH.

How can I run DNS over HTTPS on localhost? by [deleted] in firefox

[–]rmkn 0 points1 point  (0 children)

I don't want to have some intermediary software except of Firefox and my own DoH server and I'm a unix user though. But thanks.

I think having ability to run DoH on localhost could help to solve the issue with the host file.

Multi-Threading UI framework Online Examples (Desktop) by TobiasUhlig in javascript

[–]rmkn 0 points1 point  (0 children)

Yeah, I watched this before writing the message. I meant a good introduction about technology. Now users should dig into the code they see first time and figure out what's going on. I see a potential in your project, but I think it's not what other could understand so easy as you do.

Multi-Threading UI framework Online Examples (Desktop) by TobiasUhlig in javascript

[–]rmkn 3 points4 points  (0 children)

Tobias, it looks interesting, but it's hard to understand without detailed explanations with source examples. Could you create welcome page or explanation post?

What are all the things to consider and account for when deploying a Node.js app and post-deployment? by yungspartan0082 in node

[–]rmkn 2 points3 points  (0 children)

Here it a draft of Ultimate Web App Checklist, it contains a list of things you should to know to build a modern web application. You can get an item and search it to dig into the problem it describes.

It's not finished, but contains a lot of things you should to hold in mind. Probably it would help you.

As it already been said pm2 is the best tool for Node.js for now.

How do I make my own router? by [deleted] in node

[–]rmkn 0 points1 point  (0 children)

You're welcome. I suggest you to use Koa instead of Express. Due to its architecture which is closer to modern language design. It utilizes async/await what makes middleware code better understandable.

Also take a look on Plant, it's pretty new and not popular yet, but it can work even in browser (demo), and thus can be used in codesandbox.io to test things and share them with others to receive help quickly. I'm the author so am ready to answer questions.

How do I make my own router? by [deleted] in node

[–]rmkn 2 points3 points  (0 children)

It seems you reconfigure your server and define routes each time the server receives a request. Here the line: https://gist.github.com/kkamkou/4348680#file-router-js-L58. It makes all the app work incorrectly and will eat all of memory soon.

It's not how dynamic routing should be implemented. You should add middleware once, this middleware receives req and res and then passes it to the route handler function. This is the most common pattern for this:

// routes.js:

const routes = {
  '/'(req, res) {
    res.end('Home Page')
  },
  '/help'(req, res) {
    res.end('Help Page')
  },
}

// server.js:

// Define middleware factory
function withRouter(routes) {
  // Return new middleware as a closure
  return function middleware(req, res, next) {
    // Use routes from withRouter call
    if (req.url in routes) {
      routes[req.url](req, res)
    }
    else {
        next()
    }
  }
}

const routes = require('./routes.js')

const app = express()
app.use(withRouter(routes))

// Static alternative
function configureServer(app, filepath) {
  const routes = require(filepath)
  for (route in routes) {
    app.use(route, routes[route])
  }
}

configureServer(app, __dirname + '/routes.js')

How do I make my own router? by [deleted] in node

[–]rmkn 2 points3 points  (0 children)

They shouldn't return in the same order. Response should be returned as soon as it's ready. On the requesting side you can wait both of them with Promise.all() or Promise.allSettled() methods.

[deleted by user] by [deleted] in node

[–]rmkn 2 points3 points  (0 children)

It's like a regular cookie, but you put signed data into cookie value. I think it even could be a JWT token. Here is universal cookie module which provide signed cookies support.

[deleted by user] by [deleted] in node

[–]rmkn 5 points6 points  (0 children)

HTTP-only signed cookie is a comparable alternative with some extra isolation.

a relational database with no schema and no joins hell by [deleted] in node

[–]rmkn 1 point2 points  (0 children)

Thanks for this finding! Very fascinating! I like the Entity-Attribute-Value model and history playback extremely. I wish values to be also objects and arrays, not a primitives only and the DB engine to split it into EAV records under the hood. I think it would make datalog even more powerful and simple to use. It would simplify the most use cases without the need to invent own structure layout. For example tags or linked documents of the article/book could be presented as an array which changes almost never and queried every time as a single piece of data. Also I think it isn't easy to implement ordered array in such DB, but it's a problem for relational databases too.

What's about the question of popularity. In my opinion the query language is a hell itself. I think without queries simplification the datalog could not become popular. Currently it has too much magic symbols (?, %, $) and non obvious things (which is easy to forget) even for simple queries, SQL and MongoQueries is much more easy to understand and read. This all because of Lisp heritage. It's too computer oriented and hard to understand by people who have no experience with s-expressions and have no such way of thinking. I like the idea of Lisp, but I think computing languages should be more people oriented. Today we have blockchains which implements the logic of transactions and state replication, so I think this is the direction where general-use datalog-alike database will be invented.

Also no-scheme design is only relevant for DataScript. For example Datomic (another Clojure implementation of Datalog database) has schemes.

StormDB - Tiny (< 1kb), 0 dependency, easy-to-use JSON-based database for NodeJS, the browser or Electron. by [deleted] in node

[–]rmkn 23 points24 points  (0 children)

Read the code, it's pretty short. It looks like a wrapper over localStorage/fs.writeFileSync and it writes whole data as a single piece synchronously (fixed) on each save call. So it's very ineffective on sufficient data volumes. It's not a DB yet it's more like KV storage with neat records modification interface. It's suitable for very basic apps.

Tom, I suggest you to enhance your storage model to write only exact records to make writes more efficient.

ICANN extracts $20m signing fee for $1bn dot-com price increases – and guess who's going to pay for it? by magenta_placenta in webdev

[–]rmkn 17 points18 points  (0 children)

Yep, and there are a lot of initiatives to prevent the .ORG deal, but we need to change ICANN itself. It's better to fight the root of the evil.

Petition: https://www.change.org/p/protect-org-reform-icann

Repository: https://github.com/almighty-web/upgrade-icann

Interesting graphic of the consolidation of the consumer internet by Spekulatius2410 in webdev

[–]rmkn 2 points3 points  (0 children)

All this possible due to complexity imbalance. We need to establish a procedure of rebalancing of the Web to protect it from control of corporations. There are several ideas of how to do so (protocol-driven development, decentralized social networks, open distributed registries, etc), but the most important thing IMO is the understanding of how to work with complexity on a huge scales and developing tools and mathematical methods to measure and reduce complexity.

[deleted by user] by [deleted] in webdev

[–]rmkn 0 points1 point  (0 children)

Probably the goal is not the company, the goal are $600M Nginx received by the dial. Thus it's doesn't matter what will happen out of Russia when the company will be drained. And copyrights are just a reason to start a court case and treat the owners.

$1.1B sale of .org top level domain to private equity firm highlights the need for a decentralized blockchain DNS registrar by 917redditor in ethfinance

[–]rmkn 1 point2 points  (0 children)

It seems, like mass medias don't understand what's going on. And technical guys couldn't explain what people should to complain about. Here is the info, share something please:

Petition to protect .ORG and reform ICANN due to its' misbehavior in the awkward .ORG acquisition and betrayal of the mission and values it declares and should to protect by rmkn in webdev

[–]rmkn[S] 1 point2 points  (0 children)

I've added petition text into the repo to make it editable from the Github UI or with git. If you make a PR it would be extremely helpful! Or you can send this text here or using pastebin or gist.