« first day (1285 days earlier)      last day (3646 days later) » 

10:06 AM
just discovered a php file with the next
<?php


echo 'test foreach';

?>

<!DOCTYPE
 ....
i was like "lolwut"
 
hi there am trying out less without any precompiling
in chrome and now realize that it doesnt work with local less.js
people have recommended to add switch google-chrome -allow-file-access-from-files
but I dont know how to add
any help
 
I don't see any valid reason not to precompile less files
 
its that it cannot access local JS files
here it is :
http://stackoverflow.com/questions/3084892/less-js-not-working-in-chrome/7350858#7350858
 
0
Q: Quick sort implementation in JavaScript in prototype style

Gelo VolroI have implemented quickly the quick sort algorithm in JavaScript using prototype based style. The code is rather little ( http://jsfiddle.net/b8mfY/ ): <script> "use strict"; var Sort = function( inputArray ) { this.arrayTest = undefined; this.init( inputArray ); }; Sort.prototype.in...

 
@Mahesha999 You mean you don't even use an http server ? Do install a http server, you can't develop without one
 
10:13 AM
Am just learning it in restricted environment, so cant install anything. So just want to get it working with browser
between it works with IE8
and the problem is that the less stylesheet url starts with file:///
which chrome does not accept
just want to know how to add that switch, in fact not aware where am supposed to add that switch google-chrome -allow-file-access-from-files
@dystroy any idea?
 
@Mahesha999 I already told you you must install an http server. It makes no more sense learning as you do than learning to use a bicycle with just a picture of a bicycle
 
Can anyone help me....???
I developed an installer type mini game using jquery+html.
Now I need login and register. Can anyone tell me, how to do this? bcz its an application, so anyone can install and play. So I can't install local database for all. So my need isI need to install all systems without any need of local database. How to do this???
 
@Illaya do you ask the same question every time your ban is lifted..?
 
Can we ban him again ?
 
ok but seems that even IIS has some problem
 
10:18 AM
@dystroy ok
 
17
A: LESS file does not load (404)

Diogo CardosoI solved the problem adding the MIME type in IIS.

:(
 
@Illaya code it. That's how you do it. If you do this again I will request a mod to suspend your chat priveleges
 
@dystroy I'll be owner soon. then I'll ban you.
3
 
anyways anyone know, just for my knowledge, where to add that switch?
 
We help people who show effort
 
10:19 AM
@Illaya good way to ask for aid
 
@RUJordan do what you can or shutup
 
Bye bye
 
please guys
stop this and see my effort :p
 
@Mahesha999 : which switch ?
 
!!mute 2452810 24h
 
10:20 AM
@RUJordan Muted user 2452810 for 24h
 
I have written html, included styles.less and less.js, and in html I get error as cant locate styles.less
 
@ThiefMaster can you do something about this guy? He's been muted like 3 times now for the same crap and now he's a feisty guy
 
@Mahesha999 I'll repeat again : for security reason your scripts can't read files accessed using file://. This means almost any JS development must be done using an HTTP server. Hopefully this is very simple to do and should be the first thing to install after your favourite text editor.
 
@KarelG
context: I have written html, included styles.less and less.js, and in html I get error as cant locate styles.less
reason: security feature of chrome to not to access local files
solution: switch google-chrome -allow-file-access-from-files
ref: http://stackoverflow.com/a/7350858/1317018
problem: I dont know where to apply that switch
I tried: adding a switch in chrome console window
yess but still cant I know how and where to add that switch?
 
10:24 AM
i wouldn't encourage it
but well, that video helps too
 
@KarelG It's clear that using that flag is losing time to learn the worst possible way to work. But we can't refuse this small token of knowledge...
 
ff has that too, but i don't recommend to edit, unless it's important
install a server. but it got mentioned i thinkk
yes, twice.
 
I think somebody mentioned it, yes
 
guys the problem is am using some org's machine
which doesnt allow me to do all this stuff
between my org's network also blocks that video
:'(
seems that I have to launch chrome thru cmd line
 
or .... add absolute path in the file but that's an awkward solution for me
// off lunch
 
10:40 AM
!!design my website or work on dastul or watch game of thrones
 
@t1wc work on dastul
 
k
 
user2509223
mornin
 
user2509223
this room is getting empty day by day
 
user2509223
any1 up to some opinion giving?
 
10:46 AM
@derylius Orange goes well with bright green. You're welcome.
 
user2509223
@Neil thanks
 
user2509223
exactly what i was looking for
 
I'll bet
 
user2509223
+1 +accept +kudos
 
user2509223
anyway maybe some1 will find this and tell me:
 
user2509223
10:50 AM
Request:
{
	"GET": {
		"tablename": [
			{
				"COLUMNS": [
					"columnname"
				],
				"WHERE":{
					"columnname": "value"
				},
				"ORDER":{
					"columnname": "ASC|DESC"
				}
			}
		]
	}
}
Response:
{
	"tablename": [
		{
			"columnname": "value"
		}
	]
}
Request:
{
	"SET": {
		"tablename": [
            {
				"COLUMNS": {
					"columnname": "value"
				},
				"WHERE":{
					"columnname": "value"
				}
			}
		]
	}
}
{
	"PUT": {
		"tablename": [
            {
                "columnname": "value"
 
What?
 
user2509223
an opinion
 
Oh OH..
 
user2509223
is that your opinion?
 
Well before I can formulate an opinion, I need you to explain to me what it is
No, I'm normally like to give opinions without being asked, but in this case, I'll withhold my opinion for more information first
 
10:53 AM
@Neil I guess it's python
or ruby
 
user2509223
I'm just starting to work on a js/php module that maps the database to a javascript object dynamically through async json
 
Why would you need to specify column names in a delete request?
 
user2509223
@Neil thats the where clause of the delete
 
Ah, I see
 
user2509223
im trying to avoid any redundacy
 
10:54 AM
If I were you, I'd make a point of putting such things in a "where" clause so it's clear
Not just for deletion but for any request
You can do as you did for selecting fields maybe
Or for deciding which fields an insert/update gets applied to
But I wouldn't mix and match, or it could be misinterpretted, imho
 
hmm that switch worked finally simply modified a windows shortcut to point to chrome.exe followed by that switch: **chrome.exe -allow-file-access-from-files**
Now chome browser instance started by double clicking that shortcut loads less correctly
 
user2509223
@Neil it will be clarified in the documentation, i just try to make this human readable, so one can intercept it to may use any site on its own purpose, but this will be mainly internal communication
 
What's the difference between set and put? insert and update?
 
user2509223
exactly
 
wait... I can flag my own messages?
 
10:58 AM
@derylius I think human readable is a very ambitious goal, however it is reasonable for a programmer to read
 
too much sense in this works
 
user2509223
@Neil hmmm, maybe you are right, maybe i was getting too counter intuitive here
 
@Neil sorry to still be here :P
 
@derylius : /waves
 
user2509223
im also affraid about API consistency in further extensions, and actually those few more tags could help ensure that
 
user2509223
11:00 AM
@Neil thanks
 
user2509223
@KarelG yes they are :) clever ;)
 
@derylius No problem. I don't think it's hard to read though, all the same
But when I criticize myself for such things, I try to be overly critical
 
i was just waving to say "hi"
 
user2509223
@Neil do you think theres anything missing from it?
 
@derylius If you're looking to simplify, I would make SET and PUT the same
 
user2509223
11:03 AM
i mean obviously ill have to handle the operators in the where clause, but apart from
 
If you want to be sure not to insert if there is one already existing, you should do a GET or maybe pass an additional parameter which will ensure not to create if it doesn't already exist
 
@sreenivasulug Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Also, maybe you'd want to include an additional error code
 
user2509223
@Neil simply by not passing the where clause its obvious that its a creation
 
Sometimes the message comes from an exception or something, and it's handy to pass along the error code in addition to the message (leave it to microsoft to give shitty error messages)
 
11:06 AM
@ankitkatiyar91 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
user2509223
@Neil im not willing to expose the backend to the interface that much, in case if its handly i might pass the code with the message for debuging
 
user2509223
anyway gotta go now, lunch time, ill be back, thanks
 
a nightmare D:
no documentation on a large controller file in PHP. No comments. No sherlock
Y did i got this job/project
 
@mleko Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@derylius Happy break coffee pause time lunch
 
11:17 AM
Anyone explain to me as to why it matters what an 'object' is in history.pushState
What it is defined as*
 
@RajRajput Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
hi can I see LESS compiled CSS in chrome?
 
0
Q: How to get the values in $_POST array from the fields which are appended to the HTML table using JQuery after form submission?

PHPLoverI've one HTML form. This form is containing HTML table. The actual HTML table is very large. For your reference I'm showing below the HTML code of a form with tablw containing only two records: <form action="rebates.php" role="form" method="post"> <div style="margin-left: 12px" class="col-xs-4">...

 
I am not using any webserver
directly running less.js in chrome
can I see compiled CSS
in F12 tools
 
@DavidH do you mean the object itself ?
 
11:21 AM
I can see the resultant css styles when I click the element, but I want to see the whole LESS converted CSS file
 
@PHPLover : you have cloned the form elements without replacing the name. Use an array instead
 
@KarelG Yep, I read it over and over again but I don't get it
IIRC the object holds the history of the window before it's pushed/popped?
If that's right than I get it
 
@KarelG:Actually the array name I'm using is necessary. I want the dynamically appended elements' name in same fashion only.
 
@Mahesha999 See lesscss.org/#using-less-usage-in-code If you invoke it with the parser, you can try outputting the css to your console and look at it that way
 
@Illaya: Stop being annoying and maybe even stay out of this room. Thanks.
 
11:28 AM
^-- late reply ?
 
yes
 
!!afk don't bother me, Caprica
 
@DavidH : if you visit a page, then the browser creates a new History object. That will be added to the window.history automatically after its creation
 
But what can it be? I mean ultimately you want the 3rd property to be your link
Ive seen so many articles leaving the object empty or defined as brackets
 
did you have read the doc. pushstate() <-- explains well for me
 
11:34 AM
I have actually but yea it doesn't clear my mind, my code works but it sucks having something you don't understand
 
W-why is this room closed?
Oh, I was worried because I couldn't see it and I thought I was banner or something, nvm.
 
@Kippie does that page specifies how I can make less.js to explicitly output css from less file when I use it in browser; not just stick the resultant style directly to the elements?
 
@Mahesha999 If you can't install any software like the lesscss compiler or an http server, try to find an online converter
 
@PraveenMP Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@DavidH : an example. I hope that you gets it
1) user visits www.foo.com -> history pushed
2) you add www.bar.com in a new history object using pushstate's parameter url.
3.1) user goes to new page -> new history object, nothing done with the added data
3.2) user refresh the page -> page becomes www.bar.com
3.3) user uses back button -> browser checks the history of the *previously* added history object in the stack, then goes to that page. In this example, www.foo.com
 
11:39 AM
Oh wow yea,got it!!
Thank you so much !!
 
oki. now le work
 
Good luck : )
 
!!poison the intern or be kind to him
 
@Oleg be kind to him
 
@CapricaSix will try, thanks
 
11:48 AM
eh who's the intern ? :p
 
Some guy my boss assigned to me.
 
is it not your responsibility to keep an eye on him/her ?
 
The responsibility's mine.
Just wanted to know Caprica's opinion on his fate.
 
well, var b = poisoning === responsibility; // false
 
What's b?
 
11:55 AM
a variable. name it as what you want
if it's a female, i could have picked the d
 
That's very semantic.
 
@FilipHaglund Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
oh god, i lost the game.
 
user2509223
back to u
 
Need help looking for a good QA to close as duplicate:
0
Q: Javascript auto inference using .toString()

ZEEWhy doing this 123.toString() gives an error... but this (123).toString() Works OK if possible and "at low level" answer (JIT/Interpreter parsing tokens decisions)

 
Sid
hi all
 
@Sid hi
 
Sid
I need to understand Javascript Parasitic inheritance : stackoverflow.com/questions/23239234/…
 
12:20 PM
why would you even do that :|
 
Sid
I am learning js and stucked here at parasitic inheritance
 
azure.microsoft.com/en-us/documentation/articles/… <- my eyes, my eyes, they burn, help ! what did i just read ! UGH ... since we can't resolve dependencies for you commit your depndencies ? microdicks are you serious ?
 
@Sid this is really high level JS. you should first learn basics. not that deep prototype stuff..
 
Sid
I know Prototype inheritance but confused in parasitic
 
@Sid KarelG's comment is valid though : I don't know if it's advanced but it looks useless. And a big word for a kind of factory.
 
12:23 PM
Parasitic, hmm!
@dystroy did you see that ?
i mean what microsoft recommends ?
 
@AbhishekHingnikar did I see what ?
 
what i linked
 
What does MS recommend ? Parasiting ?
 
NO
adding your dependencies to your git-repo
 
that parasitic thing, it's like doing one steps back and two forward to do one step forward.
 
12:24 PM
and pushing them to the server directly shrugs
basically xcopy /s C:\Python27\libs*
 
@Kensing Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
yeah, i've seen the cmd commands too
 
and then git add .
 
@AbhishekHingnikar I know nothing regarding django (any cms btw) but when the dependencies ecosystem is very bad you have no other solutions than adding them to your repository. Of course you don't have to do this if you code for node or in go.
 
Sid
If parasitic inheritance is that much complex than I will leave it for now.. :-)..Any ways thnx guys
 
12:25 PM
@dystroy doing that for python with pip
 
@Sid it's not really complex, it's rather useless and fancy
 
um sounds a lil bit horrific to me.
 
Sid
@dystroy ok
 
especially when microsoft has the compiler installed on the server :-/
 
@AbhishekHingnikar it is, but the only solution there is when you can't be sure to grab a relevant dependency from the net
 
12:26 PM
bah anyways i am probably gonna have to do that
 
i'm curious why microsoft doesn't include parameterized bash scripts to publish py websites
 
oh in Azure its their primary way to deploy
 
or you know, you could opt for an ecosystem less flawed
 
then you don't have to do these cmd steps.
also, they are still using cmd while PS is the future
 
@dy 50k dollars on line
i can deal with it.
at the end i will just make a linux vm and praise the lord.
 
12:31 PM
hey all I went to the facebook developers page to get the code for a like box, however when I click get code....nothing happens except a brief flash of a loading spinner (this is on facebooks page not mine.) I noticed in the chrome console that there was a couple of 500 errors....could anyone help me get the code I need?
 
> C:\Users\Abhishek\work\Azure\snapick1>git log
commit e66838330dea1846b13dd540829707dec8f0c0c3
Author: Abhishek Hingnikar <abhishekhing@live.com>
Date: Wed Apr 23 18:05:29 2014 +0530

Worst commit in my life
my commit is 109mb now
 
committing or pulling?
 
committing
 
wow man... @PseudoNym01 you mean this: developers.facebook.com/docs/plugins/like-box-for-pages
 
@JohnnyJS Yes I do, that is the exact page I am having trouble receiving code from
 
12:39 PM
kickstarter has some really stupid stuff... but I see how this kind of kickstart can work...
 
something wrong at their servers.. why didnt you write this on your own?
doesnt seem too hard to me... =|
 
@dystroy actually not a bad idea
i'm thinking of rigging up a few servos + laser pointer + arduino to keep my cats entertained during the day
 
for imaginary cats, maybe
 
@rlemon i love that idea!
i have a treat dispenser that when my cat meows will release 10 dreamies, 3x a day but no more
 
@dystroy ohh I wouldn't buy that product. but the idea of a automatic cat player wither while you are not home isn't a bad idea
@DrogoNevets I have all of the parts, and lots of mecano
 
12:42 PM
a cat is able to play at their own ...
 
problem is ambition
 
@JohnnyJS I'm honestly I'm being somewhat lazy, and since this is for a client I thought I would use the pre-built tool available to save a bit of time and to ensure compatibility, it looks like its just an iframe or some such, so I guess I'll have to work it out myself
or maybe I could just bug the FB developer page or something
 
@rlemon i used my 3D printer to make a nice-ish enclosure, etc
rapid prototyping for the win!
 
no 3d printer for me
meccano FTW
 
@rlemon printrbot, nice and cheap
but surprisingly good
 
12:44 PM
gist.github.com/rlemon/11198858 for anyone who missed this last night.
tab complete snippets for the chat input
 
!!/urban knf
 
@dystroy No definition found for knf
 
user2509223
is using empty elements just to place a decoration image (eg. glyph-icon with no function) an acceptable solution or it should be avoided?
 
@derylius its pretty common practice, personnaly i prefer before or after pseudo elements
 
@PseudoNym01 try: <div data-href="https://www.facebook.com/FacebookDevelopers" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true" class="fb-like-box fb_iframe_widget" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=113869198637480&amp;header=true&amp;href=https%3A‌​%2F%2Fwww.facebook.com%2FFacebookDevelopers&amp;locale=en_US&amp;sdk=joey&amp;sho‌​w_border=true&amp;show_faces=true&amp;stream=false">
and that in html. and facebook JS sdk will do the rest..
 
user2509223
12:47 PM
@DrogoNevets i know that its a common practice, im just wondering if its actually legit or its just so commonly used that noone complains about it
 
@derylius i think the latter
as i say my preference would be pseudo els
 
@rlemon that AWESOME!
 
user2509223
@DrogoNevets not even then, you could use even positioned background of the parent element for the same result
 
user2509223
im also wondering that apart from the common laziness if theres any performance comparison on parsing complicated css vs. parsing DOM (later obviously against semantics, but thats an other Q)
 
@derylius notice that some old browsers are DELETING empty elements unless there is a &nbsp; or something similar inside. the before and after has his advantages and disadvantages
 
user2509223
12:51 PM
and if later is somewhat better why shouldnt we just include the image using the image tag (since we already dont give a shit about semantics)
 
As we can see in this example the "mark/close/not contributive" marking agents start to be a bit Zelots... there should be a way for the person who put the question to fight this... although I believe that the majority or them are well intented... but this can diret use to miss such a good bit of knowledge as this one that Igor brought to us... ;-) — ZEE 38 secs ago
sigh
 
user2509223
@JohnnyJS those old browsers would also fail rendering the rest of any modern page, i support only the latest 2 IE, webkit (chrome, safari), ff and the standard (later two usually the same)
 
@JohnnyJS thanks, I suppose I need to get an appId to as well now...ok thanks!
 
@derylius so IE7 and 8?
 
user2509223
@JohnnyJS on your XP?
 
12:56 PM
the current ie is 11 i think
 
@JanDvorak @SomeGuy your opinion on this ?
 
both XP and 7 doing same troubles. so i debug in XP on VM on my mac.
 
@dystroy : he marked it as dup, but also replied it ?
 
@PseudoNym01 that the link to put in the iframe: goo.gl/2ln38D
 
user2509223
@JohnnyJS if a browser presented only on a system older that my erection that not even supported by its own manufacturer then i dont care how much granpa will suffer to read the blog of their superfamous sons band
 
12:58 PM
@KarelG he marked it as dup after I asked him to. But the problem is OP in my opinion
 
and you dont need app_id. just use facebook's (dont change it..)
 
ah ok, I'll give it a shot
 
you know that people is barely googling for the answers
 
@dystroy I tossed in my two cents.
 
seen
 
12:59 PM
@dystroy Seems like he just didn't bother reading the duplicate's answers
 
there was a question if you could detect firefox add-ons. I know the answer, but the questioner didn't took time to google it
 

« first day (1285 days earlier)      last day (3646 days later) »