qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
45,866,145
We are implementing a number of SDK's for our suite of hardware sensors. Having successfully got a working C API for one of our sensors, we are now starting the arduous task of testing the SDK to ensure that we haven't introduced any fatal bugs, memory leaks or race conditions. One of our engineers has reported that ...
2017/08/24
[ "https://Stackoverflow.com/questions/45866145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2321263/" ]
Also looking for the same. Have been browsing around with no results. Wrote them feedback but I doubt that they will do anything as the page seems so empty... Although I found that Amazon Alexa has all the needed documentation to access shopping lists and todo lists: <https://developer.amazon.com/docs/custom-skills/ac...
You can get the JSON from this endpoint, assuming you're authenticated. You'll have to pass the cookie and maybe a few other headers - not sure. But, it could get the job done... Sign into your account and go to <https://shoppinglist.google.com>. From there, open up your networking tab in your dev console, check the r...
45,866,145
We are implementing a number of SDK's for our suite of hardware sensors. Having successfully got a working C API for one of our sensors, we are now starting the arduous task of testing the SDK to ensure that we haven't introduced any fatal bugs, memory leaks or race conditions. One of our engineers has reported that ...
2017/08/24
[ "https://Stackoverflow.com/questions/45866145", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2321263/" ]
Also looking for the same. Have been browsing around with no results. Wrote them feedback but I doubt that they will do anything as the page seems so empty... Although I found that Amazon Alexa has all the needed documentation to access shopping lists and todo lists: <https://developer.amazon.com/docs/custom-skills/ac...
You can export shopping lists in a CSV format using <https://takeout.google.com>. A download link can be emailed or a file can be dropped in Drive, Dropbox etc. This can be configured to export every two months for 1 year. The data contains the name of the item, the quantity, if it is checked or not, and any additiona...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
Version control was always needed, even before you hacked together your "but, we backup really often!" kludge. Version control lets you publish those changes across files that belong to a logical function as a unit. If you need to review "what was necessary for case-insensitive sorting in that mask?", it tells you all...
As other people have said, "now" is always a good time to start using version control. There's so many benefits to using a good version control system it's almost a no brainer. You mention you use Mercurial. Like other distributed vcs, you can always initialize your own (private) repo and work there. Why not try that...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
As you describe it, you already have some sort of version control, though currently there are some issues with it compared to a typical version control: An intentional commit in version control indicates that the developer strongly believes that the current state of the system would build successfully. (There are exc...
There is a great deal of value in using version control even as an individual developer and it could be quite a bit simpler than the backup/file copy based system you have now. * Right now, you have the ability to get to older version of the code, but how do you find the version you want? * Just the ability to do a d...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
As you describe it, you already have some sort of version control, though currently there are some issues with it compared to a typical version control: An intentional commit in version control indicates that the developer strongly believes that the current state of the system would build successfully. (There are exc...
Version control was always needed, even before you hacked together your "but, we backup really often!" kludge. Version control lets you publish those changes across files that belong to a logical function as a unit. If you need to review "what was necessary for case-insensitive sorting in that mask?", it tells you all...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
Just my personal view: Version control is useful for anything that takes me more than half a day or that involves a lot of trial and error – or both, of course. If it involves two or more people who are not using the same keyboard and monitor all the time, it is essential. The cost of using a formal versioning system,...
As other people have said, "now" is always a good time to start using version control. There's so many benefits to using a good version control system it's almost a no brainer. You mention you use Mercurial. Like other distributed vcs, you can always initialize your own (private) repo and work there. Why not try that...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
As you describe it, you already have some sort of version control, though currently there are some issues with it compared to a typical version control: An intentional commit in version control indicates that the developer strongly believes that the current state of the system would build successfully. (There are exc...
In a **professional** environment where there is code written **you should always have** source control. There is always the danger of an interview candidate asking what you use for version control and refusing the position because of the lack of a reasonable version control system. Also... if you happen to be able...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
Just my personal view: Version control is useful for anything that takes me more than half a day or that involves a lot of trial and error – or both, of course. If it involves two or more people who are not using the same keyboard and monitor all the time, it is essential. The cost of using a formal versioning system,...
Version control was always needed, even before you hacked together your "but, we backup really often!" kludge. Version control lets you publish those changes across files that belong to a logical function as a unit. If you need to review "what was necessary for case-insensitive sorting in that mask?", it tells you all...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
In a **professional** environment where there is code written **you should always have** source control. There is always the danger of an interview candidate asking what you use for version control and refusing the position because of the lack of a reasonable version control system. Also... if you happen to be able...
Version control really is one of the most critical pieces of a functional development team. Aside from the standpoint that your code is always backed up, you are exposed to features such as commit messages that help you understand exactly what the person before you (or you yourself) did to a particular file. You can al...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
As other people have said, "now" is always a good time to start using version control. There's so many benefits to using a good version control system it's almost a no brainer. You mention you use Mercurial. Like other distributed vcs, you can always initialize your own (private) repo and work there. Why not try that...
Version control really is one of the most critical pieces of a functional development team. Aside from the standpoint that your code is always backed up, you are exposed to features such as commit messages that help you understand exactly what the person before you (or you yourself) did to a particular file. You can al...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
As you describe it, you already have some sort of version control, though currently there are some issues with it compared to a typical version control: An intentional commit in version control indicates that the developer strongly believes that the current state of the system would build successfully. (There are exc...
Version control really is one of the most critical pieces of a functional development team. Aside from the standpoint that your code is always backed up, you are exposed to features such as commit messages that help you understand exactly what the person before you (or you yourself) did to a particular file. You can al...
223,027
I work in embedded systems. Right now, my organization has two full-time programmers and two occasional programmers. It's rare that the same project is worked on by two programmers. All code is stored on a network drive. There are folders for the current production code, another folder for the source for every released...
2014/01/03
[ "https://softwareengineering.stackexchange.com/questions/223027", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/101501/" ]
There is a great deal of value in using version control even as an individual developer and it could be quite a bit simpler than the backup/file copy based system you have now. * Right now, you have the ability to get to older version of the code, but how do you find the version you want? * Just the ability to do a d...
Version control really is one of the most critical pieces of a functional development team. Aside from the standpoint that your code is always backed up, you are exposed to features such as commit messages that help you understand exactly what the person before you (or you yourself) did to a particular file. You can al...
29,535,566
We have pages which have been split into multiple pages as they are too in depth. The structure currently... ``` Page (www.domain.com/page) ``` We have split this up like so... ``` Page + Subtitle (www.new-domain.com/page-subtitle-1) Page + Subtitle (www.new-domain.com/page-subtitle-2) Page + Subtitle (www.new-do...
2015/04/09
[ "https://Stackoverflow.com/questions/29535566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
IntelliJ doesn't support Grails 3 yet - it has been requested [in their bug tracker](https://youtrack.jetbrains.com/issue/IDEA-136970). You can easily run the app from a commandline and use the IDE as an editor.
Intellij Idea 15 supports Grails 3 or higher. You can see from the following: <https://www.jetbrains.com/help/idea/2016.1/getting-started-with-grails-3.html>
2,020,608
I have problem with JDBC application that uses MONEY data type. When I insert into MONEY column: ``` insert into _money_test (amt) values ('123.45') ``` I got exception: ``` Character to numeric conversion error ``` The same SQL works from native Windows application using ODBC driver. I live in Poland and have Po...
2010/01/07
[ "https://Stackoverflow.com/questions/2020608", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22595/" ]
The [Informix JDBC data type mapping documentation](http://publib.boulder.ibm.com/infocenter/idshelp/v115/index.jsp?topic=/com.ibm.jccids.doc/com.ibm.db2.luw.apdv.java.doc/doc/rjvjdata.htm) says the following: > > java.math.BigDecimal           MONEY(p,s)1 > > > Thus, you need to use [`java.math.BigDecimal`](http...
I solved this problem by using PreparedStatement. I think that "Character to numeric conversion error" is a bug in Informix JDBC driver. In other database I often use, PostgreSQL, there is no difference if I run query via native JDBC driver or via JDBC-ODBC bridge. I found that PostgreSQL do not accept numeric form `1...
12,839,028
Please take a look at my fiddle: <http://jsfiddle.net/wWHz4/> This is what I made so far with my little bit of jQuery knowledge. I want the following: When I click\* on a button of a selected title, the other titles have to fade or toggle\* away. Then animate\* the selected title to the left (instead of static jumpin...
2012/10/11
[ "https://Stackoverflow.com/questions/12839028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1360601/" ]
To toggle text you can do like this ``` $('.group .title > div a.button').click(function(){ $(this).html(($(this).html() == "more...")?"back":"more..."); $(this).parent().siblings().slideToggle("slow"); $(this).parent().parent().siblings().slideToggle("slow"); }); ``` Everything else is working in your d...
You can change the properties of the `<a>` tags using jquery `.html()` [ <http://api.jquery.com/html/> ] function also you can place a `<div>` which contains the full text and toggle the state of `display` of that div from `none` to `block` and back to show the full text. You can have a look at the accordian code usin...
12,839,028
Please take a look at my fiddle: <http://jsfiddle.net/wWHz4/> This is what I made so far with my little bit of jQuery knowledge. I want the following: When I click\* on a button of a selected title, the other titles have to fade or toggle\* away. Then animate\* the selected title to the left (instead of static jumpin...
2012/10/11
[ "https://Stackoverflow.com/questions/12839028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1360601/" ]
Replace this with js code ``` $('.group .title > div a.button').click(function() { if ($(this).parent().siblings().is(":visible")) { $(this).text('back'); } else { $(this).text('more'); } $(this).parent().siblings().slideToggle("slow"); var indexcount = $(this).parent().index() + 1;...
You can change the properties of the `<a>` tags using jquery `.html()` [ <http://api.jquery.com/html/> ] function also you can place a `<div>` which contains the full text and toggle the state of `display` of that div from `none` to `block` and back to show the full text. You can have a look at the accordian code usin...
12,839,028
Please take a look at my fiddle: <http://jsfiddle.net/wWHz4/> This is what I made so far with my little bit of jQuery knowledge. I want the following: When I click\* on a button of a selected title, the other titles have to fade or toggle\* away. Then animate\* the selected title to the left (instead of static jumpin...
2012/10/11
[ "https://Stackoverflow.com/questions/12839028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1360601/" ]
I got it working like how I wanted it to be: ``` $('.group .title > div a.button').click(function() { var self = this; var speed = 500; var indexcount = $(self).parent().index() + 1; var subcontent = $('.content').find('.columns:nth-child(' + indexcount + ')'); if ($(self).parent().siblings().is(...
You can change the properties of the `<a>` tags using jquery `.html()` [ <http://api.jquery.com/html/> ] function also you can place a `<div>` which contains the full text and toggle the state of `display` of that div from `none` to `block` and back to show the full text. You can have a look at the accordian code usin...
12,839,028
Please take a look at my fiddle: <http://jsfiddle.net/wWHz4/> This is what I made so far with my little bit of jQuery knowledge. I want the following: When I click\* on a button of a selected title, the other titles have to fade or toggle\* away. Then animate\* the selected title to the left (instead of static jumpin...
2012/10/11
[ "https://Stackoverflow.com/questions/12839028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1360601/" ]
Replace this with js code ``` $('.group .title > div a.button').click(function() { if ($(this).parent().siblings().is(":visible")) { $(this).text('back'); } else { $(this).text('more'); } $(this).parent().siblings().slideToggle("slow"); var indexcount = $(this).parent().index() + 1;...
To toggle text you can do like this ``` $('.group .title > div a.button').click(function(){ $(this).html(($(this).html() == "more...")?"back":"more..."); $(this).parent().siblings().slideToggle("slow"); $(this).parent().parent().siblings().slideToggle("slow"); }); ``` Everything else is working in your d...
12,839,028
Please take a look at my fiddle: <http://jsfiddle.net/wWHz4/> This is what I made so far with my little bit of jQuery knowledge. I want the following: When I click\* on a button of a selected title, the other titles have to fade or toggle\* away. Then animate\* the selected title to the left (instead of static jumpin...
2012/10/11
[ "https://Stackoverflow.com/questions/12839028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1360601/" ]
Replace this with js code ``` $('.group .title > div a.button').click(function() { if ($(this).parent().siblings().is(":visible")) { $(this).text('back'); } else { $(this).text('more'); } $(this).parent().siblings().slideToggle("slow"); var indexcount = $(this).parent().index() + 1;...
I got it working like how I wanted it to be: ``` $('.group .title > div a.button').click(function() { var self = this; var speed = 500; var indexcount = $(self).parent().index() + 1; var subcontent = $('.content').find('.columns:nth-child(' + indexcount + ')'); if ($(self).parent().siblings().is(...
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
You cannot create a file greater than 4GiB (2^32-1 bytes) on FAT32 partition, period. So if you want to use that image file with some VM software, you are probably out of luck, as I known no VMs which can work around limitations of braindead filesystems. But if you are just trying to store the image there temporarily,...
Look into using the 'split' command to split the files. I'm not sure if you are writing directly to the device (dd if=/dev/foo of=/dev/bar) or writing to an image on a mounted filesystem.
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
Look into using the 'split' command to split the files. I'm not sure if you are writing directly to the device (dd if=/dev/foo of=/dev/bar) or writing to an image on a mounted filesystem.
If the drive is empty ... reformat that drive to ext3! Unless you have other plans, just my 2pence
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
how about <http://michi-bs.blogspot.com/2008/06/hdd-or-partition-backup-with-dd.html> ``` # dd if=/dev/hda1 | gzip -c | split -b 2000m - /mnt/hdc1/backup.img.gz. ```
Look into using the 'split' command to split the files. I'm not sure if you are writing directly to the device (dd if=/dev/foo of=/dev/bar) or writing to an image on a mounted filesystem.
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
You cannot create a file greater than 4GiB (2^32-1 bytes) on FAT32 partition, period. So if you want to use that image file with some VM software, you are probably out of luck, as I known no VMs which can work around limitations of braindead filesystems. But if you are just trying to store the image there temporarily,...
If the drive is empty ... reformat that drive to ext3! Unless you have other plans, just my 2pence
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
how about <http://michi-bs.blogspot.com/2008/06/hdd-or-partition-backup-with-dd.html> ``` # dd if=/dev/hda1 | gzip -c | split -b 2000m - /mnt/hdc1/backup.img.gz. ```
You cannot create a file greater than 4GiB (2^32-1 bytes) on FAT32 partition, period. So if you want to use that image file with some VM software, you are probably out of luck, as I known no VMs which can work around limitations of braindead filesystems. But if you are just trying to store the image there temporarily,...
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
You cannot create a file greater than 4GiB (2^32-1 bytes) on FAT32 partition, period. So if you want to use that image file with some VM software, you are probably out of luck, as I known no VMs which can work around limitations of braindead filesystems. But if you are just trying to store the image there temporarily,...
My advice here would be to use gparted or similar partitioning or disk management software to resize the fat32 partition and create the space freed up as an ext2 or ntfs formatted partition. Get the best of both worlds.
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
how about <http://michi-bs.blogspot.com/2008/06/hdd-or-partition-backup-with-dd.html> ``` # dd if=/dev/hda1 | gzip -c | split -b 2000m - /mnt/hdc1/backup.img.gz. ```
If the drive is empty ... reformat that drive to ext3! Unless you have other plans, just my 2pence
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
My advice here would be to use gparted or similar partitioning or disk management software to resize the fat32 partition and create the space freed up as an ext2 or ntfs formatted partition. Get the best of both worlds.
If the drive is empty ... reformat that drive to ext3! Unless you have other plans, just my 2pence
205,623
I need a recommendation for a email relay service to use on multiple domains with C#. I don't want to worry about blacklisting and am looking for increase deliverability on confirmation emails etc. Currently, trialling SocketLabs (<https://www.socketlabs.com/od/signup>) which works perfectly but limits you too 500 em...
2010/11/24
[ "https://serverfault.com/questions/205623", "https://serverfault.com", "https://serverfault.com/users/28661/" ]
how about <http://michi-bs.blogspot.com/2008/06/hdd-or-partition-backup-with-dd.html> ``` # dd if=/dev/hda1 | gzip -c | split -b 2000m - /mnt/hdc1/backup.img.gz. ```
My advice here would be to use gparted or similar partitioning or disk management software to resize the fat32 partition and create the space freed up as an ext2 or ntfs formatted partition. Get the best of both worlds.
36,969,527
For my Javascript course I got this code: ``` for (var i in window.navigator) { document.getElementById('divResult').innerHTML += i + ': ' + window.navigator[i] + '<br />'; } </script> ``` The teacher (online) wants me to limit the results into maximal 10. For me this is a big puzzle. From other ques...
2016/05/01
[ "https://Stackoverflow.com/questions/36969527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6277052/" ]
Just set a counter. In each iteration you increase the counter and when the counter reaches 10 you simply break out of your loop Code: ``` // Since we're going to access this div multiple times it's best to // store it outside of the for loop. var output = document.getElementById('divResult'); var counter = 0; for (...
The teacher came back with an answer for my for..in array problem: ``` <script> var navigatorArray = []; for (var i in window.navigator) { navigatorArray.push(window.navigator[i]); } navigatorArray.sort(); console.log(navigatorArray); var htmlString = ''; for (var j = 0; j < navigatorArray...
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
We can also try `git status` command and if the output is like : `fatal: Not a git repository (or any of the parent directories): .git` Then, the directory is not a git repository.
Adding to @Walk's comments, `git status` will throw fatal message if its not a repo. `echo $?` will help to capture of its an ERROR or not. If its a git repo then `echo $?` will be 0 else 128 will be the value
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Any directory in the system could be a git working copy. You can use an directory as if it contained a `.git` subdirectory by setting the `GIT_DIR` and `GIT_WORK_TREE` environment variables to point at an actual `.git` directory and the root of your working copy, or use the `--git-dir` and `--work-tree` options instead...
In unix/linux systems, you can run `git status` and check the exit code `echo $?`. Anything other than 0 would tell you aren't in a git repo
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
We can also try `git status` command and if the output is like : `fatal: Not a git repository (or any of the parent directories): .git` Then, the directory is not a git repository.
Consider `git rev-parse --is-inside-work-tree` as well here (with the appropriate `-C` first as well if/as desired) to check whether this is a *working tree*. This allows you to distinguish between the "working tree" and "bare repository" cases: ``` $ git -C .git rev-parse && echo $? 0 $ git -C .git rev-parse --is-ins...
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Any directory in the system could be a git working copy. You can use an directory as if it contained a `.git` subdirectory by setting the `GIT_DIR` and `GIT_WORK_TREE` environment variables to point at an actual `.git` directory and the root of your working copy, or use the `--git-dir` and `--work-tree` options instead...
Adding to @Walk's comments, `git status` will throw fatal message if its not a repo. `echo $?` will help to capture of its an ERROR or not. If its a git repo then `echo $?` will be 0 else 128 will be the value
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Use `git -C <path> rev-parse`. It will return 0 if the directory at `<path>` is a git repository and an error code otherwise. **Further Reading**: * [`rev-parse`](https://git-scm.com/docs/git-rev-parse) * [`-C <path>`](https://git-scm.com/docs/git#Documentation/git.txt--Cltpathgt)
In unix/linux systems, you can run `git status` and check the exit code `echo $?`. Anything other than 0 would tell you aren't in a git repo
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Adding to @Walk's comments, `git status` will throw fatal message if its not a repo. `echo $?` will help to capture of its an ERROR or not. If its a git repo then `echo $?` will be 0 else 128 will be the value
In unix/linux systems, you can run `git status` and check the exit code `echo $?`. Anything other than 0 would tell you aren't in a git repo
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Use `git -C <path> rev-parse`. It will return 0 if the directory at `<path>` is a git repository and an error code otherwise. **Further Reading**: * [`rev-parse`](https://git-scm.com/docs/git-rev-parse) * [`-C <path>`](https://git-scm.com/docs/git#Documentation/git.txt--Cltpathgt)
Adding to @Walk's comments, `git status` will throw fatal message if its not a repo. `echo $?` will help to capture of its an ERROR or not. If its a git repo then `echo $?` will be 0 else 128 will be the value
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Consider `git rev-parse --is-inside-work-tree` as well here (with the appropriate `-C` first as well if/as desired) to check whether this is a *working tree*. This allows you to distinguish between the "working tree" and "bare repository" cases: ``` $ git -C .git rev-parse && echo $? 0 $ git -C .git rev-parse --is-ins...
In unix/linux systems, you can run `git status` and check the exit code `echo $?`. Anything other than 0 would tell you aren't in a git repo
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
We can also try `git status` command and if the output is like : `fatal: Not a git repository (or any of the parent directories): .git` Then, the directory is not a git repository.
Any directory in the system could be a git working copy. You can use an directory as if it contained a `.git` subdirectory by setting the `GIT_DIR` and `GIT_WORK_TREE` environment variables to point at an actual `.git` directory and the root of your working copy, or use the `--git-dir` and `--work-tree` options instead...
39,518,160
i'm scraping data from a website and then i want to show it as json in the browser, however even though when i `console.log()` recipes array it show the data, but it does not send anything to the browser how come it does not show the json array in browser? ``` router.get('/scrape', function(req, res, next) { res.js...
2016/09/15
[ "https://Stackoverflow.com/questions/39518160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4034437/" ]
Use `git -C <path> rev-parse`. It will return 0 if the directory at `<path>` is a git repository and an error code otherwise. **Further Reading**: * [`rev-parse`](https://git-scm.com/docs/git-rev-parse) * [`-C <path>`](https://git-scm.com/docs/git#Documentation/git.txt--Cltpathgt)
Consider `git rev-parse --is-inside-work-tree` as well here (with the appropriate `-C` first as well if/as desired) to check whether this is a *working tree*. This allows you to distinguish between the "working tree" and "bare repository" cases: ``` $ git -C .git rev-parse && echo $? 0 $ git -C .git rev-parse --is-ins...
37,105,299
I'm having a problem with my new table filtering function, the problem happens when selecting an offer to filter by - rather than showing the rows from all the filterable data inside the table the filter filters the visible rows only minus the data hidden by pagination. On top of that when I click more to show more ro...
2016/05/08
[ "https://Stackoverflow.com/questions/37105299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4690404/" ]
Your code is needlessly complicated. try to break it down into the necessary steps. About your essential problem: do everything in one go (read below to fully understand my approach): ``` function onFilterChange() { filterProducts(); resetPagination(); showNextPage(); } ``` also improve your data structu...
I solved the problem myself by starting from scratch and using the datatables library. I'm still working on it but the code is a lot simpler to deal with. The only problem I face now is changing the pagination style. <https://jsfiddle.net/6k0bshb6/16/> ``` // This function is for displaying data from HTML "data-chil...
79,378
I may not understand how DDoS attacks work at this point, but Im just wondering if this would work for a game server? **IF each time a new connection is attempted and the packet or connection type is not similar to that of a normal player, then block the connection?** I dont see any reason for the server to allow co...
2015/01/17
[ "https://security.stackexchange.com/questions/79378", "https://security.stackexchange.com", "https://security.stackexchange.com/users/56920/" ]
A DDoS attack does not necessarily saturate the network capacity, any resource which can be exhausted to result in the application being unable to serve requests can be used to achieve a DoS. As you say: > > The only downside I see is that the CPU would be put under a lot of stress with large attacks. > > > The ...
DDOS attacks are not just against the Server resources they are against bandwidth too. The most recent attacks had bandwidth consumption of up to 1 Tbps. Blocking IP's is not going to help as the firewall still has to drop large amount of packets/connections from multiple sources and within a short amount of time the ...
79,378
I may not understand how DDoS attacks work at this point, but Im just wondering if this would work for a game server? **IF each time a new connection is attempted and the packet or connection type is not similar to that of a normal player, then block the connection?** I dont see any reason for the server to allow co...
2015/01/17
[ "https://security.stackexchange.com/questions/79378", "https://security.stackexchange.com", "https://security.stackexchange.com/users/56920/" ]
A DDoS attack does not necessarily saturate the network capacity, any resource which can be exhausted to result in the application being unable to serve requests can be used to achieve a DoS. As you say: > > The only downside I see is that the CPU would be put under a lot of stress with large attacks. > > > The ...
If you read stevens, you'll realise the network socket is defined in part by the source socket port and the receiver socket. So having one open port is not a panacea for the ddos. At this point, what you're trying to balance is the rate at which you can identify and remove resource hogs vs the rate of incoming requests...
79,378
I may not understand how DDoS attacks work at this point, but Im just wondering if this would work for a game server? **IF each time a new connection is attempted and the packet or connection type is not similar to that of a normal player, then block the connection?** I dont see any reason for the server to allow co...
2015/01/17
[ "https://security.stackexchange.com/questions/79378", "https://security.stackexchange.com", "https://security.stackexchange.com/users/56920/" ]
A DDoS attack does not necessarily saturate the network capacity, any resource which can be exhausted to result in the application being unable to serve requests can be used to achieve a DoS. As you say: > > The only downside I see is that the CPU would be put under a lot of stress with large attacks. > > > The ...
TL;DR Powerful hardware is probably the only defense for full-scale DDoS attacks. Blocking users IP can help, but can also backfire, since actual players might be used in DDoS against you without knowing it. Keep server connection handling fast and lightweight, to avoid adding extra ways they can attack. First of all...
79,378
I may not understand how DDoS attacks work at this point, but Im just wondering if this would work for a game server? **IF each time a new connection is attempted and the packet or connection type is not similar to that of a normal player, then block the connection?** I dont see any reason for the server to allow co...
2015/01/17
[ "https://security.stackexchange.com/questions/79378", "https://security.stackexchange.com", "https://security.stackexchange.com/users/56920/" ]
DDOS attacks are not just against the Server resources they are against bandwidth too. The most recent attacks had bandwidth consumption of up to 1 Tbps. Blocking IP's is not going to help as the firewall still has to drop large amount of packets/connections from multiple sources and within a short amount of time the ...
If you read stevens, you'll realise the network socket is defined in part by the source socket port and the receiver socket. So having one open port is not a panacea for the ddos. At this point, what you're trying to balance is the rate at which you can identify and remove resource hogs vs the rate of incoming requests...
79,378
I may not understand how DDoS attacks work at this point, but Im just wondering if this would work for a game server? **IF each time a new connection is attempted and the packet or connection type is not similar to that of a normal player, then block the connection?** I dont see any reason for the server to allow co...
2015/01/17
[ "https://security.stackexchange.com/questions/79378", "https://security.stackexchange.com", "https://security.stackexchange.com/users/56920/" ]
TL;DR Powerful hardware is probably the only defense for full-scale DDoS attacks. Blocking users IP can help, but can also backfire, since actual players might be used in DDoS against you without knowing it. Keep server connection handling fast and lightweight, to avoid adding extra ways they can attack. First of all...
If you read stevens, you'll realise the network socket is defined in part by the source socket port and the receiver socket. So having one open port is not a panacea for the ddos. At this point, what you're trying to balance is the rate at which you can identify and remove resource hogs vs the rate of incoming requests...
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
If you add parens it's easier to read (and understand). The logical comparison operator `!=` precedes the assignment operator `=`: ``` base.DialogResult = (this.Result != null); ``` The same statement, even more verbose: ``` if (this.Result != null) base.DialogResult = true; else base.DialogResult = false; ...
`this.Result != null` evaluates to a boolean, `true` or `false`. The result of the evaluation is set in the `DialogResult` member of the base class. Not strange at all, it's just an assignment.
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
If you add parens it's easier to read (and understand). The logical comparison operator `!=` precedes the assignment operator `=`: ``` base.DialogResult = (this.Result != null); ``` The same statement, even more verbose: ``` if (this.Result != null) base.DialogResult = true; else base.DialogResult = false; ...
The `!=` (not equal) operator has precedence over the `=` (assignment) operator.
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
If you add parens it's easier to read (and understand). The logical comparison operator `!=` precedes the assignment operator `=`: ``` base.DialogResult = (this.Result != null); ``` The same statement, even more verbose: ``` if (this.Result != null) base.DialogResult = true; else base.DialogResult = false; ...
Thats simple, basically it assigns the result of the expression ``` this.Result != null ``` to ``` base.DialogResult ``` the expression uses the in-equality operator, so it returns either true or false, depending on wether this.Result is null or not
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
If you add parens it's easier to read (and understand). The logical comparison operator `!=` precedes the assignment operator `=`: ``` base.DialogResult = (this.Result != null); ``` The same statement, even more verbose: ``` if (this.Result != null) base.DialogResult = true; else base.DialogResult = false; ...
That means: ``` bool g = (this.Result != null); this.DialogResult = g; ```
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
`this.Result != null` evaluates to a boolean, `true` or `false`. The result of the evaluation is set in the `DialogResult` member of the base class. Not strange at all, it's just an assignment.
That means: ``` bool g = (this.Result != null); this.DialogResult = g; ```
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
The `!=` (not equal) operator has precedence over the `=` (assignment) operator.
That means: ``` bool g = (this.Result != null); this.DialogResult = g; ```
7,347,560
I just saw this in a project I downloaded from Code Project: ``` base.DialogResult = this.Result != null; ``` I don't consider myself new to C# but this one is new to me. Can anyone tell me what's going on with this statement? **Edit** Great answers, thanks. I've just never used that before.
2011/09/08
[ "https://Stackoverflow.com/questions/7347560", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698699/" ]
Thats simple, basically it assigns the result of the expression ``` this.Result != null ``` to ``` base.DialogResult ``` the expression uses the in-equality operator, so it returns either true or false, depending on wether this.Result is null or not
That means: ``` bool g = (this.Result != null); this.DialogResult = g; ```
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
For those still looking for an answer, here's how I managed to get the perfect solution for me. I used iCalToolkit to create a calendar object. It's important to make sure all the relevant fields are set up (organizer and attendees with RSVP). Initially I was using the Postmark API service to send my emails but this ...
It should be possible as long as you can use SOAP in Node and also if you can use NTLM authentication for Exchange with Node. I believe there are modules for each. I found this [blog](https://www.howtoforge.com/talking-soap-with-exchange) very helpful when designing a similar system using PHP
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
If you do not want to use smtp server approach in earlier accepted solution, you have Exchange focused solution available. Whats wrong in current accepted answer? it does not create a meeting in sender's Calendar, you do not have ownership of the meeting item for further modification by the sender Outlook/OWA. here i...
It should be possible as long as you can use SOAP in Node and also if you can use NTLM authentication for Exchange with Node. I believe there are modules for each. I found this [blog](https://www.howtoforge.com/talking-soap-with-exchange) very helpful when designing a similar system using PHP
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
Instead of using 'ical-generator', I used 'ical-toolkit' to build a calender invite event. Using this, the invite directly gets appended in the email instead of the attached .ics file object. Here is a sample code: ``` const icalToolkit = require("ical-toolkit"); //Create a builder var builder = icalToolkit.createIc...
It should be possible as long as you can use SOAP in Node and also if you can use NTLM authentication for Exchange with Node. I believe there are modules for each. I found this [blog](https://www.howtoforge.com/talking-soap-with-exchange) very helpful when designing a similar system using PHP
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
For those still looking for an answer, here's how I managed to get the perfect solution for me. I used iCalToolkit to create a calendar object. It's important to make sure all the relevant fields are set up (organizer and attendees with RSVP). Initially I was using the Postmark API service to send my emails but this ...
If you do not want to use smtp server approach in earlier accepted solution, you have Exchange focused solution available. Whats wrong in current accepted answer? it does not create a meeting in sender's Calendar, you do not have ownership of the meeting item for further modification by the sender Outlook/OWA. here i...
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
For those still looking for an answer, here's how I managed to get the perfect solution for me. I used iCalToolkit to create a calendar object. It's important to make sure all the relevant fields are set up (organizer and attendees with RSVP). Initially I was using the Postmark API service to send my emails but this ...
Instead of using 'ical-generator', I used 'ical-toolkit' to build a calender invite event. Using this, the invite directly gets appended in the email instead of the attached .ics file object. Here is a sample code: ``` const icalToolkit = require("ical-toolkit"); //Create a builder var builder = icalToolkit.createIc...
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
For those still looking for an answer, here's how I managed to get the perfect solution for me. I used iCalToolkit to create a calendar object. It's important to make sure all the relevant fields are set up (organizer and attendees with RSVP). Initially I was using the Postmark API service to send my emails but this ...
Please check the following sample: ```js const options = { authProvider, }; const client = Client.init(options); const onlineMeeting = { startDateTime: '2019-07-12T14:30:34.2444915-07:00', endDateTime: '2019-07-12T15:00:34.2464912-07:00', subject: 'User Token Meeting' }; await client.api('/me/onlineMeetin...
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
If you do not want to use smtp server approach in earlier accepted solution, you have Exchange focused solution available. Whats wrong in current accepted answer? it does not create a meeting in sender's Calendar, you do not have ownership of the meeting item for further modification by the sender Outlook/OWA. here i...
Instead of using 'ical-generator', I used 'ical-toolkit' to build a calender invite event. Using this, the invite directly gets appended in the email instead of the attached .ics file object. Here is a sample code: ``` const icalToolkit = require("ical-toolkit"); //Create a builder var builder = icalToolkit.createIc...
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
If you do not want to use smtp server approach in earlier accepted solution, you have Exchange focused solution available. Whats wrong in current accepted answer? it does not create a meeting in sender's Calendar, you do not have ownership of the meeting item for further modification by the sender Outlook/OWA. here i...
Please check the following sample: ```js const options = { authProvider, }; const client = Client.init(options); const onlineMeeting = { startDateTime: '2019-07-12T14:30:34.2444915-07:00', endDateTime: '2019-07-12T15:00:34.2464912-07:00', subject: 'User Token Meeting' }; await client.api('/me/onlineMeetin...
31,082,000
I am developing a very basic calendar with Angular and Node and I haven't found any code on this. Workflow is the following : create an event, input the recipient's e-mail address, validate the event. This triggers an e-mail sent to the recipient. The mail should be in the outlook meeting request format (not an attac...
2015/06/26
[ "https://Stackoverflow.com/questions/31082000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3584541/" ]
Instead of using 'ical-generator', I used 'ical-toolkit' to build a calender invite event. Using this, the invite directly gets appended in the email instead of the attached .ics file object. Here is a sample code: ``` const icalToolkit = require("ical-toolkit"); //Create a builder var builder = icalToolkit.createIc...
Please check the following sample: ```js const options = { authProvider, }; const client = Client.init(options); const onlineMeeting = { startDateTime: '2019-07-12T14:30:34.2444915-07:00', endDateTime: '2019-07-12T15:00:34.2464912-07:00', subject: 'User Token Meeting' }; await client.api('/me/onlineMeetin...
294,462
I recently bought a 4K monitor and love the screen real estate. But the standard fonts are becoming a bit too small to read. So I plan on writing a script in Keyboard Maestro to change the default PageZoom in Safari to 125% when I press a button. I have figured out that I can set the pagezoom with this command in the ...
2017/08/07
[ "https://apple.stackexchange.com/questions/294462", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/130171/" ]
No, it is not bad to have sound check enabled in iTunes. Having it enabled does not make the sound quality of songs worse. Sound Check works simply by dynamically raising or lowering the playback volume, just as you yourself can raise and lower the playback volume in iTunes without affecting sound quality. iTunes ra...
I was experiencing distortion on both headphones and via airplay (when playing music from my iPhone). When investigating, I discovered that sound check was on. I turned it off and the distortion went away. The tracks where I noticed this were: Field of Dreams, opening credits (track 1). Star Trek V, opening credits (t...
294,462
I recently bought a 4K monitor and love the screen real estate. But the standard fonts are becoming a bit too small to read. So I plan on writing a script in Keyboard Maestro to change the default PageZoom in Safari to 125% when I press a button. I have figured out that I can set the pagezoom with this command in the ...
2017/08/07
[ "https://apple.stackexchange.com/questions/294462", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/130171/" ]
No, it is not bad to have sound check enabled in iTunes. Having it enabled does not make the sound quality of songs worse. Sound Check works simply by dynamically raising or lowering the playback volume, just as you yourself can raise and lower the playback volume in iTunes without affecting sound quality. iTunes ra...
I hate this option, by default it was on and I was thinking why audio quality is that poor, after while I found that option and after I turned it off I have a better life since then!
294,462
I recently bought a 4K monitor and love the screen real estate. But the standard fonts are becoming a bit too small to read. So I plan on writing a script in Keyboard Maestro to change the default PageZoom in Safari to 125% when I press a button. I have figured out that I can set the pagezoom with this command in the ...
2017/08/07
[ "https://apple.stackexchange.com/questions/294462", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/130171/" ]
I was experiencing distortion on both headphones and via airplay (when playing music from my iPhone). When investigating, I discovered that sound check was on. I turned it off and the distortion went away. The tracks where I noticed this were: Field of Dreams, opening credits (track 1). Star Trek V, opening credits (t...
I hate this option, by default it was on and I was thinking why audio quality is that poor, after while I found that option and after I turned it off I have a better life since then!
58,139,849
I'm trying to insert a List of Users to the Sembast Database in Flutter. But this does not work - I always get the following Error: ``` Exception has occurred. _TypeError (type 'List<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>') ``` Just adding one User - works for me. I just have a problem in ad...
2019/09/27
[ "https://Stackoverflow.com/questions/58139849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9020285/" ]
I think the issue is just that jsonDecode is not of the expected type. You should consider casting using a function such as: ```dart /// This properly cast a decoded json list of object List<Map<String, dynamic>> asMapList(dynamic list) { return (list as List)?.cast<Map<String, dynamic>>(); } ``` A simple test lik...
What if you use a foreach and insert one at a time? I know it may not be what you are looking for but it is a way to keep working until you find a way to do it! ``` Future insertAll(List<Users> users) async { print(jsonEncode(users)); users.foreach((user) async{ // insert here }); } ```
58,139,849
I'm trying to insert a List of Users to the Sembast Database in Flutter. But this does not work - I always get the following Error: ``` Exception has occurred. _TypeError (type 'List<dynamic>' is not a subtype of type 'List<Map<String, dynamic>>') ``` Just adding one User - works for me. I just have a problem in ad...
2019/09/27
[ "https://Stackoverflow.com/questions/58139849", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9020285/" ]
I think the issue is just that jsonDecode is not of the expected type. You should consider casting using a function such as: ```dart /// This properly cast a decoded json list of object List<Map<String, dynamic>> asMapList(dynamic list) { return (list as List)?.cast<Map<String, dynamic>>(); } ``` A simple test lik...
1 - You could retype your `User` class, because your error is because `Users` is typed as a `List<dynamic>` and you are passing and map. 2 - You could add a field in the `User` class : `List<Map<dynamic, dynamic>>` or simply use the `.add()` method. I strongly recommend to use `.add()`
51,746,995
Is it possible to add some metrics to a Java system that will return the version number as a string for the application that is monitored? I am aiming for a dashboard where each pod, running a Java application inside a Docker container, in a Kubernetes cluster is monitored and the current version of each Java applicat...
2018/08/08
[ "https://Stackoverflow.com/questions/51746995", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2731545/" ]
In your application, you can make available a Gauge metric that uses labels to export e.g. a version number or commit/build hash and then set the value of the gauge to `1`. For example, this is how the `redis_exporter` exports information about a redis instance: ``` # HELP redis_instance_info Information about the Re...
Expanding on the idea of @Oliver I'm adding a sample java class which exposes the currently used application version, git branch and git commit id to the Prometheus metrics endpoint after the application is started/ready. This assumes that you have a spring boot app with prometheus metrics enabled as an actuator endpo...
9,079
Am I missing some dependency on the server? cURL is in php-xml is in etc. I am trying to export an invoice to PDG and getting this error: Fatal error: Class 'DOMDocument' not found in /MY-PATH/htdocs/system/expressionengine/third\_party/store/vendor/dompdf/include/dompdf.cls.php on line 481 Hope you can help - Thank...
2013/04/06
[ "https://expressionengine.stackexchange.com/questions/9079", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/855/" ]
`DOMDocument` is a built in PHP class. It sounds like the PHP DOM extension is disabled on your server - you will probably need to talk to your host about enabling it (it is enabled by default in PHP and I've never seen a host without it before). To check this, you can visit Tools > Utilities > PHP Info in the EE cont...
Hmmm strange. Have you checked that the file it mentions is actually there? If it is and it has read access then my guess would be that it's more of a memory issue. PDF generation can require a surprisingly large amount of memory (a min of 256MB) and I've had similar problems in the past. Make sure that you have at l...
9,079
Am I missing some dependency on the server? cURL is in php-xml is in etc. I am trying to export an invoice to PDG and getting this error: Fatal error: Class 'DOMDocument' not found in /MY-PATH/htdocs/system/expressionengine/third\_party/store/vendor/dompdf/include/dompdf.cls.php on line 481 Hope you can help - Thank...
2013/04/06
[ "https://expressionengine.stackexchange.com/questions/9079", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/855/" ]
Hmmm strange. Have you checked that the file it mentions is actually there? If it is and it has read access then my guess would be that it's more of a memory issue. PDF generation can require a surprisingly large amount of memory (a min of 256MB) and I've had similar problems in the past. Make sure that you have at l...
si usas centos estas lineas son la solución: Fatal error: Class 'DOMDocument' not found in /var/www/html/ include/ dompdf.cls.php on line 177 Solved the problem by: To install PHP-XML run the following command: yum install php-xml To install DOM/XML run the following command: yum whatprovides php-dom To restar...
9,079
Am I missing some dependency on the server? cURL is in php-xml is in etc. I am trying to export an invoice to PDG and getting this error: Fatal error: Class 'DOMDocument' not found in /MY-PATH/htdocs/system/expressionengine/third\_party/store/vendor/dompdf/include/dompdf.cls.php on line 481 Hope you can help - Thank...
2013/04/06
[ "https://expressionengine.stackexchange.com/questions/9079", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/855/" ]
Hmmm strange. Have you checked that the file it mentions is actually there? If it is and it has read access then my guess would be that it's more of a memory issue. PDF generation can require a surprisingly large amount of memory (a min of 256MB) and I've had similar problems in the past. Make sure that you have at l...
On Ubuntu: sudo apt-get install php5-dom In my case sudo apt-get install php5.6-dom
9,079
Am I missing some dependency on the server? cURL is in php-xml is in etc. I am trying to export an invoice to PDG and getting this error: Fatal error: Class 'DOMDocument' not found in /MY-PATH/htdocs/system/expressionengine/third\_party/store/vendor/dompdf/include/dompdf.cls.php on line 481 Hope you can help - Thank...
2013/04/06
[ "https://expressionengine.stackexchange.com/questions/9079", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/855/" ]
`DOMDocument` is a built in PHP class. It sounds like the PHP DOM extension is disabled on your server - you will probably need to talk to your host about enabling it (it is enabled by default in PHP and I've never seen a host without it before). To check this, you can visit Tools > Utilities > PHP Info in the EE cont...
si usas centos estas lineas son la solución: Fatal error: Class 'DOMDocument' not found in /var/www/html/ include/ dompdf.cls.php on line 177 Solved the problem by: To install PHP-XML run the following command: yum install php-xml To install DOM/XML run the following command: yum whatprovides php-dom To restar...
9,079
Am I missing some dependency on the server? cURL is in php-xml is in etc. I am trying to export an invoice to PDG and getting this error: Fatal error: Class 'DOMDocument' not found in /MY-PATH/htdocs/system/expressionengine/third\_party/store/vendor/dompdf/include/dompdf.cls.php on line 481 Hope you can help - Thank...
2013/04/06
[ "https://expressionengine.stackexchange.com/questions/9079", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/855/" ]
`DOMDocument` is a built in PHP class. It sounds like the PHP DOM extension is disabled on your server - you will probably need to talk to your host about enabling it (it is enabled by default in PHP and I've never seen a host without it before). To check this, you can visit Tools > Utilities > PHP Info in the EE cont...
On Ubuntu: sudo apt-get install php5-dom In my case sudo apt-get install php5.6-dom
45,364,539
I use two variables in which memory is allocated dynamically, and I print the memory locations, but they are not consecutive. Why? ``` #include <stdio.h> #include <stdlib.h> int main() { int *a = malloc(sizeof(int)); int *b = malloc(sizeof(int)); printf("\n a=%p \t b=%p \n",a,b); } ``` The answers I ge...
2017/07/28
[ "https://Stackoverflow.com/questions/45364539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6234260/" ]
The gap between two consecutive allocations is not related to paging. Your allocations are so small that they reside in the data segment. Libc handles these internally - the space outside your `sizeof int` bytes generally contains pointers to the previous and the next block of data and the size of allocation - after al...
The operating system handles memory allocation, and there is no guarantee that this memory is contiguous when dynamically allocating two consecutive variables. I should also mention that this is the outcome of a defense mechanism known as [ASLR](https://stackoverflow.com/questions/3605222/what-is-address-space-layout-r...
45,364,539
I use two variables in which memory is allocated dynamically, and I print the memory locations, but they are not consecutive. Why? ``` #include <stdio.h> #include <stdlib.h> int main() { int *a = malloc(sizeof(int)); int *b = malloc(sizeof(int)); printf("\n a=%p \t b=%p \n",a,b); } ``` The answers I ge...
2017/07/28
[ "https://Stackoverflow.com/questions/45364539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6234260/" ]
The operating system handles memory allocation, and there is no guarantee that this memory is contiguous when dynamically allocating two consecutive variables. I should also mention that this is the outcome of a defense mechanism known as [ASLR](https://stackoverflow.com/questions/3605222/what-is-address-space-layout-r...
As note at [GNU Examples of malloc](https://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html) > > Note that the memory located after the end of the block is likely to > be in use for something else; perhaps a block already allocated by > another call to malloc. > > > This actually means that, for...
45,364,539
I use two variables in which memory is allocated dynamically, and I print the memory locations, but they are not consecutive. Why? ``` #include <stdio.h> #include <stdlib.h> int main() { int *a = malloc(sizeof(int)); int *b = malloc(sizeof(int)); printf("\n a=%p \t b=%p \n",a,b); } ``` The answers I ge...
2017/07/28
[ "https://Stackoverflow.com/questions/45364539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6234260/" ]
The gap between two consecutive allocations is not related to paging. Your allocations are so small that they reside in the data segment. Libc handles these internally - the space outside your `sizeof int` bytes generally contains pointers to the previous and the next block of data and the size of allocation - after al...
As note at [GNU Examples of malloc](https://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html) > > Note that the memory located after the end of the block is likely to > be in use for something else; perhaps a block already allocated by > another call to malloc. > > > This actually means that, for...
22,607,657
I have a android program (Java + html in a webview). I can call from the javascript to the Java code. But the other way around stopped working (after updating in eclipse). So this is what I'm trying to do * Make a webview (worked) * calling in javascript to AndroidFunction.test(); (worked) * the java test() function ...
2014/03/24
[ "https://Stackoverflow.com/questions/22607657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876718/" ]
The JavaScript method is executed on a background (i.e. non-UI) thread. You need to call all Android View related methods on the UI thread. You can achieve what you need with: ``` mWebView.post(new Runnable() { @Override public void run() { mWebView.loadUrl(...). } }); ``` Which will post the tas...
In my case nothing was shown in a WebView, so I prefer another way: ``` runOnUiThread(new Runnable() { @Override public void run() { final WebView webView = (WebView) findViewById(R.id.map); webView.loadDataWithBaseURL(...); } }); ```
22,607,657
I have a android program (Java + html in a webview). I can call from the javascript to the Java code. But the other way around stopped working (after updating in eclipse). So this is what I'm trying to do * Make a webview (worked) * calling in javascript to AndroidFunction.test(); (worked) * the java test() function ...
2014/03/24
[ "https://Stackoverflow.com/questions/22607657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876718/" ]
The JavaScript method is executed on a background (i.e. non-UI) thread. You need to call all Android View related methods on the UI thread. You can achieve what you need with: ``` mWebView.post(new Runnable() { @Override public void run() { mWebView.loadUrl(...). } }); ``` Which will post the tas...
This can be come over by using the post method. Please go through below code. ``` m_targetView.post(new Runnable() { @Override public void run() { m_targetView.loadUrl("....."); } }); ```
22,607,657
I have a android program (Java + html in a webview). I can call from the javascript to the Java code. But the other way around stopped working (after updating in eclipse). So this is what I'm trying to do * Make a webview (worked) * calling in javascript to AndroidFunction.test(); (worked) * the java test() function ...
2014/03/24
[ "https://Stackoverflow.com/questions/22607657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876718/" ]
The JavaScript method is executed on a background (i.e. non-UI) thread. You need to call all Android View related methods on the UI thread. You can achieve what you need with: ``` mWebView.post(new Runnable() { @Override public void run() { mWebView.loadUrl(...). } }); ``` Which will post the tas...
**Java** version: You must to use **Runnable** interface and Post to **Handler**. ``` webView.post(new Runnable() { @Override public void run() { webView.loadUrl("file:///android_asset/www/index.html"); } }); ``` **Kotlin** version: ``` webView.post(new Runnable { ...
22,607,657
I have a android program (Java + html in a webview). I can call from the javascript to the Java code. But the other way around stopped working (after updating in eclipse). So this is what I'm trying to do * Make a webview (worked) * calling in javascript to AndroidFunction.test(); (worked) * the java test() function ...
2014/03/24
[ "https://Stackoverflow.com/questions/22607657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876718/" ]
In my case nothing was shown in a WebView, so I prefer another way: ``` runOnUiThread(new Runnable() { @Override public void run() { final WebView webView = (WebView) findViewById(R.id.map); webView.loadDataWithBaseURL(...); } }); ```
This can be come over by using the post method. Please go through below code. ``` m_targetView.post(new Runnable() { @Override public void run() { m_targetView.loadUrl("....."); } }); ```
22,607,657
I have a android program (Java + html in a webview). I can call from the javascript to the Java code. But the other way around stopped working (after updating in eclipse). So this is what I'm trying to do * Make a webview (worked) * calling in javascript to AndroidFunction.test(); (worked) * the java test() function ...
2014/03/24
[ "https://Stackoverflow.com/questions/22607657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876718/" ]
In my case nothing was shown in a WebView, so I prefer another way: ``` runOnUiThread(new Runnable() { @Override public void run() { final WebView webView = (WebView) findViewById(R.id.map); webView.loadDataWithBaseURL(...); } }); ```
**Java** version: You must to use **Runnable** interface and Post to **Handler**. ``` webView.post(new Runnable() { @Override public void run() { webView.loadUrl("file:///android_asset/www/index.html"); } }); ``` **Kotlin** version: ``` webView.post(new Runnable { ...
22,607,657
I have a android program (Java + html in a webview). I can call from the javascript to the Java code. But the other way around stopped working (after updating in eclipse). So this is what I'm trying to do * Make a webview (worked) * calling in javascript to AndroidFunction.test(); (worked) * the java test() function ...
2014/03/24
[ "https://Stackoverflow.com/questions/22607657", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876718/" ]
**Java** version: You must to use **Runnable** interface and Post to **Handler**. ``` webView.post(new Runnable() { @Override public void run() { webView.loadUrl("file:///android_asset/www/index.html"); } }); ``` **Kotlin** version: ``` webView.post(new Runnable { ...
This can be come over by using the post method. Please go through below code. ``` m_targetView.post(new Runnable() { @Override public void run() { m_targetView.loadUrl("....."); } }); ```
36,101,259
I am evaluating biicode in my organization. I started this activity last year in september but did not continue because of other pressing concerns. I have resumed the same now. It seems biicode has shut down their operations. None of their help links seem to be working. The login page as well as signup page are dead. ...
2016/03/19
[ "https://Stackoverflow.com/questions/36101259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6086316/" ]
Yes, biicode is closed. While you are evaluating options you can take a look to [conan project](https://github.com/conan-io/conan) and [conan.io](https://www.conan.io/ "conan.io"). It's an full open source project with a lot of community contributions right now. Conan uses a more direct (and easier) approach to librar...
Biicode as a company has shutdown. The central biicode servers have been closed, and will no longer operate. The current pages, blogs, etc, that can be seen are in fact static pages captured and hosted in github, thats why it is impossible to login/register. There are no support people (in fact no employees at all) sin...
29,550,984
I have the following code to set an alarm when the main activity starts and cancel when logging out ``` @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... // Schedule alarm Intent intent = new Intent(this, MyReceiver.class); alarmIntent = Pending...
2015/04/09
[ "https://Stackoverflow.com/questions/29550984", "https://Stackoverflow.com", "https://Stackoverflow.com/users/548852/" ]
To make Dynamic changes to the sticky from the documentation it needs to unstick first and updated ``` $("#headerbg2").unstick() & $("#headerbg2").sticky('update') ``` this also needs to change `(!$("#contact").css("float") === "none")` to either `($("#contact").css("float") != "none")` or `else { .. }` **Demo** w...
Try this instead: ``` $(document).ready(function(){ function checkForFloat() { setTimeout(checkForFloat, 100); if($("#contact").css("float") === "none") { $("#headerbg2").sticky({topSpacing:180}); } else if ($("#contact").css("float") !== "none") { $("#headerbg2").sticky({topSpacin...
12,171,156
The Google Maps API states that the KML(or KMZ) file can be hosted on a publicly accessible web server. This does infer that the document should be available via HTTP(S), but the protocol is not actually stated. Can you please confirm whether the protocol must be HTTP / HTTPS, or could FTP be used as an interim option ...
2012/08/29
[ "https://Stackoverflow.com/questions/12171156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1632066/" ]
Cant confirm but if they say that your KMZ can be hosted on a publicly accessible **web server** then it mean **HTTP(S)** and **not FTP**. Can you setup your FTP location to also be accessed via a URL?
If you enter a ftp url into the maps search box ``` We could not understand the location ftp://test... ``` suggests they dont understand ftp urls. If it understood the url, it would be a 'cant read file at ... ' Google Maps and the API use the same system for KML rendering.
1,517,556
Prove that for all odd prime numbers $p\_1$ and $p\_2$, there exist prime numbers(exclude 2) $p\_3$ and $p\_4$ such that $$p\_3 + p\_4 = p\_1 + p\_2 + 2.$$ Hints would be appreciated.
2015/11/07
[ "https://math.stackexchange.com/questions/1517556", "https://math.stackexchange.com", "https://math.stackexchange.com/users/85798/" ]
If this is true then the Goldbach conjecture is true. It is famous, and unproved.
For $p\_1=2,p\_2=7$, we have $p\_1+p\_2+2=11$, but there are no pairs of primes $(p\_3,p\_4)$ such that $$11=p\_3+p\_4.$$
19,498,300
I got a problem with `print` in python 3.x If you remember from python 2.x, you can write code like this: ``` var = 224 print "The var is %d" %(var) ``` and it would print out: ``` The var is 224 ``` But in python 3.x it doesn't work, so who knows please help.
2013/10/21
[ "https://Stackoverflow.com/questions/19498300", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2903699/" ]
``` var = 224 print("The var is %d" % var) ``` Definitely have to treat print as a function with Python 3. Try it out at: <http://ideone.com/U95q0L> You could also, for a simpler solution, without interpolation, do this: ``` print("The var is", var) ``` Also included that on Ideone.
In Python 2, `print` is a keyword which is used in a print statement. In Python 3, `print` is a function name and is used just as any other function is. In particular, `print` requires parenthesis around its argument list: ``` print ("The var is %d" %(var)) ``` Ref: <http://docs.python.org/3.0/whatsnew/3.0.html#pr...
52,331,848
i'm trying to create a kubernetes cluster from kops using terraform,following code is a part of infrastructure, i'm trying to create the name concatenate with two variables, and i'm getting illegal char error line two, error happens because im trying to define the name with concatenate variables. is it possible in terr...
2018/09/14
[ "https://Stackoverflow.com/questions/52331848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9776078/" ]
Try this: ``` resource "aws_autoscaling_group" "master-kubernetes" { name = "master-${var.zone}.masters.${var.cluster_name}" # ... other params ... } ```
I would say rather concatenating at resource level use the locals first define a variable in locals and then you can utilize it at resource level **Locals declaration** ``` locals { rds_instance_name = "${var.env}-${var.rds_name}" } ``` **Resource Level declaration** ``` resource "aws_db_instance" "default_mssql...
52,331,848
i'm trying to create a kubernetes cluster from kops using terraform,following code is a part of infrastructure, i'm trying to create the name concatenate with two variables, and i'm getting illegal char error line two, error happens because im trying to define the name with concatenate variables. is it possible in terr...
2018/09/14
[ "https://Stackoverflow.com/questions/52331848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9776078/" ]
With latest terraform 0.12.x [terraform format doc](https://www.terraform.io/docs/configuration/functions/format.html) , you could do better like: ``` resource "aws_autoscaling_group" "master-kubernetes" { name = format("master-%s.masters.%s", var.zone, var.cluster_name) } ```
I would say rather concatenating at resource level use the locals first define a variable in locals and then you can utilize it at resource level **Locals declaration** ``` locals { rds_instance_name = "${var.env}-${var.rds_name}" } ``` **Resource Level declaration** ``` resource "aws_db_instance" "default_mssql...
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
You could use a list comprehension: ``` rows = [row.split() for row in your_tuple] ``` As for `.rstrip()`, you don't need it. `.split()` (with no argument!) takes care of that for you: ``` >>> ' a b c \t\n\n '.split() ['a', 'b', 'c'] ```
Apply `str.split` to each item of the tuple: ``` >>> tup = ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') >>> t = map(str.split, tup) >>> t [['1', '2130', '0', '279', '90', '92', '193', '1'], ['1', '186', '0', '299', '14', '36', '44', '1']] >>> t[0][2] '0' >>> t[1][3] '299' ```
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
You could use a list comprehension: ``` rows = [row.split() for row in your_tuple] ``` As for `.rstrip()`, you don't need it. `.split()` (with no argument!) takes care of that for you: ``` >>> ' a b c \t\n\n '.split() ['a', 'b', 'c'] ```
``` >>> data = ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') >>> [x.split() for x in data] [['1', '2130', '0', '279', '90', '92', '193', '1'], ['1', '186', '0', '299', '14', '36', '44', '1']] ``` If you want integer values: ``` >>> [[int(y) for y in x.split()] for x in data] [[1, 2130, 0, 279, 90, ...
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
You could use a list comprehension: ``` rows = [row.split() for row in your_tuple] ``` As for `.rstrip()`, you don't need it. `.split()` (with no argument!) takes care of that for you: ``` >>> ' a b c \t\n\n '.split() ['a', 'b', 'c'] ```
You don't want to `split()` or `rstrip()` the tuple. The things in the tuple are strings and these are perfectly splittable and strippable, and so what you want is an easy way to apply those operations to *each string* in the tuple. (Actually, you don't need the `rstrip()` as the `split()` will take care of the newline...
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
You could use a list comprehension: ``` rows = [row.split() for row in your_tuple] ``` As for `.rstrip()`, you don't need it. `.split()` (with no argument!) takes care of that for you: ``` >>> ' a b c \t\n\n '.split() ['a', 'b', 'c'] ```
use a list comprehension: ``` rows = [row.split() for row in tuple] ``` You can use: ``` each_item[:-1] ``` To get rid of the `\n`
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
Apply `str.split` to each item of the tuple: ``` >>> tup = ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') >>> t = map(str.split, tup) >>> t [['1', '2130', '0', '279', '90', '92', '193', '1'], ['1', '186', '0', '299', '14', '36', '44', '1']] >>> t[0][2] '0' >>> t[1][3] '299' ```
use a list comprehension: ``` rows = [row.split() for row in tuple] ``` You can use: ``` each_item[:-1] ``` To get rid of the `\n`
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
``` >>> data = ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') >>> [x.split() for x in data] [['1', '2130', '0', '279', '90', '92', '193', '1'], ['1', '186', '0', '299', '14', '36', '44', '1']] ``` If you want integer values: ``` >>> [[int(y) for y in x.split()] for x in data] [[1, 2130, 0, 279, 90, ...
use a list comprehension: ``` rows = [row.split() for row in tuple] ``` You can use: ``` each_item[:-1] ``` To get rid of the `\n`
16,818,201
I have a tuple that looks like this: ``` ('1 2130 0 279 90 92 193 1\n', '1 186 0 299 14 36 44 1\n') ``` And i want to split it so that each column will be seperate so i can access it in an easier way. So for an example: ``` tuple[0][2] ``` would return `0` ``` tuple[1][3] ``` would return `299` The second pa...
2013/05/29
[ "https://Stackoverflow.com/questions/16818201", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1708551/" ]
You don't want to `split()` or `rstrip()` the tuple. The things in the tuple are strings and these are perfectly splittable and strippable, and so what you want is an easy way to apply those operations to *each string* in the tuple. (Actually, you don't need the `rstrip()` as the `split()` will take care of the newline...
use a list comprehension: ``` rows = [row.split() for row in tuple] ``` You can use: ``` each_item[:-1] ``` To get rid of the `\n`
17,457,270
I am trying to create a table with 3 columns url, price and timestamps...I tried both "change" and "up" ``` class Shp < ActiveRecord::Base def change create_table :shps do |t| t.string :url t.float :price t.timestamps end end end ``` Running db:migrate seems to do nothing, as when I do ...
2013/07/03
[ "https://Stackoverflow.com/questions/17457270", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1650757/" ]
Based on the comments, I think this is what you're asking about. ``` int main(void) { char *array1 = "12345"; char *array2 = "abcde"; char *array3 = "67890"; char *array4 = "fghij"; char *array_2d[8]; array_2d[0] = array1; array_2d[1] = array2; array_2d[2] = array3; array_2d[3] ...
Like others have said, it is not completely clear to me what is being asked, but it is possible to make copies of the strings as follows (this is just one possible way): ``` char *array_2d[8]; array_2d[0] = strdup( array1 ); ... array_2d[4] = strdup( array_2d[1] ); strupr( array_2d[4] ); ... ``` This will result ...
48,967,983
I am trying to upload files using php on my local server and save it in the current working directory.The code is working fine for any file type of size less than 2mb but above this size it gives error. I have also modified the upload and post size in php.ini file,but it was of no help.It gives 4 errors: > > 1. Undef...
2018/02/24
[ "https://Stackoverflow.com/questions/48967983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8401485/" ]
try to do this points:(ensure if any point is created) **1- ensure that the method attribute in form is with `POST` value and enctype with `multipart/form-data` value.** **2- This line `echo file_get_contents($target_file);` *is not here must be placed* because you are placed it before the file is uploaded, is sugges...
Look at your `php.ini` file for these 2 parameters, WAMPServer comes configured with ``` upload_max_filesize = 2M post_max_size = 8M ``` Increase the `upload_max_filesize` to a little bigger that the largest file you want to allow to be unloaded. Or a lot larger if you intend to upload more than one file at a time....
30,537,193
I cloned fresh repo of my code. Then I made necessary changes in repo followed by these three steps ``` git add --all git commit git push -u origin master ``` It asks username,password, which I enter. but after the push, git repo shows changes authored by my colleague rather than what I am. Why so? can't get it.
2015/05/29
[ "https://Stackoverflow.com/questions/30537193", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3818223/" ]
Check what is the email in the config ``` git config --global user.email ``` if it is not yours, change and commit again: ``` $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com ```
Does it locally show the author of your commit as your colleague when you do `git log`? You can check "who you're committing as" by running these commands: ``` git config user.name git config --global user.name ``` And [ensure your email is properly associated with your GitHub account](https://help.github.com/arti...
30,285
Let $M^m$ and $N^n$ be compact, oriented smooth manifolds without boundary. Then what is the degree of the map $$ f: M\times N \to N \times M$$ given by $f(x,y) = (y,x)$? I have the feeling it should be $(-1)^{mn}$ (would fit in with some proof I have to give), but the result I come up with is $1$. My reasoning: If ...
2011/04/01
[ "https://math.stackexchange.com/questions/30285", "https://math.stackexchange.com", "https://math.stackexchange.com/users/3208/" ]
When you say $df(p,q)(w\_1,\ldots, w\_m,v\_1,\ldots, v\_n) = (v\_1,\ldots, v\_n,w\_1,\ldots, w\_m)$, what exactly do you mean? My guess is that you're looking at the image of an ordered basis. I think it might be better if you look at each individual basis vector in $T\_{(p,q)}(M\times N)$ and see what its image is ins...
Since $f$ is one to one, then its degree is $-1$ or $1$ (also because $f\circ f=Id$, then $(\mathrm{deg}\,f)^2=1$). if $\{e\_1,...,e\_{n+m}\}$ denote the canonical basis of $\mathbb{R}^{n+m}$ then $\det D(x,y)f=\det(e\_{n+1},...,e\_{n+m},e\_1,...,e\_n)=(-1)^{mn}\det(e\_1,...,e\_n,e\_{n+1},...,e\_{n+m})=(-1)^{mn}$. S...
28,053,951
New to Angular, may be using promises wrong. I have a factory returning a promise: ``` .factory('myData', ['$http', '$q', function($http, $q) { var deferred = $q.defer(); $http.get('/path/to/endpoint') .success(function(data) { deferred.resolve(data); }) .error(function(err...
2015/01/20
[ "https://Stackoverflow.com/questions/28053951", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3316036/" ]
On working with promises ------------------------ First of all your `myData` service can just return the call: ``` .factory('myData', ['$http', function($http) { return $http.get('/path/to/endpoint').then(function(req){ return req.data; }); }]); ``` Unwrapping values ----------------- So you know ho...
Yes, resolve the promise in your service/factory and reference the resolved promise value in your controllers instead of referencing and handling the promise in your controllers. Hope that makes sense.