AT Design

Boulder, CO

adam-taylor.net

Age: 27

Feb
23
awarded Notable Question
Feb
13
awarded Popular Question
Feb
11
revised Using HTML5 History API to Restore Back-Button Functionality to AJAX app
deleted 50 characters in body
Feb
11
asked Using HTML5 History API to Restore Back-Button Functionality to AJAX app
Sep
16
asked Re-sorting an array without scrambling the original sort
Aug
29
accepted Sorting array based on custom priority of one attribute
Aug
29
comment Sorting array based on custom priority of one attribute
I will need to do another round of this and order the employees within each subsection according to either a priority set in the JSON or by another separate object. Not sure if that warrants another question on stack (if I get stuck) or if I can roll it into this question?
Aug
28
comment Sorting array based on custom priority of one attribute
Fixing the order of parameters in inArray did the trick for separating my sub-sections by priority set in my subdeptorder object. THANKS! For some reason I still need to wrap the return inside grep with a conditional in order to return only employees whose department is the same as the department of the employee selected. But this gets me by!
Aug
28
comment Sorting array based on custom priority of one attribute
I can tell "order" is right, because I can see it in log.. but the results array is not being sorted according this. It's still printing them according to the alphabetical order of the employees last name.
Aug
28
revised Sorting array based on custom priority of one attribute
deleted 80 characters in body
Aug
28
comment Sorting array based on custom priority of one attribute
I only want to return employee.DEPT = dept if they match, so I wrapped that in a conditional. But this is still printing them in alphabetical order after the first employee. I can't figure out how it's picking the first employee just yet, with the above code. I set up my deptorder array (calling it deptorder now since it assigns dept and subdept order), it just doesn't seem to be using it yet. (also, comma needed after employee.TITLE)
Aug
28
revised Sorting array based on custom priority of one attribute
edited body
Aug
28
comment Sorting array based on custom priority of one attribute
Thanks. I should mention this will be my first time using .sort at all, so any addl. guidance is appreciated!
Aug
28
asked Sorting array based on custom priority of one attribute
Feb
5
awarded Popular Question
Jan
25
accepted Cherrypy only has port issue when handling file upload?
Jan
23
comment Cherrypy only has port issue when handling file upload?
I assume what you've added above (daemonizer) is a better solution than python imageproc.py& -- but could you tell me why? I would still need to run the daemonizer script after reboot? I assume I need to add the config file to quickstart, and would this also mean that I need to remove the quickstart call from my app? And does this mean I wouldn't have to execute my app imageproc.py anymore? Sorry I'm a beginner with Python/Cherrypy..
Jan
23
answered Cherrypy only has port issue when handling file upload?
Jan
23
revised Cherrypy only has port issue when handling file upload?
added 318 characters in body
Jan
23
comment Cherrypy only has port issue when handling file upload?
Thanks Sylvain. I have some new information, which lead me to believe it isn't the file size. My app has a quickstart call at the end, so I now believe the proper way to start cherrypy is to call the app with python, e.g. python imageproc.py, which starts the server, and when I do it this way.. I can upload images to my design tool. However, closing the terminal window kills the process. So I believe I'm looking for the way to start cherrypy as a daemon through imageproc? Thanks again for your response
1 2 3 4 5