« first day (2580 days earlier)      last day (2359 days later) » 

12:00 AM
@tereško yes, exactly :)
 
Ok ..... I think I get what you mean......but that means this feature would massively overlap with the existing feature of class properties......for not that much gain compared to what is currently possible. I thought the RFC was just about having a simpler syntax for the current feature of properties and getters/setters.
 
Wes
imo no @Danack if you have full blown property accessors you'd want both of them working the same way. same thing different purpose
also i am probably against that. because of the reasons i've explained in the intro
i'd prefer keeping properties as they are currently, not functions with a nicer syntax
there is no gain in that imho
do you want me to summarize again what i am proposing? clearly i've failed hard with the rfc :B
 
No - I'll re-read it again tomorrow, now that I understand that it's separate from the current properties.
 
Wes
okay, let me know :B
@FélixGagnon-Grenier can you have a read too please github.com/Netmosfera/prop-op-visibility-modifiers/blob/master/…
btw, do people understand that override !== set
i should probably specify that with override i mean change the declaration in a subclass.
 
12:31 AM
should I use git?
 
that would be an apologetical yes
 
@FélixGagnon-Grenier thank you. Will learn it
:)
does while loop starts in 0 or 1?
im doing these:
while (odbc_fetch_row($rs)) {

$arr[]=odbc_result($rs, "v");
}
when Im using for loop that starts in 0, it returns array to string conversion but then
when I changed it to 1. No problem occurs
 
ohayou o/
 
@EarvinNillCastillo the while in there does not have an effect on the $arr[]= part.
$arr[] will add an element to an array, at the next available numeric index, starting at 0
 
12:47 AM
When I var_dump it, there is value in 0 but when Im going to echo starting from 0 throws an error
 
@EarvinNillCastillo this seems to work eval.in/894993
 
wait let met try it again
@FélixGagnon-Grenier tried this:

echo $arr[0]."POTA";
result: Array.POTA
ArrayPOTA rather
then throws error array to string conversion
 
1:22 AM
@FélixGagnon-Grenier found the problem.
its in the declaration
arr[]=array();
 
2:03 AM
posted on November 07, 2017

New Cyanide and Happiness Comic

 
Wes
2:25 AM
@tereško do you watch "cody's lab"? a science channel on youtube... he got attacked by flat earthers, they started flagging the videos and eventually youtube autobanned the channel
 
2:52 AM
Morning
 
Wes
3:33 AM
morning
@FélixGagnon-Grenier did you try removing the scratch?
 
Is it possible to store local image path to the database and access it in wordpress?
When i upload media, I want to get the media from the local device instead of Image URL.
 
 
2 hours later…
5:20 AM
good afternoon everyone
 
5:44 AM
why does this syntax does not create 2d array?
$arr=[[]];
while (odbc_fetch_row($rs)) {
$arr[][1]=odbc_result($rs, "device_id");
$arr[][2]=odbc_result($rs, "device_id");
$arr[][3]=odbc_result($rs, "time");
$arr[][4]=odbc_result($rs, "device_name");

}

var_dump($arr);
echo $arr[8][0];
 
Wes
it doesn't do what you think it does probably
$arr[0][1] = ...
$arr[1][2] = ...
$arr[2][3] = ...
$arr[3][4] = ...
 
ohhh
what should i do
 
user8445949
6:10 AM
How to read all the answers labeled community wiki
as this question: stackoverflow.com/questions/…
community wiki
46 revs, 36 users 79%
e-satis
 
@Wes
for($x=0; $x<=(odbc_fetch_row($rs)); $x++){
	for($y=0; $y<1; $y++){
		$arr[$x][1]=odbc_result($rs, "device_id");
$arr[$x][2]=odbc_result($rs, "device_id");
$arr[$x][3]=odbc_result($rs, "time");
$arr[$x][4]=odbc_result($rs, "device_name");
	}

}
do you think this is the correct
syntax
 
Wes
why don't you use PDO's odbc driver?
 
Wes
o/
 
this is what I searched first. is it more easy rather than this odbc
 
7:10 AM
mornings
 
Wes
oh php has code coverage
didn't know
and it's surprisingly high even
hey ronni
 
o/ Wes
 
7:29 AM
> Find the tarbalss on te usual
downloads hostname, you know the one. In ~pollita, because God forbid
an email include a fucking URL.
 
Took apart a family member's phone today, bought brand new, it was missing a screw inside, refurbished? forgot during assembly? (apple).
Fishy
 
do you know it's there on other phones ?
it could be part of assembly process
 
Yeah, mine, and gf's had it, including instructions.
Mom's didn't.
 
witchcraft then, obviously ...
 
I've been replacing everyone's batteries, apple's batteries start acting up after a year. Shutting down at 20% and so on.
 
7:46 AM
@Wes I have not actually subscribed, but I have watched a lot of his content. Did he get the channel back?
 
Wes
nope @tereško he's under attack by flat earthers
fucking ridiculous
 
I am not surprised
the recent changed in YT have made it extremely easy to take down channels
 
and after you actually get it back, you also end up blacklisted and slapped with auto-demonitazation
 
Youtube is a diarrhea explosion of advertisements.. plus when I paid for youtube red, I kept getting the stupid error "You're logged in, in multiple locations, can't play." .. well no shit. my cell phone, google home, and computer..
 
Wes
7:51 AM
the guy is like the nicest person ever. it's absurd lol
 
@Wes was the channel removed?
or is he just locked out?
 
Wes
no, but he got 2 out of 3 warnings already
 
^ that was 2 days ago
 
Wes
the channel is still up
 
moin o/
 
7:55 AM
glad to see people trying to decolonize science :P
 
i need to display like this:
Material=10,
Analysis = 21,
System task:=14.5,
viewers = 100.
When i added it as a tooltip title="<?php echo $v1."<br>".$v2."<br>".$v3."<br>".$v4;?>"
but it displays like this:
Material=10,<br>Analysis = 21,<br>System task:=14.5,<br>viewers = 100.
please help me how to break line within php into tooltip
 
I think you can't
 
Wes
title="<?php echo $v1."\n".$v2."\n".$v3."\n".$v4;?>"
 
why?
 
try adding "\n", but it probably won't help
 
7:57 AM
wait ill try
 
because you can't have tags inside the native tooltips
 
I have a few stored procedures on my sql server that require a date parameter. Now I need these to run on my page the moment i refresh which works. But i want to create a loop so that it runs through the loop for the past 3 days, so for example date : 11-6-2017, 11-7-2017, 11-8-2017. Is there any logic function to do this?
short formatted current date and past 2 days in a loop
 
\n also doesnot working @Wes
 
you can always write (or download") a "tooltip replacement" JS lib
 
Wes
7:58 AM
@hearthacker just proved to you that it does work
 
oh kk
 
Wes
if it doesn't you are already using a js that handles the title=""
 
@wes but i want to know any other way is there to do this??
 
@Wes the youtube's troubles are getting worse: youtube.com/watch?v=pe5eODFxwy0
 
Wes
Demonetization or demonitization?
 
8:07 AM
"money"
basically, looks like even more people are starting to move away from YT
 
8:24 AM
meurnin
 
8:36 AM
any of you guys familiar with sql and php
 
nope. we do C in here.
 
k good one :p
if (isset($_POST['datum'])) {
$new_date = date('Y-m-d', strtotime($_POST['datum']));
echo $new_date;
}
if ( $userr == 'CL-Horst') {
$sql = "SELECT Personeelsnummer, Werkdatum, Kaart FROM beoordeling WHERE VestID = '1' AND Werkdatum = '$new_date'";
$stmt = sqlsrv_query($conn,$sql);
}
this is a part of my code
but my sql query wont work since the $new_date_ variable is not declared
 
@Tomm currently working with sql using php
im using odbc
 
I am using sql server atm
 
Anonymous
!!wotd
 
8:38 AM
razzle-dazzle Informal. showiness, brilliance, or virtuosity in technique or effect, often without concomitant substance or worth; flashy theatricality: The razzle-dazzle of the essay's metaphors cannot disguise its shallowness of thought.
 
but my problem is that my sql query cant function since it requires $new_date which is not given yet after executing my input field which posts to the if isset function
 
put it inside isset
 
mornis
 
Interesting @EarvinNillCastillo that is very logical but I have not realised this haha
ty
 
8:43 AM
Nvm ":/
this won't solve my problem
 
since the $stmt variables now cant be found throught my script
while($row = sqlsrv_fetch_array($stmt))
this whole script is build around this
its about sql data in a html table
at first i had the whole page in the if isset post
But that destroys by submit button
thats where my problem originates if i click on the submit button the if isset gets dissabled so the webpage becomes empty leaving my ouput with nothing
 
do you know what part of your code has the problem?
 
well there is no problem i know whats wrong i just cant find a good way to get around this whole problem,
il try to explain it as good as i can
 
8:50 AM
I have a while loop fetching sql data. If you want to do that you have to call a variable that check the sql query and its connection ( on my page called $stmt ). I have a if statement as following : if the user is 'x' do a query : select x from x where date is $new_date. $new_date is a variable being made after posting the input from my input field.
If i have everything in my if isset post date it works
but my submit button wont function
if i have only the post date with $new_date variable declared in the loop it wont work since my sql query cant find $new_date
if i have the if user loop in my isset post the while loop cant make the check that the $stmt variable does
so ultimately you would think put everything in the if isset post
which was my guess
but my submit button wont work them cause the page refreshes and there is nothing to post anymore
hope this explanation is somewhat clear
 
next question please
hahaha wait
 
xD
 
maybe you can post the code?
 
Not sure how it is going to work since it requires a database but sure
 
Wes
morning2
 
8:54 AM
o/
@EarvinNillCastillo
 
hehe srry
 
is thor ragnarok, a must watch?
 
@EarvinNillCastillo found anything yet
 
what do you want to achieve?
if i have the if user loop in my isset post the while loop cant make the check that the $stmt variable does

so ultimately you would think put everything in the if isset post
which was my guess
but my submit button wont work them cause the page refreshes and there is nothing to post anymore
hope this explanation is somewhat clear
 
9:07 AM
what i just explained :s
so my goal
is to make it so my submit button works
 
is there any error when you try to submit?
 
no but once i press the submit button the whole page goes away since the post doesnt get anything in anymore and i cant see the submit output
 
if (isset($_POST['send'])) {
    if (!empty($_POST['data'])) {
//have you tried checking if the data goes on in here?
        foreach($_POST["data"] as $data)
        {
            echo $data;
            $sql = "insert into beoordeling(Beoordelingnumeriek) values ('$data')";
        }
    }
}
 
Anonymous
format
 
Yes earvin it used to work when i did not input the date myself using post date
and you also cant see echos
if i for example put a test echo in there
 
9:11 AM
use console.log
 
Anonymous
lol ... why console.log()
 
Might be a retarted question
but does php have console log
 
Anonymous
var_dump($anything);
 
that's what i do hehehheh
 
Anonymous
Just put your $_POST in it
 
9:12 AM
Hi. I am afflicted with PHP. Wondering why the response is different if using PHP as adapter.

<?php
$post_data = $_POST['data'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://vision.googleapis.com/v1/images:annotate?key=KKEEYY");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Content-length: ".strlen($post_data)));
$result = curl_exec($ch);
 
Anonymous
morhrgg
 
var dump where should it output samayo
 
in your page
 
it doesnt
 
Anonymous
@Tomm start from before this line : if (isset($_POST['send']))
 
9:15 AM
Has anyone ever rebased successfully with PHPStorm VCS -> Git -> Rebase before? Literally never succeeded, and in this instance it's failing but it's the simplest thing ever (theoretically).
 
Anonymous
Also why are you posting two forms are the same time? @Tomm
 
I only found one form tag?
 
cause i have a form in my header for my login logout
 
or is it because of the isset?
 
and a form for my table
 
9:16 AM
ohh
 
the other form is in my header earvin
on a different page
 
ah fuck, I need to go to work
 
gl @tereško
 
have your tried var dump the post datum?
 
mornigns o/
 
9:21 AM
trying now earvin
you want me to try to do that inside the if isset post send or outside of it
 
inside datum
 
if (isset($_POST['send'])) {
echo 'hey';
if (!empty($_POST['data'])) {
foreach($_POST["data"] as $data)
{
var_dump($data);
echo $data;
$sql = "insert into beoordeling(Beoordelingnumeriek) values ('$data')";
}
}
}
i did it like this and i got no errors
but it shows nothing on the page since it refreshes after submit
 
disable the submit
in jscript
event.preventdefault()
$("#form name here").submit(function(e){
    e.preventDefault()
});
 
it did not disable anything
it clicked submit and it refreshes
$("myForm").submit(function(e){
e.preventDefault()
});
 
you forgot the hash
tag
num sign
 
9:28 AM
my whole page doesnt show anything anymore
is that normal
no right
 
its because it disable the refresh
now try var dump
the post send
 
no i mean
 
Anonymous
enable error reporting @Tomm
 
My whole page is just grey
i cant do anything
so there is no button either
 
Anonymous
18 secs ago, by samayo
enable error reporting @Tomm
 
9:30 AM
Samayo would you mind explaining me to
 
Tomm, look up error reporting on google.
 
Anonymous
if the page is white or grey it is most likely your php code has any error somewhere but since you have not configured your php.ini to show error, you are seeing nothing
 
The basics of programming is to know how to search for the correct terms. Samayo gave you the correct term to start with.
 
i found the error
well error
 
9:32 AM
i pasted this jquery in the header since the jquery event.preventdefault was using it
and it greyed out my whole page
uhhm wait
 
so youve seen the error?
 
<script src="https://code.jquery.com/jquery-1.10.2.js">
no its not a error
 
probably your console has some errors in store for you :/
 
it seems like this jquery script does not function on my page
console is empty
And samayo i just looked and i have error handling enabled
i am not getting errors
 
doesnt the apache will show you the error?
 
9:34 AM
?
 
it's a basic HTML error
jquery wouldn't cause it to go blank
 
No darius it is not a basic html error
 
yes darius. jquery doesn't have to do with that
 
hmm
i fixxed the jquery
since you guys started about it i found the mistake in that
but now that my jquery link is working
 
How'd you fix it
 
9:37 AM
the event.prevent still doesnt work
darius was a grammar mistake
but this solved nothing
exept for showing my page again
 
Anonymous
@Tomm Please stop vamping. Google your issues, or go to the js room chat.stackoverflow.com/rooms/17/javascript
 
which part was a typo
 
you need to disable the refresh on form submit to be able to see the error
 
moin
 
Anonymous
david o/
 
9:37 AM
@JayIsTooCommon this is not about js
 
\o
 
this is a php thing we are struggling with
 
they just wanted me to try this js error handling codes
 
If your page loads up, it has nothing to do with event.PreventDefault() (javascript this is, not php)
 
9:38 AM
@EarvinNillCastillo again its not an error mistake this is because the form is being filled with a loop and if i click the button the table goes empty so page refreshes
 
That's a javascript issue
 
MY god
I do not have js issues
they wanted me to try 1 javascript function to see what happend if the submit function wasnt enable
@Darius no offense but read back before interfearing into a discussion
 
Anonymous
@Tomm well then you're not describing your issue very well. Either tell the room what your current behaviour is and what it is that you're expecting or stop vamping
 
jay
 
Anonymous
Tomm
 
9:40 AM
i have been discussing this for like 40 minutes with 2 people
who do understand my problem
and then people started merging into the conv
 
Anonymous
yes, hence the stop vamping.
 
maybe tomm the problem is your array?
while($row = sqlsrv_fetch_array($stmt)){   //Creates a loop to loop through results
echo "<tr>
<td><input type='range' name='data[]' value='0' id='myRange' class='slider' min='0' max='7' data-show-value='true'></td>
 
@JayIsTooCommon what does vamping mean i tried googling it
 
Just before I go to the store for some soda, I'll say this Tomm, "I click, it clears form, then it reloads.", two possibilities there. 1. Javascript clearing form, 2. html reset button used in form and javascript submitting it(?). The end.
 
9:42 AM
the value is always overwrited?
 
@Darius that's what ive been telling so it can check the possible error
 
@EarvinNillCastillo il explain this for the 200x time @Darius .. All this is in a loop saying if isset date. which is being input by a input field. so once you click submit there is no input anymore which means the table goes empty
that has nothing to do with js
 
Anonymous
> All this is in a loop saying if isset date. which is being input by a input field. so once you click submit there is no input anymore which means the table goes empty
 
Maybe this is a language barrier... When you click on submit, does page reload or not.
submit -> page reload -> empty table. Or submit->empty table->page reload
 
9:45 AM
yes
 
which of the 2
 
submit empty table refresh
 
I give up.
 
there is small delay inbetween empty table and refresh
 
9:46 AM
I have a feeling I just got a crazy start up idea.
 
Anonymous
I give up also
 
A platform, where you put up $$$ to prove an issue/fix it for others to see.
and you fix it live, and prove one or the other was wrong
via screencast
 
il gyazo gif it real quick
il let you decide what it does
 
anyone can recommend me a laptop which has more powerful CPU than i7-7700HQ, 64GB RAM and 1TB PCIe SSD?
 
That's pretty beastly
 
9:48 AM
It would be great if I can buy such one laptop on amazon
 
@EarvinNillCastillo thank you very much
@EarvinNillCastillo can you feel the difference when using regular SSD and PCIe SSD?
 
9k dollars?! baller.
i want one..
 
@Darius @EarvinNillCastillo @samayo gyazo.com/51ff8e5622668ddd07f4e6ced608b5cb
 
wow, it's too expensive to afford, 9k dollars
 
9:51 AM
Tomm, you proved our point, it's javascript.
 
But the problem is that i do not use any js
 
that calendar is JS
 
 
@Tomm W3Schools should not be trusted as a reliable resource. Click here to read why. Check the Mozilla Developer Network HTML documentation for help with HTML.
 
Pretty sure this is not js
<input type="date" name="datum" value="<?php echo date('Y-m-d'); ?>">
 
9:53 AM
@O'Skywalker im not sure. I don't have that beastly expensive
 
@Darius will you buy the 9k laptop?
 
Never
 
why not? are you lack of money?
 
Yup
 
@Darius haa, me too
 
9:54 AM
I can't justify a 9k expense on an electronic
@Tomm, ok, when you click the date, in your gif, it didn't show a page reload. Does it reload after you click the date?
 
you input a date
click submit date
it goes through the while loop
and shows the sql data in html table
 
Ok, do you have a <input type="hidden" name="page" value="current_page"/> anywhere
 
nope
 
Then how do you know what page you're on, and what mysql has to go offset
 
what do you mean by that
 
9:56 AM
mysql needs to know what page number you're looking for like record 0-20, 21-40, 41-60
with your given filters
 
i am using sql server
 
same thing
 
I do not know what you mean by needs to know what page number your looking for
 
have you seen my pastebin
i am using this query and it functions like it should do
SELECT Personeelsnummer, Werkdatum, Kaart FROM beoordeling WHERE VestID = '4' AND Werkdatum = '$new_date'
 
9:59 AM
Hi guys i know you are all pro at this i have some question is it a bad habit to query on the loop? doing a row
 

« first day (2580 days earlier)      last day (2359 days later) »