HN user

arbus

96 karma
Posts1
Comments27
View on HN

A kind of OT question related to socket.io.

I am trying to develop an application that can be horizontally scaled. I understand using the socket.io-redis package seems to allow you to emit to a particular socketid from one instance while that connection itself is connected to another machine and the redis connection will take care of the communicating. This in a sense abstracts away the fact that there are multiple servers by just taking care of it transparently.

Are there any provisions within socket.io or another package that allows you to sync normal js objects across servers as well? The alternative as I see it is to use redis pub/sub to keep the state in sync but this feels like it should be a solved problem that one need not reinvent the wheel for.

Could this lead to double spend scenerios? For example, I have 10 LTC on the current system and these guys fork to form a new network. Can I then spend the 10 LTC I have twice, once on their new network and once on the old network?

We don't need the Litecoin developers. We need the majority to support this to make this hardfork work.

This is a pretty interesting comment from the person who is proposing the fork. I wonder how the currency will split if a sizable amount of people switch to this method of mining? Will the devs be forced to accept their fork or will this just split off into a litecoin 2.0 that is ASIC resistant which previously mined coins grandfathered into this new fork

If it is a typo in the ID number, thats understandable. But the social tracking id seems to be wrong too and that also points to the authors id. Can't be wrong twice and have both mistakes point to the same person

You would generally want to put that as the title or alt text of the image for it to get indexed correctly without any penalty

The page for directives is another (in)famous part of the docs that, despite relating to one of the most important aspects of the framework, is often derided as being overly dry

While that used to be true, the directives page recently got updated to provide a much better and simple guide to directives along with plently of code samples - http://docs.angularjs.org/guide/directive

This idea seems like it would be a much better fit for tablets rather than phones.

You have much more room to play around with on a tablet and perhaps the typical usage patterns of the tablet actually encourages you to swap out your bloks for different purposes.

For example, I could switch to a better but more power consuming Wi-Fi module when I'm at school which usually has crappy coverage but could then swap that out for longer duration battery so that I can watch shows on the train ride back home without compromising on screen brightness or risk the tablet dying before I get home

Haven't seen this mentioned here yet, but Laravel is a great option if you are considering PHP. Laravel 3 is very mature while 4 is just around the corner. It comes with a nice CLI for scaffolding and is very well documented. It also has a nice speed advantage over frameworks like Cake. Laravel + AngularJS makes for really fast development times while creating low maintenance applications.

Geometee 13 years ago

Really cool! Please consider replacing the tiny knobs with something a bit more user-friendly like sliders

Child proofing your house does not include throwing away everything that is dangerous in the house, the same way you lock your liquor and medicine cabinet instead of getting rid of them.

Death in Singapore 13 years ago

Sure its a Disneyland with a death penalty if you want to call it that but you seem to be implying that either I'm in acceptance with the way things are run or if I'm not, I have no business living here.

I think that uprooting from your home, leaving your family, friends and culture behind takes more than just disagreement with the wayyour government is run. This is of course assuming that you or your loved ones are not in immediate danger of any kind.

Death in Singapore 13 years ago

Maybe I'm out of my scope in your points about nature or political freedom as I haven't really experienced life in other countries enough to comment but I would like to explain the military part a bit more.

True it is compulsory but I think that a great majority of the people who experience it are better off for it. Our country has the highest rate of millionaires(1 in 6) and the kids that come from these households are much better off for the work ethic, value of money and socialization that we instill in them. The training that they go through may not be as rigorous as those who go through full spectrum military training in other countries but it teaches them mental discipline and the ability to give and take orders(20% of each years' intake go on to become commanders) which I'm sure you would agree too many kids learn far too late in their lives. It also has the side effect of providing baseline physical fitness, allowing for a much healthier population in the long run.

Death in Singapore 13 years ago

I'm a Singaporean and have served for some time in the military( Compulsory National Service as well as a short stint as a regular) and I think that the comments below seem to misunderstand the level of control that the government has over speech, people and companies in Singapore.

We have many restrictive laws here but they are very selectively enforced. As long as you stay away from "hot" topics such as direct criticism of the ruling party and sensitive issues such as immigration, you are ok. But if you make too many waves, there are many ways in which such selective enforcement can come back to bite you.

On an individual level, you will get much more attention on things like your tax returns. Your Provident Fund usage can be limited in many ways(It is a opaque system and they don't need to give you any justifications)

If you own a company, it will also be subject to a much higher tax scrutiny. They can choke your company by limiting the number of foreign talent that you can hire( again an opaque process). They can reject your applications without any reasons and simply say better luck next year.

Even with all these pressures, Singapore is a great place to do business and just enjoy a generally high quality of life as long as you don't do anything foolhardy or get really unlucky with the cards that you get dealt.

On a side note, if the person in question above was involved in some tricky business, then I would not put it past this government to take drastic measures