Comment on: Today's date is 100/1000/10000 in binary
0 05 Aug 2016 15:52 u/luckyguy in v/programmingComment on: Today's date is 100/1000/10000 in binary
Yes, you are using python.
> [8,4,2016].map( i=>{
... return i.toString(2);
... });
[ '1000', '100', '11111100000' ]
Let's do it asychronously, for that non-blocking binary:
> async.map([8,4,6], (i,cb) => {
... cb(null, i.toString(2) );
... }, (errors, results) => {
... console.log(results);
... });
[ '1000', '100', '110' ]
Comment on: Should this even be done? Please vote. · Issue #1 · mlpoll/machinematch
Is it bad that I don't know how to downvote on github. I guess I'm not a real programmer.
Also, mixplate, you voted yes?
Comment on: Any suggestions for a good cobol compiler?
Try https://sourceforge.net/projects/open-cobol/ or http://cobolforgcc.sourceforge.net/
More resources https://aur.archlinux.org/packages/?O=0&K=cobol
Comment on: Linux marketshare doubled since five years ago. From 1% (July 2011) to 2%, July 2016.
Am I the only one that realizes that's not what you linked to.
Comment on: Which programming language to learn first [infographic]
I thought that way. I started implementing dynamic websites in it. Then I realized I was stupid.
Comment on: Why can't programmers... Program?
Part of the problem is that the industry is focused around too many tools. If you don't know somebody's specific framework you are scoffed at. Back when I started we didn't have frameworks, we had libraries. They were tools that weren't supposed to take over your entire project. There being one or two or five frameworks is fine. When there is now 40 and you are expected to combine them we are spending more time structuring projects than building and we are starting to loose are skills.
Also that fizbuzz is easy. People who can't do that are people who were patted on the back to many often for learning a framework.
Comment on: Do anyone Need WordPress Guide or E-Book ?
I could give you the advice of moving away from wordpress if you are able, if you or your clients care about security.
What's the problem you're trying to solve, or are you trying to author a plug-in?
Comment on: Found this doing a whois on voat!
They also don't over bill on renewal. Want to keep your site? Pay godaddy $70 and you'll be good to go. Registration is only a $1 so you know it's a good deal.
Yeah, I'll gladly give Namecheap $15.
Comment on: Python game developing Problem ?
I don't think I can become a major contributer so I'm probably not your guy but I'm also not saying no. If I get a mod invite in my inbox I'll respond to it.
Comment on: Python game developing Problem ?
Oh gees. I haven't made a proper game since middle school. I just know about application development in general and can see what people did when I play games.
I would be happy to do it but seeing as mods aren't that relevent on voat and I don't know how much I can contribute I would be happy to fill the role just because I tend to say yes when asked to help out. I definately can mod it. Am I the contributer the subverse is looking for? no. Am I the moderator the subverse need? Of course I am... maybe.. if that helps you.
Comment on: Professor Geoff Hinton - "Deep Learning [Artificial Intelligence]
There's different layers that I could use to describe it.
Mathimatically it's basically the problem of determining how much one thing amoung a group of things is a factor for an outcome, but doing it while realizing there is interference from other factors and also recognizing your outcome might not be a single scalar value. (Also doing this based on sample data rather than a model). It turns out when you solve this problem you solve some aspects of animal like learning in general.
So like if I gave you some fft data and wanted you to diagnose the issue with an engine this would be a good tool to use if you already have a library of past engine sounds and diagnosises. This isn't just identifying a pitch that indicates a certain problem, although this system can do that, but if you have different engine types with different baseline ffts how do you listen to one property and have that inform the interpretation of another?
Comment on: Professor Geoff Hinton - "Deep Learning [Artificial Intelligence]
No, neural networks are the standard now. I took his class in coursera and it's amazing what has happened in those few years.
Why is it the standard. Because it's smart enough to generally be a catch all even with novice configuration. Know you have a machine learning problem but not sure what to do about it. Plug in a nueral network and see what happens.
Comment on: As a Linux Developer, do you find the GNOME or KDE ecosystems better and why?
How do you do modern stuff... like use voat?
Comment on: Python game developing Problem ?
So any gui since even the old days involves incorporating a gui library. Most of them are language portable. I suggest gtk or wx-widgets.
The downside, they take time to learn and master. It's more tedius than difficult. They don't give you much control over astetics. They implant inportability in your code.
This is why a lot of games go with a custom gui. You have to do graphics anyway, you would like control over astetics, it looks more professional.
Here is my suggestion. Go with gtk or wx but don't put a lot of time into making the game's outer gui perfect. Focus on the game itself and get a basic ui up even if cluncky. This gives you time to weight where you will really go without putting too much investment into it.
Best yet, if you want to find a VC for the game (probably not but it's never bad to build workflows that incorporate that into muscle memory), then they will care more about if the game is playable. Think Doom. The menu was so basic they could have coded that in a day. A VC would get that and you could have that dock nothing from your valuation if your ui just needs a little work. The real question for them, or anyone you try to sell this game to whether it is a website or players, is if the game is fun.
td;dr: You have some options. Don't over think the UI till the end. gtk or wx should cover you to make the game testable. Focus on the game mechanics and graphics. Take this time to verify that you can do what you want with ui to double check that you won't get hung up on it later.
Comment on: HIdden Security Vulnearbility every new website contains--Is my website Secure ??
Clickbait didn't even fulfill on it's bait.
Comment on: Looking for a text editor or IDE
Atom? Atom also has a vim module that should take care of any of the vim solutions you've already come up with. Inset mode works just like the normal IDE except for a key binding over ctrl-c that you can manually remove. The insert mode is Atom and the other two modes work as you would expect.
Atom has a goto https://atom.io/packages/goto
Comment on: Does the Go programming language have any future?
From what I understand it's supposed to do asyncronous well (like node) but be compilable. So it might have a technical advantage somewhere but what I've also heard about it, it sounds like something marketers came up with trying to incorporate unnecissary magic and structural paradigms.
This is actually why I think javascript has done so well. It allows any and all structural paradigms (OO, functional, evented, closure) and as node discovered, what took off isn't what was intended. Promisses became less favored compaired to callbacks and modules ended up being commonly one function returns instead of libraries. I'm glad they kept it open so the developers don't have to wrap their heads around some bullshit about how some college professor thinks programs should be organized.
Comment on: ReactOS - Fake Or Potential Windows Alternative? Review And Extended Test Drive Of Latest Release
I wish it was a little better. I don't think it needs to get much better before some major wind comes under their wings. The server market would love the ability to spin up as many virtual machines of windows they can without license costs.
Some org some day will realize they can finally port a good number of their instances to it and move their license costs to donations and help steer the direction of development. It would be tax deductible for the owner to donate to it. It's not quite there where even one production could port to it but if they could just get there it would take off.
Comment on: HOW TO: Move from github to BitBucket. I just moved 4 private repositories and it took me 10 minutes.
I wish this was OC instead of an article because I have questions. How is the community there? I put code on github not to host code because I have servers. I want the exposure and the community, also portfolio. I want people to download my projects and create issues if they exist. I noticed GitLab seemed very.. developer oriented. It seems more like it was for people that need git for version control rather than the main motivation being sharing.
I want to hate github but at the same time I do want project exposure.
Comment on: Data analysis of GitHub contributions reveals "unexpected" gender bias
Having done a lot of github I can tell you it is hard to get pull requests. The stat I would have really liked to see is lines changed to get a pull request. Most of the women I've seen on Github do very superficial stuff. I imagine they get some rather useless contributions added while I as guy has to work to get his name on someone elses project and everything has to be formatted perfectly to the author's original style. Not only that but they have to agree with the need which is one of the hardest parts. I remember when Inara ruined npm's display with worthless fancy progress bar that hides what it's doing. That's the kind of thing that would never get merged if you were a guy. Here's her page. You can see why people are intimdated to not accept her pulls if you read her comments in issues. https://github.com/iarna. All sucking up artifical enthusiasm so you have to like me no matter how useless I am.
People are just more likely to be agreeable to a woman. Period.
Fuck yes they kicked her from maintainer of npm/npm. Revert her fucking progress bar.
Comment on: Why function overloading in a non-typed language is fun but counter productive. Next time just don't do that to start with and you will never have to weight performence vs security.
It has become an issue of performance vs security vs backwards compatability. Sorry, my title was already long and I couldn't fit that last one in. They can zero out the buffer (performance) or they can leave it as is (security) or they can break a lot of code.
Writing an API like this in JS where the caller is responsible for handling type issues is fundamentally stupid. When you write an API in JS you do your own internal typechecking.
They are doing their own internal typechecking. That's the problem. They detect the type and then act on the appropriate behavior. The problem is that in Javascript any type can be plugged into a function so people form the expectation that they can put anything in it and get similar behavior. To expect anything else is to ask the caller to do the type checking. One function name, one general behavior should be the rule. Typechecking should be for consolidating behavior not diverging it. If you need an additional behavior that should be an additional function. It's a constructor so in this case then need some generators and discourage people from using the constructor in the docs.
Comment on: I wrote a script to fix the issues when sorting by top here on Voat (Tampermonkey, Greasemonkey, etc. required)
Could you try to get it merged into /v/ave?
Why function overloading in a non-typed language is fun but counter productive. Next time just don't do that to start with and you will never have to weight performence vs security.
5 4 comments 03 Feb 2016 22:48 u/luckyguy (..) in v/programmingComment on: How easy is it to find a backdoor in software?
The Brave browser is luckily or unluckily using npm for everything in it. They aren't just copy pasting some crypto code that could be altered with no one likely seeing it. I would say that it's not easy. Often it involves subtle errors in the random number generator that compresses the number of private keys it can produce. You take that with some data produced as output to the encryption and you can find the key. It involves some level of semi-brute force and very complicated math so the likelihood any of us would be able to use it is pretty small. You would have to have a lot to gain like if you were part of a criminal outfit or if you were the NSA.
I'm really exited about brave. I got some errors trying to run it so I haven't seen it yet. Did you get a successful build?
Comment on: Help with an idea
I'm a big fan of node.js and it does allow you to do some real time stuff where polling would be needed otherwise but in this case each event is "human" caused so you just have to run the appropriate code to get the right consequences in each interaction. Any language can do that.
I bet using node would make interacting with that IRC really easy though.
The backend to whatever web form the mod views will just need to support spreadsheets and IRC.
I suggest researching the hard parts first and making some quick prototypes of those interactions. This will make your code cleaner when you put it all together because you won't be doing guess work at any point. This will also help you pinpoint if you will be using node or python. First test if you can use python to enter into a spreadsheet, like if you personally can, and then do the same with IRC. If you run into a snag with python try it in node or php. Then you know what language to use to accept the form.
Can you use csv for the spreadsheet because you could get away with some real ducttape code if you can't find a good module to work with?
If you find that different languages are needed for different parts or you would like the web facing code to all be the same process so you don't need a reverse proxy then you can also encapsulate any code into a command line executable and then you can mix and match languages. That's not preferable but if you find yourself in a bind willingness to do that guarantees the project will get done one way or another.
Comment on: Docker 3 tier Java App automation
Docker sucks. In theory its supposed to make your system light but in practice it means taking up 3 gigs to run php if you want to use a prepackaged docker.
Comment on: LibreOffice Online Review and Test Drive With CODE - Linux Distro from Collabora
That review was awefull. Why didn't he just edit out him figuring out how to use his own virtual machine.
That's right, they aren't real friends unless they're jerking you off...?
Plus what you don't know is I get wacked off on voat all the time. You just don't know the right subverses, or have the technical skill.