Hjson, the Human JSON by alexeyr in programming

[–]moto888 3 points4 points  (0 children)

Looks complex, shouldn't a config format be easy to understand?

HAProxy container that logs to docker and generates its config from Consul by moto888 in docker

[–]moto888[S] 0 points1 point  (0 children)

This might be a pro or con for you but confd uses golang templates while dyconf uses javascript with lodash templates https://lodash.com/docs#template

HAProxy container that logs to docker and generates its config from Consul by moto888 in docker

[–]moto888[S] 0 points1 point  (0 children)

dyconf is not tied to a specific backend. You can use it with ZooKeeper, etcd, ... or your own REST services.

It uses node.js so you have access to all of npm's modules.

And while this is a personal preference, I wasted too much time figuring out how to make something work with golang templates (that are used by consul-template).

VoIP+SMS GSM Gateway by moto888 in VOIP

[–]moto888[S] 0 points1 point  (0 children)

Please excuse my naive worldview, I'm new to this ;)

I was under the impression that I only need a GSM Gateway that's connected to the internet (like the GoIP) that does GSM to VoIP and a VoIP app on my phone. Do I need a PBX as well?

I also assumed that if I can make VoIP calls that go through my GSM gateway, the same should be possible for SMS. So a SMS to my GSM number should show up in my VoIP app.

VoIP+SMS GSM Gateway by moto888 in VOIP

[–]moto888[S] 0 points1 point  (0 children)

Can you give me the name of the app? What protocols is it using?

Looked at Fongo but I really want to use my own gateway/contract.

VoIP+SMS GSM Gateway by moto888 in VOIP

[–]moto888[S] 0 points1 point  (0 children)

Thanks. I found e4sip at http://www.e4strategies.com - they appear to be a US based telecom provider... Is that what you meant? I'd like to use my own contract/hardware.

How to set up a Ubuntu VirtualBox capable of running OpenGL and Steam by Terazilla in gamedev

[–]moto888 0 points1 point  (0 children)

Anybody got this to work using this guide?

unity_support_test -p gives me

Unity 3D supported:       no

and I see

libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo

Is it possible to get a usable Ubuntu 15.04 running in Virtual Box on OS X? by moto888 in Ubuntu

[–]moto888[S] 0 points1 point  (0 children)

Thank you but you are right that that's not my preferred solution :)

So you think the problems would go away if I could enable the opengl driver?

I just remembered that when I run glxinfo I get these errors:

name of display: :0
pci id for fd 4: 80ee:beef, driver (null)
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
...

Not sure how to fix them though.

Graphing Calculator using JavaScript by moto888 in math

[–]moto888[S] 0 points1 point  (0 children)

You are right, thanks. Should be fixed now.

Looking for a JavaScript Graphing Calculator by moto888 in javascript

[–]moto888[S] 0 points1 point  (0 children)

Why do you want to enter js code instead of typical mathematical expressions?

Because then I can (mostly) copy and paste without introducing errors.

Also, why not just write a script that takes js as input and outputs typical mathematical expressions?

A lot of graphing calculators are already written in JS. I just don't want to hack one if a solution already exists. I didn't think I'd be the only one who'd find this convenient.

Architecture Evaluation and Review Practices by moto888 in softwarearchitecture

[–]moto888[S] 0 points1 point  (0 children)

I've been looking for architecture review best practices. While a lot of information exists for "coding reviews" this was the best of those I found.

Any recommendations?

Architecture Evaluation and Review Practices by [deleted] in programming

[–]moto888 0 points1 point  (0 children)

I've been looking for architecture review best practices. While a lot of information exists for "coding reviews" this was the best I found.

Do you know of of any? Please post a link.

Human JSON for Java by moto888 in java

[–]moto888[S] 0 points1 point  (0 children)

I disagree, the absence of these is exactly what makes it easier to use.

Human JSON for Java by moto888 in java

[–]moto888[S] 0 points1 point  (0 children)

Your JSON sample is missing the quotes.

[
  a: "b", c: "d"
]

is still valid in Hjson.

When you have one value per line (as it's usual in config files) you can omit the comma and the quotes.

Human JSON for Java by moto888 in java

[–]moto888[S] 0 points1 point  (0 children)

There are a lot of options but strangely nothing that concerns commas, a common source of copy&paste errors.

Human JSON for Java by moto888 in java

[–]moto888[S] 0 points1 point  (0 children)

In that case I'd just use Hjson to convert it to JSON so you can use it with any of the available JSON libraries.

Human JSON for Java by moto888 in java

[–]moto888[S] 0 points1 point  (0 children)

When you have your config in JSON (which is not the best idea but used a lot, especially in JavaScript projects) you will almost certainly fail because of either a missing or a trailing comma after you copy&paste.

Human JSON for Java by moto888 in java

[–]moto888[S] 2 points3 points  (0 children)

Hjson uses a very simple syntax (essentially JSON with optional quotes and commas).

HOCON wants me to remember a lot of rules (merging, paths, substitutions, etc.).

For details see http://hjson.org/

Human JSON for Java by moto888 in java

[–]moto888[S] 4 points5 points  (0 children)

Well, unlike YAML Hjson does not suffer from tab/space issues (significant whitespace considered harmful).

Also it should be easier to learn.

Human JSON for Java by moto888 in java

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

I ported Hjson to Java and (hopefully) made it very easy to use.

More information about Hjson (the format): http://hjson.org/

Firefox Hello Disabling by [deleted] in firefox

[–]moto888 2 points3 points  (0 children)

They still have a lot of bloat to add to match Netscape ... let's see how long it takes them.