|
Janitor Prime posted:I did a thing to play around with the Maven release plugin and gently caress around some more with logback. nice
|
# ? Feb 10, 2014 16:13 |
|
|
# ? May 28, 2024 16:23 |
|
qntm posted:then higher-than-normal is the new normal, pick a server at random it's the new normal for the app server in question, but if it's just a network problem on that app server, failing out and letting the load balancer move traffic to another app server would be a better choice same if it's a problem with the db cluster: failing out and letting the dns load balancer move traffic to another datacenter is probably better than having high error rates but if you only have the one cluster, don't just fail hard it's not a black-and-white issue, and it's an interview question with no good answer, just an open-ended discussion about tradeoffs
|
# ? Feb 10, 2014 19:32 |
|
isnt the right answer "how dare you speak to me you cj" and go back to coding up your bespoke runtime configuration system for c based around xml macros
|
# ? Feb 10, 2014 19:43 |
|
FamDav posted:isnt the right answer "how dare you speak to me you cj" and go back to coding up your bespoke runtime configuration system for c based around xml macros nah, by making computer systems that handle faults sensibly and correctly you can make operating them cheaper and put cjs out of jobs
|
# ? Feb 10, 2014 19:46 |
|
a guy asks for a algorithm book and cormen doesn't even get brought up? also, I got asked this question at two different shops: Find the intersection between two strings (in C). What is its runtime? If I gave an O(n) solution, they would ask me to give a O(n^2) solution, if I gave an O(n^2) solution they asked me to do it in O(n). hth
|
# ? Feb 12, 2014 06:03 |
|
Innocent Bystander posted:a guy asks for a algorithm book and cormen doesn't even get brought up? you mean where the prefix of one is the suffix of the other? or like can a string be a substring of another.
|
# ? Feb 12, 2014 06:19 |
|
ah yes, that was a bit vague it was find the set of characters found in string 1 and in string 2. return it! (exclamation was my emphasis)
|
# ? Feb 12, 2014 06:22 |
|
Innocent Bystander posted:ah yes, that was a bit vague are you talking longest common subsequence or are actually the set of characters.
|
# ? Feb 12, 2014 06:23 |
|
the set, not longest common subsequence. its not a hard problem. can you find longest common subsequence in O(n)?
|
# ? Feb 12, 2014 06:27 |
|
Innocent Bystander posted:the set, not longest common subsequence. its not a hard problem. can you find longest common subsequence in O(n)? no which is what had me confused. you can find it in n^2 with extra space
|
# ? Feb 12, 2014 06:34 |
|
E nm misread
|
# ? Feb 12, 2014 06:35 |
|
Innocent Bystander posted:also, I got asked this question at two different shops: Find the intersection between two strings (in C). What is its runtime? If I gave an O(n) solution, they would ask me to give a O(n^2) solution, if I gave an O(n^2) solution they asked me to do it in O(n). hth so you want to find the common elements between two lists of characters option a) use a hash table, or a array option b) if list is sorted, merge the common elements. option c) two nested for loops common subset? build a suffix tree i think eh it's 6 am
|
# ? Feb 12, 2014 07:04 |
nvm
Shy fucked around with this message at 22:46 on Feb 12, 2014 |
|
# ? Feb 12, 2014 09:21 |
|
so i want to write some sort of image filter thing to make images look like the original gameboy screen which had a weird 2 bit monochrome swamp green display the trouble being i#ve no idea how to start going about this like, i think i can convert an image to 2 bit monochrome easy enough its just the weird green colour thats im not sure about also the gameboy has small gaps between its pixels i dont even know how to go about doing, a graphics shader maybe?
|
# ? Feb 12, 2014 11:06 |
|
Innocent Bystander posted:a guy asks for a algorithm book and cormen doesn't even get brought up? clrs is not a good book to self study it's a reference style textbook designed around having a full university course filling in the blanks and providing motivation (and TAoCP is a better reference anyway) Skeina et al is a much more complete way of learning a whole bunch of data structures/algorithms since it provides guidance and analysis together
|
# ? Feb 12, 2014 12:20 |
|
tef posted:so you want to find the common elements between two lists of characters is this for set or multiset instersection tho
|
# ? Feb 12, 2014 12:23 |
|
Malcolm XML posted:is this for set or multiset instersection tho does it make a difference? a) use a hash, keep count of how many elements are in a set. find the intersection of hash keys + sum of hash values (or same but use array with counts) b) if mutiset is expressed as sorted string, merge them, skipping ones that only appear in one string, keeping duplicates c) two for loops
|
# ? Feb 12, 2014 14:36 |
|
what *are* joins? https://www.youtube.com/watch?v=Kh0Y2hVe_bw
|
# ? Feb 12, 2014 14:39 |
|
Awia posted:so i want to write some sort of image filter thing to make images look like the original gameboy screen which had a weird 2 bit monochrome swamp green display im not sure what youre asking for here? if you want to code it up yourself just add in the pixel gaps yourself. if you use a shader doesnt that defeat the point of coding it yourself?
|
# ? Feb 12, 2014 17:05 |
|
Awia posted:so i want to write some sort of image filter thing to make images look like the original gameboy screen which had a weird 2 bit monochrome swamp green display for 2 bit monochrome, you want to threshold on pixel color. for spacing, you probably first want to down sample the image then set like every nth row and column of pixels to off, or you could space everything out.
|
# ? Feb 12, 2014 17:12 |
|
how big can a java class get before it should start setting off warning bells? asking for a friend
|
# ? Feb 12, 2014 17:21 |
|
whenever it's big enough to need its own file
|
# ? Feb 12, 2014 17:30 |
|
pointsofdata posted:how big can a java class get before it should start setting off warning bells? one responsibility, keep it SOLID
|
# ? Feb 12, 2014 17:38 |
|
Awia posted:so i want to write some sort of image filter thing to make images look like the original gameboy screen which had a weird 2 bit monochrome swamp green display Downsample the original image, then convert to 2 bit monochrome. Then convert back to 32-bit color, using appropriate green values instead of just 4 shades of gray. Then stretch the image back out to the desired final resolution using nearest neighbor filtering, and insert a pixel or two of empty space between the fake LCD pixels.
|
# ? Feb 12, 2014 17:47 |
|
pointsofdata posted:how big can a java class get before it should start setting off warning bells? size/lines of code is a pretty good metric for software complexity, but not reliability, or correctness[1]. unfortunately, sometimes things have to be a bit long, or a bit complex, to capture the problem and manage the details. it's much easier to talk about good style and bad smells, instead of short and long code. - a class with lots and lots of internal state is a good alarm bell - a class with more than 10 methods can be bad, but sometimes you have methods for sugar. - a class that has lots of subclasses might be ok, but sometimes it's good to move them out into their own files too. the thing is, the longer the code is, you're more likely to see these things. [1] http://www.cs.du.edu/~snarayan/sada/teaching/COMP3705/lecture/p1/corbw-1.pdf
|
# ? Feb 12, 2014 18:14 |
|
if the code is too long u will be able to smell it
|
# ? Feb 12, 2014 18:49 |
|
droopy code be like droopy pussy touched by too many people and STANKY
|
# ? Feb 12, 2014 18:52 |
|
Cocoa Crispies posted:one responsibility, keep it SOLID
my favorite design pattern is chain of responsibility
|
# ? Feb 12, 2014 19:03 |
|
Kevin Mitnick P.E. posted:
if you don't want to get hit by a chain take some goddamn responsibility?
|
# ? Feb 12, 2014 19:26 |
|
Doc Block posted:Downsample the original image, then convert to 2 bit monochrome. Then convert back to 32-bit color, using appropriate green values instead of just 4 shades of gray. genius, thanks
|
# ? Feb 12, 2014 19:40 |
|
I'm in Canadan and I have a super good offer for a position, but I need an enhanced reliability clearance (which is not hard to get but my boss will be contacted as part of it). Do I tell him that I'm jumping ship or do I lie and tell him that I'm going to do contract work on the side or what help
|
# ? Feb 13, 2014 03:50 |
|
EAT THE EGGS RICOLA posted:I'm in Canadan and I have a super good offer for a position, but I need an enhanced reliability clearance (which is not hard to get but my boss will be contacted as part of it). Do I tell him that I'm jumping ship or do I lie and tell him that I'm going to do contract work on the side or what help tell him it's so you can be a canadian super spy, eh
|
# ? Feb 13, 2014 05:19 |
|
Kevin Mitnick P.E. posted:tell him it's so you can be a canadian super spy, eh I got an offer working with the bearhat police too! But that's not the one I'm taking (and it would have taken a secret clearance)
|
# ? Feb 13, 2014 05:23 |
|
is working as a software developer in "testing" as dull as it sounds? i'm considering a job in building automated tests but i am having a hard time imagining that as anything but the boringest job ever
|
# ? Feb 13, 2014 05:28 |
|
Corla Plankun posted:is working as a software developer in "testing" as dull as it sounds? Do yhou enjoy building automated tests???
|
# ? Feb 13, 2014 05:31 |
|
Corla Plankun posted:is working as a software developer in "testing" as dull as it sounds? depends if you get to write cool tools or if you get to write the unit tests the leads are too valuable to waste their time on
|
# ? Feb 13, 2014 06:32 |
|
tef posted:so you want to find the common elements between two lists of characters a. is gonna have a log factor and c. is quadratic right? b. is only linear if youre presorted.
|
# ? Feb 13, 2014 07:12 |
|
fritz posted:a. is gonna have a log factor and c. is quadratic right? b. is only linear if youre presorted. hashtables are constant timeif you've got a good hash function and the data's not pathological on ASCII strings you can just use a 128-entry array instead.
|
# ? Feb 13, 2014 07:15 |
|
coffeetable when are you gonna start interviewing move to seattle its the only way
|
# ? Feb 13, 2014 07:17 |
|
|
# ? May 28, 2024 16:23 |
|
march-ish it's looking like projects are wrapping up + i no longer feel *completely* incompetent + home life is finally starting to get to me. only took six months
|
# ? Feb 13, 2014 07:19 |