« first day (571 days earlier)      last day (4368 days later) » 

user895378
3:00 PM
@CharlesSprayberry yeah, it drives me nuts when people assert that code is "good" or "lightweight" because they've squeezed everything into a single file or distilled all the operations into some predefined micro-optimization boundary.
 
user895378
Because inevitably it leads to people saying, "oh, those are desirable attributes, I should plan my project around a maximum of 6 includes and it will be super efficient."
 
user895378
At least my penchant for micro-optimization manifests after the project is complete and I know where the bottlenecks exist :)
 
3:17 PM
hi all. anyone proficient in xpath? SO doesn't appear to have a chat room for it
@rdlowrey b/c stakeholders fail to understand agile processes. as developers, it falls on us to explain "just in time" development
they tend to think in terms of "how can i cover all bases?" rather than "what do i need now to solve this problem?"
and what i need now is help w/ xpath. lolol
 
to get an answer, you first need to ask :)
 
point taken. how do i code multiple values for one XPath attribute?
for instance: /pidx:Invoice/pidx:InvoiceProperties/pidx:PartnerInformation/pidx:PartnerIdentif‌​ier[@partnerIdentifierIndicator=DunsNumber']. partnerIdentifierIndicator can be either DunsNumber or Duns+4Number.
same attribute, different values
i know. this isn't xpath chat. so "mea culpa"
 
Anyone have some freeware or open source suggestions for a file uploader with these attributes?

Must have drag and drop
Must do multiple files and handle folder uploads
Must allow custom folder renaming
I'd do it myself but A) I've read PHP can't handle all of these at once B) I'd probably have to learn a new coding language and I don't think thats going to be as quick as I need C) I've read that though Flash is perfect for this it has hangups on being cross browser
 
Sam
JS for 1, PHP for 2/3
 
user895378
What you read was wrong: PHP (and any other server-side language) in concert with a client-side scripting language (javascript) can handle what you want. can Don't use flash. It sucks and it's dying out. Use open technologies.
 
3:31 PM
Well I know how to handle the renaming via PHP and single file uploads, but I'm not sure how it would be possible to do Drag and Drop file uploads using JS and PHP
 
user895378
Ajax.
 
I mean the actual functionality of Drag and Drop and Folders specifically, I know I would have to use Ajax if thats possible, how would Drag and Drop be handled though with folders?
 
@Event_Horizon On a sidenote: 'drag and drop' must be supported by the browser as well.
 
I thought IE9-Opera-FF-Safari supported drag and drop now?
 
user895378
If you don't even know where to start I would definitely suggest using a third-party lib. I can't offer any suggestions or vouch for the efficacy of any existing packages, though.
 
3:34 PM
When it comes to Drag and Dropping folders, no I'm not sure where to start, seems above my head at my current level, maybe not but I haven't found anything suggesting that its easy.
 
user895378
@Event_Horizon Try googling "Ajax file manager"
 
user895378
@RepWhoringPeeHaa Do you want -1 for Peer Pressure or am I allowed to upvote? :)
 
@rdlowrey I think it deserves an upvote. :)
 
user895378
so it does.
 
3:41 PM
@RepWhoringPeeHaa Ok, that is awesome. Thank you so very much.
 
user895378
In the same measure you give, so also shall you receive.
 
user895378
Bad questions deserve bad answers and vice versa.
 
user895378
@RepWhoringPeeHaa Nice. Already +5 ... taking Rep Whoring to new heights today! :)
 
u mean, GIGO? garbage in, garbage out? ;)
 
user895378
3:43 PM
GIGO ... I like that
 
@MikeS wow. I might just use that one
 
k, it's a GPL license. just be sure to attribute me. lmao.
 
I'm trying to delete a table row PHP says "Row deleted." but doesn't actually delete the row. pastie.org/3884870
 
@RepWhoringPeeHaa I tried the same, but it failed :( stackoverflow.com/posts/10465436/revisions
@RepWhoringPeeHaa It was Actually it should. only :P
 
:)
damn you minitech :P
 
3:47 PM
rlemon.github.com/lememe meme like a bauce
2
 
@rlemon dat font
 
@rlemon cool. did you find a suitable solution for saving the images for people?
 
imgur
 
That's why it's that slow D:
 
I just need to figure out how to remember what has been generated... i'll look into it's api a bit more
@Donut hehe yea.. github hosted doesn't allow for much server support
 
3:51 PM
@rlemon Also Do all the things would be cool
 
huh
instead of Generate?
 
No, meme
 
ohh you want the X all of the Y meme included in the list??
 
I put an X in your Y so you could X while you X!
 
I've got a folder with like ~150 meme base images... working on organizing them into categories then i'll include them.
the ones up there were just ones I wanted to use in the mean time.
 
3:53 PM
Okay.
 
hi all
can anybody help me with error
Deprecated: Function session_is_registered() is deprecated in C:\wamp\www\Edit_project\admin\login_success.php on
 
@rdlowrey can I make you a meme
"Too tanned guy"
 
user895378
rofl
 
user895378
knock yourself out
 
sweet
 
user895378
3:55 PM
How about, "Tanned Brogrammer Deluxe"
 
<?php
session_start();
if(!session_is_registered('myusername')){
header("location:main_login.php");
}
include("header/connection.php");
?>
 
@james it means you shouldn't use session_is_registered() function anymore
 
I would need to photoshop out the background and put you sitting at a cubicle.
with the glasses and vneck
^ Tanned Brogrammer Deluxe
 
@EventHorizon then what would me the alternate
 
@james change that !session_is_registered('myusername') to !$_SESSION['myusername']
 
3:57 PM
You ever have people ignored and forget why you ignored them?
 
you may need to do it with parentheses too !($SESSION['myusername'])
 
ProTip: Search for the last message you sent to them... commence the re-Rage
 
*$_SESSION
 
@rlemon Do you think my avatar has any chance to level up to meme?
(Actually, it is meme)
 
nahhh more of a RAGE comic
 
3:59 PM
what function do I use to join 2 jpgs using php(gdlibrary probably). Just need the right thing and I will do the rest of the googling.
 
@Donut Only if you force it kekeke
 
|@EventHorizon thanks it works..:)
 
@Kishor GD
or client side... CANVAS
 
@james NP
 
4:00 PM
@Kishor this
 
rlemon - Yeah, I knew. Just wanted to know the right fucntion to join if you knew it.
@Donut - Already on it :)
 
merge, meaning concat? overlay?
saturation?
merge is ambiguous
 
Noob question: Whats the difference between Stack Overflow and Programmers?
 
Programmers.stackexchange is for proffesionals.
 
4:02 PM
seems like thats what I was looking for @Donut
 
Less dups imho
@Kishor Seems like I guessed it right.
 
@Event_Horizon I like to think of it as Programmers is for whiteboard or design problems whereas Stack Overflow is for actionable problems involving code.
 
@rlemon - Like, Join one image below the other. Join as in perfectly join lol. Not overlaying. Width of both images would be the same.
 
@CharlesSprayberry Ah, I see, so more for things like how a database for something should be setup (this table-> this table2 etc)
Non-code specific etc
 
user895378
0
A: PHP Programming Online Education

rdlowrey$f = function() { return "php.net/manual" === "All you need"; }; var_dump($f); // true But seriously: php.net/manual

 
user895378
4:06 PM
mission accomplished: now I have enough rep to downvote on programmers.stackexchange :)
 
Why there are no easy non-duplicate without-longcode questions about PHP on SO today? :/
 
user895378
I find that's the case most days ...
 
sounds like a noobish question. But where is the orgin point of an image that we calculate x and y axis from? Which corner of the image?
 
upper left
at least in PHP GD library
I believe
 
4:11 PM
You good in GD library stuff?
 
No, I just know from experience with a Graphing Library I use for PHP that utilizes GD
pChart
 
Ah, ok cool.
 
user895378
4:31 PM
user image
2
 
Tek
lol
Hmm, no responses so I'll ask again...

What would you all recommend for a VPS service?
 
user895378
@rlemon see above :)
 
@Tek Arvixe
 
@rdlowrey nice
 
Tek
@hanleyhansen Thanks, keep 'em comin' : )
 
4:34 PM
I need to change the font and add line wrapping.
 
@rdlowrey challenge accepted:
 
user895378
@RepWhoringPeeHaa lol
 
Tek
@RepWhoringPeeHaa blocked : (
 
user895378
@rlemon Anything that shaves off the 60 seconds I'd otherwise spend in photoshop is awesome IMHO. Update me when you're finished with it
 
4:36 PM
@rdlowrey lol, very nice
 
@RepWhoringPeeHaa Looking at that first youtube link quickly, I thought you were linking to something about the Kardashians
 
user895378
@orourkek Kim Kardashian's native language is leet-speak
 
@rdlowrey That explains a lot, but also raises more questions
 
user895378
5:01 PM
I just couldn't help myself ...
 
user895378
0
A: Stop script execution upon notice/warning

rdlowreyYes, it is possible. This question speaks to the more general issue of how to handle errors in PHP. You should define and register a custom error handler using set_error_handlerdocs to customize handling for PHP errors. IMHO it's best to throw an exception on any PHP error and use try/catch bloc...

 
@rdlowrey I would hate to work with people like that
 
user895378
I'm sure someone will come along and edit the image out
 
True, they're like hawks
 
5:04 PM
yes. freedom. cya later
 
user895378
later
 
@RepWhoringPeeHaa bye
 
how can i setup a base class so that i can access any sub classes through the base class? example: $base->run('subclass_name', 'subclass_method_name'); which would really fire off, $subclass_name->subclass_method_name();
 
@rdlowrey Haha :D
 
i already instantiated my sub classes inside my base class. i assigned them like: $this->subclass_name = new subclass_name;
 
5:09 PM
@MichaelEcklund That schema doesn't sound very logical
 
forkortelse
 
i want to run all my commands through a controlling class. i tell the base what to do, and the base tells the subclasses what to do.
that seems very organized to me. one central unit for issuing commands. the unit doesnt actually carryout with the commands, the subclasses do.
depending on the command from the central unit, it will fire off a request to the appropriate subclass which actually performs the action requested.
 
If you're passing a string of the classname, and want to access the member object dynamically, you'd probably have to use variable variables
Which is never pretty :{
 
why isn't it pretty?
 
@MichaelEcklund Variable variables just add another layer of complexity that you have to keep track of. Sometimes they are needed but it's still another step that your brain has to keep track of when reading the code.
 
5:16 PM
i'm not trying to be a stick in the mud, i just feel like this is a good idea for organizational purposes. as an avid php learner, i want to know why this is a bad approach.
 
user895378
@MichaelEcklund post a link to code so people can take a look -- you'll get better feedback
 
But only if your this @rdlowrey tan.
 
well, i already made a post. no code, but just a couple scenarios to paint the question in mind. stackoverflow.com/questions/10520553/…
 
user895378
Of course when you're tan all of your code is stellar. Every design decision is legit.
 
5:21 PM
@rdlowrey So my being of Irish descent will limit my coding abilities? :[
 
@orourkek Yup, you've peeked unless you hit a tanning salon right away!
 
user895378
@orourkek You'll just have to work a bit harder than sunkissed coders of the same ability level.
 
user895378
Them's the breaks, kid.
 
@MichaelEcklund The reason I said it didn't seem logical is the idea that a parent class will access methods/vars of children class(es), which is not really a great idea
@rdlowrey Spray tan incoming!
 
I like the phrase Sunglazed for a spray tan.
 
5:24 PM
the vars would be set to private in the sub classes. in order for the parent class to access the private vars, it would need to run the subclass method, which has explicit access to that private var.
 
@EventHorizon "Sunglazed"... :D
 
Mmmmm donuts
breaks code DOH!
 
let's say the parent wanted to know what book child_a was reading. $parent->run('child_a', 'get_book'); which would equate to $child_a->get_book();
 
@MichaelEcklund It might make sense when abstracted to an anecdote, but the principles of OOP don't exactly "allow" that sort of thing to happen
Children are meant to extend the parent, adding more methods/vars/options/etc
 
When using BETWEEN in mysql on a DATETIME field, how do I get it to select between DATETIMES with the same DAYS? I'm having quite an issue getting this to work
 
5:31 PM
@EventHorizon ? DATETIME stores the time as well, I'm not sure I understand
 
Well I have BETWEEN working if they are different dates, but if they are the same date it doesn't select everything within the date
 
what values are you using for the time portion of the stamp?
00:00:00 -> 23:59:59 ?
 
or better yet, 2012-01-01 00:00:00 -> 2012-01-02 00:00:00
one day later, @00:00:00
 
yeah probably should do that
 
5:33 PM
to include the last second too :]
 
I gotta debug my php somethings going on
 
call DumpRegs
^my favorite line of code ever
 
Ah I see, its something to do with the SQL actually
I debugged by echoing my POST values and they looked fine
so its just my SQL acting weird
THIS: SELECT * FROM clocked WHERE userid=2 AND datein BETWEEN '2012-05-09 01:44:30' AND '2012-05-09 01:44:35'; Returns nothing even though those 2 values exist in my table
 
the DATETIMEs?
 
yesah
yeah*
 
5:40 PM
are there entries that are actually between those values though? BETWEEN is non-inclusive
 
@orourkek well, okay. think about it like a football team. you have your coach on the sidelines, telling your quarterback what to do. the quarterback then tells the team in the huddle what to do. the huddle then breaks up, and each of the team members carry on with their position roles.
 
But there's no reason for a player to extend a coach, speaking in terms of classes
 
so the coach isnt actually doing anything, other than telling everyone else what to do.
 
that sounds more like a controller than just a class
 
even if I up the between time ABOVE where its at on the second value it doesn't return anything
AH
found it
24 vs 12 hour dates
 
5:42 PM
it's always the little things....
 
agreed
 
well what if a player has a higher rank than the rest of the players? for example, the quarterback. the rest of the players on the team rely on what the quarterback tells them what to do. while the quarterback relies on what the coach tells him what to do.
 
hmmm this is wrong can anyone help? preg_replace('~[^0-9\.]~','',$val2);
 
@MichaelEcklund It's all very possible, but not considered best practice(s) for OOP.
 
i don't necessarily care about best practice in this situation. i'm just looking at being able to control multiple subclasses from a master class. but i'm unsure how.
 
5:46 PM
Wooh it works!
 
people who are interested in politics , might find this interesting
 
@MichaelEcklund If you ever find the absolute need for a parent class to access methods from a child class, there's something flawed with the abstraction or inheritance pattern in general
@MichaelEcklund Well, the "answer" is with variable variables
or a complete rewrite with more sensical abstraction and inheritance
 
@MichaelEcklund , no , each "Entity" has a role .. it does not inherit them
 
@tereško Nice speech he gave there
too bad it'll fall on deaf ears
 
@MichaelEcklund , favor object composition over class inheritance
 
5:59 PM
@MichaelEcklund My code may not be superb but example:Class Bike{ $wheels=2; $breaks=true;$riders=1;$seats=1;} Class Tandem extends Bike {$this->riders=2;$this->seats=2;} Classes are supposed to be like Object Identification, variables/properties are properties/attributes you think Objects have,extensions of Objects are usually just different types of the main object, and methods/functions are the things that a bike or its different types can do,IE speed of the bike based on type of tires etc.
The Tandem bike inherits the Breaks and the Wheels, so everytime you call a Tandem Bike it already has those but it just changes riders and seats to 2
you would put the Tandem code within a __constructor but this was just an example of how Classes should be used
 
Does anyone here use Aptana Studio? I'm confused about the project files. Is it possible to link a project to a directory, but link it so that any modifications made to the project (eg: Add a folder) are also reflected in the filesystem? I know this is possible in NetBeans, but I can't seem to get it to work in Aptana.
 
yeah i get it
thanks for the example
 
@Event_Horizon , that is wrong
@Event_Horizon and that is wrong
 
@tereško Really why is that?
 
can anyone gift me admin panel of his/her project???
 
6:03 PM
me
 
@gosto thanks
mushahidh224@gmail.com
 
@Event_Horizon , stop misinforming people .. if you want to help other , then at first learn something
 
this my password > you_are_funny and this my username > comeback_tomoorow
 
@tereško if you explained what was wrong that would go a long way to help others learn instead of just stating wrong over and over
 
6:05 PM
@james i give it here , no need email :)
 
thanks again
 
@james and go to > this_place.com
@james you find all my works :)
 
i just want to be able to send a request to the parent class. the request will then be directed to the proper subclass for handling the request. the parent class is just a central unit, for taking requests and telling its respective child which request it needs to take care of. for example, i might have a subclass that strictly handles front-end data within my website, where another subclass that strictly handles back-end data within my website.
 
@MichaelEcklund The other players are not 'children' of the quaterback, they listen to him. They implement the ListenToQuarterback interface.
 
@gosto no such a URL exists
 
6:08 PM
sounds like i need an understanding of interface design?
 
@MichaelEcklund No one is telling you it's impossible. I've even told you how to do what you're asking. But we can't advise you to do something that goes against best practices....
 
@james u really think it exists :)
 
Not at all
 
u nice
 
@MichaelEcklund yup
 
6:09 PM
@james No one here is likely to "gift" code, if that's what you're after
 
@Event_Horizon , classes are NOT object identifications , you do not understand the difference between "extension" and "extended class" , tandem bike racing is completely different from ordinary bikes , you cannot use bike in all instance when you use tandem bike (or vice versa) , thus , they do not inherit one from another , because it is breaking LSP
 
@vascowhite Do you have any good examples, or links for understanding interface design, that might have been good for you once upon a time?
 
@james i know someone in the street he give his login panel for free to everyone but i dont know him personaly , i have his contact , hahahahah@hotmail.com
 
@gosto i just need a template
 
@MichaelEcklund What you are looking for are articles on the observer pattern, google will find plenty. I have afew books on design patterns, but google should do.
 
6:12 PM
wich template?
 
@gosto template of admin panel for my career development site
 
You want to be gifted code for a career development website? Oh the irony...
 
@james try this maybe it helps you speckyboy.com/2010/10/05/…
 
@orourkek i think you are the right person to gift me..:P
@gosto i already done that
 
6:15 PM
@james they not good ?
 
@gosto i need a simple one these all are too complex
 
@james Then make your own?
 
Sam
@james what does 'gift me' mean?
 
@Sam google it..:P
 
@tereško Ok I used the wrong wording for how to explain a class. So,what, I used the wrong wording when explaining an "extended class" by using "extension"? By "extension" what are you talking about? So your saying that because you can't use Tandem in every instance of Bike AND vice versa it doesn't work? I get having a possible issue with the LSP but the other stuff you seemed to be splitting hairs
 
6:17 PM
@orourkek trying but i dont have a creative mind
:(
 
@james So you "aren't creative enough" (too lazy) to make your own, and when someone gives you a list of 10 free ones you say they're "too complex". Do you realize how annoying doing crap like that is?
 
Sam
@james you mean this 'http://www.giftme.com/'?
 
@orourkek sorry..:(
 
@james u can download this simple admin here extabit.com/file/2cs91ajfj4y1v
 
6:20 PM
@Sam exactly you got it right..:)
 
Sam
I sorta understand what it does; but what do you mean by it? what kind of gift are you trying to receive?
 
@vascowhite thanks.
 
@gosto i am not rich enough..:(
 
its free
@james look where it saids this at the end>>> I have no money, I want download for free
 
6:24 PM
@sam if you gift me your admin panel i will pray for you
 
...
 
@gosto send me the link please..:P
 
Sam
@james gift you my admin panel? what 'admin panel'?
 
6:25 PM
@james look up
 
@sam admin panel template of your site you have made so far
 
Sam
you know you can get good templates from themeforest.net or templatemonster.com
 
6:28 PM
This whole "gift me admin panel" thing is like a really bad car crash now, can't look away even if I wanted to
 
@Sam can i take you in our private room sam :)!
 
Sam
hope there'll be no touching involved....:P
 
@Sam hope so :)
 
Sam
ok
 
6:30 PM
@gosto don't discuss me too
:P
 
@Sam im comming in 15 minutes
 
@sam i need admin panel of your site...
full code gift
hahahhaha
 
Sam
is your boss around? @james; he won't like you horseplaying around
 
@Sam no no..dont worry..:P
 
@vascowhite which sections would you recommend i read? or should i just hit it from top to bottom?
 
6:37 PM
How about the one about observer pattern? You should read the first bit that tells you what design patterns are though.
 
I just dip into it as I need to.
 
Rob
6:52 PM
Hi all.
Does anyone have a good knowledge of google checkout?
 
Tek
What do you guys recommend for domain name registrations?
 
theplanet
 
Rob
Could anyone take a look at my question please? stackoverflow.com/questions/10521864/…
 
@Sam came
@james have you downloaded it ?
@james its css and psd
 

« first day (571 days earlier)      last day (4368 days later) »