« first day (575 days earlier)      last day (4389 days later) » 
00:00 - 20:0020:00 - 00:00

12:04 AM
Lisp is retarded
 
I agree
but school wants me to learn retarded stuff
 
is there a function that will convert characters like ' and ( ) into ascii
 
 
4 hours later…
4:21 AM
How is one expected to answer this stackoverflow.com/questions/10569282/…
 
 
1 hour later…
5:39 AM
Has anyone attempted to integrate doctrine 2 with the new Zend Framework 2?
 
 
3 hours later…
9:31 AM
Hello everyone, 'Morning.
I'm having trouble understanding a "counter question" made to my post,
"Can you include an example transaction which doesn't work?" @ http://stackoverflow.com/questions/10570541/paypal-expresscheckout-the-totals-of-the-cart-item-amounts-do-not-match-orde

I know that the fella who answered/asked isn't from this mighty chat, but i guess you can shed a light on what he meant (as it seems he abandoned the building)

Thanks for the trouble
 
9:58 AM
Good morning
 
Good morning donut.
 
@hakre Hello
 
10:14 AM
@hakre I tried to CV that, but it doesn't seem to register the vote. Is that because it has a bounty?
 
@hakre Never new that. So I can any old off-topic s**t and it can be closed until the bounty period expires? Interesting
 
10:57 AM
 
11:22 AM
dont use mysql_* functions
 
 
3 hours later…
2:03 PM
my recent discovery: ZeldaStep ♥ 8bit FTW!!!1
 
2:13 PM
i am badly stuck on a problem with Solr' suggester.
0
Q: solr's suggester gives "SolrException: Unknown Search Component: spellcheck at org.apache.solr.core.SolrCore"

loveshI tried using Solr's Suggester component but it gives exception Unknown Search Component: spellcheck. I am using solr version 3.6. I made changes in solrconfig.xml so it looks like this <searchComponent class="solr.SpellCheckComponent" name="suggester"> <lst name="spellchecker"> ...

help?
 
@Gordon Epic
 
2:41 PM
@Donut im tempted to buy the whole discography
 
Whole album?
I'd like to play Zelda again.
 
@Donut discography = all albums that guy made
 
Oh.
 
@Donut The Portal remix is pretty fat, too: ephixa.com/track/turret-error
 
@gordon shouldn't i use CI?
btw hi all.
 
2:46 PM
@Gordon Indeed, he made cool dubstep music.
 
i'm using CI to understanding mvc.
but as i see from comments on my question, they are a bit wrong about mvc.
also have any links that tells mvc logic good?
 
@Malixxl trying to understand MVC by using CI is indeed a bad idea.
 
i read that idea on somewhere i didn't remember :s
he was saying use a framework to understand mvc
do you know any good resource to understand mvc?
 
@Malixxl I have a couple of answers about MVC that might help you understand it: stackoverflow.com/search?q=MVC+user%3A208809
 
@Malixxl , that will fail
CI codebase is filled with bad practices , and the most positive way to describe implementation if MVC in CI would be "loose"
 
2:54 PM
most of resources on internet are crap :S they don't know well but they are trying to teach
and that makes me confused
i've read around 20 articles and watch 7-8 videos and still doesnt know what is a model clearly
i only know it is for database works
nothing more
 
@Malixxl actually what would be wrong
 
3
A: Trying to understand MVC Models, Advice?

GordonIt is a common misconception that the M in MVC is just about the database. MVC's main aim is to separate the presentation layer from the remaining application in a way that M does not know about VC. V and C form the UI, an outer layer by which users can interact with your application. C handles ...

 
@tereško you sent a link about mvc to someone like 20-25 days ago
i forgot to save it
do you remember it?
 
@Malixxl , maybe this comment might help a bit (skip to the "side notes" section)
and no , i do not remember what i did 20 days ago
 
3:00 PM
@Donut ephixa.com/track/… has some badass basslines
 
@Gordon I like it
 
@Donut me too. too bad I'm a responsible person and wont crank up the subwoofer to max level because of the neighbors
 
I 'had a talk' with neighbors about that ^^
 
morning
 
@RepWhoringPeeHaa Hello
 
3:09 PM
@Gordon tnx for the wakeup music :)
@Donut hello
 
@RepWhoringPeeHaa :)
 
@hakre wow
 
how do they even find this place
 
@hakre done
 
3:14 PM
It’s Friday, Friday, gotta get down on Friday, everybody’s lookin’ forward to the weekend, weekend...
Oh f***, it's Sunday already.
 
@Gordon did i understand it right? Model is something like core, application should run with only model even on an imaginery UI. V and C is UI part that separated from application's main works, they just help model to interact from users.
 
you could say so
 
@Malixxl yes
 
ah, got it know thanks
 
you could say everything in the circle is the Model Layer
 
3:17 PM
s/domain mode/domain object
 
Now this is strange. I'm starting with a jquery to vanilla converter. And all browsers so far are faster on the jquery object except for the android browser :P
wtf ?
 
built in jquery interpretator ? .. that would a really shortsighted thing to do
 
@tereško my simple testcase which only converts .val() to [0].value gist.github.com/2670047
That may be the case but it is strange that the android browser does it...
It looks like the $jqueryObject[0] is a bit expensive except for adroid browser
@tereško and it's more like hey look you have done this with jquery, but you could also have done it with vanilla JS
 
i was talking about android having a jquery-centric browser
 
3:25 PM
@tereško it does. hmmmm. Its rather the other way around
 
Ow well the next step would be a start to remove the sizzle stuff. That should make vanilla faster on all browser I guess
What would be the correct way of parsing a jquery piece of code? I'm thinking tokenization?
 
i've read all link you sent, @tereško and @Gordon thanks guys got an idea what mvc is now.
last question to check if i understand good, in my 2. question here :stackoverflow.com/questions/10572412/…
 
@salathe You still wanted to know what parts of docs should be handled?
 
so model should do the math and send it to controller since it's a part of application right?
2. part of code is the right one isn't it? cause model has to do business
controller just force model to get data and multiply and show result to user via view.
 
3:36 PM
@Malixxl yes, but not because it's part of the application logic, but because it is part of the business logic.
 
@Malixxl model should not return to the controller
not int near-classical MVC
instead you should bind objects from model layer to to the views
also, views should be a real classes/objects which deal with presentational logic anf juggle multiple templates
 
@tereško other way round (views observe Models), but I've yet to see an MVC application in PHP that doesnt go back through the controller.
 
@Gordon`perhaps we should make a reference question about array stuff in php?
 
@RepWhoringPeeHaa we should make reference questions about Date/Time first
 
3:41 PM
@Gordon , thats why i said "near-classical"
you cannot do a classical MVC in php to begin with
 
@tereško with websockets you could
 
just keep it simple for now
i agree that you can put view on the browser , and then observe model
but even then it is more prudent to use MVVM pattern instead
@Malixxl , yeah , you might benefit from looking into difference between Model2 MVC, MVP, MVVM and HMVC .. and how they relate to classical MVC
it will give you are bit wider understanding of MVC-like patterns in development
 
ok
 
@Malixxl or you could just follow the Fowler definition of MVC and dont care about the various differences which are all just implementation centric quibble
 
heh .. he should just read the PoEAA book and be done with it
anyway ... i got to go ... bus
 
3:48 PM
@tereško laters
 
how to find 10 last uploaded files on linux (I guess I can't sort by modification date)
 
Hey, guys. How's it goin', eh?
 
sup
 
Ah, nothin' too special. How about you?
 
http://stackoverflow.com/q/10573514/212940
 
5:03 PM
This seems to cover it pretty well.
http://stackoverflow.com/questions/6270004/converting-ereg-expressions-to-preg
 
it does indeed
 
Okay, I'm out here. Time for a little Super Mario 64. Have a good day, guys.
 
5:27 PM
@RepWhoringPeeHaa huh?
 
why i am getting this error
UPDATE student SET st_ssc_m='45',st_hssc_m='45',st_hssc_1h='45',st_hssc_2h='44',st_hssc_3h='34',st_‌​hssc_1sub='Computer Science',st_hssc_2s='Computer Science',st_hssc_3s='Computer Science',st_hssc_group='Science General',st_guardian_afford='33333' WHERE st_id=' 12'
- Unknown column 'st_hssc_1sub' in 'field list'
 
5:46 PM
@Gordon i've been reading to understand clearly what did you mean with 'but not because it's part of the application logic, but because it is part of the business logic.'
so did i understand it right? if math was about appliactions main works it should be in model or if it is just about UI(about user) it should be in controller.
sorry i don't know how to quote it so i've c/p your message.
 
@Sam could you please help me with this error??
 
Sam
Whats up @james ?
 
@Sam this error is up..:(
#1054 - Unknown column 'st_hssc_sub' in 'field list'
 
Sam
6:02 PM
Your trying to access a database right?
 
hi ,can someone tell me whats wrong in this sql ?
$txt6a = "SELECT SUBSTR($menucompare, 12, 9) AS Last4 FROM babydata WHERE $ww = ".$button." ";
im getting this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 12, 9) AS Last4 FROM babydata WHERE =' at line 1
 
yes
@Sam code is given above
 
Sam
@james Sorry i didnt see that, gimme a sec
@james Your sure the column is called that in your database? Its case sensetive i believe
 
yes i am sure
when i remove this column everything works fine
i have changed its name but did'n work
 
Sam
Your syntax looks ok to me, what type is the column (e.g. varchar)
 
6:07 PM
varchar(65)
 
Sam
Hmm im not sure then mate :/ sorry
 
@Sam Np..:)
thanks
 
@james make sure u have this coloumn name st_hssc_1sub
@james i know whats wrong james
 
@gosto it is
@gosto let me knw please
 
u have space in st_ hssc_1sub , take away the space to st_hssc_1sub
between _ and h
remove the space
 
6:13 PM
I don't see any space in either the query string or the error message.
 
@james just replace with this st_hssc_1sub
 
@gosto i have changed the name to stsub but its still giving me the same error.
 
@james try this sam
UPDATE student SET st_ssc_m='45',st_hssc_m='45',st_hssc_1h='45',st_hssc_2h='44',st_hssc_3h='34',st_‌​hssc_1sub='Computer Science',st_hssc_2s='Computer Science',st_hssc_3s='Computer Science',st_hssc_group='Science General',st_guardian_afford='33333' WHERE st_id=' 12'
 
@gosto same error.
 
@james try this
UPDATE student SET st_ssc_m='45',st_hssc_m='45',st_hssc_1h='45',st_hssc_2h='44',st_hssc_3h='34',st_‌​hssc_2s='Computer Science',st_hssc_3s='Computer Science',st_hssc_group='Science General',st_guardian_afford='33333' WHERE st_id=' 12'
 
6:19 PM
#1054 - Unknown column 'st_hssc_2s' in 'field list'
 
@james have u checked if its right colomns names (look big letters , spaces , ...)
have you colomn name called st_hssc_2s ?
 
@vascowhite hahah why they down vote u :)
 
@gosto checked several times every thing looks fine to me
 
@gosto down vote me?
 
6:23 PM
@vascowhite yes i saw -7 there
 
That's not my question, I'm asking for close votes on it.
= "Close vote please"
 
@james what error gives this , UPDATE student SET st_ssc_m='45',st_hssc_m='45',st_hssc_1h='45',st_hssc_2h='44',st_hssc_3h='34',st_‌​hssc_group='Science General',st_guardian_afford='33333' WHERE st_id=' 12'
 
Unknown column 'st_‌​hssc_group' in 'field list'
its looks that i need to create table again??
@gosto
 
@james i have removed 4 coloumns and u have error that its like u dont have those colomns
 
@james, this may sound silly, but it is worth checking that you are querying the right database and the right table if you haven't done so already.
 
6:27 PM
yes this is , maybe he is in wrong table
u have double entries in your first sql james
try this
 
Okay, got a DI question.
 
@james nvm
 
How do you handle a situation where an object doesn't know what object it needs until part way through its lifecycle? Obviously injecting every possible dependency it might need is wasteful.
But I'd have in the past just instantiated the instance of the object I needed within the class when it became clear what it needed. I know that's really bad but that's what I'd have done in the old pre-DI days.
What's the best approach to doing that in a DI-friendly way?
 
@GordonM Factory?
 
@gosto wasted your time sorry....very silly mistake can't even tell you... thanks for your help..:)
 
6:35 PM
@james try create the table again
@james np
@james what was the eroor
 
@vascowhite You mean inject a factory that can instantiate any object the class might need? I guess that's a possibility, yeah.
 
@james it was space ?
 
no i was in the wrong table...:P
 
@james hahah iknew it :)
i said up u are in the wrong table :)
 
@GordonM Not quite, have a factory that you get you instantiated object from when you know what you need. I think ZF2 uses that method.
your*
 
6:38 PM
@james i remeber u james , i gave u admin template before :)
 
yeah you were right..:)
@gosto You are awesome ..:)
hahaha you deserve atleast 1000k reputation..
 
@james thx :)
 
@GordonM Actually, yes, thinking about it, you have it the right way around.
 
can someone tell me whats wrong in this sql ?
$txt6a = "SELECT SUBSTR($menucompare, 12, 9) AS Last4 FROM babydata WHERE $ww = ".$button." ";
im getting this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 12, 9) AS Last4 FROM babydata WHERE =' at line 1
 
@GordonM Sorry wasn't concentrating properly.
 
6:44 PM
@gosto use single quotes '.$button'
 
@gosto , use prepared statement
and leave the string manipulations to php
 
@james doesnt help
@tereško u always saying use prepared statment , I WILL USE SIMPLE MYSQL ok !!
 
i think you do not understand what you are talking about
 
@gosto what do you think prepared statements are? They are simple sql.
 
try using double quotes for variabl
 
user895378
6:48 PM
@GordonM Yes, you should inject a factory. If the object to be created is one of a wide range of potential types you may want to reconsider how you've designed the class that requires the factory (as it's likely violating the SRP). What you don't want is a factory that can create everything. The factory should be targeted to the specific type of objects it creates.
 
variable
$txt6a = "SELECT SUBSTR($menucompare, 12, 9) AS Last4 FROM babydata WHERE "$ww" = "$button" ";
$txt6a = "SELECT SUBSTR($menucompare, 12, 9) AS Last4 FROM babydata WHERE '$ww' = '$button' ";
 
@LeeChung thx but i fixed it ;) ,
 
@GordonM , yeah , you should inject either factory (if you need different types of objects ) or a builder ( if you want same type of object but with different setup )
 
@tereško hi i'm reading since morning to figure out M in mvc(business logic part)
but still got some questions
 
@Malixxl , just ask
 
6:54 PM
@james thx james for help
 
it didn't help you...its ok
 
@james where u from ?:)
 
so a math function(like multiply some data from database), if it 's about application's main works and required to run application well should be on model, but if it is something about UI(like for user) it should me on controller right?
math function is just an example can be anything else
 
i just marvel at the variable named $txt6a .. you just can tell by looking at it that there is at least 5 other $txt.. variables and at least on $txt6b
 
Luton UK
 
6:56 PM
good
 
i'm not sure i told clearly if you want i cant write some code
can*
 
and wot about you??
@gosto
 
sweden
 
@Malixxl , this seems like a very simplified case ( you would not use MVC usually for it) , but yes, all the logic goes in the model layer , but the computation and fetching of data happens in separate parts of Model layer
@Malixxl , but i cannot understand what you meant by "but if it is something about UI(like for user) it should me on controller right"
 
aight, got it.
 
6:59 PM
the Controller is there for two reason :
1. change the state of Model layer and View
2. open the communication "channel" between Model and View (in php , by binding model to the view)
 
i mean with that was, if a variable1 and variable2 need multiply to run application this is business logic and should be on model, but if it is about user interface and not related to user should be on controller.
hmm we can say controller is just a something like connector.
 
controller is a controller .. there is no better name
 
so as you said top all logic like math etc should be part of models?
 
Hi, i have a mysql 4.1 server and im trying to insert a user but i cant find any commnds that work
does anyone know the syntax
 
4.1 or 5.1? 4.1 is pretty old
 
7:04 PM
4.1
its was set up in 2007
 
@Malixxl , if you need to multiply two variables in MVC (which would be an overkill) , then the the Controller would pass variable1 and variable2 to the appropriate Domain Object , and then bind this object to a view .. then the View would request getResult() from the object , and decide whether it needs to display the data in template for simple or imaginary numbers
in this example , db wouldnt be even required
thing is , you basically have Domain objects and DataMappers ... datamapper can save information from and retrieve into a domain object
but it is not mandatory the the data source is a database
the datamapper can be just working with a REST API (like twitter)
the Domain Object does not give a flying f*ck where , how or even if the information gets stored
 
Okay, thanks guys.
 
that makes sense now.
I tought models collect data, sent it to controller, controller do logic and renders view because of tutorials.
but i see this is a wrong idea
 
Was just thinking about the Resource. As it is rather like the model and controller being combined into a single object it will need to know how to validate different modes of input.
I guess giving it a ValidatorFactory and letting it ask that for the one it needs for a given task is the way to go
 
7:12 PM
@Malixxl , in MVC you have two kinds of logic .. business and presentation
model layer should be completely unaware of if there even is a view
for example .. model should not know that page can contain 10 items , that i part of presentation logic
 
@GordonM I guess the details will sort themselves out in your unit tests, but that sounds like a good place to start.
 
the view just asks 10 items from the things im model later , because view IS aware that page can contain no more then 10 items (and if there are no items , view needs to show template which contains "no items here" template)
 
@vascowhite Yeah, The RMR concept seems to basically abandon the idea that all domain objects should know nothing about how they use and acknowledges that directly addressable business objects should take on some of the responsibilities you'd normally assign to a controller instead. It's a way of thinking that takes a bit of getting used to after doing lots of MVC
 
@tereško got it.
 
@GordonM , actually i would treat validation as a "service"
 
7:17 PM
gonna read Patterns of Enterprise Application Architecture asap
to make everything clearer
 
@GordonM Sorry, being a self taught amateur, my programming theory is sometimes lacking. What is RMR?
 
Roast Mmmm , Roast is my best guess
 
lol
 
What's up ?
 
@GordonM Got it "Resource-Method-Representation". Something new to learn :)
 
7:21 PM
has anyone every updated an old joomla site?
 
@StephenWolfe No, not yet, but I think I'll be doing on in the next month or so. I'm not looking forward to it.
 
@StephenWolfe how old?
 
version 1.0
lol
 
and target? 2.5?
 
Sam
7:23 PM
@james What was the problem?
 
Good luck, is all I can say
 
@StephenWolfe virtually impossible
 
think the site should jsut be rebuilt. boystoys.co.uk
 
hence the mysql 4.1?
 
7:23 PM
yeah
 
@StephenWolfe I once fudged around with joomla 1.0. It sucked.
 
the step from 1.0.15 to 1.5 is extremely hard, the step from 1.5 to 1.6 is still a huge pain... from there on it gets easier
 
can anyone work out how to solve this errro
 
I have a 1.5 site I need to upgrade to 2.5, it looks like a bit of a pain.
 
I have created a dozen user accounts and i still cant get it to connect
 
7:25 PM
@vascowhite that's a pain too but doable if needed
 
Lol well this site is on a windows server too
 
but from 1.0 I would rebuild
 
ugh that sounds terrible
 
@StephenWolfe Contact the system admin, oh wait that's you. lol
 
7:26 PM
@StephenWolfe , it might be more humane to just take it out back and shoot it
 
in any case you're gonna write custom migration scripts
especially if it's a multi lingual page
 
there are no joomfish migration tools yet
etc.
if you're just running a plain joomla core install, no extensions, it may work
(from 1.5, that is)
 
@tereško found that book at last, cya when i finish it with new questions.
 
that might take longer then you thing , @Malixxl
it is a hard read
and i bet you will have question while you read it too
 
7:28 PM
I have spent the whole weekend trying to get this to connect, nishikigoi.co.uk and the only different messages i can get it is if u use the root login then it says it can connect to the server and if i use a specific account it cant connect to the database. what could cause this?
 
also its java, but i need understand logic not codes
also codes seems simple to understand if you dont know java
 
@tereško Might have a point there, yeah
 
one more step closer to be a nerd, yay.
 
@StephenWolfe from where are you trying to connect to what with what client?
 
localhost
when you say client what do you mean?
 
7:33 PM
@Malixxl , from what i recall , that book had like 10 lines of code
instead what you might need is a basic understanding of UML .. there are quite few diagrams
 
@StephenWolfe you can be meaning, administrator backend, ftp, ssh, database... what are you talking about?
 
@markustharkun I am trying to connect a joomla site to its database
mysql 4.1
 
@StephenWolfe do you have ssh access to the server or are you trying to log in to a phpmyadmin client?
 
Oh I have remote access (windows)
 
@StephenWolfe and you have the root user name and password?
 
7:37 PM
yes
 
and you're getting an error?
 
yea, it all broke when i tried to update mysql
 
what error message?
 
I can connect to the databse fine, its just the site wont. nishikigoi.co.uk
Really wired,
 
doesn't sound so weird
what error is the site producing?
did the update change privileges, did you verify that the user, which the joomla install needs, still exists and has the correct privileges on the joomla database?
 
7:43 PM
If i config the site to use the root user it tells me it cant connect to the server, but if i use another account set up for a database it tells me it cant connect to the database
 
so you have verified the privileges?
have you set up a simple test db with a user and written a small testscript and run that?
 
yes
I havnt made a test
 
make the most simple test you can
 
ok brb
 
if that doesn't work, there might be some host or port problems, some added security interaction caused by the upgrade
 
7:47 PM
Yeah, tests must be as simple as humanly possible otherwise you can't be sure that the test itself isn't buggy
 
Evening everyone
 
@markustharkun made a test file works fine
 
00:00 - 20:0020:00 - 00:00

« first day (575 days earlier)      last day (4389 days later) »