« first day (1018 days earlier)      last day (4156 days later) » 

00:12
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Maciej Czyżewski.
*/
00:38
I prefer BSD license in favor of this one.
They basically are the same, only BSD license add "you cannot use my name for advertising", @MaciejCzyżewski
01:09
Is it possible to select from an array of datetime objects in some sort of SQLish manner?
Like I can grab only the certain records I need from the DB using where on the timestamp, but it gets returned as a datetime object in an array. I'd like to be able to pull the data from the DB once in a big array and then be able to select from that array instead of hitting the DB multiple times.
01:50
blah
@ircmaxell blah blah blah
@gr4devel Sorry, yes that is me. I was in a meeting then had another meeting, just got to a computer now :-D
02:53
Hey everyone! Does anyone know of a good drag-and-drop upload framework that works well with https/SSL??
I tried blueimp's jquery drag-drop but it fails miserably under nginx + php-fpm setup
How does SSL change its workings?
it cripples the entire thing -.-
first I tried changing all http references to https, okay, that worked, but then for some magical reasons the file didn't know which directory to save
SSL or not shouldn't make a difference; if it does, it's caused by something else.
try blueimp.github.io/jQuery-File-Upload under https, change all the http references to https, and voila, nothing works :P
hmm yea I thought so too
I ran mine of https
it didn't know where to save :/
SAD
Wow, they made it so nice and colorful now.
02:57
FAIL = ME
lol it is pretty :>
and I get error|abort every time I try
I've used blueImp for a while, but I decided to rewrite the logic for my own project.
apache or nginx?
At the time, chunk retries didn't work very well.
web server shouldn't matter, but we use nginx for almost everything.
ya me = nginx too
a long time ago I used IIS
if I remembered correctly they have http and https content in different folders
with nginx is just a rewrite rule that forces everything on 443
i've only ever used apache... where does nginx shine over apache2
03:02
@Orangepill It depends on what you're after.
pure performance
For one, the configuration for nginx is a whole lot saner than Apache ;-)
apache is like a swiss army knife
J L
J L
hey all...on the websites you've built, how much personal information about yourself do you put on there (you as the creator)? Email? Social Media? Full name?
comes with all the modules u will ever need, but slow(er)
03:03
Since the JS room is pretty inactive, I'll ask here:
in JavaScript, 1 min ago, by TheGuyWhoCouldn'tTalkToTheGirl
Would anyone mind taking sometime and explain me a few parts of a javascript project? I need help understanding the code.
and nginx is like a sharp combat knife
it does only 1-2 things, and it does it very well
comparison apache vs nginx
imo nginx feels lighter
@JL That's very subjective.
sigh I guess no one here either :(
which is perfect for my 1GB mem DigitalOcean node :O
I'm a hobo (Y)
J L
J L
@TheGuyWhoCouldn'tTalkToTheGirl Do you have a jsfiddle or something we can look at?
03:05
@JL You can leave all that stuff in a human.txt file
@TheGuyWhoCouldn'tTalkToTheGirl what's happening?
@JL Just sharing Twitter handle might be enough, but it all depends on what's comfortable for you :)
blueimp works perfectly fine under windows, wamp, no ssl
but if linux, nginx, ssl, = no work fine
@WilliamYang So what you're saying is that the file contents are not uploaded at all or what? Have you checked server responses?
J L
J L
@Jack In your opinion, does something like that belong in the footer (displayed on every page) or in a separate "About" page
03:09
how do I do that? :> well I do kind of know log php output
but I'm lazy :L
I'll go back and try again
and if that didn't work I'll pull my hair till I go bald
If you're too lazy, it's probably not very important.
nah cuz I am back from 2 hr gym
@Orangepill Please come to that room that I shared the link of with you.
brain is up, but muscles are like... lol
StackOverflow should integrate more "social networking" elements
then I could quit waiting on facebook and spend my days here instead
Facebook? Isn't that an SO plugin?
03:12
lol
I think their revenues from mobile advertising = those "sponsored" posts
adblock won't work on them :(
yeah https/ssl is the culprit I think
I turned ssl off in nginx default.conf and everything works
with ssl on = boom crash
It doesn't look like SSL itself is the problem.
:3
iOS is so confusing
I wish UI design is as easy as jquery + html
but it's not >.>
@williamYang are all your assets being included via ssl (css & js )
HAHA It worked :D
I am like the biggest idiot on earth
set nginx folder permissions = 777
profit!
Linux... man.. I am so rusty, it never fails to suprise me
Morning
03:26
Good night
from canada
where polar bears roam streets + attack ppl
Sure, permissions 777 solve everything lol.
Yea dun wry, we get attacked by tigers here
Same reason why people get attacked by other people I guess ;-)
Ahohoho
now that uploading works, trying to write that file to a samba share is going to be tears
hamachi + samba = hardest girl to date
not that I could date any
Someone reminds me of tredged here...
03:34
Hey anyone is there a "pseudo" folder in Linux, how to do?
pseudo folder?
I KNOE there is one, like, file > folder = file > samba/somewhere
hamachi lags quite a bit
symbolic link... or a mount?
yaa that's what im looking for
tanks
wait but like
that "folder" has to be inside a real folder
aww damn okay good night ppl
canada = boring
plus no android 4.3 OTA
which is a bummer for now
Don't take this the wrong way, but I believe your mind is as coherent as a kid on coke.
03:40
@jack what's the right way to take that :)
Not .. sure :)
Did someone here ever use appfog?
They say in their blog, that they are supporting cron jobs, but I can't figure out how to set them up.
Not that strange ... just bad configuration lol
04:04
more-ning all :)
morning
04:33
@Orangepill extract is nice function. +1 . I never used it.
I always use it for templates.....
Are you using any tool for creating template?
function ($variables, $template){
    extract($variables);
    include($template);
}
I don't use any abstractions like smarty...
php is a template language
kk. I really hate smarty. :)
I can see the need in certain situations ... but I am usually also the template author so I don't need to hide anything from myself
04:38
Ohhh awesome.
I'm a big fan of phptal :)
0
A: Storing sessions inside a new variable

BarmarTo access a global variable from within a function, you have to use the global declaration: function get_content(){ global $username; echo $username; } Or you can pass the variable as a parameter: get_content($username); function get_content($username) { echo $username; } How you...

Why someone answering using other users answer. :/ ^^^
He's focusing on the part I glossed over... basically you can't do that php is not lexically scoped.
First he ask me
What's the difference between get_content($username) and simply $username? — Barmar 10 mins ago
And then answer same as my answer.
yeah... I feel dirty just offering global as a solution.
@Jack that one looks cool... got to read up
04:48
Yeah he is having 45K rep points and answering to use global.... :(
and they call me a repwhore :)
and Jack for the win :)
@Orangepill Made a slight variation based on your answer :)
That is the right way
You actually are but answering correct answer. :)
I think we're all more or less on the same page for this one heh ... it's like the three musketeers answer lol
04:53
My enemy comes to downvote my answer. lolzzz
@Jack I totally left it at some point... back to plain phtml
reason being designers unable to learn shit.
but I really loved macros/templates at that time
They are indeed awesome stuff.
I mainly like it because it typically survives an attack by Dreamweaver.
actually, I think I'm still repo owner <_<
Really?
04:55
The project has changed hands once since its inception, that's all i know.
If you guys want to pick on some code you can see a little proof of concept template engine I wrote github.com/cgray/templar/tree/master/code
@Jack pornel is still working on it sometimes
Kornel :)
You make it sound like a pornstar nick lol
Pornel.. lol
Pornel is pornel
real names are overrated
04:58
Idea was to create template functions (closures) from included phtml templates. There by dodging the filesystem hit for iterative includes.
@Orangepill underscore does the same iirc
I though underscore was js
@Ocramius lolwut ... okay, the name he uses on the mailing list is different haha
@Jack as I said, real names are overrated :P
05:00
apparently :)
pre-work paperwork!
yay! (not)
Hello.
hell
@Mr.Alien, Yesterday night i downloaded AOE 3 all packs and installed on Win 7. Its giving a compabiltity error. Any idea how to run the game.
05:10
elho
@Rafee Right click on the icon
aay ruk ruk
it will give compatibility error but it wil run anyways
@Mr.Alien what an idea aay ruk ruk
if still it doesn't, right click on icon - properties - compatibility mode, switch to xp sp 3
i did that.. but thats not working.. i searched online..
changed compabiltiy to win xp sp2
even tried xp sp 3.
@YogeshSuthar lol
@Rafee I make that to sp3 and it works kwel for me
okay.. i will uninstall and install and do it again..
I am at office right now..
i will do it when i reach home.
@Rafee sure
I'm out... you gents have a good night/day
bye @Orangepill
user652649
05:33
morning
Why is my page white, is error reporting turned on and it isnt displaying the error or whatever ..
gud Mrng!
Bye
morning
GUUUUUUUUUD MOOOORNING
@Rafee Morning!!
Hello @Tredged seems you got stuck with errors reportings.
05:43
is there any tutorial to convert library from codeigniter to laravel.
Hi Guys
I need some hep with htaccess, not getting any reply
0
Q: How to remove a subdirectory from the url when forwarding to sudirectory?

StarxOn a shared server I am forced to manage document roots of domains from cpanel which is buggy and consumes lots of time. So I redirected all domains to one directory lets say root. An example: sd1.domain.com ---> public_html/web/ sd2.domain.com ---> public_html/web/ sd1.domain2.com ---> public...

blah, paperwork done...
06:03
whats that about.
@Rafee Yea and can't fix it ..
$sql = "SELECT `Roepnaam`,`Achternaam` FROM `caseinformatie` where Klantvraag = '$_POST['kvraagnummer']'";

Shoot, whats wrong ?
Is there any justification for the downvote here
4
A: Why I am getting mysql_real_escape_string() warning?

Orangepillyou are mixing mysql_* and mysqli_ functions here $filename=mysql_real_escape_string($filename);. There is not mysql_ connection to the database which is why you are getting this error. This is what you should be doing $filename = mysqli_real_escape_string($con, $filename); mysqli_query($con,...

@Tredged see this single quotes '$_POST['kvraagnummer']'
I think now you get where is the problem.
I kinda dont..
:(
Ahhh @Tredged you are becoming help vampire. :(
"SELECT Roepnaam,Achternaam FROM caseinformatie where Klantvraag = '{$_POST['kvraagnummer']}'"; use this
06:11
Nah since this is my 1st question in 3 days :)
@Tredged see that query and next time use prepared statement. :)
hi guys...
i need help
@YogeshSuthar I figured it out when u told me single quotes was just trolling yogesh _ thanks for the help :D
@JackTorris Discussion for all things PHP - Don't ask whether someone is here to help you. If someone is around and wants to help they will.
hey @Jacktorris
@Tredged kk
06:14
can i ask magento related questions here?
@Tredged Never use that query.. Very open for hackers..
If it has anything to do with php why not?
@jacktorris sure no guarantees though
and you can even hack that.
@JackTorris Welcome..
$v = $_POST['kvraagnummer'];

$sql = "SELECT `Roepnaam`,`Achternaam` FROM `caseinformatie` where Klantvraag = '$v';
@Rafee Ohh ok
06:16
$v = addslashes($_POST['kvraagnummer']);
or use prepared statements.
as said by @YogeshSuthar
native db escaping would be preferred. mysqli_real_escape_string or whatnot
@Rafee Now I feel happy when someone say as said by @YogeshSuthar ;-)
i am just trying to develope simple adminhtml module. it is working fine.there are 4 fields in forms: title,status,image uploader, content.
You are always welcome to express your expressions.
issue is in edit form it is displaying small image previwe before the image uploader : here is the screenshot: awesomescreenshot.com/0a81jxx95a
06:22
@JackTorris Do you need that to display preview in future..
if you dont want, make use of css.
@gr4devel Hey whats up..
no i am already displaying preview above the image uploader.
@Rafee morning man :D
cool then make use of css..
@YogeshSuthar Y U still no escape variables in SQL?
if you want to remove it dynamically.. then check your html code
06:24
@Rafee as yesterday I'm trying to get my work done XD
@Rafee but without success XD
what about you? :)
haha Same here with diffrerent situation.
i have not added any field for that. i don't see any html tag for it.
yesterday I'm trying to get my GAME AOE 3 done XD
without a success.
XD
keep trying man keep trying ;)
@JackTorris Which browser do you use for development.
06:26
firefox.
use InspectElement. check that element id or class... then display:none
@Jacktorris think it is port of the image upload prototype js code
@Orangepill hi man I didn't see you sorry :D
@Jack I told @Tredged to use prepared statement. :)
Yep, thanks ;)
06:28
yeah!, even that might be also the case. @JackTorris check your js code too.
@YogeshSuthar Yes, very good ... I'm watching you ;-)
@Tredged Take care of your escapes strings too.
guys does anyone know if NikiC will be online today?
nope.
@Jack hahaha like big brother. :)
06:29
@Orangepill @ seems like you know what causing these issue. how to remove it .seems like there is bug in my code. i can remove it using css but i want to remove it from my module. i just checked in banner module have the same code that is working fine while my module showing these issue..
@Rafee thnx man ;) I'll just stay here waiting for him :)
why dont you contact him through email
if important.
@YogeshSuthar this my 6th module and still having problem with it. it is important because i want to learn it. i want to be experts like you guys.
@Rafee actually it is quite important but I've contacted him yesterday through email and then I've found him here...if I'll write again I fear that it appears I'm stalking him XD
@JackTorris I didn't ping you. It is for @Jack.
06:33
hmm
@jacktorris i'm only aware that there is code that does this sort of thing. I would remove any class names that may be triggering unobtrusive upgrading of the element.
I'll simply stay here waiting for him and in the meanwhile I'll try to resolve my problem alone :)
but before ... a shower XD
see you later ;)
@Orangepill so what should i do now? any suggestion?
@gr4devel Perhaps we could help as well?
@jacktorris how is the element represented in the phtml
06:46
in Block>>Adminhtml>>Danget>>edit>>tab>>form.php entered below code. if(isset($data['image']) && $data['image'] != ''){
$data['image'] = str_replace(' ','_',$data['image']);
$bannerLink = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) .'banner/images/'.$data['image'];
$bannerName = $data['image'];


$fieldset->addField('imagelabel', 'label', array(
'label' => Mage::helper('banner')->__('Banner Image'),
'name' =>'image',
3 more reviews until Steward :D
@Jack here I am! :)
thanks man
ok my problem is really specific
@YogeshSuthar Hi, IN PDO if i want to see what error in query then which function used.
I'm trying to create a tree structure that represents my PHP application utilizing the PHP-Parser of NickiC, but, utilizing the vistors, I'm not able to track the scope of the namespaces, classes and functions
Just a guess but if you know which of the the first two arguments to addfield is the fieldtype change it to file. @davetorrid
@DaveChen too fast. :)
@Nileshpatel See @DaveChen's answer
@gr4devel Ah, yeah, that's pretty specific :) why is it urgent though? doesn't an IDE give that information as well though?
Hmm, am I overcomplicating this query? :)
He is help vampire. :(
06:56
And you're the wilful prey?
@YogeshSuthar +1, ? :o, yeah at >1k rep you shouldn't be answering questions like that :P
@Jack ok it's so incredibly urgent but it's for my thesis project. Btw I'm trying to implement a type inference algorithm in PHP for PHP :)
and it's all about a CLI app :)
That's very cyclical of you ;-)
@Jack Now I will not reply him.
@DaveChen I don't think so. Thanks.
imagine if +1 was only 1 rep :D that would be awesome
06:58
@gr4devel So based on how the variable is used you infer its type? :)
@Jack right man :)
@DaveChen Than earning even 1K point will be toooo hard.
I think IntelliJ does something to that extent.
Like, it would warn you if you declare $i = 0 and then try to dereference it later :)

« first day (1018 days earlier)      last day (4156 days later) »