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

00:04
@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
00:27
he he he
i was like daf*q
3:)
g8. no more music today ;)
00:56
Sweet hell, Isla Fisher is hot.
I just sat through a terrible movie because she was in it.
 
3 hours later…
user924016
03:41
morning
04:13
is anyone using upvise here?
05:10
hi, everybody, can anyone see this link stackoverflow.com/questions/24348559/… and provide some solution please..
user924016
05:31
@Danack cool imagick demo
Jay
Jay
hey
moin .
Jay
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
Jay
yea, its not working tho
I have session start again using a different session name, maybe thats why?
05:39
session name?
can i see your code?
Jay
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
Jay
Let me try setting the path
its wizard mode I am putting in this update
06:15
morning !
@ircmaxell thanks
good morning room
06:46
would it be a waste to htmlentities() ip addresss if inserted to mysql database?
ThW
ThW
Moin
@ThinkkSo yes and wrong
lol how come?
ThW
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
ThW
06:49
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
06:53
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?
06:56
@ThW so since im using pdo dont escape anything?
i m not sure actually
may be its default
ThW
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ö
06:59
@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
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
07:07
@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.
07:26
in query its ok
i have checked
but it showed me Delölmö in query but in DB its saved as Delölmö
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
08:05
@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?
08:21
Hi everybody... anyone know about shopify?
mornings
mronings
mornings
mornings
08:31
mrningso
meowrnings
mnrnigos
Moarnings
mornings
Miaournings
08:32
mornings
mornings
mornings
Hi everybody... anyone know about shopify?
You absolute ass cactus.
mornings
08:34
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
08:36
;-)
@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++
08:41
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
08:50
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
08:51
@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
08:54
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
08:59
@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.
09:01
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
09:19
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
09:33
@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
09:40
@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
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
09:45
@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
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
ThW
09:49
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..
09:52
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..
09:54
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
09:55
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"???
09:57
@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
09:58
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 (3830 days later) »