IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-28
[12:43]<xmlxjym>php has its own set of patterns for handling the issue of working on a subset of the model every request
[12:43]<rymrg>yes, you have to add the query string you want to all your links ...
[12:43]<suv9w9>Xyphoid, what should I look for to learn more about it
[12:44]<xmlxjym>I don't think anyone's done much work in documenting php (or other request-lifespan architecture) patterns, sorry
[12:45]<xmlxjym>you have to learn what MVC is achieving and apply the principles. there's a lot of naiive tutorials out there.
[12:45]<seawjppw>look at struts *duck*
[12:47]<xmlxjym>Fowler's pattern book has some good analysis
[12:51]<xmlxjym>domain model = web of business objects where each class is a domain-dependent thingy and they relate in a domain-dependent way
[12:52]<xmlxjym>so my domain model for my language test app contains tests, questions, people, test-attempts, and question-answers
[12:53]<nzzzmz>guys i have a strange and urgent issue; shell_exec() does not seem to be returning the output of the command even though the command does return output; any idea how to debug this?
[12:53]<rymrg>Narada: maybe the command is returning to stderr, redirect it to stdout
[12:54]<xmlxjym>the whole idea is that you can test the model separately. the model does not rely on a particular interface to the world - you don't call $test->displayHTML
[12:54]<nzzzmz>aidan: if the command takes a few seconds to return output will shell_exec hang around?
[12:55]<rymrg>sure
[12:55]<xmlxjym>in an ideal world you can operate your model programmatically from a test and confirm that the internal relationships all work without outputting anything
[12:56]<seawjppw>well, for me a domain model is a abstract view on problems to be solved which for instance is expressed in a use-case.
[12:57]<xmlxjym>to me, use cases and domain models are orthogonal
[12:57]<kyrrdyfj>Could someone take a look at this and see if they could help, thanks :) - http://hashmysql.org/paste/viewentry.php?id=2056
[12:59]<dzzayg>hello all
[12:59]<xmlxjym>i really should write up some php-specific patterns and see if anyone agrees with them
[12:59]<dzzayg>a question,
[12:59]<dzzayg>does anybodey have such a problem -> Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query
[12:59]<seawjppw>ok, but in the context of testing someone can use unittesting and mock-objects to be independent from the rest of the application and to test a specific domain.
[13:01]<adyzw> hey, i got popup login page, user enter a password and then its set session with his user id and close that window and redirect the parent window to the index.php. the problem is that he dont get the id on the parent window... any ideas why?
[13:02]<nzzzmz>aidan: it is just a python script that has function returns; it should be using stout by default i think
[13:04]<zxnzvnz>Amir1: no cookie access?
[13:05]<rymrg>Narada: check it, python-script | cat
[13:05]<rymrg>er, | less
[13:05]<rymrg>is that blank?
[13:07]<nzzzmz>aidan: no it's got stuff; i think i found the problem: var_dump(shell_exec('/usr/local/bin/python -V'));exit; returns empty string
[13:07]<usnzsvnsv>anyone know what happened to www.findnot.com ?
[13:07]<nzzzmz>aidan: it should return Python 2.4b1
[13:07]<nzzzmz>aidan: so i don't think it can find python
[13:09]<nzzzmz>hmm this is just too weird
[13:10]<usnzsvnsv>anyone know what happened to www.findnot.com ?
[13:11]<rdrrd|frlvjl>userstest: no stop asking
[13:11]<usnzsvnsv>do you even use it?
[13:12]<rdrrd|frlvjl>i dont see how thats relevant to your question
[13:13]<usnzsvnsv>does it concern you that its down? its very relevant
[13:13]<rdrrd|frlvjl>nope, i dont give a rats ass
[13:13]<usnzsvnsv>then dont comment, a$$hole
[13:14]<usnzsvnsv>let me rephrase, we bother commenting...
[13:14]<nzzzmz>ah solved it
[13:14]<usnzsvnsv>why*
[13:14]<nzzzmz>i had to relink the python binaries to more recent versions
[13:18]<wjgmnz2jd>Hi
[13:20]<dzvnaxrud>What is the best way to find pout the username / computer name of the remote host and then post it to a database when the server is BSD and the computers are on a Windows Domain
[13:20]<kyrrdyfj>Could someone take a look at this and see if they could help, thanks :) - http://hashmysql.org/paste/viewentry.php?id=2056
[13:22]<zxnzvnz>no
[13:22]<kyrrdyfj>:/
[13:22]<dzvnaxrud>don't you need a semi colon after $cus in the top bit?
[13:23]<dzvnaxrud>and you need to set $cut so it would need this line in it $cus = $_GET['cut'];
[13:23]<dzvnaxrud>cus sorry
[13:24]<kyrrdyfj>where do i set thatm in the delete.php?
[13:24]<rdrrd|frlvjl>i dont think you need the semi-colon if you only have one statement in a php block
[13:24]<dzvnaxrud>and I don't think that script is correct anyhow if you want it to do it in mysql
[13:24]<dzvnaxrud>yes set that in delete.php
[13:25]<kyrrdyfj>mrtechguy, u fixed it bud
[13:25]<kyrrdyfj>it's working now ;)
[13:25]<dzvnaxrud>ok
[13:25]<kyrrdyfj>too easy. waited an hour for that answer lol
[13:25]<dzvnaxrud>I know it is a bit like that in here sometimes
[13:25]<kyrrdyfj>it's all good :)
[13:25]<kyrrdyfj>thanks again
[13:26]<dzvnaxrud>its ok
[13:27]<dzvnaxrud>What is the best way to find pout the username / computer name of the remote host and then post it to a database when the server is BSD and the computers are on a Windows Domain?
[13:28]<zxnzvnz>asdfg!
[13:28]<dzvnaxrud>asdfg?
[13:28]<zxnzvnz>yeah
[13:28]<dzvnaxrud>explain
[13:28]<zxnzvnz>guys, anyone know a free cli tool to export from an ms sql database?
[13:28]<zxnzvnz>mrtechguy: asdfg
[13:28]<zxnzvnz>is asdf+g
[13:29]<pzds2n2jd>pwd
[13:29]<dzvnaxrud>which is?
[13:29]<rymrg>Narada: # python -V 2>/dev/null
[13:29]<rymrg>Narada: gives nothing, as I said it's piped to stderr
[13:30]<rymrg>Narada: # shell_exec('python -V 2>&1'); will work
[13:30]<mmguffvjym>anyone have a script to detect visitor internet connection speed?
[13:30]<dzvnaxrud>mynullvoid: I think you are after java
[13:31]<curr>mynullvoid: "What is your connection speed?" ... <your select box here which lists speeds>
[13:31]<curr>There you go, modify it to your needs.
[13:31]<rymrg>lol
[13:31]<mmguffvjym>kuja: well that's not funny
[13:32]<dzvnaxrud>kuja: because some users don't know their connection speed
[13:32]<nzzzmz>aidan: what does 2>&1 do exactly
[13:32]<zxnzvnz>they don't deserve teh internet then!
[13:32]<nzzzmz>aidan: ah it sends to stout? k
[13:32]<dzvnaxrud>they are called n00bs
[13:32]<curr>mrtechguy: It still *doesn't matter*
[13:32]<rdrrd|frlvjl>sup kuja, long time no see
[13:32]<curr>Hey jiggy|laptop
[13:33]<mmguffvjym>kuja: why don't you advice a policeman to ask every driver their speed prior giving their summon ticket
[13:33]<zxnzvnz>mrtechguy: those scripts don't work anyways
[13:33]<dzvnaxrud>kuja: just because you knnow what your connection speed is it doesn't mean everyone else has to
[13:33]<curr>mynullvoid: Why don't you stop comparing the web to the Real World (tm)?
[13:33]<mmguffvjym>kuja: be real man
[13:33]<zxnzvnz>kuja: just because you know the make of your tv doesn't mean everyone else has to!!!!!!!
[13:33]<dzvnaxrud>kuja: because there isn't that much difference







