« first day (810 days earlier)      last day (4145 days later) » 

12:04 PM
-9
Q: Why does php date('z') function provides day 0. What does zero refer?

Onur GökerWhen I print day('z') in January 1st in 2013, it gives me 0. What ist the meaning of day zero?

 
user652649
lol the "sigh" tag is even more funny
 
Greetings!
I need suggestions, where to start digging.
 
There is a router to which I can connect through BitKinex application using SSL connection, without using any certificates. How can I connect to that router with SSL through PHP to copy files to my local computer?
 
12:11 PM
@DanielsPitkevičs Egypt. There's all sorts of neat stuff buried there.
 
@DaveRandom Hmm, interesting answer which is not related to PHP but still interesting.
 
:-P
@DanielsPitkevičs OK so you are running an FTP server on your computer behind that router then?
And obviously you have all the necessary ports forwarded etc?
 
@DaveRandom after all these hours I finally figured out the problem... I still don't understand why this was the problem but it is
<link rel="shortcut icon" href="" />
if I take that out it works fine
 
OK
Didn't see that one coming
The problem with that is that you have not put a value in the href
So it causes the browser to make a request to the same URL on which the tag occurs
 
<link rel="shortcut icon" href="<?php echo stripslashes(get_option('lm_favicon')); ?>" /> that was the original line but it outputs an empty string
interesting that that would break a query though no?
but only when there was the delete and the insert, not when it was just an insert
very baffling to me
 
12:19 PM
I'm not sure why it's breaking the query, but I do recall having a similar problem once, took me ages to figure out.
 
haha took me going through every line of code and removing one by one
fun times :-)
 
Basically, never have a <link> tag in your page with an empty href or an <img>/<script> with an empty src will do the same thing - it essentially causes duplicate requests
 
Oh I see
Well thanks again for taking a look earlier, glad I finally have this resolved
 
@DaveRandom I have no idea what there is running, because I am not a sysadmin. I know just the way I connect to that router. I suppose ports must be forwarded and I think its the default 21 port.
 
Good morning
 
12:25 PM
@DanielsPitkevičs When you say "connect to the router" do you mean you are connecting to the router itself, or connecting through the router to the machine to which you wish to transfer files? Because connecting to the router itself won't help you, you need to connect to the target machine, which will usually required forwarding ports to the server application.
@ircmaxell Monring
 
@DaveRandom Agreed on LF
 
@PeeHaa Winner, I'll do it now
 
k
 
@DaveRandom Hmm, well I must say that I connect to router or gateway itself. That machine stores just log files which I need to copy.
 
@DanielsPitkevičs Oh wait sorry I misunderstood the question I think - you mean you want to connect to the router's FTP server to copy files off the router onto the machine where PHP is running?
I thought you wanted to copy files from the machine where PHP is running to a machine behind the router, didn't read it properly.
Well that should be easy enough - can't you just use file_get_contents('ftp://user:pass@<ipaddressorhostname>/path/to/file');?
Or do you need to use SSL? If so, FTPS or SFTP (yes, there is a big difference)
 
12:32 PM
@DaveRandom Yep, thats correct. Though, I think I wont be able to connect just using FTP, because I tried to connect through FileZilla and there were no response. After setting in BitKinex to use SSL security, it worked.
 
I have string:
q2:a1_q2:a1_q3:a1_q1:a2_q1:a1

how to remove all "q2:a([0-9]*)" from string?
 
@DanielsPitkevičs OK right that sounds like FTPS. Hang on let me just refresh myself on that, it's a while since I did that
 
@DaveRandom Hehe, Thank You :)
@UchihaObito If you are using regex then You can check php.net/manual/en/function.preg-replace.php function.
 
@DanielsPitkevičs ahh, ok thx
 
@DanielsPitkevičs OK well as long as your PHP instance has OpenSSL installed (you won't get anywhere without that) you should just be able to use an ftps:// URL with file system functions. Although having said that, I seem to recall that the last time I did this I ended up having to use cURL because the wrapper wasn't working. I could be wrong about that though.
(and it may just have been a schoolboy error)
 
12:37 PM
PSR0 does not say anything about where shared lib shoud be installed ?
(like /usr/share/php/ ?)
 
@magnetik The point of PSR-0 is to dictate how autoloading is handled, not where in your local filesystem you should store your files, or how that pertains to the include_path.
So the short answer is "no, it does not"
 
yep sure
and what a best practice would be ?
 
@DaveRandom I should be able to access my router through web if adding ftps:// before IP?
 
place it in /usr/share/php/<vendor>/<module> and get the autoloader to find there ?
 
also , PSR-0 is only compatible with PHP on Windows (or any other OS with case-insensitive file system)
 
12:39 PM
@DaveRandom And OpenSSL is some apache module or standalone program for windows?
 
Depends on how your server is set up - there is no "best practice" because there are too many variables. For a start, there's a big difference between Win and *nix FS layouts.
...and what @tereško said ^^
(he's not a fan of PSR-0 as an implementation)
 
okay
 
@DanielsPitkevičs Both, but what i was referring to is the PHP extension
They are all based on the same project
IIRC on *nix it must be compiled into PHP in order for the stream wrappers to work.
On Windows you just need the DLL
 
Ok, Ill try. Now I was trying to use ftp_ssl_connect to my host, but it returns nothing.
$conn_id = ftp_ssl_connect($cdrHost);
if ($conn_id) {
echo "good";
} else {
echo "bad";
}
here it outputs nothing
 
@DanielsPitkevičs var_dump($conn_id);? Although if it outputs literally nothing it probably means the function is not defined and you need to turn your error reporting up. Or even just "on" would be a good start.
If the function is not defined, it means that the FTP extension and/or OpenSSL are installed on your PHP instance.
What OS/PHP version are you running?
 
12:44 PM
@DaveRandom You gonna be mad if I ask you something?
 
:-P
Well, spit it out man!
:-D
 
does anybody know how can i generate a google doc url inside php file.
 
For 10 points (without trying it): `php -r "eval('var_dump(__FILE__);');"` What will that give? #notWhatIExpected...
 
@DaveRandom Ok, yes. That function is undefined. I am now using windows and PHP version 5.4.x
 
@ircmaxell The path to the PHP binary maybe?
 
12:47 PM
@DaveRandom Well you helped me so much so thats why I ask I dont want to annoy you too much which I probably already did. How can I do an if statement on dropdown menu? I need to make it so that if an item with prefix Blue is selected save contract number in database (after they submit form of course), if any other item is selected save text they input in database
 
string(36) "Command line code(1) : eval'd code"
Doesn't seem completely ridiculous
 
@DaveRandom Nope ;-)
 
yeah , it makes no sense
 
@user1914940 In the same column? (as in the text or the contract number go into the same column)
 
@DaveRandom Yes, I have 1 column in my table where I want to save either contract number OR number they input if they select any other item
 
12:50 PM
@DaveRandom No? It's not a file... I would have expected null, or perhaps a notice (calling __file__ from outside of a file context) or some other method of letting you know you're doing it wrong. Or possibly even a named stream to the currently executed code (php://memory/evaled_code or the like). As it is now, file_get_contents(__FILE__) won't work...
 
@user1914940 OK well the MySQL IF() function (not statement, there is a difference) and a couple of subqueries can do that for you in one go.
 
@user1914940 what does your code to process the form look like?
 
Or, I don't know, the filename where eval was defined :-O
 
@tecshaun It goes back to the same page and is using POST if thats what you mean
 
@ircmaxell ...what are you expecting file_get_contents(__FILE__) to do in the context of eval'd code at the command line? Give you back a string that says <?php file_get_contents(__FILE__); or what? That makes not sense to me. __FILE__ refers to the current executing file, at the command line there isn't one (the eval() is kind of irrelevant). So yes, arguably NULL would make more sense, but even then file_get_contents() wouldn't do anything.
 
12:55 PM
@DaveRandom yes, I am. It works in every other context...
 
@ircmaxell that's stupid. That's not the file. PHP Binary would make much more sense.
 
@user1914940 yeah so you're checking your post vars after you submit, you can check the value of your dropdown, determine if "Blue" is in the string using something like strpos() and build your query based on that.
 
If it wasn't eval, I'd submit a patch for it...
 
@tecshaun Ok, thanks. Will take a look and see how it goes.
 
@ircmaxell on a sidenote, why are you doing it that complicated? it will give "Command line code" by just doing php -r "echo __FILE__;"
 
12:57 PM
@DaveRandom Wont be easier to use other language that PHP, for example, C# or C++?
 
if ( strpos( $_POST["DROPDOWN_VALU"],'Blue' ) ) {
echo 'use query with dropdown value';
}
 
@tecshaun Thanks :) Will try now.
 
INSERT INTO tablename (col) VALUES (
  IF(
    SUBSTR(SELECT Short FROM products WHERE Key = $productId, 1, 4) = 'Blue',
    SELECT contract_id FROM wherever WHERE col = 'val',
    $productId
  )
)
 
@user1914940 no problem
 
@tecshaun that should include a test, e.g. !== FALSE in case Blue occurs at offset 0 in the string
 
12:59 PM
@Gordon Yes you're right, sorry I forgot that
 
@user1914940 ^^ like that. I forget how you were getting the contract ID from the product ID so the second sub query will obviously need some work but hopefully you get the idea
 
@Gordon I know...
 
@ircmaxell funny: php -r "echo __DIR__;"
 
@DaveRandom Checking things right now, thanks again :)
 
@ircmaxell It's not really an eval() issue though, it's a command line code issue.
 
gooh@gooh ~ $ php -a
Interactive shell

php > echo __FILE__;
php shell code
 
@Gordon Interesting...
 
@user1914940 if ( strpos( $_POST["DROPDOWN_VALU"],'Blue' ) !== false ) {
echo 'use query with dropdown value';
}
 
@Gordon Precisely what I would expect - the working directory from which it was executed. I must be missing something here because I really don't see how any of this is surprising. It may not be the best way but it's still more or less what I expected.
 
you may want to try DaveRandom's solution with the IF function in the mySQL query though...
 
1:05 PM
@tecshaun The issue is that $_POST["DROPDOWN_VALU"] contains an ID, not a string, so you need to sub the check out to MySQL
 
@DaveRandom Good point
 
@DaveRandom well, the value for __DIR__ is not surprising but __FILE__ should not tell it's execution enviroment, since that is not a file at all.
 
guys please how to add so sum 15 minutes to a unix datetime ?
:P
unix timestamp sorry
 
posted on January 03, 2013 by Brandon Savage

I like the beginning of a new year because it provides the perfect place to consider what happened last year and what I can do this year. In evaluating 2012, I’ve come to the realization that as a software developer, I need to “up my game” somewhat. Though I consider myself to be a great [...]

 
@Badaboooooom are you trolling?
 
1:08 PM
?? :(
 
@Gordon Presumably (guessing) the reason for that is that the value is shared with the mechanism for identifying the file in error messages. Again, probably not the best way but sort of makes sense. I just can't see a use case for __FILE__ in inline code at the command line.
 
nope i'm serious
don't remember how to do :/
 
@Badaboooooom $timetamp + (15 * 60); <<--- free gift
 
oh yeah, thx man!!
 
@cryptic hi
 
@Badaboooooom $newTimestamp = strtotime('+15 minutes', $timestamp);
 
@Stack, hi
 
@Gordon @DaveRandom which is to use ?
i feel more simple Dave solution ..
 
@Gordon Damn you for being professional. I always feel a little dirty using strtotime() like that though, it just feels ridiculously inefficient. But I do accept it is the best only way.
 
@cryptic hru?
 
1:11 PM
@DaveRandom what you suggest ?
 
@Badaboooooom strtotime() is the only truly reliable way to get the right answer every time.
 
great thanks!
 
So the current blocker to self-hosting run-tests.php is support for the error suppression operator... Too bad we don't even have errors, yet alone error suppression...
 
Hey, I have a problem (largely described here: stackoverflow.com/questions/14139439/…) with printing output from Symfony2 joined tables. Can anyone assist me on this
?
 
@cryptic how are you?
 
1:14 PM
hello ;)
graph rendering calculations make my browser so slow ! how to optimize this ?
Is it better to do these calculations with server ??
 
@Stack, I'm in the casual chat room. Please talk there, I don't want to fill this chat with non-PHP talk.
 
@SafeY rendering what , where , why ?
 
hehe sorry :$ , I'm using jsplumb javascript plugin ,
 
well .. you could start by getting rid of jquery
 
1:17 PM
that would make your JS at least twice faster (that's an extremely conservative estimate)
 
ok
 
I can't get rid of it , because I'm developing a site built on jquery
 
nothing left to do here
 
in Casual chat, 55 secs ago, by RobinHood
@M.J. stack is the first four letter of stackoverflow :P
 
1:21 PM
@DaveRandom what if i would like to sum 1 hours and an half?
+90 minutes ?
@Gordon
 
.. and .. in the ignore list you go
 
@Badaboooooom Yes, or +1 hour 30 minutes
 
oh great thx for the tips
 
oh yep!
sure ;)
 
1:24 PM
@tereško which person
 
the one that begun highlighting people one after another, when first one did not answer the question
13 mins ago, by Badaboooooom
@DaveRandom what if i would like to sum 1 hours and an half?
 
1:54 PM
GM all
 
2:12 PM
@DaveRandom u there?
 
Nope. I'm dead. I tried to write some VBA earlier and I suffered a stroke and have now unfortunately died.
 
His dog, cat and hamster got together on the keyboard to tell you this^
 
@DaveRandom hrrrumff...
 
:-P
 
well would you be able to explain what you were trying to yesterday in using sockets instead of curl to contact node from php?
 
2:15 PM
Oh right, well my only point there is that using HTTP is a ridiculously inefficient way to do IPC between processes running on the same machine
 
@DaveRandom ok. so how do I do it?
 
I would create a socket server in the node process and then use
I hate this f*cking keyboard.
 
@DaveRandom there is a socket.io process and an express server
how do I contact the socket process from php?
 
* and then use stream_socket_client() (or fsockopen() if you are really lazy) on the PHP end
then you just end up with a file pointer that you can use with fwrite() etc
 
2
A: socket.io + php + is this a realistic solution at this point in time

symcbeanTrying to make PHP talk to socket.io I suspect will be a big task. Certainly it's not a great idea to run websockets via a pre-fork or threaded apache. Any event based server should be OK if you can handle the number of PHP processes. A better approach would be to write an event based server in ...

?
 
2:20 PM
No, why on earth would you use a transport protocol built on the application layer for IPC?
 
See the 2nd message here: groups.google.com/forum/?fromgroups=#!topic/socket_io/… I basically am doing that
 
I'm talking about a plain and simple net.createServer()
 
@DaveRandom ?
 
@DaveRandom hmmmm. but i still need the express server for other things. does it make sense to have net, express and socket.io?
 
2:24 PM
@Neal You are running on Node, right? So all that stuff is built in. It's not a framework, it's not an external module, it's a fundamental part of the core code.
 
@DaveRandom hmmmm, right now I create the server by doing this:
 
You are communicating with a single, known client on the local machine. It makes no sense (to me) to add all the bloat of a generic toolbox protocol designed for communication with an unknown remote client.
 
  express = require("express");

  app = express();

  server = http.createServer(app);
  server.listen(4444, function() {
    var addr;
    return addr = server.address();
  });
io = require('socket.io').listen(server);
how would I add net into the mix?
 
You do almost exactly the same thing as you did with the HTTP server, the API is very similar.
In fact, you probably don't even need the HTTP server, since what I am talking about would replace it
 
@DaveRandom So I can pass this net server into socket.io? and it accepts the express app?
 
2:28 PM
I would either design my own lightweight application layer protocol or use a pre-existing lib (@igorw was talking about a couple yesterday if you want to look back in the transcript), build a module with similar events to the HTTP module and it's more or less a straight swap.
Only you can add some sugar to deal with that application layer protocol
HTTP contains a whole bunch of stuff you don't need for this.
 
ok....
 
You're basically just passing small chunks of data around
 
but doesnt express need http?
 
I don't know, I've never used it. But they are not mutually exclusive.
 
hmmmm
lemme see
 
2:30 PM
who knows how can i be paid by view with advertising ?
 
The thing about using raw sockets is (on *nix) you can use unix sockets and the network doesn't need to get involved at all. It reduces the overhead immensely.
 
@DaveRandom A swap of http for net did not work at all.
 
with adsense they pay me only when somebody click on my ads
 
@Neal Well no, you need to, y'know, read the API docs :-P
 
@DaveRandom ....
i dont wanna do a whole rewrite...
 
2:33 PM
@Neal Well you were talking about doing it entirely in PHP yesterday. What's that if not a (much bigger) complete rewrite?
 
@DaveRandom when were we saying entirely php?
 
7
Q: How do I implement Server Sent Events in PHP?

NealI had set up a server sent event script with php and a while loop, I did not want for the script to have to keep closing and have to repoll so I put it all in a while loop. The issue was that the script was getting stuck and I had to abandon that route and I went with a node.js websocket backend...

 
@DaveRandom thats only the money they think i will earn but they dont pay me the CPM
 
Hello again
 
2:36 PM
@DaveRandom not the same thing.... net is very very different than http. express does not use net
 
morning @ircmaxell
 
Hey there, how's it going?
 
is there a cost per view advertising service ?
 
@ircmaxell mornin'
 
@Neal Yes it does, because HTTP uses net. It's all just TCP. The difference (and my original point) is that HTTP is full of a whole bunch of bloat that you don't need, because it's an application layer protocol designed for much more complex communication than you are doing in the IPC. And, if you use net, you can use unix sockets which are more efficient than TCP because the network never gets involved, it's just IPC.
 
2:39 PM
@NikiC: I've created a room on freenode #phpphp
 
You seem to be hung up on this idea that you need to integrate with something you are already using - I'm suggesting you treat them separately (because that's what they are) and simply mediate between the two.
 
@DaveRandom so how do I use express with net? I cannot seem to find any examples...
 
Yes, it's more complex and it's more code, but it's also way more efficient.
brb
 
2:51 PM
yey... i go another silver badge ..
 
user1125394
what is the opposite of individually ?
 
user1125394
 
@cyril: Collectively?
 
user1125394
o great thx
 
3:04 PM
@Neal Why "make it work with express"? It's just for IPC, why do you need a whole framework for simple message passing?
 
@NikiC My question on the ML about $value got ignored.
Surprise, surprise.
Anyway, good morning all.
 
morning
 
@DaveRandom :-\ idk... but I can get this to work:
var net = require('net');
var client = net.connect({port: 8124},
    function() { //'connect' listener
  console.log('client connected');
  client.write('world!\r\n');
});
client.on('data', function(data) {
  console.log(data.toString());
  client.end();
});
client.on('end', function() {
  console.log('client disconnected');
});
I get an error:
   THROWN ERROR { '0':
   { [Error: connect ECONNREFUSED]
     code: 'ECONNREFUSED',
     errno: 'ECONNREFUSED',
     syscall: 'connect' } }
comes from this:
client.on('error', function() {
  return console.log('   THROWN ERROR', arguments);
});
it is from this site: nodejs.org/api/…
 
That's because you are treating making a client connection. You need that end to be the server, PHP will be the client.
 
@DaveRandom oooo
stupid me :-P
 
3:15 PM
@NikiC @ircmaxell Can you guys confirm that my emails to the ML are showing up? I just realized that maybe they aren't getting there. Maybe they are being rejected and one of my filters is catching the rejection email so I think it's going just fine.
 
duuuh
@LeviMorrison ml?
 
Didn't think about the archives, good thinking @DaveRandom.
 
@Neal Mailing list
 
@Neal Meant to ping NikiC but I guess I screwed it up :)
 
3:17 PM
@LeviMorrison lol ok :-P
time to go to phys therapy soon for me.... stupid heel.
 
Anyone want to take a stab at turning a multi-dimensional array into to pipe separated format? :P
With recursion
 
@Jimbo implode, and one of the many array fns. tada.
 
@Neal I currently have a MASS of foreach()s and they're awful: stackoverflow.com/questions/14125922/…
 
@Jimbo Dude, you're still on that? I really don't understand why you don't just store it as JSON.
 
@Jimbo hehe can u send me the code for the array. i dont wanna parse ur dump...
 
3:22 PM
@DaveRandom Yeah, lol. I currently have it stored as a serialized string
Boss says he wants the values editable in the database, so gotta use parent / child ID's
Therefore I need to separate everything into this format :(
 
Well in that case you're using the wrong database for the job.
 
I know, I need LDAP
 
String manipulation in the DB is not the right way to do it
 
Can't - gotta use MySQL
 
Yeh, or some form of NoSQL
 
3:23 PM
Well I'm not using string manipulation, I'm using Parent and Child ID's
 
(Does LDAP count as NoSQL?)
 
@DaveRandom (No)
(And never recommend LDAP)
 
I come from a telephony background so I'm kinda comfortable with it.
 
(It's awful. BYU is currently in the process of swapping their LDAP services to general web services)
 
3:25 PM
I hope they are using MongoDB. I wouldn't want them to swap it for anything that is not webscale.
 
@Jimbo again. that is a dump. please sent the code for array
 
MongoDB + Node = pow(Webscale, 2)
 
@Neal do you mean the code to retrieve the array?
 
@hakre can your print_r() converter cope with var_dump and/or the xdebug var_dump (which, for the record, I don't like)
?
 
3:27 PM
@Jimbo yes...
 
Not sure you want me to do that.. Because it grabs data from a YAML language file, uses the Spyc library to parse the file and turn it into this array...
 
@DaveRandom That version not so far, no. It's very specific on print_r the way found on SO in it's various (whitespace) variations.
You need a var_dump parser?
 
Not specifically at the moment, it's just because of the that convo about 10 msgs up ^^
 
@Neal But here you go, the class I'm working on atm
 
...
 
Am I not getting it or something? :)
 
Ah, well there's your problem. No spaces between flow control keywords and their parenthesis.
:-P
 
hello phpeople
 
Hi All
 
@Jimbo He's asking for an code literal array definition (not the var_dump() output) - use var_export()
 
3:31 PM
i have a question regarding setting the result obtained from an SQL statement in variables in PHP
 
@Jimbo did you know that methods in object can all other methods ?
 
here's my question
0
Q: Store values of SQL query in variables

user1809790I have a SELECT SQL statement that returns a Latitude, Longitude and Distance as result (using the Haversine formula). Now I need to store these values as variables within the PHP script as I need to do further processing on the results. Can anyone tell me how I can do this? Here is my SQL Sta...

I have updated my code
or I am completely wrong?
does it make sense?
 
Side note - does anyone else think that var_export() should be modified to use shorthand array syntax []?
 
@tereško Yep, why? The procedural at the bottom wont be there when done :) just for debugging
 
Why does this have errors? codepad.viper-7.com/S8IJ4V am I missing something?
 
3:33 PM
@DaveRandom Thanks!
@Neal Here :P http://pastebin.com/5PAY4dWd
 
fixed it
 
@Jimbo i am talking about fact , that your array_to_csv will fail with 7 levels deep array
 
@Neal use not using
 
@DaveRandom fixed it codepad.viper-7.com/J0OBo6
 
@tereško Oh yeah, I'm not good with recursion - that's why I have this question: stackoverflow.com/questions/14125922/…
 
3:34 PM
@user1809790 you have to bind something to the parameters , before you execute it
 
@user1809790 , have you actually read a single tutorial about PDO ? Because it looks like you have been only copypasting random code
 
@tereško Yes I have these parameters bound
$query->bindParam(':latitude',$newLatitude);
$query->bindParam(':longitude',$newLongitude);
$query->bindParam(':radius',$radius);
 
@Jimbo codepad.viper-7.com/navawc <-- final with ur array
 
I am just not sure about the "while" part
 
3:35 PM
@Jimbo Understanding recursion is an important skill. Moreover, you don't have to use recursion in this case, but without understanding recursion you probably don't see the alternative solution either.
 
@user1809790 not in your question
 
sorry let me update it
 
and , prepare returns a PDO statement , not a string
for some reason you use it as a string : $q = $db->query($query);
 
how can i save the Latitude, Longitude and Distance in some variables them?
 
@LeviMorrison To understand recursion, you need to first understand recursion
:(
 
3:37 PM
no need for an array, I can limit the result of the select statement to 1 in this scenario
 
@Jimbo I don't think you've ever seriously tried to think about recursion. That's my guess.
 
@LeviMorrison Actually, final year University in Artificial Intelligence - I had to use recursion in Prolog
 
@Jimbo write a small app that computes factorial
 
Just couldn't do it, absolute nightmare. And I've been mortally afraid ever since
 
3:39 PM
@Jimbo If you got through a university degree that was related to programming at all without understanding recursion, then you did not have a very good program, sir.
 
@Jimbo .. in that case , you might have chosen wrong career path
 
@LeviMorrison Slaps
I did other good stuff :) Just couldn't do one thing in AI - prolog recursion
 
It's not an AI related task.
 
write a php program, which computes factorial
NOW
 
@tereško That doesn't have to be recursive . . .
 
3:40 PM
but it CAN be
 
I suppose.
 
either he writes it with recursion or without , it will give him a blueprint for fixing his code
 
@Jimbo What part about recursion don't you get? The base case or the recursive case?
 
@Levi The what case!? - Probably both
 
Well, I need to commute to work. That doesn't take long but if nobody has explained it to you by then I will try to.
 
3:42 PM
@LeviMorrison , you talk as if you have not seen people who, when faced with a problem just go "i cannot do this" ... and never even try
 
@tereško Can't do it right this second - gotta finish up something else but I will do
Hey, I have the will power and try!
Just, not with recursion. lol
 
... i have doubts about that part
 
sup fellas
 
Okay so, I failed AI first time round, for 3 weeks didn't go out of my room, sat and revised the whole thing, and went from a failed module because of the exam to 91% and a 2:1 honours degree, highest in my year and probably the most work I'd ever done straight. Worth it!
@tereško So just because I don't grasp recursion doesn't mean I'm not a hard worker and don't have will power.
and it doesn't mean I'm stupid either, okay?
:)
 
No, it's the fact that your from the Northwest of the UK that makes you stupid. Hey, wait...
 
3:46 PM
sha256 and unique/randomly generated salt per user. safe enough?
 
@DaveRandom Haha, shut up you :P Ruddy southerner
 
@8ch8ch no
 
@tereško what do you recommend?
 
I am not a bladdy sathaner and I resent the implication.
 
3:49 PM
@tereško thanks
 
wtf is with the recent sudden influx of people using inline event handlers in HTML/JS? Have they always been there and I was just not paying close enough attention? I really thought there was a light at the end of the tunnel where that was concerned.
@cryptic The problem with that question is 99% definitely relative paths. The clue is in the When I call this file directly, everything works as expected statement.
I could be wrong but I'd be surprised if I am.
 
@Neal Thanks for that
 
@DaveRandom new teacher guidelines in india ?
 
hellow
i want to learn pdo could any one suggest me good pdo tutorial ?
 

« first day (810 days earlier)      last day (4145 days later) »