« first day (1346 days earlier)      last day (3617 days later) » 

12:04 AM
@SivSivSree Friday Rebecca Black.
@SivSivSree Or Saturday.
 
@ircmaxell I like that one.
 
@RahulKhosla Friday ???
Oh damn No!!
 
Saturday?
Its her new one.
 
u like RB fan ??
 
NO
LOl
im trolling
 
12:27 AM
he he he
i was like daf*q
 
3:)
g8. no more music today ;)
 
12:56 AM
Sweet hell, Isla Fisher is hot.
I just sat through a terrible movie because she was in it.
 
 
3 hours later…
3:41 AM
morning
 
4:13 AM
is anyone using upvise here?
 
5:10 AM
hi, everybody, can anyone see this link stackoverflow.com/questions/24348559/… and provide some solution please..
 
5:31 AM
@Danack cool imagick demo
 
Jay
hey
 
moin .
 
Jay
Whats the best way to do this
I am in a folder /test/ I set a session user_id
I am in a different folder of the site trying to call user_id
can I bypass using cookie params on the sessiion?
 
sessions are not folder based. it is domain based
 
Jay
yea, its not working tho
I have session start again using a different session name, maybe thats why?
 
5:39 AM
session name?
can i see your code?
 
Jay
well its www.wizardapp.com
I am doing 1.0.1 update
I am trying to call the admin id into the frontend app
$session->get_session('admin_id')
gets the session admin id from the admin folder
I am in the root and trying to get admin id
 
may be your files structure is the problem
try reading the file paths that take to output session variables
EX: if your session output function is in /path_a/session_a.php, then it should call while you are in root too
 
Jay
Let me try setting the path
its wizard mode I am putting in this update
 
6:15 AM
morning !
 
@ircmaxell thanks
 
good morning room
 
moin
 
6:46 AM
would it be a waste to htmlentities() ip addresss if inserted to mysql database?
 
ThW
Moin
@ThinkkSo yes and wrong
 
lol how come?
 
ThW
depends, if you use prepared statements, you don't need escaping. If you build the sql it is the wrong escaping
 
you explode it by "." and parse each element to int and then store
 
yes pdo
so i dont have to htmlentities
 
ThW
6:49 AM
escaping always depends on the target
 
Goedemorgen
An yes, you have to escape if you're the target.
Otherwise you get caught!
 
hello
is there anyone?
 
/me feels ignored
 
do you have an eye?
 
having problem with special character
 
6:53 AM
make that character to non-special
 
there are no special characters, all characters are equal.
 
ya i have :)
lol
Delölmö
in my sql its right
but when its inserted into database its changed
 
but on your website broken?
 
I dont know why
 
ah, so in the database.
which character encoding are you using to built your SQL query?
 
6:56 AM
@ThW so since im using pdo dont escape anything?
 
i m not sure actually
may be its default
 
ThW
@ThinkkSo depends on how you use it
 
well all i want to do is store ip address to mysql database thats pretty much it
 
but in my webpages charset=ISO-8859-1 this is the charset for this Delölmö
 
6:59 AM
@ThW
 
@Hriju is the data you enter into the database submitted via a form on your website?
 
ya kind of
its submitted using ajax
but before submitting its aliright.. but after submitting in the database it gets changed
very strange
 
goodmorning btw
 
ThW
@ThinkkSo Do you use prepared statements? Then no escaping. Do you build the SQL as a string, then you need the specific SQL escaping for that.
 
i have a pdo function so yes as a string
thanks btw @ThW
 
7:07 AM
@Hriju check this and this
 
I am using MS sql for database :(
 
@Hriju this one
 
@Hriju there is also a step between those. client submits the data ---> AJAX Request ---> PHP script takes the request and turns it into the database query, then sends that query ----> Database.
 
7:26 AM
in query its ok
i have checked
but it showed me Delölmö in query but in DB its saved as Delölmö
 
7:50 AM
 
morning all :)
 
@Hriju check the encoding of the database / table / column you're storing that into.
For the AJAX request I have no profound knowledge which encoding is done when exactly for what and with which transport encoding.
 
no .... no it isn't
 
8:05 AM
@salathe how do you show a tag?
 
open square bracket, tag, colon, tag-name, close square bracket
[ tag : something ]
^ no spaces
 
@JanakaRRajapaksha [tag:tag-name] =>
 
voodoo
 
anyone have develop app for upvise?
 
I remember an answer by ircmaxell about serving up files while securing input. Anyone has a link to that?
 
8:21 AM
Hi everybody... anyone know about shopify?
 
mornings
 
mronings
 
mornnigs
 
mornings
 
mornings
 
8:31 AM
mrningso
 
meowrnings
 
mnrnigos
 
Moarnings
 
mornings
 
Miaournings
 
8:32 AM
mornings
 
mornings
 
mornings
 
Hi everybody... anyone know about shopify?
 
You absolute ass cactus.
 
mornings
 
8:34 AM
morgä
 
@selva You just had to ruin it, didn't you? No. No one here knows anything about shopify. We hardly deal with libraries here. You most likely will not get help here. We heard you the first time. Please stop asking about shopify because you are likely not to get help in this chat room.
@Jimbo You waited for someone to break it though, didn't you?
 
@SecondRikudo Yeah :')
That doesn't mean I tempted fate though.
 

asstwat

14 mins ago, 11 minutes total – 15 messages, 15 users, 0 stars

Bookmarked 15 secs ago by PeeHaa

 
LOL
 
@PeeHaa :D
 
8:36 AM
;-)
 
@SecondRikudo: can you help to chat room related shopify?
 
@selva No. No one here knows anything about shopify. That includes me.
I didn't even know shopify until you put it up in this room
 
@SecondRikudo: not in this chat room, any other chat room?
 
@selva None that I know of.
TinyAvatar++
I think 3 times of "I don't know" is 2 times more than what I should have said.
 
@SecondRikudo: sorry, sorry.. what is tinyavatar++
 
8:41 AM
If anyone likes the idea of Space Minecraft, but way more awesome, check out this Kotaku Article
 
@selva it means he blocked you
 
is it a bad practice to use ../?
 
@DilipRajBaral In production code, yes
 
@PeeHaa y this?
 
does anyone no if its possible to check a server address book?
for an email address
 
8:50 AM
Yes possible
 
@monners I have a config file to be included in ../ directory. So should I duplicate the file instead? The file is pretty small.
 
LDAP is one possibility
 
@PeeHaa C-C-C-COMBO BREAKER
Also, morning!
 
@PeeHaa do you need to know the full email address or just the contact name
 
@StephenWolfe my previous app was to check email existence :P
 
8:51 AM
@DilipRajBaral Just reference it from the root folder /settings/config.js
@DilipRajBaral You do know what ../ means, right?
 
@JanakaRRajapaksha I received a bounce back so I have the email wrong.
 
good mornings
 
@monners I was trying to do that. But actually its a folder linked to a subdomain. So when `$_SERVER['DOCUMENT_ROOT']` gives that particular folder itslef.

P.S. I know what ../ is
 
@StephenWolfe you dont need to send emails to check it is exist or not
 
8:54 AM
mailtester.com/testmail.php like that you can check if you mind it
 
@monners I could then again use the site URL itself to include the file. Is that fine? in terms of practice?
 
@DilipRajBaral No, use the root. Relative paths are bad. URL is also bad, because it's not modular for the same reasons.
 
@StephenWolfe greenend.org.uk/rjk/tech/smtpreplies.html if i got you correctly, that list what you need to know
 
@monners by root you mean? Server variables DOCUMENT_ROOT didn't work my case.
 
@DilipRajBaral Then there's something wrong with your code and I can't help you with that
 
8:59 AM
@JanakaRRajapaksha how do I find out the correct email?
 
Also, strictly speaking, I'm talking from a front end perspective
 
@monners Proabably yes. I should redesign the directories maybe. Thanks for the help. Have a good day. :)
 
@DilipRajBaral you're welcome. Good luck.
 
9:01 AM
EX: in cmd, telnet mail_exchanger_domain.com 25
HELO your_domain.com
MAIL FROM: <your_email@your_domain.com>
RCPT TO: <email_what_you_need_to_check@its_domain.com>
if it is exist it will give you a ok message with 250 code. see the code list i sent you
 
Morning
 
9:19 AM
ginmorns
@monners So require_once __DIR__ "/../vendor/autoload.php"; is bad practice?
 
nothing works :9
;(
Delölmö is not inserting into DB correctly
how to set charset in MS sql
 
how many special characters are there?
 
@JanakaRRajapaksha A lot
 
two
 
9:33 AM
@Hriju replace them with some character set which you can store and view. and again replace them with respective ones to show your special characters.
 
11
Q: PHP + SQL Server - How to set charset for connection?

MauriceI'm trying to store some data in a SQL Server database through php. Problem is that special chars aren't converted properly. My app's charset is iso-8859-1 and the one used by the server is windows-1252. Converting the data manually before inserting doesn't help, there seems to be some convers...

Use your SO-fu
 
Ex: OO for o^ and so on
 
@Ocramius Herro, If I want to use Doctrine in a websocket / event-loop, I'm guessing I'll need to turn on proxying on a per-request basis? Associations seem to be having problems when in this context.
 
I have the following regex to check and see if a string has numbers and commas, how can I check and see if there is anything that doesn't match the regex within the string. So 0,1,2 would return false because it has only things within the regex, but 0,1,a,2 would return true that it has things other then what follows the regex
/^[0-9,]*/
 
I am using MS sql
 
9:40 AM
@BrandonGelfand you need to match until the end of the line or something other that is specific. Right now it will just match what matches the regex and then stop (and thus return true as it found something that matches).
 
340
A: Matching numbers with regular expressions — only digits and commas

tchristWhat’s a Number? I have a simple question for your “simple” question: What precisely do you mean by “a number”? Is −0 a number? How do you feel about √−1? Is ⅝ or ⅔ a number? Is 186,282.42±0.02 miles/second one number — or is it two or three of them? Is 6.02e23 a number? Is 3.141_592_653_58...

TLDR: it's complicated
@BrandonGelfand Also your regex will always match, since you made everything optional with *. It means zero or more times
 
@HamZa Alright... so may I ask what you suggest to make sure that the string only has numbers and commas?
 
ThW
@BrandonGelfand do you mean DIGITS and commas?
 
@BrandonGelfand Define "numbers", also is ,,, valid? What about 11,,22?
 
Ok, @ThW @HamZa I will rephrase it, Digits and numbers, i.e. This is valid: 1,2,3 This is not: 1,a,3
@HamZa The extra commas won't matter, I am using explode to form an array and then during the foreach checking if empty
 
9:45 AM
@BrandonGelfand ~^[0-9]+(?:,[0-9]+)*$~
@BrandonGelfand A big loop with preg_match() is horribly slow
 
@HamZa Its only one string
Only 7 numbers long max
 
@BrandonGelfand Ok, show the complete code
 
ThW
(^[\d,]+$)D
 
@ThW Oh, nice use of D :D
 
@HamZa
if(!empty($_GET['dow'])){
    $days_of_week_to_filter = explode(',', esc_sql($_GET['dow']));
} else {
    $days_of_week_to_filter = '';
}
 
ThW
9:49 AM
btw preg_match_all('(\\d+)', $in, $matches) will get all groups of digits from a string
 
I am using the regex as a form of data validation
esc_sql works as sanitization
 
@HamZa Awesome answer
 
@BrandonGelfand You didn't check if $_GET['dow'] exists...
@PeeHaa Right :D
 
good morning
 
it would have to if it isn't empty, otherwise it would do the same thing..
 
9:52 AM
priblic function resolve($base, $target) {} <-- apparently my fingers are indecisive as to what visibility this method should have
 
That thing just deserves a bounty
 
is isset really necessary? @HamZa
 
@JoeWatkins github.com/krakjoe/phpdbg/pull/92/files looks fine to me except the author field as it's mainly just manpage-formatting of help options...
 
@PeeHaa @SecondRikudo will slap me if I gave another bounty :P
 
@DaveRandom for public method, it has such a bad name..
 
9:54 AM
hmmm cannot add bounty ?
 
:17314228 a) tags cannot contain spaces b) iirc the only chars a tag can contain are [a-z0-9-.]
 
also chat.stackoverflow.com/rooms/1/sandbox if you are playing please
 
Btw, lately I'm using this $foo = isset($_GET['foo']) ? (string) $_GET['foo'] : ''; . What are you guys using? The (string) cast is used for some scripties who might fiddle with arrays in the url...
 
@DaveRandom ok noted
 
9:55 AM
Bounty intarface fail
 
@HamZa Thanks again :)
 
@AlmaDo Not sure. Uri\Resolver::resolve() - does the namespace not make it clear enough what it does?
 
@BrandonGelfand np
 
Maybe resolveAbsoluteUri() actually
 
@PeeHaa "4 more to go"???
 
9:57 AM
@DaveRandom So, it expands a relative to absolute?
 
@DaveRandom yes, with namespace - it does, but I'd improve it (resolveSomething - that I'd use)
 
$request = new HttpRequest($_GET, ...);
$request->get('foo');
 
@HamZa yeah. my text was too short
 
@PeeHaa lolz
 
@DanLugg in a nutshell
 
9:58 AM
Uri\Resolver::expandRelativeToAbsolute(Uri $uri)
 
@Patrick wow first time seeing that... Let me try it and RTFM :P
 
@DanLugg maybs
 
Long name is long, but good name is good.
(not saying my particular choice is good, but a more descriptive one at least)
 

« first day (1346 days earlier)      last day (3617 days later) »