« first day (3319 days earlier)      last day (1620 days later) » 

12:00 AM
lets hear it
 
I am Brazilian, I am looking for an assembly room in the chats. Exist?
 
user11601411
do i only need to do it one time?
 
@YODA sorry none yet
 
=(
I have a lot of questions about Assembly x86. And I can't find any place that has assistance or content from it.
 
@EnderCrayonBM yeah
 
user11601411
12:02 AM
also is it in the console
 
@EnderCrayonBM have a look at php func to change folder permission
@YODA am a total noob in that field
ask in the c programming room might get some help
 
user11601411
yo um is this website filepermissions.com/articles/…? telling me how to do something else
 
@EnderCrayonBM no that was intended to help you understand the file permission codes
 
user11601411
oh ok
 
user11601411
now that i have restarted the server to run that i can try doing it?
 
12:09 AM
still no return value of the rename function in question?
 
user11601411
now it says permission denied
 
oh, did you enable error reporting?
 
user11601411
idk
 
but where did you obtain the information from that "it" says "permission denied"?
 
user11601411
ok i messed something up i changed it to 0777 and now it says nothing
 
user11601411
12:10 AM
console
 
does the move-to target directory exists? (console sounds first of all good)
 
user11601411
like the folder?
 
user11601411
yes
 
like what else?
idk?
 
user11601411
?
 
user11601411
12:11 AM
what?
 
like you would reply like "idk?" or just plain "?"
that kind of style you have in communication.
 
user11601411
wiat what are you trying to say?
 
idk?
 
user11601411
o
 
it's fine to asking questions by the way.
 
user11601411
12:13 AM
if the move-to target dir is the folder then yes it exists
 
it's maybe you ask very many of them.
like every second sentence and probably even more often.
that makes it hard to communicate.
 
user11601411
:/
 
user11601411
because i want to make sure im doing the right thing
 
yes, first thing I would do personally is checking the return value of the function (here: rename).
because functions have documented behaviour so that it is possible to compare the actual return value against the documentation.
 
user11601411
by doing var_dump?
 
12:15 AM
by doing whats-so-ever is necessary to do it.
 
user11601411
im going to try to move it to index.php to see if it dumps anything
 
this can totally differ, it can be var_dump, it can be doing a step debugger, it can be appending to a logfile. there is no simple answer to such a question, this is debugging.
 
user11601411
well it doesnt dump anything
 
user11601411
`$rename = rename( __DIR__ . '/log.html', __DIR__ . '/Logs/fat.html');
var_dump($rename);`
 
user11601411
it actually just deletes the file
 
12:19 AM
as the command is in there I would first of all consider that it dumps - that is the reason to use the function (var_dump) in the first place. So more likely it's not that var_dump does not work but the looking for the output of that function is expected but the looking is wrong, the looking is looking in the wrong place, not where actually the output happened (most likely, I still don't know because you have your computer and we're only talking about that you have a problem using it)
maybe too many words, I hope they are readable.
 
user11601411
ok so i refreshing the page and i saw this appear `bool(true)
`
 
okay according to rename it worked.
don't get me wrong, for the function itself. not saying you don't have an issue.
also this confirms that var_dump works, the output you see is from var_dump.
so as far as I've understood you, you can confirm that the file is moved to the extend that it is not any longer at the original location, correct?
 
user11601411
yes
 
okay, and the problem you've got is that despite rename says for itself it works ("bool(true)" var_dump), you miss it at the destination location?
 
user11601411
yes
 
12:25 AM
so please don't get me wrong when I ask you the following question: How can you say that the file has not been moved?
 
user11601411
Well i don't really know but it just disappears
 
well when you move it, it must disappear, mustn't it?
 
user11601411
yes
 
and do you find it under the new name?
 
user11601411
no
 
user11601411
12:27 AM
no where in the workspace
 
regardless of workspace for a moment, can you type in by yourself here in chat what the new name is you're looking for?
 
user11601411
fat.html
 
user11601411
its just a random name for testing
 
user11601411
i have tried naming it log$time.html but it still did not work
 
user11601411
like with a variable with the correct format
 
12:29 AM
the name on it's own does not matter. you can name it blue, green or even hakre, I don't care. And in which directory would you expect it in?
 
user11601411
in a folder called Logs
 
user11601411
Tree:
index.php
post.php
logs.html
Logs > (where the logs.html is supposed to be
 
So far you have given file or directory names that are purely relative. There is no problem with it on it's own, but to properly locate a file on your very own file-system (the one you use) you need to map any relative path to the absolute one of your system. Are you able to do so? Or is this something totally new what I'm just typing?
 
user11601411
i am very confused
 
user11601411
totally new
 
12:32 AM
okay, does relative and absolute path rings a bell?
 
user11601411
kind of
 
like well, I don't care it worked always?
 
user11601411
What?
 
what kind of "kind of"?
 
user11601411
ok i have no clue now, ill just say no
 
12:34 AM
if you tell more about yourself it's getting easier to help you.
okay.
so in the end you need to know the absolute path of a file.
an example (actually your example).
 
user11601411
So like /Logs/givdjsh.txt or something like that
 
rename( __DIR__ . '/blue', __DIR__ . '/Logs/green')
 
user11601411
Ah ok
 
^ the example.
You say "blue" disappears.
Was "blue" there in the first place?
 
user11601411
Yes
 
12:37 AM
can you say the full path of blue?
(remove secrets or personal information from it)
 
user11601411
No because the files are on a website
 
but what has a website to do with the path of a file?
just your opinion, please share.
 
user11601411
So I use this website called repl.it and the files are on it
 
user11601411
Sorry for the vague statement
 
not that vague actually.
have you gained confirmation that the features you are looking for are hosted by repl.it to you personally?
 
user11601411
12:41 AM
Like?
 
user11601411
Which part of the features?
 
like or have you just stumbled over it and gave it a shot?
 
user11601411
Over?
 
I meant gave it a try.
 
user11601411
Like repl.it?
 
12:43 AM
And more interestingly: When you contacted the support of that website, what did they tell you about your problem using their website? (website: repl.it)
 
user11601411
I don't know what "it" you are really talking about.
 
repl.it
 
user11601411
I didn't contact support as I thought it was a code problem
 
okay, fine and good to know.
do you want to know if this is actually a code problem? or are you already exhausted because you asked for hours?
 
user11601411
Well both
 
12:46 AM
and did you put the code on repl.it because you had an earlier problem?
 
user11601411
And I want to fix it
 
user11601411
So if I get the raw for then I can do this?
 
well let's find out what to fix here, okay?
 
user11601411
Got it
 
so, why did you put code on relp.it?
 
user11601411
12:48 AM
Well because it's free hosting of a website basically
 
As it's free, what's the problem to loose it? e.g. if it does not work?
 
user11601411
Loose what?
 
Loose repl.it, the free hosting of a website basscally.
 
user11601411
Well then I'll need to host it which can be a big problem for safety reasons and I will need to get a domain
 
Well before a complete hosting there is maybe development first. Do you have a computer yourself?
 
user11601411
12:52 AM
Yes
 
So what stops you to try these things on your own box?
Like the rename script?
()brb
 
user11601411
Do you mind describing that a little more
 
i think hakre means, run your code on your own pc (locally)
 
user11601411
Hi bte
 
user11601411
Btw
 
user11601411
12:59 AM
So I don't want to do it because of safety reasons and like getting the domain
 
nani ?
you understand what locally means right?
 
user11601411
What?
 
it means you can run your php code on your own pc without any internet connection what so ever, view it in your browser in your safe and secure pc where no one can see your code
 
user11601411
But I want to share it with friends to chat
 
user11601411
Or does he mean for when I'm eiditing
 
1:04 AM
for testing purposes first, then when your application is ready you then deploy it online
 
take things as near to yourself as possible when you need to clarify things.
that is just self respect.
(in the end)
we normally use computers to have them validate what we put into source code so that the machine can consume it - because we want the machine to present the results.
this works just best with using your own computer.
especially when this is about programming.
Basically what @BobbyAxe said.
 
user11601411
So I'm testing whether if it works when I localhost it
 
user11601411
And if it doesn't it's not the code's problem
 
yes, localhost is your castle, your home sweet home.
well, sort of, but actually when it works on your machine, it's a situation best known as "works on my machine" situation.
but for code and also to a larger extend for systems the code runs on, it means you're in control and you can validate the preconditions.
 
user11601411
Got it
 
user11601411
1:11 AM
I'll do the testing after eating dinner
 
that sounds like a great plan.
 
user11601411
Thanks so much
 
and if you did your testing after dinner, don't forget that there is a next day and a night before, so enjoy night.
 
user11601411
@BobbyAxe u too
 
user11601411
Thank you
 
1:13 AM
nothing to thank for.
you're welcome.
 
@EnderCrayonBM never give up, for every bug/error you fix you become better at coding.... think of it as getting experience points :)
 
yeah, don't give up. at least not too early (keep on fixing all the things).
 
user11601411
Was planning to give up but I really want this feature!
 
user11601411
So I didn't
 
never give up.
and have a good dinner. I had a wonderful one this evenning.
 
 
4 hours later…
Wes
5:11 AM
mornings
 
user11601411
5:33 AM
@hakre @BobbyAxe it worked on my machine
 
user11601411
please like dm me or smth about this
 
user11601411
or mention me
 
8:00 AM
simony the making of profit out of sacred things.
 
 
2 hours later…
9:41 AM
@EnderCrayonBM excellent now you know the issue was not from your code but from the environment, you can now try getting it to run on that environment with a lot more confidence and a more specific questions as to what the problem may be
 
10:33 AM
After all the hours did someone pointed out that he should check the file rights of the target folder? :X
 
 
2 hours later…
12:30 PM
stream_socket_client works slower than except – #78825
 
user11601411
1:06 PM
@user3655829 i did and i set it to 777
 
cmb
1:28 PM
@EnderCrayonBM, did you try copy() instead of rename() just to check whether that works? Also you could try to create a file in that folder with file_put_contents() or so.
 
user11601411
1:45 PM
i did try it on my own machine and it worked
 
cmb
I know :)
 
user11601411
and copy clones it right?
 
user11601411
i want to move it though
 
user11601411
i want to know about the function file_put_contents()
 
user11601411
mind telling me more about it
 
1:56 PM
Can I ask about scilab here?
 
cmb
!!doc file_put_contents
!!docs file_put_contents
 
[ file_put_contents() ] Write data to a file
 
user11601411
so i need to like convert the whole doc into like text and stuff and then create a fle withh all that
 
cmb
nope; it's just for checking whether a file can be created in that directory, and whether it is shown afterwards
 
user11601411
so im using that to return something not do something?
 
user11601411
2:44 PM
@hakre even tho it works on my machine it spits out this error Warning: rename(./log.html,./Logs/fat.html): The system cannot find the file specified. (code: 2) in C:\xampp\htdocs\index.php on line 5
 
3:20 PM
Extension php_oci8_12c.dll is not a valid Win32 application – #78826
 
cmb
@EnderCrayonBM, I get this warning if the source file doesn't exist. But in that case, there wouldn't be anything that can be renamed. Pretty strange.
 
@Derick To set my expectations, how long did your cold last for you?
 
 
2 hours later…
5:13 PM
Morning guys, I am back to the life ;)
 
cmb
5:48 PM
\o
 
user11601411
6:05 PM
@cmb so i can basically ignore that right?
 
user11601411
so now its my like hosting provider's problem im guessing?
 
cmb
I assume that the error message was from your local machine, in which case it doesn't matter much to you, but might be a bug in PHP. Regarding the code on repl.it, it might indeed be worth to ask their support team about that issue.
 
user11601411
ok
 
8:54 PM
o/
i accidentally added a few files that did belong to a project a while ago, only recently discovered it. :(

quite a number of commits have been made since then, now about to remove those project unrelated files, stuck thinking of a good commit message
is there a word for such foolishness :) could help make the commit message more descriptive
just ignore that
 
 
1 hour later…
Wes
10:30 PM
i just sent this message to twitter (cc @Danack)
> tell me how am i supposed to use multiple accounts (a feature you offer and say it's fine) if you disallow me from using the same phone number for multiple account? i cannot recover this account because it says the phone number is already in use. NO SHIT?
i mean how can they be so big and so bad at the same time? it doesn't make sense
also i was banned because i said "i hope [Formula 1 driver] gets a shot at [...]" which was obviously misinterpreted as me hoping that a F1 driver would get gunned down
 

« first day (3319 days earlier)      last day (1620 days later) »