« first day (1279 days earlier)      last day (3721 days later) » 

5:03 PM
@Shog9: Nice to see you in the Whiteboard.
@ThomasOwens Can you short-circuit this migration?
0
Q: ModelValidationError c# asp.net + using database

Jepixi'm trying to create a DB using MySql code in visual studio and after that i'm trying to add some items it. I keep getting "ModelValidationException"-errors and other errors in the past... Here's some information: Global.asax: protected void Application_Start() { AreaRegistration.RegisterAl...

 
user55340
@RobertHarvey link for your comment: [how to debug](http://samizdat.mines.edu/howto/HowToBeAProgrammer.html#id2790282)
 
user55340
Learn how to debug. There are two ways to do it: set a breakpoint and step through the code, or write the values of things to the console so that you can see them. Learn and understand why the exceptions are being thrown. — Robert Harvey 3 mins ago
 
user55340
(you've still got a minute or so...)
 
user41796
@RobertHarvey I gave it an "unclear" vote in an attempt to redirect the votes.
 
@MichaelT Thanks.
 
user55340
5:09 PM
> Debugging is the cornerstone of being a programmer. The first meaning of the verb to debug is to remove errors, but the meaning that really matters is to see into the execution of a program by examining it. A programmer that cannot debug effectively is blind.
 
@RobertHarvey Done.
 
Thanks.
 
user41796
5:24 PM
Chasing down potential referential integrity errors in MS Access is ... a pain.
 
user55340
@GlenH7 give me a ping if you get any 'random' upvotes on that ultimate shuffle question... just curious (linked it from another array shuffle question currently out there)
 
@GlenH7 SQL ftw?
 
user55340
And at some point, I'm going to write that ultimate shuffle program.
 
user41796
@MichaelT good excuse to continue trying out atom.io that way?
 
user41796
@enderland don't get me started. either. Since I know you're already there. Ugh.
 
user55340
5:29 PM
@GlenH7 Nah - gonna pull things from my own itunes library and do it as a command line pogram somehow.
 
user41796
Hey, I'm gonna take this set of critical fields that are really, really important to the results and make sure I copy them across 5 tables so there's no chance the data can be lost.
 
user41796
@MichaelT migrating my itunes library last night went amazingly smoothly
 
user41796
now I want to import in all the spare songs that I have picked up through other venues (amzn, play, etc...) so they're all in one spot.
 
spotify ftw
saved me so much money in the past few years
 
user41796
@enderland I have such a deep catalog already that I have a hard time justifying paying a monthly service fee
 
user41796
5:32 PM
And I had enough podcasts to where I had more material than available listening time.
 
user41796
But I have enjoyed using spotify when just listening at home.
 
user55340
I've got some crazy playlists on my system once I realized (several years ago) that everything is an SQL query there.
 
user55340
So I've got a playlist of "songs not to include in other playlists" so that I can do another play list that is "songs like this but not in 'do not include'"
 
@MichaelT on what?
 
user41796
I ought to tap into genius recommendations way more often than I do
 
5:33 PM
@GlenH7 I do too I guess, but I was buying way more than $10 in music
 
user55340
And then another folder (thats a union) that is set up of several play lists like that...
 
user55340
and then another play list that is this folder filtered this way... etc...
 
user55340
@enderland Itunes smart playlists.
 
@MichaelT huh. I'm going to have to look at those myself!
 
user55340
Example, I've got a folder that I call "Blue Folk Various" which has a folder in it that is "Mechanics" and a playlist of "specific exclude". Then the mechanics has folders for artists, genres, and specific include play lists...
 
user55340
5:36 PM
And then there's a playlist that is "is in Blue Folk Various/Mechanics and not in Blue Folk Various / specific exclude"
 
this is what happens when programmers get access to different elements of "source code" :D
 
user55340
@GlenH7 heh...
 
user55340
9
A: I'd like to write an "ultimate shuffle" algorithm to sort my mp3 collection

GlenH7Ignoring the outliers of your question that Telastyn brings up, it sounds like you have a variation on the knapsack problem. Fortunately, it's a pretty well documented algorithm. From Wikipedia Given a set of items, each with a weight and a value, determine the number of each item to includ...

 
user55340
> I could also see considering your problem as an extreme variant of the traveling salesman problem. Each city to visit is really a song that you want played, but I'm not sure how you would specify the intervals between artists. This suggestion is also related to / can be solved by the ant colony approach.
 
user55340
1
A: Algorithm to order array

Doc BrownThis can be seen as a traveling salesman problem: each element is a node of your graph, labled with it's number there are edges between each pair of nodes the "distance" of getting from one node to another is 0 if the lables have different numbers, and 1 if the numbers are equal Now you are l...

 
5:43 PM
@MichaelT Ultimate shuffle. We have "Quick sort" I wonder why nobody has yet invented the formal "Ultimate sort"...
 
@JimmyHoffa saving it for a rainy day
works in O(-1) time
sorts the music before you even think of sorting it
 
Guys, are we allowed to ask for programming help here? I have this unanswered question that's been on for a while.... used over 6 hours trying to figure out what the mistake is, can't find it :S
 
user41796
@MichaelT No upvotes yet. :-) That was a fairly odd question which needed an odd answer IMO
 
user41796
@FriedBitz You can ask almost anything you want. No guarantees of an answer though. :-)
 
@FriedBitz You can try. Just don't expect to get free consulting work here. :) If your question is sufficiently focused, you can ask it on Stack Overflow.
 
5:53 PM
I tried Stack Overflow, but no one had an answer for it :S and I keep getting error message :S It's this one: stackoverflow.com/questions/22200930/…
 
user41796
0
Q: Uncaught SyntaxError: Unexpected token W - parseJSON error

FriedBitzSo my problem is that I am trying to have this IF statement run once the file is confirmed transfered and uploaded. The only problem is that only 1 of these actions run. I have a loading bar that is supposed to reach 100% when the upload is finished. I get this in my browser: Uncaught SyntaxError...

 
always nice when you're testing images and you use a pic of the GF as a test image so you see it constantly
ha
 
user55340
Lenna or Lena is the name given to a standard test image which has been in use since 1973. It comprises 512×512 pixels, and was originally cropped from the centerfold of November 1972 issue of Playboy magazine. It is a picture of Lena Söderberg, a Swedish model, shot by photographer Dwight Hooker. The image is probably the most widely used test image for all sorts of image processing algorithms (such as compression and denoising) and related scientific publications. The anglicised version "Lenna" of Lena Söderberg's actual name comes from the Playboy article where Playboy changed the ori...
 
@FriedBitz The error message seems pretty clear. Your JSON parser is confused about some part of your JSON input. You need to make sure your JSON is compliant.
 
yeah... thinking that might get me a few more questions than myself and the gf does ;)
 
user55340
5:57 PM
597
Q: Twitter image encoding challenge

Brian CampbellIf a picture's worth 1000 words, how much of a picture can you fit in 140 characters? Note: That's it folks! Bounty deadline is here, and after some tough deliberation, I have decided that Boojum's entry just barely edged out Sam Hocevar's. I will post more detailed notes once I've had a chance ...

 
@RobertHarvey Well I believe the problem is: jQuery.parseJSON(xhr.responseText) , but cant seem to fix it :S
Honestly I have no idea what to do :S
 
user41796
@FriedBitz wrap some trace statements around those sections and see what you're actually receiving. Or pop it into a debugger and walk it through manually.
 
user55340
@enderland One interesting bit about Lenna, they've gone back to Playboy to get higher quality image scans for it.
 
@FriedBitz Look at the JSON. Find out what's wrong with it.
 
user41796
@MichaelT I'm surprised Playboy doesn't have some measure of copyright on the photo.
 
user55340
6:01 PM
> The use of the image has produced some controversy, with some people concerned about Playboy magazine as the source of the image, and with the image being copyrighted,[6] though Playboy in 1997 indicated less interest in copyright, and more in the image as "a phenomenon."[9]
 
user55340
> In September 2013 it was noted that Jeff Seideman (of the Society for Imaging Science and Technology) was working with Playboy to rescan the image from the original negatives.[14][15]
 
It's arguably a "fair use," it not being the entire original photograph (because, y'know, NSFW).
 
"you have single handledly been viewed by more nerds than any other model ever"
actually thats probably not totally true
 
user41796
Props to them for acknowledging the public good from using their copyrighted material.
 
user55340
> Playboy helped track down the Swedish native in Stockholm, where she helps handicapped people work on (non-networked) computers. Although Playboy is notorious for cracking down on illegal uses of its images, it has decided to overlook the widespread distribution of this particular centerfold.
Says Eileen Kent, VP of new media at Playboy: "We decided we should exploit this, because it is a phenomenon."
 
6:02 PM
@FriedBitz Have you done a console.log of xhr.responseText? Do so and get the exact contents of that text.
@MichaelT where's that mines link again about how to debug?
 
user55340
55 mins ago, by MichaelT
@RobertHarvey link for your comment: [how to debug](http://samizdat.mines.edu/howto/HowToBeAProgrammer.html#id2790282)
 
@FriedBitz the reason you aren't getting responses on SO is you put out wayy too much information, you did some amount of leg work which is obvious, but you haven't done the second step of culling that information down to a focussed area. Nobody on SO is going to read everything you have there and identify one small issue in all of it. Have a read: samizdat.mines.edu/howto/HowToBeAProgrammer.html#id2790282
 
I need to learn debugging :S
Suck at it :S
 
user41796
@FriedBitz Now you have a golden opportunity to learn
 
user41796
Honestly though, this one should be a quick find once you pop it in a debugger. Screams of a problem within the input parms.
 
6:05 PM
This is what I got from my console: ReferenceError: xhr is not defined
message: "xhr is not defined"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
arguments: null
caller: null
length: 1
name: ""
prototype: Object
__proto__: function Empty() {}
<function scope>
__proto__: Error
 
@FriedBitz Read, practice, it's possibly one of the most painful things a person can learn as generally the only way someone really learns it is by plying painful intractable problem after problem for hours at a time
 
@FriedBitz Look at the error message. "xhr is not defined." Think about what that means. Some error messages are red herrings, but this one is pretty specific.
 
Yeah, it's really satisfying once you finish up aswell :P but my main area of focus hasn't really been JS, which makes it even harder to debugg it :S Focusing on PHP at the moment
 
@RobertHarvey That's the error message? I didn't see that...
@FriedBitz Debugging is debugging.
 
Yeah, but it's even harder when you dont fully understand the language :P
 
6:08 PM
@FriedBitz Take the opportunity to learn JavaScript, it's a far better language than PHP.
 
Yeah, but started off learning PHP and just need to finish of this website before I can start learning using JavaScript :)
 
user55340
@GlenH7 for that 'simple' array set, I wonder if a deterministic distribute would work.
 
user55340
I'm thinking drawing programs... select all the squares, and select 'distribute'. Then all circles, triangles, and squares... etc...
 
user55340
So all the squares are separated by maximum amount in the page, and the squares, and the triangles.
 
user55340
And then you select them all, and distribute them - and that's effectively your array.
 
user41796
6:11 PM
@MichaelT yeah, probably a viable solution. He didn't say he needed to maximize the distance between repeated elements, but that could just be a bonus
 
So the problem is: xhr.responseText, but am I looking for a variable called responseText or? Because isn't xhr just a request to collect this from the server?
 
user41796
@FriedBitz but xhr doesn't exist according to that log
 
user41796
ergo xhr.responseText doesn't exist either
 
user41796
@MichaelT His secondary requirement generates a wrinkle though
 
user41796
> Secondary goal is to distribute elements unbiased across resulting array if possible.
 
6:14 PM
@FriedBitz so you're making a query
might be helpful to include a little more code
I can't tell what's happening with the small snippets you've given
 
user41796
@Ampt His question on SO has quite a bit more code. stackoverflow.com/questions/22200930/…
 
The problem comes from jquery.filedrop.js...
 
user55340
An example of discussions not working here...
 
user55340
-3
Q: Is this a good curriculum for a community college?

BackPacker777I am helping to develop a two-year associates degree program in web development. Is the following a good curriculum that would make completers marketable? Also, can you suggest additional tools for the Programming tools course? ==EDIT== http://ask.slashdot.org/story/14/03/03/1843228/ask-slashdot...

 
user55340
 
@FriedBitz 403
 
user41796
@MichaelT so glad I have delete votes left
 
I'm looking specifically for where you create XHR
 
user55340
@GlenH7 Part of the bit I'm point there is the "discussions don't work here and they do there, if you want that, go there"
 
@Ampt The problem is that it's working as long as I dont put a SQL query in front of exit_status('File was uploaded successfuly!'); in my php file....
 
6:21 PM
@FriedBitz I think there's a spurious variable
 
@Ampt Which means? Sorry, but I was expecting that document to be finished and working :S
 
So it 100% works without the query?
or it just seems like it works
 
Yes
 
user41796
@MichaelT Reading over the slashdot comments on that cross-post reminds me why I don't frequent slashdot.
 
I guess I'm having a hard time visualizing what you're doing without more code
 
6:23 PM
Well, it works... it uploads the file to my database, changes the name to it and I get a fully functional confirmation on it... however, which is obvious, I dont get anything in my sql...
@Ampt This is the one I used: demo.tutorialzine.com/2011/09/html5-file-upload-jquery-php.... I just changed what I have put up here: stackoverflow.com/questions/22200930/… so that I can get a unique image name pr. image and have it not duplicate :)
 
Do you have any complete code?
pastebin?
 
user41796
@Ampt Check the question revision history; fair amount in there
 
there it is
 
Everything is on there now
That is without the query....
 
xhr.onreadystatechange = function() {
	switch( xhr.readyState ) {
	case 3: // Interactive
	// Do whatever you want to notify the user that the request is processing…
	break;

	case 4: // Completed
	default: // bulletproofing
		if( xhr.status == 200 ) { // successful completion (server sent http OK)
		// do whatever
		} else {	// the server sent an http error code (404 etc)
		// do error reporting
		}
		break;
	} // end switch
} // end anonymous function
you're sending the XHR asynchronously
so it returns immediately
xhr.open(<method>, <url>, true );
//The send() function will return immediately
xhr.send(<request parameters>);

// While the request is being processed asynchronously, the status property and responseText are undefined!
status = xhr.status;
response = xhr.responseText;
 
user41796
6:32 PM
@Ampt - just had a resume cross my desk listing APEX language skills. Thought you would get a chuckle from that.
 
@GlenH7 Anything else or just that? haha
 
Where did you get that code from Ampt?
 
user41796
@Ampt No other gems to share at the moment
 
@FriedBitz one of my profs slide decks
@GlenH7 I mean did he have any other language skills or just APEX? haha
took a web apps class last quarter and one week was all AJAX
 
@Ampt Is it related to my problem or just something else?
 
user41796
6:34 PM
@Ampt trying to determine how much claim they can make to any language at the moment. :-)
 
@FriedBitz read through that. it's short and should give you an overview of what's going on
 
this is rather cool. bitly.com/a/media_map
 
@FriedBitz from what I'm gathering, you're responding to the request before it's actually finished
 
How can I delay my response to after the request is finished?
 
@FriedBitz change your response method to an onreadystatechange
so instead of onload, use onreadystatechange as seen above
 
6:39 PM
@Ampt Because I wish to perform the actions in this order: File is uploaded, file is relocated to the directory and renamed, file information is being queried to the SQL and then I wish to close the upload and call it successfull! :P
 
use that switch to determine if it's complete or not
@FriedBitz did you check out those slides?
 
@Ampt So I switch xhr.onload = function() with xhr.onreadystatechange?
I saw it and I get the idea, but I dont have much experience with Ajax. Therefor it's quite new for me :S
@Ampt Hmmmm I tried switching out onload with onreadystatechange....
Got an error
 
Well you can't just swap the function name
you need to adapt the onreadystatechange to do what you want
check the parameters, look at the status
if( xhr.status == 200 ) { // successful completion (server sent http OK)
// do whatever
specifically, put your code inside there
 
Is that the same as: readyState==4?
 
that's inside readystate==4
18 mins ago, by Ampt
xhr.onreadystatechange = function() {
	switch( xhr.readyState ) {
	case 3: // Interactive
	// Do whatever you want to notify the user that the request is processing…
	break;

	case 4: // Completed
	default: // bulletproofing
		if( xhr.status == 200 ) { // successful completion (server sent http OK)
		// do whatever
		} else {	// the server sent an http error code (404 etc)
		// do error reporting
		}
		break;
	} // end switch
} // end anonymous function
you've used switch statements before right?
 
6:50 PM
Thats when it selects the case depending on the state? right?
 
@FriedBitz yes
so where it says do whatever, you put your code in there
 
Should I keep xhr.responseText?
or should I replace that with xhr.readyState()?
 
leave readystate
thats a part of the XMLHTTPRequest class
 
Yeah, but I mean the other way around... This is what I have
 
6:53 PM
xhr.onreadystatechange = function() {
switch( xhr.readyState ) {
if (xhr.responseText) {
var now = new Date().getTime(),
timeDiff = now - start_time,
result = opts.uploadFinished(index, file, jQuery.parseJSON(xhr.responseText), timeDiff);
filesDone++;
if (filesDone == files_count - filesRejected) {
afterAll();
}
if (result === false) stop_loop = true;
}
}
};
 
you took away too much
now your switch doesn't do anything
also, hitting fixed formatting on the right of the text box will let you post code without losing spacing
 
Yeah, but do I keep if(xhr.responseText)?
Oh, thanks :P never noticed
 
xhr.onreadystatechange = function() {
	switch( xhr.readyState ) {
	case 3: // Interactive
	// Do whatever you want to notify the user that the request is processing…
	break;

	case 4: // Completed
	default: // bulletproofing
		if( xhr.status == 200 ) { // successful completion (server sent http OK)
		// do whatever
                    YOUR CODE HERE
		} else {	// the server sent an http error code (404 etc)
		// do error reporting
		}
		break;
	} // end switch
} // end anonymous function
right there
put your code in there, leave the rest
-1
Q: The question is explain code

user122307Hi everyone please I want your help. I don't know how to solve this question. the question is explain code?. I tried to solve it but it was hard for me to solve it. The question is here in this picture ! please i need your help :(

LOL
 
Haha, I feel like thats me right now :P
This should be correct then...
xhr.onreadystatechange = function() {
                switch( xhr.readyState ) {
                    case 3: // Interactive
                        // Do whatever you want to notify the user that the request is processing…
                        break;

                    case 4: // Completed
                    default: // bulletproofing
                        if( xhr.status == 200 ) { // successful completion (server sent http OK)
                            // do whatever
                            if (xhr.responseText) {
 
now we're getting somewhere!
it's not great, but it's closer
 
6:58 PM
I hope thats all I need to do :P so much for adding a sql query to a finished template :P
Is it working? :P
 
Idk, does it work?
 
Still got...Uncaught SyntaxError: Unexpected token W jquery-2.1.0.min.js:4
o.parseJSON jquery-2.1.0.min.js:4
xhr.onreadystatechange
 
give me the whole error please
 
Thats all I get in the console...
No wait...
xhr is not defined
ReferenceError: xhr is not defined
message: "xhr is not defined"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error
I get this for JSON... : o.parseJSON
ReferenceError: o is not defined
message: "o is not defined"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error
 
user55340
tip: after pasting in block of code, hit 'fixed font' button.
 
7:07 PM
are you replacing anything in that error?
or is that 1:1 output
 
user55340
#include <stdio.h>
int main()
{
    int i=3;
    int k=0;
    k=i+(++i);
    if (k==7)
        printf("The cat is fine. k=i+(++i) =%d\n",k);
    else
        printf("The cat is dead. k=i+(++i) =%d\n",k);
}
 
Thats the exact I get from my chrome console...
 
user55340
No indentation?
 
Are we clogging up the whiteboard guys?
we can move if you would like
 
user55340
@Ampt Nah...
 
user41796
7:09 PM
@MichaelT That's hilarious
 
user55340
@GlenH7 You saw the compilation of it... right?
 
user41796
I saw you post it earlier, but I didn't click through and read
 
@MichaelT is that sarcasm? I'm trying to be respectful :P
 
user41796
@Ampt "meh" We can put you two on mute if need be
 
@GlenH7 cool. Just checking.
 
user55340
7:10 PM
@Ampt Nope. As long as the code is compiling, its on topic here.
 
user55340
You could even talk about monads... and... well, then we might mute you.
 
Hey Ampt. I'll send you the login so you can check the errors on the page yourself, okai?
 
@FriedBitz no no. I believe you
wait
so xhr is undefined
is it going out of scope?
 
Yeah...
Hmmm....
 
are you trying to access XHR in another function somewhere?
 
7:12 PM
xhr.open("POST", opts.url, true);
xhr.setRequestHeader
xhr.sendAsBinary(builder);
and of course the xhr.responseText
 
I wish it gave a line number or something
 
I tried removing the query, and now it's working again...
 
whats the query?
can we see that?
 
// date_default_timezone_set('Europe/Oslo');
            //$namepic = $pic['name'];
            //$urlpic = "../img/gallery/".strval($menucount).$pic['name'];
            //$altpic = $pic['name'];
            //$datepic = date(Y,m,d);

            //$query = $db->prepare("INSERT INTO bilder (name,url,alt,date) VALUES (:name,:url,:alt,:date)");
            //$query->execute(array(':name' => $namepic, ':url' => $urlpic, ':alt' => $altpic, ':date' => $datepic));
 
this is PHP right?
not quite my forte
 
user55340
7:16 PM
@ThomasOwens (yea, its an answer of mine and would make it harder to clean up the dup later... but programmers.stackexchange.com/questions/231386 --> programmers.stackexchange.com/questions/213449 might have been a valid dup target)
 
It's PHP yes, but I dont see anything wrong about it....
 
@FriedBitz wait is that $query->execute generating a response to the jquery?
put a console.log into your javascript
right where your code starts processing
see if it ever hits that
with and without the query
 
This is what I get in the console if thats what you mean....
XHR finished loading: "http://misjonsprosjektet.org/login/post_file.php". jquery.filedrop.js:300
XMLHttpRequest.sendAsBinary jquery.filedrop.js:300
send
 
@MichaelT I can't see the picture. But dupes don't get purged by the thing, so if it's a bad question, I tend to not dupe it.
 
user55340
@ThomasOwens The picture is a screen shot of some homework that is generating permutations.
 
user55340
7:21 PM
> The following Exercise shows an iterative way of generating all permutations of the sequence (0, 1, ... , n-1). Explain why the algorithm produces the correct result.
The following class generates all permtuatiosn of the numbers 0, 1, 2, ... , n-1, without recursion.
public class NumberPermtuationIterator {
... (code dump)
}
The algorthim uses the fact that the set to be permutatated consists of distinct numbers.....
 
user41796
@MichaelT I don't think it would make a good dupe - no one would stumble across that via search
 
user41796
And unlike the earlier eyesore, that particular question can wait for the Roomba to clear it out. :-)
 
user55340
@GlenH7 Yep... and I'd go through and cast a delete vote on the unviwed dup that has comments on it that prevent it from getting rooba'ed later.
 
user55340
The bit I end my answer with is
 
user55340
> If you really want to read more about this, The Art of Computer Programming Volume 4, Combinatorial Algorithms section 7.2.1.2 is titled "Generating All Permutations" that goes deeply into the math.
 
user41796
7:23 PM
Good answer on the python version of the question, btw
 
user55340
And the ruby version too.
 
user55340
> However, this is a very boring answer and doesn't help anyone who (despite the tag and me pointing to other languages too) is trying to find out how to create every permutation of a set.
 
@gnat Problem is well described above. It is your problem if you do not understand it well. Not everybody is smart enough, sorry. Thank you for voting down, noob. — Dusan 2 mins ago
lovely
 
I placed the console just after xhr.responseText and it got through both times.... if (xhr.responseText) {
console.log ( 'IF STATEMENT' );
 
user41796
@gnat thanks for the free comment flags
 
user55340
7:25 PM
Thanks for the answer. Can you suggest some decent heuristic for this specific 0-1 graph which is expected to work less than a second for the max 100 elements in the resulting array? — Dusan 5 mins ago
 
user55340
100 element TSP < 1s? Hmm...
 
user55340
Granted, its a [0,1] graph... still.
 
@FriedBitz hmm.... so it's getting at least that far
 
@Ampt I think I found the problem.... I placed it here this time:
if (filesDone == files_count - filesRejected) {
console.log ( 'IF STATEMENT' );
afterAll();
}
and only passed that if statement when I removed the query...
Yeah, tried twice now...
 
what does afterAll() do?
 
7:32 PM
ALongTimeAgoInAGalaxyFarFarAway()
2
 
I dont know really.... :S
Anyone in here knows?
 
wait, you didn't write it?
 
No... :P Thought you knew :P
I used that template I've sent you 3-4 times now
 
user55340
0
Q: I'm a junior-level programmer whose mentor/senior left shortly after I was hired. What can I do to stay sane and keep the code base from imploding?

dylanribbI was hired on to my current position as a junior-level developer with the expectation that I would be working under someone who knows a lot more about the code/systems than I do. The first day that I arrived on the job, I was informed that the senior programmer (my would-be mentor) would be leav...

 
if ALongTimeAgoInAGalaxyFarFarAway()
return of_the_jedi;
 
user55340
7:35 PM
I had to check that it wasn't a 1.5M sloc program or I might have known the guy...
 
user41796
@MichaelT Was he smart enough to change the incriminating details?
 
user41796
@enderland - shall we migrate that junior level programming job Q to TW?
 
user41796
Or would it be closed as a dupe of "find a new job?"
 
user55340
@GlenH7 Its just a "vague resemblance in the icon" (but isn't) and the description of the title. Everything else (other than the high level problem) is wrong. (ie: org structure, languages).
 
user41796
@MichaelT regrettably, it's a common situation in the industry
 
user55340
7:39 PM
@GlenH7 you know, if we keep this up, we might be able to get @enderland to run against us in a mod election here to avoid having everything migrated there...
 
bwahaha
 
user55340
@enderland I'm sure it would make a nice hot question over there.
 
user41796
@MichaelT We just need to edit the question to imply some sort of relationship between the new employee and someone else within the company
 
I'm not sure there is a clear question there other than "help please"
 
@Ampt You figured it out yet?
I'm trying to look it up, but cant find it, even on google
 
user41796
7:42 PM
@MichaelT - yeah, that would probably do it
 
@FriedBitz No lol. I have no clue, and I've got an oscillator that hasn't been oscillating correctly
 
user55340
@Ampt Variables won't. Constants aren't... Oscillators don't?
 
user41796
@Ampt Can't you just reuse the clock signal on the chip?
 
@GlenH7 I don't really see that question as a career advice question
 
user41796
@enderland It would merely increase our rejected migration ratio.
 
7:43 PM
Has anyone in here got a clue what the function afterAll(); does? Its Javascript
 
@GlenH7 Sometimes I startup instantly, other times it take 30 seconds
 
it's..... odd
on the scope the oscillator looks identical both times
 
user41796
@Ampt phase locked by chance? Sounds like maybe it's not locking onto the signal
 
user55340
 
user55340
7:45 PM
> The original Apple II computer's time would drift by several minutes per day. Mike Skroch (Vector Space) produced this 'game port' clock that helped keep time accurate for several years, by pressing the joystick button at a constant 60 Hz.
 
Well, I'm not really sure it's the oscillator anymore
It looks like it's... the code....
 
user41796
@Ampt nah, gotta be the hardware. It's always the hardware
 
@GlenH7 yeah, you know, I think you're right
 
user41796
but that's ~30000 cycles before it's locking in
 
let me go put this on the hardware guy's desk.
@GlenH7 the chip shouldn't start up til it's locked
 
user41796
7:47 PM
You said it was a 1kHz signal, right?
 
and the absolute longest settle time would be 1-2ms
 
What is your goal here? Are you looking for strategies to communicate you need more resources? Ways to mitigate damage when you inevitably are overwhelmed? This is off topic here on Programmers but if it's made a bit more specific what you are trying to do (instead of saying effectively "what to do, help please") it would be a good fit for The Workplace. — enderland 15 secs ago
 
no, its an 8mhz crystal
PLLed up to 32mhz
 
user55340
As an aside, you might find Programmers Chat a more useful resource for discussing this rather than Q&A in comments. — MichaelT 17 secs ago
 
user41796
@Ampt sorry then - you're outside my domain knowledge at this point. Does seem odd
 
7:48 PM
you only need 20 rep on a SE site anywhere to get into chat right? he's got 150ish on SO
 
@GlenH7 I'm sorry too. This is.... odd
 
user55340
@enderland Yep. I checked that first.
 
user55340
(he's got 151 on Ask Different)
 
I didn't have the heart to downvote the poor guy, even if it is off topic
sounds like he's in for a rough spot
 
user55340
I'm not sure about SO since they've got other special chat things.
 
7:49 PM
windbg FTW: It tells me nothing when there's nothing wrong. I hate everything right now.
 
user41796
Seems like this is a bad week for a lot of folk with their work
 
@GlenH7 It's about to be a bad couple of months for me here; huge day coming up and the system is falling down around us.
 
Hello, all.
 
user41796
@JimmyHoffa Tony the Tiger would still say "Grrrrrrrrrrreat!"
 
we can have a party in here
 
user41796
7:51 PM
@dylanribb welcome!
 
@dylanribb can join the party too
 
@GlenH7 Thanks!
@enderland Which party is that?
 
do you guys want this?
4
Q: Project Manager asks for complete 100% confidence everytime committing code

MiroI've got an ongoing relationship with a long term business partner as a consultant where his role is project manager (task manager + direction), and my role is a contracted developer. He has a tendency to micromanage my time with his tasks and oversight, but also has a strong sense of perfection...

 
user41796
@dylanribb - consider putting your resume back out on the market. You're in an almost no-win type situation
 
@GlenH7: I've thought about it. My only concerns is that I've only been here about 6 months, so I'm worried about the whole "job hopping" thing.
concern^
 
7:54 PM
another bright side is I'm basically causing that problem for whoever takes responsibility for my project after I am not responsible for it anymore, so now I can see what to tell them :)
 
user41796
@dylanribb That may be, but as long as you don't have history of repeatedly doing that sort of thing yoou'll be fine
 
and it's not like you don't have a perfectly legitimate excuse
 
@GlenH7: I typically stay between 3-5 years. My last job was a little over year (not a good fit), and now I've been here about 6 months.
@Ampt: Good point.
 
user55340
@enderland I'd be tempted to punt it over here and see if it sticks. Its not bad. Might have @gnat or someone tweak the wording to try to avoid primary opinion type closes.
 
user41796
@dylanribb So you're right at the boundary. 3 in a row would be worrisome. But you're better off bailing as soon as you realize it's going to be a cluster of an experience
 
7:57 PM
@dylanribb or you could try and ride it out, if the reward is worth it
but I could see this being a very very tough situation with very low odds of success
 
user41796
That's a good point. If the CFO is lenient and they're throwing mad stacks of cash at you ... Worth considering
 
You should just quit...
 
sorry too much time at TWP :p
 
Ampt, I found out that afterAll()
 
7:59 PM
@Ampt: I'm assessing that right now. I didn't realize how effed I was until I really got my head in the code base. Now it's a bit of a mad scramble trying to get caught up.
 
It's: function afterAll() {
return opts.afterAll();
}
 
user41796
@Chad We asked @enderland if we should migrate to TW...
 
@FriedBitz what does opts.afterAll() do?
 
@GlenH7: It's a fairly small company that's still recovering from hard economic times. I took the job because it seemed like a good opportunity for someone with little experience. Though I was also expecting to have a mentor, so...
 

« first day (1279 days earlier)      last day (3721 days later) »