« first day (426 days earlier)      last day (4512 days later) » 

12:06 AM
lol
 
hello all
hi charles are you there :)?
 
@LondonBoy Me?
 
@CharlesSprayberry yes how are you? how you doing?
 
12:21 AM
@LondonBoy I am ok, working on a roadmap for my project. How are you?
 
@CharlesSprayberry ok too thanks, and good luck with the project
 
@LondonBoy I hope its more proper planning and extensible implementations as compared to luck. I don't think there's much luck in programming...the computer is only gonna do what you tell it. :)
 
@CharlesSprayberry :) can i show you my rubbish code :)
 
@LondonBoy Is there a problem that you need help with?
 
i showed you my page where it was removing dublicates and so on last night
 
12:29 AM
@LondonBoy Were you attempting to count the number of occurrences for a given digit in a particular row?
 
yeah
 
@LondonBoy Yes, I remember desperately wanting you to show me actual PHP code. I can't tell you very much based on the HTML output. :P
 
@CharlesSprayberry its too unprofessional i can show you but im sure you not going to like it
 
@LondonBoy You're not gonna show me anything that would surprise me. I'm only just a student myself. I just happen to be passionate about learning and spend a lot of time coding :)
 
@CharlesSprayberry OK shall i upload it to pastebin or just to the free host that i have like last time
 
12:39 AM
Pastebin would be better I believe
 
12:56 AM
i put it there pastebin.com/ZbBp1W81
@CharlesSprayberry i hope its not too rubbish
 
@LondonBoy Could you provide a link to your output?
Also, obligatory recommendation to use mysqli_ or PDO
 
@ircmaxell Hey, I was checking out your slides from your NY sql injection presentation and I couldn't reproduce the PDO injection vulnerability, has it been patched to your knowledge?
 
@CharlesSprayberry output is something like this: designer121.comze.com/sample.php
 
@LondonBoy Your code is outputting the expected value. If the value from the db is 0, 1, 2, 7 or 8 then the query returns the value 1, otherwise 0
Your SUM() function is effectively doing nothing, the inner if() function will always set the value to 1 or 0
@LondonBoy I would venture that if you removed SUM() from every one of the query clauses you would not see any change to your output.
 
yeah the code is ok but what if there are three of the same numbers in a row than it will count total as three for that particular number but there are only 2 same numbers in the specific number
 
1:12 AM
@LondonBoy Huh? The output does not count the number of times the number occurs in the query. It simply marks a 1/0 flag if the given number occurs anywhere in the query.
 
@Anfurny I think newer versions of MySQL may have fixed it
 
the specific number is 8 8 2 1 2 7 0
so it gives me correct answer if there are double numbers in a row
BUT for example if in a row there are following numbers
8 8 8 2 3 5 9
The code will count all these 8s as total of three where in the specific number there are only two 8s
 
Morning
 
@LondonBoy This is exactly what you should expect to happen based on your given code. The only thing the query sees is that 8 is one of the numbers it is checking for and sets the value returned by your as number* to 1. If it is not one of your numbers it returns 0
@LondonBoy You are not checking for the specific sequence 8, 8, 2, 1, 2, 7, 0...you're simply checking if any one of those numbers is returned in each column of your query.
 
so how can i fix it to work probably ..?
and numbers should not be in a specific sequence just want to check how many times they occur and if they are in the specific number
 
1:19 AM
In light of that, would you now say prepared pdo is now a sufficient "Silver bullet"? @ircmaxell
 
I can't seem to find a good article about when using static methods are fine and when they are pure evil. Any help ?
 
Hellz yeah qbasic @Ozbekov
That's a good question, I haven't found one that wasn't super-opinionated myself @OmeidHerat
 
@LondonBoy What do you mean by "in the specific number"? Your code is doing exactly what it should be doing.
@OmeidHerat What are you wanting to do with these static methods? I don't think there are any set-in-stone rules for ways to abuse the global scope.
 
@Anfurny Yup there are lots of articles out there but not a good, I am sure CC2 or other good books like pragmatic programming has something about them. but I couldn't find in web.
 
the specific number is 8 8 2 1 2 7 0 i want to check how many times the numbers from each row occurs in this number and sum for each number...
 
1:22 AM
$route  = \App\Router\Router::getRoute($_GET['route']);

OR


$router = new \App\Router\Router($_GET['route']);
$route = $route->getRoute();
 
@LondonBoy It appears that is exactly what your code is doing
 
@CharlesSprayberry I want to know in general, but the issue above made me think.
 
@LondonBoy I don't understand what the problem is
@OmeidHerat Dependency injection. Why should every class and file in your application have access to making a $route?
 
the problem is that if there are three same numbers in a row it will count them as a total of 3 whereareas in the specific number there are only two same numbers so if there are three same numbers i would like to disregard one of them or set of them as 0
 
@CharlesSprayberry I am using DI. the $route is used here $app = new \App\Bootstrap($config,$route);
 
1:25 AM
@OmeidHerat In general static is avoided for the same reason global scope is avoided. static is just a way for us to "encapsulate" the global state. Ultimately though it is still subject to the problems that it can be accessed anywhere in the app.
And can thus be manipulated anywhere in the app
@LondonBoy That's a whole different problem. I'm not sure how that would be implemented in SQL or even if it would be advisable to do so.
 
what would be the best way to do it ?
 
@LondonBoy My first attempt would be setting up a PHP array storing the digits you're looking for and the number of times they should appear. After that for each row when I'm counting the given digit I simply check if count is equal to the stored maximum value, if it is I don't add to it
 
thanks Charles
 
@CharlesSprayberry agree, the $route is just some sort of FixedKeysArray based on ArrayObject. so it's not really a global state issue, as I am injecting the data and Method is called on initialization of bootstrap. I was wondering if there is any reason to not use a simple one line Static method (though it's just a shifting of code from one place to another for good) or I should instantiate the router to avoid any possible bad practice or breaking the rules ?
 
@Anfurny No. Because it's not a true PS...
 
1:35 AM
@OmeidHerat Well, by using the static method it is gonna be difficult to change that method later on when you need to. You need to change that one method and all of a sudden things all over the place are going bad. Now you have to change code that shouldn't even know about the change to work around the new implementation
@OmeidHerat I would instantiate the router, easier to unit test and easier to change implementations
 
good night for now if i come up with a solution i will let you know :)
 
mornin'
 
1:53 AM
mornin
 
@CharlesSprayberry Thanks
OK, finally I found something reasonable about Static methods (http://googletesting.blogspot.com/2008/12/static-methods-are-death-to-testability.html)
@Anfurny you might like to read it :)
 
@OmeidHerat How's your bounded object going?
 
bananas
 
@LeviMorrison Got it working, used ArrayObject (Thanks @ircmaxell) and just override the offset* methods.
 
@OmeidHerat That's what I'd recommend too. Did you end up throwing OverflowException if you try to add to it?
 
2:04 AM
Yup, I check for ArrayObject::count and if it equals to max then I throw OverflowException.
 
@OmeidHerat Sounds great. What are you using it for?
 
nothing specific, really. was just playing .
But I did create a specific array type for a MVC router though.
it even has Fixed Keys and predefined values so I don't have to care for that in bootstrap.
 
@OmeidHerat so when we repeatedly tell you that static members create global state and tight coupling , you just ignore us
 
“We all live with the objective of being happy; our lives are all different and yet the same.” - Anne Frank
 
@tereško Eih, I never said that. (or at least didn't mean it).
I mean was wondering if something similar to`SplFixedArray::fromArray()`is bad ?
 
2:12 AM
@OmeidHerat Personally, I don't think so, but I don't know what others would have to say.
 
What I still don't get is that if you don't use the static member inside other classes but instead inject it how would that create global state ?
 
would car be able to create itself ?
 
@tereško No, but the point of an SplFixedArray is simple: an array of size x, and I want this data I already have to be in it.
 
I mean how would something like "$objA = new A(B::get_Data_Array());" would create global state ?
 
Certainly if the static member makes a call to a database or something else, that's truly bad.
 
2:14 AM
@tereško Not yet, but we are working on it ;)
 
@OmeidHerat , because that line is causing tight coupling
not a global state
you tie your code the the class by name B
 
@tereško I think (personally and I could be wrong) if B's get_Data_Array() is returning only an array, the line above is same as:
$objB = new B();
$data = $B->getData();
$objA = new A($data);
or am I missing something ?
 
it is returning the data from where ?
 
Ops... it meant to be $data = $B->getData($source); and the "$objA = new A(B::Data($source));"
Just like the example I posted like 30ish line above.
57 mins ago, by Omeid Herat
$route  = \App\Router\Router::getRoute($_GET['route']);

OR


$router = new \App\Router\Router($_GET['route']);
$route = $route->getRoute();
 
if you cannot understand why this is wrong , there is not point in explaining anything
 
2:24 AM
Which one is wrong ? first or second ?
I mean Simple-Data-parameter coupling is fine and there is no global state or tight coupling issue, My Question was that how would that static method effect things in the wrong way ?
 
2:48 AM
anyone here?
Y'all sleepin'?
 
@Ozbekov How are you supposed to code in your sleep?
 
Use the force @Charles.
 
@Ozbekov I'm only human. I can only go as fast as my planning and my wpm
 
Sometimes I sleep after designing a program, and when I wake up, I realize I've coded! All that is left is to type the code!
@Anfurny Sorry I just saw that! I'm now staying away from any language that has the word "BASIC" in it :-P Except Visual Basic when I absolutely have to use it.
@CharlesSprayberry I was just kidding :) I'm way too bored.
 
@Ozbekov I'm cleaning up some documentation and getting together a rough roadmap for a project, pretty thrilling stuff!
 
2:56 AM
@CharlesSprayberry Awwwhhh I need a project.
I am giving up posting answers on SO.
I just can't answer stuff.
 
@Ozbekov Why do you feel you can't answer stuff?
 
@CharlesSprayberry Because I answer quickly all the time. I try to find an answer pretty rapidly only to realize either the question isn't asking for my answer or my answer isn't answering that question :D
I do the same thing in exams at college.
 
@Ozbekov Slow down.
 
3:21 AM
@CharlesSprayberry Easier said than done ;)
Is it me, or is this room friendlier than the C++ room?
 
Yup
 
Team Fortress time.
 
Oh hey @ircmaxell
I got a question:
2 hours ago, by Omeid Herat
$route  = \App\Router\Router::getRoute($_GET['route']);

OR


$router = new \App\Router\Router($_GET['route']);
$route = $route->getRoute();
 
@OmeidHerat I think it should be $router->getRoute();
 
3:39 AM
Aight, I think I will go with that too.
Thanks
 
hello...if a file is included in a php file that's processing an ajax, does it break the ajax process?
 
no
it should continue executing as soon as inclusion is done
 
I have one that breaks after the include statement,
and I'm sure the path file is correct
could there be another likely reason?
 
@OmeidHerat neither, but the second definitely over the first
 
@user705339 Perhaps, have you checked the error log?
 
3:50 AM
good idea....give me a second
 
@ircmaxell any hints for 3rd one ?
 
@LeviMorrison the error log says nothing about included file
 
@user705339 What about the file that includes the other file?
 
@OmeidHerat Why are you passing $_GET['route']? That's leaking the abstraction of what the router is supposed to do
 
@LeviMorrison I see the errror : Failed opening filename
 
3:58 AM
:-P
 
@ircmaxell the Router is getting an string (which is the request URL) and turns it into an array [controller,action,data] and then bootstrap uses that to call the required controller.
 
for inclusion
 
@OmeidHerat Pass an overall request object to it, and let it choose how to get that string. Otherwise you're leaking the abstraction of routing
 
Oh thanks! I see what you mean.
 
@LeviMorrison I fixed....all I did was use SERVER[DocumentRoot] to obtain the document root, instad of just using '/'
thanks for the help
 
4:03 AM
@user705339 np, I didn't do much :)
Good luck!
 
I have a question too.
When I'm writing a big PHP app, I usually separate core files and frontend in different directories.
Within those directories, I must always use require or include as if it's being called from the directory where the main page (let's say index) resides
For example: /core/functions.php, /core/foobar.php and /index.php
When including foobar in functions.php, I must write /core/foobar.php because they are both required by index.php
How can I make it so that require and include statements are relative paths ALWAYS to the directory in which they reside?
 
no, 'foobar.php' should be recognized in the same directory of the current file
 
So it's not possible?
 
or, call __DIR__ . '/foobar.php'
yes, it's possible. Just do require 'foobar.php'; and it should work
 
It doesn't. Says required file not found.
Because it looks for foobar.php in root folder and not in core directory
 
4:09 AM
it shouldn't (doesn't in my install)
ok, I'm off. good night all
 
4:28 AM
@Ozbekov you can define a variable in a file in the base folder, passing it the document root, then you can define variables for the folders, and u can just use the variables
everywhere you need those folders
all you need to do is include that base file
 
that doesn't work either.
I will prepare and submit either a question or something more in detail here.
 
unless my explanation sucks, it should be work
 
No i understand your explanation but i recall it doesn't work.
 
create the question, and post the link here....
 
will do
I'll have to get a test case ready first
 
4:42 AM
ok
 
4:52 AM
0
Q: How can I include files using paths relative to where the file resides?

OzbekovImagine I have two directories, foo and bar in a parent directory, and these directories contain some PHP files: / /index.php /foo /foo/functions.php /foo/stuff.php /bar /bar/doodie.php Let's say: functions.php includes stuff.php index.php includes functions.php doodie.php includes functio...

@user705339 This was tough.
 
5:03 AM
@Ozbekov you've gotten some posts
 
@Ozbekov hey
 
@JohnP Hey, so let me tell you what my concern is.
 
about your question, when you're setting up a project you usually route all requests to 1 file. That's a common pattern
 
When there is a 'base' file where all the constants are defined, should this "base" file be included with an absolute path?
@JohnP What if a class/file is required in separate directories?
 
depends on how your application is structured. If you're using classes, you can just use an autoloader
index.php
  - controllers
  - models
  - vendors
  - webroot
 
5:06 AM
Alright, I think I get it.
 
that's a common structure. Your index.php file would include the controller that is being run
 
hi i am working facebook graph api. my question is can i delete a like/ comments of respective post
 
your index.php will have all the constants defined as well
 
I understand, thanks a lot!
 
hi everyone
 
5:07 AM
but if you're using classes, it might be useful for you to look into auto loaders
 
how to include php in js file
?
 
@MananSingh you can't. You serve JS via a PHP file. Not the other way around
 
@JohnP You serve JS via http server :P
 
@OmeidHerat I applied fuzzy logic to the question :P
 
haha, I know what mean though :)
 
5:23 AM
 
why doesn't json_encode(new Exception('Foo')); work?
 
@Sudhi Simple, json_encode does not work on objects.
In 5.4 they are adding an interface called 'JsonSerializable'.
It defines a method that returns an array of data to serialize.
 
What do you name an object that prepares the configuration from ini files ?
configurator ?
 
@LeviMorrison huh? I do $response = new StdClass(); $response->foo = 'bar'; $response->blah = 'booh'; var_dump(json_encode($response)); works :-?
 
@LeviMorrison It's should, it should work on anything except resources.
 
5:30 AM
@OmeidHerat I understand that it SHOULD work. It doesn't. For most objects, it does not work.
@Sudhi The specific problem is that the values of Exception are private.
Only public members are accessible for json_encode. Hence the interface in PHP 5.4
 
@LeviMorrison ohhk, I think I can manage with serialize($exception) and then encode->decode->unserialize . Thanks
not that I want to throw it again or whatever, but the stack traces and all that stuff comes in handy
 
@Sudhi Why do you want to json_encode an exception, anyway?
 
@LeviMorrison My api returns response in JSON, I have status, message and reason as fields. I can do status = OK/NOTOK , message = $exception->getMessage() , and for my own debugging purpose I want the exception object $e itself
so I am thinking of putting reason = serialize($exception);
do you have any suggestions/guidelines for this ?
 
@Sudhi You should look into return a proper HTTP header.
The following is a list of HyperText Transfer Protocol (HTTP) response status codes. This includes codes from IETF internet standards as well as unstandardised RFCs, other specifications and some additional commonly used codes. The first digit of the status code specifies one of five classes of response; the bare minimum for an HTTP client is that it recognises these five classes. Microsoft IIS may use additional decimal sub-codes to provide more specific information, but these are not listed here. The phrases used are the standard examples, but any human-readable alternative can be provi...
I use 400 and 406 the most frequently.
The nice thing about returning a 400 or 500 error is that libraries like jQuery will use the error handler instead of the success handler.
 
5:46 AM
Good night guys
 
Browsers handle things better when you send a better header.
 
@LeviMorrison I am not so well versed with HTTP headers and status codes ( /me facepalms ). And I just read json_encode/decode as other devs said we'll talk in json parlance. Changing HTTP status codes would require more coding (for me as well as other devs), and we are facing deadline. I know, I am giving too many excuses. But thanks for the links. I will read them
@LeviMorrison these APIs will not be directly utilized by end-user but by other systems. So I am not so worried about browser compatibility/look
 
Even still. The headers are there for a reason. :) Good luck
 
@LeviMorrison agreed. I will surely read/understand and convince other devs to use them. Thanks again.
just one more question. My api is all PHP code, and I need to return the $response, a json_encode()able StdClass object at the end. How do I set the header and return $response , perhaps something like:
http_header('application/json'); echo json_encode($response); ?
 
I think it's: header('Content-type:application/json'); echo json_encode($response');
 
5:53 AM
@LeviMorrison ohh, so header('Content-type:application/json'); echo json_encode($response); ? [ the echo should be there, right? ]
 
@Sudhi yes, the echo should be there
But
 
@LeviMorrison but ??
 
This would be better: header('HTTP/1.1 400 Bad request'); header('Content-type:application/json'); echo json_encode($exception);
Or something similar would be better
 
can cookies be cleared using javascript?
 
@user705339 yes.
20
Q: Clearing all cookies with JavaScript

polarbearHow do you delete all the cookies for the current domain using JavaScript?

 
5:56 AM
by setting the expiration date as a past date, right?
 
@LeviMorrison will it make other devs (including me) change their code to in order to understand the 400 HTTP status ?
 
Well, sort of. It's easy to detect what was sent.
 
I am php beginer.I want to friend some php developer.Can you accept me?
 
if I can just get the json , and decode and understand the status, message, will it matter if I dont write any specific code to check/understand the HTTP status code ?
 
Are you guys using cURL to make requests?
 
5:57 AM
awesome....thanks
 
@LeviMorrison Yeah, I am thinking about cURL only. Not a big fan of file_get_contents()
 
@Sudhi You shouldn't, no.
@Sudhi I use a cURL wrapper class. cURL can get nasty to write over and over :)
 
@LeviMorrison is it public domain ? Can I have a look at it ? I wrote my wrapper too, but it was very basic, just the $url and return the dump of whole HTTP response
 
It's not my current version, but it's workable.
Note that it's set up to be used by an autoloader, so there's no directories. Feel free to do anything but publish/sell it
Also, there is an http package: pear.php.net/package/HTTP_Request2/redirected
 
I'm guessing that a wrapper class is user defined class that essentially accepts some variables, and plug them into a curl function, right?
 
6:10 AM
@user705339 Pretty much.
 
alright.....just checking
has anyone here ever used the web version of Yahoo Messenger (the one accessible via the email)? There's a feature there I would like to understand
 
i suspect that you wont find anyone who uses it here
 
@LeviMorrison thanks, the package looks interesting and has last release on oct-2011. Looks like in active development. I will dig into them and see how I can utilize. Thanks again for your help
 
then again , explanation of feature has nothing to do with whether someone has used it or not , @user705339
 
@tereško you'll only understand it if you've seen it before
anyway....the user's messages are shown on the left side of the window, while the friend's messages are shown on the right side of the window
 
6:18 AM
 
$start_time = microtime(FALSE);
//...
$end_time = microtime(FALSE);
printf('%.2f', $end_time - $start_time);
It's giving me a negative number ---^
Why on earth would it give me a negative number back?
Doesn't microtime() return larger values as time elapses?
slaps forehead...
I got the parameters mixed up... it should be microtime(TRUE) not microtime(FALSE)... :)
 
if the last previous messages are from the user, and the next incoming message is from the same user, the message is added to the same div, but if the incoming message is from a user different from the last previous messages, a new div is created.....I just want to understand the logic (or algorithms) behind that
 
@GeorgeEdison I was just going to say that, but the php man page comments always keep me hooked :D
 
@Sudhi Thanks anyway.
It's better if I figure it out myself anyway - although in this case it was a very silly mistake.
 
@user705339 , you mean just like it is here
 
6:25 AM
@GeorgeEdison true, In my case whenever I want to ask something on SO, I think of SO#chat first, and when I start typing , I get a nagging feeling that I will be redirected to PHP man pages. So invariably end up reading them first and then (if still required) ask question here :) But yeah, SO#chat can be helpful to point out silly mistakes
 
@tereško similar....except that one user's messages are on the left, and the other user's messages are on the right
@Sudhi side of the window
 
I don't know how many solutions began as questions on Stack Overflow that I never finished writing because I discovered the answer as I was writing the question :)
 
@GeorgeEdison reminds me of rubber duck debugging :D , Happens with me all the time !
 
@GeorgeEdison I can't tell you how many times I've answered a question after a quick php.net lookup :)
 
P.S. (and I think I've said this before) if anyone is interested in working with the Stack Exchange API in PHP, this is a great tool: launchpad.net/stackphp :)
 
6:27 AM
@user705339 , and what part of the logic there seems so confusing to you ?
 
I've got some examples from the library here: stackphp.quickmediasolutions.com/examples
 
@tereško the logic of appending a content to an existing container or to a fresh container.......and the one of keeping users on opposite sides of the window
 
@GeorgeEdison interesting
 
I'm dying for someone to try it out.
16
Q: Stack.PHP - Completely Rewritten from the Ground Up [Now with support for v2.0 of the API - including OAuth 2.0 methods!]

George Edison API v2.0 Update I am pleased to announce that Stack.PHP has implemented some of the new changes introduced in version 2.0 of the API. You can now begin developing applications that use v2.0 of the API (note: you will need to be a part of the private beta to use Stack.PHP - you will ...

^--- There's a much better description there.
 
@GeorgeEdison I just clicked on the link and tried out the API, works good for me :) will dig up the codebase later.
 
6:32 AM
Great.
 
gotta go, need some food before I code !
nice talking with you @GeorgeEdison :) bbye !
 
can anyone give me a more elegant solution then this ?
$base = array("x" => "dx","y" => "dy","z" => "dz",);
$a = array("less","values");

$combined = array_combine(array_keys($base),  array_merge($a,  array_slice($base, count($a))));
I want to get this:
array
  'x' => string 'less' (length=4)
  'y' => string 'values' (length=6)
  'z' => string 'dz' (length=2)
 
7:13 AM
comment what you have and it's plenty elegant ;p
 
nothing so special, I just want an array combine to work with not equal size arrays, and I couldn't though of a simpler way :P
 
yeah i can't imagine what you need it for but that's pretty damn compact
 
router.
 
subdomains?
 
No, MVC router.
 
7:21 AM
ah.
 
aight, I need a long break now.
Peace.
 
later
 
later
 
8:08 AM
That post yesterday went really well :)
I already got 4k views on it
 
8:39 AM
@NikiC I seem to have missed something
 
 
2 hours later…
10:32 AM
what do people in general understand with word "cyclone" ?
 
@tereško windy?
 
google say that it has two meanings
do any of you really think that "cyclone" is a "hurricane" ?!?
 
Yes, afaik
 
.. sorry .. i'm just accustomed to the meteorological meaning , which was how that word was used in my country .. up till today
 
Actually, a hurricane is a type of cyclone...tropical one...
 
10:36 AM
yup, same here. Happens once or twice a year as well
 
@JohnP Ouch
@tereško What's the 2nd meaning then?
 
@ChristianSciberras yeah, mostly in the coastal areas. A lot of roofs get blown off
 
@JohnP One thing I've always wondered about is why you guys don't build solid houses.
 
@ChristianSciberras area with low air pressure
 
I'm not particularly fond of the rock we use here to build houses, but it takes a good deal to blow it off.
 
10:39 AM
@ChristianSciberras umm, I don't live in the states. We do build solid houses here (cement, red brick ...) . But people living along the coast are usually fishermen or low income families, so the roofs aren't as attached to the house as it should be
 
@JohnP oh, I see.
 
@tereško well, the low pressure area usually ends up with winds anyway
 
Thought it was about gypsum houses. Their stability tend to end with the foundations.
 
although, no tornadoes here
 
no , the wind comes from difference in pressure
thus - google "anti-cyclone"
@ChristianSciberras heh ... it's a European thing , we love to houses that will Stand
not the american idea of , 4 vertical beams + plywood = house
 
10:42 AM
that's a normalish house
but notice that the roof is sort of bolted on, and not a concrete top
 
that's scary
 
yup, I think it's a historical thing. Sri Lanka has very few natural disasters. It's usually flooding that's a problem
The only massive large scale disaster was the tsunami
 
i kinda think that how word "cyclone" is use in western world , is similar to how word "theory" is used
when both word carry two completely opposite meanings
 
how so? Google says that Cyclone's are winds rotating in a direction. This usually results in adverse weather conditions as far as I know. Is there a meaning to this word that is completely different? - google.lk/search?q=define:cyclone
Synonyms: tornado - twister - hurricane - whirlwind
although, not strictly equivalent. Twister and tornado being localized and hurricane being much more widespread
 
i think you are mistaking the "extra-tropical" and "tropical" cyclones
 
10:55 AM
@tereško you mean when people say 'cyclone' you think about the weather condition and not the physical manifestation (tornado, hurricane, etc etc)?
 
here cyclone means "cloudy, mostly windless, maybe rain - ranging from drizzle to showering"
 
ahhh, I see. I guess it's not as adverse as in the tropics
 
we have "cyclones" like 80% of time
 
heh, that is a scary thought here :D
 
In meteorology, a cyclone is an area of closed, circular fluid motion rotating in the same direction as the Earth. This is usually characterized by inward spiraling winds that rotate anticlockwise in the Northern Hemisphere and clockwise in the Southern Hemisphere of the Earth. A cyclone is a synonym for hurricane . Most large-scale cyclonic circulations are centered on areas of low atmospheric pressure. The largest low-pressure systems are cold-core polar cyclones and extratropical cyclones which lie on the synoptic scale. Warm-core cyclones such as tropical cyclones, mesocyclones, an...
 
11:04 AM
2. A Southeastern and Indian Ocean weather phenomenon that results in wind speeds of around 150 to 200 km/h.
That would be us.
 
yeah , and people in western world seem to prefer the second meaning
 
it happens a lot here in downunder as well, but luckily not where I am.
Even there is a live coverage ! bom.gov.au/cyclone
 
yeah, it's pretty bad in the tropics
 
i need help in google chart tools
code.google.com/apis/ajax/playground/… i need to make it stacked bar chart horizontal
 
@JustinDominic if you are using JavaScript then why stick with Google ?
 
11:17 AM
sorry this is the right link code.google.com/apis/ajax/playground/…
@omei am not using js
i have using google for some time its easy but this time am stuck
 
@JustinDominic OK, so what is your question ? where are you stuck ?
 
the link i gave u for the combo bar chart i can make it stacked bar chart but its vertical . i need to make it a horizontal chart
if it can made horizontal then the prob is solved
 
11:45 AM
posted on December 16, 2011 by Sebastian Bergmann

I have been tinkering with CLANG's static analyzer lately. This post summarizes how I installed LLVM and CLANG and performed the analysis of a build of the PHP interpreter. First, we need to obtain the CLANG and LLVM source trees and build CLANG: cd /usr/local/src mkdir clang cd clang svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm/tools svn co http://llvm.org/svn/llvm-pr

 
12:13 PM
 
   void *pDataPtr;           // ??? What's this ???
:)
@NikiC Love it. Your blog entries never fail to amaze me
 
@edorian Thanks :)
 
Ako
12:33 PM
Anyone here familiar with Assetic from Symfony2?
 
12:47 PM
Hm, someone even added an RSS feed to my blog :)
 
What do you need Ako?
 
Looking at phpunits "class skeleton generator" makes me kind of sick.. there are things that one shouldn't do :)
@NikiC You sparked a lot of discussions it seems :) And yes: You need an rss feed ;)
 
1:19 PM
@edorian agreed
 
@ircmaxell I mean, it's at least 4 years old and it's really cool and fancy as a proof on concept ;)
How are you?
There is pretty much no traffic on for weeks and @DavidHarkness is taking care of most of the things faster (and solid) than me. The 50 remaining points to the silver badge will be really tedious
 
doing good. Reading the reddit article
nice
 
1:44 PM
How would some get key by value from a SplFixedArray, iterate over it ?
 
1:55 PM
If you need that chances are you shouldn't be using SplFixedArray
But yeah, ether iterating or
php -r' $x = new SplFixedArray(5); $x[2] = 5; var_dump(array_search(5,  (array)$x));'
int(2)
 
I was going to wrap two SplFixedArrays in a class to get a FixedArray with string keys, but seems it will be even more expensive then array.
 
But the casting is throwing away all the usefulness of fixedArray :)
 
Yup that is why it's more expensive :)
 
mysql_query_debug is not working, whats wrong ?
in php
 
"Do i need SplFixedArray flow chart" -> [Do you have one stream of data that i need to access by it's number and nothing else]? [y] => Use SplFixedArray, [n] => Don't
 
1:59 PM
@manan Because mysql_* are too old ;)
 

« first day (426 days earlier)      last day (4512 days later) »