« first day (2954 days earlier)      last day (1984 days later) » 

4:51 AM
Night all
 
 
3 hours later…
8:00 AM
conurbation an extensive urban area resulting from the expansion of several cities or towns so that they coalesce but usually retain their separate identities.
 
 
2 hours later…
9:32 AM
I am using CodeIgniter 3.1.8 for an application. When I am passing "#include<stdio.h>" as data from a view to controller, what I am getting is "#include<stdio>" . Missing .h from stdio.h. Please help.
 
 
4 hours later…
1:23 PM
Mornigns
 
 
1 hour later…
2:24 PM
chgrp returns true but doesn't immediately change the group – #77168
 
2:45 PM
morns
 
 
2 hours later…
4:23 PM
0
Q: SQL Syntax on method $_GET

NatalieI get a SQL syntax error: Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-8, 4' at line 1. This happens when i...

Could someone help?
 
@Natalie Use prepared statements and bound parameters
 
4:52 PM
@PeeHaa What you meant? I'm already using prepared statement
 
No you are not
This is not a prepared statement:
$stmtUTP = $db->query("SELECT `title` FROM table WHERE data = 'vm' ORDER BY id DESC LIMIT $startVEP, $maximoVEP");
 
@PeeHaa Oh you was talking about this query, damn i should tryed it, thanks
 
Also I assume your actual query is wrong
Please have a good look at the docs and think about how you limit clause makes sense
Or does not make sense
Pick one
 
5:10 PM
Evening
 
hola
 
What's going on? Doing anything interesting today?
 
About to go out for dinner :)
And wrote some code
So nice and relaxed weekend
You?
 
Nice.
Sitting in parking lot. Wife in store buying something that is on sale. Then heading to buy Christmas Tree.
What are you coding on currently?
@PeeHaa Enjoy your dinner.
 
5:28 PM
@PeeHaa i made what you said, and it fixed the SQL Syntax error, but people can still go further the &tabs, example: i have only 2 pages, so the people would only see records on &tab=1 and &tab=2, but they can write on the URL: &tab=3...4...5 etc, and go to that page, sice i only have 2 pages, at &tab=3..4..5 people will not see any records in there. I don't know if it's really a problem (talking about security), what you think? This is my actual query: pastebin.com/efWsmYpk
 
I don't spend a lot of money on clothes... ever. But I don't think I should stop others in what they wear. thecollegefix.com/…
 
does anyone have any cool ways for generating arrays in php?
if I wanted just a dummy array of names, or a dummy array of locations, messagees, animals, is there any easy way to auto generate these?
similar to lorem for html I guess.
 
@Natalie You just have the handle the case when there are no records
@Beefo Search for Faker
 
@PeeHaa I don't get it, what you mean?
 
@Natalie What in specific don't you get?
 
5:35 PM
@PeeHaa "handle the case" i don't know what it means
 
I sort of meant inside my IDE in code format, but thanks I'll still check it out.
 
And on that note I am singing off for dinner
 
@Beefo why?
 
1401
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

 
read this
 
5:41 PM
@tereško Just as I'm still learning PHP and want some data to work with, just saves time typing it out all the name
Sure, I'll give it a read.
 
Morning
 
6:01 PM
What to look for when hiring a PHP developer?
 
signs of brain damage
@SalOrozco it depends on the level of position and the actual type of projects, that this developer will have to work on
 
@Natalie handle the situation/instance/case in which no records exist.
@PeeHaa I thought prepared statements were only necessary when handling user input? (granted, I don't know what $startVEP and $maximoVEP are created from)
 
6:44 PM
@tereško =D
@Tiffany Yeah as long as you know there is not a chance of user input being used in the query- it can be better to use regular queries for efficiency since prepared statements are more resource intensive. Of course sometimes I use them anyway if I already wrote pasted them in and I'm too lazy to change it.
 
6:59 PM
Of course it can be best to tell people to just use prepared statements so that they don't mess up by not considering whether something has user input.
 
 
2 hours later…
8:51 PM
someone, say something interesting !
 
9:15 PM
something interesting
 
I have been reduced to watching a conspiracy videos about earth being hollow with an embedded crispy donut
also, you probably should refund ONI, if you decided not to play it, @Tiffany
you can always re-buy it later
 
9:44 PM
hi all! do you know if is possible to have a preg_replace on a string like
'Bla bla @123{i need this} bla bla'
result
'Bla bla <span data-id=123>i need this</span> ?
 
yes, it is possible
 
i want to apply it only on paired braces, because could be @123{foo bar {}
 
but you have to be careful not to make a "templating engine" using regexps - it would be the wrong tool for that job
 
no, I want to have something like refferences in stackoverflow commenting section
 
9:47 PM
there are tools like regex101.com and rexv.org, that will help you with that
there is the "look ahead" and "look behind" notations in regexp, which will help you
 
@tereško 13 USD isn't that much to refund or however much I spent on it... 13 USD? 18 USD? I'll play it eventually, I need to watch through tutorial videos
I need to be able to devote a few hours to it, which is hard for me to do lately
 
found them, but I am wondering if is possible in a single line to replace the result of preg_match /@\d+{( *[a-zA-Z0-9\-\>]+)+}/ [0] by manipulating -"-[1]
 
single line?
 
or...in other words ... to preserve values, only replace characters
 
side-note: devote is a weird English word. It looks like you'd want to remove a vote from something? but it isn't
 
9:54 PM
@Tiffany that's not even close to being weird: in russian "to mock someone" is the same word as "to undress yourself"
 
I mean without extracting the values before, using preg_match, then preg_replace would be easy...but are 2 operations
 
@BoteaFlorin the values, that you select in parentheses are "capture groups" - google that
 
@tereško baahaha
 
@Tiffany ok, it is not 100% true
that only works for "baltic dialect" of russian
 
I found preg_replace_callback I think will help me
 
10:00 PM
I've drank so much water today. So, I have a mountain of laundry because I've been waiting to start on it until my dryer is fixed, and it was finally fixed yesterday. I woke up this morning to my back door ajar, and my mountain of laundry pushed over, which was blocking my back door. My throat has felt dry and scratchy all day. >.<
 
undress is: "раздеваться" and mock is: "издеваться"
it's complicated
actually I have been observing an odd metamorphosis of russian language in baltic states
@Tiffany I have finished a beer and am about to be done with the bottle of wine
 
@tereško like American English?
@tereško my throat would hate me
 
@Tiffany no, more like how German has been changing
or how Spanish has been changing in LA or TX
 
ah, like languages getting mixed together?
 
yes
but the effect is highly specific on each of the involved languages
Latvian is acquiring all the juicy swearwords, while "Russian" is acquiring generic verbs
heh .. I live in an odd country
there is this phrase in Latvian: "me against my brother, me and my my brother against my neighbor, we against the town"
well ... it a more modern version of an old saying: "Latvian to another Latvian is a wolf" (paraphrasing ... it's an old saying - it contains only 3 words originally)
@Tiffany you can add this "Let's Play" to watch-later: youtube.com/watch?v=bt-UEGr8WMA he makes somewhat decent videos. The tutorials tend to be .. emmm ... extensive: i.redd.it/rtsabsafoaw01.png :D
 
10:24 PM
Sorting referenced array messes last index – #77169
 
10:49 PM
Thread safety is always enabled – #77170
 
@tereško lol @ the image
 
TBH, it basically sums up all of the "system games"
 

« first day (2954 days earlier)      last day (1984 days later) »