« first day (863 days earlier)      last day (4099 days later) » 

6:00 PM
:')
I don't seem to get it
 
Select all, then CTRL+K
 
please understand this is the first time I ever use chat on stackoverflow
ok lets try it again
				post : function () {
					var message;
					if (!$('.message').length) {
						$('#feestje').after('<div class="message" style="display:none; padding:10px; text-align:center" />');
					}
					if ($('input[type=file]').val().length) {
						$('.message')
							.html('Uploading file&hellip;')
							.css({
								color : '#006100',
								background : '#c6efce',
								border : '2px solid #006100'
							})
							.slideDown();
					} else {
						$('.message')
							.html('Please select an image for uploading.')
I allready checked, the .message is not on the initial html of the example page. Somehow it is created. #feestje does exist but somehow it's not using it or not firing the code.
 
hi .. can anyone please point me in right direction on how this website is developed jiouhe.com
 
(#feestje is a div in my own project)
 
What's the value of $('input[type=file]').val()
 
6:06 PM
^Would like to know your thoughts on pytrin's comment
 
2 messages moved to Trash can
 
@jcolebrand hold on I'll check
@jcolebrand the code I just pasted never really runs..
 
Post has to run
 
@jcolebrand so your 'solution' is to just replace margins with negative padding?
 
what could be the problem if POST never runs?
 
6:10 PM
I'm afraid i'm unsure what you meant as your advice
 
Before status = options.post.apply(this); add this line console.log(options.post.toString());
@rlemon no, I meant, make the wrapper have 0 margin and positive padding
 
@jcolebrand can anyone please point me in right direction on how this website is developed jiouhe.com
 
Then when you collapse the wrapped object you'll have no external margins
@ManojKumar it would appear to use some sort of web technology
 
ok I'll do that hold on
 
.alert /* are you saying apply a padding here? */
  checkbox
  label
  .inner /* or here */
    p
      "text"
 
6:13 PM
@rlemon move your margins to paddings
invert the box
That probably means adding a new element
 
@jcolebrand hmm..does it use any jquery plugin , how did they get that scroll effect
 
m[pm[pm[ptextp]mp]mp]m <-- margins and paddings
 
@jcolebrand nothing starting here will fire ever
element.submit(function () {
 
@jcolebrand yea it would require a new element as a wrapper
but then I wouldn't be able to use the ~ selector anymore
 
@rlemon that's what I was thinking
 
6:16 PM
<div class="alert error">
	<input type="checkbox" id="alert1"/>
	<label class="close" title="close" for="alert1">
	<i class="icon-remove"></i>
	</label>
	<p class="inner">
		<strong>Warning!</strong> The alerts are too damn awesome!
	</p>
</div>
 
I'm getting depressed. I've been trying to figure out how this works for two hours now.. how hard can it be :/
 
is my HTML
f u indenting
 
I think you just have to deal with the 2px for the sake of letting the browserchrome handle the state transitions
@rlemon spaces vs tabs gets 'em everytime.
 
ps this is why I wanted one on one chat
 
it's transitioning between jsfiddle and codepen.io
one converts tabs, the other does not
 
6:18 PM
@C-TZ pffft. Others are learning from the interaction. Don't be so selfish.
 
@jcolebrand if I remove the margin on the inner container it is fine. :P but then I cannot stack alerts
 
@rlemon I know
 
@jcolebrand realistically we're learning not to do what C-TZ does.
 
what?
 
@C-TZ he's teasing
 
6:19 PM
Hello guys :)
 
ok I don't understand him so np.
pls lets get back to the script
somehow it's not firing post
I don't understand why
if (containsFile) {
$("form#"+id).iframePostForm ({
it should fire this right?
 
well, that line should configure things, I would think.
 
$("form ... should run, else the iframe wouldn't be loaded at body
 
@jcolebrand last question if you're feeling helpful (then i'm ready to give up on this :P) codepen.io/rlemon/pen/vmIlC as you remove alerts why the heck is the page height expanding.
 
Your form should still have a <submit> button, etc.
 
6:21 PM
I think I understand the problem. Lets try.
 
I didn't even notice the scroll bars at first.
 
I've such a question about base64 decode function with JavaScript. I'm aware of that when encoding string with base64 encode (with window.btoa) there is possibility of communication problems. I wonder if there may occur problem during decoding information which is encoded in base64 , but not with Javascript . Please advice , thanks :)
 
@rlemon set the opacity to 0.2 instead of 0 see what happens :)
It's making the alerts fit on the left side, and they just pile up under each other
 
@rlemon the blue one mostly
 
6:24 PM
since I learned lisp, I feel like all the other languages I could learn (rebol, rust, go, etc) are worthless
 
!!/urban lisp
 
@JanDvorak lisp Well it'th a thpeech impediment you have when you're unable to pronounth your etheth correctly, like I'm doing right now. People like thith are uthually labeled thtupid or retarded thimply becauthe of the way they thpeak.
 
    90%,100% {
    opacity: 0.5;
    font-size:0.2px
  }
@rlemon ^ This is a dirty hack :P
 
No one will give me an advice ?
 
@DaHaKa I don't even understand the question
 
6:27 PM
@DaHaKa there is no problem
 
@jcolebrand brilliant. I was confused, configuring is something else then running the code. Ages back I wrote my own submithandler since I'm using $.ajax and do other stuff, so I don't have submit buttons... The form was never really posted
:') I feel so sad right now lol. I retried the console line you suggested
 
@C-TZ well I figured you had at least gotten that far along
 
@BenjaminGruenbaum I don't see a difference.
 
it displays the post funtion in firebug
function*
whoops
 
but yea, last concern is why the page scrollheight is changing
 
I can live with a 2px gap on stacked alerts if a middle alert is dismissed
it's such an edge case
ha!
@BenjaminGruenbaum I see what you were showing me now
I thought you were trying to fix the gap issue my bad
cheers ! :)
 
@DaHaKa base64 is standardised and language-agnostic. There should be no problems.
 
@jcolebrand are you interessted in further investigating the script with me?
 
if some endpoint uses a variant of base64, it should declare it as such. If not, you don't need any conversion per se.
 
@C-TZ that's a loaded question. I could care less about iframe form uploading, but I'm willing to answer specific questions
 
6:31 PM
hahahaha :D thats ok
lets see
 
fwiw I didn't even notice the 2px gap :P
 
!!/urban loaded question
 
@JanDvorak loaded question A loaded question is a question with a false or questionable presupposition, and it is "loaded" with that presumption.
 
@BenjaminGruenbaum @JanDvorak thanks for advice :)
 
@DaHaKa take note, base64 encodes byes though. Strings might be encoded/decoded differently based on localization. Assuming both your endpoints are in JS that will never be an issue, otherwise that will almost never be an issue
 
6:33 PM
@jcolebrand did you mean "subjective question"?
 
I answer everything like it's subjective ;-)
 
codepen.io/rlemon/pen/vmIlC Here it is, finally in all of it's glory! Thanks @jcolebrand and @BenjaminGruenbaum for the debugging help!
2
 
@rlemon looks nice man
nice job
 
@rlemon That's pretty swet
 
:)
 
6:34 PM
Did I even offer any useful feedback?
 
yes you did
 
@DaHaKa concerning string encoding, if you use UTF-8 consistently, there should not be a problem.
 
you forced me to notice a few things ;)
 
oh that reminds me
 
6:35 PM
and I learned about the stupid funkieness of margins and collapsing elements.
 
@simonsarris I finished my first emulator because of you
 
collapsing margins are great
 
I am only going to decode with (window.atob) data which is encoded in base64 in database , but with some articles where was mentioned cross browser issues become confused
Now I guess understand
 
@Loktar ROMS man.
MUST have ROMS for the demo
let me get my Pong on
 
there are, just dont have the drop down done
it has a nasty bug somehwere
.. so a few of the roms go nuts lol
 
6:38 PM
@DaHaKa Forgive me if I missed the reason, but why do you even want to decode base64 in the browser?
 
@jcolebrand ok I've got a new question.. it's a general one though but it has to do with the code we just discussed. I'd like to know how I can check if a specific configuration allready exists. So we configured for newProduct, how can I check if this allready exists?
 
IM working on a atari 2600 game now :P
going to get it written to a cartridge from atariage.com if I ever finish it
 
@Loktar how hard are the emus to write?
 
Do you mean 'how can I know if I've already attached a jQuery plugin to a specific dom element'?
 
It wasn't hard at all actually, main thing is just reading the opcodes and doing a bunch of switch statements
 
6:39 PM
tedious then
 
but.. I've looked into doing one for the atari
 
@jcolebrand: I think thats what I'm asking
 
and it seems way more complex
@rlemon yeah tedious more than anything, for the chip-8 that is
 
I have seen GBA emus in JS
 
@FlorianMargaine @copy wrote x86 ones
 
6:40 PM
I wanna write my own - get it all hooked up for touch events
BAM instant android classic
 
@rlemon yeah nes and gb emu don't seem as hard compared to the atari ones
the atari was just a weird ass beast
 
I just wanna play GBA games in my browser on my phone / tablet / pi / and desktop
 
Sorry for the confusion... I'm used to OOB so I'm not really into the jquery kind of thinking ^___^ hehehe
 
p*
 
6:41 PM
Object Oriented Brogramming ;)
 
@RoelvanUden I've back end where from with JavaScript retrieving data , so I have to manipulate with some information without server side scripting language
 
lol
 
In my mind I would just hurl through iframePostForm and check if the id is there.
 
@RoelvanUden best advice for canvas game dev is looking at all the examples out there :P
 
@C-TZ generally the plugin would annotate the target element in some way.
 
6:42 PM
@DaHaKa If you have a back-end, you have your programmable back-end right there. :P
 
In this case you can check for a target on the content
 
it's hard to stay focused on work when you are in pain
 
Alternately you can use the jQuery data annotations and make your own data annotation on the element.
 
:/
 
@Loktar Aw, it is what I am doing, but it is so tedious.
 
6:43 PM
new technologies are plagued with missing and/or bad advice. Canvas is no exception
 
"canvas" itself isn't hard at all, you might want to look more into game dev in particular
 
something like this?
if ($("form#"+id).iframePostForm.iframeID) {
 
If you can deal with the terrible format somethinghitme.com/2013/01/09/…
Thats part one of a series I need to finish up
 
more like if($('form#'+id).attr('target')) provided you don't manually put a target in there.
What you suggested will always return true because the iframePostForm is a global jQuery plugin
 
yeah target will work, it's set by the plugin. Lets hope I remember this when I ever add another feature that somehow uses/manipulates the target of a form
is there another more detailed way of checking?
 
6:47 PM
My suggestion is to get in the habit of using something with data annotations and setting your own data on the object
It means a two part setup/usage, but at the end of the day I believe it to be worth it.
$('form#'+id).iframe.....
$('form#'+id).data('myDataKey',{ iframePostForm: true });
...
if( $('form#'+id).data('myDataKey').iframePostForm ) ...
 
what exactly do you mean by data annotations? adding your own attributes?
oh I see
yeah that's smart
 
well my bro took sports medicine in school - he's saying I best get my knee looked at.
so looks like i'm heading to the clinic :(
fucking forever and a day you'll wait there
 
:/
Feel better
 
@C-TZ I hear that often enough
 
@jcolebrand He is
 
6:53 PM
@JanDvorak actually...
Base64 is a group of similar encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The Base64 term originates from a specific MIME content transfer encoding. Base64 encoding schemes are commonly used when there is a need to encode binary data that need to be stored and transferred over media that are designed to deal with textual data. This is to ensure that the data remain intact without modification during transport. Base64 is commonly used in a number of applications including email via MIME, and storing complex data i...
@Loktar yeah it's just tedious more than hard in itself
congratz for making one though :P
 
@FlorianMargaine yeah while looking at the atari specs though..
 
I learned a lot about assembly when doing it
 
it does some crazy stuff
like with television scan lines ect.
 
hmm
 
@FlorianMargaine ty, yeah thats what Im working on now
 
m59
6:55 PM
Is it feasible to be a very good programmer without schooling for it?
 
new problem, now it's just posting the form defeating the purpose of semi-ajax
:/
 
working on writing my own atari 2600 game :)
 
in assembly?
 
@m59 well.. idk I consider myself moderately good
and I haven't had any formal training
@FlorianMargaine yeah
 
m59
Tell me how?
 
6:56 PM
@m59 depends on "very good"
but anyway, you have all the resources available to be, yes
 
lots of practice, and loving it. Its my passion so I'm always programming :P
A teacher standing in front of a class wouldn't change that
 
@jcolebrand how is it possible that on the example page the script neatly uses ajax and my page just bluntly posts itself?
 
no, but a teacher can teach you the basics which you wouldn't know where to start without that
 
because I have no idea what your page is doing.
 
m59
Practice is getting me nowhere (it's commonplace for me to spend 50+ hours on one detail) and no matter how much I search, I can't find resources to explain these details.
 
6:58 PM
you can have all those "aha!" moments with a teacher quite quickly that it'd take way longer without
 
With a good teacher, yes. :)
 
thnx for the help
I'm gonna kill myself.
 
Have fun with that.
 
@RoelvanUden yeah excellent point
I did have some schooling for web dev, after I had already been doing it for a few years
my instructor knew very little
 
m59
I've probably easily wasted 500 hours of my life (I mean - ZERO progress).
I can't even find people to pay to help me lol.
 
6:59 PM
@m59 those hours are not wasted
 
m59
You underestimate what I mean.
 

« first day (863 days earlier)      last day (4099 days later) »