« first day (1261 days earlier)      last day (3912 days later) » 
00:00 - 18:0018:00 - 00:00

00:11
@ircmaxell @DaveRandom How stupid is it to unserialize data coming from oauth services? (as in unserialize()). I doubt more services do this stupid stuff, but for example mailchimp provides serialized data (optionally) so I want to unserialize it to present it to the user
I wouldn't do it
Specifically PHP serialized data?
yes
it opens attack vectors due to unsafe classes
That's seriously stupid
00:12
That's what I thought
What if your endpoint is not PHP driven? what are you supposed to do with it then?
@DaveRandom You missed the optional part ;)
default is json :)
Definitely go with the JSON, far too much potential for unwanted magic with the serialized version
So basically if I want to prettify it I just have to parse it myself aight?
@DaveRandom Not up to me. It is for this where users can choose themselves
OIC. Personally I'd probably just ignore the fact that they even present it as an option, if you present it as an option you're just perpetuating their stupidity
00:16
Valid point
What is it about dental product adverts that means they can only feature people who you just want to punch in the face
PHPMyAdmin is giving me a user permissions error when trying to import a database, saying it can't access a file. Any idea why this might happen? I'm quite sure I should have access to it. Could it be because a user in the databases doesn't match or something?
I doubt the error message is "can't access a file"
@PeeHaa Access denied for user 'user'@'localhost' to database 'database_name'
00:24
...
ok...... so...... does the user have access to the database?
Ah, I suppose it's because "@localhost" does not have access to the "@newservername" files ?
By the looks of the error message it seems somebody doesn't have permissions to the database ;)
lol
how can I make the usernames match through the SQL file?
would find and replace work?
Are you using a privileged user to do the import?
Yes
Let me check to make sure I can create a new db
hmm, clicking "New" database doesn't do anything... It just says "loading" then comes up with the db names
@PeeHaa Is there a way to directly check the permissions for the current user?
00:34
The most direct way would be to look in the mysql db
I swear I'm going to switch to nginx this weekend, I swear xD
I keep procrastinating. That, and of course, using HHVM
I guess it's more of a want than a need...
@PeeHaa raise it as an issue
@PeeHaa not a gif
@PeeHaa It seems to be because the DB already exists
@ircmaxell Yeah good point
@ircmaxell Also good point :P
00:48
:-)
@PeeHaa Do --s in SQL have to have a space following them?
I have no idea what --s is
A comment xD
--
I should have said "does -- in ..."
Yes it should
 
1 hour later…
user924016
02:43
Good nighhht
04:42
Morning
user652649
lambhorghini ? :P
user652649
front is mitsubishi-ish, back is delorean-ish xD
Your effort ?
user652649
yeah
Awesome mate :)
user652649
05:08
meh, drawing with mouse is hard
05:53
@Wes drawing is hard. Oops, I wanted to say impossibru for me. :p
This wasnt really drawed by mouse, was it?
 
2 hours later…
08:00
@rdlowrey mtdowling.com/blog/2014/03/29/guzzle4 <= How does this thing compare to Artax nowadays?
@NikiC It uses curl per default and normal streams if not… can't be better than Artax
08:22
what is wrong in this statement INSERT INTO LoginHistory ('user_id', 'login_date_time', 'useragent', 'ip', 'xForwareded') VALUES (?, ?, ?, ?, ?)
quotes vs. backticks?
WTF
ya, i used single quotes: '
now, after removing it, no more error!!!
thanks a lot :)
apples vs oranges
oh .. you probably were talking to the little red avatar
I'm talking all over the place.
Morning
08:31
morning
'morning
08:46
mornin'
09:34
morning
user924016
10:19
Morning
10:34
Has someone found an alternative for the new Opera ? //cc @tereško
@HamZa have been moving to firefox slowly
I see ...
though, I am still using 16.12 as primary
I miss tab stacking :(
i think it's part of tabmix extension
10:36
Is this Q suited for SU ?
^ not sure how to close it ...
voted
10:59
^ hehe
11:16
31
Q: Do Russians smile at each other?

toyI'm planning to go to Russia. For my culture smiling is really common even to strangers. And I heard that Russians don't smile or laugh unless it's something funny or something that make them happy. Will it be strange or will I insult anybody in Russia if I smile?

11:56
hey do i have to poll a mysql database every second to get current updates using nodejs or is there any other way?
@HamZa We need @AlmaDo to confirm.
@Fabien Is he russian ?
I want to create a draft for a regex reference. I think I might put the draft somewhere on github. Question: Where should I put it ? Should I create a repo ? A gist ? I want markdown to work when previewing the draft
//cc @SecondRikudo ^
@HamZa If it's just one question/answer pair, a gist is enough IMO
@SecondRikudo Sorry to bother you :) . But how do i make logged_id older, to then select other newer_id . Example logged_id to chat is entered ,then no one entered again , How can i prevent my ajax call to not select it again this last logged. Im triggering the last id so i dont want trigger it again and again , any idea :) ?
@echo_Me Assuming ID is sequential, and you have latest_id = 42 for example
Just query for WHERE id > 42
12:03
yes , i know , but this 42 , how i make it older ?
@echo_Me What do you mean?
Let's say that by the time you requested, IDs 43 and 44 occured.
So the server will reply with 43 and 44
Now latest_id = 44
ok , im there , you know im triggering the last id , did this will stay triggered everytime if no user entered ?
forexample , i SO last id of new user entered , it falls down new box of that user, so if no one entered did this box will fall down everytime of that last_id ?
@HamZa Yeah
@SecondRikudo or maybe : when user enters chat , then query database and insert that record , and then select that record and update that record in other column lets say Seen column to yes , so next time when new user entered that column is not seen , till ajax query it and update it to seen ?? like that the idea ?
so next time ajax will not get Seen again. im just thinking how , i never done chat script before.
12:18
@Peter help neeeeeeded here
6
Q: Wordpress - Best Practices for Making Simple Web Services

Hassan MagdyI am creating a simple web service using WordPress without any plugin or any third party just simple php file placed in site root that receive params and connect directly to WP database via require_once('../wp-load.php'); and query all data from database via global $wpdb, $live_site; $data...

lol
why is there "wordpress" and "best practices" in same sentence ? — tereško 8 secs ago
also, FYI, even is you use prepared statement , it will not protect you against SQL injection if you use them like:
$wpdb->prepare("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = '".$sessionData['userID']."' AND meta_key='last_login_time'")
@tereško can you cut your hair ? i always think you are a woman :)
@tereško you obviously are not aware of wordpress' awesome auto-sql-injection-sanitization-features :P
@echo_Me hehehehe
@echo_Me welcome to 2014 - adapt or go back to the 1920's :P
12:25
@echo_Me that must be a terrifying issue IRL .. have you considered getting glasses to save you some awkward moments ?
@Ocramius so the adapt is to look like a woman ? :)
@echo_Me Whoa, hold on a second... @tereško is a dude?!
good morning
@tereško it's like In` and Yan` concept (:
@echo_Me dunno. I have much longer hair than most women anyway :P
:O
then i prefer 1920
was better time
12:26
@Ocramius are we still talking about head hair?
@salathe wanna find out? :P
@Ocramius well ... I restrict mine to shoulder-length, because after that there is this long period of "getting caught in shoulder-straps"
@Ocramius Let's leave it to my imagination. :)
@SecondRikudo any suggest on what i said ? is it true or im wrong in something ?
12:28
@tereško yeah, annoying indeed... I don't use backpacks since a while tho
@tereško Oooh, sexy ladies.
its changing period now , man will have long hair , and woman with short hair :) .
fake period.
@Fabien well, you should specify the place. Because we have two countries here: Moscow and Russia
man is loosing his looking by time , before with mustache now they shave to look like woman :)
@echo_Me works for me as long it's no-homo (in my regards)
12:33
@echo_Me are you muslim or from Turkey/India ?
@Ocramius with makeup hehehe
hehehe
@tereško Muslim
that explains the obsession with hair
@HamZa eff yeah!
@Ocramius E_IMG_LOWQUALITY :P
12:35
yay , 80s
@HamZa look this
@HamZa idd, that was reeeeally bad :P was hoping it picked the cached one
with make up also :) , what a period :) !
no big deal imo :P
yeah , next thing you know they will be giving rights to woman and stop cutting heads of for atheism
12:36
I also had long hair, well +20cm long ? Anyways, it was curly ...
@tereško gawd, now you are being BLASPHEME!
and this woman
@tereško lol, me don't want to enter into that discussion.
@tereško :P
woman shave and man makeup :) , exchanges :)
12:37
@echo_Me does it bother you ?
no , never bother me :)
so why do you give a fuck?
are you bothered @tereško ?
no, only disappointed in modern society and how far it still has to go
@echo_Me I was kinda wondering why you gave a fuck when we started the discussion tbh :)
sorry i dont give a fuck
.. rait
@Ocramius its you who started it when you mentioned 2014, and 1920
meh, nvm
And today I'm fixing an app that uses dynamic include_path everywhere \o/ yayyy! (not)
12:43
@Ocramius I hate these absolute paths… include_path including . ftw…
@bwoebi I usually set_include_path('.'); and that's it
yes that's what I mean?!
yeah
I love this guy
12:50
woah, why didn't I know this one before?
@Ocramius you didn't ?
@HamZa he know it , he just want to mention it undirectly
@Ocramius ahahahaha
@Ocramius eek. code should always be independent of include path
12:55
Yeah, well, at least I get paid for it
14 hours of not-even-a-single-brain-cell-used-to-fix-this so far
Also, happy birthday @bwoebi :) You're 18 now?
congrats, now you can legally drink beer in EU ... or legally go to war, if you happen to be in US
@bwoebi I may suggest beer :) Happy bday :P
btw , someone stole my usb flash with all my password and private keys
there was also some other crap, but those files were not important (DnD charsheets, some wallpapers and mp3)
have to reconsider my approach to security now
13:14
stole it how?
Why not have the usb pen TrueCrypted?
because I have never bothered to think about it
fair enough
Well TrueCrypt is one of the best i think
13:41
yeah .. well .. this seems to be standard case of "rude awakening"
Also a great opportunity to update/reorganise all your passwords
true, especially since none of accounts has been compromised for now
I suspect that person who took the flash has no idea idea how much access he/she actually got .. hell .. it probably was an Apple user because of the nature of place from which it was stolen
Indeed. Probably just looking for a free pen drive.
14:00
/me is back to working on DI container
the current reactions: "well .. that was to easy to be correct"
Are you making one?
BTW you watched Mushishi right?
The one about ghosts? I tried 5+ year ago .. did not like, have not given it a second try
or was it only manga back then .. cannot remember
Not so much ghosts but entities that are not visible to normal people. The main character is a specialist who goes around helping people being affected.
You should check out the anime if you can't remember much. Anyway, they just released an OVA special.
yeah , that's the one
maybe I will give it a second try when I have some free time
what was the name for tests that where for checking if multiple components interact correctly?
functional? integration?
I am drawing blank
@tereško If it is about whether the play nice together as oposed to the indiviual units integration
14:16
@PeeHaa wut .. please translate
I honestly failed to understand what you said
Yeah that was far from correct English usage I have to say :P
integration tests are the tests where you check whether the components place nice together
that's the one then
and as for DI container ... for some reason I wrote ~10 lines, and the simplest usecase just started working
it shouldn't, but it works
I probably will have to write some tests
14:46
So here's my regex reference. It needs a lot but it's a start. What do you guys suggest ? Ask permission on meta and post it ? Improve it by adding more links before going to meta ?
@tereško just probably :D
@HamZa I would just improve it with more links and post the question on main I think
15:03
@PeeHaa I think that I need to post a lot of answers to complete it ...
Already having a decent list of answers and links to dupes will help the cause of not having it closed right away
Hmmm true ...
I'm tired to work on it now
I will maybe continue later on
@tereško why? A DiC is really simple to implement if all you require it is to be a container. I'm not too familiar with PHP reflection but with C# I'd just have it configure based on one config file that initializes the DI and then reflectively fill dependencies as arguments - unless I'm using it as a part of a framework in which case the arguments would fill from DI when called. Maybe you want your container to do more, I don't know.
> I'm not too familiar with PHP reflection but with C# ...
this where you lost me
Why? I don't see why the same thing wouldn't apply. When talking about objects of course.
JS for example would make me have to wrap every function that's injected with the container with a wrapping function, or preprocess a whole chunk and walk the syntax tree - not fun.
15:10
i was looking for some cakePhp conversations :D
RoR has its own room why not cake :O
Unless you want confirmation that it sucks you won't find a lot of love in here I'm afraid ;)
@Ankan-Zerob do you like cakePhp?
a lot :D
2.x though
@Ankan-Zerob do you think it's a good mvc framework with solid battle tested abstractions?
I just started web-app dev a few months back, was doing enterprise code in java before
battle tested ? :S
15:13
trustworthy
I'm no where as near as experienced to comment on that, but yes cakePhp feels very hack like after reading django docs
maybe 3.x will resolve stuff and move a little ahead
You honestly don't want to know what this room thinks about CakePHP :P
really people dont like it?
This room isn't favourable to many, if any, generic frameworks
Not really, disregarding "better frameworks" like Symphony and Yii, people here are not framework fans (in most rooms too :P)
15:17
the entire mvc hoopla specifically or frameworks in general?
Here is a free hint for you: stay away from CakePHP. It's one of the worst frameworks in PHP and it definitely does not implement anything remotely like MVC. If want to use something that at least recognizes concept of "services", you might try Symfony2. — tereško Jul 26 '13 at 14:34
what does "enterprise code" mean?
@CSᵠ It's written in xml and served by SOAP
lol
15:19
@PeeHaa only good SOAP today is the kind you wash your hands with...
ok aplogies for on-the-fly jargon coining, I meant the huge muzzle of code you need to go through and tweak and write a few modules here and there in a massive B2B project
all i required was core Java
there
Java sucks :D
Then again, I like java
haha
php is incredibly criticized in the web and compared to python and other languages with specific "coding horror" snippets
what do you guys think about it?
I think PHP sucks, but I'm in minority here - most people here like PHP.
PHP doesn't suck IMO. It simply allows people to suck.
15:23
The quality of PHP code is entirely dependent on how bad the author of said code is.
@Fabien In all fairness PHP does suck at times
php is a tool, a good one really
it doesn't super-glue to your hand to use it the right way...
hey
:))))))
15:24
:D
Lots of things suck about many languages, php's main downfalls are the shit ton of inconsistent c like half broken APIs, the indecisive type system, speed and the per process because leaks model, and etc.
booo @JoeWatkins
module loading, etc.
@PeeHaa I have no point of reference to know that yet :P
15:25
@JoeWatkins let's just agree PHP is as good and fun to code in as C, cool?
for example when adam angelo moved out of facebook with a lot of php experience, he chose the python ecosystem with stuff like tornado to build Quora on
@BenjaminGruenbaum you can fix those inconsistencies yourself now ...
You like both, I like neither - so we're both happy.
@JoeWatkins I do, by not coding in PHP :P
I'd rather code a year in PHP than 2 months in C :D
Why am I being served the german php.net site???
haha, nice speaking to you guys, catch you all soon - unfortunately i have dived into web app dev with cakePhp and must see my friends startup project through completion with this
15:28
(Also, I never got why most php frameworks don't ''compile'' their development separated code into something faster that flattens the OO of things like routing etc in production (like macros etc), but meh)
@PeeHaa overloperrrrr
I'm not really bothered about the order of parameters, I find it difficult to remember yesterday, but not the order of parameters to stuff I use all the time ... should I get a bump on the head the manual is one click away ... it's a silly thing to complain about ...
Horrible
@Ankan-Zerob enjoy bad coding :P
haha thanks benjamin :)
oh but on the other hand something neat came out in javascript
by GNU!
EaseJs
15:29
@BenjaminGruenbaum C is more fun ...
@Ankan-Zerob you'd be better off and faster if writing in pure php
@Ankan-Zerob horrible :D
@BenjaminGruenbaum useful for a very small amount of code, I wouldn't like all params to be named, that raises the number of things to remember overall
15:30
@JoeWatkins yeah, C is full of awesome and has features () like void pointers, general pointers, cleanup gotos and no real strings :) ( definitely not design flaws)
@Ankan-Zerob that's really really bad.
im excited that free software foundation took this out in its great mission :P
@JoeWatkins true and fair enough, but disturbing after getting used to another lang that is consistent with params
@Ankan-Zerob if you want JS with classes use typescript
EaseJs is bad ? :S
FSF would have done some good right??
Yes. Quite.
Not always no, lots of bad code was written by the FSF too.
15:32
ouch
Free tip - Learn languages and abstractions and not frameworks.
4
and i thought they using auto tools in javascript was impressive
Tools like EaseJS don't understand the problem being solved so they try to imitate a solution to a problem that seems the same in another language. They totally miss the point imo.
well out of my league to commen
comment
on the other hand I came across something funny
thanks and goodbye all
bye stranger
15:37
@Ankan-Zerob wow
@BenjaminGruenbaum C is too simple to really think it has design flaws ... it's not that kind of language ... you could say that something like Zend, written in C has design flaws, but you can't really say C has ... C is just the tools to create implementations, it's not an implementation of anything ... higher level languages, java, C#, not same, they are implementations of something, they are meant to contain and or be your framework too ...
you wouldn't say that assembly is flawed, because it's not it just is, c is only one step away from assembly, a lot of the time it is assembly for a little while ... it doesn't seem right to say C is flawed ...
@JoeWatkins of cpurse assembly is flawed, just because machine code is not.
or is it?
why just 2 bits?
utter rubbish
but you wouldn't say that it is flawed ... it's extremely difficult to use, hard to write, comprehend, get right and debug ... but you still wouldnt say that any of that is because assembly is flawed ... that's what I mean by it just is ... if you want to work at that level you accept those things, same in C, you accept how it works if you're going to work with it ...
15:47
indeed
16:28
@JoeWatkins that's a blunt lie.
There is a lot of things in C that could have been done so much better.
Assembly too, but that's irrelevant.
To name a few things that completely suck about C:
user924016
lol
- no nice namespaces or similar facility, struct alternative horrible
- bad enums, bad guarantees in enum flags
- weak structs, stupid syntax with typedef struct.
- No desturctors or a way to perform RAII, very weak way to acquire resources in a language that where code has to solve this problem all the time.
- void pointers, nuff said.
- poor built ins, poor strings.
- pointers, are just broken, the fact you can return a pointer to a struct variable you just allocated from a function and it won't error is plain horrible.
Wow, that took longer to write, I had to make myself stop, I could just go on for hours... @JoeWatkins
It's not extermely difficult to use, it just makes you write a lot of ugly, non type safe, verbose, shoot yourself in the foot, code. A lot of progress has been made in understanding coding in the last 40 years. Check out Rust, or even C++
C++ solves most of those problems.
It has namespaces, enums, classes, RAII, solid pointers and references which solve all those idiotic null checks and pointer semantics, strong standard library, smart pointers, free/delete with constructors/destructors (plus you allocate a lot less on the heap), a solid templating system, type inference, strong libraries, lambdas, exceptions and exception handling with stack unwinding, streams, operator overloading, strong containers, etc..
C++ still has plenty of issues (often, because of its similarity to C) , but it solves a lot of c's ones.
@JoeWatkins You made my bogometer explode.
Morning
user924016
Morning
@BenjaminGruenbaum Does one write stuff faster with C or C++? Asking because I don't write C++ and my only real-world usage of C is mostly strongly coupled to zend...
17:14
@NikiC Yep, I am now 18 (birthday was yesterday)
@Ocramius nooo, not beer…
@bwoebi What's so bad about beer.I mean I also like stringer stuff better, but beer is also nice
I just drink none, that's all.
Beer is for designing, coffee is for coding
4
I hope you are talking about designing infrastructure and not designing as in sitting in the starbucks and am a hipster designing ;)
haha, indeed :D
17:19
@Ocramius no. Apple juice is for both. (Ramseier)
@bwoebi Happy birthday slightly later.
18 year olds who don't drink. The world is getting mad.
@bwoebi Aww you're so young... happy belated birthday :)
17:34
@JoeWatkins I definitely don't agree there
@RouvenWeßling ...
@salathe don't worry, I'm getting elder too…
another productive weekend =_=
@bwoebi After 20, you'll feel you are getting old. :)
I don't need you too @ircmaxell ... I wasn't saying it wasn't flawed but that you wouldn't say it ... apparently some people would ... I'm not sure what kind of person expects C to have namespaces ... who looks at C and thinks this would be better with namespaces ...
nobody, I'm glad other languages exist that do have namespaces, but I wouldn't want to ruin C with all the stuff I find useful at high levels ... complaining that it's weird that you can return an allocated struct from a function displays a kind of ignorance, and is just ranting ...
user924016
I would not complain that standard lego bricks are not round
17:55
28
Q: Attending interviews "to stay sharp", if you reject an offer, and then apply again later - wouldn't this harm your chances of being hired?

Ruslan OsipovBackground: I am a software engineer. As a part of my responsibilities I am doing technical interviewing in the company I currently work in. I am happy with my job and am not looking for a change of employer at the moment. I recently had a talk with a person who mentioned she often attends techn...

^ Someone got time for that ?
00:00 - 18:0018:00 - 00:00

« first day (1261 days earlier)      last day (3912 days later) »