u/topical_username - 18 Archived Voat Posts in v/programming
u/topical_username
  • home
  • search

u/topical_username

0 posts · 18 comments · 18 total

Active in: v/programming (18)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Does anyone have any experience in Laravel PHP?

What are you scripting in? Python has an awesome package called Requests that makes REST calls a breeze. My comment history is beginning to look like I wrote the package or something...I LOVE Requests, I can't help it. It's so easy.

import requests
url = 'your url here'
header = { 'apitoken' : 'your api token here','maybesomethingelseintheheader' : 'whatever the value is' }
r = requests.get(url,headers=header)
r.status() // this gives you the status code - 200 is good!
r.text // this dumps all of the return data
r.json() // this automatically decodes the json response
0 22 Jul 2015 21:14 u/topical_username in v/programming
Comment on: Is it possible to make my own private cloud server?

You could buy a device from someone like Synology . I've setup loads of these devices to provide exactly the functionality you are looking for (and no, i don't have a vested interest in the brand, I'm just a contractor that happens to like these.)

1 22 Jul 2015 19:26 u/topical_username in v/programming
Comment on: Computer Programming to be renamed Googling Stackoverflow

Or Daniweb?

0 22 Jul 2015 00:25 u/topical_username in v/programming
Comment on: My discussion was removed and I believe it was an invalid remove

That might be better off in /v/netsec

0 21 Jul 2015 21:19 u/topical_username in v/programming
Comment on: My discussion was removed and I believe it was an invalid remove

I don't see what's confusing. A TV show designed to be consumed for entertainment is not directly related to programming. How do you think that fits in between an article showing you how to simulate general relativity in Python, and a question about the benefits of this or that IDE? What does Mr. Robot bring to the table? Nothing. Create a sub like /v/tvshowsaboutprogramming or something. Let's not muddy the waters here. Posting scenes from Juassic Park wouldn't count would they? https://youtu.be/J1VE6C0H2bU

0 21 Jul 2015 21:15 u/topical_username in v/programming
Comment on: Does Voat have a python API?

Exactly. I LOVE this package. I built a module for accessing the government EIA API using it for a data analysis project.

Edit: and just for clarity, I import the json package to further process what the API gives back. But yeah, the .json() method is great!

0 15 Jul 2015 21:15 u/topical_username in v/programming
Comment on: Does Voat have a python API?

Use the Python Requests and json packages to interface with the HTTP API. Not sure what you mean by 'python API' though. APIs are typically language agnostic.

3 15 Jul 2015 19:44 u/topical_username in v/programming
Comment on: Regex Help Please

We're a little closer, the second case is still screwy:

#!/usr/bin/perl
$re = "([^\w]*)([Ii][Ss])([^\w]*)";
my [@arr](/user/arr) = ("is test","is-is","This is right");
foreach $a ([@arr](/user/arr)){
  $a =~ s/$re/$1$2 not$3/g;
  say $a
}
0 14 Jul 2015 20:09 u/topical_username in v/programming
Comment on: WhitePaper : R (Revolution R Enterprise version) vs SAS (9.4 EG) shows R being faster by more than 10x (and 100X in some cases)

Upvoat because R

3 13 Jul 2015 23:51 u/topical_username in v/programming
Comment on: Am I wasting my time?

This. I inherited a system where everything was written in VB and running on ASP. We've still got Win2K servers hosting pages! EEEK! My first thought to reply with was "ditch VB," then I remembered my own situation.

0 13 Jul 2015 19:30 u/topical_username in v/programming
Comment on: Am I wasting my time?

I will disagree with the last comment. I got a networking degree from my local CC, and am finishing my BS in CS from a major university. I've been earning a nice salary with the network stuff, and the programming work is starting to pay off as well. I have an overlapping skill set that not a lot of people have - strong networking AND programming capabilities. So..."why not both?"

0 13 Jul 2015 19:28 u/topical_username in v/programming
Comment on: Algorithms visualization

More Sorting Algorithms : Not only does this visualize, it gives you a breakdown of the usages, and the Big O analysis.

1 13 Jul 2015 18:44 u/topical_username in v/programming
Comment on: Hey /v/programming - What's your favorite language to program in and why?

Because who in their right mind would import an entire framework when i just need to test a database connection or query using a simple form?

0 09 Jul 2015 19:06 u/topical_username in v/programming
Comment on: My Programming Resource List

I just meant the real name attached to the board up top.

0 08 Jul 2015 20:11 u/topical_username in v/programming
Comment on: My Programming Resource List

If you created that, your personal info is exposed.

0 08 Jul 2015 18:39 u/topical_username in v/programming
Comment on: Hey /v/programming - What's your favorite language to program in and why?

Because its usually something Web based, and the Python CGI is a bit clunky. I'm curious as to your claim that it is inferior. It's like saying "why use that screwdriver, it's inferior to this hammer?" Different tools for different tasks.

0 07 Jul 2015 18:37 u/topical_username in v/programming
Comment on: Hey /v/programming - What's your favorite language to program in and why?

A Python library I encountered recently, and have come to depend on: Requests.

3 07 Jul 2015 04:24 u/topical_username in v/programming
Comment on: Hey /v/programming - What's your favorite language to program in and why?

This. Python is great for on-the-fly spitballing and prototyping. I can rough out something in Python, then further develop it in PHP or C#.

5 07 Jul 2015 04:21 u/topical_username in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.