« first day (598 days earlier)      last day (4336 days later) » 

12:06 AM
Hi
 
this is a bit of a cross language question
but it is coming from a php file, containing JS and html
 
im calling lightwindow to open inline content, at first in IE the window went off the screen
i changed the doc type and it fixed it
but it lost the formatting of the window
and now all text appears ontop of each other
 
 
1 hour later…
1:28 AM
i have a pretty simple question, and i'm just not sure why my code isn't working
Here is the code I am using
<div id="right_bottom">
<?
list($y, $m, $d) = explode('-', $pagedata->program->start);
foreach($pagedata->program->__workouts as $day => $workout){
if (date('F j, Y', mktime(0, 0 ,0, $m, $day, $y)) <= date('F j, Y')){
?>
<div id="right_side">
<div id="<?=$workout->id?>" class="side_items">
<a class="workouts" href="<?=$pagedata->program->id?>,<?=$day?>">
<img src="<?=PROTOCOL?>//<?=DOMAIN?>/img/workout/<?=$workout->image?>"><br />
<strong><?=$workout->title?></strong></a><br />
<h2><?=date('F j, Y', mktime(0, 0 ,0, $m, $day, $y))?></h2><br />
i just want the IF condition to show only the "right_side" DIV for days before or equal to today
with this code, it is currently still showing all days
what am i missing here?
 
1:47 AM
@hakre can you explain where can I find information about showing HTML in flash or maybe something like Flexpaper?
 
Sam
2:02 AM
@JesusIbarra use Actionscript3.0
 
0
Q: Increasing the size of watermark text applied to an image

TomirammsteinI have this code: <?php $filename = 'Tulips.jpg'; $stringSize = 10000; $footerSize = 40; $footer = 'Blyxo.com/post/1234535'; list ( $width, $height, $image_type ) = getimagesize ( $filename ); $im = imagecreatefromjpeg ( $filename ); imagefilledrectangle ( $im, ...

 
 
1 hour later…
3:10 AM
What is the best way to track unique users, e.g; ip address, cookie hash, ??
ip address is probably best except for dynamic IPs in which case what are my choices.
 
good morning all
 
4:07 AM
good evening all
 
Good evening.. I guess
 
Good morning.. I guess
@Sam supppp ?
 
Sam
4:24 AM
hey @Nick, @ShyamK
how's the night?
 
@Nick lol
@Sam hey @Sam
 
Sam
seems quiet here already :P
 
Yeah haha, I want to finish up some work before I get distracted haha
 
Sam
nice....
 
What are you up to ?
 
Sam
4:30 AM
I need to step away for a while anyway.........
not much
my win8 laptop crashed,
so, gonna load ubuntu on it 100%
 
hackintosh XP...
 
Sam
lol.....say bye to MS for me :P
so, whose systems are you currently hacking, @Nick, @ShyamK? :P
 
@Sam lol none, hackintosh is hacking your DOS to run OSX on a laptop
 
Sam
OSX is Apple......I'm allergic to Apple products
:P
 
Damn haha, I'm a big fan XD
 
Sam
4:38 AM
the only apple I like is the fruit itself
and apple pie :D
 
lol I like apple pie and apple computers
@Sam do you use xml or json ?
 
Sam
both
if I need to output an html content, I go with XML
 
Apple systems have technology different from other systems.. so its worth knowing about
 
Sam
cause json acts crazy with it
true.....but they want my arm and leg
 
haha..
 
4:41 AM
@Sam explain ?
 
Sam
@Nick you mean json/xml?
 
No haha, apple wanting your leg and arm
 
Sam
I know I'll eventually reconcile my differences with Apple; but not yet
simple.....it's expensive
and there are other inexpensive options out there
 
@Sam Expensive because unlike most companies they care about product. I've had 3 different apple computers and they still all work.
 
True true.. Apple products are a lil above my budget too.. hope one day its so cheap that any one can buy it
 
Sam
4:44 AM
lol....all my Win products still work; and apart from the laptops, the rest were pretty much built by me
 
Like I said.. the world is divided into two types of products.. Apple and the rest
:D
 
@Sam I may have some PDO questions later :P
 
Sam
lol......ask if you have it now
@ShyamK sadly....that's true
 
@ShyamK or you could call it, open platform, closed platform
 
Sam
for now
 
4:46 AM
It seems like it's always us three at around this time of the day/night
 
Sam
lol....well, that's because you are a vampire who's awake when you ought to be asleep ...:P
 
lmao were from the same timezone
 
Sam
lol.....maybe I have a reason to be awake :P
how's your framework coming along?
 
I've been so busy with my contract that I've kinda ignored it again
 
Sam
lol......stuff happens
 
4:49 AM
no excuse, I need to find time
 
Sam
maybe you are too tanned for frameworks...:P
 
@Sam lmao must be the case
 
Hi
 
HI
 
Sam
hi Dhamu
 
4:51 AM
I am using JW player in my website,
 
@Dhamu love the avatar
 
any way to prevent downloading
vodio from my website
 
Sam
use flash; and load the videos using JS
 
@Nick thanks, but not avatar that's me
 
@Dhamu oh you don't say..??
 
4:53 AM
@Sam Hi, did you know about ipl matches
 
Sam
what's that?
 
cre
 
If you want help, you're going to have to make sense..
 
@Dhamu Indian Premier League?
 
Sam
lol.....yup, Dhamu.....just as @Nick said
be back in about 20, guys........stay tuned :P
 
4:58 AM
lol
 
@Sam haha alright see ya
 
IPL cricket matches
they used server scripting to prevent downloading
 
Well we don't know that, were not indian. What are you trying to accomplish? What have you tried ?
except @ShyamK he knows his IPL ;)
 
the problem was my website video are downloadable via browsers plugins like real player
 
Like @Sam mentioned you'd have to load via Flash before
 
5:04 AM
if any users downloading video they reducing the downloading speed to very low
 
@Dhamu You'll need an alternative delivery such as Flash or SIlverlight, and probably some horrible DRM, which can mask the file entirely.
 
JW player also a flash player
 
@Dhamu and I don't work with either of them so I can't help you out
Maybe try a flash/js room instead of PHP
 
@Nick I have seen the games on TV.. don't know about the server side scripting much though..
 
5:27 AM
@Nick i got
 
Sam
sweet...back
 
ello
 
use this
<?php
$file = "/music/" . $_GET["file"];
$fh = fopen($file,"rb");
while (!feof($fh))
{
header("Cache-Control: no-store, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Content-Type: audio/mpeg");
header('Content-Length: ' . filesize($file));
print(fread($fh, filesize($file)));
}
fclose($fh);
?>
 
Sam
PHP won't solve your problem......
the vidoes are played using Flash, right?
 
why @sa
yes
 
Sam
5:29 AM
so, use Flash/ActionScript
 
any example codings?
@sam
 
Sam
on loading videos with flash?
 
Nik
any one well versed in relative paths and setting a site root in php? stackoverflow.com/questions/10891788/…
 
Sam
I have the actionscript3.0 manual, which includes how to load videos dynamically
 
26 mins ago, by Nick
@Dhamu You'll need an alternative delivery such as Flash or SIlverlight, and probably some horrible DRM, which can mask the file entirely.
 
Sam
5:34 AM
hey @ShyamK; has your mysql_*-enabled applications crashed yet? :P
 
5:44 AM
nope...
atleast the client hasn't said anything so far..
 
posted on June 05, 2012 by Cal Evans

Blog: http://www.linkedin.com/pub/patrick-schwisow/13/85/51a Twitter: @PSchwisow Show Notes: http://www.madisonphp.com/ http://www.mkepug.org/ http://espaces.com/ http://www.lakekenoshaphp.com/ Sponsored by: Engine Yard

 
Sam
good......we hate it when they start complaining
@Nik have you tried $_SERVER[DOCUMENT_ROOT]?
 
yeah!! that'll totally suck.. especially since I still can't come to the rescue.. (Sorry.. was trying to learn a whole bunch of other stuff)
(Sencha and all)
:D
 
Nik
@Sam, yeah, I attempted to add that to my site root defintion and still received an error message saying the file didnt exist.
Do you think the fact Im on shared hosting would affect the document root at all?
 
Sam
it shouldn't
hmm.....paste the location of the file relative to the base html directory
 
Nik
5:53 AM
hmm. I am completely at a loss, The results of $_SERVER[DOCUMENT_ROOT] are "home/bliss/public_html" and When i enter "defined('SITE_ROOT') ? null :
define('SITE_ROOT', DS.'home'.DS.'bliss'.DS.'public_html');" the error message saying file exists is still there
oops formatting
 
Sam
no....try this
$root = $_SERVER[DOCUMENT_ROOT] ;
define("SITE_ROOT", $root);
 
Nik
thanks, will give that a go
 
Sam
put that code in a file inside your base html directory
and reference that file on all the pages needed
 
couldn't you just go define("SITE_ROOT", $_SERVER[DOCUMENT_ROOT])
 
Sam
lol......yeah, you could do that too
:P
 
5:57 AM
haha :D
 
Sam
that's how we roll on SO ......:P
 
@Nik What @Sam suggested should work, but you could always use dirname(__FILE__) or have you tried this ?
 
Nik
okay, I tried the solution same advised and I recieved the same error??
"Warning: require_once(/home/bliss/public_html/classes/session.php) [function.require-once]: failed to open stream: No such file or directory in /home/bliss/public_html/classes/config.php on line 59"
 
Sam
what is config.php?
 
Nik
@Nick, hey, I have also tried dirname(__FILE__) which also give me "home/bliss/public_html".
Yet adding that to SITE_ROOT brings up the error message above.
the file I tried to run from root directory
@Sam the file I tried to run from root directory (sorry still getting used to the chat room )
 
Sam
6:02 AM
your root directory is /home/bliss/public_html; that is where the file where the root is defined should be
otherwise, you can try this
$root = $_SERVER[DOCUMENT_ROOT] ;
define("SITE_ROOT", $root);
define("CONFIG", root . "/classes/");
and in the file you wanted, call this
require(CONFIG . "config.php");
 
@Nick Whats this game about?
 
Nik
@Sam thanks for that, sorry for taking so long to reply, Im having to edit the file, save on PC and then upload to test, lol.
 
At office so I can't watch the video :(
 
Sam
no problem
 
6:08 AM
It's a new game called Watch Dogs that had a quick gameplay video at E3. It looks amazing
 
Sam
what is E3?
 
@Sam are you sure you're from the US?
 
Sam
lol......
I've never had the privilege of attending any of those stuff
 
it's like the stark expo for gaming
 
@Nick you a gamer too?
 
6:13 AM
I love video games haha
 
lol me too
 
Sam
I thought Stark Expo is fictional?
 
mostly on the pc though
@Sam rofl
 
@Nick yet I dont see you at The Bridge..
 
6:17 AM
@Sam lol it is haha
@ShyamK The Bridge ?
 
Sam
nice.....I'm still cool then
 
@Sam you're too cool :D
 
Sam
too cool to go to Stark Expo
 

 The Bridge

General Arqade Chat. We tried to leave once, but the door lock...
@Sam It would be awesome if te thing had really existed.. I would love to steal Stark's suit.. :D
or does it?
 
Yeah I'm not that big of a stack user. I'm a redditor haha
 
6:21 AM
k.. the guys here usually talk about Diablo 3.. I aint played the Diablo series at all :(
 
Sam
@ShyamK lol.....I'm sure you wouldn't wanna steal it; apart from the herculean task of getting it, every mob in the world will be after u
 
@Nick So what games are the usuals for you? Gamewise
@Sam Repulsors will take care of the mobs :D
 
Sam
lol....not if your whole family is kidnapped
 
lol I love shooters haha
But right now, I'm playing Diablo III
 
6:37 AM
@Sam Good guys always win..
 
@ShyamK I'm pretty sure good guys come in last
 
Sam
lmao......only in movies
 
@Nick fps and tps mainly... Then there's the occasional strategy.. but never played the diablo type..
@Nick Come in last and finish off the bad guys :D
@Sam party pooper
:P
 
@ShyamK lol after losing the race
which fps ?
 
Sam
bad guys eat good guys for lunch
 
@Nick :P
finished Homefront two days back..
ALan wake at present
but I really don't care as long as there are no zombies.. (I'm a scaredy cat)
what about you? any favs?
 
Sam
@Nick traitor :P
 
@ShyamK Lol I was (haven't played in a while) a pretty good Call Of Dutier,
 
Sam
14 mins to nap time
 
@Nick Yeah!! and I like Medal of Honour too
@Sam sleepy head
 
Sam
6:49 AM
@ShyamK don't hate....:P
 
wud luv to be asleep too.... Sleep is the one thing that I never get bored of :D
 
Sam
after having an awesome day, no better way to end it than to snooze peacefully and contentedly
 
@Sam right on
 
Sam
yes, sir.....:D
ppl like @Nick don't need sleep; they are cyborgs....:P
or just too tanned to need it
 
@Sam ...no....need...sleep....
@Sam are you leaving uncle @Sam
 
Sam
6:53 AM
lol.....soon; and unless you are paying your taxes to me, I aint your uncle.......:P
 
@Sam Well most ppl say.. You can sleep when you're dead..
Enjoi life
lol
 
Sam
@ShyamK to those ppl, I reply If you are too busy to relax (and catch a nice sleep) when deserved, you don't deserve a long life :P
part of enjoying life is sleeping :D
 
lol
haha...
 
Sam
until I see you folks later today, keep safe :D
 
haha bye
imma leave too i think
 
7:02 AM
@Sam good night then
same time tomorrow then
 
7:18 AM
morning
 
Good morning and happy new day. Why not celebrate The 80 Character Limit ?
 
8:04 AM
oh, 80 charachters <3
 
8:20 AM
How is the finished string/value passed to the server is it an array or a csv? — Lawrence Cherone 7 mins ago
 
yes
 
8:36 AM
@hakre regex question: I have to parse some string from erp software to html: codepad.viper-7.com/0N2d8A
I first create li's. But after that I need to wrap it in uls. Any ideas?
What I am trying to match with the second regex is:
match where <li> starts in the string or where not </li>\n<li>
So the text becomes: text <ul>\n<li>Some text</li> <li>Some text</li></ul> Even more text
I'm totally stuck :(
 
8:58 AM
please help, what is the best way to communicate PHP with Action script like flex.?
 
@RepWhoringPeeHaa Why don't you let DOMDocument do the work and just xpath it?
Especially as you like to mix HTML and XHTML syntax
@Sparkx The best way is always to power off the computer and leave the internet for some years. When you come back, your problem is solved - automatically.
 
@hakre hehe that is pretty good answer i ever get ... U can also try my suggestion "power off your mind for some years. your mind will work fast after some years- automatically. "
 
ofc... good call :P
 
Sam
9:18 AM
Morning
What time zone are you in @RepWhoringPeeHaa?
 
@Sam gmt+1
netherlands
 
Sam
Ah ok, i must have slept a long time lol
 
@Sparkx XHR
morning everyone
 
Sam
Morning @tereško
 
9:33 AM
good morning, @tereško et al.
 
hiya @tereško, @salathe
 
@tereško ok but i found 1 link for this kinda communication nitingore.wordpress.com/2007/07/19/php-and-flex-communication
 
hiya :)
 
hi
good afternoon to all
 
9:48 AM
@Sparkx , that actually is XHR there in example
only poorly written
 
hi everybody !
I need a help regarding php
is any body there ?
need to parse this page
but unable to get the content on clicking the more button
can u help me ?
 
@TuhinSubhraDey which browser u r using
 
firefox
i'm using xpath
i got the content which are seen at the first view
but need to get all the contents
 
@TuhinSubhraDey look i am using FF 12.0 and its working fine in their also in chrome too
 
its too is working for me
but i need to get them with php
got it?
got it ?
 
10:15 AM
@TuhinSubhraDey i think u want that result in php but u need to get that values in php along with ajax
 
yes but the request url which Google uses for its ajax request can't be found in the page...or can't b constructed..
coz its chainging again and again
try refreshing ur browser
and also use firebug for this
 
10:29 AM
Hi @hakre
can you help me please
 
@TuhinSubhraDey ask your question than tag a person name
 
I'm using curl to get the content of this page
I only got those which are visible..
but I want those too comes after clicking the more button
I think Google calls a differnet url for this
which i need to construct from my page
 
me also think this
 
but using firebug it shows different everytime
actually parameter value is different
and also i can't construct this
 
can you show me both different urls
 
10:43 AM
yup
 
and y u cnt const.. this
thnks
 
for same page after refreshing again
and if u call this separately u will get errors
 
did you try inspect element ?
 
yes
those new contents are not available first..
comes only after clicking more
 
you have to do something with this below class
<div class="UC RQ Oxb" style="display: none"><span role="button" class="a-o Ip Yz" title="Load more posts" tabindex="0">More</span><span class="Ty aA"style="display: none"><span class="Zz">Loading...</span></span></div></div>
this is code of more button
\you have to send this button click event or something who toggle the class
 
10:51 AM
to send where ? which url ?
 
how to generate the other parameters ?
 
which parameters
 
left this... what should I do call that url again ?
how can i get those more values ?
anyone can help me ?
 
11:14 AM
0
Q: What is "Virtual()" function in PHP?

JimitCan anyone explain me what is use of "Virtual()" function of PHP? I am not able to get its meaning. Resource: http://php.net/manual/en/function.virtual.php

 
11:36 AM
@Jimit It's similiar to apache's <!--#include virtual ...----> in mod include.You can include files with that
 
nah
 
found greater callings in the meantime? ;)
 
not really, just don't have the time or drive to do it this time...
 
Is there any fast android emulator ?
 
@ircmaxell if I recall correctly you started a new job in the meantime
 
no, I had the job last time
 
@Haris not getting u
@Haris hw can we use it?
 
@jimit You have some examples of Virtual() at the php manual
@jimit If you have some php knowledge, you'll get it..
 
403
Q: Slow Android emulator

AndrieI have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such ...

 
11:48 AM
@ircmaxell are you with a job less or jobless, I mean you're doing a lot anways, do you freelance too? can you be hired for code reviews / consulting?
 
I can be, but most cannot afford me. I charge way more than I'm worth (since I don't like doing it)
I have a job
 
@RepWhoringPeeHaa I left my android emulator to start up WHOLE night.When i woke up, it was still starting up... -.-'
 
@ircmaxell what are your rates?
 
@HarisMuharemović yep. it sucks (/ used to suck)
 
@Haris man!! I m php guy but I could nt understand
 
11:52 AM
@RepWhoringPeeHaa I'm downloading BlueStacks.I hope there will be good news :)
 
@markustharkun $850 per hour
 
@ircmaxell you really don't like doing it, do you :)
 
nope
and I'm definitely not worth that price
 
morning
 
morning @NikiC
 
11:56 AM
I would say, 'afternoon' :)
 
and i would say good evening
:)
 
huh, elections again?
 
@NikiC which country?
 
@Sparkx Germany, but it's already 13:56 here ;)
Good that I still don't meet the criteria for the election :P Otherwise I'd be tempted :)
 
11:57 AM
I'm from Bosnia, and here's 13:57 :D
 
then it should be afternoon
 
How do we create BC dates with php datetime class? Anybody please help me
 
I really hate Android SDK -.-
 
BC ?
 
@dreamcoder, what is BC
 

« first day (598 days earlier)      last day (4336 days later) »