« first day (368 days earlier)      last day (4577 days later) » 
00:00 - 11:0011:00 - 00:00

12:06 AM
hello anybody online?
 
No
 
@stevether ok :-) can u suggest me dreamweaver is good IDE for php development?
 
Can you phrase that question in a way I can understand it?
 
@stevether aaww i think i wrote correctly. i was saying dreamweaver is any good IDE for php?
 
12:46 AM
@IntrepidVoyager hi
 
anyone care to help with sql question?
anyone? i'll even ask it in the form of $sql = "..."; if it makes you feel better?
 
Sure
And you can leave out the $sql=
part
 
@Tomas hi mate can u suggest me is dreamweaver is a good IDE for php development
 
ok so basically I have a (i don't know if this is the correct term) mapping table
assignment [category_id, topic_id]
 
I used to really like it. But it is really more CPYU intensive than it needs to be for an editor and it is really geared towards people who can't program. If you are using windows I suggest notepad++
*CPU
@rlemon ok...
 
12:52 AM
sorry took a call.
anyways. was distracted
 
@Tomas ok mate actually im new to php. so netbeans any better then dreamweaver?
 
What will you be programming (pure php, php + html, php + html + cs +js...)
 
say i have three tables, topics, categories, and assignments.
all categories have a name and a id
all topics have an id and other stuff, like titles and content
all assignments are id, topic_id, and category_id
can I write a single query to return the topic, and all assigned categories
 
@mann
 
@Tomas im programming php5, html5
 
12:54 AM
@ManjinderS There's no better or worse when it comes to IDEs. Try several and pick what you like best. However, like any rule, this one has an exception: Don't use Dreamweaver. It's bad.
 
@Tomas actaully plan to make advance website with really good features
 
@mann it really is up to you, but I agree w/ zirak if not doing too much css and you are not already used to breamweaver... Don't start
 
@Zirak yes mate but its bit easy . eni
 
*dreamweaver
@rlemon, back to you... What is the purpose of the sql
 
@Tomas @Zirak so u people prefer netbeans over dreamweaver?
 
12:56 AM
I have a topic with two categories.
I want to return the topic info and both categories.
 
I prefer notepad++ or gedit (depending on the OS i am currently running)
 
I have explained the table structure
 
@Tomas @Zirak ok fine mate. understood.
 
i use dreamweaver.. see the javascript transcript for today and you'll get a lot of pros and cons
 
@ManjinderS I don't use an IDE at all, I use a text editor. Vim/Emacs are my favourite, but they have a big learning curve. Notepad++ is very simple, and I can recommend it
 
12:58 AM
as long as you never... NEVER enter the realm of Design View.. I like it.
 
@rlemon yah dreamweaver has design view bit simple bt as u suggesting not gud for programmer eni
 
@Tomas No, I use C-x M-c M-butterfly
 
@zirak, can't argue with that
 
lmao, thats awesome
 
1:00 AM
@ok guys plz clear my other concept. we use desin i.e. external design say fireworks design in html is this good practice
 
guys. please. my sql.
 
anyway @rlemon, you'll have to bear w/ me b/c I am only moderately good at SQL
 
lol cool. I am marginal at best.
 
I think you can use join
 
and slightly drunk right now.
 
1:01 AM
are you using mysql?
 
yes
 
Do you know left join?
 
I have done left join on the name
SELECT topic.title, category.name FROM topics as topic LEFT JOIN categories as category ON....
but i get
titleA, categoryA
titleA, categoryB
 
Ok, so bear w/ me, but can't you do something like:
 
is there a way to get
titleA [categoryA, categoryB]
 
1:03 AM
(gimme a sec to synthesize query)
Oh, I see your problem
I would post on the main site
You'll get a response in like 5-20 mins.
...I'll take that as an "OK!"
BTW, when you get a response/make question can you link
now I am curious...
meanwhile, can someone suggest a cheap-ish ($10-30 /mon) VPS w/ root?
 
sorry gf keeps calling.
yea. i'll post when i'm a little more coherent
 
np
 
thanks though
 
...anyone want to help me on my vps problem?
@mann @zirak @jason @rlemon any good VPS's you've used before?
 
As much as I love ignoring people's questions over and over, I'd have to...oh screw it. I'll do it again. it's like I saw your question and thought "bahaha! He's so lost!" and decided to watch the action unfold
 
1:15 AM
@zirak, I have no idea what you just said
 
@Tomas sorry mate cant help u. im still new to php
 
Asking once is enough. If no one answered, that means they can't help you. Asking again after a minute and then pinging everyone can't help that.
 
we use rackspace, i'm pretty happy with it
 
@zirak and look at that :P
@jason thanks! I'll look into it!
 
facepalm That was not a result of your constant whinging....
 
1:17 AM
haha, i just happened to open the tab
 
Because a butterfly farted and a building collapsed at the same time near the same place doesn't mean the butterfly's fart had anything to do it with.
No matter how big a believer in butterfly's fart power I am
 
(relevant)[xkcd.com/552/]
[relevant](xkcd.com/552/)
 
Add http://
(relevant)[http://xkcd.com/552/]
Oh, sorry, backwards...
[relevant](http://xkcd.com/552/)
 
@tomas i tried media template a while back but i can't remember much about it
(media temple)
 
@jason, yeah I've looked into them. But it looks like I am paying for the name (flashy site w/o that great prices)
the only way I would go with them is because they have AMAZING scalability
@zachRattner, hello! Do you have any VPS suggestions?
 
1:23 AM
raskspace is pretty simple, they have a decent web gui to manage the virtual hardware (ram, cpu, etc). They have a few different OSs you can choose from to install and when you create a new machine it's totally blank with no services running
 
@Tomas, Rackspace or Mediatemple
 
Nice, Ok now I am getting consistent answers! Can someone explain to me why (mt) is so great?
 
fast customer support, very communicative about down times, open an honest about plans
and a lot of people with more traffic than me use them
and, almost more importantly, look at how nice their site looks: mediatemple.net/webhosting
 
@Tomas Never had any experience, but GitHub uses Rackspace, and I'll imagine they get a lot of visits
 
@zachRattner, yeah that's what i've heard. But the price seems steep for the basic service... $30/month seems much for 512mb ram and 350gb bandwidth link, but maybe the dependability makes it worth it...
 
1:28 AM
Tomas, why do you need a vps?
I wouldn't recommend getting one until you've outgrown shared hosting
also, can someone please tell me why php had to get a goto in v5.3?
 
Hey, would anyone wanna help me test the signup / password reminder stuff on my site: agiletoolkit.org. I rewrote it using Amazon SES, so curious if it works fine.
 
@zachrattner, I'm writing a web2.0 site (personal project and that is all I want to say about it right now) and I am looking for host right now. The reason I need a vps is because I need to install some custom linux services, which requires me having root
 
you know better than that :)
Tomas: And DynDNS won't do it for you?
 
it aint testing email confirmations.
i was thinking of making registration as un-obstructive as possible.
 
@zachrattner, IDK, I am pretty early in the production process. Just trying to get a feel for what I am in for
(cost wise)
 
1:32 AM
Tomas, as one who's made the mistake before, I wouldn't recommend paying for expensive hosting until you have to
do you have a cheap computer lying around that you don't really use?
you could host your app off that until you outgrow it
 
@ZachRattner I'd imagine because people complained. goto is a generic loop. Personally, never found a use for it.
 
so none of you would want to help out? I'll give more info on what to test with the cool registration procedure.
 
@romaninsh: what do you want me to do?
 
basically login is required for you to use the Buy button from the commercial tab,
 
@ZachRattner, if anything I would rather go w/ shared hosting than have a crappy computer running my site... and even then I would rather do a cheap vps
 
1:36 AM
also if you downloading it will ask for your email to do a reg
 
Anyway, I think I am done searching for now
 
it does not require email validated straight away, but if you click link in the email, it will validate it, and will optionally allow you to set password.
 
haha
I tried to make my password 'a'
and it told me it was 'WAY too short'
 
it is, but it's your choice.
you think i should enforce it ?
 
i'm philosophically opposed to doing that
if i want to make a lousy password, who are you to say otherwise?
 
1:38 AM
me too. I'm showing user that the password is insecure, but they can use it if they don't' care.
 
oh, I didn't think you could go through
but anyways, it worked
I clicked the link
 
Personally I wouldn't enforce it (just make a popup that tries to discourage them)
 
Because a crappy user's password and bad design on your half compromises everyone else.
 
Zach, i see you in the db. was email formatted ok ?
 
@romaninish what password strength library do you use?
 
1:39 AM
it was showing me with duplicate subject earlier.
Tomas: crack lib.
it's a default unix lib.
 
I think it's worth letting the user pick a bad password, considering the alternative is to force them to use one they'll forget
@romaninsh: looked fine, but I used 10minutemail
 
cool...
i've got 500 users and most of them haven't confirmed emails.
i suspect they might be spammed.
because of EC2 hosting and mail()
 
I like to keep a reminder count and last email timestamp in my db when I'm doing such things
to keep from sending too many reminder emails
 
well, my thinking is.
if i am to send out some update emails
for users who haven't confirmed email, i'll include the token
token authenticates you right away, for example if you signup , click on the link, but don't chose the password
you are still authenticated
 
right, but what happens if you've sent out 3 reminder emails already?
 
1:42 AM
you can click the link in email again to get to the page.
hm. if user requests 3 then i send 3
i haven't thought about counting them.
 
I send reminder emails from a cron job
but I increment a count each time I send
and the text differs for each one
 
ah i mean if they DONt request it ?
 
and then it stops after the third
 
gotcha
like auto responder.
 
it's just one solution
 
1:43 AM
yeah, i might need to do something like that.
 
if you're finding you're sending too many mails, it might be worth it
otherwise, I'm sure you have more exciting things to work on
 
yep.
like free non-profit license.
permissive
Zach, thanks for test.
 
np
nice design by the way
it looks pretty slick
 
thanks.
my bro is designer.
 
he only has one validation error
 
1:49 AM
ah the w3c ?
i haven't checked it tbh.
 
maybe it's because I come from a c background
i feel like pages that don't validate are like executables with compiler warnings
 
well, i come too :) but for the design it first need to look good, although i do agree it should need to be compliant.
nicely put.
did you w3c the mayack.com or the toolkit site ?
 
both
you just go to validator.w3.org
 
it complains too much about Facebook / google plus buttons
 
you can put your code in cdata sections
or add the fb namespace to your document
 
1:55 AM
i think i did, <html xmlns:fb="http://www.facebook.com/2008/fbml">
 
hm, weird
i'd look into it, but I have to go now
later
 
down to 3 errors now :)
cheers and thanks again.
 
2:46 AM
posted on October 18, 2011 by Ilia Alshanetsky

My slides for my "Under the Hood" talk at ZendCon are now online and can be downloaded here. Thanks to all the attendees, especially those who left feedback at Joind.In.

 
3:45 AM
posted on October 19, 2011 by Sean Coates

As I've mentioned in previous posts, I like beer. I mean, I really like it. I've tasted many unique, special, rare, and extremely old beers. I even have Beer Judging credentials. I would go as far as to say that I'm a "beer aficionado." I find the idea of a cheap, poorly-made beer (especially when there are superior alternatives on hand) to be almost repulsive. I know aficionados in other fie

 
Can someone explain to me what this is and why it works?
I̿͑͗ͮͮ̾̿͡͏̭̳͕̟ ̻̺͗̌d̥͚̉̿̕͢ȯ͕͙̌ͩ̈́ͤ͆̃̔n̡̛̙͓̞̮̗̤̘̎ͯ̂̐̋͊ͤ'̎ͤ͢҉͕͕͚͍̺̤ͯ̐̂͏̛̻͉͚̰̬̬̪ͅ ̸̸̧̫̱̼̙̱̫̪̩͇̳̟̗̩͈̞ͮͦ͒͂̒͆̐ͪ̉̆͞ͅͅn̜̞͊͊̇̾͜͟ơ̜̥̙̺̤̭̅̑ͥ̓̎̃ͧͧͯ͘͞ ̶͚̖̻̲̥̗̫̟̭͐ͮͯḫ̔̉̂̌̄͟͡a̧̪͇͔̻̯͎̥̫̫̓ͥ̓ͤ̓̇̆̚̚҉͖̰ ̷̵̸̛̩̻̭̲̻̤̺̱̂̐ͨ̆̇ͪͣ͐̔̇͡ǫ̜͎̮̻̺̆ͨ̄̐͞u̷̙͉͚͚̤̙̳͒͑̏́͒'̼̪̯̔̔̏͑͐̆͐̑͠ͅr̭͔̫̍ͣ͗͆̀͜e̅̽̀͑ͧͯ‌​̮͈̬̥̣̫̦̮͔͠ ̷̶͇͎̏ͨt̵͎̖̮̩͙͖̫͎͇̀ͩ̂̈̊̽̃͌̅ͭ͐͋͊ͥ̍ͪ̕͏͓̲͖͇͇̹̬̬̟͠l̤̼̱͌ͥ̃̍̄ͭ̏͜ķ̧̜̲̮͖͉̻̘̦̾̾̌̎ͨ̿͂̉ͤͬ͛̌‌​͚̗̗͍n̶͔̤̙̝̹̱͈̜͉̺͙͕͚̟̪̙̣̏ͣͯͮ́ͥͪ̀̉ͫ͡ ̡̢̭͙̙̠̳͍̫̩̗͎̳̺ͨ̓̽̓͂͛͂ͪͣ̾̋ͮ̿͆ͣ̓ͧ͛́͡͡ͅͅȍ̴͍̫̎ͩͥ̎̌̕u̡͆̾͝͏̜̞t̸̟̑ͨ̅ͥ̿ͤ̒.̳̰̟̔̋ͭ̓̌ͪ͗͆͠͡
And where I can find it. I had to copy pasta that
 
that looks familiar....like on bobince's rant on xhtml/regex stuff...lol
i'm guessing...not sure, but guessing...that it's making very heavy use of combining chars
stick like 25-30 combining chars before a char, and you end up with 25-30 accent marks etc
and since you can't show them all in the same spot without it becoming like a big black splotch...
 
4:10 AM
if you're in windows, use the character map application
 
5:02 AM
morning people
 
But why do those characters escape out of normal bounds?
 
5:36 AM
because they have may diacritics appended
 
user142951
5:50 AM
neat, i was wondering about that
 
6:06 AM
can anybody tell me what is this 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB7.1; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)', '2011-07-23 22:27:51
how can i get through php
?
 
6:24 AM
@Sparkx $_SERVER['HTTP_USER_AGENT'] ?
 
@Sparkx its a user agent
In computing, a user agent is a client application implementing a network protocol used in communications within a client–server distributed computing system. The term most notably refers to applications that access the World Wide Web, but other systems, such as the Session Initiation Protocol (SIP), use the term user agent to refer to both end points of a communications session. Web user agents range from Web browsers to search engine crawlers (spiders), as well as mobile phones, screen readers and braille browsers used by people with disabilities. When a user agent operates, it typically...
1
A: I need to write a web crawler for specific user agent - please help

GordonPlease refer to RFC1945 for how a User Agent should be formed: 10.15 User-Agent The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recogniti...

 
7:01 AM
@tereško thanks :)
 
hi. I have problem with PHP codes that I posted on: stackoverflow.com/questions/7816879/…
can anyone help me out ? thanks.
 
user680786
good morning
 
gd morning
 
You know you need more sleep when you run over the cereal ingredients six times before realizing you forgot milk...
 
7:12 AM
@Findo whats with all the regex in that question?
 
@Gordon - regex?
 
@Findo why do you preg_replace
 
I'm pulling the array from an xml feed
 
@Findo and why do you need regex/preg_replace for that when you are already using simplexml?
 
A friend gave me that bit of code...
 
7:15 AM
call him a "friend" from now on ;)
 
I'm a n00b - he gave me some code and from that I've been trying to figure out how it all works - I've learnt a bit already, but I can't figure out how to sort
;)
this is the feed btw andrewfinden.com/test/feed.xml
Any thoughts on the array_multisort issue?
 
i have a list of checkboxes that i dynamically generated as below:
echo '<input type="checkbox" name="delstaff[]" value="' . $row['staffid'] . '"/>';
I do a "echo 'delstaff: ' . $_POST["delstaff"][0];" and managed to get one of it's values
how do I get the whole list instead of the [0] value ... i want all the values it have
 
i found my own answers .. thanks
 
@Gordon fwiw - when I remove $file = preg_replace('/(<role[^>]+>)([^<]+)/si', '$1', $file);
it doesn't show all the array data...
Honestly, I've not idea what regex/preg_replace does, or is for.... but is it getting in the way of the multisort issue?
 
3 messages moved to bin
@Findo eih, sorry. that was just too much at once
 
sorry.. I thought that it minimises once posted..
 
see my answer and link above please. you dont need the regex for that at all.
$profile = simplexml_load_file('http://andrewfinden.com/test/feed.xml');
$productions = $profile->xpath('/profile/repertoire/composer/work/role/production');

usort($productions, function($a, $b) {
    return $b['startdate'] - $a['startdate'];
});
is all you need to load the feed and get the productions sorted by startdate in descending order
 
7:46 AM
thanks.. but I'm getting an error:
Parse error: syntax error, unexpected T_FUNCTION
 
@Findo then you are using an outdated php version
@Findo its because of the lambda.
 
How do I tell what version I'm using? (I'm running it on the web host)
 
echo phpversion();
but you can just change the following
usort($productions, function($a, $b) {
    return $b['startdate'] - $a['startdate'];
});
to
function sortProductionStartdateDescending($a, $b) {
    return $b['startdate'] - $a['startdate'];
}
usort($productions, 'sortProductionStartdateDescending');
 
version 5.2.17 fwiw
 
@Findo yeah, not too outdated but still outdated. ive seen worse on webhosting ;)
 
7:50 AM
that seems to have done the trick - thanks! Now I just need to traverse it...
 
<table>
	<thead>
    	<tr>
    		<th>Year></th>
    		<th>Company</th>
        </tr>
	</thead>
	<tbody>
	<?php foreach ($productions as $production): ?>
    	<tr>
    		<td><?php echo htmlspecialchars($production['startdate'])?></td>
    		<td><?php echo htmlspecialchars($production['company'])?></td>
    	</tr>
	<?php endforeach; ?>
	</tbody>
</table>
 
yep.. I want to pull out and only show the ones with reviews.. I think I figured that out before
 
change the xpath in the beginning to '/profile/repertoire/composer/work/role/production[review]'
that will only find productions that have a review element
 
ah but If I want to echo the name of the production, I actually have to step out one, don't I?
 
@Findo no. the [review] parts is a criterion for the production elements. the xpath will limit the production element returned by that
 
7:57 AM
but how would I echo the work name, as it comes before the production element?
 
ah, ok. work name.
you cannot go up to a parent node with simplexml, so you just query all the work elements and traverse those instead. you can still sort by production date and still limit by review
 
great! thanks (sorry, just had a call and have to run, but will keep playing later - I appreciate your help!)
 
ehh
 
Sam
Hey there, in my ZendApp one Controllers addAction doesn't render me the body around the form. But i can't find any setNoRender or anything that would indicate me telling him not to :P What places apart from the controller can i look? :P im helpless right now
 
setting up putty's pub/priv key authentications was like doing black magic .. doing strange things, with no apparent effect
 
8:08 AM
@Sam controller code please
 
Sam
just a sec :)
 
after pasting the code to the message box, click the FixedFont button that will appear on the right.
 
Sam
@Gordon pastebin.com/BxXES8ns there you go
 
@Sam ok, first things first. please read stackoverflow.com/questions/3109715/… while i try to find the issue in the controller
@Sam i dont see anything that would cause the layout or the view not to be rendered
 
Sam
That's why i asked if there can be other ways i may have put that not to be rendered - like bootstrap (which i checked)
 
8:22 AM
@Sam well, technically anything can get hold of the ViewRenderer
 
Sam
and thanks for the link, im still trying to get used to the mvc concept :)
 
@Sam the easiest would probably be to profile that code once and then check the execution path/call graph to see what happens. you can do that with xdebug or zend debugger
@Sam how is working for DUIT btw? do they pass the Joel Test?
 
Sam
So far so good i'd say, though it would actually wonder if you're thinking of the same DUIT i work at :P
haha prolly not :P as far as zend development is concearned im the one man army and im trying to adapt as many good stuff as possible - free time used to learn more about unit testing and - for now: slim controllers and keeping busines logic out of it ^^
 
@Sam I was assuming its duit.dvv.de
 
Sam
Ok, well then you are actually right - how have you heard abuot it? ;)
 
8:29 AM
@Sam I haz mad google fu skillz ;)
 
Sam
:P
and now i need to learn profiling, hehe, sob
 
well, actually I googled your name from the @author annotation and then got duisburg in the results, headed to your twitter to confirm you are german and then figured DUIT means Duisburg IT and then it was cake to google that
 
Sam
Hehe, yeah, im quite well searchable over google ^^
well, at least now i have lots of fun learning new stuff, thanks for the advice :]
 
@Sam try to convince your boss to send you to php-summit.de
 
@Gordon can i have a look on my problem. basically i've sliced design and exported into netbeans. The problem is it is saved as html file. but the first page loads is index.php. so how can i change it from html to index.php?
 
8:35 AM
@mann yes, you can have a look at your problem. who am i to say you cant? :)
 
@Gordon oh ahaha. sorry. miss spelled. means can u have a look on my problem :-)
 
Sam
@Gordon Oh, there's several con's i'd love to attend :] Sometimes though "it makes me better and our applications more secure" isn't enough of reasons :P
 
@mann well, i am not using netbeans but i guess you can just rename the file?
 
@Gordon which IDE u use? which is better? if u dont mind me to ask u
 
@Sam that's a pity because management should know that they only get software as good as their developers are.
@mann im using Zend Studio but I cannot tell you if it is better than Netbeans. I am only using it because it does what I want (most of the time) and I am used to it after having worked with Eclipse before. So, it is totally subjective reasons.
 
8:40 AM
@Gordon ok fine thanks.
 
Sam
That's as true as it can get, sadly though web-applications aren't really seen as the way to go. I merely do some little projects (which usually are well accepted) :) Mostyle we're an internal service provider - and the web doesn't play too big of a role - sadly
 
@Sam i see. well, in that case, have a look at ofps.oreilly.com/titles/9780596518387/pattern_list.html and make the best out of what your job offers until it doesnt offer enough anymore
 
Sam
Hehe, another interesting read (for home) - and yeah, im in the lucky position of having a great team-boss, so actually i can take myself a lot of time to learn - that's the sole reason im using zend at all and getting into the concepts of mvc :) And as far as the future is concearned - i do got my thoughts about it and i wouldn't work in an environment where i can't be happy ;)
 
good. never forget that :)
@Sam try to get tickets for php-unconference.de or froscon.de next year. They are both pretty good and low cost.
 
Sam
Oh and i've found an error - i've missed to assign a view-variable. Apparently that led to the layout not getting rendered. Gotta note that for the future
 
8:51 AM
@Sam in the controller?
 
Sam
Inside the view i used $this->atype->bla() but atype wasn't defined by my controller
 
@Sam ah, inside the view. ok. then i couldnt find it from the pastie
 
Sam
Yeah, i didn't know it has that effect. Using an undefined variable simply does nothing. But using a function of an undefined variable results in the layout not to get rendered - apparently
 
no clue. but ZF does a lot of weird things :)
 
Sam
Oh yeah, learning this is not too easy - only thx to Zend_Application i found my way into it
 
9:03 AM
hi in config file i have written `define(HOST_NAME, "localhost");
define(USER, "root");
define(PASSWORD, "");
define(DATABASE, "mrs");` and in de class i have written `$conn = @ mysql_connect(HOST_NAME, USER, PASSWORD);` but the values are not inserting in that mysql_connect function
 
@Sam i like the various components of ZF (as long as I dont have to tweak them) but the MVC part of ZF is really broken. Cant test anything of that properly.
@Sparkx yeah, that sounds like you are doing it wrong. See stackoverflow.com/questions/2237291/… for alternatives. Basically, there is no reason why you make these values constants. You only need them once to initialize the db instance and then never again, so why have them?
 
@Gordon i just wanted to define and use them in my db file
is that wrong way?
 
Sam
It probably is, i'm not usign mvc long enough to comment on that too well. Do you feel ZF2 is going in the right direction then? (whenever that will be release :P )
 
@Sparkx i think it is. i dont think you should have any global constants at all. configuration should be kept in a config object or a simple array and then applied to where it is needed from your application bootstrap. that prevents polluting the global namespace and coupling to it.
@Sam i havent seen much of ZF2 yet, except for yesterdays presentation at ZendCon. Not sure if its the right direction but they say to have fixed a few of the well known complaints about ZF1 and also revamped the MVC completely. The beta is already out if you want to take a look: packages.zendframework.com
 
actually config.php is my constant defining files and i am suggested to define constants for this setting so i define all db variables in that file ,now i just wanted them to call in db class file
 
Sam
9:13 AM
Oh didn't notice that it's beta by now, that's a good thing (i guess) - So i got homework to do - setting up a zend2 application withotu Zend_Tool, hahaha :P
 
hi all
any one here who created WP plugin?
need readme.txt file help
 
@Sparkx yes and that is why they shouldnt be globally available constants. because you only want to call/use then in the db class file and nowhere else.
 
@Gordon hi mate actually i have sliced my design n put that into php file. This design is like a box covering whole screen. But when i view it into web browser it does not cover whole screen and aligned left. have u got idea why so?
 
@mann maybe some CSS definition broken? Ask in the CSS room or WebDevelopers Lounge Chat please.
 
@Gordon so what is the solution for this?
 
9:16 AM
@Sparkx Have a $config object or $config array and only pass the values your components need to your components in your bootstrap file.
 
Sam
@AjayPatel i did some time ago, what's the question :)
 
Sam
@AjayPatel oh well, that's something i prolly can't answer - never made any public plugins - maybe they need to get reviewed before displayed?
 
yes i have pass that review
you can see my plugin is like on this link wordpress.org/extend/plugins/twitter-rss-social-stats
 
Sam
Hmm, sry - no clue :(
 
9:19 AM
@Sam ok no prob bro.. thanks
 
Sam
@Gordon About this business logic != controller thing // Right now i have a Form "Printer" - for addAction() i display all fields - for editAction() the controller removes certain elements from it. But that's busines logic, as far as i understand. So to keep that out of the controller i would need to write two forms. Am i right? Or what's a different approach?
 
@Sam the main idea is really just to move all the logic into your Model (which is just not the database table like its often suggested). your controller should only check that it has enough data from the user request to fulfill that request. that data should be passed to the model then. and the model then does all the work. So in your case you should have an addPrinter() method on the model.
 
Sam
The DB != Model i understand (even though not using it) - so the way to go would be... creating a "Model_Printer" - that has methods like "getAddForm()" - "doInsert($params)" - "getEditForm()" - "doUpdate($params)" // (simplified)
 
@Sam yes, if you are using a tabledatagateway, e.g. Zend_Db_Table you can add an addPrinter method that you just pass the complete Form when it's valid. that method would then try to update the table.
 
Sam
simply returning true/false then and the controller decides how to handle that return
okay,will gotta try that approach on the next module for sure, maybe that makes everything cleaner then :]
 
9:34 AM
either that, or if something unexpected happens you can throw an exception and catch it in the controller. There is some other approaches as well, but that is the easiest.
another way would be to have the model object fire events other objects, like the view object, can subscribe to. that way, you dont have to pass anything back to the controller. i think that is how they handle it in ZF2, but dont nail me on it.
 
Sam
Hmmm, ill just try out some thing and if they feel good or not :P
 
9:50 AM
posted on October 19, 2011 by Ian Barber

In the last post we had a simple stepping algorithm, and a gradient descent implementation, for fitting a line to a set of points with one variable and one 'outcome'. As I mentioned though, it's fairly straightforward to extend that to multiple variables, and even to curves, rather than just straight lines. For this example I've reorganised the code slightly into a class to make life a little e

 
Can anybody help me getting facebook event Admins using the API??
call me at: 00923129912287
 
user680786
10:07 AM
@XXXcoder lol
 
An international call prefix is a telephone dialing code used to dial out of a country when making an international call. They are also called international access code, International Direct Dialling (IDD) code, exit code, etc. These codes are different from the unique country calling code every country has which is used to dial in to that country. When making a call between countries, the caller must first dial the international call prefix, then the destination country calling code, then (usually) an area code, then the local phone number. The International Telecommunications Union (...
so its pakistan when his user profile says location United States
 
user680786
@Gordon 009 - Nigeria
 
0092 is pakistan
 
user680786
ok ok
 
@OZ_ tbh i dont understand the list at wikipedia. it doesnt even list pakistan
 
user680786
10:22 AM
@Gordon so pakistan is part of nigeria (by wikipedia's opinion)
 
@OZ_ well, its an english language article so it might have been written by an american and, as we all know, they can come to conclusions like that.
 
@Gordon i have sliced design and exported into IDE now the problem is its table based. can i convert into div based? or table based will be ok?
 
@mann sorry, best asked in CSS room or WebDevelopers Lounge again please
 
@Gordon nobody there. but thanks for ur concern
@Gordon but u are making websites. so you use table based or div based html?
 
why did no one tell me I typoed on the Zend Con stream pinning?
@mann divs of course. tables are for tabular data. not for layouts.
 
@Zirak :)
 
Yahoo answers is a gold mine for intelligence
 
hehe@rt @ircmaxell
I can only speak for the programmers, but that part is true! http://t.co/z2leqtJk
 
anybody has experience with fireworks or netbeans?
 
00:00 - 11:0011:00 - 00:00

« first day (368 days earlier)      last day (4577 days later) »