« first day (550 days earlier)      last day (4624 days later) » 

00:08
ok
post a question on the website....
@Petah Are you referring to me?
I think I may have simmered it down to a "bug", where NULL constraints are checked before BEFORE triggers fire. The BEFORE trigger in my audit table is responsible for populating some NOT NULL columns, and the constraint is checked before the trigger can do it's job. A nullable column solves the problem (though is a bit of an annoyance as it seems sensible IMO that constraints be checked after BEFORE triggers modify the row)
00:25
Hey anyone one here got a clue about iCal?
I'm trying to combine two iCal feeds into one feed but whenever I open my feed with iCal/Google calendar it finds the correct name but not the events. If I save the ical file and open it with iCal it's the same thing. However if I open it and open one of the original ical files, copy the last new line and put into mine then save the file it works perfectly
I don't understand why because I've copied the newline from the original file and run ord() on it and it returns 10 just as expected and so does my original newline
This is confusing the heck out of me
Anyone got a clue of what the problem might be
The really weird thing is that there's a 8 byte size difference between the file where I replaced the last new line and the one where I didn't. That doesn't make sense to me
Wow this is weird. I don't even have to change the last newline, it's enough to just open the file, do nothing and save.
First thing that springs to mind is encoding but according to textmate their all utf8
00:40
@Bracketworks yes i was referring to you, this is not the place for those type of questions, you should post it on stack
@Petah Alrighty, sorry about that; I figured due to the brevity (and the commonness of PHP/MySQL stacks) I'd just inquire
Either way, I believe I have it sorted out.
problem is, i would help you but i need to know more information, and would prefer a working example
@Petah Oh, I understand; and thank you. Really, I'm quite certain it's a result of this bugs.mysql.com/bug.php?id=6295 All proposed or implied workarounds fix the problem
Perfect
00:50
nice
I thought so :P
Actually upon further insception in a hexeditor it seems like textmate are changing my line breaks when I save the file from 0A to 0D0A so replacing all \n with \r\n should do the trick, shouldn't it?
reading it right now :P
Yep that did the trick, thanks anyway!
01:01
@ircmaxell i like the third flaw point
;-)
yeah, why invent your own algorithm, when existing ones are there to do the same thing
aggreed
Nice article @ircmaxell
I recall first learning about security; thinking foolishly "herp derp i can security better than this, i make teh codez" followed by obligatory failure.
01:24
Hey all. Having issues with understanding relationship between CodeIgniter PHP script and Javascript AJAX call. I have a button that uses jquery to expand an area of the screen, but I also need it to call a controller with parameters. Is that possible?
Dynamically generated parameters based upon user, etc.
01:39
I just put a bounty on that previous question if anyone knows. I just need a better understand of the relationship between View, Controller, and JavaScript scripts.
understanding*
 
1 hour later…
02:49
@blackairplane did you post the question link?
03:22
@petah
@petah Sorry, here ya go: stackoverflow.com/questions/9981939/…
03:47
man, I need to stop checking out reddit
it's maddening
Tek
Tek
@ircmaxell You should probably stop lurking around these parts too ;D.

I take that back, in that case you should just leave the internet :)
 
2 hours later…
05:28
In a php website how can i add a google map which plots location of multiple users using their longitude and latitude details?
05:41
this has nothing to do with php
just read the documentation for google maps , @SHANib
06:05
@SHANib that is an overly broad question, we're not going to write you your code... do some research
google maps is fairly forgiving and easy to implement so should not take that much time, but do not start putting your code in the project until you know how it works, make a plain html/css/js proof of concept first
@SHANib
06:19
@blackairplane , i find it sad that every "answer" there require jquery
07:09
Hi everyone
gismark.net can anyone tell what is this error shown at this website
07:20
hi
would some one like to help me for Ubuntu and PHP Relation plz
i am facing some problems plz
some one there to help me plz
plz stop using "plz" as punctuation
ok
is there any PHP Programer working on Linux
is "PHP Relation" some sort of application ?
or are you having issues in setting up a php-stack server on ubuntu ?
i wana create log file i did it with sucess on Windows platform but on linux it raise error
i wana know is there any special treatment for creating file using php on linux
did u get my point
log files usually already exist in /var/log
07:31
yes but i want to create my own log for some specific purpose for my web app
for php scrip to create files , you need to give webserver's user permissions to write in that location
do you know how linux/bsd file permission work , @Danish ?
got it
no
im new in this Linux Envoirement
i dont have much knowledge about linux/bsd file permission
well .. what is the location where you want to write that file ?
i mean , what is the full path to that location
i have my file in myweb
/home/danish/myweb/log
in log folder i wana write
I link this folder in /var/www/myweb
ok , in terminal write this : ls -l /var/www/myweb | grep log
what do you see ?
07:41
wait
.. it's not like i was going to leave ..
nothing
ok .. then just: ls -l /var/www/myweb
yes
lrwxrwxrwx 1 www-data www-data 22 2012-04-14 14:45 /var/www/myweb -> /home/danish/myweb
this comes
which means that you actually wrote "ls -l /var/www/"
which was not what i asked for =P
07:45
i copies ur syntax as it is
oh .. wait ... the linking goes other way around
and paste the ans
try: ls -l /home/danish/myweb
this comand display tooo much lines
then: ls -l /home/danish/myweb | grep log
07:47
drwxr-xr-x 2 danish www-data 4096 2012-04-06 17:10 log
that should show a single one
riight
yes
drwxr-xr-x 2 danish www-data 4096 2012-04-06 17:10 log
chmod 775 /home/danish/myweb/log
this should let your webserver to write in that directory
ok
wait im checking
and make sure that apache has "FollowSymLinks" in options .. i am not sure if it's there by default
07:49
yes it works
grreat :)
thanks friend
may i know ur name and location Friend @tereško
it is all in the StackOverflow profile page =P
wait let me See
thanks to guide me
i also asked a question at StackOverflow
do i ask it from u if u like
0
Q: after updating to 2.10.1 webApp does not work

DanishIm new in Ubuntu 10.04 LTS When i run web application error occur: Server Error in '/sawdagger' Application Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an inst...

i am quite clueless when it comes to asp.net
08:07
its ok
thanks for ur help Boss
one more question plz
if i only wana give write permission to log folder which command i use
mean chmod ???
well , currently the permissions you have there are :
chmod ??? /home/danish/myweb/log (only allow write permission)
- you can read, write and execute
- webserver can read, write and execute
- everyone else can read an execute
you could do chmod 720 /home/danish/myweb/log
but i am not sure that it would work this way
i dont wana let other to excute
7 = 111 , as in "rwx"
08:12
ok
4 = 100 , as in "r--"
got ur point
mean i have to use chmod 770
Thanks alot Friend
good to see u
bye 4 now SIR
08:44
posted on April 18, 2012 by Lorna Mitchell

Someone emailed me recently, having read my book and wanting some advice. Here's a snippet of his email: So here's my problem. We dont know deployment. We work from same copy on one test server through ftp and then upload live on FTP. We have some small projects and some big collaborative projects. We host all these projects on our local shared computer which we call test server. All g

09:04
0
Q: json_encode(): Invalid UTF-8 sequence in argument

Artjom KurapovI'm calling json_encode() on data that comes from mysql database with utf8_general_ci collation. The problem is that some rows have weird data which I can't clean. For example symbol �, so once it reaches json_encode, it fails with json_encode(): Invalid UTF-8 sequence in argument. I've tried utf...

Anyone know that if pclzip unzips an archive on a host that does not use the setuid method, if the files will have 'nobody,' 'apache' or some other anonymous user?
How can i trigger the download of a file with php curl
maybe just asking for it?
or what to you mean by "trigger"?
@ArtjomKurapov When i send curl request for a url (to a file on a server), is it possible to get the file as a download dialog box in the browser?
umm.. curl is not connected to browser in any way
its a console utility like wget.. or a php library
09:17
@ArtjomKurapov Actually what i am trying to accomplish is: when i visit a particular url on the browser, i get the file download dialog box in my browser.... now cant i use curl in my php code, to send a request to this url, and trigger the file download, instead of manually visiting the url on my browser ?
well then you have to let curl know what urls you need to download
curl is evil
so is php and computers.
and people, too.
you need some sort of browser plugin with access to terminal.. which I doubt that exists
@ArtjomKurapov ok, let me investigate more on it
because its not secure to just let anyone download file in background
09:21
@ArtjomKurapov i agree...
you could do a job queue though.. and curl would get stuff from it with some APIs
but thats like.. custom solution
@Chris whats evil about it?
Everything.
It has no soul.
@Chris Do you hate curl ?
Nope
maybe it depends on the body that it exists in? ;)
09:23
Perhaps.
I'm packing my bags, then off to Tartu .. then off to Pärnu.
WOO! Road trip ya'all!
@Chris Have a great trip
something weird happened to my terminal in ubuntu, i cant see my username@computer-name thing anymore , only have a $ sign now, and i cant use tab to autocomplete when im in a folder
pmg
pmg
@Yohann blindly type "reset<ENTER>" to reset the terminal
Hi any one know about php front controller ??
@RJ45 clarify what you mean :)
I want to use html form and front controller but I'm sucked
@A
@Artjom Kurapov I can figur out a way to pass the data from form to controller class
eh.. well if you are in a model, then you should return data back to controller that called it
10:11
@RJ45 , front controller is mostly a routing mechanism
i do not understand how it would be related specifically to a form
@ArtjomKurapov , thats wrong, page controller is not responsible for passing information between model layer and view
huh?
whats wrong with passing data from model back to controller?
also , you seem to confuse the "front controller" and "page controller"
nope.. i have one controller.. the Controller :D
maybe you seem to confuse router with controllers :P
* yeah i know it all depends on a framework
no , it does not depend on framework
hmm.. interesting.. though I doubt that @RJ45 meant the pattern
considering he wanted some sort of form to interact with "controller class"
10:27
@RJ45 , why would you be passing data to the front controller ? What are you trying to solve this way ?
10:50
btw I dont like Page Controller pattern you've sent :) views shouldn't call models
@ArtjomKurapov Although I do agree that I like my views as dumb as possible in the 'real' MVC pattern the view calls the model(s) for data
I guess.. if you're stuck with java :D
@ArtjomKurapov ?
well "Real" mvc pattern probably doesnt deal with templating engine
so views are some classes that compose presentation
a pattern is a pattern no matter what language you do it in
10:54
@tereško Front controller can handle hundreds of forms with single file thus easy to modify
@RJ45 front controller does nothing with forms
@RJ45 that made no sense ..
mehehehe. yes @tereško, deal with it :D single-file is easy to modify
@RJ45 I could write my framework in a way that it handles everything in one file. I can tell you this: that's not really easy to modify
@RepWhoringPeeHaa so far I've seen high complexity code only there where you have limitations = static typing = java
php guys somehow just stick stuff with a glue, like @RJ45 does here
10:57
@ArtjomKurapov I'm sorry I don't get what you mean
No guy.... I have seen the advantage it when it comes to modifications. An architect tolled me to use for this, But did'n tell how :'(
@RJ45 What kind of architect. Like a home decorator?
:-)
he assumed that you had read the PoEAA book .. which you should have
@RepWhoringPeeHaa He is an software architect of an leading IT company :p
@tereško well reading can be for fun and can be referential.. patterns are not fun.. so when I need a pattern, I look for it.. but doesn't mean that It solves my exact problem and needs
11:01
I manage to develop simple form and send data to localserver... now i was informed to do it by using htaccess file.. 0_O
@RJ45 lol. good luck with that
Dose anyone know how to redirect any request into a one file using htacess ?
@ArtjomKurapov that sounds like you have not read it either .. and you MUST
@RJ45 like a bootstrap file?
@tereško patterns are there just to understand the bigger picture
that doesnt mean that seeing big i cant change small details
like keeping views dumb
@RepWhoringPeeHaa may be (I am new to php).. can it done???
@RJ45 look for apache mod rewrite
@ArtjomKurapov Thank you..now I have search for it. and get it doen....
11:39
@ArtjomKurapov , read the damned book
stop looking for lame excuses why it is better to be ignorant
@tereško ignorance is bliss
Is it wrong to use md5?
For passwords on an application with only one user ...
Chris: Let's fire up the xbox and play some Sims!
@Chris no, its wrong not to secure user data
@hakre I do not own xbox.
11:41
but you own sims? :D
@ArtjomKurapov So even for a tiny app salting / hashing / yada-yada is a must?
depends on yada-yada part
@Chris: If you use passwords and md5 hash them w/o a salt, well, you can store them plaintext as well.
yada-yada's definition in that case is that I have to google for some weird stuff.
i meant of what this app does
11:43
Well, by theory it should be my blogging application...
Well anyway, I'm on my way to Pärnu. And it's bloody hot in the bus.
Maybe I can get some coding done.
or see some snow :)
There's still snow? Oh gosh
I hate snow and/or anything related to cold with all my heart.
Except ice tea, that I like.
Oh and, fuck usb internet thingys. One cable + android phone and I got relatively fast internet. Everywhere.
posted on April 18, 2012 by Brandon Savage

When most developers think about books on testing, they think about books that highlight things like “test driven development” or “how to build a test for X.” There are lots and lots of testing books out there that supposedly teach us how to write tests and reach milestones like “100% test coverage.” But at the [...]

12:01
@Chris , is it a possible risk tat someone might read your php source ?
like in a shared hosting .. or something
@Chris Yes, it's wrong
use crypt(), or a library that wraps it...
if that single user is yourself and there is no risk on anyone viewing your source code directly , there is no point in hashing it at all
on the other hand , if that single user is not the developer or the system might get compromised , then md5() is way too weak
Just never do md5
There is no reason to do it
@tereško famous last words
as if you have never written if ( $user === 'foobar' && $pass === 'omfg123password' ){}
12:26
Hi ircmaxell
Hey teresko
anybody there ?
Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
12:54
morning
or not so morning anymore ^^
3PM here :D
Hi NikiC
but it's morning to me, 'cause I work by USA time, so good morning 2 u 2
its 6.25PM here
@tereško I haven't
13:09
@pmg i tried reset same thing, terminal doesnt reset it comes back to the same $ sign , no autocomplete when pressing tab, no username@compname prefix when entering commands and when i press the up key instead of re-printing the previous command i get some weird ^[][ or something characters
posted on April 18, 2012 by Eran Galperin

Graphs and charts are a useful visual way to view historical data - they make it easier to detect trends and get a big-picture view of data. All we need is timestamped data - table rows that are stamped with a specific date/time format, that can be used to group rows into time periods. Time stamped data In order to aggregate table data by time periods / ranges, we need a date/time column in t

meh. I find English to be confusing.. since graph over time (charts basically) has same name as mathematical graph, which is about connections
user471059
13:42
0
Q: Configure apache to not to skip the fragement identifier (#)

FarhanI have a LAMP setup in place. I need to know whether its possible to configure apache so that it doesn't skip the fragment identifier (#) in GET requests. Im receiving GET requests with # symbol passed as is, not URL-Encoded. So, while using the $_GET in php, im not able to obtain the part after...

user471059
any help would be appreciated :)
@Farhan what Jacco answered. Use ?Section=blah instead of #blah if you want it in your $_GET.
14:19
stackoverflow.com/questions/10211172/body-height-css (not php but needs to die all the same)
wtf does cv-pls mean
close vote please
ahhh
i googled @RepWhoringPeeHaa saw that already
thats what i saw
the gist is great info
and delv-pls =?
delete vote
@CarrieKendall sweet
14:32
@RepWhoringPeeHaa right? i love it, you want a download link?
@CarrieKendall added to favs so I can download it when I get home tonight. Tnx though
@RepWhoringPeeHaa np
14:52
installing debian from USB, found out there is I Wanna Be Loved By You by Marilyn Monroe (ClosedEyeVisuals Dubstep Remix)_.mp3 along vmlinuz and initrd.gz
@CarrieKendall soundcloud.com/angryrancor <-- my dubstep band
props for linking dubstep in StackOverflow
Tek
Tek
@vdoogs Needs more dnb : (
Tek
Tek
@vdoogs Sounds like venetian snares
xD
xD
will take that as a compliment

« first day (550 days earlier)      last day (4624 days later) »