|
Pavlov posted:Obviously the answer is to allow your users to also provide the executables to view the files they upload. Hey man you got time jump into mumble or steam. We miss you!
|
# ? Apr 23, 2015 01:31 |
|
|
# ? Apr 24, 2024 13:26 |
|
Pavlov posted:Obviously the answer is to allow your users to also provide the executables to view the files they upload. My MRI info came with its own viewer on the DVD from the hospital, and I ran it in a VM because I'm paranoid.
|
# ? Apr 23, 2015 01:35 |
|
dae big data??????? https://www.youtube.com/watch?v=QbxfJ7yNkPA
|
# ? Apr 23, 2015 01:56 |
|
Subjunctive posted:My MRI info came with its own viewer on the DVD from the hospital, and I ran it in a VM because I'm paranoid. I don't think I'd feel like doing this if I were you, but any chance you'd mind posting a redacted picture of the disc?
|
# ? Apr 23, 2015 02:06 |
|
Lysidas posted:I don't think I'd feel like doing this if I were you, but any chance you'd mind posting a redacted picture of the disc? I'm not sure I have the disc any more, do you mean the file listing or the media (it was generic)?
|
# ? Apr 23, 2015 02:13 |
|
The media. There aren't many companies that make the disc recording appliances, and there's a decent chance that I worked on the software that produced the disc. Thanks anyway.
|
# ? Apr 23, 2015 02:16 |
|
Lysidas posted:I don't think I'd feel like doing this if I were you, but any chance you'd mind posting a redacted picture of the disc? Most places just burn the data on a CD or DVD. The software contained will be some sort of free version of a standard DICOM viewer. I had Osirix on my ultrasound image dump disk.
|
# ? Apr 23, 2015 02:17 |
|
Imaging centers that burn a lot of discs often buy standalone machines that listen over the DICOM protocol and are configured as study destinations ("application entities"? it's been far too long) for the actual imaging modalities. An MRI machine, for example, might directly send the study to a disc publisher where it'll be automatically burned to disc along with whatever DICOM viewer(s) the facility has chosen. There are places that burn discs manually, but after a certain number of discs they usually figure out that it's cheaper to buy a dedicated machine for this instead of having an employee do it by hand.
|
# ? Apr 23, 2015 02:22 |
|
Lysidas posted:The media. There aren't many companies that make the disc recording appliances, and there's a decent chance that I worked on the software that produced the disc. Thanks anyway. I'll take a look around for it!
|
# ? Apr 23, 2015 02:28 |
|
Drythe posted:Like, I've had dumb requests before but not ones where I would have to explain at a very basic level of why it's a dumb idea. You should feel grateful you are insulated enough that this isn't actually your main job. I feel like anybody in a position that bridges between business/creatives and devs spends most of their time explaining to the business/creatives why what they are asking for is unreasonable or is better solved with a non-technical solution.
|
# ? Apr 23, 2015 02:41 |
|
Lysidas posted:Imaging centers that burn a lot of discs often buy standalone machines that listen over the DICOM protocol and are configured as study destinations ("application entities"? it's been far too long) for the actual imaging modalities. An MRI machine, for example, might directly send the study to a disc publisher where it'll be automatically burned to disc along with whatever DICOM viewer(s) the facility has chosen. There are places that burn discs manually, but after a certain number of discs they usually figure out that it's cheaper to buy a dedicated machine for this instead of having an employee do it by hand. Oh I didn't know this was the case...I got mine from the archive guy at the hospital that did my scan. From what i recall it was just a regular dvd-r.
|
# ? Apr 23, 2015 02:51 |
|
ErIog posted:You should feel grateful you are insulated enough that this isn't actually your main job. I feel like anybody in a position that bridges between business/creatives and devs spends most of their time explaining to the business/creatives why what they are asking for is unreasonable or is better solved with a non-technical solution. https://www.youtube.com/watch?v=BKorP55Aqvg
|
# ? Apr 23, 2015 06:11 |
|
Zaphod42 posted:One of the first programs I wrote in High School just printed a bunch of bell characters and then read them right back, in an infinite loop. Teacher: That BEL is for me not for you! TheresaJayne fucked around with this message at 06:05 on Apr 24, 2015 |
# ? Apr 23, 2015 06:27 |
It's funny someone mentioned ransomware yesterday, as this morning has been a fun time for our security team.
|
|
# ? Apr 23, 2015 14:01 |
|
Is it strange that when they mentioned the perpendicular thing, my first response was, "I guess they need a non-euclidean surface" ?
|
# ? Apr 23, 2015 14:17 |
|
Pavlov posted:Is it strange that when they mentioned the perpendicular thing, my first response was, "I guess they need a non-euclidean surface" ? lmao if your whiteboard can be embedded in three-dimensional space!
|
# ? Apr 23, 2015 15:51 |
|
Pavlov posted:Is it strange that when they mentioned the perpendicular thing, my first response was, "I guess they need a non-euclidean surface" ? Me too - it broke me out of the comedy for a second
|
# ? Apr 23, 2015 16:22 |
Pavlov posted:Is it strange that when they mentioned the perpendicular thing, my first response was, "I guess they need a non-euclidean surface" ? https://www.youtube.com/watch?v=B7MIJP90biM
|
|
# ? Apr 23, 2015 19:15 |
|
https://ef.gy/fastcgi-is-pointless FastCGI vs. HTTP "We already have a vendor-neutral protocol for accessing potentially generated resources from a web server that is supported by all major web servers and doesn't require spawning a new process for each requested resource: it's called HTTP! All decent web servers can proxy incoming requests to other web servers via HTTP. This has been a feature of virtually all web servers since long before FastCGI came around. In fact, the best web server currently alive and kicking - nginx - is famous for this capability. You'll stumble over a lot of guides and howtos describing how to use nginx as a load balancer for "heavy duty" web servers like Apache, by intercepting HTTP requests and proxying them to one of several backend servers. So why would you use FastCGI for your next web application's backend? ... It'll be a lot easier to just use or implement your own HTTP server and run that on a Unix socket instead of implementing FastCGI for the same purpose. You'll probably be prone to fewer bugs in other people's code and you'll get the exact request you're trying to respond to, and considering HTTP is a lot easier to read, you'll also be making fewer bugs parsing it yourself. It's quite easy, really, I came up with a 400-ish line C++ header that implements an HTTP server with Boost::ASIO." Oh those "other people" and their buggy code. :iamafag: I don't want to deny anyone the fun of writing their own HTTP implementation, but before they run to production with it and tell the world how easy it is, perhaps they could - implement chunked transfers - accept abnormally cased header names - enforce some mandatory request validations ... and those other little things that httpd takes more than 400 lines to do. Gazpacho fucked around with this message at 04:32 on Apr 24, 2015 |
# ? Apr 24, 2015 03:01 |
|
Nah man, I'm pretty sure if I start from scratch, I can reinvent the wheel to be like, 20% rounder.
|
# ? Apr 24, 2015 04:01 |
|
Gazpacho posted:https://ef.gy/fastcgi-is-pointless or not parse http header syntax with an incomplete regex that fails on the most basic poo poo? and lmao, it uses posix regex of course.
|
# ? Apr 24, 2015 05:02 |
|
Gazpacho posted:I came up with a 400-ish line C++ header that implements an HTTP server with Boost::ASIO."
|
# ? Apr 24, 2015 05:36 |
|
Gazpacho posted:Oh those "other people" and their buggy code. :iamafag: I don't want to deny anyone the fun of writing their own HTTP implementation, but before they run to production with it and tell the world how easy it is, perhaps they could
|
# ? Apr 24, 2015 15:10 |
|
Can we just vent about dump coding-related horrors in here? Examples (PHP):
Am I crazy? Is this crazy?
|
# ? Apr 24, 2015 17:27 |
|
IT BEGINS posted:[*] Several co-workers refuse to stop using globals inside function calls. Despite lengthy discussions, and being shown several articles and google tech talks about how globals are an issue, there is no change. "It's easier this way, I don't have to pass so many parameters". That's textbook stupid. You should probably shop around for new employment IT BEGINS posted:[*] A co-worker keeps rolling giant, unusable frameworks every three to six months. Initially, they featured a central 3000-line file that contained a single array that described every field in the database, organized alphabetically by field name. Now, after we recently began using KendoUI for our front-end, he rolled a front-end framework on top of it.
|
# ? Apr 24, 2015 17:37 |
|
Yeah, at this point just don't give a gently caress and
|
# ? Apr 24, 2015 18:00 |
|
talk about loving owned
|
# ? Apr 24, 2015 18:05 |
|
This is how I define functions in various languages:PHP code:
JavaScript code:
I also do things like: code:
|
# ? Apr 24, 2015 18:25 |
|
IT BEGINS posted:list] No; yes. Only idiots put spaces between a function name and parenthesis in C/C++, and only idiots put no space between a keyword (if/for/while/switch/...) and a parenthesis. But the real morons are those who put blanks behind an open paren, or before an closing one. When I see something like this, I know it's not going to be a good day: code:
|
# ? Apr 24, 2015 18:29 |
|
Mogomra posted:I don't call functions with a space between the name and the parameters, but define them that way. Am I just perpetuating the horror? What's so terrible about an extra space there? No, this is fine. It's the space between the function call and the parameters that fucks with me. The following: php:<? function poo ($a) { ... } // great foreach ($butts as $butt) { poo ($butt); // not great } ?>
|
# ? Apr 24, 2015 18:33 |
|
I probably should quit, but the pay is really good for my experience and the perks are awesome. Then again, the stupidity is overwhelming. My friend in QA recently overhead one of the guys arguing with the boss about some code - apparently he used the phrase it's not a bug, it's a feature completely unironically. Also, more dumb stuff like this:php:<? foreach($checknum_storage as $carriercode => $custcode_array){ foreach($custcode_array as $custcode => $currency_array){ foreach($currency_array as $currency => $checks_array){ foreach($checks_array as $checknum_span_value => $contents){ extract($contents); ... } } } } ?> php:<? $x = ($somevalue == true); $x && executeSomething (); ?>
|
# ? Apr 24, 2015 18:45 |
|
IT BEGINS posted:
The only problem here is the bolded part. Religious wars over which style is more "correct" are pointless, but if the company has a standard you should stick to it.
|
# ? Apr 24, 2015 19:01 |
|
"That's how they do it in C" as a justification is a pretty big red flag coming from a PHP developer. Also the flag is radioactive
|
# ? Apr 24, 2015 19:14 |
HappyHippo posted:The only problem here is the bolded part. Religious wars over which style is more "correct" are pointless, but if the company has a standard you should stick to it. This is the correct opinion here, especially with something as inconsequential as whitespace around delimiters. If you are working with other people stick to the common style, if you are working by yourself who cares how your whitespace is formatted.
|
|
# ? Apr 24, 2015 19:22 |
|
It sounds like there's no management where IT BEGINS works, so coding style is obviously a free for all.
|
# ? Apr 24, 2015 19:25 |
|
Snapchat A Titty posted:It sounds like there's no management where IT BEGINS works, so coding style is obviously a free for all. Everything here is a free-for-all. There's no care for code quality and project management is a crap-shoot. We've got seven developers and what is essentially seven teams. I'm currently working on three different major projects for which I am the sole developer, with extremely occasional input from my boss. I don't know how, but miraculously this ship is still afloat (and growing, somehow). After repeated attempts to explain why OOP is useful for us, why refactoring code that we have to regularly maintain is good, why separation of concerns is critical, I've mostly given up. Hell, I just barely convinced my higher ups to move our reports and templates into the same repository as the rest of our software. I was told 'they are unrelated' (they use a huge amount of shared code and are part of the same overall piece of software). Never mind that I contribute more than 50% of the code to this reporting engine and I'm regularly forced to take part in some sort of 'branch disco' because my changes can't be kept in sync. Edit: Also sorry if this isn't the thread to vent, but I figured you guys could enjoy some Schadenfreude that wasn't strictly code.
|
# ? Apr 24, 2015 19:41 |
|
That's some good stuff.
|
# ? Apr 24, 2015 19:48 |
|
IT BEGINS posted:I probably should quit, but the pay is really good for my experience and the perks are awesome. Then again, the stupidity is overwhelming. My friend in QA recently overhead one of the guys arguing with the boss about some code - apparently he used the phrase it's not a bug, it's a feature completely unironically. Also, more dumb stuff like this: Apart from the extract in the inner body and dubious whitespace, what else is wrong? I am not a PHP programmer. Also, I second the suggestion to ditch a place where people are directly opposed to improving their development practice. I work as a PhD student developing a GPU-targeting optimising compiler in Haskell, and my advisor has previously spent his life writing Fortran compilers in C++. I have frequently been tempted to put examples of his Haskell work in this thread, but to be honest, he's really trying to improve (and succeeding), because he is responsive to arguments. Also, I added a style checking script to the continuous integration system that will send him an angry email whenever he violates it. You could try the same. Programmers tend to respond to machines yelling at them.
|
# ? Apr 24, 2015 20:10 |
|
Athas posted:Apart from the extract in the inner body and dubious whitespace, what else is wrong? I am not a PHP programmer. Depending on the sizes of those arrays, that thing could take a very long time to run. It might be a good idea to break out if it's some kind of search, or cache the results & only redo them when the arrays change. Like with all the arrays being a tiny size 10, that's already 10,000 iterations of the innermost block.
|
# ? Apr 24, 2015 20:14 |
|
|
# ? Apr 24, 2024 13:26 |
|
Athas posted:Apart from the extract in the inner body and dubious whitespace, what else is wrong? I am not a PHP programmer. Mainly the extract, but also having a four-layer array is probably not a good thing. It's not strictly bad but it comes from other code like php:<? $checknum_storage[$carriercode][$mastercustcode_custcode][$currency][$checknum_span_value]['controlnum']= $controlnum; $checknum_storage[$carriercode][$mastercustcode_custcode][$currency][$checknum_span_value]['invoicenum']= $invoicenum; $checknum_storage[$carriercode][$mastercustcode_custcode][$currency][$checknum_span_value]['checknum_span']= $checknum_span; ?> Edit: from the same file: php:<? function maintain_checknums($row){ global $database, $checknum_storage,$current_date_time,$current_date; extract($row); if(!isset($mastercustcode_custcode)) $mastercustcode_custcode = $custcode; if(!isset($current_date_time)) $current_date_time = date('H:i:s',strtotime(date('Y/m/d H:i:s'))); if(!isset($current_date)) $current_date = date('m/d/Y',strtotime(date('Y/m/d H:i:s'))); ?>
|
# ? Apr 24, 2015 20:21 |