« first day (1765 days earlier)      last day (3409 days later) » 
00:00 - 17:0017:00 - 00:00

00:41
Good Morning.....happy sunday
 
2 hours later…
02:32
morning
@Orangepill morning o/
@anmol \o
02:55
hello everyone
anyone using laravel here?
not I ...
i just have a little issue
might be able to help ...
oh thank you
02:59
depending on how specific to laravel it is
@NullPoiиteя o/
thing is i installed laravel 5, created a project, and at last when i tried to go on the login page using URL: localhost:8000/auth/login nothing shows
hi @NullPoiиteя
nothing shows as in blank page or nothing shows as in you are getting an error
rather i get the page saying: "Sorry, the page you are looking for could not be found."
03:01
What webserver are you using .. the one that ships with laravel?
i guess that's the laravel error page
i'm using wampServer
what happens if you go to localhost:8000/index.php ?
@AnasLmt arnt you php artisan serve ?
@NullPoiиteя is that the name of the one that ships with laravel?
@Orangepill it shows the laravel index
03:05
yupp
it runs on port 8000 default (laravel builtin php server :D )
oh is that what he meant? yes, that's what i used
@Orangepill i used it for creating desktop application with :D created bat file to launch server and sqllite
so did you create the controller that services auth login or is that something that is available out of the box
What im seeing in the docs is that you have to explicitly declare the routes used by the auth controller
yes i followed up on a tutorial
I would double check your routes then ...
make sure you have a GET route defined to go to /auth/login
03:17
@NullPoiиteя morning
@Orangepill i think you're reading the master version documentation, scroll up and change that to 5.0, right of the page
hold on you're right, it's blank, my bad!
hopefully that's all it is
is there a way with reflection to get parameter information for all callables or do I have to employ different strategies for different callable types.
i.e. functions / closures / invokable objects
Abe
Abe
03:34
morning
@Orangepill its empty.
@Abe \o
i think i downloaded the master version
Abe
Abe
@Orangepill o/ hey
@AnasLmt better put a route in there ... I believe the authentication module provides an appropriate controller to point the route at.
03:36
hi @Abe
hi @Orangepill @abe @NullPoiиteя... :)
@paritosh o/
Abe
Abe
morning all nice people
@paritosh hello
@Abe sup \o
03:40
hello
just one question
how can we not allow web server access to files outside the DocumentRoot????
@Orangepill you're right all along, i needed a route and i needed to create the views too and keep following up on that whole document. i think i'll just install a full version. thank you so much by the way!
2
Q: Apache2: how to restrict access to files in DocumentRoot

KirillI have written this config for restrict access to /var/www/news.html: <VirtualHost *:80> ServerName example.com DocumentRoot /var/www/ <Directory /var/www/> Order deny,allow Allow from all Options FollowSymLinks </Directory> <Files /var/www/news.hmtl>...

which server are you using @paritosh
@anaslmt no problem
@NullPoiиteя thanku.... that's what i am looking for
03:44
Think the issue is <Files /var/www/news.hmtl> ... should be <Files /var/www/news.html>
simple typo
use directory statement ...
@paritosh anytime
04:12
be back later nice people! good to finally be able to chat with you all. thanks for the support
i was trying to get that solution
@madu i can't able to understand question
what you want is if there are two rows then show latitude and longitude 2 times
based on the supplied output you are getting 5 results and all but one of them have lat and long
04:28
and if you are at learning stage plz don't learn things which are depreciated
I'm trying to pass a parameters using jQuiry and load.
function loadFrame{
$("#frame").load("index.php?user=1234");
}
This works. But user parameter dynamic.it's adding with php. echo $user. So load url call like this index.php?user=<?php echo $user; ?> not working ! How to solve this?
@ircmaxell that was a lot of rage coming off of taylor on the twitters
i think it's should be like index.php?user=<?php $_GET['id'] ?>
with an echo in there
@AnmolRaghuvanshi no problem with getting parameter using php. Problem is passing to index.php
04:42
yes @Orangepill my mistake..
@AnmolRaghuvanshi and htmlspecialchars
Abe
Abe
@ircmaxell because you don't understand the most basic of business values and priorities
@AnmolRaghuvanshi and htmlspecialchars
what problem are you facing parameter is not passing to index.php or what?? @VarunaLex
function loadFrame{
$("#frame").load("index.php?user=<?php echo $user; ?>");
}
I meant this.
Abe
Abe
04:46
1- why do people think that doing things right takes more time?
2- why shipping code asap is more important than code that can grow simultaneously to your business?
1- because it usually does take more time up front but not over the lifetime of the project
@Abe do you know the context that all of this is in reference to?
Abe
Abe
tight coupling? :D
thought there was another conversation that let to the initial tweet
Abe
Abe
imho if you produce sloppy code, you can only make your client unhappy about what they get in return. instead if your code works and produces money and it can be expanded without limits, you can grow parallel to the client, work happy and get more money
personally being sloppy in what i do never helped. that includes front end, server side and everything
if i'm being sloppy i know i'm gonna regret it, it always happens
04:59
Hello all, I have this multidimensional array. There is a field 'section'. How do i group content based on sections?
Amen to that
section values can be like 'quant', 'reasoning','english'. I need to make a seperate array having questions from only quant, only reasoning and only english
@Shubham $array["Question"][0]["section"]
@ShubhamNishad array_filter might be a good option for you in that case
$quantData = array_filter ($array["Questions"], function ($a){return $a["section"] == "quant";});
@Orangepill, is it possible to return an array having a list of all unique sections?
@Orangepill, no that's not what I am wanting. I don't know beforehand that the values will be quant
it may be anything like quantitative aptitude instead of just quant
but I want to club similar sections
regardless of what it is
05:09
Then adjust the condition in the callback function
return $a["section"] == "quantitative aptitude";
I just got an idea. I think I should iterate through this array of questions. And everytime I get a unique section I should add that to a new array
that way I get list of all unique sections
that would be a sane approach
If you wanted to cheese it you could also use array_map and array_unique together :)
$sections = array_unique(array_map(function($a){ return $a["section"]; }, $array["Questions"]));
^ that should give you a unique list of sections.
wow, let me try that.
@Orangepill, it say "undefined variable 'section'"
did you see my array pastebin.com/b6B12EY9
In that array I have questions from only one section ie 'quant' but there can be other sections too
show me your code not an array dump..
There is no code. It's just a single line "$test = $this->Test->findById('1');"
05:23
Then where are you getting the undefined variable section from...
When I used your code
$sections = array_unique(array_map(function($a){ return $a["section"]; }, $test["Question"]));
then I get that error
I see no call for a variable named section that would result in that error...did you mean to dump sections with an s?
and with the truncated var dump I can't tell if test is an array or an object .... if it's an object you should use $test->Question instead of $test["Question"];
no it's an array
05:43
<?php
$sections = array();
foreach($test['Question'] as $questions){

if(!in_array($questions['section'], $sections)){
array_push($sections,$questions['section']);
}

}



?>
that had done what i wanted
that seems like a reasonable way to go about it
06:01
Hello
I have a question regarding bscrypt encriptioin
what's your question...
i'm not the resident crypto expert but I may be able to help
<?php
	$token = '$2y$10$oHydDn3xtMSQZtApygO8i.D/LtDh4u9wNvb4Hy21MaRzIVW.h1mh2';
	$passw = 'test123!!12';


	$a = password_hash($passw, PASSWORD_BCRYPT);
	if (password_verify($passw, $a)) {
		echo "true";
	} else {
		echo "false";
	}
?>
why my code always return false
and token was created using password_hash as well?
sorry I have posted wrong code, let me correct
<?php
$token = '$2y$10$oHydDn3xtMSQZtApygO8i.D/LtDh4u9wNvb4Hy21MaRzIVW.h1mh2';
$passw = 'test123!!12';

if (password_verify($passw, $token)) {
echo "true";
} else {
echo "false";
}
?>
so how was $token created using password_hash?
06:08
I know its bcrypt encrypted, starting 4 characters are $2y$ and length is 60.
but it's not a hash of that password.
This is the confusion.
how could you say this is not a correct hash?
Please clear it.
how did you create the hash?
I have not created the hash.
then how do you know that the hash was created using test123!!12
06:13
Because I have seen this in the user table
see this is a row
Array ( [userid] => 199 [usergroupid] => 2 [membergroupids] => [displaygroupid] => 0 [username] => test1 [token] => $2y$10$oHydDn3xtMSQZtApygO8i.D/LtDh4u9wNvb4Hy21MaRzIVW.h1mh2 [scheme] => blowfish:10 [secret] => 7B|)Ha.jXpGlN]J5]d$~W{jbAYKt=P
the password of the user is 'test123!!12'
the secret column there seems suspect... like maybe the password is being encrypted prior to being hashed.
or the decypted value of secret is being salted into the password prior to hashing...
without knowing how the password was encrypted it would be impossible to know how to make a compatible input for password_verify
I have only that much information and I need to verify to complete authentication process.
i don't think I will be able to help then
06:50
morning
07:09
please someone tell me this sentence is correct or not ? (english grammer)
How to limit editing after specific time
{I mean is something like stackoverflow comments, you can not edit it after 5 min}
 
2 hours later…
Abe
Abe
08:51
@Sjon are you sure you implemented it correctly? pastie.org/10348708#7,13,27 because it looks to be working fine already
09:06
Hi all.
Please someone tell me how I can find out mantissa size in a particular version of the php on a particular architecture? I'm interested in the number of base digits for the double data type
09:17
how can i use loop to print english letters?
Abe
Abe
@bwoebi ^ the question about mantissa
in other languages i know like 'A' + i and print
but will it work in php?
Abe
Abe
afaik and with lay terminology, mantissa has not a fixed size in php @klay
09:29
Hey, I have what I assume is a common php problem. A file is echoing 3 blank lines and I don't know which file. get_included_files narrowed it to about 100 o_0, is there any way I can be sure what caused it?
Did I say 100? I meant 300 -_-
@BenjaminGruenbaum Did you check if any of them contains "?>"?
Nope
Are you saying it's a stray ?>?
Probably. A ?> followed by an additional blank line.
09:31
That makes a lot of sense actually o_0
Lemme regex it quickly
lol, that fixed it.
Such a great language php :D
Well, you should just not use ?> in PHP-only files.
@klay You can safely assume that floating point numbers in PHP are always IEEE 754 double-precision floating point numbers.
@kelunik right, doing so should probably be an error or something :D
It might make sense to remove all whitespace following a ?>, if there's only whitespace left in that file.
Thanks for the help!
10:00
PHP!
10:15
@BenjaminGruenbaum output a header with header() - the error message says which line output has already started on.
@NikiC thanks
10:57
@Danack the ?> thing fixed it :D
11:12
maybe I'm missing something
I'd be happy to push it online if you want to look at it btw
Abe
Abe
@Sjon if you put it online i can check what's not working in firefox
Morning
Was this chat down few minutes ago?
@Abe check 3v4l.org/ppMiN
I'll push unminified, it'll be easier
user924016
mornings
user924016
vacation is over.. =[
Abe
Abe
11:25
yeah something isn't working
somehow the existing functionality falls over as well, but no errors @ console
@Sjon Yeah, hovering is now pretty weird.
Abe
Abe
11:37
i'm trying to understand what's the problem
Morningh
Abe
Abe
@Sjon can you remove the scrollTop thing again?
@Abe done
Abe
Abe
try to move dd.scrollTop = boxScroll[i] || 0; after line 182
that should fix it
(after dd.style.maxHeight = ''; )
@PeeHaa o/
hmm, not really
now the animation has halved in speed and only the first one works
11:44
@Sjon dds.forEach(function(dd){ < You missed i there.
you're right, fixed
that sort of works, the animation is still a bit wonky
Abe
Abe
trying
Yeah, works now, but the animation is a bit strange when you switch from the second to the first result box.
check
I'd just remove the animation TBH.
Abe
Abe
11:48
i guess another thing you could try is to add dd.scrollTop = boxScroll[i] || 0; also after line 173
Another step into the uncanny valley - youtube.com/watch?v=FXXdypEuR_M
@Abe done
nope, then it toggles again when refreshed
Abe
Abe
that's so strange
DNC
DNC
I am building a social media(something like twitter) and I can't make a choice: Should I build my own server at home or should the hosting at HostGator be enough for the database?
Abe
Abe
previous one was the best, better than it was before, at least
user924016
11:52
hah
Abe
Abe
it's a bit wonky
but what does the scrollTop addition fix?
I haven't spotted it yet
Abe
Abe
when you scroll while it's still loading and "tab" gets updated, scroll gets reset to 0
try some long output like var_dump(mb_list_encodings()); and scrolling it while it's still loading
anyway the second to last we tried wasn't that bad
this is front end scripting, you can't pretend things make sense :D
there is probably a better solution but it's not worth doing
would be better if you transferred the result as json and update the single boxes rather than updating the whole list
3v4l.org/GH0Gj looks pretty good
Abe
Abe
yes. is that the second to last one we tried?
yeah it's not that bad
12:06
yes
and replacing innerHTML with DOM calls is on the list as well
@Sjon It has still a flicker effect for every reload.
it looks fine here; only flickers for partially scrolled, collapsed results
Flickers for every scrolled box for me, no matter if collapsed or not.
It's because of the inner requestAnimationFrame.
@kelunik hmm, guessing you're not using FF?
@Sjon I can see it in FF and Chromium.
12:15
but it's better then it used to be right?
I'm not sure, could use the non-minified version again?
Hello guys?
there?
anyone on this room?
coming up
Well, it is better, because it just flickers instead of scrolling to top, but I would still call it WIP.
unminified version is @
12:23
@Sjon it does no longer have the loading mechanism now that it had before.
problem
> asked 19 mins ago
not able to use host only adapter on virtualbox
This isn't a live support service. Why not allow people time to answer your question before spamming for help in rooms.
@Danack sure, you're right
12:25
@kelunik done that too
I see, without the second requestAnimationFrame it doesn't work for the first result.
that's @Abe's work; I'm not really familiar with it
@Sjon I think I got it, just replace this one block:
// saves the boxes' sizes and forces them to not change while replacing the content
tab.querySelectorAll('dd').forEach(function(dd){
	var h = window.getBoundingClientRect().height;
	boxSize.push(h); boxScroll.push(dd.scrollTop);
	dd.style.height = h;
	dd.style.maxHeight = h;
});
The only new thing is getBoundingClientRect.
wow, that also fixes 3v4l.org/GH0Gj#v510
no wait I fixed that myself :X ; but the toggling looks good
@kelunik thanks!
I don't think that should work (now that I think about it), but it works. \o/
12:39
lol
> this is front end scripting, you can't pretend things make sense :D
Because it sets the height to the actual viewport size now (an int), so it's probably just an invalid value. You might be able to remove that complete block.
Try setting h to 42 and see it that works. ;-)
if I remove the complete block; the fix becomes simply wrapping innerHTML= in requestAnimationFrame only ?
I even get > TypeError: window.getBoundingClientRect is not a function
lol, yeah, because it's only defined for nodes probably.
@Sjon Just try that, yeah.
@kelunik did that, it doesn't work
but I'm minimizing it now
evening alll...
12:47
@Sjon Just throw an error manually and you'll be fine, lol.
yeah; because the innerHTML call won't be executed
so it only works for scripts that are done, like the one we're testing with
I'm gonna stay with the current version for now; done enough twiddling
13:13
hi all! i have a problem with SplFileObject - it's showing me duplicated first line of file... more about the problem here: stackoverflow.com/questions/32033617/… ... what could be wrong? :/
user924016
@user1257255 really think " here must be something wrong with SplFileObject - I checked entire code and 100 % there is not any mistake. " ?
@RonniSkansing yes, i'm sure there must be something with pointers or stuff like that, because I tried different ways of reading file and the problem still exists
@NikiC when you got a moment, can you review github.com/krakjoe/indexed, tell me if I fucked up ... no particular rush, will be out until early tomorrow morning ...
@user1257255 That's just how foreach works, it won't use the updated $file: 3v4l.org/rDQQW
@user1257255 You're trying to write clever code. This is probably a mistake....instead it would be much easier to write simple code that separates the processing of results from SPLFileObject from your own code.
something like this @user1257255:
$fileToProcess = "file.1.txt";
while ($fileToProcess != null) {
	$file = new SplFileObject($fileToProcess);
	$fileToProcess = null;
	foreach ($file as $row) {
		if ($contentContainsSomething) {
			$fileToProcess = "file.2.txt";
			break;
		}
	}
}
13:29
@Danack i have something similar in my recursive function, but I will also try your code... thanks!
@Sajad are you there
problem solved
@Danack exactly the same problem with your code as with my recursive function :| I will try to run both codes with some easy examples and then I'll see where is the real problem
Or just use a debugger....
@AnmolRaghuvanshi I'm there now, which problem ?
@Sajad problem solved... thnks
13:41
@AnmolRaghuvanshi you're welcome, but which problem ?
just trying to make foreign key....
storage must INNODB..
@JoeWatkins Should add zend_object_properties_size() to the allocation, and get_gc should return zend_std_get_properties().
@AnmolRaghuvanshi aha, alrigh.
@JoeWatkins In dump/cast you'll insert UNDEFs into an array -- I don't know if that's a good idea ^^
@JoeWatkins It looks like the case where data == NULL (if ctor was not called) isn't always handled
Or maybe it is ... implicitly by the bounds checks
Yeah, looks like it is
I don't see anything else
13:58
@bwoebi Do you still have the array flatten + key concat code using generators somewhere?
14:16
Hello
Has anyone ever played with the EBI pattern? I'd have some questions about the data layer side of it.
14:33
@arkh i've looked at it in depth.. haven't used if for much though
14:44
@Orangepill I think I found a not too awful way to manage my problem. A DI interface as constructor parameter of all interactor so they can get instances of data objects without knowing what handle the data. Maybe there's a better way?
Passing your DI to your interactors might not be a good idea ... changes your DIC into a Service Locator...
@kelunik just write it from scratch… should be a rather small snippet?
15:24
@Arkh I would recommend checking out Auryn and then delegate all the data things:
Jul 15 at 23:57, by Danack
function createSQLConfig() {
	$host = getenv('mysql.host');
	$username = getenv('mysql.username');
	$password = getenv('mysql.password');

	return new SQLConfig($host, $username, $password)
}
Jul 15 at 23:58, by Danack
$injector->delegate('SQLConfig', 'createSQLConfig');
user895378
morning
@rdlowrey Howdy
15:41
morning
16:22
@salathe oh you bastard :(
@Andrea yeah thanks… now I fell for it too ^^
@bwoebi hah
yo ho
I should finish writing the Typed Arrays tests
16:35
reddit.com/r/PHP/comments/3h3nv8/ircmaxell_tries_laravel/… <-- an interesting way of looking at it
@NikiC that's interesting, but also could get dangerous :-P
@ircmaxell could it?
user895378
> as your audience matures... you should be ready for more complaints, not less.
user895378
^ Universal truism
@ircmaxell reddit.com/r/PHP/comments/3h3nv8/ircmaxell_tries_laravel/… hm. well… it somehow is true for some part, but not really your fault…
@samaYo pong
@bwoebi it's not true, because it implies I ask people to brigade against people that disagree with me
I've never asked anyone to stand up for me like that
16:49
@ircmaxell no, passively/unintentionally I mean.
hence "not your fault"
@bwoebi right, but he explicitly states that I "get people to do it"
which isn't true
Just people jumping on your train
user895378
I chalk it up to the growing pains of a community that historically doesn't grasp the difference between something like laravel and actual engineering ...
it's also what happens when the leader of that community single handedly takes responsibility for the "PHP revolution" as well as inventing enterprise framework features
@NikiC nice. Why Float/Double rather than Float32/Float64, though?
user895378
16:56
Yeah, messiah complex isn't helping anyone
Only person who can claim a recent "PHP revolution" is Jordi.
user895378
Aug 13 at 16:20, by rdlowrey
@Trowski I suspect it's more that Taylor seems universally hated because of his attitude
user895378
@NikiC agree
user895378
Laravel has engineering problems. It's like a poorly-engineered bridge -- you may never notice the problems if the structure is never stressed. But there's a point where your framework leads to this:
user895378
16:57
@Andrea No reason
user895378
And unless you have the financial resources to completely rebuild the bridge at that time you're totally fucked.
It's a code sample, there wasn't any design process involved ^^
i found out what's the problem that the output of my file is wrong.. more about problem here - check UPDATE: stackoverflow.com/questions/32033617/… .. it seems that seek() is problematic and is somehow blocking correct reading of second line in my file. what can i do to solve this problem?
@NikiC Ah
Because it's otherwise remarkably similar to Khronos Group/WebGL Typed Arrays ^^
00:00 - 17:0017:00 - 00:00

« first day (1765 days earlier)      last day (3409 days later) »