« first day (748 days earlier)      last day (4216 days later) » 

user50049
2:00 PM
This sort of thing would almost be better generated than just cloned, so namespaces can just match the app name
 
At the end of the day, if they want more volunteering, they should not make it into an unnecessary process.
Compare php.net with stackoverflow: both have rules and processes - and both have taken a different approach.
Making use of old concepts, that they are "standard" or "historically proven" does not help today.
Now of course, this is just my opinion...that of a php.net outsider. Perhaps it's just an empty rant. Or perhaps there's something in it.
 
user50049
@Christian Processes that evolved over more than a decade might seem that way, but are usually indeed needed. And none of that is really unreasonable.
 
@TimPost Well, I do consider it unreasonable. SVN/patches to change documentation... for instance.
 
user50049
@Christian Thats .. how they version their documentation. What's wrong with that?
 
user50049
2:09 PM
While I don't inordinately enjoy using subversion, it is rather simple.
 
slightly off topic: what are some of the more interesting GitHub repos you've seen lately?
 
@TimPost There's all sorts of ways for doing it. Opting for the complicated, on the other hand..
@SomeKittens git.php Been sending some patches too... Now that's a good system, it took me less than a minute.
 
user50049
@SomeKittens this one caught my eye earlier, I'm planning on playing with it tonight
 
@TimPost Sometimes too much experience results in a bloated concept aiming to be a solution to more problems than it actually is.
 
user50049
2:11 PM
I've been looking for something 'php like' that can be embedded like Lua for a personal project, and slash is basically built to do that.
 
@TimPost Some time ago, I saw a Delphi implementation of PHP.... it seemed pretty good. Can't remember its name though.
 
user50049
Complies down to one static object you can just use with whatever. Typical use would be a SAPI or console, but any program can just use the language.
 
user50049
@Christian A personal project I'm working on is basically a nanny for up to hundreds of thousands of virtual machines (xen) across hundreds or thousands of physical machines. Right now, I have it continually migrating machines around and powering down nodes so the best density and power use is automatic. Now I want to let admins or programmers adjust its 'brain' a bit using a very easy language (like PHP)
 
Hi I have a wordpress problem, can you help me please?
 
user50049
The heart of it is just a very fast bin packing algorithm for the most part.
 
2:16 PM
hi all
 

 The Loop

Where humor doesn’t work.
 
@tereško they need some reputation to enter chat
 
@TimPost If I remember correctly, it could compile as FPC. What language is your project in?
 
user50049
@Christian C (mostly)
 
2:17 PM
@hakre Tell me that's not what I think it is.
 
I want to update wordpress navigation menu using my plugin
 
@Christian What do you mean?
 
my WP menu has 3 pages and 1 category item
 
@TimPost C....theoretically, it should be able to connect to anything.
 
2:18 PM
what I want is to add children to category item
can someone help me plz
?
 
@hakre OK, it's not. For a second there I thought he wanted CURL to download the PHP source code from the server. :D
 
So, Debian specifies that good usernames should conform to this regex: NAME_REGEX="^[a-z][-a-z0-9_]*\$", is there any obvious issue with including a dot (.) in usernames?
 
Debian folks couldn't figure out how to escape it.
 
@TimPost If you want, I could look for the interpreter write it into a dll/so/etc so that you can use it from C.
 
@TahirYasin and you think that laking reputation is good enough reason to spam here ?
 
user50049
2:20 PM
@Leigh I can't think of one that would be immediately problematic. Services that need to be configured for home directories might spit them out.
 
@SomeKittens Bit of an odd comment, what do you use?
 
@Leigh What's with the backslash?
 
its not spam
I am trying to get help from you guys
 
@Leigh My comment was less intended to be insightful, and more intended to be funny.
 
@DaveRandom $ would include a variable in the string, like PHP double quotes
 
2:21 PM
I haven't written any login code. (Plus, all I use is SomeKittens or my real name)
 
@SomeKittens I was just waiting for you to say Ubuntu so I could troll you
 
@tereško how its spam
@tereško I am trying to get solution to my problem
 
.. gods bless the ignore-list
 
@Leigh I'm a Mint guy. Ubuntu switched to Unity, and I switched to Mint.
 
@Leigh dot's are often used as a separator. So if you want to share usernames with other services, you could run into problems. Being strict here in the first place can save you integration hassles later on.
 
2:22 PM
@TimPost I want to keep domains in homedirs with fpm pools separate from my (non-privileged) user account. I was thinking of using the domain name.
 
@Leigh Oh right I see it's bash. Looked like it was part of the regex, requiring a literal dollar sign with no EOS assertion
 
user50049
@Leigh You should be fine
 
and i am officially out of close-votes
 
@tereško why cv? you did not even cv it.
 
@hakre Hm, I always use colon .. chmod user:group, not chmod user.group
But I see the issue there
 
2:22 PM
@TimPost I don't know your interests in terms of speed, but one of the strengths of this PHP interpreter was speed (there was a whole suit of tests for profiling speed).
 
user50049
@Leigh (I do something similar on Debian 6 now without an issue)
 
@Neal , i did .. because it is a duplicate
 
@Leigh Replace the dots with dashes and they conform to the regex with the same pattern/entropy
 
@tereško i see no cv on it
 
user50049
@Christian What this interpreted language would basically do is make it extremely convenient for people to adjust weights based on conditions and loops, which just means talking to a redis server.
 
2:24 PM
@DaveRandom But that's ugly :(
 
user142019
@tereško why the fuck was that flagged.
 
@tereško lol there u go :-)
 
user142019
Stop flagging forever, it’s annoying.
 
Who's this chump?
 
user50049
2:26 PM
np
 
It's interesting how when @Tim does a mod action, it moves his avatar to the front of the list :)
 
@tereško I have answered to your question
 
user50049
@Leigh hehehe yeah, they don't let us hide in the bushes.
 
Confused me for a sec, I saw it shift forward but no chat message, then tereskos message went poof and I was all AHA! I saw what you did there.
 
user50049
@Leigh The most fun is when we destroy a user in the room. Rare, but everything they have said just fades out and vanishes right before your eyes.
 
2:28 PM
i am quite good at causing chaos and animosity .. it comes naturally to me
 
I can't find my iPod cable...
 
@TimPost ph7.symisc.net
It's even written in C. Though it's not what I was looking for.
 
user50049
@Christian How did I not find that yet? Thank you!
 
@webarto you will have to wait till home.google.com is released
 
@TimPost Welcome! Happy to help. :)
 
2:31 PM
@tereško I fancy that, I'm just releasing the stress... nevermind me.
 
user50049
Yehey, I have a new toy!
 
user50049
Oh cool full support for anonymous functions
 
user50049
That's how I imagine 95% of people using it, since 80% of the time you're going to be telling it how you want it to sort and pack virtual machines.
 
ok ... question : in a framework , where should one place the traits, that are shared between multiple unrelated components ?
 
2:35 PM
@tereško /share?
 
@TimPost What are you trying to do? You can compile PHP as an embedded static library and bind to it if you need to use it as a scripting language or something.
@tereško Are you using an autoloader? Why can't they go into the directory structure the same as everything else?
 
@Leigh Stop advising people to suicide. :(
 
user50049
@Leigh Too big, actually. I would spend months taking out what I don't want, basically down to keywords and language features.
 
@TimPost So you're after a PHP subset as a scripting language? Or your own language that is PHP-like?
 
@Leigh it should be shared between classes in two different namespaces
and belong the neither
 
also , then there is the question of naming convention
how do you name a trait ? like interfaces ?
 
user50049
@Leigh Hard not to say 'both'. Mostly a subset, but I will need to extend it a bit.
 
@DaveRandom Mind letting me in Wealth?
 
@tereško Right, you were asking where to place it in terms of namespace, not location on disk, my bad
 
user50049
Oh cool, man this is easy to use
 
user50049
2:42 PM
Anyway, just using PHP itself would result in a horrible unmaintainable sloppy mess once I got done with it
 
@Leigh So are you, you don't hear me harping on about it all the time :-P
 
@TimPost I think I'd rather use the official distro and comment out the lines that register certain functions if I explicitly didn't want them tbh, for absolute compatibility. If I needed to extend, compile in an extension (easy to create)
 
user50049
@Leigh Again, too big
 
OK, my turn for questioning. As I mentioned earlier, I'm writing a build script in PHP. This script takes a folder and copies it to another target folder. On the way, it needs to also change some values in the original files. I have control of the old original files, by the way.
So, my question is, how do I safely replace said values without causing issues?
 
user50049
At most I have 512 MB of RAM to work with, with about 128 available without skidding to dirty paging
 
2:45 PM
Consider the following example:
 
user50049
The privileged Xen domain tends to be quite small.
 
function $INAME$_test(){
echo $RNAME$;
}

// And replacement variables are: INAME = 'myproject' and RNAME = 'hello world'
 
@TimPost Ok, same as my average VPS.
@Christian $ is a pretty horrible identifier to use for a PHP script
 
@Leigh Yeah, and that too :(
 
user50049
@Leigh Right, but your average vps doesn't also handle block I/O for every other VPS on that node :)
 
2:47 PM
@Christian Define "causing issues"? Also, seems like you are taking the wrong approach - have a generic file and pass the values into it.
 
@Christian Got an array with all the assignments in it? preg_replace? Whats the actual issue?
 
@DaveRandom replacing $INAME$ works....function would be named myproject_test...replacing the string, won't.
@Leigh The actual issue is context. The problem is that I don't know if I should encode the value or not.
 
@Christian You could tokenise the script and analyse the context a little more :P
 
@Christian Well you need to record the type of the variables you are replacing then - $INAME$ needs to be marked as an identifier and $RNAME$ needs to be marked as a string. Although you could also just do:
function $INAME$_test(){
  echo "$RNAME$";
}
...and the problem will no longer exist.
 
@DaveRandom What if RNAME contains double quotes, or other variable names (which should display as text?)
 
2:50 PM
@Christian Oh yeh, duh, sorry
 
@Leigh I can't tokenize a script with syntax errors. function %NAME%_test contains syntax errors.. Or not?
 
Yeh, that
 
@Christian Urgh, probably not since it uses the internal lexer
 
2:53 PM
@Leigh It gets better and better (no offence to @Nikic)
 
@Christian Right well you have to identify the replacements for what they are then. Define them as string number identifier etc, although probably just string vs therest will do, as long as everything is scalar.
 
I smell hungarian notation incoming
 
@DaveRandom Hmm...that's something. Well, I still need to support more encoding, so I think that is the way to go.
Some parts even require SQL and JSON :(
 
What is your goal, a template script with parts of it replaced?
 
2:56 PM
@Leigh Yes, kind of. I've got an "install script"...it basically copies, for instance, wordpress, and starts filling stuff like project name, template name, etc.
 
@Christian I'm bored of this question, back to my fpm-pool jiggery pokery
 
posted on November 02, 2012 by Cal Evans

Derick Rethans’s Blog: http://derickrethans.nl/ Jason Myers’s Blog: http://binarydelusions.com/ Luke Stokes’s Blog: http://bestoked.blogspot.com/ Ben Ramsey’s blog: http://benramsey.com/ Jacques Woodcock’s Blog: http://www.kitewebconsulting.com/ Derick Rethans’s Twitter: @derickr Jason Myers’s Twitter: @jasonamyers Luke Stokes’s Twitter: @lukestokes Ben Ramsey’s Twitter: @ramsey Ja

 
Well, I'm doing it something like this:

$vars = $this->export(array('test' => 'foo bar'));
$vars will contain:

TEST_RAW => foo bar
TEST_PHP => 'foo bar'
...etc...
Last question, I can't see a reason why encoding should be before the name or after. Should I be concerned about this?
 
@Christian Why would I take that personally? :)
 
@salathe Disclaimer, since it seems some people in the PHP team seem to be sensitive about their mess. :)
 
3:06 PM
> <TML> Great, so go ask it somewhere other than ##PHP, as we're a resource for people who need to know HOW to do things in PHP, not for people who want to know WHAT THINGS TO DO with PHP.
 
@hakre too many new bad questions get posted everyday...
 
user1125394
Could I ask a review, pastie.org/5172168 I'd like to use the exceptions catch to leave the root if loop, instead of all those indented if (isset...
 
wut iz dat
 
user50049
@cyril Was that code, or the actual message?
 
3:12 PM
Hello, does anyone know how to make different styled post for word press in the template file
 
@cyril short answer : no , this is definitely not good code
 
user50049
Because the pastie about exceptions is now throwing an exception
 
user1125394
it's at the end of the main controller to ensure I load informations on the user
 
user50049
Ah, there it is
 
I am new to wordpress so I'll I have is an index.php, .css, and 960 grid file
 
3:13 PM
posted on November 02, 2012 by Anthony Ferrara

This morning, I gave a talk at TrueNorth PHP. The talk was aimed at explaining the basics of Cryptography as needed for the average developer. It is intended to give a high level understanding of cryptography and cryptographic techniques. So, with no further adue, here's the slides: Read more »

 
user1125394
@TimPost a part of the whole code
 
14 hours ago, by hakre

 StopPress

Where humor doesn’t work.
 
@tereško I already know about that chat and they kinda suck in there and don't help much
 
Somewhere I lost my post-receive script that gzips new static content for nginx as it's committed.
 
3:17 PM
@tereško should I ask a question even though I don't have any php or code to give at first?
 
user50049
@benlevywebdesign Probably not.
 
user50049
But I believe they have a chatroom
 
user1125394
-> the user issuing the request has an id, but I need these 2 additional steps, #1 try to fetch user's info (permission, company_id) they can not exist if the user got deleted, or not validated yet by admins, and #2 try to fetch the company's profile, again it could have been deleted or say the request could fail, how can I design this 2 layers, if it fails $_SESSION['user']->profile is not set, (yes @tereško I know it's ugly, trying to improve it)
 
i don't see the point why mapper would throw an exception if select was empty ..
 
@TimPost The chatroom sucks, and any of your guys help is better than that
 
user1125394
3:22 PM
@tereško this is http standard 404 error not found, and handle also curl error, what should I return else null, an empty array?
 
user50049
@benlevywebdesign I'm sorry you think it sucks. But .. perhaps the questions you're asking are just too taxing for people enjoying casual conversation?
 
user50049
@benlevywebdesign If you have a question, spend some time and cook up a real question, then ask it on WP or SO (WP is definitely your best bet)
 
@TimPost It isn't good even for a simple question
 
user1125394
@benlevywebdesign one don't get paid to answer you
 
@TimPost I do have a question and its not that hard to point me in the right direction if one doesn't want to answer the question themselves
 
user50049
3:25 PM
@cyril I get very grumpy when something returns something that can't be easily type checked. If there's nothing to return, false or null depending. Returning an empty array just makes the caller do more work. Meh.
 
user50049
@benlevywebdesign There aren't many in here that work on WP innards. That's why the wordpress site launched well.
 
user1125394
a datamapper shouldn't throw exceptions then?
 
that's not what i said
situation, when mapper does not find anything in database, is not an unexpected state
 
user1125394
yes, I need to find a better design to handle that
 
user1125394
this piece of code is something always called by any controllers before others methods
 
@DaveRandom this code makes me think of perl .. in bad way : blog.aegisub.org/2008/12/…
 
:-P
The whole idea seems like a bad one to me. No matter what you do, you're still writing PHP with PHP, which === $veryBad
 
@TimPost I understand that but even when asking what to search for to get different styles for different types of post they don't even help
 
@benlevywebdesign Welcome to the internets. We can not change it so it fits your needs. But thanks you thought of us as being that powerful.
 
3:51 PM
@Christian A little less black magic but still fundamentally horrible: codepad.viper-7.com/7FIJJ0
 
Might help someone, if you use nginx' gzip_static and want a quick way to compress new/modified static files. gist.github.com/4002185
 
Hey guys, need some advice here, i need to align a div containing 3 <p>'s on the middle-bottom section. I have accomplished to align them on the middle with auto margins, and aligning them bottom with absolute positioning, is there a way to do both in CSS? I have a kludgy solution working with JS, but i really want to know if there is an apporach i havent tried
 
Reproduce in a jsfiddle? Because at the moment all I see is a bunch of words.
 
@Machinarius This is more appropriate for the JS Room: chat.stackoverflow.com/rooms/17/javascript
 
I think he's looking for a non-js solution?
And I don't believe there's a CSS room :P
 
4:03 PM
@SomeKittens I know, i asked there but they are into some serious deep conversation or no one wants to attend my question :(
@Leigh That
 
I doubt that the JS room ever has "deep" conversation
 
TBH a CSS room would be fucking boring.
 
I ask here because it is the closest to a HTML/CSS room
 
somewhat insulting but also probably true :p
 
Not really on that intention Leigh
 
4:05 PM
Problem is, this room has people in it, who talk, in english, pretty much all day. So we get lots of cross traffic.
 
Just saying it as PHP and HTML are naturally intertwined
 

CSS

Questions and discussions about Cascading Style Sheets (CSS) a...
2 people. and it looks around about the peak time right now!
 
Oh, will try there
Thanks and sorry i didnt search properly
 
Dude, why so serious? :)
 
Haha, just trying to maintain some etiquette
 
4:10 PM
@DaveRandom I went to your other room, and nobody told me how I could become rich through the power of prayer. So I flagged it as unhelpful.
 
@Leigh Depends on who you're praying to. If you "pray" to a "target market" using "good advertising," it might work!
 
is it possible to develop an automatic chair (like a rocket) that takes me home in 30 mins without going through a traffic jam in PHP?
that was I can enjoy weekend sooner :D
** that wat
*** that way
 
@AngeloMoreira you definitely need jquery for that
 
oh, something like this?
 
(car 'commute-home)
 
4:23 PM
$('drive').meHome();
 
$(function(){
function weekendNowPlease(when){
if(when == now){
rocketLaunch();
}
}

function rocketLaunch(){
console.log("weeeeeeeeeeeeeeeeeeeeekend");
}
});
 
@AngeloMoreira I guess the best you can do for now is exec("shutdown -H now"); Unfortunetly, PHP still has some limits
 
I have a css related question: I have a comment count for my posts on the side of the post and the post could be as long as the content for the post, is it possible to position the comment count element to be on the side at the bottom of each post
see what I am talking about here http://benlevywebdesign.com/wordpress/
 
@benlevywebdesign u have to position absolute
something along these lines:
position:absolute;
bottom:0px;
left:0px;
do not forget the container div needs to have a relative position so the children can be related to the parent
 
@AngeloMoreira Let me try that
so I need to position it absolute to the bottom of the post and it should work
 
yes thats the theory, fiddle with values
@hakre I am not sure but on goDaddy i do not think you can do it
 
@AngeloMoreira That's why I suggest to close it and point to the existing question that already discussed exactly that ;)
 
@hakre oh sorry didnt notice friday afternoon I guess :D
 
@AngeloMoreira Yeah. Friday ;)
 
4:35 PM
@hakre do u know how to configure a subdomain without doing it dynamically?
 
@AngeloMoreira I just realized that I have a css arrow and the comment count is positioned relative already
 
@AngeloMoreira Goto hosting, then launch and scroll down a little bit until you see Hosted Domains
 
@benlevywebdesign I'll have a look hold on
 
@AngeloMoreira ok!
 
@benlevywebdesign the .commentsnumber div should be inside of .grid_10.omega the .grid_10.omega should have position:relative; .commentsnumber should have position:absolute;
 
4:41 PM
The comments number is supposed to be on the left in the "sidebar"
 
@benlevywebdesign basically if the commentsnumber is inside the omega div then the omega will be the parent, on that way the children (commentsnumber) will now the height of the div
 
I can't really change the grid positioning because its part of the 960 grid system
I mean I can but I shouldn't change it
 
@benlevywebdesign is this what u wanted? sharing.angelo.sun.designone.co.uk/testing.jpg
2 comments aligned to the bottom of the post, thats what I thought u wanted....
 
I wanted the whole comment element position to the bottom because see how the second is not at the bottom
 
yeah but is the first right?
 
4:47 PM
hmm
 
I just did the first to see if thats what u wanted the one that says "2 comments"
 
Oh want the comment text to be like it is but for every post I want the comment number element to position at the bottom of the post
if thats what you did, awesome!
the comment text was centered or should be
 
ok, then as far as I know u need to get that div with the number of comments inside the post so u can know the height and position it correctly
 
sry cannot help anymore, issue need to sort
 
4:57 PM
If I can figure it out i'll let you know
 
...
 
5:17 PM
Hey, so I have a login and register button on my website, they are located on a just straight HTML page, I want it to show some information where the login and register are after they have logged in.
 
morning ...:)
 
Guys one question, does join change the order of rows? Before adding a join, the rows were ordered by default (from oldest to newest). Now, after i added join, the rows are mixed by unknown order.
 
user1125394
An SQL join clause combines records from two or more tables in a database. It creates a set that can be saved as a table or used as is. A JOIN is a means for combining fields from two tables by using values common to each. ANSI standard SQL specifies four types of JOIN: INNER, OUTER, LEFT, and RIGHT. As a special case, a table (base table, view, or joined table) can JOIN to itself in a self-join. A programmer writes a JOIN predicate to identify the records for joining. If the evaluated predicate is true, the combined record is then produced in the expected format, a record set or a tempora...
 
5:33 PM
.. dup, but i am out of votes
 
@GeorgeSumpster - please elaborate
 
Hey all does anyone know if you can do a htaccess or some sort of redirect so for instance: domain.com/store will redirect to domain.com BUT will still allow domain.com/store/shoes to work?
 
RewriteRule ˘domain.com/store$ domain.com [R=301,QSA,L]
 
5:48 PM
htaccess right
 
stackoverflow.com/questions/4522370/how-to-write-a-web-sevice-in-php
 
user1125394
or correct me if it's wrong:
RewriteCond %{REQUEST_URI} !^/(store/shoes)
RewriteRule ^/store(.*) / [L,NC]
 
but I want it for any domain.com/store/xxxxx to work
not just shoes
 
@relentless So, I have will have a register page, that'll send off their info to a database, as well as a login form on the home page which is written in HTML, however. When they are logged in, I want it to display some information there in place of the login form
 
user1125394
RewriteCond %{REQUEST_URI} !^/(store/)
RewriteRule ^/store(.*) / [L,NC]
 
5:55 PM
hurmm is that all I need to add? not too good with htaccess
 
user1125394
no take webarto's it's way simpler
 
thanks
 
@GeorgeSumpster - ok, so you'd need to check if the user is logged in. If so, display X
 
Evening people
 

« first day (748 days earlier)      last day (4216 days later) »