« first day (1211 days earlier)      last day (3963 days later) » 

m59
m59
00:03
Would anyone care to help me get some perspective about sql users? After unzipping mysql and running mysqld from the command prompt, I'm able to run queries - what user am I?
@m59 what command are you using to run the query?
m59
m59
just typing it
@m59 but you must have done something like "mysql" to open the mysql session?
m59
m59
Right
Oh, my bad, yeah
select current_user()
m59
m59
00:06
mysqld then pulling up mysql in another prompt
Then you would be the same user as you are on the command line - e.g. i'm 'danack'@'localhost' (and denied when trying to connect locally).
I bet it's root
m59
m59
It just says @localhost
oh
that's weeeeeeeeeeird
m59
m59
I was thinking root also
So, what's proper for connecting this via php (PDO)?
00:07
but anyway
pdo
m59
m59
Like, what's the point of whatever user this is?
@m59 select * from mysql.user;
@m59 You're connecting using the local mysql client? Check the /etc/my.cnf on the machine running the client, commands there can change the prompt, and you may have one in action.
m59
m59
Do I need to set a password for it and use that or make a new user?
@Danack denied =D
@m59 You don't need to create a unix user - mysql just identifies users by username, password and the host they're connecting from.
00:09
for localhost - probably not
@m59 The script I use for poking user permissions is here - you can probably look at it to see what stuff is being set where.
And probably security holes.
m59
m59
cool man, thanks
 
3 hours later…
user652649
03:37
morning
user652649
so i launched a "CHECK TABLE ..." something like 5 hours ago, still running
user652649
mysql must be dead
@Wes mornin
user652649
sup!
fixing up my ec2 instance
user652649
03:48
never actually checked how ec2 works. is it a regular vps?
never really checked a vps.. but I would say ec2 is more complicated and configurable
when I started up my first machine, it didn't have a persistent storage.
so few tricky things like that exists
m59
m59
04:08
Why would mod_allowmethods be useful?
to nix known invalid traffic
good morning
m59
m59
I can't imagine what that would be in detail.
user652649
04:22
1 root localhost:51963 maindb Query 26402 Repair with keycache repair table urls
user652649
about 7 hours. sigh
m59
m59
05:09
Is there a good reason to block read access to htaccess files?
<Files ".ht*">
    Require all denied
</Files>
I found that in my settings.
m59
m59
hello
m59
m59
Doing ok.
I got my first OVH server :)
06:02
@m59 anything you reveal can and will be used against you
using .htaccess should be a last resort. If you can put these settings in your config (main config or virtual host config) that would lighten the burden on the webserver from having to process the .htaccess file for every url that is requested.
m59
m59
Cool.
06:32
hello i am new at stackoverflow
i need some help
@m59 This is a quite confusing way of using Apache configuration directives
m59
m59
what's up?
Guys, anyone good at finding tutorials?
good morns ;)
06:55
morning
07:25
o_O
morning btw
I need to go to work in a few minutes
@HamZa run, save yourself
@crypticツ you can read my mind :O
@Monika STOP pinging random people
@Monika and your question is ?
Is that all ? Please stop annoying people
11 messages moved to Trash can
@All helps plz!! =oP
07:29
You saved my life right now :P
<-- heroine
I love some Air Crash Investigation!
Anyone with me on that?
*crickets chirping*
*dies*
ye
backslashes!
07:47
Random pings...
you can ping the pong
wait!
do you ping the pong or pong the ping?
:OO mind blown
you seem to be new here...
Nah. :P
Just typing random stuff. :P
Been here for a while.
@Mr.Alien stop talking to yourself
unless you're hearing voices too =oP
@crypticツ Well, I talk to my pizza... I go "IMMA EAT YOU INSIDE AND OUTSIDE MMMM"
07:53
best decision of the day
@crypticツ yea yea I am not active much over here now.. sigh.. and btw that's photoshoped ^^^
@Mr.Alien photoshopped?
How am I small? Is it photoshopped?
@LeSamAdmin you are ignored
07:56
hi out there. I want to merge two git braches, but I want to avoid merge some files (which could be irgnored by .gitignore). any ideas?
I'm going to leave then...
How do I delete my account?
If people are immature here and can't take a simple joke, no point me being here.
@LeSamAdmin uh deleting an account just because someone ignored you is quiet hard
@crypticツ best decision the the day was photoshopd =D
Yeah, but I get ignored IRL, I'd rather be somewhere online where people talk to me decently and don't ignore me. I'm deleting the account.
actually you changed your pic recently and made a zoomed in version, else I always thought that it was an african parrot with an orange beak ...
07:58
@LeSamAdmin do what you like not my problem
@crypticツ any idea about the review system? say someone edited my answer, and I rejected, so it gets reject in general, or still it needs 2 votes to get rejected, have done many times but am not sure as I cannot recollect how it works..
however it seems that here is no git guru. if so please ping me :) bye guys
@Mr.Alien Not sure if the post belongs to you if it just needs your rejection to do it.
Let me edit a post of yours and see
done
now reject it
oh wait
maybe it does not have to be approved since I have the rep?
ya, great idea, do any one , cuz yest one user edited my post which made inconsistency in the code shared in my answer vs code in the fiddle.. and the three users accepted it without proper review
lol, yea, I forgot, I don't have to accept your edit as you have rep +3000
rollbacked
08:03
thanks :)
If only there was someone in chat with rep under 3K
I could've easily got one in html/css/dom.. people seems to be sleeping there.. and this was the edit I was talking about..
bbl, going to cook some food and watch cartoons =oD
later o/
hey guys , can anyone look into this question stackoverflow.com/questions/21629922/…
Stuck at it since yesterday , any help wud be much appreciated
 
1 hour later…
09:41
@CaffeineCoder hi, your question doesn't have enough information. For example, what have you tried. Your code is completely wrong. If you don't know how to correct it, you need to learn the basics first
@andho weekend again! PRs!! =oD
should i answer the non php question? or will it encourage more?
@crypticツ not free this weekend :(
last weekend was chinese new year. 5 days total
09:57
@crypticツ github.com/rdlowrey/Arya/issues/4 … why did you put that in Arya repo and not Artax?
@bwoebi omg oops
sorry it's late =oP
damn all letter 'A' packages of @rdlowrey's =oP
look at the last letter^^
can I delete an issue?
not that I'd know…
ok, posted in correct repo... *posts in Auryn*
10:07
@crypticツ okay you're trolling me (with Auryn) :-D
wtf stackoverflow.com/questions/21644610/… why is the OP jumping in and out of PHP to output HTML so much?
10:25
@andho code is wrong ? i don't think u hv seen the same question i posted . It has been doing what i wanted all along , i just asked how should i enter that value in db . Did everything from creating an extra column in db to passing it a value . So i don't think ders anything wrong with the basics
@CaffeineCoder the code is wrong in a lot of ways
also don't understand why you are JSON encoding the array only to take it apart and put each values in it's own field in query, basically undoing the JSON.
your array is wrong too
you're also using deprecated mysql_*() functions, yeah saw comment about eventually using PDO.
Mornign
also some advice, never output mysql errors to browser. You can kill script if you want, but do so with a generic error message and log the mysql error instead.
morning @PeeHaa
@crypticツ ma'am
how are you this lovely Caturday?
10:35
Bit tired :)
yes , i do use console.log for errors . I just posted my earlier program , hoping to get some approach or help from someone
morning
morning @Fabien
HCP
HCP
Good day (morning here too)
@HCP That means your in the one and only correct time zone. Morning
HCP
HCP
11:10
Thank you. I Noticed your from the Netherlands as well : ) Someone within our company made his own webshop and now they want to expand the functionality.
Sounds familier I guess !
@HCP If the code base is at least a bit sane expanding funcionality should be easy
monring @Mr.Alien
@PeeHaa mornin bro.. what you up to...
HCP
HCP
They used wordpress and woo commerce plugin to create it. I was presented by this plus a description of what they want to do now.
11:19
@Mr.Alien Woke up early because I drank waaaay to much yesterday and I have monday of so I'm working on my cms :)
cms aye?
HCP
HCP
Among some other things they want to show articles taylored to the customers location
@HCP ouch. wordpress
@HCP Based on geo ip?
What kind of features in your CMS?
HCP
HCP
i thought it was more of a bligging sustem eh ?
blogging
11:21
@PeeHaa are you building it for yourself or intention to sell it
@Fabien I am currently working on? Or what will be there at the end of the weekend?
What differentiates it from other CMS's
@HCP Yeah it is :) A terribly designed blogging system ;)
Wordpress was more straight blogging now it is its own thing.
Straight blogging I would look at Ghost
@Mr.Alien I have a couple of clients who want a website and I got bored spending time on the backend. So soon I will have a all purpose generic cms which I can just spit out
11:22
@PeeHaa You seen PageLime?
@Fabien Fast, sane code, decoupled, prevent lots of boilerplate
@PeeHaa ok same reason, even am making one as I don't like the open ones, 5000 files for a cms + website.. will throw base demo to you by tomorrow... will get some time today... hopefully
There should be a different kind of CMS. One which works similar to pagelime + Ghost. PageLime is basically a click and edit the content kind of CMS. So not really much about adding in new content but managing the existing. For new content you could add the other aspect of the CMS system. The blogging aspect.
@PeeHaa also make sure you have the boolean switches just like I did for turning on and off the features, cuz some don't like having too many things in plate.. will brb..
in a while
@Fabien Just now I did :) Although too limited for my purpose there are some useful things
11:24
Adding static pages is rarely done by people who want CMSs I think, but I have no real experience to say so.
@Mr.Alien Yeah I will hopefully be ready to send you credentials later this week of mine
The concept of a CMS to manage a 'whole' site I think is a little excessive. Sure it may be able to but how often are all those features used?
@Mr.Alien Yeah I will have something like that not to prevent bloat, but in order to be able to sell modules :)
@Fabien Adding static pages is just 1% of my cms' modules
So basically PageLime style (click and edit) for static/low-editable pages. and a blogging/CMS platform for true CMS pages like FAQ/Testimonials/News
When will your CMS be usable @PeeHaa? And Open Source?
My CMS is more for businesses so e-commerce is a decent part of it
@Fabien v0.0.1 monday I hope.
11:28
OS? :)
Maybe. Eventually. :) Either way I am willing to license it (for free) for people I know
HCP
HCP
If anyone of you guys is maybe willing to share some more thougts with me please send me a message. It would ne nice ofcourse if you could actually be there and talk about it : ) @PeeHaa maybe you should just come along and show it ?
Ah nice. I'd just like to see a CMS I would probably enjoy working with.
Something light to be extended on would be cool
@igorw Do you understand what this question is about? stackoverflow.com/questions/21517176/…
11:33
I tried to figure out what he's looking for, but couldn't
@Fabien lol
11:45
@PeeHaa am looking forward to add an ecommerce module as well, but that will take real pain cuz I will have to learn how ecommerce really works...
@Mr.Alien As I see it it is simply a matter of having products and possibly discount rules
@PeeHaa nope, that's vague.. say sometimes they have discount seasons, special offers, sales returns.. etc etc..
The first two are discount rules based on timestamps and only the last one could possibly be custom (for a technical POV)
Basically most discount rules will be based on: user / usergroup / article / articlegroup / total price / and/or timestamp(s)
Isn't it a bit early for you @ircmaxell :)
morning
hmmmm, calculations differ, just like payrolls..have to define few topics, like no of holidays, allowed leaves, etc etc, so I thought even ecommerce can have such custom factors.. rest is very clear, I can build one perfectly..
@PeeHaa timestamp will play imp role there...
Jay
Jay
11:52
howdy guys
u all good?
Pehaa is bad, rest r gud
@Mr.Alien Yep so as long a you can define a timerange you should come pretty far
Jay
Jay
is: self:: the reference for a singleton class instead of $this-> ?
730
Q: When to use self vs $this?

Casey WatsonIn PHP 5, what is the difference between using self and $this? When is each appropriate?

@PeeHaa yes, but that will take time.. as I've to finish purchase manager, invoice manager, and many other functionalities, I am done with user manager and stuff, also, how are you dealing with filtering records and ordering?
Jay
Jay
11:55
@PeeHaa cheers bud
@Mr.Alien I have filters on my overviews pages (which I can define per section) which filters the overview automagically once you start typing / selecting filters
Jay
Jay
@PeeHaa having an issue with this tho mate if you can forsee
@NikiC did you already look at that: chat.stackoverflow.com/transcript/message/14551646#14551646 Levi thought it to be your fault?
Jay
Jay
self::form_array[$row['id']] = 'value';
gives off a syntax error [
ohh ok, rapid ajax.. I am sticking with pure PHP as of now.. will look to alter some of the functionalities using ajax..
11:58
@Jay … expecting '$' sign ...
Jay
Jay
@bwoebi Parse error: syntax error, unexpected '['
yes, you're missing an $ somewhere ;-)
Jay
Jay
basically it was working
then I made this class a singleton
I just changed $this-> to self::
and its given me that error
read again about the syntax for accessing static fields…
Also singletons are useless
Jay
Jay
12:02
I've autoloaded the classes
basically I think singleton is the only way for my classes to be able to interact instantly together#
In that case your design sucks / is horribly broken
Jay
Jay
what way would you do it
keep in kind that plugins have classes that need to interact to and no one knows what they are called for them to be injected
"no one knows what they are called for them to be injected" sounds like a global all the things approach
Jay
Jay
no the system stuff is injected where needed. This is kind of on the fly
thats why I think singletons are good for these types of classes
DO you unit test your code?
12:09
@Jay Singletons are never "good"
@bwoebi no, I aint got no ping
Jay
Jay
I just can;t work out of a way of getting this on-the-fly classes to work
how how how
Jay
Jay
@MadaraUchiha whats so bad about singletons
@Jay "On the fly" classes?
12:10
@NikiC well… then now you were pinged… any idea about that?
@Jay Imagine this function:
I setup a cron in my ubuntu PC to run every 1 min.but this doesn't work ?
@MadaraUchiha o/
function query($sql) {
   ...
}
@Mr.Alien \o
Jay
Jay
class that come with plugins that no one would know what they are called
12:11
@bwoebi Is the problem simply that "id.svg" is matched as the variable name?
@Jay What does this function need in order to work?
@samitha append to the line >> /home/<user/log/cron.log 2>&1
Then see if it runs
and what the output is
@NikiC yes
Jay
Jay
let me try explain is like this:
@Jay Hear me out first
12:12
@NikiC it routes correctly, but the variable name is matched wrongly
The function I wrote above needs an $sql parameter, right? Probably to preform the query.
@Danack There is nothing wrong with 2 space indentation :(
It's better than tabs
But what you didn't know, is that it needed a database connection as well
Because the first line of the function is
* * * * * /usr/local/bin/php /var/www/Controller/post.php >> /home/<user/log/cron.log 2>&1 @Suhosin
Singleton::getInstance()->getDBConnection();
12:13
is this correct?
alright, bbl, food
@samitha Yes, but replace <user> with the user whos cron this is
and create that log directory
mkdir -p /home/<user>/log/ && touch /home/<user>/log/cron.log
Jay
Jay
@MadaraUchiha I have a system where everything is injected into each class (This is just the system). The system has the ability for plugins to be created.
@Suhosin Not sure what I will choose if I ever need to at gunpoint tbh :P
do i want to restart the PC after added a cron ? @Suhosin
Jay
Jay
12:14
Lets say you personally have created a plugin and you have created a class file within that plugin
@samitha No
ok thanks
Jay
Jay
Now lets say someone else like @PeeHaa creates a different plugin and he has serveral class files but he also needs to reference to your class file. But YOUR class files don't get loaded until @PeeHaa plugin has been int.....
singleton is the only way?
@Jay That is a matter of dependency management and has nothing to do with polluting the project with globals everywhere
Jay
Jay
@PeeHaa take it another step further and say that your class files depend on each other but the references between them does exist
Do you know what I ean
singleton for this?
12:21
@Suhosin /bin/sh: 1: /usr/local/bin/php: not found
:o
whereis php
i installed lamp here
Yeah run
whereis php
It will tell you where the binary is
(if it's in path)
php: /usr/bin/php /usr/bin/X11/php /usr/share/man/man1/php.1.gz
Now it should be
 * * * * * /usr/bin/php /var/www/Controller/post.php >> /home/server/log/cron.l$
right?
@Suhosin
Seems right
12:26
@Jay Class files depend on eachother sounds pretty broken to me
@Gordon LOVE the bunny outfit!
:)
@PeeHaa thanks. folks in the office liked them as well. The CFO of our neighboring company looked pained though :)
The devs I've told about their purpose seem okay with trying it as "punishment" for breaking the build
but we will discuss it in the next retrospective. dont want anyone to feel humiliated, so their usage should be a unanimous decision
@bwoebi just change the regex for the varname then
right now it's [^/], which should probably be replaced with some more appropriate set of characters
@Gordon It's a cool and fun incentive imho
@Suhosin anoother file created with cron.log .It is cron.l$
@samitha Looks like your editor messed up the line
12:37
@PeeHaa yeah, I am bit afraid people will break the build on purpose just to wear them :D
@NikiC hmh… no that doesn't fix the bug. Only the local bug there with the specific character. I think [A-Za-z] would be maybe more appropriate…
@Suhosin now it saying include(../Modal/dbLayer.php): failed to
How i fixed those erros
i'm including couple of pages into the post.php
@samitha You need to set up the environment for your cron, make a bash script:
cd /var/www/Controller/
/usr/bin/php post.php
Then call the bash script in your cron
@NikiC An example: $id.svg… then the variable "id\\.svg" contains only the $id, but is not followed by a .svg. Even though it should have matched the whole [^\]+ which includes .svg I thought?
12:49
Morning
* * * * * /usr/bin/php post.php right?
@NikiC forget that what I just wrote…
@Suhosin right?
@samitha No, just make a bash script as above
Then call the bash script from cron
12:54
i don't understand @Suhosin can you show me how i write inside the crontab ?
@samitha * * * * * /path/to/your/bash.sh
Where bash.sh contains:
#!/bin/bash
cd /var/www/Controller
/usr/bin/php post.php
how do i find my bash location ?
samitha@ubuntu:/var/www/Controller$ whereis bash.sh
bash: /bin/bash /etc/bash.bashrc /usr/share/man/man1/bash.1.gz
@Suhosin
@NikiC just to test I added the dot in the regex in github.com/rdlowrey/Arya/blob/master/lib/Arya/Routing/… and github.com/rdlowrey/Arya/blob/master/lib/Arya/Routing/… but I get a variable name "id\\"
@Suhosin what i did
#!/usr/bin/php
<?php
in the post.php
@samitha I told you, make a bash script with those contents
Then call it from cron :(
13:00
@bwoebi add \\\\ as well
The . is a \\. at that point due to preg_quote ;)
@Suhosin how to make that script ? just mkdir bash.sh right ?
or even better:
just make it a [a-zA-Z_]
@NikiC okay, that works…
better anyway, to enforce good coding practice with proper variable names :)
let's wait for Daniel to come back… he's the only one with write rights in the repo…
13:04
Finally @Suhosin
* * * * * /usr/bin/php /var/www/bash.sh >> /home/samitha/log/cron.log 2>&1
#!/bin/bash
cd /var/www/Controller
/usr/bin/php post.php
m59
m59
13:26
so, I scrapped mod_dir and mod_autoindex
I'm routing everything to an index.html or index.php anyway, so screw them, right?
@rlemon uh, whaaa? You're in the php room!
no i'm not. it is just your imagination
m59
m59
It's just my insecure anxiety.
this is why I never log off. I'm always in the PHP room, you just never notice until I leave and rejoin
look at the list of rooms I'm in. I'm pretty well always in all of them
m59
m59
If you were really here, you would be soon to discover that I am a total noob and the thought of you uncovering my facade has me so nervous that I'm now having waking terrors about the situation.
Jay
Jay
13:48
does the _constructor class not work with singleton or something?
m59
m59
huh?
I've never heard of a constructor class.
Jay
Jay
typo
final class something{

	private static $form_array = array();

	protected function __construct(){


		self::$form_array['test'] = 'value';

		$re = self::$form_array;
		print_r($re);
	}
}
why does this seem not to work guys?
@m59 I meant function mate
m59
m59
I'm pretty sure that's really bad.
How are you trying to use that?
Jay
Jay
this function actually generates an array full of forms
@Jay Could you please tell us what you're trying to do? No implementation details please.
m59
m59
13:57
Yeah, I mean what doesn't work?
user1607528
Which is the right way for closing tag <input type="text> or <input type="text"/>

« first day (1211 days earlier)      last day (3963 days later) »