« first day (640 days earlier)      last day (4301 days later) » 

10:01 AM
there lots of tuts that already covering basics. so, what we could do is to make something that covers on implementation. Also i was thinking of a html5 basics series. Lots of sites have it but yet it good to have a series on your site. It just feels good! :)
 
Writing a really good and worthwhile tut is really a lot of work. I would not consider doing it anymore unless paid for, or unless the scope is really narrow enough so you can cover it in enough detail in a short amount of time. Your scope does not seem particularly narrow yet... :-3
 
@Sisir What would one gain from writing a tutorial for you?
 
@deceze I don't always write tutorials, but when I do, I take $1000 for it :D
 
@PeeHaa money is the motivation. but surely everyone have his budget :)
 
@Sisir What kind of money?
E.g. this == $### ?
 
10:05 AM
@Sisir , here is the kicker : HTML5 is not finished
you could only make tutorial based on what each browser has implemented
 
@PeeHaa ya
 
@Sisir please cache your elements? return $(this).val() === "" || $(this).val() === $(this).attr("title") || $(this).val() === "Your message here...";
@Sisir How much money is that worth?
 
lol
if you are using $(this).val() and $(this).attr('title') , then you should try different hobby
 
@tereško its true.. but it gets lots of search
so, as a new site if you have some good tutorial on it.. you get attention
but i am open to other tutorial ideas too (php, jq/js, wordpress...)
@PeeHaa this was a basic one i wrote with my little knowledge about a year ago.
but i would like to know anyone interested so we can take the conversation on email and perhaps discuss about money there.
 
10:23 AM
16 mins ago, by PeeHaa
@Sisir How much money is that worth?
 
Why would I pay for PHP tutorials when I can just get people on SO to write my apps for me ;D
 
@Leigh ur smart
 
BTW: shoot me an email from here web.tutremix.com/contact
 
now there's an awesome idea, shoot people by email... maybe some sort of raspberry pi controlled drone...
 
@PeeHaa I wrote it. I would expect a lot better quality from writer though :)
 
10:28 AM
@Sisir Way to implement a spam form
 
@PeeHaa: I assume nothing happened re: "the wiki" yet?
 
It wouldn't surprise me when there are other problems on your site when you let everybody sent mails to any emailaddress
 
@PeeHaa ?? i don't get much spam from the contact form.. i guess it happen when you get more visitors
 
@Sisir But pther people are if you don't get that I'm wouldn't be surprised there are other problems
 
@Sisir You let people specify any email address they want, and "send them a copy"
= spam
 
10:31 AM
@Leigh I'm first going to finish some other projects :( Busy times
@Sisir How are you storing passwords?
 
@Leigh you talking about the checkbox?
 
@PeeHaa No thats cool, I want to be around when it gets going :) - (and seriously think about some google ads ;))
drive up some traffic, offer incentives for people to make awesome content that will further drive traffic, ???, profit
 
@Leigh ah, i see what you mean..
 
if I see another tutorial site made with WP I'll barf...
@Sisir how is your site better/different than Tuts+ ?
 
@webarto its not (at least on current situation).. but its a start
 
10:45 AM
Hey guys. I did not find a room that is specific for XML questions, so is it okay if I ask one here?
 
no
 
@tereško evil
 
@Blade Does it have anything to do with kittens?
 
@deceze Well, no, not really.
 
@Blade :(
 
10:46 AM
@Sisir I just find it too similar, you know... anyways, good luck with your project. Just try not to give wrong instructions or your users will end up here saying "I've followed this tutorial..." :)
 
Then there's no guarantee we can help.
 
With puppies perhaps?
 
@webarto Indeed. The world doesn't need more mediocre advice.
 
@webarto i know what you mean :) I am starting to putting money onto the project again. hopefully get some writers soon..
 
@Blade Just try it anyway, nothing going on currently... ;)
 
10:49 AM
@deceze Oh well, I give it a shot :) I create a XML via PHP from my database. It gives it to me in a random order. However some lines are pretty long and on that lines I get "invalid character value" - So just to clarify: I thought that XML could be as long as I want it to be? I looked for chars XML doesn't like, but I can't find any. If I split the long text up it works fine. But all text in one row and I get the error.
However if I change the text to just random letters and numbers (without spaces) of the same length, I get it back fine.
 
There's no length limit in XML. You're doing something wrong in your code.
What is giving you "invalid character value" and what is the character in question?
 
It gives me the error at this line (sometimes) $xml_string = $doc->saveXML();
$doc->save("MyXML.xml")
Looking for an invalid character: I can't find any. Text is just normal plain text. Lorem ipsum stuff with dots and commata.
So nothing out of the ordinary or special.
 
Can you post complete code somewhere?
 
Yes sure, gimme a sec
 
@Sisir define money :) Tutorials are pretty exhausting to write...
is there array_rand_values ?...
 
10:56 AM
 
x_x
challenge accepted
 
@Blade Spontaneous guess: DOM expects a certain character set to be used (likely UTF-8), while your data is latin1 encoded coming from the database and there are some non-ASCII chars in there.
 
@deceze thanks, let me try to fix that brb (or not)
 
@Blade And of course don't use mysql_* use PDO blah blah blah
 
11:02 AM
PDO or MySQLi? Which?
 
When you use // at the start of links to auto select the protocol, what is that called?
 
auto protocol select
 
@DanielsPitkevičs Whichever, just not mysql_. Personally: PDO.
 
@deceze Looking in internet about which is better, looks like PDO wins
 
A relative reference that begins with two slash characters is termed
   a network-path reference; such references are rarely used.  A
   relative reference that begins with a single slash character is
   termed an absolute-path reference.  A relative reference that does
   not begin with a slash character is termed a relative-path reference.
 
11:05 AM
One word: $stmt->bind_param('ssssdisidssi', ...) - I rest my case.
 
@Leigh
 
@webarto That's something different ;)
That's about UNC
 
@deceze thanks, works, it was latin1, changed it to utf8_unicode :)
 
@Blade I'm afraid to ask, but how did you change it exactly?
 
@deceze What do you think? I sacrificed a goat to the god Ra, danced with a dead chicken and stomped repeatedly on my laptop.
 
11:08 AM
@Blade OK, that'll do.
 
I just changed the coalation in my database from latin1 to utf8 :)
 
@Blade hahaha :D
 
@Blade Aha. That should not actually change what you get back from the database.
You need to change the connection encoding.
As always, see: kunststube.net/frontback
 
@deceze Oh okay, thanks. I will read it. brb (or later)
 
11:13 AM
@webarto nevermind, I misread that text you posted ;) thought it was talking about backslashes
 
@webarto so it's net_path in the RFC, but what to people call it in the real world? :)
And I'd disagree about it being rarely used
@webarto Well I found the Q on SO that you quoted, you should have just linked it: stackoverflow.com/questions/3583103/… (so to answer my question "protocol relative" or "scheme relative")
 
@webarto $money = rand(50, 200).'USD';
 
@Sisir OK, you get a tutorial on how to use substr for that.
 
@deceze if we need to get to that basic stuff, i will rather want to get video tutorials..
 
@Sisir OK, you get a 1 min. screencap video with voiceover on how to use substr. That's actually faster, no need to proofread. :-3
 
11:25 AM
video are lot easier to follow.. and lot easier to do ( if you are native on english )
 
Actually, I seem to be the only one who doesn't like video programming tuts. I'd rather read a written article at my pace rather than having to hear someone ramble on and not being able to go back and forth easily... :-/
 
Learning is faster on videos at least for me :)
 
@deceze I wouldn't be able to learn from a video. I prefer the manual and an error log.
 
Good morning
 
@ircmaxell UGT
 
11:32 AM
@ircmaxell morning
 
@Leigh So I'm not alone after all... ^_^
 
@ircmaxell ello ello. More speakers got announced for PHPNW. I'll promise not to tell any passing police you're a terrorist and your usb keys are encrypted ;)
 
@Leigh I haven't looked at that question but: http://www.ietf.org/rfc/rfc3986.txt
@Sisir that is good money :)
 
has use of encryption become "sign of enemy combatant" in USA now ?
 
@tereško nah in the UK it has been for some time
 
11:35 AM
more and more it feels like Orwell was an optimist
 
@webarto that RFC is pretty recent, it's been valid since pre-1997 as far as I can tell
@webarto there we go, 1996 ietf.org/rfc/rfc1945.txt
 
@Leigh dunno really "two slashes inurl:rfc site:ietf.org"
goto 3.2.1 General Syntax in 1945
 
@webarto I already did... was me who linked you 1945 O_o
 
@deceze Thanks man, the document was very useful and it works as intended now :)
 
11:40 AM
@Blade Glad it works.
 
@Leigh in case you've missed :P
am I good at this?
 
@webarto Mud soup?
 
cheap coffee
 
define expensive? :) it doesn't taste good... @deceze heart attack potion :D
 
11:45 AM
coffee makes the world go round , the world go round , the world go round ...
coffee makes the world go round , the world go round , the world go round ...
 
@tereško careful, cholesterol!
 
Cholesterol ????
You should be more afraid of insanely high sexual drives ...
 
@LeandroArielPezzente I thought it was Keplers law
 
I'll be cholesterol free when I die
 
@Leigh Yeap , and Moore's Law too ...
 
11:50 AM
@LeandroArielPezzente i am already insane on that.. so, nothing can help ;)
 
@Sisir We coffeineholics are doom !!! Sexual drives will kill us !!!
 
green tea FTW
 
37.3.0.64 - - [17/Jul/2012:04:21:03 -0700] "\x12\xbbAY\x16\xb3v\xf8oc%y\xf9\x1cr\x06b\x8dM\xc9E(\xb7\xf4" 500 5283 "-" "-"
dafuq is this in logs
 
bot
 
@tereško i have a box of it for a year.. still not opened..
 
11:55 AM
:(
 
@deceze looks like mine now :D
 
@Sisir , maybe you should .. it has more caffeine then coffee , and it contains antioxidants
 
@tereško baidu I think(s)
 
@webarto Mine looked like that for the last half hour or so. :(
 
moment of silence :(
function random_sentence_spin($str)
{
    $new_str = preg_replace_callback('/\{([^{}]*)\}/im', function($matches) {
        return explode('|', $matches[1])[mt_rand(0, substr_count($matches[1], '|'))];
    }, $str);
    if ($new_str !== $str)
        $str = random_sentence_spin($new_str);
    return $str;
}

$rand_sentence = "{Please|Just} make this {cool|awesome|random} test sentence {rotate {quickly|{fast|slow}} and random|spin and be random}";

for ($i=0; $i < 10; $i++)
    echo random_sentence_spin($rand_sentence) . PHP_EOL;
can haz make it shorter?
 
12:02 PM
@webarto Do you hate curly braces?
 
PHP
A new question(confusing for me) from my interviewer
if a web page (written in PHP) loading too slow, what may be the possible cases you would look for?
 
@tereško i will try it tonight.. never like the test of it..
 
@PHP profile the shit and dont go in blind :)
 
@PeeHaa no hate no love, should I love them?
 
@webarto IMHO you should alywas use them
 
PHP
12:04 PM
@PeeHaa These interviewers screwing me ... f***.. it feels like dumb with these questions x(
 
@Sisir it is kinda an acquired taste (and depends on the brand) , you can always add lemon
 
@tereško recommend one, coffee is making me fat(ter) (I drink with milk, can't with water)
 
@webarto i have no idea what is available in your shops , i buy mostly this one : apsara.lv/category/green-tea/exclusive-sacks-green-tea
 
I don't live in forest (wish that I do sometimes)
 
PHP
@webarto have you seen my new interviewer question? I am curious to know it is me only who face such kind of questions..or you guys have gone through with these also?
 
12:08 PM
@PHP code I've pasted if actually an interview question, I've seen guys that provide "solution" in 100 lines, and they still "pass".
 
@webarto , and i bought this one , but have not tried yet
 
The one part of my trip to Chicago i'm not looking forward too: no Tim Hortons :(
 
@PHP , my answer would be : "bad SQL code"
 
@tereško thanks, thanks :)
 
PHP
@webarto is there any way to give them facepalm x( am too frustrating
 
12:11 PM
@PHP no, I haven't seen, can you paste them?
 
PHP
@tereško I asked them "some bad loop condition" or "some queries like SELECT *"
but they wanted more
 
the question was about optimization
you should inspect the network activity graph for the website
that would let you know if the problem is caused by frontend or backend stuff
next step would be looking at all the SQL queries
then server error logs
 
you should have said, let me take out my crystal ball
 
ans then profile the page with xDebug
 
slow query logs
 
12:13 PM
gtg guys.. later
 
grep 'SELECT *' .
 
hi everybody can anybody tell me how to disable css property in IE7?
like .test{ width:580px;line-height:12px;} but in IE 7 it will be .test{ line-height:12px;}
 
@Sparkx use conditional comment : haslayout.net/condcom
 
PHP
when I said about "select *" they were like give some more examples
although they didn't specified what's the code written in that page
 
why are you still trying to get a job from that company ?
 
PHP
12:16 PM
@tereško no, not that previous one I have given new interview
 
what is IE7
 
you have to understand tht websites can be slow for two reason : frontend and backend problems
 
PHP
@tereško but they said a "single page"..not website
 
page is part of website, script is something different...
 
backend issues are usually related to bad SQL interaction , some strange file operations , poor sorting algorithms , server load .. things like that
 
12:19 PM
frontend are crappy jQuery plugins...
 
frontend issues come from bad JS code, lack of caching , poor choice in media formats , hard-to-render html
 
PHP
@webarto yeah, I think they mean with single script
 
if they meant single script , then you should have asked : "can i look at that script?"
 
PHP
@tereško .. at last I ended my answer with this, that its totally depend on whats in code
 
12:20 PM
@Leigh who the f* upvoted
 
PHP
not sure they expect this reply from me or not
 
@webarto , the guy who answered
 
@webarto no idea, the guy made a typo and some tard gave a non-answer so who can't delete
 
lol, gave a comment in the answer, of answered question, and the questioner, will accept commenter as correct answerer, to the question he already answered in question...
 
and now its gone. phew
I really REALLY hate those little leeches who take someone elses comment and put it as an answer
 
12:24 PM
or just copy paste your answer and OP marks that as correct because it is one scroll closer...
 
you can report it to mods
in case if it is a copy-pasted answer , he/she might get a band
 
mods - the invisible force ... didn't know that, thanks
 
in case if it is a comment, you can ask that the answer gets deleted
 
Seems like a waste of mods time
 
@tereško Awesome, I always wanted to be in band! Will try...
 
12:30 PM
does anyone know if ircmaxell has a roadmap for phppasswordlib? it's still in alpha.
 
damnit
 
@markus-tharkun monitorix is noice
 
@deceze , "banned" , i meant "banned"
 
bannd ... doesn't matter, understood you...
3
Q: How do I translate this ImageMagick command into it's PHP Imagick equivalent?

DC_I'm trying to follow this "tutorial" in the ImageMagick documentation, but having a lot of trouble. I want to complete the following ImageMagic command in its Imagick PHP equivelant: convert -virtual-pixel transparent \ \( $top -matte +distort Affine \ ...

f* hipsters
 
@tereško :(
 
12:39 PM
I am going through some SO questions and answering them as I go when I realize a significant portion of the people asking questions are either drunk or illiterate..
<---- PHP tagged questions
 
Is there anything novel in it?
 
Please vote close this, both duplicates
-1
Q: put the value of radio button and check box into database PHP

Budi CzrasI would like to try insert the value of checkbox and radio button into my database...when I choose the option of checkbox and choose the option of radio button, the value of checkbox and radio button will recorded in the same row in database...I have 3 menu choices..each menu have 2 size options ...

-1
Q: put the value of radio button and check box into database

Budi CzrasI got error message "Undefined Index" on my menu2.php which is $Field = mysql_real_escape_string($_POST['field3']); resto.php Menu : <input type="checkbox" value="Siomay" name="tile[]">Siomay <br> <input type="radio" name="field1[]" value="4" />Small <input type="ra...

 
@tereško Another train wreck wooh :|
 
@PeeHaa will use {}, it is more readable
 
12:46 PM
@GordonM I hear you like Zend_Form: reddit.com/r/PHP/comments/wn8hq/… ;)
 
@Nadal , you can actually flag the user for moderators to look at
 
@tereško mods are fast-- the question got closed, hopefully such users are also evaluated because I doubt the disabling of their questions will prevent them from creating puppet accounts
 
i am not sure i want to see what's in that video file
 
@webarto Saw words in address bar: redtube, and rememberred that I am at work
 
always keep your speakers muted
 
12:51 PM
@webarto No speekers for me, but colleges around me
 
I have (had) my own dark corner... so...
 
Imagine - Hey, I got a task for You, let me show....ok, I will show You later.
 
I should have obfuscated link :P
 
PHP
@webarto ohh :( my system makes some log files.. I didn't noticed
 
@webarto What is obfuscated? :D
 
12:53 PM
@DanielsPitkevičs to hide or to conceal
 
@hanleyhansen Thank You. I have some great chrome plugin for it - PanicButton
Just tested - 16 tabs on about 3 seconds on not the best PC. Not so bad.
 
@webarto ?
 
if you download 80MB and play it :) I was download map updates for my GPS, and saw that craziness...
 
what's nsfw?
 
1 message moved to bin
that's not cool man...
 
PHP
12:58 PM
@hanleyhansen "not safe for work"
 
not safe for php chat room, k, sry
 
@ircmaxell What was there? Just curious.
 
look at the url, it'll tell you all you need to know
 
redirect to pr0n from local Garmin website...
 
@ircmaxell Previously sent? Ok, I understood
 
12:59 PM
@ircmaxell lol
 

« first day (640 days earlier)      last day (4301 days later) »