As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/

cmd /v:on /c "set TITLE=Programming Thread & echo !TITLE!"

1235799

Posts

  • bowenbowen How you doin'? Registered User regular
    lolwut though I don't... wut

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    Weretaco
  • urahonkyurahonky Registered User regular
    I'll find out today what actually happened. I'm going to call him.

  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    I think they accidentally killed him.

    Because that's the only thing that justifies such a stupid story.

    bowen
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Bob? Oh he joined a band. They're going on a world tour! What? Why didn't he email everyone and tell them? Well, duh it's a secret tour.

  • EtheaEthea Registered User regular
    Maybe he did form a band and decided on touring, it would be a pay increase.

    bowenNightslyr
  • bowenbowen How you doin'? Registered User regular
    ... can't argue with that.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • urahonkyurahonky Registered User regular
    Well he was in a band. But he also has 4 kids... So I don't really see him going on tour anytime soon.

  • bowenbowen How you doin'? Registered User regular
    Could be a nice way of giving a reason for his quitting too.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • urahonkyurahonky Registered User regular
    Hmm could be. I know there have been more than a few times that he's been close to just going in the office and quitting.

  • NightslyrNightslyr Registered User regular
    Since he has kids, maybe he's forming the new Partridge Family. Driving from town to town in a psychedelic bus, singing family-friendly pop folk music, etc.

  • urahonkyurahonky Registered User regular
    Knowing him... He'd probably enjoy that too much. :P

  • StarfuckStarfuck Registered User, ClubPA regular
    So yeah, this guy contacted me through my blog with some questions, which isn't new, but 40 emails later and he's still asking... I don't want to be a dick, but I think I'm going to tell him I'm sending him an invoice.

    jackfaces
    "If you're going to play tiddly winks, play it with man hole covers."
    - John McCallum
  • ecco the dolphinecco the dolphin Registered User regular
    Ahh, the good old "Add 1.2m of cable to delay the signal by about 6ns" trick. We meet again.
    Starfuck wrote: »
    So yeah, this guy contacted me through my blog with some questions, which isn't new, but 40 emails later and he's still asking... I don't want to be a dick, but I think I'm going to tell him I'm sending him an invoice.

    I'm looking at the link in your sig, and ... would I be correct in assuming that that is not your blog?

    Or is there a hilarious story in there? =P

    Penny Arcade Developers at PADev.net.
  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    edited September 2012
    Running around cleaning up "deprecated conversion from const char* to char*" warnings.

    No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...

    And most of them would never have happened they had been using std::string for most of this :(

    Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.

    Monkey Ball Warrior on
    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
  • StarfuckStarfuck Registered User, ClubPA regular
    Ahh, the good old "Add 1.2m of cable to delay the signal by about 6ns" trick. We meet again.
    Starfuck wrote: »
    So yeah, this guy contacted me through my blog with some questions, which isn't new, but 40 emails later and he's still asking... I don't want to be a dick, but I think I'm going to tell him I'm sending him an invoice.

    I'm looking at the link in your sig, and ... would I be correct in assuming that that is not your blog?

    Or is there a hilarious story in there? =P


    haha, no. the root of that link goes to my blog. I think I've been pretty cool, but yeah

    jackfaces
    "If you're going to play tiddly winks, play it with man hole covers."
    - John McCallum
  • bowenbowen How you doin'? Registered User regular
    edited September 2012
    What's he looking for, assistance?

    http://odoe.net/blog/

    bowen on
    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • DrunkMcDrunkMc Registered User regular
    Oh god, why with all the APIs out there is someone using ARC? I fucking HATE ARC. I had to do a project with ARCEngine and it was the biggest catastrophe. It was so bad that I reverse engineered all of things we needed from it and completely scrubbed ARC from my code.

    Given, I have no idea what's going on here, I just clicked the link Bowen posted....but....Fuck ARC. :)

  • bowenbowen How you doin'? Registered User regular
    I have an API for a drug library. Problem is it uses some slow ass cross-query method that takes about 5 seconds to query information.

    ... So I wrote my own.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • StarfuckStarfuck Registered User, ClubPA regular
    Yeah, he took one of my samples and is trying to use it in a way I told him I didn't intend it to be used, but he was free to hack at it. The ArcGIS JSAPI is more large scale friendly flexible the kind of work I do. Other mapping APIs are better suited for small projects, like leaflet, osm or even MapQuest. Although I have been getting more friendly with leaflet, ArcGIS pays the bills.

    jackfaces
    "If you're going to play tiddly winks, play it with man hole covers."
    - John McCallum
  • EchoEcho ski-bap ba-dapModerator mod
    edited September 2012
    I got tired of CodeIgniter's standard convention for views, so I took some time to split it up into layouts and partials. Layouts are the basic HTML structure, partials are the various components that go into the layout (menu, sidebar etc).

    Used to be this to load a view in the controller:
    public function index()
    {
      $data['user'] = $this->user_model->get_user();
      $data['title'] = 'Showing users';
    	
      $this->load->view('templates/header', $data);
      $this->load->view('user/index', $data);
      $this->load->view('templates/footer');
    }
    

    Three separate load->view() to load three separate components. That doesn't belong in the controller at all. Now I do this instead:
    public function index()
    {
      $this->data['user'] = $this->user_model->get_user();
      $this->data['title'] = 'Showing users';
      $this->data['subview'] = 'user/index';
    
      $this->load->view('layouts/default', $this->data);
    }
    

    I define a subview (I made $data an instance variable so I can set a default subview for the controller in the constructor), and I only have one single load->view() that loads a layout, which in turn loads various partials (header, footer for now), and the subview that is the partial view for the main content of the page.

    Echo on
  • ASimPersonASimPerson Cold... and hard.Registered User regular
    So Adobe released a new free monospace font: https://blogs.adobe.com/typblography/2012/09/source-code-pro.html

    Anyone tried it?

    I still use Courier on Linux :rotate:

  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    I like the 'g', very Consolasy

    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
  • Grey PaladinGrey Paladin Registered User regular
    edited September 2012
    Can anyone recommend me a book describing various algorithms? I realized I don't actually have a 'generic' one and given that I am self-taught I might have some significant holes in my knowledge.

    Grey Paladin on
    "All men dream, but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity; but the dreamers of the day are dangerous men, for they may act their dream with open eyes to make it possible." - T.E. Lawrence
  • GrobianGrobian What's on sale? Pliers!Registered User regular
    edited September 2012
    Can anyone recommend me a book describing various algorithms? I realized I don't actually have a 'generic' one and given that I am self-taught I might have some significant holes in my knowledge.

    The algorithm bible seems obvious, but it's more of a reference than a book to read in full. It's also ~$200.

    Grobian on
  • Grey PaladinGrey Paladin Registered User regular
    I already have a pair of $200 tomes on AI and database systems, so I am not terribly shocked. Thanks.

    "All men dream, but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity; but the dreamers of the day are dangerous men, for they may act their dream with open eyes to make it possible." - T.E. Lawrence
  • TavTav Irish Minister for DefenceRegistered User regular
    I took some third year classes last year and because of the way my schedule worked out, I have no programming at all this year.

    :rotate:

  • EchoEcho ski-bap ba-dapModerator mod
    I've been running that new font for a few days. I think I like it. Went from 12pt Menlo to 13pt Source Code Pro, it's smaller with an increased line height.

    Screen%20Shot%202012-09-26%20at%2012.27.09.png

  • LindenLinden Registered User regular
    I already have a pair of $200 tomes on AI and database systems, so I am not terribly shocked. Thanks.

    I love TaoCP, but it's worth mentioning that it is a reference with potentially limited breadth even now. I've frequently been looking for graph algorithms, though, so that contributes. CLRS may be worth investigating – it may be titled Introduction to Algorithms, but that doesn't mean it's a poor reference. Vazirani's text is freely available, and I recall some good things in Kleinberg & Tardos, but I've not delved particularly deeply into that one.

  • bowenbowen How you doin'? Registered User regular
    Looks nice. I still prefer dina.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • EtheaEthea Registered User regular
    So is anybody going to VisWeek or SuperComputing this year?

    I know that we have programmers from all areas, so what do people consider to be the must go to conferences? Or are you a firm believer that it is a complete waste of time.

  • agoajagoaj Top Tier One FearRegistered User regular
    I thought computer scientists invented the internet so they could communicate without having to smell each other.

    ujav5b9gwj1s.png
    bowenueanMelksterEcho
  • bowenbowen How you doin'? Registered User regular
    Yeah I mostly don't have the time to do conferences and all that.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Jimmy KingJimmy King Registered User regular
    I don't get to go to conferences. They take time and cost money. I may try to get my current employer to pay for me to attend a local one that is coming up in a couple months, though.

  • Jimmy KingJimmy King Registered User regular
    I wish I could figure out which factors in the combination of Aptana, Ubuntu, and VirtualBox make my dev environment a piece of shit where Aptana randomly just loses the project on occasion. I'll close Aptana with no errors, shut down the vm with no errors, then start up the vm and open aptana and all of my open tabs are just blank and nothing is in the package explorer and I have to go re-set a bunch of shit up.

  • bowenbowen How you doin'? Registered User regular
    Aptana is Eclipse right? Eclipse has been hit or miss in general for me. Sometimes it works, but when it doesn't lol.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Jimmy KingJimmy King Registered User regular
    edited September 2012
    Yeah, Aptana is a stripped down Eclipse + PyDev. I've used Eclipse a ton for Java in the past and never had any issues with it, but was always reading about people having issues. I had similar weird issues with some other big java based ide for python that I can't think of right now where the project file for that ide would just randomly get corrupted when I shut down, which makes me think it's actually something to do with the vm setup or this computer itself having some sort of weird ass issue.

    Jimmy King on
  • bowenbowen How you doin'? Registered User regular
    Yeah I have had issues with Java in it with packages and all that nonsense. Seemed okay for C++ dev though.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Grey PaladinGrey Paladin Registered User regular
    Linden wrote: »
    I already have a pair of $200 tomes on AI and database systems, so I am not terribly shocked. Thanks.

    I love TaoCP, but it's worth mentioning that it is a reference with potentially limited breadth even now. I've frequently been looking for graph algorithms, though, so that contributes. CLRS may be worth investigating – it may be titled Introduction to Algorithms, but that doesn't mean it's a poor reference. Vazirani's text is freely available, and I recall some good things in Kleinberg & Tardos, but I've not delved particularly deeply into that one.
    Thank you. I'll give these a look.

    "All men dream, but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity; but the dreamers of the day are dangerous men, for they may act their dream with open eyes to make it possible." - T.E. Lawrence
  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    Running around cleaning up "deprecated conversion from const char* to char*" warnings.

    No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...

    And most of them would never have happened they had been using std::string for most of this :(

    Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.

    Don't lie, you just went and changed them all to const_cast to shut it up.

    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
    bowen
  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    GnomeTank wrote: »
    Running around cleaning up "deprecated conversion from const char* to char*" warnings.

    No I'm not just casting it and calling it good, most of them have been solved by fixing a function signature or a declaration...

    And most of them would never have happened they had been using std::string for most of this :(

    Still this is the first time they've set me loose on the code, so I'm feeling useful, though a bit worried I'm going to break it in some what I can't even imagine yet.

    Don't lie, you just went and changed them all to const_cast to shut it up.

    Probably 1/4th of the time I actually did, though I'm going back through the diffs and making sure every time I did, it was somewhere the code interacts with either the Postgres stuff or the Perl stuff, neither of which seems to understand that "char *" is bad.

    I even used a "reinterpret_cast" once just because someone on the internet said not to use the normal "(foo) bar" cast in c++.

    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
This discussion has been closed.