« first day (1035 days earlier)      last day (3910 days later) » 

9:00 AM
because they saw few examples of it somewhere and it looked easy
 
@Jimbo Bleh I misunderstood then, I want to remove the , and keep the string then
 
I have just been rebecca-blacked with style... user says that he has trouble with a package that I maintain, and linked me to it via goo.gl...
5
 
@Tredged So, str_replace(',','', $string)?
@Ocramius Haha, srs?
 
@Jimbo yes. I congratulated him
 
@tereško I know, and I'm not entirely disagreeing. But at the same time I'm not a complete idiot and that is not intuitive. It's fine to say that null is the absence of a value and therefore doesn't equal anything, that makes sense. But it doesn't make sense to say that it also equals everything, which is what the fact that NULL <> 3 evaluates to something falsey is effectively stating. If that's that standard then I can work with it, but I don't have to like it.
 
9:03 AM
just because you know 4 words in german and are not a complete idiot does not mean that you can speak in german
 
xD
 
@Jack lol it's fine, I got my rep part :)
 
@tereško Agreed, but when it comes to DML I think I probably know at least 75% of it. I'm not so hot on DDL though, I freely admit.
 
have you actually learned SQL?
 
9:07 AM
nope :c, but I can write procedures and basics :D
 
Experiment #1 - I've got this berocca tablet that has like 500% of your daily allowance of vitamins
 
I wish SQL have exclude fields features.
 
But probably the answer is "no"
 
Oh come on, if @DaveRandom doesn't know SQL, I don't know bugger all
I can write a SELECT query. I know SQL!
 
9:08 AM
@Jimbo I'll one-up you with a DELETE query!!
 
@dragon112 Oh no you won't, I'll raise you a NON-ESCAPED USER INPUT VALUE in an UPDATE
SqlInjectionHaxxorsWTFBBQ
Okay, I need to do some work now.
 
Oh god NO!!!!!
 
I could go for some bbq food right about now, didn't have any breakfast
 
I had a bbq breakfast twice last week ...
 
@DaveRandom +1 tell me when and where :p
1 min ago, by Jimbo
Okay, I need to do some work now.
 
9:11 AM
@I'll-Be-Back I'm not entirely on board with that. Having to specify the columns you want is a lot better for code clarity
 
@dragon112 Kkkk
 
Haha:D
 
@dragon112 My house, 1 hour, bring steak.
 
@Jimbo jealousy is a cruel mistress !!!
about 15 days a year I can have a bbq, make the most of it ...
 
But... I don't know where your house is at. Also I live in the Netherlands.
Give me 6 hours or so
Wait that'd make it dinner
 
9:13 AM
@JoeWatkins Where do you live? (I live in Manchester, unless you're in Scotland I probably get less that you :-P)
Although I have to say this summer has been excellent so far (ignoring the last week or so)
 
@DaveRandom kent ...
 
Yeh see you probably get way better weather than I generally do
 
HAHAHAHA best easter egg EVAR: Go to youtube (not Friday because that will make you lose incentive to do your best) and pause a video. Then type 1980 and let the awesomeness commence.
 
most sun in england, apparently ... I don't notice it much, used to live upward a few counties, much of a muchness ... the problem with kent, its like a villiage ... the reason I had bbq's for breakfast last week wsn't because of weather but because of power cuts ....
 
0
Q: connect to the remote MySql(VPS) from localhost

ఠ_ఠI need to build a web app and it should have a remote MySql databases .I know how would i connect it using Remote MySql allowing the current Ip in My PC.But that's not i want.I want to do it using SSH ( Using PHP Script )or any other good method ? I used bellow command but no luck with MYSQL conn...

 
9:17 AM
You are right @DaveRandom - when you join many tables and you have to specify some fields which can look really messy and long.
And you have to replace id fields like foo.id as foo_id, bar.id as bar_id
 
Morning
 
g'morning
 
Morning
 
hi, @Fabien
 
@JoeWatkins That's bad news. BBQ w/no music is not a BBQ :-(
 
9:19 AM
BBQ Season is over no?
 
@JoeWatkins Consider the purchase of a generator if you're getting 2 power cuts per week :P
 
@Fabien Hope not, having one tomorrow!
 
@DaveRandom You do know about the magic power source called BATTERIES right?
 
@Fabien BBQ season goes until late September and starts in March
Forza Italia!
 
My amp would need a lot of batteries
 
9:20 AM
According to Piet Paulisma summer will start somewhere next week
restart I should say
 
event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - jQuery
 
Nuclear BATTERIES!
 
@DaveRandom Have you ever seen a lorry battery?
 
@DaveRandom Generator is a better option, easy to get a few kW.
 
9:21 AM
Also that ^
 
I have a 3kW diesel generator, cost me about €100.
(used)
 
/me is going to eBay
 
I have not had a power outage in probably 7 years
 
I had a couple in 2011
 
So I'm not going to bother
 
9:23 AM
$query25 = "SELECT `ploeg` FROM `Kalender` WHERE `id` = '344'";
$result25 = mysqli_query($connect, $query25);
$pakhem = mysqli_fetch_assoc($result25);
$gepakt = str_replace(',','', $pakhem['ploeg']);
foreach($gepakt as $key) {
echo $key;
}

I think im getting blind but what am I doing wrong?
 
Haven't had any in 2013 yet.
 
@Tredged what's the error
 
@Tredged Is id an INT field?
 
No mess in electric out
 
If so, lose the quotes around 344 @Tredged.
 
9:24 AM
Stupid village
 
Does anyone know, can I select an array key and it's value buy the value of an array nested inside/select by a deeper level of a multidimensional array?
*without having to loop through everything..
 
@Tredged also if you are trying to get the array key, you will need to do foreach( $array as $key => $value ), only having one var in a foreach will set it as the array value, if that's the problem you're having
 
@Dan Like $array[$array2][$array4]['some-key']?
 
@SweetieBelle Yes, but I would know $array4 and not $array2. I would want $array2 based on IF I find $array4 at that nested level
Does that make sense? Sorry for the crap explanation.
 
@jrdnhannah @SweetieBelle after $gepakt I dumped it and the output was string(31) "Dylan Bakker Tim Oost Bud Jonge"
 
9:26 AM
@Tredged what were you expecting?
 
@Dan No. Not without some kind of index structure built at the same time as the initial array. Especially if based on the values and not the keys.
 
@Dan I think there are some multi-level array searches but I think they loop everything.
 
Yh generator good idea ... Wanted one for garage anyway
 
They will loop everything because that's the only way.
 
@DaveRandom Yeah, AFAIK you can't index a PHP array (unless you built the index structure)
 
9:28 AM
@jrdnhannah I want to have each value enter in the db lol
 
Thanks, that clears it up for me. I actually have an idea which might work, you said something which made a new thought process start..
 
12
A: Link two arrays and use them like MySQL DB

DaveRandomThe tables If you want to use an array as a database, fairly obviously the best way to model a table is using a 2D array: $counties = array(); $countiesKey = 0; // add a row $counties[++$countiesKey] = array( "name" => "Armagh", "img" => "css/images/map.jpg", "largeimg" =>...

^^ related
 
@Tredged I really don't get what you mean, haha. You want to put them in the DB? Why? They're already in there. Or do you want them out? Well isn't that what you're getting? Need to be more helpful :P
 
@jrdnhannah They are in the DB with , and I removed the with str_split and now each name I want to add a new record for in the DB
 
oh
use explode()
 
9:31 AM
Why explode lol?
 
$names = explode(' ', $arrayOfNames)
will explode the names into an array and then you can loop through and put them into the DB
str_split only splits into an array based on length (i think) rather than a delimiter, which is what you're looking for
 
@DaveRandom Dave, I have one other question at the moment, about using a variable in a class - would you help me at all?
 
@Dan See room description ;-) (i.e. if you have a question just ask it)
 
@Dan Read the room description: "Don't ask whether someone is here to help you. If someone is around and wants to help they will."
 
How many of you guys have private medical insurance?
 
9:34 AM
Well, I asked because I was only just speaking with Dave.. ha
 
In the netherlands it's required. You HAVE to have it
 
Expensive?
 
UK, socialism woo
 
@Dan By only asking him you have the chance the rest will ignore your question
 
woo Canada :-D free healthcare
 
9:35 AM
@Fabien Around 120 euro's a month
 
Fairly big chunk of change
 
@jrdnhannah Thanks lol
 
But that's including EVERYTHING
 
@Tredged no probs
 
Recently I had to see a sport medicine consultant
 
9:36 AM
Anyway, I want to "cache" the return of a function inside a class, to use with other method in that same class. I don't seem to be doing it right. I believe I'd have to do something like $var = new class(); and then echo $var->my_set_variable right? But what if I just want this value inside the class?
 
£130 a session, and that's at a discounted rate :(
He's asked me ot geta CT, that's another £400
 
@Fabien Maybe BUPA or something would be good?
 
@Fabien Well that's why people get insurance :)
 
@Dan $this->my_set_variable ?
 
To declare this inside the class?
 
9:40 AM
@dragon112 Yeah but considering the excess it hardly seems worth it
 
Does this have to go in the constructor?
 
@dragon112 Although I am in hospital quite a lot...
Too late now anyway
|Got multiple stress fractures on my tibia
 
@Dan you are making no sense
 
Well I don't dislike the fact that I'm required to have health insurance
 
This is inside my class:
$this->menu_items = wp_get_nav_menu_items('Main');
 
9:41 AM
For students etc there are cheaper solutions (like 70 euro's a month)
 
WHen it's forced it seems mildly easier to pay for knowing you dont have a choice
 
oh .. wordpress .. nevermind
2
 
@tereško It's irrelevant.
A class is a class..?
 
@Fabien I have private insurance because the public sector sucks
€150/m or so
With co-pay of 50% up to €100 max co pay
per month
 
9:44 AM
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
include('Net/SSH2.php');
$ssh = new Net_SSH2('192.1xx.1xx.xxx');
if (!$ssh->login('xxx', 'xxxx')) {
exit('Login Failed');
}

?>  Now how would i connect to the DATABSE (i'm using PDO) @tereško
 
@DaveRandom I understand that. I must be explaining myself wrong, it's not quite what I'm after. Sorry, I should leave it for now and keep reading.
 
There must be a ratio to how much insurance is viable to your salary
 
@dragon112 tbh with the healthcare you get in NL I'd gladly pay for it
 
“@jessicarbh: Hmmmm.... exploded duck... http://www.buzzfeed.com/nataliemorin/chinese-signs-that-got-seriously-lost-in-tranlsation” [ NSFW but oh my they made me laugh ]
2
 
Funniyl enough I could fly to germany and have a CT and it would still be cheaper than the UK
 
9:46 AM
@Fabien Depends how much you need it more than anything
 
Only problem is the guy who handles english clients at the hospital is off for two weeks :(
 
@Fabien Take a German-speaking friend with you?
 
@SweetieBelle I play basketball for my city, season starts in just over a month :( Need to see how well the bone is healing to best determin recovery.
Not theoretically urgent. The only thing it would determine is if I need crutches or not. (How well it's fusing)
Ich habe nein german speaking fruenden
Besides, paying for their flight would probably exceed the cost of doing it here. My ultimate goal is to pick up some freelance to cover the cost. Or just bite the bullet.
I have the money I just don't like spending it.
 
:(
 
9:50 AM
heh. Wonder which country that is.
 
Most likely China :)
 
@Fabien How's piracy scraping going? :P
 
@ఠ_ఠ how would connecting to that remote server be any different from connecting to a local server ?
 
@SweetieBelle Not good. The problem is with stringifying a dom element (iframe). I can grab the element but I can't stringify it because it's a cyclic structure.
 
i fail to comprehend your problem
 
9:53 AM
@SweetieBelle Yea I'm not complaining (or not much anyway:p)
 
I tried I few customisers from the JSON.stringify() function but no luck. Even found a guy who made a custom function for cycling though. Cycle.js but no luck :(
We're looking for outside help on it.
 
Hey
 
@dragon112 If I was ever like really ill I'd probably go to NL :P
That or USA.
Somewhere where you actually have a good chance of surviving.
 
I hear France has good medical
 
Spain apparently has really good (private) hospitals
 
9:55 AM
Host 'Server IP' is not allowed to connect to this MySQL server
Can you help me out with this sql error?
I got everything fixed.
 
Yeah I heard France has good medical but dont know what the costs are like for people without insurance. My insurance is only valid in Italy.
 
@Yotam make sure MySQL will accept connections from your host. I think it's initially configured to only accept local connections, to connect from outside you will need to tinker with my.cnf
 
I definitely wouldnt use public sector hospitals here, that's a deathtrap.
You're probably more likely to recover at home.
 
@jrdnhannah So I should add config to my FTP host?
 
@Yotam That error is pretty specific. You're not allowed to connect from that IP.
 
9:57 AM
That allow me access to mysql
Its not my IP
Its server ip
he doesn't allow me to make connection of mysql to server.
 
is MySQL running on the same server?
 
Yes.
 
@yotam you need to configure your MySQL host. Are you running the PHP script on the same server as the MySQL server
@yotam are you using 'localhost' or '127.0.0.1' to connect?
 
@Yotam Are you connecting to localhost, 127.0.0.1 or the server's external IP?
 
9:58 AM
Here is my website of the using script
I use IP
not local host or 127.0...
 
OK, try localhost instead.
 
IP 209.51.196.243 etc
of server
I've
he written the same
 
You may be banned from making IP connections, only allowed to use socket connections.
 
I'm not using local host, i'm using domain
 

« first day (1035 days earlier)      last day (3910 days later) »