Hacker Newsnew | past | comments | ask | show | jobs | submit | chrj's commentslogin

Your resume and website links use an SSL cert with CN=choinki.rootxnet.com resulting in validation errors. Ignoring those, I get a HTTP 502 accessing them.


I'd really like to see an application level VPN that plays well with Go to `Dial` a `net.Conn` or `Listen` for a `net.Listener` in my Go application.


Most likely it depends on the `net` package which can use `getaddrinfo` for dns lookups. Try using the `netgo` build tag:

    go install -tags=netgo github.com/google/git-appraise/git-appraise


I tried that and also

    env CGO_ENABLED=0 go get github.com/google/git-appraise/git-appraise
but I always get an error that go wants to write net.a in /usr/lib, which I naturally am not allowed to do because it's owned by the distro (Arch) go package:

    go install net: open /usr/lib/go/pkg/linux_amd64/net.a: permission denied
I have only set GOPATH to ~/.go and nothing else. Any other GO environment variable I should have used?


Go needs to re-build the stdlib packages with the new build tag as well.

You could install go locally somewhere in ~ and point GOROOT there.


If you have the private key, you can decrypt it in Wireshark.


Inaccurate. Most browsers will now be using ephemeral key exchange. You pretty much have to configure one of the end points to dump session keys to a log file, then load that in to wireshark alongside the packet dump.


It would be nice if there was some automated way to do this.


You can use mitmproxy [1] to dump the TLS Master Secrets for all connnections it intercepts [2]. The dumpfile goes straight into WireShark.

Obligatory disclaimer: I'm one of the mitmproxy authors - happy to answer any questions.

[1] https://mitmproxy.org/

[2] http://docs.mitmproxy.org/en/stable/dev/sslkeylogfile.html


Not without involving the reflect package. So no good way.


The alternatives:

Using http://golang.org/pkg/reflect/#Select to build what you need;

Or building something specific to your use case without the above, which seems likely to be... goofy and unmanageable. Creating objects that create new channels to do `select`s over some fixed number of cases and composing those.

Do you have any experience using `reflect.Select`? While not exactly ergonomic, it seemed a... pretty okay tradeoff, inconvenience for power, and at the very least more power for approximately the same amount of pain as the rest of the `reflect` package.


One problem with using "reflect" this way, apart from the fact that it's (a) counter to idiom and (b) takes your code in a direction of being counter to idiom in general, is that "reflect" is pretty slow.

You can do it, but since the only reason to do it is to avoid spawning goroutines, I'm not sure why you'd bother.


What's apt-get safe-upgrade? You should be safe enough with just a regular apt-get upgrade.


It's aptitude. The point is I do this rarely enough that I have to read a man page each time...


aptitude has a safe-upgrade, which doesn't remove packages unless they're unused.


Or the luxury of typing 'apt update' & 'apt upgrade' like a boss now and save some precious miliseconds of your life.

(otherwise cinnamon is broken since the release and latex is acting a little erratic also. In sid at least. You can't make an gnumelette without breaking some packages).


They're not the same thing. This is about code generators (https://blog.golang.org/generate) while in Python context you're most likely talking about iteration.


How would these Internet "coop's" deal with the tech support? I would worry that regular users would constantly have all sorts of problems with spyware, viruses, cheap APs/routers and broken network configurations.


There are indeed a lot of problems with individual users. Small networks as such were generally maintained by sysadmins like teenagers/students/grads which sometime fix these config problems for a small amount of money. Plus, good tech guys were always requested by neighbours to fix problems as such, change a HDD, change a cable or a faulty plug.

It is indeed a local community type of network. Plus, in every family there is a teenager willing to step into network configurations. Teenagers, students and young professionals were those that made these networks so popular because they were demanding high quality connection and they were tech savvy. People like them are generally willing to do the hard work of learning something about setting a network IP to a router or AP. Setting a DHCP server in your network was something that released a lot of pressure in my network. Mac addresses were also used quite often to block unauthorised devices from accessing the network. You had to call your sysadmin and send / spell over the phone your mac address.

When everything was at very beginning, during storms a lot of equipments connecting two blocks were getting burned, UTP cat 5 cables broken and required fixing. People who started this kind of networks were to become country's first big generation of top notch dev ops who faced networks growing from 3 users connected by a BNC cable to thousands of users distributed all over a large neighbourhood.


I am sure their would be an enterprising local computer tech the community Internet "coop" could contract with and recommend for their users.


If you don't give your name or other identification, how would they hold you responsible if you abused the connection?


It's not that, trust me. They make good money with your data. Take it as a way of payment for the "free" wifi.

It helps the same purpose as the loyalty cards, especially the ones that outgrow the original business (I'm looking at you both Tesco ClubCard and Nectar Card). Getting "points" by using those at other businesses like petrol stations helps them profiling you for "better" advertising. They also keep you a bit more loyal to their associated brands, but we already knew that bit :)


I wonder when that better advertising would actually come along. They keep collecting the data but so far all the ads I've seen is either utterly irrelevant crap or "you visited shoe store so our network would show you the same shoe store's ads for the next 3 months, because it can't be that you don't need buy new shoes every day".


Non-Disadvantage Cards.


As long as it's only used and distributed internally, I don't believe the GPL has a problem with them modifying it without disclosing their changes. That's my understanding.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: