« first day (998 days earlier)      last day (4176 days later) » 

11:00
@dragon112 :-)
preg_match('#account\/(.+\/.+?)\/*#',URI::current(), $matches);
URI::current() = account/listing/product/rrrrrrrrr/
i need only listing/product part
@Jimbo I've been doing that for months, I don't think I can manage it any more
listing/product sorry
@DaveRandom Course you can, you come into work with baby sick all down your back. That's dedication. - What've they done anyway?
11:01
@Kuraiinazuma lol ...
kinda tricky
@Jimbo No, that's just parenthood.
@Kuraiinazuma so you mean you want to explode taking index 1 and 2?
You are young grasshopper, but you will learn
hm that a solution ^^
11:02
@Gordon huh?
@DaveRandom So going to work with sick all over me == parenthood? me != parent ever
@Kuraiinazuma i already linked you to a list of patterns
i tried them but i dont quite understand all
what do you mean by "tried them" ?
they are not for copy-pasting
?P<alpha> whats that mean?
11:04
@DaveRandom What is your company not giving you that you need?
'#^/static/(?P<alpha>[^/\.,;?\n]+)$#'
@Jimbo For a start, some computers that were made this millenium. The entire company (including the boss) is complaining that the "network" is slow, but (as I say every fucking time) the problem is that all the workstations are slow as shit (quite a lot of P4/256MB/XP boxes).
i tried [^\/] putting this, but it dont really make sense
#^account/([^/]+/[^/]+).*$#

^				# begin of line
account/		# match account/
(				# start group 1
	[^/]+		# match anything except / 1 or more times
	/			# match /
	[^/]+		# match anything except / 1 or more times
)				# end group 1
.*				# match anything zero or more times
$				# end of line
Also they want a CRM/database. That's fine, I can do that, but I can only do it on my own if they stop giving me other things to do "now" every 5 seconds. So I tell them they need to hire someone to do it or it'll never happen. Apparently I'm supposed to work 12hr days and do it myself.
11:07
@HamZa You are way too good for them help vamps :)
@DaveRandom Sounds like they're not listening to your expertise
:/
Also I have to spoon feed idiots how to use Microsoft Office, which was not in the job description.
wow thats nice, thanks you
Damn this markup xD
Can any one explain how stackoverflow.com/questions/7750208/… could help me to perform trigger on insert statement in php script? Because in simple mysql it could be done easily but when insert query is executing in php page then how to perform trigger which store variable in php script?
11:08
Oh, and several of the machines are running dodgy copies of office because they wont pay for licenses
@DaveRandom I would say: bye bye (but first get yourself a new job)
@HamZa why the fuck do you feed help vampires ?
user895378
@DaveRandom Wait ... are there any copies of MSOFFICE that aren't dodgy?
3
@tereško I entered the room and saw him messing with code, so I though he tried something
11:09
changead a little to this #^account/([^\/]+\/[^\/]+)#
@dragon112 :)
still dont understand why you dont need \ before /
@Kuraiinazuma because I'm using different delimiters #
@rdlowrey There should be in a corporate environment. It's extortionately priced for homes users but they have to make money from somewhere, it's not like the world could run without it.
ok thanks ^^
user895378
11:11
@DaveRandom You're right, of course. That's not acceptable for businesses. Buy the damn product.
@DaveRandom Business' that refuse to buy Office should use Open Office/Libre Office or stop using Office all together. Pirating is out of the question imo.
@dragon112 there is also Lotus Symphony
user895378
Somehow I have a different personal standard of piracy morality between home and business use. I don't think that duality makes logical sense, but I employ it nonetheless.
Fair enough, whatever free office program
@Jack HAHA, ye I forgot the one = I was like oh hope no-one seen that xd
11:15
@Tredged Too late ;-)
Hahah
MGE
MGE
@tereško autocomplete off not working :/
^ lol this user has got his reps mainly from edits
hello guys any one here worked on html dom parser using php
@MGE then generate random names for form fields
MGE
MGE
11:20
yes, thanks
@HamZa Wow that's crazy...
@DaveRandom A place I worked used dodgy copies - it's not exactly expensive for a business to have a few legitimate copies
@dragon112 ah he got 100 for Association Bonus
@ircmaxell mailing you to find out how you are entertaining is buying a cat in the bag. prove that it's worth the effort ;) also, I am still "hanging on" and waiting for the idea you had.
@rdlowrey Thinking about it, I'm the same :P
MGE
MGE
11:21
solved @tereško
doing the same in <form>
@HamZa and a couple of upvotes on questions/answers
@Gordon oh, forgot about that... Have some working code though...
user895378
@Jimbo Yeah I mean if I'm just goofing off with something for personal use I don't have a problem using a "questionably obtained" version. But if it's something I'm using for profit I feel like you should comply with the licensing.
@rdlowrey It's a bit of a double standard to some people, but personal vs business use - two different ballparks
user895378
Of course the problem lies with things that are only ever for personal use ... like games.
11:26
hi all
looking for a way to modulate our webs site
any pointers will be great
@ZioN Define "Modulate"
Indeed What do you mean with Modulate?
well slit it up, currently everything is like in one php file
delete the project and start all over :|
@ZioN Your website has one page?
11:30
it has more than one page, but the main page has too much in it
@ZioN "Too much" how?
Use smary templates @ZioN ( :NO DON'T :D )
You're being very vague. Tell us what's needed and what you currently have. Try to be as descriptive as possible.
ok well we have currently have one main page in our web site, and it has over 10 000 lines of code
11:33
@ZioN In one page? That does sound like a lot.
because all our js methods for each button and web service call is in the main page
Try to split it up using include files etc? Use a front-coontroller ?
most of it is in one page
what is a front controller?
11:33
Have your CSS in a different .css file (for example style.css), and have it included in the `<head>` of every page using a `<link>` element.
Same for JavaScript using a master.js file and `<script src="path/to/master.js"></script>`.
@ircmaxell can I see it?
@Duikboot I like $_SERVER["PATH_INFO"] better. (example.com/index.php/path/to/site == "path/to/site")
True indeed :)
11:36
I link this front controller, but one requirement we have is to not have a click load, click load. they just want to click and it shows
But wait, are u talking about a 1page website?
@Gordon I will toss it on github when I get to the office...
Also, some sort of basic dynamic loader (i.e. check the path, see if file exists, include) is better, because you won't need to change your code each time you add a page.
@ircmaxell thanks
@ZioN What's "click load"
11:38
if the use want to go to another page, or in our case another tab, it must just appear and not first load a page
in HTML / CSS / DOM & web design, 1 min ago, by Madara Uchiha
@ZioN Even with AJAX, it's not magic.
11:52
@MadaraUchiha XHR
@tereško Hmm?
Wrzuta.pl FTW
var __flashSrcUrl = (new String(''))+(function(sFTX){return (new String("http://c.wrzuta."))+sFTX})((new String("pl/wa1520/5da7a5")))+(!!""||(("af0006302050254b"+"e3?Expires=13734")))+(!!""||(("60472&SDSAccessK"+"eyId=rYqalswZ&Si")))+(!!""||(("gnature=L3kyEIJH"+"gOxyFkgRIeURiv6i")))+"oPo%3D";
PLB
PLB
@webarto Obfuscated?
Any superstitious Chinese people around?
11:58
for those who wonder what life will be with 30+ this is an accurate description: buzzfeed.com/jessicamisener/30-signs-youre-almost-30
user895378
@Gordon lol it's funny because it's true.
user895378
> 3. …and marathon times.
@Gordon It's sad because I'm 24 and I see myself in the list :D
@rdlowrey that's the only one I don't care about but my fb timeline tells me it's very en vogue among my similar aged peers ;)
> 13. You’d rather pay a little more for a “nice, clean” hotel room than cram into a hostel with 12 of your friends.
user895378
12:01
> Every night you're like: I don't want to do things. I want to not do things.
> 16. There’s an increasing number of musical artists you haven’t even heard of.
Charli XCX - Ha ha ha
:P
user895378
Yep. That pretty accurately describes my entire life. Looks like I'm a statistic.
same here :)
I am wondering who working (organization) on rss feed. I like add feature request to add the social media links in rss feed next version. I feel it will be very useful.
My life is still pretty exciting, I stole the corn the other day and recorded it.
3
12:10
@webarto +1
@webarto whoa! dude, you're crazy. That's dangerous.
Always wanted to be an outlaw.
Cool just found this: @ircmaxell youtube.com/watch?v=T4NTdRvIrdk
One of these days I'm going to pick up rep whoring again just because this is annoying: stackoverflow.com/questions/17570362/…
And downvote the hell out of it while you are at it
I'm starting to learn Codeigniter.
@PeeHaa I have all but given up on answering PHP questions. Every now and then I'll come across one that is answerable but it seems like those are getting far and few between.
HOW TO ADD READ MORE BUTTON TO VIEW DETAILS OF SEARCHED TITLE! CODEIGNITER [on hold]
asked 4 mins ago by user2568443
very low quality – 2 mins ago disputed
wtf
I thought you only got disputed when people voted against it in the queue?
@Gordon ?
This is the only page i found, but looks like there not getting the feture requests rssboard.org/rss-change-notes
12:23
@cspray I often only answer when people are struggling or when it really is a good question
needless to say the first happens more oftemn
@PeeHaa afaik
Eh, I just take it as a sign that it is time to learn new things.
strange. why would someone vote against that? :P
It's obviously a great question... ofzo
12:30
Pardon me while I download some music without paying :P
(I'm a criminal now)
For @rdlowrey joy, I had to blog about it:
Blogged: accessing private PHP class members WITHOUT reflection! http://goo.gl/dqppd #php #reflection
Pretty exciting.
@Ocramius Urgh, another benchmark-all-the-things post.
you do not need php 5.4
@salathe nah, read till the end...
benchmarking was just the reason why I tried this ;)
@tereško you need PHP 5.4, or at least that's what 3v4l reported...
anyway, it's a nice trick to actually have something like an object prototype indeed =D
12:40
@Ocramius Oh, I did. You still get -1,000 Salathe Points for the benchmark section.
@salathe haha, you know, bitches love benchmarks :P
but really, otherwise I wouldn't have inspected into this thing, and I now have a use case for it too ;)
hmmm ... wait ... yes , you're right
@tereško we now just need @igorw to build something crazy on it :"D
@salathe That's not very generous, I got 1m some time ago.
@webarto you're still at -1,000,000 :)
12:43
Yay! :)
Good morning again
@salathe so how do I gain points? Can I ask for them at the gas station?
@Ocramius You can ask...
If you are at 0, you win.
@ircmaxell: You have to expect a buffer overflow issue every time you see a $_POST[] used without input validation; so yes, without further information you have to assume that the code is vulnerable to buffer overflow attacks. How can you tell that the PHP implementation of sha1() is bug free? — G_G 11 mins ago
12:47
@Ocramius Wow, you reinforce again and again that ORMs are an atrocity
@NikiC rofl, you and your ORM hate ;)
@Ocramius Did you read what you just wrote there?
Using closure binds to try and improve performance of encapsulation breaks?
I mean, really...
@NikiC yes, I've read it O_o We actually played around with it and seen that it doesn't work, and that reflection is better for that. But then found out that you can get vars by reference, which is useful in rare cases
@Ocramius The point is not whether it did work or not, rather that the mere fact that you had to try this shows everything you need to know about ORMs ;)
12:51
@NikiC I still don't get what you're trying to tell...
Are you reaching some useful point in this conversation or should I start posting kittens to make it more useful? :)
I know EXACTLY that I'm breaking rules, and I've told you many many times
And you know exactly why I'm doing so ;)
@Ocramius No, actually I don't
@ircmaxell I hope Antnee closes that issue with a, "Um, no."
@NikiC if you build a data mapper that can work with POPOs without requiring the user to modify his entity API, then this is the way to do it
if you don't like that, just use a very opinionated data mapper
@Ocramius Yes, the solution is not do build "a data mapper that can work with POPOs without requiring the user to modify his entity API" ;)
@ircmaxell It's because of Google ranking.
12:53
@NikiC see? Just use another data mapper then :P
or not a data mapper at all if you don't like that
@Ocramius I'm not using it either way, just saying that ORMs are shit
Really, nothing more than that ^^
Maybe there also exist non shit ORMs, never heard of one though
@NikiC then let ORMs be shit, I will keep building shit
and I'm happy with it ;)
@ircmaxell Speak for yourself, I can have all the nice things I want. :)
I actually think the same as @salathe... what's the problem in that issue? :|
12:56
I give up
Yeah, I don't quite get it either
@ircmaxell are you worried about people confusing them? :|
@Ocramius for one
@ircmaxell It's really nice
I mean, "PHP password library" is kind of an obvious name for a PHP password library :D So it's no surprise that multiple projects may be using it
12:57
So long as the Composer names are different, who cares.
But unless we can do $numberObj1 + $numberObj2 (as in, actually use them as integers)
It's not really useful.
(Or have I misunderstood the point of the library?)
@MadaraUchiha that's to come. This is a prototype for a PECL extension which can do that ;-)
@ircmaxell Oh goody, can't wait :)
@ircmaxell so now I am building money extending this?
0
Q: how to parse a endless pagination webpage using HTML DOM parser?

VenkatHi i am trying to parse a webpage which has endless pagination (scrolling gives more items) with simple html dom parser. But i am able to get data only for first page only. How to get data of another webpages. <?php require 'simple_html_dom.php'; $html = file_get_html('http://www.flipkart.com...

13:06
Hi, I am using zend lucene search for full text search, Is there any good tool to view. How the data is indexed
I am using ubuntu 12.04
@Gordon or composed with it...
hello guys, I suppose my question is really noob but I need some help... do I have to configure something on my server to make the function "mail" work?
What about twig instead of smarty?
what about php? :P
@ircmaxell The ugly bit about this is that the money type you build from it will have non-overloaded ops
13:09
@ircmaxell I'd likely would want all the methods so I guess extending it is more straightforward
@ircmaxell I'd probably move the switch cases to the respective methods and only leave the preparatory code in doOp btw
@NikiC well, you'd want a different set of overloaded ops. Because adding a decimal to money doesn't make sense...
@Gordon perhaps... I just hacked it together...
@ircmaxell Point being that Money needs to be a native type to be really nice to use :)
@NikiC same for decimal :)
yeah, I was already assuming that decimal is one
@NikiC that's how this started...
13:13
Hey, I am making a message system in PHP and MySQL. How would I know if some message has been read by some user or not ?
I was prototyping an SPLDecimal addition, and decided to do it as a stand-alone lib...
@ircmaxell Ah cool, then I don't need to do that myself
Also, please no SplDecimal
btw Python and Ruby both have native Decimal types, so we have to have one, too
Just because it's a class, doesn't need to be prefixed with Spl ;)
that's what I was going to do... No? Spl\Decimal?
13:15
Just Decimal. Probably in the bc ext, because that's what it will be presumably using, right?
eih, was going to put it in SPL, as non-standard extensions (not enabled by default) are a problem...
@ircmaxell yeah, that's the fallacy. it should be enabled by default :)
@ircmaxell I hope you were going to put it in spl_types
@salathe no, that either belongs in, or out, not its weird state of PECL right now
@ircmaxell PECL isn't a weird state, it's fine where it is (though could do with some love)
13:18
@salathe the SPLTypes are experimental and dead, right? or is there still development going on around them?
@salathe PECL is useless for the vast majority of people...
@Gordon yes, no
@ircmaxell well, you're gonna need bcmath either way, right? so that's where it belongs, or not?
because lib devs can't rely on it
so it doesn't help a lot of people, who have to implement it in PHP anyway
@NikiC We're having a company "team building" thing soon, one of the guys is going to present how we should be using frameworks and ORMs, I've been nominated to give a counter argument, although I haven't accepted.
13:19
@ircmaxell So stick it in ext/standard
I need to do better than ORMs are shit though :p
hello guys, I suppose my question is really noob but I need some help... do I have to configure something on my server to make the function "mail" work?
@Leigh I can help :P
@salathe I would if it worked right... In fact... I have a proposal to write to core...
Hey, can any one answer my stupid question ?
13:22
@user1756648 Nope, sorry.
@user1756648 have you considered making it less stupid?
@Leigh ORMs are complex beasts. Stiff learning curve. Often tie your domain objects to the ORM. ActiveRecord based ORMs are doing it wrong. Performance impact, etc …
I am making a message system in PHP and MySQL. How would I know if some message has been read by some user or not ?
I'm a bit confused right now about what library the bcmath extension is actually using... It seems like the only use of "libbcmath" is in PHP... Does anyone know?
Ok, this one is less stupid
@l
13:23
@Gordon Performance is the big one for me. Also, I prefer being in control and solving specific problems, not having some boilerplate general crap everywhere
what exatcly document root means?
@user1756648 you'd have to mark it as such. there is no automagic way. the message would need a status flag in the db which you change once the user read the message, e.g. when he clicked it.
Hello, if I say travel-it / LMweb... api that holds all holiday destinations. To be used on your website. Does anyone know anything about it!
@Timo002 no one.
@user1756648 When a user requests the content (body) of the message, set a flag that marks it as read.
13:24
@ro
@rogcg: 'DOCUMENT_ROOT' The document root directory under which the current script is executing, as defined in the server's configuration file.
@Gordon: It's a hell... devoloped by German people...
Sorry all German devolopers..
@Timo002 yeah, them stupid germans never get anything right
@Gordon Only drink beer whenever they hear "Iterator"
@gordon: And the documentation is also great!
NOT!
@gordon @leigh thanks ...
@Timo002 No it isn't. It's the root directory of the current host segment of the webserver. http://domain.tld/index.php <-- accesses the index.php file in the document root of the host segment. http://domain.tld/sub/index.php <-- accesses the index.php file in the sub subdirectory of the document root of the host segment.
13:27
@Timo002 when someone says I have to "make all your subdomains have the document root as the root folder in the server config."
what does it means?
@Timo002 its propaply full of zpelling misteikes. ze germans cant zpell for enlish for live
@rogcg It means that all your virtual hosts for all relevant domains should have the document root config option pointed to the same directory on the server's local file system.
Although you probably wouldn't do that, you'd just alias all relevant domains into a single virtual host container
@MadaraUchiha actually Iterator Drinking Game involves shots not beer ;)
0
Q: Point subdomain to root folder and keep url

rogcgI want to make the subdomains point to the root folder of my FTP server. My goal is to get the same result when accessing domain.com/login but accessing subdomain1.domain.com/login or subdomain2.domain.com/login. No matter which subdomain I access, it will always consume the code on root folde...

Are there more people here using twig?
Looks better then smarty :)
Just made a little demo with it.
13:29
@rogcg Oh well if it's FTP it's easy, you just create a wildcard A record for all subdomains that points to the same IP as the root A record.
@Duikboot "looks better than smarty" is not exactly difficult ;)
FTP doesn't concern itself with the incoming DNS hostname
No indeed it's easy to understand
The thing that is difficult for me is how to keep a good structure
for a big project to split up logical code
@DaveRandom well.. all subdomains point to same IP www. points to.. but its still being redirect to subdomain's specific folder.
with this template engine
13:31
@NikiC btw how is your scalar object library moving forward? and could the decimal or money be included there?
@DaveRandom actually all subdomains points to same IP where @.domain.com points to.
posted on July 10, 2013 by hakre

The previous two parts (Part I; Part II) did outline PHP’s standard behaviour when JSON encoding a SimpleXMLElement with json_encode(). As outlined this does not always fits the encoding needs and for some potential problems some workarounds have been showed. … Continue reading →

@rogcg @.domain.com makes no sense, that effectively means domain.com.domain.com. - where have you configured this? Some zone file editor?
Actually what really matters is what happens when you resolve the addresses
@DaveRandom no.. in my host admin panel.
Anyone here made ever a rental shop or e-shop with Drupal?
13:36
That's too complicated for me.
Man, some of these control panels take some real liberties with DNS. I've never seen @ used like that before, that's proper "creative license"
Was that an answer to me @webarto if yes, why is that too complicated?
Yeah, we at Site5, we 1337.
@rogcg I'm guessing that what's going on is that you host has some high level abstraction that means a subdomain is more than just another virtual host container on the web server. Although via FTP, the thing that would be used to identify the root (in FTP this is often refered to as "home") directory would be the username that you use to log on
.NET is killing me guys, and not even slowly. Like, I can feel my soul being drained like a pond with a shopvac.
13:38
@Bracketworks ASP.NET or C#.NET?
@dragon112 ASP.NET in C#
@Bracketworks smile. it could be worse
@Gordon /died
@Bracketworks You're fucked, R.I.P.
@DaveRandom indeed. I've seen something like home/username/www/
13:39
@Bracketworks It could be worse. It could be VB.
That's my life mantra.
I used to think that so many of the pseudo-MVC frameworks that crop up overnight and fall down on their faces in PHP were bad.
@DaveRandom <edit>It could be worse. It could be VBA.</edit>
(sorry for the ping-a-thon)
@Bracketworks ASP.NET with VBA? O_o
@rogcg I suspect what you want is actually to reconfigure the home directories of in the FTP server, and that would probably need the server admin to do it (although maybe not). What control panel engine is the host using? cPanel or some custom job?
@DaveRandom I guess its some custom panel.
@Bracketworks Don't talk to me about VBA.
@rogcg If it doesn't have "cPanel" splashed all over it then it will be. What host are you using? (long shot but I might have used it before)
13:43
@DaveRandom I've been working on my first OOP JS script, it's not long, basically for table elements.. would you have a quick look and let me know what you think (I switched to jQuery for ease of use, but can switch back)? :)
@DaveRandom its a host company in brazil. since I'm from brazil. hehehe i dont think you know it.
Anyways, to close out my rant: I'm pretty sure that someone on the ASP-MVC team showed up at work one day and said, "You know what? Fuck dependency injection. Static for the win. Satan rides a motorcycle." and... yea.
Still my select boxes wont' remember
@Duikboot are you still struggling with that problem O_O ?
13:44
@Jimbo Sure, give me a few mins Disclaimer: Listening to my opinions on how to do OOP in Javascript may cause death or serious injury when you show your code to another human being
I have to use different names
wow
like name="ev1" , name="ev2", name="ev3" .. I receive them in my post variables
but I can't get the select box checked.
you mean by default ?
@Jack eval.in uses PHP 5.4 +
No after there appears an error, ( the page refreshes when a user filled in a form field wrong, when it's wrong the page reloads and the errors ( validated by PHP appear)
I can now do a var dump like :
var_dump($_POST['ev1']);
var_dump($_POST['ev2']);
var_dump($_POST['ev3']);
And they show me the values of the select checkboxes
So there must be a way now to return them back to this stupid line :
{html_checkboxes values=$event@key output=$event@key selected=$event name=$event checked="1" separator=''}
When that is possible it works :)
13:51
not sure how I can help you ...
I have something i've used in the past like this
@Jimbo SEO ftw
pastebin.com/KRNW8Npr @hamza and that one worked but this one can I not get to work
@DaveRandom host's answer.. There is no setting that can be done through the control panel. You can check the possibility of a specific change your need through a support ticket, but it is unlikely.
13:55
@Jimbo lol all stars
@HamZa do you thinkI maybe have to add to selected=$post.ev@key or something?

« first day (998 days earlier)      last day (4176 days later) »