« first day (2314 days earlier)      last day (2652 days later) » 

12:01 AM
So serious question ping me if you can help: How can I get the same header on both stackoverflow and the other sites? Doesn't matter which one I just want the same header. Thxs
 
@William Sounds like a few minutes of CSS, and installing Stylish
 
no thank you for now I will think about. No not magic just a setting maybe
 
you wanted a magic way?
 
@William You're asking for a single setting that multiple sites have implemented. You're not going to get that for something as trivial as a header theme.
 
@KendallFrey they do for the fixed header. Well not multiple sites I think
 
12:20 AM
Guys, is there any open source project that allows you to create something similar to polymer catalog
but you do not use polymer?
 
12:40 AM
what is SO navbar? you mean the yellow line?
 
1:13 AM
no, the header bar on the main site.
.
 
are you the RO here luggage?
 
I'm a room owner.
 
how many RO in here?
 
you can see them by licking the "info" link on the right.
right above all the avatars.
 
and what does one have to do to become RO?
 
1:18 AM
looks like around 21.
1. Hang out and be helpful
2. Don't ask for it.
 
and where does one apply to be RO?
 
you don't apply, you get nominated by an existing owner. Then we vote.
 
it's democracy then
 
well, we vote yes/no on the nomination
not vote between candiates
 
and the vote happen every year?
 
1:21 AM
more like a cabal
whenever someone is nominated.
 
i see
 
2:04 AM
Ubuntu is out of letters
17.04 is Zesty Zapus
 
AA, BB, CC, etc
so Aardvark, then.. um.. BBear.
 
well yes I am using ubuntu now. so after zesty zapus what would it be called?
 
ZZ feature freezes tomorrow.
 
2:26 AM
whoo prod changes
stupid developers and their "data"
 
I think the cat is figuring out how to deploy instances in AWS
 
heh, that's about what I look like adding new boxes to ansible
 
naked and furry?
 
always
I finally got the ansible openstack integration working and now I just nova meta somebody set site_role=consul and tell gitlab to run ansible and things sort of... happen
if you haven't tried it, consul as a smart DNS server is the shit
 
nope.
 
2:35 AM
Is there a single function way to convert a Promise resolving to an array into an Observable that emits the items in that array?
 
consul tl;dr: each box runs a tiny daemon, they advertise services and occasionally ping the server, it serves DNS entries for each service.
 
yea, was reading.
 
my lan vpc hands out dhcp leases with no expiration and boxes figure it out with each other via dns
 
i email some guy to make a dns change at work.
 
little fiddly when things first boot, as dns tends to be
 
2:36 AM
they don't have a very automated environment
 
CCat
DDog
 
@ssube annoying ping because ^^^^^ that's something you've helped me with in the past
 
angular 2 dynamic meta tags?
 
@KendallFrey what's up?
 
12 mins ago, by Kendall Frey
Is there a single function way to convert a Promise resolving to an array into an Observable that emits the items in that array?
 
2:49 AM
@KendallFrey they might have some helpers for that, otherwise, I'm not sure.
 
well, ok
I figure .from will work
 
sorry, rolling back some prod changes atm, I'll read it better in a second
 
I just need one to unwrap the promise, and one to unwrap the array
 
@KendallFrey all that unwraping on valentines day
unwrap my heart
 
your heart has always been open bae
 
2:52 AM
;)
 
either concatMap is ridiculously useful or I'm abusing it
MONAAAADS
 
ansible is like admin page that give bugtrack to each programmers right?
 
3:35 AM
@jacobian ansible is like shelling into each of your servers and running a setup script, without the shelling and where you can see what the script is doing and enable parts of it for some servers
 
4:35 AM
Why's everybody grayed out?
 
they died
its when a user is afk basically
or haven't talked for x number of minutes/hours
 
5:08 AM
 
5:32 AM
What does Russia have humps ?
and GreenLand is a sideways chicken
 
5:45 AM
indonesia's map a bit skewed
indonesia is much larger than that
 
In regex, how to select words that have minimum 3 chars ?
\w{3, }
3 or more charcters
 
@FlyingGambit \w(.{3,4}) perhaps
 
but i want to select words with more than 4 chars also
 
Just remove the 4 and keeo 3,
 
that selects only 3 chars
 
5:56 AM
20
Q: regular expression to match any string but at least 3 characters

Davidsorry am not a regex expert. but my request is simple, i need to match any string that has at least 3 or more characters that are matching So for instance, we have the string "hello world" and matching it with the following: "he" => false // only 2 characters "hel" => true // 3 characters match...

You are doing something wrong
You need a dot too, to represent a character
Ok. you dont need the dot. but our regex works here ^^
@FlyingGambit
 
oh now I understand I need to keep the , as well
Thanks
 
6:51 AM
hi. newbie question here. I was creating a simple todo list app but the tasks are added on a sec only like a flash. It disappears quickly. What's the problem?
 
@Anwar Welcome to the JavaScript chat! Please review the room 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.
 
put a debugger and check output at each step
 
Here's the code
<form method="post" id="new_task_form" onsubmit="add_new_task();" action="">
    <input type="text" name="new_task" id="new_task_field">
  </form>
  <div id="tasks_div">
    <ul id="tasks_list">
      <li>Task 1</li>
      <li>Task 2</li>
    </ul>
  </div>
  <script type="text/javascript">
    var tasks_list = document.getElementById("tasks_list");

    function add_new_task(){
      var new_task_name = document.getElementById("new_task_field").value;
      tasks_list.append(create_new_task(new_task_name));
@FlyingGambit OK. I'll do
 
7:13 AM
got it. Had to use preventDefault();
 
7:40 AM
Hi
 
7:53 AM
hello Sagor
 
8:38 AM
I am facing a problem with javascript
Please see this question
0
Q: how to show image in child window in javascript

Sagor AhmedI have a button in parent window . When this button is clicked a new window is opened . In the child window , there is a button named screenshot. When I click screenshot button , the screenshot of the page is displayed in a new windows . The code for this is as below : <script type="text/java...

@KarelG
 
8:57 AM
Does anyone use Docker for their projects?
 
I am still learning docker. what is it?
one must use digitalocean for docker right?
 
No lol
 
I can't use docker in my sharedhosting in namecheap
 
What is a docker ?
 
o/
 
9:01 AM
From what I understand - You can host Docker outside of DigitalOcean, from what I understand it's a container that you can set up to mimic your production server. So for example, with a LAMP project your Docker container would have PHP, Apache, MySQ etc. You then develop inside your container.
 
I am still learning docker. right now I am watching AWS tutorials
docker will be learnt after
 
Yes @Flying
 
how to show image in child window in javascript
 
is Docker the next new shiny thing ?
 
9:03 AM
it's one of the new shiny things
 
@SagorAhmed get reference to child window, then append the image to some element
 
has that not been around for a while ?
 
it's been around for a while yeah
 
var urlCreator = window.URL || window.webkitURL; var imageUrl = urlCreator.createObjectURL(screenshotPage()); document.querySelector("#image").src = imageUrl;
 
can I see your docker? did you already made one?
 
9:04 AM
This code shows a broken image in img tag .
@FlyingGambit
0
Q: how to show image in child window in javascript

Sagor AhmedI have a button in parent window . When this button is clicked a new window is opened . In the child window , there is a button named screenshot. When I click screenshot button , the screenshot of the page is displayed in a new windows . The code for this is as below : <script type="text/java...

 
AWS is always the shiniest things.
 
That image doesn't exist if it's not accessible online. If you want to convert current screenshot to a browser screen, use canvas
 
aws has so many rules and security setting that it took hours of tutorials to understand them all
 
le doctor google can help ya
 
I prefer bing
 
9:05 AM
I am seeing the img in a link
 
I haven't made one yet, If you're on Mac you should download Docker + Kitematic.
Kitematic is a really nice app that shows you your running Dockers and a catalogue of images
 
I have seen the screenshot in this link .
blob:null/572c3e03-a1b5-4220-b957-9d98d9e8d162
@KarelG
 
@GNi33 Can it be used as an alternative to webpack ?
 
@SagorAhmed that's not a link ...
 
Where is this link generated ?
@KarelG
 
9:10 AM
@SagorAhmed var blob = new Blob([screenshot.outerHTML], { type: 'text/html' });
 
its local and its not online ^
 
@FlyingGambit it's something completely different
 
How can I generate real link ?
 
@SagorAhmed you need to upload the image to a place where others can access, ... like a server. Check for the image hosting sites, some have APIs for it
@GNi33 Hmm, I will dig into it later
 
can I save the image in to local place ?
@FlyingGambit
 
9:18 AM
Can anybody answer my question. If I have a column in the database ID, then where is the abbreviation?
ID stands for Identification/Identity/Identifier
http://www.acronymfinder.com/Identification%2FIdentity%2FIdentifier-(ID).html
 
@marbel82 Welcome to the JavaScript chat! Please review the room 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.
 
@SagorAhmed I think it should be possible, it might pop up the save dialog box, However I don't know how to do it
 
hello, need help impliementing fb webhooks for fb pages
 
I have a img tag in body tag
 
@DiveshOswal Welcome to the JavaScript chat! Please review the room 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.
 
9:20 AM
@SagorAhmed Not in a browser. Or, rather, you can popup a save dialog, but you still won't get the link.
 
I want to show the image in image tag
 
@SagorAhmed Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
<body>
<button id ="myBtn" onclick="openWin()" >Click me </button >
<img id="image"/>
</body>
I want to show the image in image tag
 
@FlyingGambit he could simply put the blob data in canvas ...
but he certainly doesn't read closely
 
9:21 AM
That is why , I have written this code .
 var blob = new Blob([screenshot.outerHTML], {
           type: 'image/bmp'
        });
		var image = new Image();
		image.src = URL.createObjectURL(blob);
		document.body.appendChild(image);
But this code appends a broken image.
Why ?
 
@SagorAhmed Hmm. Why are you converting the outerHTML into a blob and use that as image data?
 
I cant catch the captured screenshot into a variable .
0
Q: how to show image in child window in javascript

Sagor AhmedI have a button in parent window . When this button is clicked a new window is opened . In the child window , there is a button named screenshot. When I click screenshot button , the screenshot of the page is displayed in a new windows . The code for this is as below : <script type="text/java...

 
I'm implimenting facebook webhook for pages.
I've created accoutn in facebook developers
Webhook subscription for user is working.
Same I've subscribed for facebook page, but unable to get real time data. Please Help me in this case.
 
@SagorAhmed I mean, any code that tell you to capture the outerHTML will get you HTML, not image. You may display that html in a window, to mimic a screenshot, but it is not an image.
 
THen which variable contains the image ?
Is there any understanding problem in my code ?
Here is my code .
 
9:26 AM
@SagorAhmed This is the problem. There is no reliable way to take an image screenshot. Your best bet: github.com/niklasvh/html2canvas
 
But when I click screenshot button , The screenshot is howing in a new link .
@Sheepy
Try this code .
pastebin.com/GtQYzVbV
 
what's the alternative to Object.assign for deep clonning?
 
@Sheepy
But when I click screenshot button , The screenshot is showing in a new link .
 
@SagorAhmed I tried and it doesn't work. From what I see, You are using html as bmp, and html is not bmp. I will repeat it: any code that tell you to capture the outerHTML will get you HTML, not image.
@Thaenor JSON.stringify, if the object is relatively simple.
 
When I click screenshot button , I am seeing the screenshot in a new window
blob:null/4a5ec173-eeca-4eba-b498-30cc5ee07222
This is the link .
@Sheepy
 
9:33 AM
@Sheepy I'm thinking of possible scabality issues. At the moment object.Assign works, but it may not be that way in the future
 
@SagorAhmed Do you see that link as an error message, or do you see the actual screenshot?
 
or import loadash into my project and use the clone method
 
I am seeing the actual screenshot .
But i have an query .
Why the link has null ?
 
@Thaenor Taht does not look like a deep clone and I don't see much different of that from Object.assign, to be honest.
@SagorAhmed Really? Good for you, because I don't in my browser.
 
@Sheepy what my code reviewer said was "object.assign does not do deep clone, that's something you should look into".
 
9:37 AM
/me afk have to slience the lamb
 
Can you see that a new tab is opened and the screenshot is showing in that tab ? @Sheepy
 
@Sheepy You in SL ?
 
Hi all ,

i have a input text box with id= 'abcd ' and with value let's say 'Abhi' now on click of it i am calling a function boom() which have code some thin like this document..getElementById('abcd').value = 'omg'

what i want is when by value is cahnged to omg i want to trigger an ajax . any idea how can i do that ???
 
@SagorAhmed I get a new tab, which says the blob is not a valid image, and match what I expect.
@FlyingGambit SL?
/me afk walk the baby
 
But I am seeing the screenshot in new tab .
seriously
 
9:42 AM
Stackoverflow theme changed and it sucks
 
true @FlyingGambit
 
@Sheepy Second Life
 
guys ? can you help me out for that ?
 
hello?
how can we Getting Username and email in Twitter authentication from JavaScript
guys?
can u help me this isssue
 
I no understand
 
9:46 AM
i want to detect , when value of input element is cahnged by javascript ?
 
Using Twitter how can we authenticate username and email
mr@Abhi using like this document.getElementById("mytext").value = "My value";
 
@AbhiAdr onchange event
 
@Sheepy haha
 
@SagorAhmed Give up begging for help.
 
9:52 AM
@FlyingGambit but there is no events from browser side , i want to detect when some one directly do document.getElementById("mytext").value = "My value"; from browser console .
 
@AbhiAdr So when you change it, trigger it with dispatchEvent.
Or just call your change callback function manually.
 
@BenFortune I think he is trying to detect changes when someone else does it through console
 
@BenFortune i will give it a try .. i have not used dispatchEvent before txs :)
@FlyingGambit yes
 
Hai..
 
@Goutham Welcome to the JavaScript chat! Please review the room 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.
 
10:01 AM
!!> var var m = 0;
 
@FlyingGambit "SyntaxError: missing variable name"
 
@FlyingGambit Yeah, that's not going to happen
 
@AbhiAdr ^
 
so that i can't happen right ?
 
!!hang z
 
10:07 AM
@SagorAhmed t was already submitted
@SagorAhmed o was already submitted
@SagorAhmed You people suck. The word is photoconductivity
 
10:32 AM
If ajax is used to obtain necessary data and javascript takes over modification of a page, what place does JSP have then?
 
jsp doesn't have a relation with javascript
 
What? Isn't JSP done server-side?
 
it's a sorta template (if you use EL) to generate your DOM on server
used in java servlet / EE environments
 
JSP is used to generate dynamic contents on the server side. But since javascript takes over page modification, I don't see a necessity of JSP any more.
 
what hosting that support JSP?
 
10:38 AM
@ZhengquanBai what?
 
hi guys
 
is there a way to get the console on the hololens edge browser?
 
The question equates to "What place does server side rendering have considering page modification and navigation can be achieved through ajax and javascript?"
 
I don't get your question
are you saying that servers should only serve information (in f.e. JSON format) and page layout should all be handled by the client (i.e. javascript)?
 
10:46 AM
Yes
What's the harm?
What place does server side rendering have considering page modification and navigation being able to be achieved through ajax and javascript?
There's a grammar mistake in the previous sentence.
 
Crawlers, browser compatibility, other shit
 
Ugh, any knowledgeable React devs? I am getting this error:
Module not found: [CaseSensitivePathsPlugin] `/Users/dan/Documents/my-cpd/app/src/components/ResetPasswordForm` does not match the corresponding path on disk - File does not exist.

I ran $ cat on the above path and it does exist
 
@ZhengquanBai if there were no harm, then all webpages that you have been visiting should have generated the DOM by javascript while it's not the situation.
also, if you have pretty large content to parse at client side, then prepare for longer load time than generating it at server and responding with a document
 
11:01 AM
Meh, I just renamed the component and it kind of worked. Very bizzare.
 
@ZhengquanBai doesn't work without javascript
and it's slow
and it's stupid
 
sounds like you
 
11:17 AM
@KarelG , I spend almost the whole day in this
But I cant display the blob image in img tag .
 
Hello? Good evening all
 
@SagorAhmed You need to convert it to a base64 string IIRC
 
I am creating a Blob from outer html .
This is the code .
 
var blob = new Blob([screenshot.outerHTML], {
type: 'text/html'
});
Then how can I convert it o base64 string ?
@BenFortune
 
11:21 AM
any familiarity with artillery.io/docs/index.html people?
 
@littlepootis 😃
 
@SagorAhmed "data:text/html;base64," + btoa( screenshot.outerHTML )
 
Chrome had included an Add to Homescreen feature way back with release of Chrome 42. Is there any way to trigger the same action from the web app itself rather than letting the android chrome browser handle it for the app?
 
I'm typing on the mobile.
 
hi
 
11:24 AM
4 mins ago, by Ben Fortune
https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
 
@KarelG Any practices as to when to adopt which methodology?
 
I'm trying to get the checked value of a toggle on change. The associated _sendLimitApproval method is fired when toggled...but e.checked is null. Should I be getting a handle on the checked value otherwise?
*React.js
 
@Sheepy , I am using this code :
var encodedData = window.btoa(screenshot.outerHTML);
document.getElementById('image').setAttribute( 'src', 'data:image/png;base64,'+encodedData);
But this code shows an broken imagein img tag .
Where is the error ?
How can I solve this ?
 
0
Q: Artillery.io module to stress test socket.io server (based on node) - not working as expected

Gandalf the WhiteI am using Artillery module to stress test socket.io which is implemented on my expressjs server. After reading the documentation I tried making a demo request to take things forward but I haven't been able to communicate with specific channel. Sample YAML config file to make request config...

 
@BrianJ e.target?
 
11:29 AM
@BenFortune
 
Sagor. please don't ping everyone as it appears that you're not patient. We (3 persons so far) gave you some useful pointers of how-to. Why don't you follow these pointers? Do some efforts instead of waiting when someone of us gives you a code snippet on a golden platter.
 
leave comment with downvotes
Cheers!
 
@SagorAhmed I have told you twice today that rendering html as image would not work. Here is why: webpage is not image. You are getting html, the stuff that webpage is made of. But wepage is not image. You cannot ask photoshop to open a website as an image. Neither can your browser. Browser does not provide a way for you to capture screenshot on the webpage.
 
@ZhengquanBai the question doesn't make lots of sense. Maybe you can try to elaborate on that or expand that question.
 
@GandalftheWhite No thanks
 
11:30 AM
!!afk lunch
 
It isn't useful in that case, is it?
 
Thanks
I have understood .
 
@BenFortune hmmm... object HTMLInputElement]
 
@SagorAhmed The library that I sent you before will try to redraw the page to an image, to the best of its capability. It is not perfect - it does not understand every css - but it can give you a real image.
 
is what is returned..maybe e.target.checked?
 
11:33 AM
@BrianJ Yeah, I meant e.target.checked
 
You can always use refs, which is probably the preferred way
 
Can you give it again ?
 
@BenjaminGruenbaum Just seen that, crazy.
 
@SagorAhmed Google javascript screenshot library and it should be the first link, or close.
 
11:37 AM
I have done this before but can't remember anymore...
how to convert this into json
 
OMFG, I realized that Ben Fortune and Benjamin are two different people
 
many many thanks
@Sheepy
 
@SagorAhmed Good luck. Your code is not bad. Give yourself time to work on the problem and you should be able to solve it.
 
@Mathematics Pass an accept: application/json header
22
Q: how to return json format from ODATA?

wilI know ODATA can return json but not sure if I have to use an attribute or interface to do so. I want it to do just like http://odata.netflix.com/Catalog/Titles?$format=JSON but my odata service doesn't return JSON. When I call it like www.foo.com/service?$format=json, it just returns XML. What...

It's like you don't even try.
 
11:45 AM
first thing on google for "brainfuck interpreter" is copy's :D
 
@KendallFrey ooooo
 
Anyone here worked with Sencha Ext Js ?
 
10 years ago I guess
 
Well, can you remember working with some kind of grid filtering ?
 
@BenFortune no it's not like that
I have done this before, but I forgot how
 
11:52 AM
@W.Jack Whats the question ?
 
@BenFortune keeping it short... it's bit complicated then what is explained in answers, I think I know what I am missing now, let me try then I will explain in details
 
I have implemented a basic grid using Ext Js 4.
Now, I wanna add filtering option in my existing grids.
 
for the columns there should be a option called filterable: true
 
@Mathematics What are you talking about? I've given you a working answer.
 
Any React developers: I pose this question stackoverflow.com/questions/42248601/… - thanks :)
 
11:54 AM
I found some source code of gridfiltering.js . But I couldn't integrate with my existing project
 
@BenFortune "A supported MIME type could not be found that matches the acceptable MIME types for the request. The supported type(s) 'application/xml' do not match any of the acceptable MIME types 'application/json;odata=verbose'."
my wcf services are not returning JSON metadata
I had some code in my web services, which I can remember removing an year ago
 
yes @Vamsi
 
I think I can solve the issue in backend, so going through backups :|
 
Well that's completely different to what you actually asked.
 
11:57 AM
What's going on ??
 
@BenFortune yes, so your answer did helped :) but it's bit complicated then that ;)
13
Q: Enable WCF Data Service to accept/return JSON by default

IrwinI have a WCF Data Service that I'd like to return JSON by default for all operations. Is there a place I can set that in configuration/via service attributes?

I removed it, but I got no clue why I did :| years ago
 
1
Q: How to add local filtering option in basic grid using Ext Js 4.2?

W.JackI have developed a basic grid using Ext Js 4.2. Here's the output.. Now i wanna add filtering option to the columns in this grid. For example (=, >, <) filtering have to occur. I have found some source code like which might work but i am struggling where to add those javascript files. Here'...

 

« first day (2314 days earlier)      last day (2652 days later) »