« first day (2076 days earlier)      last day (2875 days later) » 

1:12 AM
@VeronicaDeane SONOFA! my ksp auto updated now none of my mods work :/
 
1:33 AM
yeah ikr
It seems to be working ok for me, except for MJ
It seems to have a habit of not even showing up until it's updated
yay for first 100% successful landing of my big cargo shuttle!
 
1:56 AM
You guys know how to run an exe from cmd that's on a different drive?
nevermind, my issue was something entirely different
my windows-ese is rusty
 
2:30 AM
morning guys.
just curious, why does z not work in this case?
var w = 1, z = 2;
function foo( x = w + 1, y = x + 1, z = z + 1 ) {
console.log( x, y, z );
}
foo(); // ReferenceError
i understand that z is not looked up at the global scope, but i dont get why. if it can do for w + 1 in x, i dont see why not in z + 1 in z.
 
becayse you're reassigning
z = z + 1
 
!!> let z = 1; z = z + 1; z
 
@FilipDupanović 2
 
but not for default values @Ming
 
it's more like
!!> let z; z = z + 1;
 
2:37 AM
@phenomnomnominal "NaN"
 
something something temporal dead zone
 
@phenomnomnominal are you saying that the error is in the LHS of z = z + 1
meaning the assignment of z to itself is the error.
 
z = z + 1 in the params means, declare a new local variable z without a value, and then add one to that non-existing value.
 
hi guys
 
@phenomnomnominal thanks. its much clearer now.
 
2:47 AM
NaN = Not a Noodle
I mean *Number
 
 
1 hour later…
3:53 AM
hey guys. how do i get the root url of a site
is it using DOM methods?
 
location.origin
is probably what you mean
 
@phenomnomnominal thanks very much sir.
 
 
want to check. can i convert this to json format?
[ {name1: "Jane"},
  {name2: "Mark"},
  {name3: "June"}]
@phenomnomnominal
is it JSON.stringify?
 
4:16 AM
yes
 
@littlepootis thanks.
 
4:51 AM
hi
I need some help with implementing an infinite scroll
I have a react component https://gist.github.com/argentum47/709999baecbe71460830185e02c24c1c .. and now presently .. on scrolling the the number of items in the visible table height, I am incrementing the page number ...
for the time being I have an ever growing array ..
I want to do this thing where only the visible portion will be in the products state, and I think I will have a seperate JS array not a state, that will have the growing array of products
 
Hi every one good morning , i am from cross platform mobile app developer using cordova , my issues is im passing xml data in my java script , now i want to parsing json objects , so is there is any option to convert from xml to json ? can any one help me from this issues ?
 
5:12 AM
no
 
xml pareser? or the js native domparser
 
5:27 AM
Not before we sort out the whole "java script" thing
the "space before punctuation" thing isn't great either
 
:P
cordova sounds very russian
 
5:48 AM
geez I go away for 2 days and you guys still keep jabbering away? :D
...*scrolls back through 2671 lines of chat*...
 
saves you from having to say hello and goodbye
 
greetings, programs! \o/
 
god save the script!
I started shaving seconds from my Webpack build and I took out too many and now there's blood and blocks all over the place
 
@Pans javascript, not java script. json string, not json object.
 
ok folks, today's puzzler: got 2 JS files, one loaded after the other, the DOM is ready, everyone is happy. each file contains a class and some methods. what's the best way (i know that can be subjective) to access a method from the class in the first file from within a method in the class in the second file ?? cookies for the winner can be delivered to your door at the beginning of next month.
 
5:58 AM
@Sheepy unless he means plain objects, but then there's nothing to be parsed about it
 
@Pans have you considered online tools? like: utilities-online.info/xmltojson/#.V2opOh_I4UE or codebeautify.org/xmltojson ? or do you prefer a programmatic approach?
 
Can't imagine JSON generated from arbitrary XML be any better than the source
 
@thedigitalmouse if the scripts are loaded in the same document, then they share the same global context; in JS, you usually use the context to access references, so from withing the 2nd script you should be able to do something like self.FileOneClass.staticHelper()
 
@Pans for a programmatic approach, take a look at some things others have done, like davidwalsh.name/convert-xml-json and coursesweb.net/javascript/convert-xml-json-javascript_s2 for inspiration
@FilipDupanović hmm... haven't tried 'self' yet... will give it a shot, thanks!
 
self is the same reference as your good old window, but there are now different contexts in which scripts run in and self is becoming the politically correct way to reference the global context (wherever you may be running in on the Web)
 
6:07 AM
So, basically, codebeautify tries to guess the type, then lets you tweak the results a bit, thus turning one-element arrays into their values. It also drops a lot of information, making it unusable for XHTML.
 
@FilipDupanović i think i have a scope issue somewhere (hence the question) because file1 is compiled from typescript to javascript and uses AppComponent.prototype.MenuSelect() for the method I need, and my code is native JS where I have an object-method that needs to feed that MenuSelect() function.. so I was trying stuff like var my_menu = new AppComponent.MenuSelect() and calling my_menu from within my own methods... i'll give self a try now
@JanDvorak well i never said they were perfect examples! :D
 
I'm not saying they aren't perfect. I'm saying they aren't useful in practice.
 
...pines for the days of yore, when GOSUB and GOTO reigned supreme!
and now, for some reason, i want a javascript interpreter for my Commodore 64.. or Amiga >.<
 
jumping around wasn't so fun when we had a course in ASM
 
Anyone knows how to reload Google recaptcha after submitting form with ajax?
 
6:15 AM
i remember when my dad was working at Honeywell as a Systems Analyst/Programmer teaching me ASM on an old Radio Shack TRS-80 Model I.. all that cmp-ing and ld a, 00 and jmp-ing around made my head hurt after a while
 
grecaptcha.reset() is not working as expected
 
Now imagine if instead of ordinary function calls (push the return address onto stack, then jump somewhere) you had to use CPS (push the return address somewhere else, say onto stack, then push the return address pointer onto stack)
"not working as expected", or "not working, as expected"?
 
@Noobie did you catch stackoverflow.com/questions/30039035/… ? - a year old, but talks about your problem
 
@thedigitalmouse That's because of your brain physically expanding to gain storage space for all this new information
 
@thedigitalmouse ya i seen many answer telling me to use grecaptcha.reset(widgetID)
@thedigitalmouse tried different variation but still cant get it to work yet
 
6:19 AM
@JanDvorak yeah and 'physically expanding' meant pushing out other things like girls and motorcycles, which I was probably rebelling against such loss since I was just becoming a teenager at the time. :D
 
@JanDvorak you can do that or there are some instructions that let you specify offsets from the current address
 
@Noobie then ya got me beat!
 
@thedigitalmouse thanks for trying to help though
 
and they're really annoying because you don't get a lot of bits to specify the offset, so if down the line you expand some linear array, suddenly you can't move to the instructions you want from the surrounding
@thedigitalmouse have you ever worked with a modern ISA? what's it like?
 
@FilipDupanović cannot say that I have! My programming experience is very broad, but not particularly deep in any one area. :)
and self didn't improve things... can't show all the code (some proprietary stuff) but this might illustrate some of the problem... jsfiddle.net/digitalmouse/to52jv5s/2
at this point i'm probably gonna have to break down and convert to Typescript and make it an angular 2 component (like AppComponent) just to help them live together in the same world scope.. i was hoping to avoid this, but meh...
 
6:35 AM
var AppComponent would assign it to the execution context, which might not be window, but either way that probably wouldn't be the correct way with Angular
shouldn't you be able to export something from the module and access the module from the 2nd file?
 
i did have (prior to your suggestion):
 var wheelmenu_select = AppComponent.MenuSelect();

 nav_dashboard_running.navigateFunction = function() {
   wheelmenu_select(dashboard.gridList[0]);
}
but as you mentioned, it's probably not how Angular expects to interact
well the AppComponent class is exported...
hmm
 
you might have gotten that if you had avoided declaring the variable in the module scope, so it ended up assigned to window
 
not sure what you mean 'avoided declaring the variable'.. how else would I create an instance that I am able to access?
 
L13 z = 5; declares z in the global context, so self.z === 5
 
ah.. school time! :D
...reads
 
6:50 AM
Hi..gd morning guys
 
but if you're using a module loader, you probably wouldn't want to be doing that, sharing access through the global context
 
some one tell me how to close a modal pop up which over another modal pop up..
 
you probably want something like module.exports = AppComponent from the first module and then somewhere from the second script use the shared module loader API from the global context to get the module's export: (await System.import('foo/app')).AppComponent.staticHelper() // foo code
 
7:08 AM
When using AngularJS and PHP and I have a 2 dimensional array do i still have to use ng-repeat?
eg $arr= array(name => 'testname', age => '13)
 
7:18 AM
@astrosixer I don't like people commanding me (though I can take this from a team leader). Besides, you haven't told us how the modals are made.
 
dropping by to share some quality code!
if(!String.prototype.beerize){
    String.prototype.beerize = function(){
        return this.replace(/([a-z])\w+/g,"beer").replace(/[A-Z][a-zA-Z]*/g,"Beer");
    }
}
 
Did you just touch the String.prototype?
 
he touched it! :O
 
That's ... bad.
 
Ew!
 
Beer, beer'beer beer beer beer.
 
!!> 'nοt sο hіg​h'.replace(/([a-z])\w+/g,"beer").replace(/[A-Z][a-zA-Z]*/g,"Beer");
 
@Sheepy "nοt sο hіbeer"
 
Oh. Ok. The last two letters slipped.
Chat must be stripping certain characters...
 
!!> for(var i=0; i< 'nοt sο hіg​h'.length; i++) console.log( 'nοt sο hіg​h'.charCodeAt(i))
 
7:32 AM
@JanDvorak "undefined" Logged: 110,959,116,32,115,959,32,104,1110,103,104
 
1110 wat?
Unicode characters?
 
That's "і". Yes. :)
 
cyrillic і.
 
!!> 'i'.charCodeAt (0)
 
@Neil 105
 
7:36 AM
Weird
!!> 'і'.charCodeAt (0)
 
@JanDvorak 1110
 
I knew Jan would be the first to know what is going on :D Neil still has no clue :p
 
@Sheepy well, I did say that it was unicode
 
!!> help
 
@choz wat?
 
7:39 AM
!!> help
 
@choz "ReferenceError: help is not defined"
@choz "ReferenceError: help is not defined"
 
!! help
 
@Neil Information on interacting with me can be found at this page
 
!! echo thx neil
 
thx neil
 
7:42 AM
@JanDvorak i am a evil man!
@Sheepy you broke my code :(
 
@TechTreeDev You never have to use ngRepeat. What are you trying to do?
 
hello everyone i need a favor from u guys
 
Who are the U guys?
 
Oh.. why would they delete the question that was asked by that punjab university guy..
 
i am facing an issue in the multiple datepicker closing on ios devices
 
7:47 AM
@choz because it sucked?
 
@JanDvorak That doesn't help.. There's question even suckier than that and not get deleted..
 
@razorranjan What's the problem exactly?
 
@jan
 
That zzzzzz in your textspeak made me sleepy. No textspeak please.
 
7:48 AM
I can already see an issue, but I guess that's not the one you're having :P
 
i have implemented multiple datepicker on that url using jquery ui's datepicker
 
@razorranjan I can see that
 
the problem is the calendar doesnot close on ios devices on clicking outside anywhere on the window
works fine everywhere else
if u open that link in iphone any 4,4s,5,5s,6,6s it doesnt close
 
no textspeak, please
 
So how did you implement the closing part? A click handler on the body or something like that?
 
7:52 AM
its implemented in the multipledatepicker plugin that i included in order to allow jquery ui's datepicker to allow to select multiple dates
 
Also, if you click the same data multiple times, your picker flickers
Maybe the two issues are related
 
yes
 
@ClemensHimmer Try to improve it. Don't waste my homograph attack. :|
 
If it's an issue with the datepicker, you should report it to the author
They are most likely to be able to fix it
 
someone reported it like one year back but didn't get any answer
 
7:54 AM
There's also a newer version available: github.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI
 
okay let me try that
thanks @OliverSalzburg
 
@Sheepy but, i don't even want to support non-latin chars, i can only think of workarounds for that and that would not be cool ;x
 
@OliverSalzburg same issue even in the latest version
 
@razorranjan Okay, so that datepicker extends the default jQuery UI datepicker, right?
So, first of all, there's 1.11.4 available of jQuery UI as well. So that is worth a try
And I would assume it's an issue with the jQuery UI datepicker, not with the extension you're using
See if you can repro with the examples at jqueryui.com/datepicker
 
8:01 AM
yes i am using the extender of jquery ui
okay trying it now....
 
@razorranjan If the default jQuery UI one works, the only part that could be a problem in the MDP, is the $.datepicker._hideDatepicker part
In which case you should debug that code and see why it's not working
 
"Who are the U guys?"
you guys?
 
The Big U (1984) is Neal Stephenson's first published novel, a satire of campus life. == Plot == The story chronicles the disillusionment of a number of young intellectuals as they encounter the realities of the higher education establishment parodied in the story. Over time their lives and sanity disintegrate in different ways through a series of escalating events that culminates with a full-scale civil war raging on the campus of American Megaversity. Told in first person from the perspective of Bud, a lecturer in Remote Sensing new to the university, the book attacks and makes fun of just about...
 
"... the disillusionment of a number of young intellectuals..." meaning lack of beer resources. :P
 
user3119231
o/
 
8:06 AM
\o
about time you woke up :D
 
stackoverflow.com/questions/37961932/… Answer a question for a change, get reminded why I'm not very motivated to answer, any more.
Heh, OP changed the accepted answer to mine
 
8:23 AM
1 message moved to Trash can
@razorranjan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
okay sorry
 
1 message moved to Trash can
@razorranjan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
user3119231
I just want to say: Germany is da real mvp (in football)
 
How can I check if a promise is a Bluebird promise?
Esailija says to not do it, but I want to ensure (as in unit test) that a method returns a Bluebird instance
 
@OliverSalzburg what a strange thing to want to know. It shouldn't matter
 
8:26 AM
@Neil It does matter if you want to call Bluebird specific methods on it
 
It just needs to follow the promise norms
@OliverSalzburg precisely why you shouldn't care
 
Well, I would rather make sure that we convert to Bluebird promises ASAP in our code base instead of wrapping everything needlessly in Promise.resolve() all over the place
 
Either you assume it is a bluebird promise or you shouldn't care
At least so says best practice
But if it is only for testing, then just check for the existence of the function you want to call
 
@Neil Makes sense
 
hi developers
need a help
i wanna json array with name and value,
where value must be 4'10" (160cm)
 
8:40 AM
@VishnuSBabu [{"name":"foobar","value":"4'10\" (160cm)"}]
 
user3119231
you were faster
 
@VishnuSBabu so make an array of objects containing name and value pairs, then convert to json
 
user3119231
@VishnuSBabu you don't need help. you just need someone who do your work.
 
var HELPER_heightData= [
{"value":"4.00,","name":"4.00,"},
{"value":"4.01,(124cm)","name":"4'10/" (160cm)"},
{"value":"4.02,(127cm)","name":"4.00,"},
{"value":"4.03,(129cm)","name":"4.00,"},
{"value":"4.04,(132cm)","name":"4.00,"},
{"value":"4.05,(134cm)","name":"4.00,"},
{"value":"4.06,(137cm)","name":"4.00,"},
{"value":"4.07,(139cm)","name":"4.00,"},
{"value":"4.08,(142cm)","name":"4.00,"},
{"value":"4.09,(144cm)","name":"4.00,"},
{"value":"4.10,(147cm)","name":"4.00,"},
{"value":"4.11,(149cm)","name":"4.00,"},
@Maurice i am a beginner to technology and tried a lot at last option i ask u guys
@Maurice when v get a new tip we learn
 
@VishnuSBabu we generally frown on people asking to code something for them
Show us your attempt and ask for clarifications on how to make your solution work
 
user3119231
8:47 AM
^ thanks bro
 
@VishnuSBabu Check your second line. Syntax error.
 
user3119231
btw adding double quotes to the key is optional
 
user3119231
it's important for the value if it's a string. If it's a float / int you don't need them
 
This is a javascript array, not a json array
 
@VishnuSBabu Try to use an editor with syntax highlight. PSPad, Notepad++, Vim, Eclipes, NetBeans, WebStorm, Atom. Take your pick.
 
8:49 AM
If it were json, it would be a string
 
okay okay
 
user3119231
@Neil a json wouldn't have var on begin
 
user3119231
 
@Maurice I am correcting his terminology
 
user3119231
don't forget to use JSON functions to convert js array to json
 
8:51 AM
108
Q: Javascript object Vs JSON

testndtvI want to understand the basic differences clearly between Javascript object and JSON string. Let's say I create the following JS variable: var testObject = {one: 1,"two":2,"three":3}; Q1. Is the key/property name valid both with/without quotes? (e.g. "one" : 1) If yes, what is the differen...

I personally would settle with pointing out the syntax error, though (shrug)
 
user3119231
^ sigh
 
{"value":"4.01,(124cm)","name":"4'10/" (160cm)"},
its showing invalid
how can i solve it?
i need the value as --> 4'10" (160cm)
 
@VishnuSBabu String syntax: quirksmode.org/js/strings.html
 
user3119231
@VishnuSBabu escape
 
Ugh, now I'm getting WARN: 'Warning: a promise was rejected with a non-error: [object Error]' in part of a code that explicitly deals with converting an angular HTTP response to an Error
And it only happens in PhantomJS :P
 
9:07 AM
oh hi everyone
 
Hi~
 
user3119231
@bitten hi wife
 
@Maurice while you still can! Muahahaha!
 
9:24 AM
$('.field').on("change",function(){
    alert('hey something changed')
})
Q: this is how you can listen on changes on the field
But how can I also trigger an event, when the textfield is changed from elsewhere of the code?
$('.field').val("I changed you");
this doesn't trigger the 'change' event
how to solve that?
194
A: .val() doesn't trigger .change() in jquery

GenericTypeTeaonchange only fires when the user types into the input and then the input loses focus. You can manually call the onchange event using after setting the value: $("#mytext").change(); // someObject.onchange(); in standard JS Alternatively, you can trigger the event using: $("#mytext").trigger(...

#solved
 
user3119231
yes, just don't use jquery
2
 
@OliverSalzburg is it possible to capture the 'Done' button press on iphone and then i can trigger jquery to hide the datepicker
 
can we copy intellence from chrome's dev tools ?
this. <--- this gives me lots of methods
 
hi wife? o.O
 
9:30 AM
but when I do this,

copy(this)
I don't get the methods I see in intellicense
 
@thedigitalmouse bitten is a ♀
 
hmm, maybe it's a sleep day
 
/me don't understand the question and don't use Chrome
 
@SterlingArcher i.imgur.com/kWWXIwj.mp4
 
@KarelG oh i knew that... or suspected as such... just didn't know the relationship until now :)
 
user3119231
9:41 AM
@KarelG how is this possible?
 
user3119231
teach me the old arts of witchcraft
 
@Mathematics one is static analysis.. the other is runtime introspection.. also this in javascript can't always be figured out correctly without running it..
 
In any unambiguous and deterministic language, it should be possible to determine the values of all variables
Or least that's the theory
 
@Maurice why not jquery :'(
I've started a new project, and there I have jquery and angular.. should I kick angular or jquery out?
 
*coughjquerycough*
 
9:52 AM
 
Sorry, I have quite the cold
 
haha
 
@Maurice mastering the vaping techniques
 
Q: How can I select .div0 from .div1?
<div class='div0'></div>
<div class='div1'></div>
$(".div1").prev(".div0") ?
 
div1.previousElementSibling
 
10:02 AM
I should flag that for not using jQuery.
 
coughkickangular2cough :D
in the goolies!
 
10:17 AM
@jAndy wait your name wasn't always jAndy.. did you rename yourself for sarcastic jquery shenanigan purposes?
 
Hey, guys, I was reading the AngularJS 2 documentation and stumbled upon these lines:"Http is not a core Angular module. It's Angular's optional approach to web access...". So what's Angular's main approach to web access?
 
Maybe it's the Http as for $http
 
user3119231
it's joking-andy
 
@choz I'm sorry, I didn't understand. Could you elaborate?
 
@JoãoPaiva i don't even understand your question :D lol
@Maurice $("#andy").val("joking")
 
10:24 AM
@ClemensHimmer Angular's documentation states that HTTP is not Angular's main approach to web access. So if HTTP isn't their main approach, what is?
 
any way to find the index of json which is listed in ng-option
 
my data looks
 
10:26 AM
{"value":"value1","name":"data1"},
{"value":"value1","name":"data1"},
{"value":"value1","name":"data1"},
{"value":"value1","name":"data1"},
{"value":"value1","name":"data1"},
 
@VishnuSBabu $index
 
@JoãoPaiva no damn idea.. it feels so taken out of any context for me, maybe someone else can cope with the question lol
 
context would help; afaik, Angular has a http module (?) that provides a pollyfill for fetch() for retrieving resources over HTTP
 
@OliverSalzburg let me try
 
@VishnuSBabu It's even used in the example in the docs: docs.angularjs.org/api/ng/directive/ngOptions
 
10:41 AM
@JoãoPaiva I dont know much about angular 2, but in angular 1, they have an $http module. I might be wrong, but maybe the Http that they quote there is $http
 
10:53 AM
You guys have very selective reading capabilities
 
not working bro @OliverSalzburg
<select ng-model="form.data" name="data" class="form-control" ng-options="h as h.name for h in height">
which gets me the list
i need the select index of the data
i tried <select ng-model="form.data" name="data" class="form-control" ng-options="indexOf(h) as h.name for h in height">
 
user image
2
^^
!!afk lunch + client meeting
 
113
A: AngularJS - Using $index in ng-options

Harry PehkonenSince arrays are very similar to objects in JavaScript, you can use the syntax for "object data sources". The trick is in the brackets in the ng-options part: var choices = [ 'One', 'Two', 'Three' ]; In the template: <select ng-model="model.choice" ng-options="idx as choice for (id...

 
is there a method that detects if the html insertion is completed ?
I want to fire a function upon $('element').html('inserted');
when html in inserted then fire the function
 
11:27 AM
@Shashi developer.mozilla.org/en/docs/Web/API/MutationObserver might be what you're looking for
 
@OliverSalzburg thanks, exactly what I am looking for, I will try and let you know if this works
 
user2620028
11:41 AM
@jAndy Look at starred messages, it is already up there
 
12:08 PM
indeed. I used to not look at starred messages, because it made me lose the game a lot lately.
 
@jAndy The Game
7
 
0
Q: Encryption & Encoding(AES, UTF-8 and base64)code conversion from JAVA to node.js giving different results

Gandalf the WhiteJava Code public String encrypt(String key,String inputString) { try { SecretKeySpec secretKeySpec = new SecretKeySpec(key.getBytes(), "AES"); Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); cipher.init(1, secretKeySpec); byte[] aBytes = cipher.doFinal(inputString.getByt...

 
user3119231
I would like to enter javascript organisation on github - That's a me: github.com/Maurize
 
12:38 PM
morning everyone
 
organizations are for collaboration, management.. not like a facebook group
 
user3119231
exactly what I've thought
 
What's it called when a language implicitly imports files?
 
so you wanna work on some project? just look at the trending repos..
 
hey, can anyone help with this question?
0
Q: How to validate with "warning" instead of "error" using formValidation plugin?

Brian JI'm using the formValidation plugin located here to perform input validation check on a HTML5 form. The error validation works fine but now I have a case where I need to provide a warning instead of an error on an input validation, where the user can still proceed with a submit if invalid. I've ...

or have advice where to look for a workaround..
 

« first day (2076 days earlier)      last day (2875 days later) »