« first day (833 days earlier)      last day (4130 days later) » 

Aaararagh
 
:D
 
2:17 PM
my friend told me that works .. but I think its just a trick to increase traffic
isn't it ?
 
2:28 PM
1 message moved to recycle bin
 
0
Q: How does Facebook do it? Directories or 404 custom error?

Sandy Lee_user53167I have asked a similar question before but got no answer. Whenever we request an address like http://facebook.com/Username, the timeline of username is shown. I think that they have configured their 404 Custom error page in a way that they store the request path (in this case /Username) in a var...

lol, how indeed.
> have they created a directory with every username in their root directory
 
:P
 
6 hours ago, by NullPointer
what would be better .. single table with many colon or multiple table with less colon and use foreign key ?
than use joins and these stuff ?
colon === columns
 
A single colon is best :) that's what I use.
 
2:38 PM
@NullPointer Depends :P
 
@Jack sorry ? single table you mean ?
 
Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the defined relationships. Edgar F. Codd, the inventor of the relational model, introduced the concept of normalization and what we now know as ...
 
@PeeHaa i am creating a property dealing website database so wither i can create single table with something like 40 columns and property type and many thing in array or multiple table
 
@NullPointer It's a joke, you know what a colon is right? :)
And I don't mean the two dots.
 
@Jack a field ?
 
2:40 PM
@NullPointer Search for "colon anatomy"
 
@Jack sorry mean column ....
 
field or column is the more acceptable term for what you mean :)
hehe
 
@Jack please .. jack :P
 
hey, we're all here to learn ehehe
 
@Jack :D
also please give you expert advice ....
 
2:44 PM
IRQ
0
Q: Using proxy with file_get_contents

Jinu J DI am getting data for my application from a website, say x.com. I use the php function file_get_contents() to fetch the data. It is sure that , my server's ip address will be shown in x.com 's logs. Is there any way to hide my server's ip without using proxy? If I have a proxy ,how to use it w...

 
@NullPointer you didn't say whether that's before or after normalization :)
 
@Jack some once created this mess
 
@Jack lol
Mornings
 
@DaveRandom yo yo!
 
@Jack now my work is make this correct .... other guy also used array for main_type,main_features,main_spacialtype , all all type thing
@DaveRandom morning ...... :)
 
2:49 PM
@NullPointer shouldn't you just called the table "main" ?
 
@NullPointer it seems that most columns are cohesive from first glance ... the column prefix is strange though.
 
ya looks like to me also
@tereško it isnt created me ..
 
.. try harder
 
@NullPointer "garage" only has one "r" in it. Just so you know, if you didn't already.
 
btw, varchar(2000) ??
 
2:54 PM
@Jack something that i cant understand how its working
also guy who created this ... now got fired from job... i am working for fun on it
@Jack i know its 1 to 255 characters ...
 
user50049
An image is varchar(500)? That's a heck of a long path :)
 
there are a few fields i would investigate, agent, user and price ... i feel that those aren't directly related to a house.
 
user50049
Also, garage .. tinyint(4), is this meant to be a boolean or describe the number of cars it can hold?
 
perhaps he needs a garage size of -100? :)
@NullPointer showtype and time as well ... no idea what they do.
 
user50049
Also, can't any of those fields be null?
 
3:02 PM
cool i just asking is it ok to make that table correct ... or as i thinking to create new normalized database from scrape .. which i think could be ~10 table
@TimPost no one can understand logic behind that table ...
 
user50049
I'd look at the (what seems to be ids) and note them, as that's really the only clue as to how that developer intended to actually query.
 
@NullPointer splitting a cohesive table into multiple tables just so that you have nice grouping isn't the way.
that's like splitting users into users_firstname and users_lastname tables ....
 
user50049
Keeping everything about a property in one table isn't a bad idea, just use more appropriate types, don't prefix (just name the damn table main). Just look at those IDs as they seem to be the only clue you have into business requirements, e.g. obviously you have to list properties by agent
 
user50049
Prefixing like that is usually an artifact of a developer that does not yet understand joins.
 
user50049
I've built a few real estate apps in the past, they are pretty simple. The only complicated part was trying to understand the crazy financing terms, which were designed to be as confusing as possible :)
 
3:11 PM
@TimPost actually the table is called 'house' which is probably more apt than 'main' :)
 
user50049
I think he should go with 'dwelling', to be honest.
 
user50049
Gah, don't listen to us, rename it to domicile and be done with it
 
:)
 
user50049
@NullPointer He actually got fired over that table?
 
@TimPost yes because that table ...
 
user50049
3:13 PM
I've seen so much worse be applauded.
 
user50049
Well, sounds like you work in a decent place then :)
 
@TimPost i am just doing my training(final year) from there .... not employed ...
also that guy was post graduate(M.Tech.) and my ex-trainer in that company ...
 
user50049
@NullPointer Frightening.
 
i have seen worst ... my college lecturer(which teach us C#) doesn't touch computer for 8 years ... and we dont have permission to ask question to him .. lol
 
user50049
It'd a good thing you don't need a college lecturer to learn C# :)
 
3:21 PM
@NullPointer Well, those are product attributes, they don't belong in that table for sure.
@OlegOrlov A bit complicated, don't you think?
 
@webarto yuup... creating new normalized database and remove this table ...
Timpost yes sire ... we read everything online .. and its pretty bad .. since we read more crap less good thing .. and than we have crappy knowledge .. until get good source
 
Well, thankyou @webarto for wasting at least half an hour for me. Damn kids with their damn youtube videos that link to other damn youtube videos...
 
lol
 
3:38 PM
3
Balls of steel, makes me wanna get up and not being lazy fat f*.
But I'm too lazy for that :beer: ...
 
3:51 PM
does anyone by change know what the path to the php executable on travis is?
 
@NikiC What do you mean exactly, kind Sir?
language: php
php:
  - 5.4
  - 5.3
In teh YML file, and you should be able to call PHP with only php ... I might not know what I'm talking about and what you've asked....
 
I need the php executable
As in something that passes an is_executable check
 
Got it.
 
I wish I knew some bash
E.g. how I could get the output of which php into an env option...
 
@NikiC I'm trying that now :)
 
@webarto figured it out
 
@NikiC export NIKIC=$(which php) ? :)
 
@DaveRandom m,orning
 
@webarto no. avoiding the env variable altogether :D
 
@NikiC Smart :D
Oh man, I need to write automated web tests, Selenium and s*. Any advices, examples?
 
4:19 PM
@NikiC question about stream wrappers internals - I find it slightly annoying that stream_wrapper_register takes a class name not an object, it stops me being able to have a "nice" factory class - is there a big technical limitation that would prevent supplying an instantiated object?
I might have to use static variables :(
 
@Leigh No idea
 
or worse, eval() to define new classes at runtime
@NikiC OK, thanks anyway
 
@Leigh Codeigniter does that, so it's legit :P
 
riiiiight
to get a hold of the wrap instance, you would have to use some form of global state
though, i am not sure that you would really need it
 
Well, I'll explain the problem then, virtual file system stream wrapper, can have multiple back-ends, and can (theoretically) have multiple instances registered at the same time. (vfs1:// vfs2:// etc..)
but to register the stream wrapper, you have to specify the class NAME
 
Anonymous
4:27 PM
yay! I just realized I can write PDO's statement without doing copy/paste.
I am so proud of myself.
 
it seems that you are not really supposed to be interacting with stream wrappers (not that i have any experience with it)
you just register them to replace/add-to existing structure , and then stand way back in case if something blows up
 
hmm, maybe if there is a way to determine the alias being used from within the class (so I can determine if vfs1 or vfs2 invoked the call), I could support multiple configurations in the single class
 
@PHPNooB LOL
 
user1125394
@webarto hi man, what is it again to css a tag with its href a[href=foo] {} ?
 
@cab w3.org/TR/css3-selectors/#selectors You probably want *=
 
user1125394
4:40 PM
thx, it's powerful
 
Anonymous
I guess the concept of being new at something is new to some people hehe..
 
@PHPNooB Proud of yourself sounds wrong.
 
Anonymous
If you were in my place, having had grown up where I did, how I did.. even if you knew how write in HTML you would be running down the street naked like a archimedes.. Probably sayin... HTML,HTML
 
Anonymous
although, i was jocking about being proud
 
@PHPNooB Growing up in Switzerland/France is bad?
 
@Leigh that would probably be my approach as well; let the class decide based on the url scheme itself.
 
@Jack I don't think I can determine the scheme being used
 
=O
just override stream_open() no?
 
Anonymous
I set a foot in swiss/europe 10 months ago, for the first time. I spent my life in East Africa
 
@PeeHaa m'orning
@Leigh wut? Why not?
 
@DaveRandom I haven't actually played with it yet, but if as @Jack suggests, the stream_open function includes the scheme in the filename, then obviously I would be able to.
 
@Leigh I have done it before and yes, you get passed the whole URL in stream_open() so parse_url() will easily tell you what you want to know. However you do also have to pass the scheme to stream_wrapper_register(), so you don't have to use the same class for all of them anyway (although obviously if you have a lot of similar impls you can just have a few thin extensions of a base class)
 
0
Q: GET method in fetching values and display data according to categories

Eunice DelfinI'm working on an online menu ordering system and I wanted to filter the data according to its category. I've tried to make it work with this code but it's only displaying one category. **<li><?php echo "<a href='clubmarumenu.php?choice=".$category."'>"?> Scotch/Bourbon</a&g...

You would think that such an easy feature couldn't possibly require such dense code.
 
@DaveRandom Still going to require some tightly coupled classes. Example db1:// and db2:// would both use the DBStreamWrapper class, but there's no way for it to know the configurations of both connections ahead of time, without storing them in a static, or an external object that cannot be injected in.
 
5:20 PM
@Leigh Yeah, I never liked that part about the stream wrappers ... it literally forces global state.
Like, the idea of the var:// scheme ... nice idea ... horrible implementation details.
 
@Leigh I have found that it's very, very difficult to avoid stuff like that. The best thing I have come up with is "injecting" any factories you want to use into a static member of the class you registered, when you register it. So you can do self::$fooFactory->create(); as required. But you can't do "proper" DI, no.
 
hm, if a stream wrapper is not specified, is file:// implicit for fopen etc?
 
Yes
(effectively)
 
so unregistering file:// ...
 
@Leigh No, but you could overload fopen() with a namespace
 
5:23 PM
occasionally I have the need to debug file operations in a big project, and finding the exact location of the writes is not trivial, replacing file:// could be my answer
 
Although not exactly, a file:// url has to be absolute in order to be a technically valid URL (I think). Whereas fopen() accepts relative paths as well.
 
user895378
//network/file/paths/are/also/valid/urls
 
user895378
And should be resolved according to the rules of RFC 3986.
 
You and your RFC 3986. Why don't you just go an marry it if you like it so much?
:-P
 
user895378
We're going to get married and have little URI babies.
 
user895378
5:27 PM
Or as I like to call them, "fragments."
 
loool
 
That class is great btw, no using it (yet) in the project I was writing the other day, but I may pull it in at some point and I'm sure I'll use it in future
 
user895378
Whatevs. It still needs some work, I think, but the resolving works very well as it is.
 
user652649
evening php folks of the world
 
user652649
is @bushdiver the coolest nick ever? LOL
 
@PeeHaa that qn is really weird ... all four comments are questions :)
 
user895378
Regarding URI's and file://, I assume that when fopen accepts a relative path, all it's doing is resolving that path against a base URI (the current working directory). If the URI is already absolute no further work is necessary. So it should still be the same process ... I'm just guessing here, but if the file:// wrapper accepts relative paths that's probably what's happening and if you unregistered it you might be forced to ensure your paths were absolute before passing them along.
 
user895378
(but I can't be bothered to look and see -- that's just an educated a blind guess)
 
:) maybe one day i'll test it, and then i'll let you know
 
@Jack Yep should be closed as "wtf is it you want / are trying to do?"
 
5:46 PM
@Leigh I just did. When you override file:// you don't get passed the scheme, PHP just passes you the path - and it does work without the file:// prefix (which surprises me a great deal, I'm sure I've tried it before and it didn't work, maybe a recent change). Here's the code I tested with, very slightly modified version of the example impl from the manual.
 
I would have added "Using jQuery" at the bottom of that question :)
 
@rdlowrey The file:// wrapper doesn't accept relative paths, and rightly so, because then it wouldn't be a valid URL
 
@DaveRandom I think he's saying ... or rather guessing ... that fopen() implicitly converts relative file names to a proper file:// using the value of getcwd().
 
user895378
@DaveRandom What @Jack said ^ ... it totally makes sense that file:// would require an absolute path, though.
 
user895378
super-ping * 2
 
5:50 PM
Well in that case, yes it does. Because if you overload the file:// wrapper with your own class it get's invoked when you use the wrapper explicitly, or use a relative path
(which I was totally not expecting, like I say I'm sure I've tested that before and got a conflicting result)
Probably E_PEBKAC
 
user895378
Interesting ...
 
Not as interesting as the fact that I just wrote my own file_put_contents function in that code. Why the f*ck did I do that?
 
user895378
hehe
 
> managed CMS-scale XML grid session descriptor-oriented interface
bullshit.aiju.de is brilliant
3
> content-addressed general-purpose-scale self-signing interface-oriented API
 
CMS-scale .... o_0
 
5:54 PM
general-purpose-scale
 
weighing-scale
 
user895378
That's AWESOME.
 
It gives you "realtime-scale" things quite a lot as well
 
@DaveRandom to me it sounds as "blah blah blah"
oh ... it's generated ... i should have suspected
 
> ISO-certified cache ORM over TOR service-based information-based general-purpose layer
lol @ ORM over TOR service
 
user895378
5:56 PM
I can't have no government snooping my ORM database backend!
 
user1125394
jquery is criticized, but makes life easy.. $(evt.target).parents().is('.popup')
 
I want to go out and get very drunk. Unfortunately I have left my phone at work, so I am unable to contact people to go out and get drunk with. :'(
 
@cab did you mean to write that somewhere else ?
 
user1125394
I know you like jQuery here
 
@cab how about you learn javacript instead
 
6:00 PM
In general I would rather cut off my own arm and beat myself to death with it. Depressingly though, I do use it for rapid dev
 
I love jQuery so much, I wrote an operating system with it.
 
user1125394
@tereško the js equivalent will be how more long? 3x 4x
 
Also I've yet to implement my own promises and jQ's do seem to work very well
 
@cab it also would be at least 50x faster
 
@cab $shorter != $better
 
user1125394
6:02 PM
ohh that's why my computer is heating so much
 
@tereško 50x is a tad exaggerated ... it's faster, maybe 5x ... not 50x
 
@cab , also , if you knew javascript , you would know that this sort of construction is completely pointless , since javascript events "bubble up" through the dom tree.
 
user1125394
if (!$(evt.target).parents().is('.popup')){
	$(prev).hide();
}
 
dude .. seriously .. stop it
 
user1125394
even if it bubbles up, i have no choice
 
user1125394
6:04 PM
@Jack that's for @tereško
 
@cab no, that's for you ... go whine in #javascript
 
and go learn the damned javascript , instead of writing the terrible crap
 
user1125394
hmm well teresko is right, could look for evt ancestors, with a while loop, and all the hard stuff I wanted to avoid
 
@Jack comment ? you want to close comment ? :P
 
6:07 PM
ROFL
 
hell , even if you use jquery , if you do not understand what it is based on , all you write is extremely usless crap that is tied to the DOM
 
I just noticed that the Accessors RFC got 10 more votes for it AFTER voting was essentially finished.
 
@NullPointer bullocks ... did i paste the wrong url lol
 
user1125394
I don't really care if it"s crap, as long as it works not too bad on client
 
@Jack yo..:P
 
6:08 PM
What's funny is that it STILL doesn't make 2/3 vote.
 
Ahh yes, "F*ck it, that'll do"-oriented programming.
 
@cab you are part of the reason why internet is filled with shitty code, congratulations
 
@cab congratulations from me too ..:P :P
 
user1125394
ok back to jquery oriented programming
 
user652649
@NullPointer hey.. how can I set netbeans to use tabs instead of spaces for indentation?
 
sorry check tool ... option... editor
 
@PeeHaa Someone's cruising for a bruising ^^
 
6:24 PM
:(
:D
 
> I request all knowledgable LEETS , ELITES of PHP to help me in this.
 
user652649
@NullPointer thanks... also theres a red vertical line in the editor... how can i remove it? and what does it mean?
 
@wes sorry no idea .. about that line
 
HeYYYY all, someone welcome me -_-
 
wait ... it gets better
> This is Deep request to all moderators and staff to not close this thread saying duplicate or useless or FAQ, I am Damn Serious and i want to learn it tonight, It has been too much pain in my ass and i can't find right solution till now.
-2
Q: How to Code in PHP for SEO and non SEO Url > Giving Choice to User

UndefI am writting Code in PHP, and i want to give my user options to use SEO url or not to use SEO URL in admin panel. he will be given .htaccess code to save in his current .htaccess page. Now, by default there is no SEO URL. Therefore I am coding in my php code like below > <a href="<?php...

 
6:26 PM
WOW, what a harsh receive. — Your Common Sense 34 secs ago
 
user652649
@NullPointer do you also have that red line? :P
 
The col has been switch by some alien
 
@wes yup
 
@Jack 12-year-olds should not be using SO
 
6:30 PM
PG-13? :)
 
0
Q: MYSQL Tag column redundancy

bushdiverI have a tag table like this: TAG ID | TAG_NAME | IMAGE_ID ex: 1 | FUNNY | 10 <br /> 1 | FUNNY | 11 and I also keep a reference to all the tags associated to an image in the image table IMAGE_ID | IMAGE_NAME | IMAGE_TAGS ( varchar(255) utf8_general_ci ) ex: 10 | dog.jpg | fun...

 
user652649
 
@wes thank you
 
Hey! @NikiC @ircmaxell @PeeHaa @MadaraUchiha Who unpinned my plea for money? :)
 
@LeviMorrison Huh? I would never remove a plea for moneyz for you. :( As a matter of fact I haven't even seen it
 
6:36 PM
@NullPointer I think I seen you in some other room too Lol
 
@TimeToShine yes man ... but this is my real destination
 
maybe in c# or javascript
 
@PeeHaa It was posted while we had two moderaters in here, just after I moved their off-topic conversation to the bin :)
 
hehe
 
user652649
6:39 PM
@NullPointer stackoverflow.com/questions/1802616#answer-9126737 read my question in the comment
 
@wes yo
 
user652649
do you have idea how to indent a rectangular selection? :P
 
@wes well man i never need to do that .... so no idea but when i will get idea ill defiantly let you know .. or if you get before me than please let me know
 
user652649
ok sure i will
 
how is indenting a rectangular selection even defined?
 
user652649
6:52 PM
what do you mean jack?
 
user652649
if there is a way to name "that practice"?
 
If you have a rectangular selection in a text, what would you expect to see if you indented it? To me, it doesn't make any sense.
 
user652649
 
user652649
@NullPointer im already missing eclipse :P
 
@wes Well, that should really be a single array declaration :)
Besides, who will ever look inside that file once you've written it? :)
 
user652649
7:03 PM
i vertical align for improve readability, not for coolness
 
Hello, anyone have experience with Netbeans or Git?
(trying to commit PHP file)
 
here is an advice , don't use GUI for git
maybe except for for dealing with conflicts
it is much easier to user the CLI tools
 
Maybe at first, but I think GUI would be quicker after.
I hardly know git, and I'm getting started
I commit a php file, and it worked, but I don't know the remote URL to the file?
Where did it get committed to?
 
so, instead of learning how to use git, you decided to find some magical GUI tool
 
If it works, it works.
:)
 
7:15 PM
why do i even try to care about people like this ...
 
It just makes sense if Netbeans is my IDE for developing.
I'd probably have the same issue CLI
Anyone know where the file is committed to?
 
Ahoy
 
7:45 PM
@Hope4You In git, there is no URL to a file and commit doesn't mean anything is remote. Please you make sure you know a little about git before trying to use it. Even though you may think so, a GUI is no alternative to knowing what you're doing
 
that was a lot more diplomatic then i would be able to
 
@tereško Well, we're different people after all. If we were all the same, the world would be a much more boring place
 
Thanks @Jasper
I do know about git
I was able to connect to remote repo
I committed and pushed to openshift
But the default page did not change
I used all the credentials openshift gave
Any ideas @Jasper ?
 
8:02 PM
"the default page" has no meaning with git
so I think you're ascribing a problem to git that has nothing to do with it
 
Openshift should change the default page when i push index.php?
 
I have no idea how openshift works
 
As it says on the default page:
Place your application here

In order to commit to your new project, go to your projects git repo (created with the rhc app create command). Make your changes, then run:

git commit -a -m 'Some commit message'
git push

Then reload this page.
The page didn't change though after the push
 
then the issue is with openshift and you should go to openshift for help (either that or something you're telling us isn't quite as you say it, but we can't help you here in that case either)
 
Thanks so much. I posted it in the openshift forum... and I'll still try to solve :)
I think I'm getting closer each minute
Through research
 
8:35 PM
anyone here?
no one?
 
no one..
 
Guys anyone here?
Okey.
 
8:59 PM
Nope, not a living soul.
 
hello everyone
 

« first day (833 days earlier)      last day (4130 days later) »