« first day (772 days earlier)      last day (4173 days later) » 

12:04 AM
jfgi?
@DaveRandom Not only that, but you also drove those miles on the wrong side of the road....
 
@Lusitanian Ironically, a whole bunch of people just Googled jfgi.
 
@DaveRandom lol
 
@Lusitanian I don't understand the statement and I won't respond to it.
 
@DaveRandom By saying that, you've responded to it. You drove on the left side of the road.
 
Damn kids with their logic.
 
12:09 AM
That's me.
 
i feel like i won't accomplish anything productive anymore this night ...
 
then sleep
 
need to sing on in few games before that , to the the "logins in row" bonuses
 
12:45 AM
@MirwaisMaarij...
 
@ShaquinTrifonoff Yes?
@ShaquinTrifonoff Can you read chat?
 
@ShaquinTrifonoff my site is still down for me
lol
 
@ShaquinTrifonoff I am going to sleep, catch you tomorrow :D
 
1:09 AM
@MirwaisMaarij bye :)
 
@ShaquinTrifonoff my site still wont load for me its driving me crazy
 
@benlevywebdesign I can access it fine
 
not me its only down for me
 
1:24 AM
@benlevywebdesign nslookup benlevywebdesign.com what do you get
 
just spinning
 
lolwut
that doesn't make sense
try pinging it
 
hold on
connection time out
 
what ip address was it trying to ping
and if it didn't get that far, what DNS servers do you use
also try pinging 31.170.161.83, that's the address whre your site is
 
wait ip?
 
1:31 AM
...what?
 
what should i type in the second box
on the ns lookup
 
?
i'm now very confused as to what you're talking about --- but cancel out of that and just try pinging 31.170.161.83
 
i didn't mean online
i meant on your computer
 
1:34 AM
if other people can access it there's no point in checking to see if the outside world can resolve it
 
im lost
 
in your command line? unless you have a gui for dns resolution
 
where is that still lost
 
you mean where is your command line?
i don't know...lol i don't even know what OS you're on
 
user1125394
@benlevywebdesign press Start at the bottom left, guessing your on windows
 
user1125394
1:39 AM
Lusitanian have you ever played with XMPP?
 
user1125394
I'm trying to see what can be the best for an interactive site, not just chat
 
guys, does PHP plan on using more exceptions instead of errors in the future?
 
no mac
Server: 192.168.1.1
Address: 192.168.1.1#53
when i typed nslookup benlevywebdesign.com
 
@benlevywebdesign That looks like your domain is pointing to some localhost server
 
oh
so how to fix it?
 
1:50 AM
My guess is you've fubar'd some Apache config and would need to unfubar it
 
how would I have done that?
it was working fine yesterday
lol
 
That's just a wild ass guess on my part. It is hard to say why that is happening, haven't run into any issues like that on my own Mac.
You could try checking your hosts file
 
i also got this
Non-authoritative answer:
Name: benlevywebdesign.com
Address: 31.170.161.83
what else can give us clues?
lol
@cspray what else should I check
 
@benlevywebdesign If it isn't in your hosts file I have no other guesses for you
Sorry
 
are you talking about the .htaccess file?
 
2:06 AM
No, its basically a mapping of domain names to IP addresses
Probably located in /etc
 
I don't have an /etc
 
I find this very hard to believe
It is default a hidden directory on Mac
So you might not just be able to see it
But it is almost definitely there
 
oh on my mac
 
@benlevywebdesign Open the terminal.
 
yes its open
 
2:07 AM
cd /etc
 
@cspray Was just about to type that ;)
 
type that
 
@ShaquinTrifonoff Figured we could tag team it
 
Is the site hosted behind the router you're behind?
(If you're behind one :p)
 
so ok I type cd /etc and nothing but type /etc
and it says its a directory
 
2:10 AM
@benlevywebdesign Now, you're in /etc, type open hosts (I think)
 
new-host-3:~ benlevy$ /etc
-bash: /etc: is a directory
new-host-3:~ benlevy$ open hosts
The file /Users/benlevy/hosts does not exist.
new-host-3:~ benlevy$
 
@benlevywebdesign lol
 
@benlevywebdesign Is your site behind the same router as you?
 
$ cd /etc
$ open hosts
@AlexLunix It's hosted on 000Webhost.com
 
2:12 AM
Ah, then it's not what I was thinking
Does it have a dedicated IP that he can connect to to rule out DNS issues?
 
@AlexLunix No, lots of sites are hosted behind the same IP :-/
 
Ah, well then we'll have to see what his hosts file looks like.
 
So, you've got the terminal open?
 
ok did that and it opened a text file with textedit and its called hosts
 
2:19 AM
Right, post the contents of it here.
 
ready:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
 
Nothing out of the ordinary...
What do you get if you type tracert benlevywebdesign.com?
 
in terminal?
 
still in ect?
 
2:22 AM
sure
 
@benlevywebdesign Doesn't matter.
It's etc, BTW, not ect :P
 
ops
does it matter that I went on my parents pc and the site doesn't load
 
@benlevywebdesign Same modem/router?
 
yup its the same
 
Have you not been able to access your site for more than an hour?
 
2:25 AM
May seem silly, but you could try restarting your modem :\
 
terminal said -bash: tracert: command not found
 
Too bad
 
Oops, it's traceroute on macs I think.
 
I did earlier and @ShaquinTrifonoff I have not been able to access it since this morning
 
2:26 AM
@AlexLunix that worked now its doing its thing
 
lol?
 
how long does it take
 
I0I
@benlevywebdesign Wait until it's done :)
 
so till 101
im at 34ish
 
Love the animation on the user icons in this chat
 
2:32 AM
what animation
 
When users fall off or join in
 
oh yeah its weird
 
still traceroute'ing?
 
I'll see if I can show you a weird effect :D
 
woah
this is a very impressive chat box :p
 
2:35 AM
yup
at 50
when its done should I post that stuff here or make a pastebin
 
If there is a lot of text I would vote that you don't paste it here
 
pastebin? not good?
 
Personal preference :D
 
ok
at 64
 
2:39 AM
Hmm, that's a lot...
 
I think it finished
 
Does it show the $ prompt?
 
this? Yes!
new-host-3:~ benlevy$
 
It's done, paste the result somewhere and post a link.
 
2:42 AM
Wow, I've never seen so many timeouts :O
(A timeout is *)
 
and here on pastebin for other than @ShaquinTrifonoff who have a personal pref.
ok
now what?
 
@benlevywebdesign Well, it got as far as ashv1.main-hosting.com, the next one would be the actual host.
 
For my site, that would be 31-170-163-195.main-hosting.com.
 
should I do it agian
 
2:50 AM
don't bother
 
Well I give up, it's got me beat
 
yeah me too
should I restart me router/modem one more time
 
sure
 
Hi people, i need an urgent advice in a lightweight PHP framework for Facebook application
 
2:53 AM
lol
 
I have no time to develop too much my self, which is the very basic backend.
Yii vs Kohana vs CI?
I would really love to use Symfony 2, however it seems to be way too big for this project
 
Nov 1 at 23:39, by Lusitanian
Microframework (n): A small amount of crap. See also Framework (n): A large amount of crap.
2
 
@ShaquinTrifonoff This
 
Up to you whether you want to use a framework or not :D
 
2:56 AM
Someone please close that question before more people start answering :S
 
@ShaquinTrifonoff lol, but I really do need it for this project
 
@ShaquinTrifonoff I am not advance backend developer, which is why I would like to have the security of using a better developed framework that support very basic functionality: security, db connections, template, routing eg
 
I see your point.
I can't advise you on which framework to use though :D
 
@ShaquinTrifonoff so sad! :( - but does it mean you dont have any experience in those frameworks?
 
3:00 AM
restarting didn't do anything
I don't think
 
@designer It does.
 
you guys can all look at my site
but is it slow?
 
Nope, visited it and it loaded very quickly.
Well, I gotta go, good luck with your site access.
 
me to anyone keep me posted if you have any other ideas
do you think its my connection
cause I'm going back up to school where I'll use my desktop and a different internet connection
 
@benlevywebdesign It is probably your IP still being blocked.
 
3:04 AM
ah ok
so it should work on another network connection
 
3:24 AM
i think its back
maybe not
 
3:54 AM
@Gordon that's a reasonable suggestion, thanks - I'll see about making it happen.
@PeeHaa I found, IIRC, 6 duplicates. Keep in mind, SO's search does that thing where it returns results that contain any of the keywords - even if they're not particularly important.
 
 
1 hour later…
5:16 AM
Yeah Its Back Up
 
 
1 hour later…
user1125394
6:31 AM
@designer is php development considered backend or frontend..?
 
@cyril Backend, I think...
 
user1125394
developers in my team put php in frontend/ and some other java server code in backend/
 
user1125394
but I agree with you @ShaquinTrifonoff
 
user1125394
but there are some job descriptions: "PHP frontend developer" what is it then?
 
I don't know.
Front end and back end, in addition to their obvious use in everyday English, are generalised terms that refer to the initial and the final stages of a process. The front end is responsible for collecting input in various forms from the user and processing it to conform to a specification the back end can use. The front end is an interface between the user and the back end. Computer science In software architecture there may be many layers between the hardware and end user. Each can be spoken of as having a front end and a back end. The front is an abstraction, simplifying the underlying ...
 
user1125394
6:44 AM
yeah was seeing it
 
user1125394
the thing is frontend is what the user sees
 
user1125394
and php is generating it often
 
I would think that frontend would be HTML, CSS, JS...
 
user1125394
those folders are often (badly) mixed with php
 
user1125394
but yeah right, ok
 
6:50 AM
> PHP frontend developer
what is that? and what is the difference b/w that and a regular Frontend developer?
 
user1125394
Idk looks like there's a confusion
 
user1125394
on the same page: indeed.com/q-Front-End-PHP-Developer-jobs.html you see php with 'frontend' or 'backend'
 
7:23 AM
PHP creates the front end (HTML)
otherwise presentation
you could also develop a backend using php without a front end
 
user1125394
if frontend is only public and served files it's for example index.php, css, js?
 
@andho without a front end? but then it would be a site, no?
maybe something for an API call? idk...
 
Maybe a WebSocket server written in PHP would be a back-end?
 
user1125394
so they should call it JS developer directly, since css isn't really a job
 
user1125394
yeah REACT php servers are pure backend, but so is any web-based server framework except public files
 
7:52 AM
posted on November 26, 2012 by Christopher Jones

An important discussion on the PHP "internals" development mailing list is taking place. It's one that you should take some note of. It concerns the next step in transitioning PHP applications away from the very old mysql extension and towards adopting the much better mysqli extension or PDO_MYSQL driver for PDO. This would allow the mysql extension to, at some as-yet undetermined time in t

 
> I want to repeat that no time frame for the eventual removal of the mysql extension is set. I expect it to be some years away.
seriously? then more mysql_* sites are gonna pop up
 
sometimes, back-end is referred to as the database, and the PL as the front end
if the served files provide a user interface yes
@cyril css is a pretty good job IMO
 
8:10 AM
'morning
 
@andho I hate CSS... so weird... especially when it comes to float: right; and stuff like that... but without CSS the sites would look bland
okay... hate is a strong word... I am uneasy with CSS (cos I suck at it)...
morning
 
user1125394
8:34 AM
github.com/jappix/jappix/tree/master/php < scary project architecture
 
lol
 
@cyril holy crap
 
@ShyamK: just say: this site is best viewed in Lynx ;)
 
@cyril not that bad. at least you immediately get an idea what the application does
 
user1125394
it's a 30 scripts "application"
 
user1125394
8:48 AM
can't blame them, I think they are ajaxing
 
morning
 
hey @PeeHaa
 
9:07 AM
Ehm, yeah, should probably not have clicked that at work :p
 
Hi
PHP CURL
Unauthorized: Access is denied due to invalid credentials
POST https://api.playtrade.com/Reports.asmx/GenerateReportNow

{HTTP HEADERS}

Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Content-Type: text/xml

ReportName: Order

NumberOfDays: 2
always throw error unauthorized
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml", "Accept: text/xml"));
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_USERPWD,$encode);
@PeeHaa , do you know what is the problem. I searched all over the internet. but no sample etc found.
 
@abdulwakeel because this is a protected area
 
@abdulwakeel please do not ping individual users unless they have helped you with that particular problem in the past. thanks.
 
ok thanks
 
With apache, not POST PHP fields
 
9:12 AM
with apache?
 
Have you tried going on the website ? See the popup ?
 
let me try
 
My thoughts go on a .htaccess protecting the folder
 
Play.com provide these api to access reports, listnings etc.
 
And just click "cancel" You'll get the same error as your PHP
This should give you a hint on WHY this is not working
 
9:17 AM
yes, when cancel its says auauthorized
play.com provide docs which shows how to connect to our apis. I copy above lines from there docs.
I search all over the internet, not found any other technical documentation. which show how to connect to playtrade api.
 
Then your password may be wrong.
 
Did you mean, when cancel show unuthorized this mean password wrong.
 
No, the password given in your PHP file may be wrong, you should check it again
 
header('Location: /someplace'); <- Does it execute the code under it? Nvm... it does
 
@ShyamK yes
And please use an absolute url
header('Location: example.com/someplace');
exit();
 
9:21 AM
@PeeHaa was too lazy to write one for the example... :)
 
The code might get executed or might not
I.e. always use exit()
 
why might get executed?
 
yep
4
Q: PHP: Effect of code after header("Location: abc.html")

check123Lets say, the code looks something like this: if(!$test) { header("Location: somefile.html"); ...some PHP code.... header("Location: anotherfile.html"); } Is 'some PHP code' above executed? If yes, then what happens to further HTTP response(s) therein (eg.: the second 'header' statement...

 
@Touki actually when I type url in browser, and enter username password. when browser execute its again show username password. when I cancel. its show UnUthorized
 
@PeeHaa thanks
 
9:25 AM
@PeeHaa Actually you also should leave some HTML body if that was a request for a HTML page, so that if the user dislikes or has no automatic redirects, can see a message and click a link.
Good mornings btw ;)
 
@hakre If the user has no automatic redirects the web as we know it stops working for him :)
 
What's up guys. Bots that find a 404 page don't go through it in search engines right, so... if I place header('HTTP/1.0 404 Not Found'); at the top of my index page, I won't even need to bother with .htaccess rewrites, correct?
 
And morning @hakre
 
@PeeHaa Well, better check the docs, you must not expect automatic redirects. And the web as we know it is crap, see FB.
 
:D
 
9:29 AM
Also, good morning :)
 
@Jimbo 404 at the top of your index page?
When a page is not found you mean I hope?
 
@Jimbo That depends on the bots. I suggest to look into robots header / meta tags, too. Looks more fitting and you have more control. - yoast.com/x-robots-tag-play
 
Just at the top of my page, even when it's working. Bots that find 404's tend to not crawl them, or so I thought...
It was a quick idea I woke up with :)
 
Then take the robot headers.
Evil robots crawl 404s anyway.
 
@hakre That looks like an interesting post, cheers!
 
9:36 AM
And place a robots.txt. Oldskool but accepted practice.
 
Already got that sorted out, doesn't do anything for that damn Baidu spider
I think I've gotten a little obsessed with tail -f /var/log/apache2/access.log
 
@Gordon :O :O
 
mornin' folks
 
morning
 
morning
 
posted on November 26, 2012 by Liip

Read whole post

 
morning!
 
10:21 AM
appreciate if someone gives their feedback
0
Q: should I extend or create instance of the class

meWantToLearnI have two classes Class A and Class B in Class A, i have three methods that perform the save, delete and select operation based upon the object I pass them. in Class B I perform the logic operations, such as modification to the property of the object before being passed to the methods of Class A...

anyone someone :O
 
@meWantToLearn we already told you yesterday
Entity extends Database is only okay if you have an ActiveRecord and ActiveRecord is only okay if you dont have impedance mismatch. Your A is a DataMapper, so B should not extend it.
 
thanks for confirming
 
I usually ask those sort of questions on SO, not been on p.se before.. hmm
 
@Gordon this is exactly why ActiveRecord itself is a bad pattern
 
@tereško with the exception of the SRP violation, ActiveRecord is okay for simple CRUD apps.
 
10:28 AM
true , but those cases are actually rare , while active record abuse is wide spread
 
@tereško yes, its kinda like the Singleton of Data Access Patterns.
well, maybe not that bad
in the end its just a tool. know when to use it … blahblahblah
 
if Im creating instance of class A, calling its methods in every function of class B, is there another way to simplify this processs
class B {
public function doABC(){
$instA = new A();
$instA->something();
}
public function doXVD(){
$instA = new A();
$instA->someWater();
}
}
 
@meWantToLearn we cannot tell you because we need to know what A and B is. Inheritance is not simply a matter of methods here and there.
 
A does the crud operation
 
@meWantToLearn well, for the third time then. If A does the CRUD operations, B should only extend it, if it is an ActiveRecord.
 
10:41 AM
its not active record
 
@meWantToLearn then dont extend anything from it but inject A
 
user1125394
@meWantToLearn fixed-font button
 
@meWantToLearn martinfowler.com/eaaCatalog/index.html Data Source Architectural Patterns
 
user1125394
@meWantToLearn you asked the same thing 2 days ago chat.stackoverflow.com/transcript/message/6372835#6372835
 
cv-pls: Backlog (mirror) | Meaning | Chrome/Firefox Addon | Cat Content | Snippets: Mysql | Reference: Errors | Operators
11
@Gordon ^
tnx
 
user1125394
10:53 AM
Cat Content damn this cat has powerful teeth, can't say no to him
 
11:23 AM
since you have under 1k , you cannot even say "yes"
 
user1125394
lol
 
user1125394
@all can you review my worst question it's not that stupid, especially @salathe 's answer
 
user1125394
o yeah I like down votes
 
11:37 AM
@cyril You should have searched, for a start.
 
user1125394
$odds = array();
foreach (preg_grep('/[13579]$/', array_keys($array)) as $key) {
    $odds[] = $array[$key];
}
 
user1125394
this is awesome
 
user1125394
@Gordon I'm not sure this work
 
@cyril what are you trying to do? remove all the elements with even keys?
 
user1125394
11:48 AM
yes
 
though the preg_grep is somewhat nicer
 
user1125394
yeah but flipping if some values are the same...
 
@cyril true. will only work for unique arrays. array_walk would do though since it passes the key to the callback
 
user1125394
12:23 PM
 
Anyone here know a good dedicated server host? Budget is ~70 euro/month for >=1TB disk, >=5TB datatransfer, >= 4GB memory, >= 3 IPs, and preferrably not in Germany, France, or countries that outlaw encryption.
 
hi
is there something wrong here mysql_query("INSERT INTO mytable (name , age) VALUES ('".$_POST['name']."' , '".$_POST['age']."' )");
 
lol, what a first message to read
morning all
 
Yes.
Hi @DaveRandom :)
 
@NiekBergman has to be dedi?
 
12:35 PM
@Leigh: preferrably, yes.
 
@NiekBergman Ok, probably can't help then, I only really use VPS these days
 
@peter: You're not escaping variables.
And you're using mysql_
 
@NiekBergman yes i know i just want see if something wrongbecause it didnt insert to database
 
@peter Please, don't use mysql_* functions in new code. They are no longer maintained and the deprecation process has begun on it. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
yes i can use PDO i just want see why this didnt work
 
12:39 PM
^^ those are things that are wrong. If your query is not working, chances are it's the second thing
 
@NiekBergman poundhost.com/server-more-info?id=125 - you'd have to enquire about additional diskspce.
 
@peter Because one of name, age contains a ' single quote
 
@DaveRandom i added single quote but did nothing still dont work
 
@peter Echo the query. You need (not should, need) to use prepared statements.
 
@NiekBergman Do you want to host warez or why is Germany not an option?
 
12:42 PM
Maybe he's Greek.
 
Meh, I just host in the UK and use full disk encryption, if I get put in prison at least I don't have to work...
 
@ThiefMaster: Yes, lots and lots of warez. No, just kidding. But Germany has become more nasty regarding common carriers (see Retroshare case lately) where mere carriers of data are responsible for the content carried, even though the carrier has no knowledge of the content because it is encrypted. They're also cracking on tools that "could be used for hacking", I'd like to still be able to run nmap on my server, please ;)
 
Those laws that you can go to jail for not giving out your passwords is such a fucking joke
I think that hacker tool law is not seriously enforced anyway.
And that retroshare thing.. I did read about it but I don't remember what kind of court it was. But probably a very low one so chances are good that higher courts will decide differently
on the other side.. some higher courts are also totally retarded... some judge considered the confirmation email of the double-opt-in system of a newsletter to be disallowed advertising, too.
 

« first day (772 days earlier)      last day (4173 days later) »