« first day (325 days earlier)      last day (3463 days later) » 

7:20 PM
So before I attempt to do it myself. Vanilla JavaScript lightbox anyone?
 
user652649
i have something but it would help you much... honestly it's a total mess xD i didn't even finish it
 
user652649
also i have made it for msie7&8 too... so it includes tons of shit just for fixing those
 
user652649
but i can help you defining the api
 
Create / open / close?
 
user652649
mine is much more complex than that
 
7:29 PM
I think at the moment I just need to open an iframe in a popup on the page
I think. I dunno :(
 
user652649
why iframe?
 
is there a way to emulate the actions of data-role=page from jquery-mobile in twitter bootstrap?
 
@Wes I have an index page and want to load in the permalink page
 
In the specifications for the css content property, (developer.mozilla.org/en-US/docs/Web/CSS/content) It says that the css content tag applies to pseudo-elements only, which is only partially true. I'm running Chrome and when I apply a content: url("imagesource.jpg") to a div, it displays properly, is this a bug or is there something I'm not seeing?
 
user652649
@mikedidthis uh?
 
user652649
7:36 PM
@Vap0r mdn isn't always updated
 
@Wes index page = snippets of articles, permalink page = full article.
 
user652649
and why would you do that? why not just changing page? :o
 
Think pinterest.
 
user652649
KILL IT, etc.
 
The snippets are super small so the user may want to quick view the snippet before going onto the full view
 
user652649
7:39 PM
i would use xhr instead of iframe anyway
 
user652649
less issues with mobile browsers
 
@Wes I thought that at first, but then I would have to write more css.
Oh I dunno
I think tonight, I will just try and get a white box in the middle of the screen on all devices :D
 
user652649
i have made something... had very strange issues
 
kk, so ajax the content.
Got it :D
 
@Wes Alright, is css content property supposed to be able to be used on other elements or is this buggy behavior?
 
user652649
7:43 PM
in short if the iframe took 100% of the viewport (both vertically and hlly) the scroll didn't work as expected... like scrolling the iframe used to scroll also the host page
 
user652649
that and of course on older mobile browser the iframe scrolling doesn't work at all
 
@Vap0r iirc, its down to the browser vendor. Chrome has it, ff doesn't (I think).
 
user652649
think about it, they still sell new devices with android 2 on it
 
user652649
like kindle
 
Yep, that is understandable, thanks :D
 
user652649
7:45 PM
!!google link rel prerender, rel next
 
user652649
^ @mikedidthis this can be an alternative to iframe
 
@Wes I don't think I want to prerender all the posts.
 
user652649
8:07 PM
depends how many post you have on the page of course
 
posted on March 21, 2014 by kbironneau

/* by abel */

 
user652649
if it's all the post i'd say you would not xD
 
15 per page with the option to add more on demand.
Its a not :D
I found a few lightbox / modals that give me a good hint how to do it, so I think I should be ok
 
user652649
if i was a user navigating that, i would kill you probably @mikedidthis xD
 
user652649
i vote for the classic page change
 
8:11 PM
@Wes you ever been on a shopping page and seen a quick view feature?
Its that.
 
user652649
yeah but that's very annoying on mobile
 
I have videos / audio posts, but I don't display either, just a thumb.
So if the user wants to see the video, they can quick view, or view the full post
Also I will more than likely disable it for mobiles.
 
user652649
on mobile it's better if that preview is physically in the flow of the contents, not in a popup
 
The issue is embedding 15 videos kills the page :D
 
user652649
preview?
 
user652649
8:13 PM
<img onclick="var videoElement...; this.replace(videoElement)">
 
would be nice, but I have an overlay with details on it :D
I could do what you suggest though
I honestly don't know.
Also all the previews are square :D
As you can see, I clearly thought about this layout.
 
user652649
@mikedidthis in random we trust
 
true dat.
 
user652649
8:31 PM
time for massive refactoring here
 
I just did that today. I was so close to finishing but coffeescript pissed me off
 
user652649
i have to drop something like 10 classes
 
user652649
actually 10 models
 
I dropped all the classes.
 
user652649
8:32 PM
that means data classes, domain classes, mappers
 
user652649
:(
 
user652649
@mikedidthis will i ever convince you to take a look at php? xD
 
@Wes I looked at it before, seems alright.
I used to do a lot of frontend for a php dev.
 
user652649
i thought you hated it xD
 
Not at all :D
 
user652649
8:35 PM
lol
 
user652649
i'm thinking it would be easier to start over again
 
user652649
especially with mappers
 
user652649
instead of refactoring them
 
user652649
deary me what did i do
 
user652649
8:36 PM
it's a year that i'm working on this
 
user652649
:(
 
user652649
the only thing i actually hate in my job
 
user652649
is that you don't often have the gratification of finishing projects
 
user652649
because they are big projects
 
user652649
it's not like ok i'm building a house, today i have made a full wall. i'm happy
 
8:39 PM
I have the same feeling
 
user652649
:(
 
One day man, one day.
It will all make sense.
 
user652649
:P
 
user652649
hope so
 
I think so. If anything I am just super happy with kinda understanding javascript.
 
8:45 PM
I think work is never going to truly be satisfactory. It is work
Hobby projects are for the satisfaction
 
I just hate not knowing what my code does.
But yes hobbies should be for the good feels.
 
user652649
i couldn't do any work that isn't satisfactory for me, @SomeGuy
 
user652649
even if i don't often finish projects, when i do, i'm the happiest man in the world xD
 
But you played Southpark, you have all the reasons to be happy :D
 
user652649
actually i was quite disappointed when i finished it... too short :(
 
8:49 PM
Heh, premature ejaculator spotted.
2
 
user652649
just like far cry dragon blood :'(
 
Replay value?
 
user652649
nearly zero
 
Damn.
 
user652649
you know that not only i'm planning to quit my job but also i'm thinking to move to another city? for some reason i bought house here (i'm still paying for it) but i may have changed my mind... thought it was the right place for me, turned out it probably isn't. i'm living in a constant insecurity lately xD
 
8:51 PM
@Wes come to England yo! Or ship me over there.
 
Some people just like moving a lot
 
Good pint, I really enjoy a move.
 
I really enjoy a good pint
 
user652649
aha
 
user652649
goes to the fridge
 
8:53 PM
@SomeGuy I am doing to presume you drink.
I have never asked, but I have seen you mention it a few times.
 
I do. But less often than you'd assume a teenager would drink
 
Yeah I can't imagine you getting wrecked, you seem to sensible for that.
 
I have a few times. Not much changes
I just get a lot slower
 
haha
 
Getting drunk doesn't seem very appealing to me
A drink every now and then does, though
 
user652649
8:56 PM
@SomeGuy what did you say? xD
 
Fixed :p
 
Drunk is fine. Hammered I ain't got time for.
 
user652649
what's not appealing is what it comes after it
 
The advantages of being young: no hangovers
First time I went drinking, we all got hammered
No hangover whatsoever
 
user1585455
hey guys, got redirected to chat via this post stackoverflow.com/q/1732348/1585455 thoughts?
 
user652649
9:00 PM
you may have just barely get drunk xD
 
Yeah, I think you can tell when you're actually drunk
Rule 1 of being drunk: If you admit you're drunk; you're very drunk
 
@SomeGuy no you can't. That's the point.
 
user652649
ahah
 
"IM NOT D.. DRUNK" followed by a fall or something.
 
Hahaha, I can tell
I feel funny when I walk
Or even move
 
9:02 PM
I slur and I am nice to people.
 
@DonovanGlover Agree with the answer
Regex and parsing markup don't go well together
 
user1585455
haha
 
@mikedidthis And people like monners use big words and rant about things :D
 
user652649
walking when drunk is called slithering
 
Hahaha
 
9:04 PM
@SomeGuy he is like the opposite of me
 
Yeah, no idea how he does it
I can't put together sentences that sound so fancy ever
 
Many many many years of practice
 
9:33 PM
@mikedidthis I read that in my head with Barney Gumble's voice
Made me Lol
 
Can anyone tell me exactly what happens when you hit the "submit" input button?
 
Be more specific
In a form? What happens in what aspect? Events? Redirection? Headers?
 
Some cogs go "whirr" and some stuff happens
 
OK, so if I have a user browse for a file then they hit the submit button, what happens to that file?
Form, yes.
 
9:36 PM
Hahahaha
 
@SomeGuy DOes it save them image file somewhere?
 
No
 
So, what happens?
 
It sends the image in chunks to the URL in the action attribute
I'm assuming it's in chunks, though
I'm not entirely sure myself
 
user652649
no chunks xD
 
9:38 PM
OK, so what I want to happen is for the user to be able to upload 2 image files. THere must be no more or no less than 2.
So I am trying to figure out how to get those files to save as blobs in an array so I can send them up to mySQL later.
 
user652649
!!google php handling file uploads
 
user652649
^ first link will tell you all about it
 
Are you supposed to save files in a database?
I assumed they should be saved as files on the server, considering wordpress' way of handling user uploads
 
THank you!
I am saving the files to the database along with the form input information
 
user652649
9:41 PM
14/06 18:00 (0.00) Manaus England - Italy @mikedidthis
 
@Wes ?
 
user652649
world cup
 
user652649
not a football fan?
 
I hadn't even thought that far ahead.
The premier league season is too much fun.
 
user652649
i love football but don't like clubs leagues... so i do think about world cup & european cup months before they start xD
 
9:49 PM
I prefer to watch other nations, rather than my own.
But the league it pretty close this year and Liverpool are doing really well.
 
user652649
@mikedidthis ahah, why?
 
@Wes Superstars who don't play well together.
 
user652649
yeah that is sad
 
What is a good MAX_FILE_SIZE for an image file?
 
user652649
don't use that, change settings in the php.ini instead
 
9:57 PM
@antman1p 7
 
user652649
file_uploads = On
upload_max_filesize = 10M
max_file_uploads = 5
post_max_size = 15M <-must be greater than upload_max_filesize
 
Where do I put that?
 
user652649
php.ini
 
OK, thanks.
I can't find the php.ini file.
Is it also good practice to create the hidden input with MAX_FILE_SIZE?
 
user652649
> Keep in mind: fooling this setting on the browser side is quite easy, so never rely on files with a greater size being blocked by this feature. It is merely a convenience feature for users on the client side of the application.
 
10:05 PM
Yeah, I was just wondering if it is good practice to do both.
 
user652649
imho it's not useful for anyone... just confusing
 
user652649
don't use it
 
OK. So, where do I find the .ini file?
 
user652649
in the php's dir
 
hmmmmm
 
user652649
10:09 PM
why don't you read a basic tutorial btw? i don't want to appear unpleasant, it would be easier for you
 
prework.flatironschool.com is great for starting out in web dev!
 
I've been reading a book and on all kinds of tutorials, I just don't know where to find it. I'm using the netbeans IDE
 
@antman1p Try Sublime Text or otherwise, Jetbrains IDE if you want :) Powerful stuff there!
 
Hey guys, I'm an issue with <textarea>. I have this <textarea rows="10" cols="50" name="about"></textarea>, and when I type the text isn't rendering. The words don't go to new line when they reach the end. They always split. I am using codeignter if it matters
 
@iamryandrake Thank you.
is the .ini file where I can place my uid and passwords for mysql so they are protected?
I found the file and am reading through it. I see default username and password are blank
mysqli.default_user=
It also says "doesn't apply in safemode
NM, says its a bad idea to store them here. LOL
 
10:23 PM
@Rocks example?
 
user652649
@antman1p safe mode doesn't exist anymore, ignore everythign it says about
 
ok
 
@mikedidthis If I type inside texarea the wor
ds
 
@Rocks live example?
 
I don't have one
@mikedidthis it's doing li
ke this when I rea
ch the end of the texta
rea
 
10:26 PM
isn't that what a text area is supposed to go?
 
I don't think so
I never had this problem before
@mikedidthis take a look at this
 
@Rocks word-wrap: break-word;
 
Sorry I am confusing from the visual from the actual content you will get
 
@Wes what section header should I put your code?
 
user652649
10:31 PM
php ini you mean?
 
Yes
 
user652649
you have to overwrite existing values
 
oh, ok. I don't even see those values
Yeah, they arent there.
THis is the php.ini file in XAMP
XAMPP
 
user652649
i have no idea about xampp
 
user652649
then add them outside any [ini section], like at the beginning of the .ini file
 
10:39 PM
OK, thanks!
 
user652649
we don't just post memes in this room!
 
user652649
only i do
 
lol
word
@wes you da man
Just so you know the design came out really good. I'm trying to figure out what I need to do server side with php and what I need to do client side with js though. This webapp security stuff has opened up a whole new can of worms for me.
 
We can be super helpful when we know the subject :D
 
user652649
11:23 PM
	function			getByID						($id, $languageID);
	function			getByIDAnyLang					($id, $preferredLanguageID);
	function			getAll						($languageID, $orderBy = self::ORDER_NAME);
	function			getAllAnyLang					($preferredLanguageID, $orderBy = self::ORDER_NAME);
 
user652649
i hate naming functions
 
I hate naming things.
 
user652649
said mike when his firstborn was born
 
That was easy. I picked a hot chick from Dexter.
 
user652649
haha seriously?
 
user652649
11:26 PM
which one? :P
 
user652649
i barely remember her
 
user652649
must be one of the early seasons
 
yeah Season 4 maybe?
 
user652649
i don't remember anything about series, brain is overflowing of programming
 
user652649
11:30 PM
sadly i don't have a big brain xD
 
user652649
debra rocks tho
 
Meh, she has a strange face.
She is kinda hot, but there is so much hotter.
 
user652649
also the name, don't know how the name sounds for you anglophones
 
its my mothers name.
deb-ra
 
user652649
ahah lol
 
user652649
11:34 PM
i was about to say "idk maybe debra sounds like a stripper's name"
 
user652649
i often do this kind of gaffes xD
 
user652649
but not this time xD
 
Ha, its ok, as it does!
debbie does dallas.
Need I say more.
 
user652649
ahah
 
user652649
 
user652649
11:37 PM
would bang
 
user652649
function			getByIDOfLang				($id, $languageID);
function			getByIDOfLangOrAnyLang			($id, $preferredLanguageID);
function			getAllOfLang				($languageID, $orderBy = self::ORDER_NAME);
function			getAllOfLangOrAnyLang			($preferredLanguageID, $orderBy = self::ORDER_NAME);
 
user652649
terrible
 
@Wes haha, she is alright, but she pulls strange faces.
 
user652649
btw, best Dexter moment ever (nsfw):
 
user652649
 
11:54 PM
Ha, I remember that.
 

« first day (325 days earlier)      last day (3463 days later) »