« first day (2565 days earlier)      last day (2383 days later) » 

6:00 PM
Vietnam is okay tbh. Not like India or anything.
 
I'm not a huge fan of India. It's not somewhere I've ever even thought of visiting.
 
Thailand is easier, then maybe China/Taiwan -> Vietnam (discluding Japan and Korea)
 
Wes
strangest thing you ate in east asia @Fabor? :B
 
Tarantula
 
@Fabor ?
Is there even meat on it?
 
Wes
6:02 PM
lol. i ate bugs
 
It was meh, that stuff is usually just charcoaled and then seasoned with some spice. So you only really taste the spice.
@PeeHaa Not particularly.
 
Wes
they are like shrimps with slight mud flavor
 
@Fabor I'm waiting to go to China until I can make the pilgramage to Kangrinboqe.
 
Again, flavour is mostly what it's seasoned with.
@Allenph I love China. I always say if you can afford it go to Japan, if not, go to China.
 
@Fabor I'd like to go to Japan too. I have an Anarcho-Capitalist friend that I talk to all the time from there. He's told me I can stay with him if I can make it.
 
6:06 PM
Only thing to note is they treat each other rudely, and they treat you the same. So if anyone is somewhat rude to you, like handing you your change or something, it's 100% normal.
@Allenph Well accom is the most expensive part, so do it, a lot cheaper with a friend.
 
I'd just rather make my pilgrimages and see the ancient parts of Europe and the Middle East before I'm too old.
 
So book it. Talking is one thing, just do it ;)
 
Wes
@Fabor the ones i tried were like fried in flour with some lemon
 
@Wes Sounds pretty nice tbh.
 
@Fabor I'm moving to Colorado in two years. Going to start building a house in a year. After that I'll have the cash.
 
Wes
6:09 PM
i could definitely taste what i was eating though... something unusual :D like shrimps with mostly "shrimp shell" rather than actual meat... with some muddy kind of background flavor :B
 
Be sure you do. These things are so easy to put off. If I had to choose between owning a house and revoking all my travel vs the opposite I would choose travel hands down.
 
@Fabor You can do both. I'd just rather err on the side of having a house and maybe traveling than traveling and maybe having a house when I retire.
 
Indeed, plus you can rent it out and travel. If you're in Asia that'd pay you pretty good for moving around.
 
My girflriend's family is French and part of my family is Slavic...so...I'll end up in Europe before Asia. Haha.
 
@Fabor yeah - I hate it when people hand me my change.
 
6:20 PM
What is "change?"
 
@Danack lol. They may do something like drop it on the table in front of you even if your palm is outstretched.
I've also experienced the complete opposite though. People not letting me pay for a thing.
 
@Fabor Wut?
 
@Allenph Just some oddities of China. Seemingly rude but actually not.
 
@Wes Remember when I said "I like doing it myself and I don't like be constricted by an IDE"? That's why.
 
Wes
6:28 PM
?
 
"PHPStorm just works." ~Wes
 
Wes
it's not a bug.... it's a feature request to do something automatically
i reiterate:
"PHPStorm just works." ~Me
 
@Wes Is there no way to do community packages?
 
Wes
you can but it's probably hard. some do. you can even sell them
 
Yeah...that's why I like Atom. I can generally get whatever I want from the community and if it's not there it's not to hard to hack at.
 
Wes
6:35 PM
install it dude @Allenph
it will blow your mind.
 
Fine! I give in. We'll see what it's like on Thursday.
 
Wes
lol
 
Actually just kidding. I forgot what always happens. You convince me to try it, then I remember it's not open source.
 
Wes
a lot of components are open source
 
You've betrayed your own kind.
 
6:44 PM
hello
I'm doing a flat file cms
 
halp. I reset --hard local commits, I can still see them in the reflog. how do I cherry pick specific commits from the past over current branch (if that makes any sense)
 
3 messages moved to Trash
 
@FélixGagnon-Grenier the commit ids still do exist in your tree
you can just jump back and forth in your reflog to get the old log and cherry-pick them afterwards
 
@FélixGagnon-Grenier Checkout the old commit, create a new branch, so you don't lose it again, then cherry-pick from there.
 
I have one .txt file in unicode with a bunch of lines in it. when I read from it using fgets then echo the lines back I get giberish characters in my page. I have set the character-set of the page to utf8 via <meta charset="UTF-8" /> and <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> but no good. my txt file is also in utf8
 
6:47 PM
ok so
1 - checkout old ref
2 - checkout -b old-branch
3 - get back to original branch
4 - cherry pick commit from old-branch unto original branch?
 
@kelunik reflog is global, branches don't help here
 
@FélixGagnon-Grenier Just git cherry-pick hash?
On the branch you want it in
 
@bwoebi I know. As soon as you have the old head, you can check it out as branch and everything will be as before the reset, because the commit parents will just work then.
 
@kelunik ah, sure. yes.
 
meanwhile, I realize I also commited two commits of work I need on another, old branch
time for a deep breath
...
 
Wes
7:19 PM
i've sent an email to a site i usually visit... it goes kinda like: the scripts make the pages unresponsive, the problem is here
their answer pretty much: "mind your own business, thanks"
guess they are fine with people not visiting their site anymore
next time i'll mind my own business
 
@Wes Our room was frozen. :p
I'm trying to find where you explained all the different unit testing strategies.
 
Ahh. It was in the other chat. Thanks.
 
ThW
7:44 PM
@Wes do you plan to put that into an phpunit extension phar?
 
Wes
@ThW right now i'm extending TestCase at random... though i had a quick look at the plugins (listeners i think?)
 
ThW
It is more basic, you package your classes as a phar and phpunit loads them
 
any of you read Paul ekmans books?
 
ThW
phpunit has an option for the directory it searches for phars. The phars need a manifest xml to be identified as PHPUnit extensions, but that is all.
I build an extension at the PHPUnit hackathon two weeks ago. Hit some walls.
and Phive still is still missing some features for stuff like that.
 
8:10 PM
sooo ... what's up?
 
user1928251
hello can anyone help me?
 
user1928251
???????????
 
probably no
 
user1928251
why??
 
the mistake is in the code ... the genetic one
 
user1928251
8:20 PM
helllloooooooo
 
Wes
@tereško ahahahaha that was harsh
@AndreiClaudiu don't ask to ask, just ask
 
you shouldn't be laughing :P
 
user1928251
ok
 
user1928251
i get the id from database an set a session like this
 
Wes
@ThW might need your help eventually :D yeah i was planning to do it kind-of properly
 
user1928251
8:23 PM
$_SESSION['cart'][$product_id] = array('product_name' => $product_name, 'coin' => $currency, 'price' => $price, 'total_price' => $total_price, 'size' => $size, 'color' => $color, 'quantity' => $quantity);
 
Wes
extending TestCase is not really nice
 
@AndreiClaudiu Everytime you've asked a question so far you've answered it yourself by simply reviewing it more carefully. Be sure to do that again first.
 
user1928251
i did i bouble checked
 
user1928251
double
 
user1928251
:39735203
 
user1928251
8:24 PM
:39735207
 
user1928251
sorry
 
Wes
@tereško i know but it was funny :B
 
user1928251
ok after i used this
 
user1928251
$temp = $_SESSION['cart'];
                    array_push($_SESSION['cart'][$product_id], $temp);
 
8:24 PM
the mistake is in the code ... the genetic one
 
user1928251
it works like a charm
 
user1928251
until
 
Wes
you know you can use punctuation rather than ENTER, right?
 
user1928251
ok sorry i'm used to facebook chat sorry
 
user1928251
on another page i get the id by sending a get request variable
 
user1928251
8:27 PM
so my code looks like this
 
user1928251
$_SESSION['cart'][$product_id] = array('product_name' => $product_name, 'coin' => $currency, 'price' => $price, 'total_price' => $total_price, 'size' => $size, 'color' => $color, 'quantity' => $quantity);
 
user1928251
sorry like this
 
user1928251
$_SESSION['cart'][$the_product_id] = array('product_name' => $product_name, 'coin' => $currency, 'price' => $price, 'total_price' => $total_price, 'size' => $size, 'color' => $color, 'quantity' => $quantity);
 
user1928251
....
 
user1928251
$the_product_id = $_GET['product_id']
 
user1928251
8:29 PM
but instead of setting only the product id sent by the page
 
ThW
@Wes I ported the Ant script from the original example extension to Phing. So I now have can create a phar with GPG signature by clicking the phing target in the IDE :-) At the moment I try to improve Phive on windows, so that PHPUnit can find an extension installed via Phive.
 
user1928251
it sets two ids why is that?
 
user1928251
and it returns array with missing informations
 
I think you do not understand how sessions work
 
user1928251
what am i missing
 
user1928251
8:31 PM
?
 
knowledge, mostly ... also some experience
 
user1928251
ok
 
user1928251
but that session sets some array what is not to understand?
 
ya know, there are PHP groups on facebook, because, since you are not actually able to write a complete thought without pressing enter, maybe you should try there
 
user1928251
why is that?
 
user1928251
8:32 PM
can you help me?
 
what is "a session" in php?
can you explain it using your own words in a sentence or two?
 
ThW
$the_product_id = $_GET['product_id'] reads the product id from the query string, so you can use $the_product = $_SESSION['cart'][$the_product_id] to read the session data for the product. Take into consideration that it might not be in the session.
 
user1928251
a session is a set of data not resource which holds arrays the auto serialize
 
user1928251
arrays or ints or strings or....
 
ThW
@AndreiClaudiu not really
 
user1928251
8:36 PM
if i'm not in the session anyway the session should set right?
 
wat
 
user1928251
what you mean im not in the session?
 
ThW
@AndreiClaudiu the product could be removed from the cart for example
 
Noun: punctuation (countable and uncountable, plural punctuations)
  1. A set of symbols and marks which are used to clarify meaning in text by separating strings of words into clauses, phrases and sentences.
  2. An act of punctuating.
 
user1928251
yes with this
 
8:37 PM
^ have you heard of this, @AndreiClaudiu
1 min ago, by Andrei Claudiu
if i'm not in the session anyway the session should set right?
 
Wes
@ThW unsure what's that phing, phive, phong
 
user1928251
unset($_SESSION['cart'][$the_item]);
 
user1928251
from here
 
user1928251
?delete_item=<?php echo $productId; ?>
 
ThW
@Wes Phive is a package manager for Phars (phar.io) - it is the suggest way to install PHPUnit into a project. Phing is an Ant port for PHP, so a build tool.
 
user1928251
8:40 PM
and from here
 
user1928251
 foreach ($_SESSION['cart'] as $productId => $cartItem) {}
 
ehh, since you are ignoring what I wrote, I guess I should put you in the ignore-list too ... just to clean up the garbage
have a nice life
 
user1928251
what what?
 
user1928251
can you help me or not?
 
Wes
why's that? isn't composer good enough?
 
ThW
8:42 PM
@AndreiClaudiu You're missing a lot of basic knowledge about sessions, php requests, escaping and defensive programming
 
user1928251
maybe but my code is right why isn't working?
 
Wes
the rise of php package managers. scary
 
it won't last
 
ThW
@AndreiClaudiu We don't know your source, only really small parts of it. Some parts we see are bad (like using variables in an URL without escaping).
 
user1928251
i user
 
user1928251
8:45 PM
mysqli_real_ecape_string
 
Wes
composer is good enough, ok? :P
 
user1928251
i used
 
ThW
@Wes well, Phive uses PGP signatures for the phars, adding a lot more security compared to Composer.
 
user1928251
this is my code that works
 
Wes
why not add features to composer instead?
 
user1928251
8:46 PM
<div class="main">
<div class="container">
<ul class="breadcrumb">
<?php
$query = "SELECT * FROM products WHERE product_id = {$the_product_id} AND product_status = 'published'";
$select_breadcrumb = mysqli_query($connection, $query);

while ($row = mysqli_fetch_assoc($select_breadcrumb)) {
$product_id = $row['product_id'];
$product_category_id = $row['category_id'];
$product_subcategory_id = $row['subcategory_id'];
$product_subsubcategory_id = $row['subsubcategory_id'];
$product_brand_id = $row['brand_id'];
 
Wes
i mean i'm sure it's great and everything, but this isn't js :B
 
ThW
Tools are not really project source dependencies, composer is actually a tool dependency that could be installed via Phive.
 
user1928251
and this is that doesn't work
 
user1928251
<div class="main">
<div class="container">
<!-- BEGIN SALE PRODUCT & NEW ARRIVALS -->
<div class="row margin-bottom-40">
<!-- BEGIN SALE PRODUCT -->
<div class="col-md-12 sale-product">
<h2><?php echo new_arrivals; ?></h2>
<div class="owl-carousel owl-carousel5">
<?php
$query = "SELECT * FROM products WHERE product_status = 'published' ORDER BY product_id DESC LIMIT 5";
$select_new_arrivals = mysqli_query($connection, $query);

while ($row = mysqli_fetch_assoc($select_new_arrivals)) {
$product_id = $row['product_id'];
 
Possible array indicies regression – #75433
 
user1928251
8:49 PM
oh so it's a bug
 
ThW
@AndreiClaudiu No it isn't. That was just Jeeves informing us that someone has posted a new issue on bugs.php.net
 
user1928251
aa ok
 
user1928251
and my code why isn't working
 
user1928251
?
 
ThW
So debug it. "Not Working" isn't an error message we can help you with.
 
user1928251
8:52 PM
i already tried thaat
 
user1928251
$currency is set
 
ThW
My main suggestion is that you validate variables before you use them, check them on each level if it is an expected value, if not throw an error. This way you will get a much more specific error message.
 
user1928251
ok thanks
 
Wes
@ThW dunno about that... i just would hate package managers and tools escalating like it did in js
 
@ThW it's not worth the effort
 
ThW
8:57 PM
@Wes true, but looking at was Phive does the separation makes sense. At the end of the day I want some simple, reproducable steps to checkout and build my project.
 
hello guys
 
@Wes we can only hope that PHP developers will have more brains than JS developers and will begin to consolidate the package managers
 
i have a Problem when sending data from android to mysql Using Php script
see Question marks
what is the solusion?
 
encoding issue ?
 
Wes
probably ^
 
9:00 PM
what is the encoding for the input an for the table? (both answers should be "utf8")
 
Wes
set all fields to utf8mb4 in "structure" @HamreenAhmad
also set the db defaulting to the same charset
 
Wat is the deference with utf8 general CI
?
 
@tereško for mysql, it's more likely utf8mb4_whatever, where whatever is the new thing...
 
Wes
that's the collation
 
mysql ¯\_(ツ)_/¯
 
9:02 PM
utf8mb4 is not collation?
 
Wes
unicode ¯\_(ツ)_/¯
utf8mb4 = charset
utf8mb4_general_ci = collation
collation is important only if you are doing stuff like sort alphabetically in multiple languages. otherwise all collations are pretty much the same
 
wasn't there a new charset in mysql?
fairly recently
 
Wes
i don't even know florian...really?
 
ah no, it's just that the default is going to become utf8mb4
 
ThW
@wes I ported the ant build XML for phive to phing as well, so you could use phive to install the tools needed to build phive itself closing the circle
 
Wes
9:04 PM
The utf8mb3 Character Set (Alias for utf8)
The utf8mb4 Character Set (4-Byte UTF-8 Unicode Encoding)
 
i did that
but still problem
 
Wes
java maybe is utf16
try to set the column to utf16 and see if it saves it
in case you'll need to do some conversion
 
9:33 PM
Wrong reflection for mysqli_fetch_all function – #75434
 
9:56 PM
@tereško symfony route matching still has the same problem. it's impossible to define a "top level" route, like /system, to which any and every request beginning with /system, however many other segments are present afterwards, will refer to
unless implement a custom route matcher
 
bull
 
well, is it [possible]?
 
system:
    resource: 'system.yml'
    prefix: /system
 
all routes in the system file now have a prefix
 
10:08 PM
hmmm, yeah that can work
though, I was aiming at something like a full dispatch of the request to the controller, then said controller loads another set of routes and dispatches further, but I'm not sure if that's really optimal
 
sounds like you want microservices, but have commitment issues
 
system:
    startsWith: /system
    defaults:
        controller: Controller\System
        action: dispatch
lol, maybe
I most definitely have commitment issues
that being said, wow, symfony documentation. so nice.
 
I actually have no clue about the docs in general, since I only use three components: foundation, router and dic
 
also, you probably will want to use 4.0
 
10:19 PM
composer defaulted to 3.3
ah yes, 4.0 is still in beta
 
not sure about the changes in routing, but the DIC is now hybrid
 
Wes
i'm on windows... how on earth i have "php" registered in the system's path variable?
i never did that...
 
write "environment" in the start menu
 
and there you will need to add php /bin directory to PATH
@FélixGagnon-Grenier mix of reflection-based and config-based
 
Wes
10:24 PM
no i mean, who the hell registered it for me
i've never added it myself
 
@Wes installed composer?
 
never understimate the power of drunk you
 
Wes
ah yes, could be composer
 
alternatively: are you using choco ?
 
Wes
nope
 
10:25 PM
you should
 
Wes
but must be either composer or phpstorm
composer more likely
@tereško another one? :B
 
it is for windows
 
Wes
ah, nice
 
"choco upgrade all -y" to update all of your shit
(keeping php and node up to date on windows is a fucking pain)
 
... I still use ampps runs away, dodging the nukes
 
Wes
10:33 PM
i have no problems now updating apache php etc... thankfully there's apache lounge
the only pain is upgrading mysql, involves backups and shit
and npm... although i only use it for webpack
 
there are other uses?
 
Wes
right :P
 
tbh, I use a separate boot for development (on SSD has windows, other - arch)
 
Wes
compiling php on windows is surprisingly simple now
anatol did a great job
can even install the dependencies automagically from github
 
... and said arch is currently upgrading kernel
 
Wes
10:36 PM
lol
 
it's actually really easy to do
 
Wes
reminds me of a commitstrip
 
hey, I need a custom kernel, because I am running 290x card
 
Wes
in unrelated news, today i met someone that genuinely thought that "freelance" meant "i'll work for free"
 
wunderbar
 
10:38 PM
lol
 
Wes
need to try fiverr or whatever is called. is someone here using it?
 
no, but but I head that NewYourPost wrote an article about how PewDiePie got some indians to say "kill all jews" on that site
... ya know, hard hitting journalism 'n' shit
anyway
nn
 
Wes
considering that he lost a partnership with disney, it was quite funny news
gn \o
 
o/
commuting home
 
Wes
lata
 
10:56 PM
@Wes .....where presumably you work for a fiver?
 
Wes
i have no idea how it works
just want small stuff though
 
11:42 PM
so... the more I read "Code Complete", the more I realize literally every example of coding from which I've learned was wrong, on all the levels spoken of in the chapters I've read, about naming, design, coupling, cohesion and length
 
Wes
tell me something nice :B
i should read that too
 
yes, indeed. it's really interesting.
 
Wes
i mean tell me something nice that is in the book :B
i wasn't flirting with you.
 
lol
well, tbf you probably know most of it (loose coupling is better than tight coupling. strong function cohesion is better than no cohesion. have routines do one thing only.) but it's somewhat great to have "confirmation"
what made the biggest difference for me to date, it the first chapter, about design, and "PDL" (Program Design Language).
We should take an iterative approach to design, and software construction.
wait, there's a legendary quote, moment
If you look carefully at the popular methodologies - including structured design and object-oriented design - you'll see that each consists of two main elements:
 - criteria for decomposing a system into subprograms
 - verbal or graphical notation for expressing the decomposition
Some methodologies contain a third element:
 - arm-twisting to prevent your using other methods
 

« first day (2565 days earlier)      last day (2383 days later) »