« first day (1093 days earlier)      last day (3871 days later) » 

12:12 AM
if( ! is_bool( $user_question_grade ) && intval( $user_question_grade ) == 0 ) {
Is it possible to do = or less then 0 in this? Or do I need to make another if statement?
For some reason when students don't put an answer it doesn't get a value of 0 or anything else
Its just blank...
 
@BrandonGelfand that if statement should be if ( $user_question_grade === 0 )
IMHO
 
This might sound stupid but whats the difference?...
 
I am assuming that the $user_question_grade can be either number or boolean .. right ?
the === check for both value and type, while == compares typecased value
 
yes
so if nothing is there, it will still perform the action?
 
what do you mean by "nothing" ?
 
12:18 AM
If its the correct answer its has a value of 1 or more
If it is wrong it is marked with the value of 0
but these kids are being a pain in the ass and not putting anything, skipping the problem, so it is being marked with no value
and when that happens everything gets messed up, it won't auto grade and has the teacher manually grade it when they have not set it to that
 
well .. then you will have to learn how to handle forms in php
I have no intention to do handholding at 3AM
 
I didn't build this things, my teacher is asking me to take a look at it
 
hmm
 
Can you just give me an idea as to how I can handle it when there is no value ?
Should I just add another else that will put a 0 for anything that isn't 0 or 1+ ?
I think thats my best option here...
 
I would just do casting then
 
12:22 AM
!is_bool() !? So it it's not true or false? That's a bit strange no?
 
@Fabien There are true or false question types
 
What does it have to be?
 
If it doesn't have a value of 1 or more it needs to be marked as 0
 
why the fuck did multiple update services decide to kick of now ?!?
lately I have started to think that my next laptop will NOT have windows
 
If ur not a mac guy, blackbox linux is nice
 
12:29 AM
{foreach key=num from=$tld item=t}
//HTML CODE HERE
{/foreach}
I'm trying to make it loop 3 times only
 
I use both
 
on google found answers only when it was foreach { code }
but mine is {foreach}{/foreach} :p
 
@BrandonGelfand I have been using FreeBSD since 5.2 beta was around. I think I will be just fine.
 
How do I limit it to show only 3 times?
 
@tereško Just a suggestion if your not liking windows...
 
12:31 AM
hi
 
That post is missing the question part
 
 
1 hour later…
1:48 AM
@Eugene I'm unsure what the question is...
 
> But I'm not sure how to group them under one property as array if property with that name could not be assoiciated with a tag inside XM
it's a bit vague..
@tereško i turn auto update off all the time. i just let mr win7 notify me XP
 
well .. chrome's updater does not play nice
 
@tereško i forgot who's the one here who hates chrome. is it @Starsong?
btw, i ended up preparing my data before sending to the template.. seems cleaner that way.
 
I don't like it, but as a responsible web developer, I have all the major browsers
 
@tereško i have ff,chrome,ie,safari and opera all on my taskbar shortcuts. ^_^
but i only use ff and chrome all the time. ff for the dev testing, chrome for SO chat
 
2:00 AM
I have only Opera in taskbar, and it has this nice feature that in the context menu for a website it has "open in different browser" option
 
@tereško i didn't know that.. is that for real? (or am i gullible)
 
nice.
 
2:17 AM
well .. the list is bugged a bit. I have been using this OS installation for almost more then a year now and havea bad habit of installing different stuff all the time. Hell, I currently have two different "strains" of opera.
 
2:27 AM
hm, that's pretty interesting. I'd never think a browser would implement such a thing.
how is everyone doing tonight?
 
3:22 AM
Hey guys, having small issue, can't find the answer. I have ampersand symbol "&" in database, and I need it to display as "&" in a textarea. However, when I do htmlentities("&"); it still outputs "&" in the textarea.. what to do?
 
 
1 hour later…
4:25 AM
@darius do htmlentities twice
 
Hi
First time using chat
 
wat
ALLOR
 
@wat Thank you for informing us on how small minded and stupid you are
@Omiga welcome to chat :)
 
Hello everyone!
May I ask, what's the best public service website that you people use?
Or you find helpful..
 
4:40 AM
@Orangepill thanks, that worked.
 
@darius the actual markup will show & but it will behave the way you want it to.
 
Mine is actually showing just & so I'm good
 
I mean in the real world i.e. where you live... Like the website that you use to get the information regarding products etc...
 
hi very good morning all :)
 
Hello @RakeshShetty :)
 
4:45 AM
Good morning
 
can any help me on jQuery animate and jQuery draggable function ....actually I am doing this for the first time
1
Q: How to pull a chain using jQuery draggable event without effecting the pendulum movement

Rakesh ShettyI am developing a website with some animation on it.I am doing this using jQuery animate function.There is a image of flush toilet and if someone drag/pull the chain it should be flushed. Please refer below image Chain is continously moving which working fine by using jQuery Pendulum. Now what...

anyone ?
 
You might have more luck with someone in that javascript rooms
 
can you please give me the link of that room @Orangepill
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
thanks @Orangepill ill try my luck there
 
4:55 AM
@Orangepill it will, in most likeliness, be widely overlooked, or mocked for bad code.
 
@JanDvorak Ohh so it's kinda like here :)
 
@Orangepill OK, the code in the question is above average, but there's still one thing I've noticed :-)
        setInterval(function(){$('.flush_handle').removeClass('flush_handle1')}, 6000);
        setInterval(function(){$('#pendulum-child').removeClass('pull_chain1')}, 6000);
@RakeshShetty why not use a single interval here?
not to mention the logic is weird
 
@RakeshShetty If I understand correctly you basically want to emuldate a click when someone drags down?
 
i can but i dont want to use the above code since I want to change my code when someone drag/pull the chain...so the above code will be change...
@Orangepill yes somewhat but when someone drag down it should go smoothly
I know this logic will not work....
 
@RakeshShetty Ohh so the the challenge is implementing the drag without screwing up the pendulum effect, right?
 
5:03 AM
yup
 
somehow I feel like it's going to be a lot of work rather than a mental challenge. SO works best for the latter.
 
@JanDvorak dont see the above code.... what logic should I apply to implement this task ?
 
Stopping the effect should be easy ... just call $('#pendulum-parent').stop();
 
ok @Orangepill thanks :) but now how to drag/pull the chain smoothly without effecting the position of the chain with that flush
 
5:19 AM
Your drag callback will have to manipulate the position, rotation and scale of the chain segments while the handle is being pulled...Not going to be a fun problem to solve by any stretch of the imagination.
Maybe look into some of the other physic's engines instead of the pendulum plugin to implement the effect.
 
yeah :) @Orangepill ill try
 
5:49 AM
Hey,
 
@Orangepill im using dragable function to drag the chain :-
$('#pendulum-child').draggable(
{
axis: 'y',
revert: 'invalid'
}

);
and i want to stop the pendulum effect when someone drag the chain
where to write $('#pendulum-parent').stop(); ?
 
6:15 AM
I have two PHP files located on a server (nickrubin.byethost14.com), example.php and crpapi.php. The first file, example.php, begins with "require_once('crpapi.php');". Example.php is working fine, but it's not including crpapi.php for some reason. Why?
 
@NickRubin Is there any error displayed on the console?
 
I'm using AJAX to POST an id number to example.php, which then passes it through crpapi.php and echoes the results. The example.php file is echoing stuff back, but for some reason it can't access crpapi.php.
 
@NickRubin That doesn't answer my question... What browser are you using?
 
Safari - it works on when I run the files on a local server and use localhost, but i'm just not sure why it's not working on my hosted server.
 
6:31 AM
You need to get firefox with firebug <-- Ive never used Safari to debug anything. It sounds like a problem with either magic quotes or you haven't got the correct directory declared in your script.
 
6:41 AM
its so dead in here. XD
 
7:13 AM
Why are now so less peole in this room… usually there are over 30 in the avatar list on the right?
 
7:28 AM
Its Saturday. Nobody is in the office.
 
7:54 AM
Hello
Do you see something bad?

http://pastebin.com/wuz0rVNS

I don't have result
 
user895378
<--drinking too much lately ★★★★★
 
@rdlowrey You and all hicks :P
 
8:14 AM
@Cool2beblue well… no… we're at home… on Sundays I thought we should have more time for our hobbys… so I'd expect more people here :-)
 
moin
my kid broken a 50 inch plasma screen last night ...
threw a little metal car at it ... big fucking crack down the screen and it's gone white ...
grrrrr
 
@JoeWatkins you're (not) sounding happy…
 
it was more than a thousand pounds ...
 
@JoeWatkins how old is (s)he?
 
4
it's not his fault ...
he didn't throw it on purpose at the television
you know the cars you pull backwards on the floor and they move along on their own, he just got over excited and let the thing go at the wrong time and it hit the screen ... he cried for hours, I think he's more upset than me ...
 
8:22 AM
@JoeWatkins huh? the television was on the floor? not hanging somewhere on the wall or similar?
 
no he was on the floor, the tele is on a stand that's only a foot off the floor ...
the thing wieghs a tonne and a half, so never wall mounted it ...
 
@JoeWatkins so much :o
 
it wouldn't be much higher up if it were wall mounted ...
I guess better look for a new tv ...
guess a smaller one that can be wall mounted
still .... grrrrr
 
8:42 AM
ouch
From a design perspective. Why are the most popular sites the worst looking?
Facebook? Stackoverflow? Amazon?
So much blue. I like blue. But blue is so common :(
And lack of textures...
blue and red every bran logo :(
Its all the same :(
 
you have blue in your name
you cannot very well sit there with blue in your name and complain that someone is using too much blue ...
 
@JoeWatkins LOL> Hah! You have a point there. :)
 
why do we so willingly engage in obviously illogical activities, follow obviously illogical trains of thought ...
 
@JoeWatkins Because we are human.
Hah! We should have been in the Javascript forum. Would have had a bot say that.
 
to some minds that might sound profound, to mine it sounds stupid ... you just said "Because orange" you explained absolutely nothing at all ...
@NikiC
your ast parser idea
would this allow extensions to introduce language changes ?
 
8:55 AM
@JoeWatkins Its obvious, doesn't need an answer. -Edit Doesnt need an explanation.
 
@Cool2beblue sorry not in a great mood ... don't mean to be a shit ... I'm back to think about programming ... I'll just get on with it ...
it could be taken as a serious question ... even a fruitful area of research :)
we do do that ...
 
@JoeWatkins okay
 
@Cool2beblue Maybe all the big sites can perform large scale usability studies and it turns out that on average people like blue a lot? Sounds very plausible to me ;)
 
isn't psychology the study of why we behave illogically ...
 
@NikiC Yeah, blue doesn't distract from content.
 
8:59 AM
if we did behave logically surely psychology wouldn't be needed because logic would explain it ...
 
@JoeWatkins Nope. Unless it's implemented with a manually written parser, in which case extension might be possible. But that sounds like a lot of effort for PHP's size of grammar ^^
 
doing it with the current parser is out of the question ?
 
@JoeWatkins Well, psychology is just applied biology is just applied chemistry is just applied physics is just applied mathematics is just applied logic ;)
@JoeWatkins can't really dynamically extend a compile-time generated parser
 
psychology is not a physical science in the same way as the other three mentioned, it's not really the same, it's the study of behaviour, behaviour which only requires studying because logic doesn't explain it ...
I didn't think so ...
 
of course you could hook in your own parser
i.e. just copy the grammar, add your stuff and generate your own
 
9:01 AM
what?
 
but you'd have to keep up with upstream grammar changes...
 
Danger: You are using an obsolete database API and should use a modern replacement. You are also vulnerable to SQL injection attacks that a modern API would make it easier to defend yourself from. — Quentin 7 mins ago
 
@JoeWatkins in the ext, overwrite compile_file with a custom parser with additional grammar rules, if what I mean ;)
 
9:02 AM
stackoverflow.com/questions/19343060/… Do you have any ideas guys? :D
 
that doesn't sound that hard ... am I underestimating it ?? I tend to do that ...
 
@TomášAresakMalčánek With that formatting and indentation, very unlikely
@JoeWatkins implementation-wise maybe not so hard, but maintainance-wise...
 
so long as your changes weren't in conflict though
keeping in sync with upstream doesn't actually require work does it ..
it looks like it might require quite a lot of the php source code to make happen tho
 
@JoeWatkins also, how will you integrate such exts?
 
is that what you mean ?
 
9:07 AM
I mean, say you have one ext for anon classes and another one for nested ones - you couldn't use both at the same time with that method ;)
 
no but they could be one couldn't they ??
 
@JoeWatkins yes, just saying that this doesn't scale past a single syntax change (or a set of bundled changes by one person)
 
it could include others in the future so long as they didn't conflict ...
 
@JoeWatkins how?
 
put in a pr?
if you get rejected from the core
there could be another route ...
 
9:09 AM
ah, you mean one extension for all the features ^^
 
ppl want to try this stuff ...
yeah ...
 
@JoeWatkins likely better to use a patch for this than an ext
 
ppl are still scared of patch
 
much easier and about the same maintenance issues
 
but in the age of git, it's no bother to install an extension ...
 
9:11 AM
@JoeWatkins as long as you don't use pecl to do it and you run on unix, yes ^^
 
windows has phpize now ... nobody has compilers, but we're getting there ...
 
s/unix/non-windows
 
I find it hard to take people seriously who still use windows tbh lol
 
you don't deploy there whatever, unless you're batshit crazy ...
 
9:13 AM
@ComFreek haha
 
it's an interesting idea but I never intended to put so much damn effort into something that should be simple ...
and I thought it to be impossible actually ...
it's a bunch of hassle, but not impossible ...
 
@NikiC ?
 
anyone familiar with ubuntu bash and mysql stackoverflow.com/questions/19343555/…
 
it would maybe work btter the other way round, if we had a limbo ext, and before you went to rfc for the core you got your implementation out there and those that are interested can load limbo and test out your implementation without needing to patch or compile or anything like that ...
not for simple stuff, but for the bigger ideas like property accessors ...
that's a mammoth task, the bar is set ... it would be nice to get an implementation out there way way before it was in the core, before it can effect or break anything ...
 
@ComFreek HTF does that get an upvote?
 
9:17 AM
I think there's probably about 5 people that take the time to run the patches they are voting on, probably 10 who bother to even read them ...
 
@ComFreek ah, just the question being so stupid in so many ways ;)
 
:) random upvoter
 
I don't think your average user knows how to patch, recompile and test php ...
 
@NikiC I've seen two pages like this now ... thestartuppitch.com/pitches/pitch-for-appserver-io
'Our technology allows real multi-threading in PHP'
that makes me uncomfortable .... would it you ?
 
What cv-pls means? :D
 
@TomášAresakMalčánek Close vote please
 
@ComFreek Thanks
https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-ash4/1274260_665523006805592_682432349_o.jpg

My simple game :P
 
9:44 AM
@TomášAresakMalčánek j.mp/18eUa3Q
 
it's not their technology, it's opensource technology, that I wrote ... they are nothing to do with it actually ... should I say something ?
 
@vascowhite Wow thanks you :P
 
@JoeWatkins I wouldn't bother
Once @rdlowrey releases his server he'll pwn all the competition anyways :P
 
but in the meantime they are seeking venture capital ... it seems dishonest at the least ...
 
oh?
let me take a look
 
Since GUI is possible with PHP, does anyone know a game written in PHP?
 
@ComFreek god, no ...
 
lol
Never thought of getting startup capital on the net
 
me neither, I know nothing about this kinda stuff, just found in google, and didn't like the wording ...
 
3D game library for PHP :D lol, that would be a fun project
 
9:58 AM
by fun you mean crazy right ??
can winbinder not already use directx ?
dunno about gtk never actually got it to compile ...
ppl aren't 3d gaming on unix anyway ...
 
Crazy as hell, yeah !
Haven't found anything about WinBinder & DirectX, but creating a PHP extension which uses another library in C/C++ would be a way
 
@JoeWatkins I don't even understand what it actually is that they're doing
 
tomcat
get it now ?
need more words ?
 
Their homepage doesn't seem to have anything to do with a "server". It's all Doctrime and "Beans" and "configuration by exception" and other stuff that sounds a lot like the usual framework bullshit
@JoeWatkins no idea what that is, apart from it having to do with Java ^^
 
they are german, english isn't all that strong ...tomcat is an application server, the enterprise version of an application server ... en.wikipedia.org/wiki/Application_server
they intend to do things like clustering and load balancing and all that stuff ...
 
they are even on that page on wikipedia ... under php
 
also, mornings
 
morning @tereško
 
Nicest comment I've ever read on SO: stackoverflow.com/questions/19342223/…
 
@JoeWatkins I still don't really get it
 
10:10 AM
@webarto one GB memory is a little, but it should make it :). Sounds fine so far ^^
good mornings!
:D
 
I'm not sure what zends application server is, I've not used it ... but in the case of tomcat at least, and this appserver thing ... the application server is one process that contains within it the HTTP server and virtual machine, everything is done within one process, no forking, ever ... it can consist of multiple threads or one, serve websites, and services and other networked services, or all at the same time, from within one process ...
tomcat does this rather well ... there are some new kids on the block, but the defacto enterprise java application server is likely to always be tomcat ...
this is where they are aiming ...
description aside, I don't like the descriptions they are using to try and gain venture capital ... like @Cool2beblue said I've not heard of anyone gaining capital in this way ... but what if they did, based on what reads to me as dishonest ...
3
 
I wonder, who the fak upvoted that post after it was linked here with a tag
 
@JoeWatkins depends :)
 
11:01 AM
@hakre Let's make that 2 or 4 then :P
Anyone familiar with nohup and php?
 
@webarto if it's that easy, why not :)
@JoeWatkins They are also not clear about their license it seems. OSL is such a shrug and then they are not tired to say "Open Source", so probably another dishonesty you can add.
good morning @kaiser!
 
hey :)
@hakre missed you on WCEU
 
@kaiser was it this weekend?
or the previous one?
 
Last one
 
ah well, no time right now, sorry :/
It would probably be some nice party :)
 
11:05 AM
Sitting with Thomas in the OOP talk was fun.
 
@kaiser He was doing the slides or was he talking? :)
 
sigh-ing at the same moments, ranting during questions... you missed quite something ;)
 
okay, who hold the OOP talk?
 
@hakre neither. we were just listening
@hakre Nikolay Bachinsyki (or whatever that last name was)
 
was it Nacin? ^^
Ah Nikolay. Well, he perhaps does too much Wordpress development that allows him to actually do OOP.
 
11:07 AM
nope. but met him on the airport. he tried hard not to collide with anyone.
 
So perhaps not the best conference to talk about that topic.
:D
 
morning
 
morning
 
morning @PeeHaa :D
 
@hakre most talks were a bit too much of a sales pitch. but noel tock had a really great one about his Happy Tables SaaS-thingy.
 
11:08 AM
@kaiser Collide in good or in bad sense?
@kaiser Ah, I don't like sales pitches too much, at least not to waste my weekend on them.
But would have been fun to meet anyway. But there should be upcoming possibilities to do that.
 
Well, we're meeting again on WPCamp Berlin. Join in :)
http://wpcamp.de/ ... seems like I got a talk as well. Just have to finish the description.
 
@kaiser good to know I'm from time to time in Berlin.
Can I become a User-Sponsor with my company? They put a banner under User-Sponsor and then I visit the conference? :)
 
oh and here is the description of Happy Tables - haven't had time so far to watch it. But from what Noel told me directly was that they used a JSON interface to bypass core and the admin UI and have a KnockOut App running on top of it - instead of the admin UI.
@hakre might be the case. Talk to Axel Becker - the sponsor guy.
Another thing: Drupal got a big conference in Vienna - end of November. Looks like I'll be attending. Interested to join in, @hakre?
 
@kaiser Well, I'm not so sure about my time. I have to go to the south this year I think but I bet my schedule is tight for that trip. But Vienna sounds so nice!
 
Maybe I could lend you my apartment for some days to make the trip cheaper.
 
11:24 AM
@kaiser And we can meet with @webarto probably if he still is in Vienna.
But I'm not in the right situation to make real plans, so just thinking loud.
 
Not in the right situation... girl? wife? some children who don't know their dad?
 
@kaiser Starting with November the time I'll be occupied during workdays will increase. I also don't know yet how many days off I can take and just doing a trip through Nuernberg, Munich and Vienna on a two-day weekend is probably a bit much :)
But thanks for the invitation.
 
11:41 AM
anyone know about the mysql dump ?
 
@hakre you're welcome. :) just ping me anywhere if you got the time to Vienna.
 
@samitha hmm. I have plenty each day, but I wonder how you would know about my dumps?
 
hi
 
Morning
 
@kaiser Sure I do. And then we go to Manner shop in the city and buy Hazlenut Mignons.
 
11:43 AM
im trying to create a system to register logged in users in a single server multiple client model
the clients will be desktop software's running on different computers
and there will be a single server to register the clients
 
@techno The model is just called client/server, that's it already.
 
@hakre And to every brewery in the city - it's tradition as well. And we'll drink a coffee at each old coffee house and eat a cake at each Aida. Don't forget the Schnitzel in every Wirtshaus.
 
what i want to store in the server is an identifier + the ip
 
@kaiser Wiener Schnitzel is great!
 
of the users logging in via the desktop software
 
11:45 AM
@hakre I know :D
 
@techno What about looking at oauth
 
@hakre also i have .but when i dumping data via a script, if when i lost my Internet connection (50% already done to the database) if so how i do the script again when connection ok without the mysql duplicate errors ?
 
@PeeHaa just checked it out
it looks complicated and im working with c# on the desktop side
 
@hakre That's a lie, in Serbia, there is much better "Wiener Scnitzel" :P
 
@samitha do it via shell and use screen. You can loose the connection, the command is still running though and you can reconnect to that shell.
@webarto Are you still in Vienna for some time?
 
11:47 AM
@techno The language used should not matter
 
i'm doing it via ssh>exec
@hakre
 
what im thinking is(this might be stupid) to create a php script and send the user id + ip via HTTP Post from the desktop software
 
@hakre Not at the moment, I had to got back to because of college, but I can come probably.
 
the script will store it in a db
 
11:48 AM
@PeeHaa what you think?
 
@techno If private resources are accessed that is a terrible id imo
 
@webarto Is it far from where you live? I mean I have not much of a clue, I would think that are some hundred km.
 
The client desktop aplpication is a public application
Meaning I only need to get the id of the user and I am in
 
@PeeHaa There is no authenciation
 
@hakre can we do it in windows ?
 
11:50 AM
i just want the ip to establish the connection
via TCP
 
What data are we talking about?
And / or what modifications are possible?
 
@hakre Yeah, about 650km, it's not the distance, but gas price :P
 
@PeeHaa im just trying to create a simple chat application
and the servers serves as the means to get the ip from the use id
*user
 
Why do you need the ip?
 
im using tcp/ip
client-server comm
ip+port is required to establish connection
 
11:53 AM
Then why do you need a userid if there is no authorization?
 
well,need to id the user-ip
user to ip match
 
So I can only connect with my user id from a single ip?
 
@PeeHaa yeah this is not a big scale stuff,just trying out
:P
 
@techno Aren't you going to have clients with multiple locations / dynamic ips?
 
so will my php script stuff work out
 
11:55 AM
@hakre u there?
 
@PeeHaa yeah,i know its better to channel data via the server
firewalls,dynamicip,mobile ip
 
morning all
 
@JoeWatkins monning
 
will hinder my plan,but for the simple process of registration,is this kind of php script enough
 
Well if you don't mind taht possibly a lot of clients can use the same ip / user id sure...
cough cough proxy / vpn / organizations
 
11:57 AM
yeah
 
Basically checking the ip for this is flawed imo
 
yeah
i know
 
@pNre He is actually using an array ({…} is an alternative to […]). (Believe me or not; test it yourself with a simple $a = array("a"); var_dump($a{0});) — bwoebi 4 mins ago
Horrible, how many people don't know PHP syntax :-P
 
but how do you recommend to create a such a registration on the server side
@PeeHaa
 
11:59 AM
is my approach good or worse in creating the registration
 
I believe I just told you why I thiink it is wrong
 

« first day (1093 days earlier)      last day (3871 days later) »