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/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

YA[Programming]T :: Interview? That's an MVC thing, right?

17778808283100

Posts

  • urahonkyurahonky Registered User regular
    LOL that is hilarious @Infidel

  • urahonkyurahonky Registered User regular
    Finally starting to get the hang of terminal and Linux in general. Maybe I'll keep this as my development environment...

  • bowenbowen How you doin'? Registered User regular
    I did for a year or so, went back to windows after dealing with some dual monitor issues in ubuntu with an ATI card.

    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
  • Joe KJoe K Registered User regular
    bowen wrote: »
    I did for a year or so, went back to windows after dealing with some dual monitor issues in ubuntu with an ATI card.

    RAGEEEEEEEE INDUCING.

    the ati drivers are kinda crap that ati released... yeh, kinda... like the brown stuff that i deliver in my morning routine is "kinda" shit.

  • bowenbowen How you doin'? Registered User regular
    Yeah I rolled up an upgrade after a year. Oh hey what do you know the driver support in this new release is shit. Now I have only one monitor. And than it exacerbated from there because no matter what card I put in weird shit started happening. I did a fresh wipe and it worked, but I figured what the fuck if I fresh wipe might as well just go into windows. I'm waiting until I get to upgrade again, gonna see if my boss won't spring for a mac.

    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
    :epeen:

    Have I said that I am spoiled, and my new mac book pro retina comes next week.


  • urahonkyurahonky Registered User regular
    Macs... You guys are so crazy.

  • EtheaEthea Registered User regular
    I want it more for the form factor, display qualities, and weight. This will allow me to finally work remotely when I want, since the machine is a beast and I require CUDA.

  • Jimmy KingJimmy King Registered User regular
    I need to follow up with the place that was going to give me the macbook pro retina. I suspect they decided to hire an android developer, but I'm going to chase them down and make them tell me that.

  • bowenbowen How you doin'? Registered User regular
    I've seen a few bugs with /spoilers... I wonder if you can span them across multiple posts.

    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
  • bowenbowen How you doin'? Registered User regular
    edited August 2012
    Another
    [/spoiler]

    Edit: Well that's good at least!

    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
  • SmasherSmasher Starting to get dizzy Registered User regular
    There was a bug with one of the older iterations of the forums where you could get posts to nest within other posts recursively.

  • bowenbowen How you doin'? Registered User regular
    Hmm wonder if it's still present :-P

    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
    Okay so I've been spending all day trying to get http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html to work. I have verified that the hello program works when I load it by hand, but I cannot get the module to load up at boot. This is very, very frustrating.

  • bowenbowen How you doin'? Registered User regular
    You're editing /etc/modules right?

    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
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    edited August 2012
    On a related note, bbcode parsing is surprisingly complex

    Nothing seems to propagate across a quote, code or spoiler tag regardless of structure. Code blocks must be closed (but apparently they're the only ones)
    Tags that aren't quote/spoiler/code seem to never propagate past an upper level closure, example: bold bold italics neither
    However, the closing tag, regardless of where it appears in the tree is never actually printed bold italic strikethrough nothing
    Also note that you can propagate across closing but out of scope tags

    Even
    across
    blocks
    But extra tags are[/b] printed

    Url blocks push colors


    And if you forget to close a tag, regardless of where it is, you can close it anywhere later and it won't show up:
    On a related note, bbcode parsing is surprisingly complex
    
    Nothing seems to propagate across a quote, code or spoiler tag regardless of structure. Code blocks must be closed (but apparently they're the only ones)
    Tags that aren't quote/spoiler/code seem to never propagate past an upper level closure, example: [b]bold [i]bold italics[/b] neither
    However, the closing tag, regardless of where it appears in the tree is never actually printed [b]bold [i]italic [s]strikethrough[/b] nothing[/s][/i]
    Also note that you [b]can [i]propagate[/b] across [b]closing [/i] but out of scope tags[/b]
    
    [b]Even [quote]across[/b][/quote]blocks
    But extra tags [b]are[/b][/b] printed
    
    [color=red]Url blocks [url]p[color=green]us[/color]h[/url] colors[/color]
    
    And if you forget to close a tag, regardless of where it is, you can close it anywhere later and it won't show up: [/i]
    

    Phyphor on
  • SaerisSaeris Borb Enthusiast flapflapflapflapRegistered User regular
    edited August 2012
    I wrote a BBCode "parser" recently. And by "parser" I mean "dumb replacement filter". It doesn't really try to parse the text lexically; it just replaces, for example, [ b ] [ /b ] with <strong> </strong>. Through some trickery, this also works out just fine for tags with arguments, like the url and img tags.

    That turned out to be the better solution than trying to deal with missing or incorrectly nested tags.

    Saeris on
    borb_sig.png
  • urahonkyurahonky Registered User regular
    bowen wrote: »
    You're editing /etc/modules right?

    Yeah I am. :( It's weird.

  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Saeris wrote: »
    I wrote a BBCode "parser" recently. And by "parser" I mean "dumb replacement filter". It doesn't really try to parse the text lexically; it just replaces, for example, [ b ] [ /b ] with <strong> </strong>. Through some trickery, this also works out just fine for tags with arguments, like the url and img tags.

    That turned out to be the better solution than trying to deal with missing or incorrectly nested tags.

    That would probably fail for when attributes are propagated across closing tags though since that would turn into a </span> and close it

  • SmasherSmasher Starting to get dizzy Registered User regular
    edited August 2012
    Looks like the parser has some bugs in it:

    12345678[/i]9[/i]a
    foo
    [/i]b[/i]c[/i]d[/i]e[/i]f[/b]10[/i]11[/b]12[/i]13


    [i]1[b]2[i][i][i]3[/b]4[/i]5[/i]6[/i]7[/i]8[/i]9[/i]a

    Smasher on
  • SaerisSaeris Borb Enthusiast flapflapflapflapRegistered User regular
    Oh yes, it's nowhere near robust. But it works fine if the tags are formatted and nested correctly, and any open tags are automatically closed at the end of the content block. Those were the only requirements, so it works well enough.

    borb_sig.png
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Smasher wrote: »
    Looks like the parser has some bugs in it:

    12345678[/i]9[/i]a
    foo
    [/i]b[/i]c[/i]d[/i]e[/i]f[/b]10[/i]11[/b]12[/i]13


    [i]1[b]2[i][i][i]3[/b]4[/i]5[/i]6[/i]7[/i]8[/i]9[/i]a

    Hmm it looks like a closing tag first applies to any active tags and only then to inactive ones

  • ASimPersonASimPerson Cold... and hard.Registered User regular
    I think part of the bugs here are because stock Vanilla doesn't do bbcode usually - they prefer what is basically a subset of actual HTML.

    I seem to recall vBB having a better parser.

  • CantidoCantido Registered User regular
    Does anyone have a verdict on TCPDF for generating PDFs from HTML?

    3DS Friendcode 5413-1311-3767
  • zeenyzeeny Registered User regular
    It works.

  • king awesomeking awesome Registered User regular
    I've found that http://code.google.com/p/wkhtmltopdf/ is great. And it works from the command line so you can use it standalone to do testing and incorporate it into pretty much anything. Also, it works with charts/graphs/javascript etc... so you can translate a really nice html layout into a PDF easily.

    Bigsushi.fm
    Listen to our podcast, read our articles, tell us how much you hate it and how to make it better ;)
  • centraldogmacentraldogma Registered User regular
    Trying to get the "Current Directory" of a process as displayed in Process Explorer:
    83623

    Using .Net(C#), StartInfo.WorkingDirectory returns an empty string.

    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • centraldogmacentraldogma Registered User regular
    Oops, meant to say I'm trying to get the current directory of another process. I'm using System.Diagnostics.Process.GetProcessesByName() to get the process.

    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • jaziekjaziek Bad at everything And mad about it.Registered User regular
    From a bit of quick googling, it seems to me like you can't do what you're trying to do with just .NET

    Steam ||| SC2 - Jaziek.377 on EU & NA. ||| Twitch Stream
  • centraldogmacentraldogma Registered User regular
    How hard would it be for me to cook up a native DLL to do it for me?

    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • InfidelInfidel Heretic Registered User regular
    Yep, that's system level stuff now if you want to snoop into other processes runtime environment. Something you'll need admin privileges for and want to probably do in a C module or something you write and call upon.

    See http://forum.sysinternals.com/topic629.html that has some decently documented code.

    OrokosPA.png
  • centraldogmacentraldogma Registered User regular
    That seems to just be finding the modules(I'm not familiar with what those are) of a process.

    I'm looking at maybe using NtQueryInformationProcess, but I have no idea how to use it and if it works correctly in Windows 8. I've tried an application that uses it and it seems to fail to get the right information.

    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • InfidelInfidel Heretic Registered User regular
    See these relevant bits:
    // Get Command Line Block
    
        // At offset 0x00020498 is the process current directory followed by
    
        // the system PATH. After that is the process full command line, followed
    
        // by the exe name and the windows station it's running on.
    
    ...
    
                     lpPos = lpBuffer + ((DWORD)0x20498 - (DWORD)mbi.BaseAddress);
    

    lpBuffer being the first page of process memory, fetched via ReadProcessMemory.

    You should be able to trim down the code to get just the current working directory.

    OrokosPA.png
  • centraldogmacentraldogma Registered User regular
    edited August 2012
    Ah, I see. It's a little over my head, but it seems like this bit
    // Read memory begining at the start of the page.
    if(ReadProcessMemory(hProcess,  mbi.BaseAddress, (LPVOID)lpBuffer, SysInfo.dwPageSize, &dwBytesRead))
    
    is failing for the process I'm looking at. Maybe an access issue?

    Edit: Problem is ERROR_PARTIAL_COPY.

    centraldogma on
    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • InfidelInfidel Heretic Registered User regular
    Ah, I see. It's a little over my head, but it seems like this bit
    // Read memory begining at the start of the page.
    if(ReadProcessMemory(hProcess,  mbi.BaseAddress, (LPVOID)lpBuffer, SysInfo.dwPageSize, &dwBytesRead))
    
    is failing for the process I'm looking at. Maybe an access issue?

    Edit: Problem is ERROR_PARTIAL_COPY.

    How many bytes read? If dwPageSize > dwBytesRead, you'd get that error, which isn't necessarily a problem? Partial copy means just that, so it shouldn't be an elevation issue.

    You're dipping into the PEB fyi to find this CWD value. It's pretty hacky but I don't think there is really any other way to do it.

    OrokosPA.png
  • centraldogmacentraldogma Registered User regular
    Well if I remove the check for error, it's still not picking up CmdLine or EnvVars. So I'm thinking Microsoft may have changed something in Windows 8 that affects it.

    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • MortalToasterMortalToaster Registered User regular
    Infidel wrote: »
    Are you looking at being at PAX Dev this year?

    I'll be there, if anyone will be there too then let me know.

    As for salary, MT, as always comes up the biggest factor is location (cost of living). Whereabouts are you expecting to land work, and what is your experience going to be? I take it you're finishing up school atm?

    late reply here, but i graduated with a BS in CS in 2008 (well rounded, had some practical experience - not as mathy as it seems like some of you had), got an MBA, and am currently doing radar engineering work for the next year or so while i pay off student loans. i've done some freelance work since i graduated, but effectively my experience level is comparable to that of a new grad. i'm well aware location is a big factor in pay, but i'm looking at San Fran, NYC, Boston, or Seattle for my next adventure.

  • jaziekjaziek Bad at everything And mad about it.Registered User regular
    Infidel wrote: »
    Are you looking at being at PAX Dev this year?

    I'll be there, if anyone will be there too then let me know.

    As for salary, MT, as always comes up the biggest factor is location (cost of living). Whereabouts are you expecting to land work, and what is your experience going to be? I take it you're finishing up school atm?

    late reply here, but i graduated with a BS in CS in 2008 (well rounded, had some practical experience - not as mathy as it seems like some of you had), got an MBA, and am currently doing radar engineering work for the next year or so while i pay off student loans. i've done some freelance work since i graduated, but effectively my experience level is comparable to that of a new grad. i'm well aware location is a big factor in pay, but i'm looking at San Fran, NYC, Boston, or Seattle for my next adventure.

    When you were graduating, how did you go about looking for jobs?

    It seems to me like as a new graduate I'll basically be screwed in terms of what jobs I'm actually qualified for.

    Steam ||| SC2 - Jaziek.377 on EU & NA. ||| Twitch Stream
  • ecco the dolphinecco the dolphin Registered User regular
    edited August 2012
    Infidel wrote: »
    Are you looking at being at PAX Dev this year?

    I'll be there, if anyone will be there too then let me know.

    As for salary, MT, as always comes up the biggest factor is location (cost of living). Whereabouts are you expecting to land work, and what is your experience going to be? I take it you're finishing up school atm?

    late reply here, but i graduated with a BS in CS in 2008 (well rounded, had some practical experience - not as mathy as it seems like some of you had), got an MBA, and am currently doing radar engineering work for the next year or so while i pay off student loans. i've done some freelance work since i graduated, but effectively my experience level is comparable to that of a new grad. i'm well aware location is a big factor in pay, but i'm looking at San Fran, NYC, Boston, or Seattle for my next adventure.

    Hi five fellow radar engineer!

    Edit: I am unable to provide comparable salary figures, since I work in a different country to you, I'm afraid.

    ecco the dolphin on
    Penny Arcade Developers at PADev.net.
This discussion has been closed.