« first day (1033 days earlier)      last day (3912 days later) » 

7:00 AM
@NullPoiиteя - they are trying to kick me - so I will go to vacation ;) but I simply don't know what to do on vacation, so I resume to work :p
 
I like my weekends. sleepy time, followed by games
also, work time~
 
yag ;p morning, @HamZa
 
@AlmaDoMundo :D
 
@AlmaDoMundo /me needs some sleep apparently lol
 
7:02 AM
@gor
 
@Duikboot you too lol
 
@NullPoiиteя I don't even have to go to an office, most of my work is done while sitting around in my underwear, on my sofa :)
 
@Gordon Thanks for the twitter message i'll sent my portfolio.
@HamZa I just woke up :D
 
lazy guys :p I woke up 2 hours ago
 
@AlmaDoMundo What time is it there :P ?
 
7:03 AM
Mayb we are in a different timezone
 
@HamZa it's Wed Aug 14 11:03:30
 
@JoeWatkins they have biometric attendance machine in my office so we have to go :(
 
@AlmaDoMundo lol I woke up at ~8am :)
Now who is lazy :P
 
@HamZa I went to bed at 3:30 AM :p
 
yey i woke up at 3.30 am .. isnt it too early :)
 
7:06 AM
now who's lazy here :p
 
@PrincewillObinnaIwuorie morning
 
09:07
 
@AlmaDoMundo definitely you :P
 
7:07 AM
@NullPoiиteя why :p
 
@AlmaDoMundo 9 am is late isnt it :P
 
i need help with sumthing
 
you were aspleep while i was not :p
 
@PrincewillObinnaIwuorie which thing do you wish to sum ? :p
 
7:08 AM
xD
 
i have a virtual machine on pc which i have installed wamp server with ssl enabled and some php scripts
and i am trying to access the script from my host computer via https which work well
but when i switch to http is gives me You don't have permission to access / on this server.
 
lol
@PrincewillObinnaIwuorie that's great ! Now you have to use httpS !
 
Anyone here using Drupal sometimes?
 
@HamZa isnt there a way to use both side by side
 
7:12 AM
Since yesterday I receive the following error msg: sht.tl/PQUs
 
@Duikboot, drupal in like minefield :p never knows where and which hook will be triggered :p
 
Indeed.
 
morning
 
Why is everyone so 'Drupal-fanboy'?
 
@PeeHaa morning
 
@PeeHaa, hello
 
I hear everywhere drupal here drupal there 'its awesome.. Now I've got a project to do in Drupal but I worked a whole day on it and since a few hours I receive that error ( sht.tl/PQUs ) and it's all broken now...
 
@PrincewillObinnaIwuorie sure there is. This should be a config problem
 
@Duikboot Drupal is not awesome
 
@HamZa so how do i go about fixing it
 
7:14 AM
@Duikboot Some people will say a duck penis is awesome too, but I've got my reservations.
 
@PeeHaa morning
 
@HamZa thanks in advance
 
debugging, have you tried searching for the problem ? If it was working in the beginning then try to remember what you have changed.
But if it's a permission error, try to check if you're blocking using vhost or htaccess
 
@HamZa on my virtual pc both https and http are working but on my host only https works
 
7:17 AM
@PrincewillObinnaIwuorie host as in VPS ?
 
@HamZa what is VPS
 
@PrincewillObinnaIwuorie Sorry gotta go
 
@PrincewillObinnaIwuorie virtual private server
 
codeigniter not working with multiple db connections
 
7:19 AM
@HamZa xD
 
I loaded the two db in __construct
 
@HamZa no as in an actual client pc
 
$this->liveDB = $this->load->database('liveDB', TRUE);
$this->metricsDB = $this->load->database('metricsDB', TRUE);
 
the vps is on the pc
 
@NullPoiиteя Seriously, how can someone debug some sysadmin stuff if he doesn't know what a VPS is ?
 
7:20 AM
first one is not working
 
I've got to go anyways, cyaa in an hour or so ...
 
While I query for this $user = $this->liveDB->query
 
@HamZa laterz ...i know xD
 
and it was so quiet place :\
 
it takes metricsDB
 
7:25 AM
it was a silence spell :p
 
sorry @all am really new at this
 
That feeling when you come to your computer in the morning and see it has rebooted by itself, then realise you have a bunch of stuff open and no idea if you saved any of it, or even what half of it was...
Mornings @all
 
morning @DaveRandom
 
@PrincewillObinnaIwuorie - and that is the point. You should not try to drive car if you're first time in a driver's place.
 
morning @DaveRandom
 
7:27 AM
@DaveRandom, morning
 
sorry for multiple ping :(
 
@AlmaDoMundo but if i dont try i wont learn
 
@AlmaDoMundo what are you doing sitting in the driving seat if you cannot drive a car !?
 
Learning?
 
hello people
 
7:28 AM
@PrincewillObinnaIwuorie, yep. But if we are talking about production env. - that is not a good idea
@Rozer, morning
 
@JoeWatkins learning
 
@Rozer hiya ...
 
why am i getting this error "You did not select a file to upload." even though i have selected file
 
how do you learn without driving ...
 
@Rozer, whait, while mediums will arrive
they'll answer
 
7:29 AM
sorry but this is pulling my hair off
 
@JoeWatkins Haven't you seen the Matrix? We all just plug into computers and install abilities these days, it's what all the cool kids are doing.
 
@Rozer E_UNDEFINED_ERROR
 
@DaveRandom - you've picked a wrong-colored tablet
 
@Rozer Seriously, do you really think that anybody here but you has an idea what's going in your code?
 
7:32 AM
@AlmaDoMundo Co-incidentally the red pill came up last night
 
Anyway, the most common mistake is wrong enctype.
 
@DaveRandom :(
 
@AlmaDoMundo could you help me figure it out we can go back to scolding me once i fix this ... lol
 
@ircmaxell awesome :-D
 
@PrincewillObinnaIwuorie, please, no offense. It was just a comparison
 
7:34 AM
@AlmaDoMundo i'm not offended this will help me remember what i learn today
 
@PrincewillObinnaIwuorie You can edit your message.
 
You're welcome.
 
thnaks @Leri how stupid i was to not find that simple mistake
thanks a ton
 
ah fun with pointers ...
 
7:38 AM
It's fun unless they make fun out of you...
 
@DaveRandom got your project on git yet, got it working yet ??
 
i want resulted data as image in facebook application
 
@upcomingdeveloper I want my own company.
 
@Leri i have asked the same question the previews day
i have searched a lot
finally i decide to ask experts
 
lol
@Leri you really a way with words
 
7:42 AM
thats why i am asking
 
@upcomingdeveloper Oh, I thought you wanted to share our wishes. :(
 
how to convert html in to image
 
And you thought there would be experts in this room?
 
@JoeWatkins I got a skeleton that compiles but when I try and make it do anything useful I fail miserably. I actually managed to achieve a small chunk of what I'm trying to do by modifying PECL HTTP, so now I need to understand exactly what the existing code does that I modified (all I really did what add an arg to a userland function) and avoid the temptation to borrow the existing code.
 
@upcomingdeveloper You mean, like, a screenshot of a page?
 
7:43 AM
yes
 
lol
@Leri you really have a way with words
 
@upcomingdeveloper Well, why don't you ask Google?
 
i have already asked but nithing sufficient found
 
@PrincewillObinnaIwuorie I could not understand what you mean, but thanks, anyway.
 
7:44 AM
gd library is not working in html
 
The problem I'm really having is understanding what all of the seemingly undocumented pieces of the zend API actually do, stuff like MAKE_STD_ZVAL() and ZVAL_STRING()
 
working only tex tbased
 
Good morning~
 
@dragon112, hi
 
@upcomingdeveloper html is a string. And I explained that yesterday. Well, no point, I see.
 
7:46 AM
but its make the html code image
 
And I know they're all fairly trivial, I'm simultaneously trying to learn (get better at) C and learn an API that numerous people who are already good at C tell me is quite hard to work with
 
not html output image
 
@Leri it seems he need to make html drawed as an image - as it was shown by a browser and then user hits PrintScreen
if so, no chances
 
@AlmaDoMundo yes exactly
 
7:47 AM
$previous = null;

foreach($registrationType  as $key => $value){


$firstLetter = substr($value->RT_Code, 0, 1);
    if($previous !== $firstLetter)

echo "<a href=".$hash.$firstLetter.">".$firstLetter."</a>";

       $previous = $firstLetter;

echo "<ul id=".$firstLetter.">";
echo "<li>".$value->RT_Code."</li>";
echo "</ul>";

}
 
i am creating a facebook application in which user selected the data like gender, hobbies etc and and whole the data is publish in his wall as image
 
Don't try and implement a HTML rendering engine yourself, that would just be silly.
 
@AlmaDoMundo There're tools that can convert html to image and you can call them via exec. No point of taking screenshots from users when data passes through server.
 
How i count how many words start by first letter ?
i mean how many words return A as the first letter ?
and so on?
 
@Leri @DaveRandom @AlmaDoMundo please help me
 
7:49 AM
@ఠ_ఠ /^|\s*A/
 
@upcomingdeveloper I just linked you to the best tool for the job
 
@DaveRandom to where i add that code?
 
@DaveRandom i don't know about shell programming.also its not working
2
 
@ఠ_ఠ You use it with preg_match_all(), which will return the number of matches
 
7:51 AM
@DaveRandom Zend is pretty mysterious, there's nothing for it but reading sources ... if u wanna hand stick what you have on git sure I'll have 10 minutes later to help you along ....
 
@ఠ_ఠ you can use:
$sData = 'This is SomeThing That Is WrittEn hEre';
preg_match_all('/([A-Z])[A-Za-z]+\s+/', $sData, $rgMatches);
//var_dump($rgMatches[1]);
 
@DaveRandom I have feature request. Let's have a flag E_NOT_WORKING. And when we set error_reporting(E_NOT_WORKING); every error/warning/notice should outputted as: urgent help needed: it does not work.
3
 
@JoeWatkins I'd quite like to make my code do something before I put it on git, although if I haven't managed to by the end of the day I'll probably gist it. So far I've got as far as registering a function and returning different static strings based on the arguments (i.e. a skeleton of an extension) but I need to pull some environment vars (that's where I'm trying to work with the zend API), then parse a string into a data structure and do stuff with it (which I'm pretty certain I can do).
I've already implemented what I want to do in PHP so I know precisely what I want to achieve in terms of the logic. I'd really like to do as much of it as possible by myself though, I want to make sure I understand precisely what every single line of it does
The longer term goal is to write a better set of native HTTP tools for PHP, as a supporting extension for Aerys, the message parsing an processing is currently a massive bottleneck
 
that's a good plan ...
 
8:04 AM
Morning
 
hi, @Fabien
 
Yay I'm back :)
 
anybody can solve this puzzle?
0
Q: php 5.4 nest variable in html tag

brodsterneed php help I need to add the if statement inside the html tag if( get_field($image) ): ?><img src="<?php the_field($image); ?>" alt="" /><?php endif; I want to add the if statement inside the html tag below in place of img and a, is that possible? if(!empty($text)) ec...

 
8:07 AM
@brodster Why was that tagged php 5.4?
 
@PeeHaa In fairness, 5.4 actually is different to earlier versions in the respect because of <?=
 
@Leri Maybe it's wordpress lol
 
Where does OP use short echo ? @DaveRandom
 
lol
 
@brodster what is </$html> ?
@brodster can you tell here in simple words what you're trying to do ? That code doesn't make sense at all
 
8:10 AM
@PeeHaa Doesn't in code sample, but could in answer, and that fact that it's 5.4 does affect the answer. Of course, the OP doesn't know that (otherwise they wouldn't be asking the question) but as it happens that is the case. It should still probably be tagged anyway though :-P
 
@DaveRandom How's that different? <?= ?> behaved always the same as far as I remember. The only difference is that <?= is enabled by default 5.4+ versions.
 
@DaveRandom :-)
+1 for understanding what it is OP is trying to do @DaveRandom :P
 
Is it the ternary in the string?
 
@Leri Exactly, it no longer relies on short tags so you can actually use it in your code in 5.4+. Previously it was basically useless because it was not portable, and required an option to be enabled that breaks other stuff
@PeeHaa I based that assumption on the title :-P
 
8:13 AM
Not only you want to spy on users, you also seem to be too lazy to do some research. With my social engineering skills I'd say you're a type of person that likes to live on others peoples backs and gain profit from that. As you're also not particularly clever with that, you can be easily fooled by tricking you into things with a small-sized bait already. Let's see how this turns out in reality. -- btw service recommendations are off-topic on this website. — hakre 2 mins ago
 
:D
 
@hakre lol
 
couldn't resist :D
 
well true story ...
 
angry
 
8:15 AM
@brodster Your first code sample has the right idea IMO (templating instead of building a string and echoing it) - focus on converting the bottom code so that it uses HTML literals instead of the echo, and once you've made that work the answer will become apparent.
 
@HamZa dumbest... comment... today...
 
@hakre Wow you said everything I wanted to say when I read it. :(
 
Is there any cms for forum under GPL or MIT license with more or less acceptable implementation?
 
@Leri What is a CMS for Forum?
And what do you mean by more or less acceptable implementation?
 
@hakre This is citation what I was told right now. Open source forum script was meant.
 
@hakre I mean no spaghetti code, easy to understand and modify.
 
@Leri discourse?
 
@PeeHaa I'll have a look. Thanks.
 
$previous = null;

foreach($registrationType  as $key => $value){


$firstLetter = substr($value->RT_Code, 0, 1);
    if($previous !== $firstLetter)

echo "<a href=".$hash.$firstLetter.">".$firstLetter."</a>";

       $previous = $firstLetter;

echo "<ul id=".$firstLetter.">";
echo "<li>".$value->RT_Code."</li>";
echo "</ul>";

}
 
Hey everyone!
 
8:22 AM
@ఠ_ఠ Go for it
 
@PeeHaa see my code
 
Why?
 
i'm trying to set session for post input
 
I need to modify it.When click the first letter it should open like a tree menu @PeeHaa
 
  $match=$this->input->post('where');

          $ses =  $this->session->set_userdata($match);
isn't this the way
 
8:24 AM
@ఠ_ఠ And how come I am suddenly involved?
 
$this->session? Is that CI or something?
@PeeHaa Because you're the expert :)
 
ye this is CI
 
@PeeHaa :)
 
@Jack lolol
 
8:29 AM
good mornings
 
My production code has a while (true) { ... }, hmm, why not! :)
 
@Jack Because of high cpu usage. Anyway, depends what it does.
 
@Leri Lol, it has an exit clause of course, I'm not a server masochist :)
 
hello
whats up
 
@Hriju My server is, it says hi.
 
8:34 AM
I want to ask a question its off topic
I think you will be able to help
 
Morning Jimbo
 
@Leri It's code that inserts a UUID into a table with unique constraint ... it should only loop once :)
 
I have a portable hard drive..suddenly its asking to format it
but this will loss a lots of data (500Gb)
 
Better listen to Windows when it says you have to format a hard drive.
 
8:35 AM
Is there any way to get rid off it
 
Mon-ring
 
Format it and it will not give the message again
 
I dont want to loss my data
 
In that case don't format it
The data will stay on the hdd
 
Then you should have made a backup :)
 
8:36 AM
but how? i cant access the drive
 
Btw, I've seen this crap happen when I plugged a hard disc into my media box ... dangerous stuff.
 
@Jack In that case it's acceptable, but still I don't like it (and can be avoided almost everytime unless you are creating game loop or socket listener, imho).
 
I've had this too, just unplug and plug it back in again
Also don't unplug without dismounting the drive first
 
@Leri I use them exclusively on the most special of occasions :)
 
:)
 
8:38 AM
@dragon112 Dismount? It's not a horse ;-)
 
@Jack Unmount then, whatever
or eject whatever the cool kids call it these days
 
Windows calls it "safe removal" I believe :)
 
Yea that one
 
But you can also just right click it in the "My computer" screen and unmount it
 
Eject I think they call it
 
I am finished :(
500GB :(
 
Hey Look into this array
esoftcareers.com/Modal/CourseFinder.php .I want to create a multi array according to frst letter?
 
3 years of data :(
 
@hakre idk why I even bother answering a question like that. I should know better.
He clearly wanted someone to do everything for him.
 
8:42 AM
@Hriju No backup?
 
good afternoooon
 
@Hriju I wouldn't give up that fast; find a repair app first.
 
@Hriju Try Recuva or something like that.
 
@SweetieBelle yeah, so he is to blame :D
 
try running checkdisk on it
 
8:42 AM
answer is fine though.
 
but recovering 500GB is a huge task..needs a lot of time and moreover needs a lot of space as I cant recover data on the same disk
 
@hakre Interesting to see that you turned my ternary around, I always try to write ternaries so that the 'else' is the 'fail' function, even if that requires negating the condition.
So I'd do
<?= (!some_function()) ? "Something" : null; ?>
rather than
 
chkdsk is not working on it.
 
<?= (some_function()) ? null : "Something"; ?>
 
ok guys leaving now. Pray for me and my departed hard drive :(
 
8:45 AM
@Hriju So you are telling us you want the 500GB back and now you are whining about it taking too long....
 
was just about to say the same thing
 
@Hriju take out magnets and dics inside the harddisk..
 
there are a lot of factors man.
 
@SweetieBelle there is no fail. there is true and false. the first is true, the second is false. however the condition describes what you test. if you test for empty, no output is true, and output is false.
 
I have faced same kind of problem before
 
8:47 AM
but it's perhaps taste.
I like the idea with null though.
 
ok....thanks for your support. Now need to work with CI
bye
 
@hakre Yeah I use that one a lot. :P
 
So you have had this problem before and you still don't make a back-up?
Fool me once...
 
And this, children, is why version control systems and remote repositories are awesome.
 
8:49 AM
:(
 
Oh, I lost my HDD and my 10 projects?
git clone ssh+git://myuser@myvps:1250/project.git
x10
 
@hakre Not exciting but ok. Thanks.
 
@Leri well I don't know any other forum that at least has unit-tests
 
(I don't use git, sorry if I butchered the command)
 
and no, VCS is not backup. :)
 
8:51 AM
@hakre Actually, I knew none until today. :D
 
@hakre For code it is (assuming you push to remote regularly)
 
@hakre vBulletin, but that's commercial
 
@hakre Though backup isn't its main feature, it is certainly a feature (which I have been very thankful for in the past).
 
Anyway, I need to integrate it with mvc 4 app, so it will be pain in a$$ so I'll choose the one which is the easiest to configure.
It's be nice if there was any in asp.net mvc but, I can't find any.
 
@hakre check your email pls
 
8:58 AM
@Mr.Alien Yay, I got revenge downvoted again, not massively but still :P
 
You get that a lot don't you?
 

« first day (1033 days earlier)      last day (3912 days later) »