qid
int64
1
74.6M
question
stringlengths
45
24.2k
date
stringlengths
10
10
metadata
stringlengths
101
178
response_j
stringlengths
32
23.2k
response_k
stringlengths
21
13.2k
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
Here are some GIS developer blogs (python included): [Another GIS Blog](http://anothergisblog.blogspot.com/feeds/posts/default) [ArcGIS & Python](http://arcgisandpython.blogspot.com/feeds/posts/default) [Dave Bouwman](http://blog.davebouwman.com/feed/) [Café Python](http://arcpy.wordpress.com/feed/) [CGarrad](http...
A few more GIS developer blogs: <http://www.spatiallyadjusted.com/> <http://wiki.gis.com/wiki/index.php/List_of_GIS-related_Blogs>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
and here are the new ones for Python 2.7: <http://arcpy.wordpress.com/> <http://docs.python.org/tutorial/>
This guy has some great stuff on the ESRI Javascript API. Not sure what kind of development you're doing, but if it's JS, this is a must read! <http://odoe.net/blog/>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
To read relevant Open Source GIS blogs in an integrated way, visit <http://planet.osgeo.org/> It aggregates more than 120 blogs, among them many developers' blogs (Tip: use j/k keys to navigate easily).
This guy has some great stuff on the ESRI Javascript API. Not sure what kind of development you're doing, but if it's JS, this is a must read! <http://odoe.net/blog/>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
To read relevant Open Source GIS blogs in an integrated way, visit <http://planet.osgeo.org/> It aggregates more than 120 blogs, among them many developers' blogs (Tip: use j/k keys to navigate easily).
Not always GIS/Map related, but still interesting nonetheless. It's written by a few developers at the New York Times and focuses more on design and prototyping of interactive maps and graphics, and not necessarily GIS applications. Seeing their processes has been really helpful to me. They also use R a lot for spatial...
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
Few from my side, mostly out of ESRI world: * [CARTODB](http://blog.cartodb.com/) * [MapBox](http://developmentseed.org/blog/mapbox/) * [OPENGEO](http://blog.opengeo.org/) * [Linfiniti Geo Blog](http://linfiniti.com/) * [Smathermather's Weblog](http://smathermather.wordpress.com/) * [GISTUTOR](http://www.gistutor.com/...
This guy has some great stuff on the ESRI Javascript API. Not sure what kind of development you're doing, but if it's JS, this is a must read! <http://odoe.net/blog/>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
Not always GIS/Map related, but still interesting nonetheless. It's written by a few developers at the New York Times and focuses more on design and prototyping of interactive maps and graphics, and not necessarily GIS applications. Seeing their processes has been really helpful to me. They also use R a lot for spatial...
This guy has some great stuff on the ESRI Javascript API. Not sure what kind of development you're doing, but if it's JS, this is a must read! <http://odoe.net/blog/>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
Few from my side, mostly out of ESRI world: * [CARTODB](http://blog.cartodb.com/) * [MapBox](http://developmentseed.org/blog/mapbox/) * [OPENGEO](http://blog.opengeo.org/) * [Linfiniti Geo Blog](http://linfiniti.com/) * [Smathermather's Weblog](http://smathermather.wordpress.com/) * [GISTUTOR](http://www.gistutor.com/...
A few more GIS developer blogs: <http://www.spatiallyadjusted.com/> <http://wiki.gis.com/wiki/index.php/List_of_GIS-related_Blogs>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
Here are some GIS developer blogs (python included): [Another GIS Blog](http://anothergisblog.blogspot.com/feeds/posts/default) [ArcGIS & Python](http://arcgisandpython.blogspot.com/feeds/posts/default) [Dave Bouwman](http://blog.davebouwman.com/feed/) [Café Python](http://arcpy.wordpress.com/feed/) [CGarrad](http...
To read relevant Open Source GIS blogs in an integrated way, visit <http://planet.osgeo.org/> It aggregates more than 120 blogs, among them many developers' blogs (Tip: use j/k keys to navigate easily).
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
A few more GIS developer blogs: <http://www.spatiallyadjusted.com/> <http://wiki.gis.com/wiki/index.php/List_of_GIS-related_Blogs>
This guy has some great stuff on the ESRI Javascript API. Not sure what kind of development you're doing, but if it's JS, this is a must read! <http://odoe.net/blog/>
32,293
I'm looking for recommendations for GIS blogs ... specifically GIS *developer* blogs. I'm less interested in the geography than in how apps are put together. I'd like to keep up with ESRI ArcGIS as well as open source tools. Which blogs are you fine people reading?
2012/08/27
['https://gis.stackexchange.com/questions/32293', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/9795/']
Here are some GIS developer blogs (python included): [Another GIS Blog](http://anothergisblog.blogspot.com/feeds/posts/default) [ArcGIS & Python](http://arcgisandpython.blogspot.com/feeds/posts/default) [Dave Bouwman](http://blog.davebouwman.com/feed/) [Café Python](http://arcpy.wordpress.com/feed/) [CGarrad](http...
This guy has some great stuff on the ESRI Javascript API. Not sure what kind of development you're doing, but if it's JS, this is a must read! <http://odoe.net/blog/>
40,102,145
How can I add a menu-icon when I scale a page down below 769px? I added a button a one page site that I am developing in order to display the menu on mobile devices. Used this in jquery: ``` if($(window).width() < 769){ $('html').append('<i class="fa fa-bars menu-icon" aria-hidden="true"></i>'); } ``` The men...
2016/10/18
['https://Stackoverflow.com/questions/40102145', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6354757/']
Because the script you run just runs once... on page load I guess. Why would it react on resizing the window? You dont specify that in your script. Its far easier to just add the icon in the original html and display/ hide it with [css media queries](https://developer.mozilla.org/de/docs/Web/CSS/Media_Queries/Using_me...
You have to put your code inside `$(window).resize()` like follows so that whenever page size gets modified; the handler will get invoked and you can run your logic accordingly: ``` $('html').append('<i class="fa fa-bars menu-icon" aria-hidden="true"></i>'); //append the icon to html $("i.fa-bars.menu-icon").hide(); /...
55,231,329
So I am using lua and splitting a string by spaces to write a sort of sub-language. And I am trying to have it not split anything inside parenthesis, I am already at the stage where I can detect whether there is parenthesis. But I want to reverse the gmatching of the string inside the parenthesis as I want to preserve ...
2019/03/18
['https://Stackoverflow.com/questions/55231329', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7307551/']
I would just not use `gmatch` for this at all. ``` local input = " this is a string (containg some (well, many) annoying) parentheses and should be split. The string contains double spaces. What should be done? And what about trailing spaces? " local pos = 1 local words = {} local last_start = pos while pos <= #in...
As a similar but slightly different approach to Uli's answer, I would first split by parentheses. Then you can split the the ***odd***-numbered fields on whitespace: ``` split = require("split") -- https://luarocks.org/modules/telemachus/split split__by_parentheses = function(input) local fields = {} local le...
13,308,555
May i know, how to open an ios application, on tapping on notification. Or when we swipe an icon (in case when iphone is locked.) of notification? Can anyone please help me out here?
2012/11/09
['https://Stackoverflow.com/questions/13308555', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1232153/']
It's automatically open the app. Apple do the stuff for us. We don't need to code anything for open the app.
On pressing the local notification, app launches automatically.
13,308,555
May i know, how to open an ios application, on tapping on notification. Or when we swipe an icon (in case when iphone is locked.) of notification? Can anyone please help me out here?
2012/11/09
['https://Stackoverflow.com/questions/13308555', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1232153/']
The OS handles the behavior when tapping the notification as it comes in. Doesn't matter if it is sent by a 3rd party or not, if it is going through APNS, it will open the application and inside `applicationDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions` : ``` - (BOOL)application:(UIApplication *)applicat...
It's automatically open the app. Apple do the stuff for us. We don't need to code anything for open the app.
13,308,555
May i know, how to open an ios application, on tapping on notification. Or when we swipe an icon (in case when iphone is locked.) of notification? Can anyone please help me out here?
2012/11/09
['https://Stackoverflow.com/questions/13308555', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1232153/']
It's automatically open the app. Apple do the stuff for us. We don't need to code anything for open the app.
The app is opened automatically, but the last view controller you were in. So in order to open you desired view controller just implement application:didReceiveRemoteNotification: Further explanation [here](http://developer.apple.com/library/ios/documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Ref...
13,308,555
May i know, how to open an ios application, on tapping on notification. Or when we swipe an icon (in case when iphone is locked.) of notification? Can anyone please help me out here?
2012/11/09
['https://Stackoverflow.com/questions/13308555', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1232153/']
The OS handles the behavior when tapping the notification as it comes in. Doesn't matter if it is sent by a 3rd party or not, if it is going through APNS, it will open the application and inside `applicationDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions` : ``` - (BOOL)application:(UIApplication *)applicat...
On pressing the local notification, app launches automatically.
13,308,555
May i know, how to open an ios application, on tapping on notification. Or when we swipe an icon (in case when iphone is locked.) of notification? Can anyone please help me out here?
2012/11/09
['https://Stackoverflow.com/questions/13308555', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1232153/']
The OS handles the behavior when tapping the notification as it comes in. Doesn't matter if it is sent by a 3rd party or not, if it is going through APNS, it will open the application and inside `applicationDidFinishLaunchingWithOptions:(NSDictionary *)launchOptions` : ``` - (BOOL)application:(UIApplication *)applicat...
The app is opened automatically, but the last view controller you were in. So in order to open you desired view controller just implement application:didReceiveRemoteNotification: Further explanation [here](http://developer.apple.com/library/ios/documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Ref...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
I'd recommend using different classes over inline css. ```css .heading { font-size: 50px; font-weight: bold; border-bottom: 5px solid black; } .heading.morning { color: green; } .heading.afternoon { color: purple; } .heading.night { color: blue; } ``` ``` if (currentTime < 12 && currentTime >= 0) { ...
You can do it in different ways, one of them is below: JS file ``` import React from "react"; import ReactDOM from "react-dom"; import "./styles.css"; const root = document.getElementById("root"); const curretnTime = new Date().getHours(); if (curretnTime < 12 && curretnTime >= 0) { ReactDOM.render( <div clas...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
I'd recommend using different classes over inline css. ```css .heading { font-size: 50px; font-weight: bold; border-bottom: 5px solid black; } .heading.morning { color: green; } .heading.afternoon { color: purple; } .heading.night { color: blue; } ``` ``` if (currentTime < 12 && currentTime >= 0) { ...
I think that you are not using inline-css - `To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.`. But that is just "definition". Anyway, what are you doing is not correct. You should create a component (see: <https://reactjs.org/docs/react-component...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
You should use inline styles, like: ``` import React from "react"; import ReactDOM from "react-dom"; const root = document.getElementById("root"); const curretnTime = new Date().getHours(); let timeOfDay = 'evening'; // not used let timeOfDayColor = 'blue'; let timeOfDayMessage = 'Good Evening'; if (curretnTime...
I'd recommend using different classes over inline css. ```css .heading { font-size: 50px; font-weight: bold; border-bottom: 5px solid black; } .heading.morning { color: green; } .heading.afternoon { color: purple; } .heading.night { color: blue; } ``` ``` if (currentTime < 12 && currentTime >= 0) { ...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
I'd recommend using different classes over inline css. ```css .heading { font-size: 50px; font-weight: bold; border-bottom: 5px solid black; } .heading.morning { color: green; } .heading.afternoon { color: purple; } .heading.night { color: blue; } ``` ``` if (currentTime < 12 && currentTime >= 0) { ...
You could do this: ```js import React from 'react'; import ReactDOM from 'react-dom'; const time = new Date().getHours(); let greeting; let color = {}; if (time <= 12) { greeting = 'Good morning'; color.color = 'red'; } else if (time > 12 && time <= 18) { greeting = 'Good afternoon'; color.color = 'green'; }...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
You should use inline styles, like: ``` import React from "react"; import ReactDOM from "react-dom"; const root = document.getElementById("root"); const curretnTime = new Date().getHours(); let timeOfDay = 'evening'; // not used let timeOfDayColor = 'blue'; let timeOfDayMessage = 'Good Evening'; if (curretnTime...
You can do it in different ways, one of them is below: JS file ``` import React from "react"; import ReactDOM from "react-dom"; import "./styles.css"; const root = document.getElementById("root"); const curretnTime = new Date().getHours(); if (curretnTime < 12 && curretnTime >= 0) { ReactDOM.render( <div clas...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
You should use inline styles, like: ``` import React from "react"; import ReactDOM from "react-dom"; const root = document.getElementById("root"); const curretnTime = new Date().getHours(); let timeOfDay = 'evening'; // not used let timeOfDayColor = 'blue'; let timeOfDayMessage = 'Good Evening'; if (curretnTime...
I think that you are not using inline-css - `To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.`. But that is just "definition". Anyway, what are you doing is not correct. You should create a component (see: <https://reactjs.org/docs/react-component...
64,256,903
I'm new in CodeIgniter in general. I have a view layout, on which I have navigation menu bar in it. I want to populate the dropdown menu with categories I've saved in database. Here's snippet of my layout (View\layouts\frontend.php): ``` <nav class="navbar navbar-expand-md sticky-top"> <div class="collapse navbar...
2020/10/08
['https://Stackoverflow.com/questions/64256903', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14378974/']
You should use inline styles, like: ``` import React from "react"; import ReactDOM from "react-dom"; const root = document.getElementById("root"); const curretnTime = new Date().getHours(); let timeOfDay = 'evening'; // not used let timeOfDayColor = 'blue'; let timeOfDayMessage = 'Good Evening'; if (curretnTime...
You could do this: ```js import React from 'react'; import ReactDOM from 'react-dom'; const time = new Date().getHours(); let greeting; let color = {}; if (time <= 12) { greeting = 'Good morning'; color.color = 'red'; } else if (time > 12 && time <= 18) { greeting = 'Good afternoon'; color.color = 'green'; }...
21,604,653
I tried to modify my gruntfile but am getting a ton of errors about my indentation. Is whitespace always important for gruntfiles? What's the best way to fix these errors, counting whitespaces? ``` $ grunt Running "newer:jshint" (newer) task Running "newer:jshint:all" (newer) task Running "jshint:all" (jshint) task ...
2014/02/06
['https://Stackoverflow.com/questions/21604653', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2031033/']
Comment out the 'indent' property in the .jshintrc file, or perhaps in the package.json. Doing a global find on the word 'indent' should get you there. I find white space really adds to the readability of code, particularly JS. So much so, that I don't know that it should be linted at all, particularly since it has no...
You may be getting the indent errors from 'lint'. If you have an 'eslintrc' file you can remove the following line from the rules key value pairs ' indent: [2, 2, {"SwitchCase": 1}],'
8,980,329
I am trying to build a little tool using google maps API. I thought With the use of the distanceMartrix api I could actually do this with just html/javascript ``` $.get("http://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC&destinations=San+Francisco|Victoria+BC&sensor=false", function(data){ ...
2012/01/23
['https://Stackoverflow.com/questions/8980329', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/369765/']
looks like you need to include google maps v3 js library via tag `script` and then use this service <http://code.google.com/apis/maps/documentation/javascript/reference.html#DistanceMatrixService> there will be somethnmg like this ``` <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=f...
Since you are making an "AJAX" request from a different domain than your script it needs to be a JSONP request instead of just a JSON request. JSONP requires a callback in your script that receives the data and processes it. Many APIs will serve up a JSONP request if you just append `&callback=?` to the end of the URL....
8,980,329
I am trying to build a little tool using google maps API. I thought With the use of the distanceMartrix api I could actually do this with just html/javascript ``` $.get("http://maps.googleapis.com/maps/api/distancematrix/json?origins=Vancouver+BC&destinations=San+Francisco|Victoria+BC&sensor=false", function(data){ ...
2012/01/23
['https://Stackoverflow.com/questions/8980329', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/369765/']
looks like you need to include google maps v3 js library via tag `script` and then use this service <http://code.google.com/apis/maps/documentation/javascript/reference.html#DistanceMatrixService> there will be somethnmg like this ``` <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=f...
Google Maps API requires basic authentication (you have to pay for >25k requests a day). Loading their library does it automatically, but loading it via Google would do.
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
You need to understand the concept of Bitmap and memory > > Let’s say you want to display an image on your screen that you just took with your camera. The total memory needed for this is calculated with the following formula: memory\_needed\_in\_bytes = 4 \* image\_width \* image\_height; > > > Why 4? Well, the mos...
The exception thrown is known as `OutOfMemoryError`. The error occurs when (obviously) you run out of memory! Here is the documentation for it: > > Thrown when a request for memory is made that can not be satisfied using the available platform resources. Such a request may be made by both the running application or b...
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
The exception thrown is known as `OutOfMemoryError`. The error occurs when (obviously) you run out of memory! Here is the documentation for it: > > Thrown when a request for memory is made that can not be satisfied using the available platform resources. Such a request may be made by both the running application or b...
add this ligne to your manifest file: ``` android:largeHeap="true" ```
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
The exception thrown is known as `OutOfMemoryError`. The error occurs when (obviously) you run out of memory! Here is the documentation for it: > > Thrown when a request for memory is made that can not be satisfied using the available platform resources. Such a request may be made by both the running application or b...
if you are using RXJAVA and are only observing the "Single" type of observable than this is prone to happen where you are emitting large number of images or data set of any kind: try using toFlowable before .subscribe <https://medium.com/@gabrieldemattosleon/fundamentals-of-rxjava-with-kotlin-for-absolute-beginners-3...
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
You need to understand the concept of Bitmap and memory > > Let’s say you want to display an image on your screen that you just took with your camera. The total memory needed for this is calculated with the following formula: memory\_needed\_in\_bytes = 4 \* image\_width \* image\_height; > > > Why 4? Well, the mos...
add this ligne to your manifest file: ``` android:largeHeap="true" ```
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
You need to understand the concept of Bitmap and memory > > Let’s say you want to display an image on your screen that you just took with your camera. The total memory needed for this is calculated with the following formula: memory\_needed\_in\_bytes = 4 \* image\_width \* image\_height; > > > Why 4? Well, the mos...
> > android:largeHeap="true" > > > You shouldn't use this, this is not a fix for the problem, this is a temporary problem fix. What this do is increase the memory of the emulator/phone, it will work but eventually it will crash again because you did not fix the memory problem
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
You need to understand the concept of Bitmap and memory > > Let’s say you want to display an image on your screen that you just took with your camera. The total memory needed for this is calculated with the following formula: memory\_needed\_in\_bytes = 4 \* image\_width \* image\_height; > > > Why 4? Well, the mos...
if you are using RXJAVA and are only observing the "Single" type of observable than this is prone to happen where you are emitting large number of images or data set of any kind: try using toFlowable before .subscribe <https://medium.com/@gabrieldemattosleon/fundamentals-of-rxjava-with-kotlin-for-absolute-beginners-3...
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
> > android:largeHeap="true" > > > You shouldn't use this, this is not a fix for the problem, this is a temporary problem fix. What this do is increase the memory of the emulator/phone, it will work but eventually it will crash again because you did not fix the memory problem
add this ligne to your manifest file: ``` android:largeHeap="true" ```
33,864,168
``` 11-23 10:38:04.430 2095-2095/? I/art: Not late-enabling -Xcheck:jni (already on) 11-23 10:38:04.430 2095-2095/? I/art: Late-enabling JIT 11-23 10:38:04.433 2095-2095/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 11-23 10:38:04.830 2095-2095/com.example.somanshusrivastava.carpiko W/System...
2015/11/23
['https://Stackoverflow.com/questions/33864168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1947616/']
> > android:largeHeap="true" > > > You shouldn't use this, this is not a fix for the problem, this is a temporary problem fix. What this do is increase the memory of the emulator/phone, it will work but eventually it will crash again because you did not fix the memory problem
if you are using RXJAVA and are only observing the "Single" type of observable than this is prone to happen where you are emitting large number of images or data set of any kind: try using toFlowable before .subscribe <https://medium.com/@gabrieldemattosleon/fundamentals-of-rxjava-with-kotlin-for-absolute-beginners-3...
49,316,050
I'm beginning on Jenkins in my work place. We use semantic versioning with Teamcity and I want to implement the same on Jenkins. My problem appears when I store the artifacts in builds folder ($JENKINS\_HOME/jobs/$JOB\_NAME/builds/$BUILD\_NUMBER) because Jenkins use only the build\_number to create the folder for build...
2018/03/16
['https://Stackoverflow.com/questions/49316050', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9498712/']
First thing I notice is you are not using semantic versioning correctly. `1.3.1_develop.1` should be `1.3.1-develop+1`. Build metadata should always be preceded by the plus '+' symbol and is not factored into the SemVer sort order. Second, build number is never "reset", it might roll-over eventually, but it should nev...
There is a tool `GitVersion` which does what you want and it can be integrated with Jenkins or other CI providers. <https://gitversion.net/docs/reference/build-servers/jenkins>
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
I found that the best option is to use `+ theme(legend.title = element_blank())` as user "gkcn" noted. For me (on 03/26/15) using the previously suggested `labs(fill="")` and `scale_fill_discrete("")` remove one title, only to add in another legend, which is not useful.
@pascal 's solution in a [comment](https://stackoverflow.com/questions/6022898/how-can-i-remove-the-legend-title-in-ggplot2#comment41208703_6023078) to set the `name` argument of a scale function, such as `scale_fill_discrete`, to `NULL`, is the best option for me. It allows removing the title together with the blank s...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
You can modify the legend title by passing it as the first parameter to a scale. For example: ``` ggplot(carrots, aes(y=MeanLength, x=Farm, fill=Type)) + geom_bar(position="dodge") + theme(legend.position="top", legend.direction="horizontal") + scale_fill_discrete("") ``` There is also a shortcut for this, i....
You can use `labs`: ``` p + labs(fill="") ``` ![plot example](https://i.stack.imgur.com/HSGJr.png)
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
I found that the best option is to use `+ theme(legend.title = element_blank())` as user "gkcn" noted. For me (on 03/26/15) using the previously suggested `labs(fill="")` and `scale_fill_discrete("")` remove one title, only to add in another legend, which is not useful.
The only way worked for me was using `legend.title = theme_blank()` and I think it is the most convenient variant in comparison to `labs(fill="")` and `scale_fill_discrete("")`, which also could be useful in some cases. ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts( le...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
You can modify the legend title by passing it as the first parameter to a scale. For example: ``` ggplot(carrots, aes(y=MeanLength, x=Farm, fill=Type)) + geom_bar(position="dodge") + theme(legend.position="top", legend.direction="horizontal") + scale_fill_discrete("") ``` There is also a shortcut for this, i....
@pascal 's solution in a [comment](https://stackoverflow.com/questions/6022898/how-can-i-remove-the-legend-title-in-ggplot2#comment41208703_6023078) to set the `name` argument of a scale function, such as `scale_fill_discrete`, to `NULL`, is the best option for me. It allows removing the title together with the blank s...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
The only way worked for me was using `legend.title = theme_blank()` and I think it is the most convenient variant in comparison to `labs(fill="")` and `scale_fill_discrete("")`, which also could be useful in some cases. ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts( le...
@pascal 's solution in a [comment](https://stackoverflow.com/questions/6022898/how-can-i-remove-the-legend-title-in-ggplot2#comment41208703_6023078) to set the `name` argument of a scale function, such as `scale_fill_discrete`, to `NULL`, is the best option for me. It allows removing the title together with the blank s...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
You can modify the legend title by passing it as the first parameter to a scale. For example: ``` ggplot(carrots, aes(y=MeanLength, x=Farm, fill=Type)) + geom_bar(position="dodge") + theme(legend.position="top", legend.direction="horizontal") + scale_fill_discrete("") ``` There is also a shortcut for this, i....
You've got two good options already, so here's another using `scale_fill_manual()`. Note this also lets you specify the colors of the bars easily: ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts(legend.position="top") + scale_fill_manual(name = "", values = c("Orange" ...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
You can use `labs`: ``` p + labs(fill="") ``` ![plot example](https://i.stack.imgur.com/HSGJr.png)
You've got two good options already, so here's another using `scale_fill_manual()`. Note this also lets you specify the colors of the bars easily: ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts(legend.position="top") + scale_fill_manual(name = "", values = c("Orange" ...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
I found that the best option is to use `+ theme(legend.title = element_blank())` as user "gkcn" noted. For me (on 03/26/15) using the previously suggested `labs(fill="")` and `scale_fill_discrete("")` remove one title, only to add in another legend, which is not useful.
You've got two good options already, so here's another using `scale_fill_manual()`. Note this also lets you specify the colors of the bars easily: ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts(legend.position="top") + scale_fill_manual(name = "", values = c("Orange" ...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
The only way worked for me was using `legend.title = theme_blank()` and I think it is the most convenient variant in comparison to `labs(fill="")` and `scale_fill_discrete("")`, which also could be useful in some cases. ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts( le...
You've got two good options already, so here's another using `scale_fill_manual()`. Note this also lets you specify the colors of the bars easily: ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts(legend.position="top") + scale_fill_manual(name = "", values = c("Orange" ...
6,022,898
I have a question concerning the legend in ggplot2. Say I have a hypothetical dataset about mean carrot length for two different colours at two farms: ``` carrots<-NULL carrots$Farm<-rep(c("X","Y"),2) carrots$Type<-rep(c("Orange","Purple"),each=2) carrots$MeanLength<-c(10,6,4,2) carrots<-data.frame(carrots) ``` I m...
2011/05/16
['https://Stackoverflow.com/questions/6022898', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/745027/']
You can modify the legend title by passing it as the first parameter to a scale. For example: ``` ggplot(carrots, aes(y=MeanLength, x=Farm, fill=Type)) + geom_bar(position="dodge") + theme(legend.position="top", legend.direction="horizontal") + scale_fill_discrete("") ``` There is also a shortcut for this, i....
The only way worked for me was using `legend.title = theme_blank()` and I think it is the most convenient variant in comparison to `labs(fill="")` and `scale_fill_discrete("")`, which also could be useful in some cases. ``` ggplot(carrots,aes(y=MeanLength,x=Farm,fill=Type)) + geom_bar(position="dodge") + opts( le...
3,503,714
I am looking through the solution of integrating: $$\int\_{}^{} \frac{x^4+1}{x^3+1} dx$$ I understand it but for the following part: [![enter image description here](https://i.stack.imgur.com/oaGcE.png)](https://i.stack.imgur.com/oaGcE.png) My problem is limited to the first and penultimate column. I would very much ap...
2020/01/10
['https://math.stackexchange.com/questions/3503714', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/398496/']
An introduction to partial fractions. If we have two fraction and we want to add them together, $\frac {a}{b} + \frac {c}{d} = \frac {ad + bc}{bd}$ We can do the same thing, with rational polynomials. $ \frac {1}{x} - \frac {1}{x+1} = \frac{x+1}{(x)(x+1)} - \frac {x}{x(x+1)} = \frac {x+1-x}{x(x+1)} = \frac {1}{x(x+1...
Solution of integral will be by partial fraction method $$I=\int (x+\frac{1-x}{x^3+1})dx$$ $$I = \frac{x^2}{2}+\int (\frac{1-x}{(x+1)(x^2-x+1)})dx$$ Where you can solve for $$I\_1=\int (\frac{1-x}{(x+1)(x^2-x+1)})dx$$ Using partial fraction like done here <https://www.mathsdiscussion.com/discussion-forum/topic/indefin...
52,559,052
Can someone please check why it isn't removing exact character (`ind`) from the string? When I execute below, the char `'<'` at position 17 is not removed, I see it's removing `'2'`, also I tried with `ind - 2` to remove `'<'` but it doesn't work for the next special character. Please note that I need to use the be...
2018/09/28
['https://Stackoverflow.com/questions/52559052', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7991976/']
It's a little bit messy.. but given your current test case, it works. ``` string path = "<X><A>this is AA<123 w<o<r<d</A></X>"; int pathLength = path.Length; List<int> positons = new List<int>(); for (int itr = 0; itr < pathLength; itr++) { if (path[itr] == '<') { for (int pointer = itr + 1; pointer < path...
If the path is always enclosed within the same tags (since this was not specified, I'm not sure), it can be as simple as removing the leading and trailing tags: ``` const string LeadingTags = "<X><A>"; const string TrailingTags = "</A></X>"; string path = "<X><A>this is AA<123 w<o<r<d</A></X>"; int length = path.Leng...
36,802,272
I am attempting to pass a string into a method and based on what string is passed in, either instantiate BasicHttpBinding or WSHttpBinding. The following if statement is in my code. ``` if(bindingObject == "basic") {System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();} else {Syste...
2016/04/22
['https://Stackoverflow.com/questions/36802272', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3150921/']
First: both `BasicHttpBinding` and `BasicHttpBinding` need to either derive from the same base class or implement the same [interface](https://msdn.microsoft.com/en-us/library/87d83y5b.aspx) If you're using visual studio, you can put a cursor over the types and press `f12` to see what types they derive from and what ...
You could use wither the Binding base class or the IBindingRuntimePreferences interface, if that provides access to the functionality you need. ``` //System.ServiceModel.Channels.Binding binding; System.ServiceModel.Channels.IBindingRuntimePreferences binding; if(bindingObject == "basic") binding = n...
36,802,272
I am attempting to pass a string into a method and based on what string is passed in, either instantiate BasicHttpBinding or WSHttpBinding. The following if statement is in my code. ``` if(bindingObject == "basic") {System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();} else {Syste...
2016/04/22
['https://Stackoverflow.com/questions/36802272', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3150921/']
First: both `BasicHttpBinding` and `BasicHttpBinding` need to either derive from the same base class or implement the same [interface](https://msdn.microsoft.com/en-us/library/87d83y5b.aspx) If you're using visual studio, you can put a cursor over the types and press `f12` to see what types they derive from and what ...
It's perfect use case for dynamic keyword ``` dynamic binding; if (bindingObject == "basic") { binding = new System.ServiceModel.BasicHttpBinding(); } else { binding = new System.ServiceModel.WSHttpBinding(); } ``` Then you can access th...
36,802,272
I am attempting to pass a string into a method and based on what string is passed in, either instantiate BasicHttpBinding or WSHttpBinding. The following if statement is in my code. ``` if(bindingObject == "basic") {System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();} else {Syste...
2016/04/22
['https://Stackoverflow.com/questions/36802272', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3150921/']
The problem you're facing is because of scoping of local variables. According to C# specs for scoping from MSDN, > > Scopes can be nested, and an inner scope may redeclare the meaning of a name from an outer scope (this does not, however, remove the restriction imposed by §1.20 that within a nested block it is not po...
You could use wither the Binding base class or the IBindingRuntimePreferences interface, if that provides access to the functionality you need. ``` //System.ServiceModel.Channels.Binding binding; System.ServiceModel.Channels.IBindingRuntimePreferences binding; if(bindingObject == "basic") binding = n...
36,802,272
I am attempting to pass a string into a method and based on what string is passed in, either instantiate BasicHttpBinding or WSHttpBinding. The following if statement is in my code. ``` if(bindingObject == "basic") {System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();} else {Syste...
2016/04/22
['https://Stackoverflow.com/questions/36802272', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3150921/']
The problem you're facing is because of scoping of local variables. According to C# specs for scoping from MSDN, > > Scopes can be nested, and an inner scope may redeclare the meaning of a name from an outer scope (this does not, however, remove the restriction imposed by §1.20 that within a nested block it is not po...
It's perfect use case for dynamic keyword ``` dynamic binding; if (bindingObject == "basic") { binding = new System.ServiceModel.BasicHttpBinding(); } else { binding = new System.ServiceModel.WSHttpBinding(); } ``` Then you can access th...
700,963
**THE GEAR:** * Midtower running Ubuntu 14.04 for the host * An HP t610 Thin Client running a stripped-down embedded copy of Windows 7 and VMWare. Note that the client factory resets with every boot. * DAC is a Behringer U-Control UCA202 which outputs the host's audio via USB on the client to my hi-fi. **CURRENTLY US...
2015/11/21
['https://askubuntu.com/questions/700963', 'https://askubuntu.com', 'https://askubuntu.com/users/474069/']
There are only executable versions of Concorde and Linkern, not less, not more. Compile your own version: ``` mkdir -p ~/src cd ~/src wget http://www.math.uwaterloo.ca/tsp/concorde/downloads/codes/src/co031219.tgz tar xf co031219.tgz cd co031219 ./configure make ``` There is no rule to install (`make install`). All...
The instructions by @A.B. above are correct, but they do not include a description of how to install an LP solver. An LP solver is necessary to solve the TSP exactly using concorde. To install an LP solver on Ubuntu, download the BETA version of qsopt from here: <http://www.math.uwaterloo.ca/~bico/qsopt/beta/index.htm...
224,144
Trying to enable PHP in 10.6.6 server and it keeps loading the php text (I can see the php code on my .php file). I've enabled the php5 module in server admin (and verified that it's in the httpd.conf).. anything else I can try? ![alt text](https://i.stack.imgur.com/hYzVF.png) I also blew away the current httpd.conf...
2011/01/19
['https://serverfault.com/questions/224144', 'https://serverfault.com', 'https://serverfault.com/users/31400/']
You also need to make sure that the config for executing php code is in place ``` AddHandler php5-script .php AddType text/html .php ```
Don't forget to clean your browser cache or try with another browser.
224,144
Trying to enable PHP in 10.6.6 server and it keeps loading the php text (I can see the php code on my .php file). I've enabled the php5 module in server admin (and verified that it's in the httpd.conf).. anything else I can try? ![alt text](https://i.stack.imgur.com/hYzVF.png) I also blew away the current httpd.conf...
2011/01/19
['https://serverfault.com/questions/224144', 'https://serverfault.com', 'https://serverfault.com/users/31400/']
Turns out I was using php short tags and didn't have it turned on in the php.ini: ``` ; This directive determines whether or not PHP will recognize code between ; <? and ?> tags as PHP source which should be processed as such. It's been ; recommended for several years that you not use the short tag "short cut" and ; i...
Don't forget to clean your browser cache or try with another browser.
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
Rather than configuring PHP, a generalized solution would be to stand up a dummy SMTP server. See [this question](https://stackoverflow.com/questions/1006650).
So you already wrote the application and it uses live email addresses, and now you want to test it? Did you use a centralized function for mail or are there tons of mail() calls all over the code? Sorry but you're going to have to change every mail() call. Do yourself a favor and replace them all with your own function...
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
Rather than configuring PHP, a generalized solution would be to stand up a dummy SMTP server. See [this question](https://stackoverflow.com/questions/1006650).
You can redirect all port 25 traffic on the server running PHP to a mailserver/port which delivers all mail to you. This is the only 100% foolproof method of which I know.
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
Rather than configuring PHP, a generalized solution would be to stand up a dummy SMTP server. See [this question](https://stackoverflow.com/questions/1006650).
You could create a Google Apps account (or use your dummy server), create a catch-all email account and have it sent to the domain. All you would have to do is look at the catch-all account.
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
Rather than configuring PHP, a generalized solution would be to stand up a dummy SMTP server. See [this question](https://stackoverflow.com/questions/1006650).
I found this site: <http://dummysmtp.com/>. My server is running qmail, so I edited the contents of /var/qmail/control/smtproutes like so: > > :smtp.dummysmtp.com *username* *password* > > > It worked when I sent a simple mail with PHP mail(), but later I found that mail is still getting out to other people. I h...
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
I found this site: <http://dummysmtp.com/>. My server is running qmail, so I edited the contents of /var/qmail/control/smtproutes like so: > > :smtp.dummysmtp.com *username* *password* > > > It worked when I sent a simple mail with PHP mail(), but later I found that mail is still getting out to other people. I h...
So you already wrote the application and it uses live email addresses, and now you want to test it? Did you use a centralized function for mail or are there tons of mail() calls all over the code? Sorry but you're going to have to change every mail() call. Do yourself a favor and replace them all with your own function...
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
I found this site: <http://dummysmtp.com/>. My server is running qmail, so I edited the contents of /var/qmail/control/smtproutes like so: > > :smtp.dummysmtp.com *username* *password* > > > It worked when I sent a simple mail with PHP mail(), but later I found that mail is still getting out to other people. I h...
You can redirect all port 25 traffic on the server running PHP to a mailserver/port which delivers all mail to you. This is the only 100% foolproof method of which I know.
3,346,305
How can I configure PHP to send all outgoing mail to my own account so that I can test a business application without actually sending mails to unsuspecting businesses, such as "Congratulations, you have a new account. You will be billed for $xxx" ?
2010/07/27
['https://Stackoverflow.com/questions/3346305', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/270511/']
I found this site: <http://dummysmtp.com/>. My server is running qmail, so I edited the contents of /var/qmail/control/smtproutes like so: > > :smtp.dummysmtp.com *username* *password* > > > It worked when I sent a simple mail with PHP mail(), but later I found that mail is still getting out to other people. I h...
You could create a Google Apps account (or use your dummy server), create a catch-all email account and have it sent to the domain. All you would have to do is look at the catch-all account.
23,809
I used platformio IDE I did "platformio lib install 1101" (<http://platformio.org/lib/show/1101/ESP8266wifi>), I installed this: <http://platformio.org/lib/show/549/WebSockets> (follow instructions) I did similar things to other libraries. When I click the platformio:build button, it still complains: > > fatal er...
2016/05/03
['https://arduino.stackexchange.com/questions/23809', 'https://arduino.stackexchange.com', 'https://arduino.stackexchange.com/users/20742/']
Have you overridden `lib_dir` in `platformio.ini`? If yes, please remove it.
Make sure **ESP8266WiFi.h**, **ESP8266WiFiMulti.h**, **ESP8266Webserver.h** files are located in the same directory where your \*.uno file present.
23,809
I used platformio IDE I did "platformio lib install 1101" (<http://platformio.org/lib/show/1101/ESP8266wifi>), I installed this: <http://platformio.org/lib/show/549/WebSockets> (follow instructions) I did similar things to other libraries. When I click the platformio:build button, it still complains: > > fatal er...
2016/05/03
['https://arduino.stackexchange.com/questions/23809', 'https://arduino.stackexchange.com', 'https://arduino.stackexchange.com/users/20742/']
While Bhushan Patil's answer should work, it would still make future projects tedious. Instead you can add the header files to the hardware library, and use them at will, with the `#include <library>` syntax every other library uses in C/C++. The PlatformIO IDE has a config file you can modify that tells the IDE where...
Make sure **ESP8266WiFi.h**, **ESP8266WiFiMulti.h**, **ESP8266Webserver.h** files are located in the same directory where your \*.uno file present.
23,809
I used platformio IDE I did "platformio lib install 1101" (<http://platformio.org/lib/show/1101/ESP8266wifi>), I installed this: <http://platformio.org/lib/show/549/WebSockets> (follow instructions) I did similar things to other libraries. When I click the platformio:build button, it still complains: > > fatal er...
2016/05/03
['https://arduino.stackexchange.com/questions/23809', 'https://arduino.stackexchange.com', 'https://arduino.stackexchange.com/users/20742/']
Make sure **ESP8266WiFi.h**, **ESP8266WiFiMulti.h**, **ESP8266Webserver.h** files are located in the same directory where your \*.uno file present.
Note the different capitalization: ESP8266**w**i**f**i vs ESP8266**W**i**F**i. Confusing as it may be, these are actually two completely different libraries. [ekstrand/ESP8266wifi](https://github.com/ekstrand/ESP8266wifi) is a library that is to be used when you are controlling an ESP8266 running the AT firmware over...
23,809
I used platformio IDE I did "platformio lib install 1101" (<http://platformio.org/lib/show/1101/ESP8266wifi>), I installed this: <http://platformio.org/lib/show/549/WebSockets> (follow instructions) I did similar things to other libraries. When I click the platformio:build button, it still complains: > > fatal er...
2016/05/03
['https://arduino.stackexchange.com/questions/23809', 'https://arduino.stackexchange.com', 'https://arduino.stackexchange.com/users/20742/']
Have you overridden `lib_dir` in `platformio.ini`? If yes, please remove it.
Note the different capitalization: ESP8266**w**i**f**i vs ESP8266**W**i**F**i. Confusing as it may be, these are actually two completely different libraries. [ekstrand/ESP8266wifi](https://github.com/ekstrand/ESP8266wifi) is a library that is to be used when you are controlling an ESP8266 running the AT firmware over...
23,809
I used platformio IDE I did "platformio lib install 1101" (<http://platformio.org/lib/show/1101/ESP8266wifi>), I installed this: <http://platformio.org/lib/show/549/WebSockets> (follow instructions) I did similar things to other libraries. When I click the platformio:build button, it still complains: > > fatal er...
2016/05/03
['https://arduino.stackexchange.com/questions/23809', 'https://arduino.stackexchange.com', 'https://arduino.stackexchange.com/users/20742/']
While Bhushan Patil's answer should work, it would still make future projects tedious. Instead you can add the header files to the hardware library, and use them at will, with the `#include <library>` syntax every other library uses in C/C++. The PlatformIO IDE has a config file you can modify that tells the IDE where...
Note the different capitalization: ESP8266**w**i**f**i vs ESP8266**W**i**F**i. Confusing as it may be, these are actually two completely different libraries. [ekstrand/ESP8266wifi](https://github.com/ekstrand/ESP8266wifi) is a library that is to be used when you are controlling an ESP8266 running the AT firmware over...
17,439
Will they be able to walk-through it? If so, will they successfully cross over to the land of the dead, since they [can't normally](https://scifi.stackexchange.com/questions/9992/could-ghosts-in-harry-potter-move-on)?
2012/05/29
['https://scifi.stackexchange.com/questions/17439', 'https://scifi.stackexchange.com', 'https://scifi.stackexchange.com/users/6385/']
As I understand it, in the HP universe, Ghosts are not really the 'souls' of those they resemble -- they are more of an imprint of the consciousness that is left behind when some die. Similar to what is captured in Paintings and Photographs, actually. Nick explained it in OotP: > > “Wizards can leave an imprint of t...
> > Ghosts are transparent, moving, talking and thinking versions of wizards and witches who wished, for whatever reason, to remain on earth. > > > *Tales of Beedle the Bard* - page 70 - Bloomsbury - *Babbity Rabbity and the Cackling Stump* > > > **[KHW](https://scifi.stackexchange.com/users/2292/khw)** also...
56,925,079
So I am trying to use SDK java for my web page development. I have html file that show my map. What I would like to do is to get my data from Smartsheet and convert these data to points on the map. I figure maybe java SDK is the file that I would be downloading, so I took the following step to download the java SDK 1...
2019/07/07
['https://Stackoverflow.com/questions/56925079', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11420526/']
I would say your requirement "Germany for German users, Canada for Canadian users" is not possible. If you take a look at the local availability of AAD B2C you will find that it's a "non-regional" service: <https://azure.microsoft.com/en-us/global-infrastructure/services/?products=active-directory-b2c> The "country ...
You may determine the user's location directly in your application using the method of your choice, be it a user preference setting in the app, IP geomapping service, browser location or some other magic. Then in your app you can simply use the endpoint of one B2C tenant for German users and the endpoint of the another...
35,748,064
``` class foo { foo(); unique_ptr<T, (void *)(T*)> ptr; }; foo::foo() { bool x = some operation; if (!x) throw; ptr = unique_ptr<T, (void *)(T*)>(new T(x), deleter); } ``` This code does not compile because the unique pointer and its deleter get initialized with null (as I don't initialize it in ...
2016/03/02
['https://Stackoverflow.com/questions/35748064', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4558644/']
Try this: ``` foo() : ptr(nullptr, deleter) { if (!some operation) { throw AppropriateException(); } ptr.reset(new T(true)); } ```
working example of using a generator and custom deleter: ``` #include <iostream> #include <memory> #include <vector> struct bar {}; struct bar_deleter { void operator()(bar* p) const noexcept { try { if (p) { std::cout << "deleting p" << std::endl; } e...
35,748,064
``` class foo { foo(); unique_ptr<T, (void *)(T*)> ptr; }; foo::foo() { bool x = some operation; if (!x) throw; ptr = unique_ptr<T, (void *)(T*)>(new T(x), deleter); } ``` This code does not compile because the unique pointer and its deleter get initialized with null (as I don't initialize it in ...
2016/03/02
['https://Stackoverflow.com/questions/35748064', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4558644/']
One solution would be to add a static function that determines what `x` should be and then return it to the constructor of the `unique_ptr` in the member initialization list ``` foo() : ptr(construct_t(), deleter) {} static T* construct_t() { bool x = some operation; if(!x) throw; return new T(x); } ```
working example of using a generator and custom deleter: ``` #include <iostream> #include <memory> #include <vector> struct bar {}; struct bar_deleter { void operator()(bar* p) const noexcept { try { if (p) { std::cout << "deleting p" << std::endl; } e...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
When Atlantis was sinking, the residents knew about it only slightly in advance. Being sensible people, they rushed into their basements and shut the doors. One atlantis had sunk, they dug between the basements to form a network of underwater/underground rooms. They somehow figured out how to get air down there (and ho...
In an old short story I wrote years ago (but never published because my writing was *meh*), I figured that Atlantis was sitting on the top of a volcanic island and during an earthquake, the city that had overdevelopped to the point of weakening the soil, fell into a nearby oceanic trench upside-down. The city remained ...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
Reasonably, an underwater city would not particularly look like the cities we are familiar with and would not be recognized as a settlement unless someone goes and looks at with Mark II Eyeball. They would have no interest in roads. So there would be no easily discernible grid. Transport and travel would then happen a...
When Atlantis was sinking, the residents knew about it only slightly in advance. Being sensible people, they rushed into their basements and shut the doors. One atlantis had sunk, they dug between the basements to form a network of underwater/underground rooms. They somehow figured out how to get air down there (and ho...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
When Atlantis was sinking, the residents knew about it only slightly in advance. Being sensible people, they rushed into their basements and shut the doors. One atlantis had sunk, they dug between the basements to form a network of underwater/underground rooms. They somehow figured out how to get air down there (and ho...
If the Atlanteans wanted to be invisible to radar they could use materials similar to the rubber like tiles used on submarines. If they needed a particularly primitive version of this then large amounts of organic matter, especially seaweed of the sort with the flotation air sacs, would be useful in deflecting and abso...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
> > Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? > > > You **already** need magic or very advanced technology to justify a city existing **underw...
In an old short story I wrote years ago (but never published because my writing was *meh*), I figured that Atlantis was sitting on the top of a volcanic island and during an earthquake, the city that had overdevelopped to the point of weakening the soil, fell into a nearby oceanic trench upside-down. The city remained ...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
Reasonably, an underwater city would not particularly look like the cities we are familiar with and would not be recognized as a settlement unless someone goes and looks at with Mark II Eyeball. They would have no interest in roads. So there would be no easily discernible grid. Transport and travel would then happen a...
In an old short story I wrote years ago (but never published because my writing was *meh*), I figured that Atlantis was sitting on the top of a volcanic island and during an earthquake, the city that had overdevelopped to the point of weakening the soil, fell into a nearby oceanic trench upside-down. The city remained ...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
Reasonably, an underwater city would not particularly look like the cities we are familiar with and would not be recognized as a settlement unless someone goes and looks at with Mark II Eyeball. They would have no interest in roads. So there would be no easily discernible grid. Transport and travel would then happen a...
> > Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? > > > You **already** need magic or very advanced technology to justify a city existing **underw...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
> > Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? > > > You **already** need magic or very advanced technology to justify a city existing **underw...
If the Atlanteans wanted to be invisible to radar they could use materials similar to the rubber like tiles used on submarines. If they needed a particularly primitive version of this then large amounts of organic matter, especially seaweed of the sort with the flotation air sacs, would be useful in deflecting and abso...
94,839
It is still a myth as far as our modern civilization is concerned, Atlantis located somewhere within the devil's triangle and it's inhabitants had struck down many planes and vessels daring to disturb the peace. Without resorting to magic how can Atlantis disappear from the sonar? (Answer with most primitive tech wins....
2017/10/14
['https://worldbuilding.stackexchange.com/questions/94839', 'https://worldbuilding.stackexchange.com', 'https://worldbuilding.stackexchange.com/users/8400/']
Reasonably, an underwater city would not particularly look like the cities we are familiar with and would not be recognized as a settlement unless someone goes and looks at with Mark II Eyeball. They would have no interest in roads. So there would be no easily discernible grid. Transport and travel would then happen a...
If the Atlanteans wanted to be invisible to radar they could use materials similar to the rubber like tiles used on submarines. If they needed a particularly primitive version of this then large amounts of organic matter, especially seaweed of the sort with the flotation air sacs, would be useful in deflecting and abso...
63,856,249
I'm trying to identify CSS color values in strings. Not only hex, but rgb and hsl as well, I've found these throughout different stack posts: ```js const hexRegex = /#([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?\b/ const hslRegex = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g const rgbRegex = /rgba?\(((25[0-5]|2[0-4]\...
2020/09/12
['https://Stackoverflow.com/questions/63856249', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1104148/']
You can use the following regular expressions. Note that the regular expressions make use of the `i` flag to match any lowercase and uppercase variants. These have full support for the formats outlined in [Mozilla's documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) (I'm too lazy to go through...
You can add another `(,\s*[\d.]*)?` right before the closing bracket which makes the alpha value optional. ``` const hslReges = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(,\s*[\d.]*)?\)/g ```
3,446,203
For constants $\alpha$, $\beta$, and $\gamma$ with $0<\alpha<\beta<\gamma$, define a sequence by $a\_1 = \gamma$ and $$a\_{n+1}=\frac{a\_{n}^2+\alpha\beta}{\alpha+\beta}$$ I am fairly sure that this sequence diverges to $+\infty$, but how can I prove it? I thought it might be something like showing by induction that $a...
2019/11/22
['https://math.stackexchange.com/questions/3446203', 'https://math.stackexchange.com', 'https://math.stackexchange.com/users/554727/']
The actual definition of a presentation is that $\left< G\mid R\right>$ stands for the quotient of the free group over the set $G$ quotiented by the normal closure of the set $R$. The rough definition is that elements of the resulting group are going to be words in the alphabet $G$, subject to the relations present in...
> > for example $1$ and $2$ are thus terms without an equal sign in $\Bbb Z/3$ how are they equal to the group identity? > > > They're not since they're neither relations nor relators.
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
I made this function for me using the previous answers. Maybe it is useful to someone here =) ``` utmzone <- function(lon,lat) { ## Special Cases for Norway & Svalbard if (lat > 55 & lat < 64 & lon > 2 & lon < 6){ band <- 32 } else { if (lat > 71 & lon >= 6 & lon < 9){ band <- 31 } else { if (lat > 71 & l...
So I had this problem today, that I needed to find the UTM zone from lat/long for points all over the globe. The trouble is that there's all these curly edge cases like Svalbard, Norway, and the poles:[![UTM curly edge cases](https://i.stack.imgur.com/Rhj62.jpg)](https://i.stack.imgur.com/Rhj62.jpg) (shown in red on th...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
**Edit:** For (non-R) code that works for *all* non-polar areas on earth, see [here](https://gis.stackexchange.com/questions/13291/is-there-a-simple-way-to-compute-the-utm-zone-from-a-lat-long-point) or [here](http://www.igorexchange.com/node/927). --- Unless you are dealing with data from a couple of exceptional are...
So I had this problem today, that I needed to find the UTM zone from lat/long for points all over the globe. The trouble is that there's all these curly edge cases like Svalbard, Norway, and the poles:[![UTM curly edge cases](https://i.stack.imgur.com/Rhj62.jpg)](https://i.stack.imgur.com/Rhj62.jpg) (shown in red on th...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
I made this function for me using the previous answers. Maybe it is useful to someone here =) ``` utmzone <- function(lon,lat) { ## Special Cases for Norway & Svalbard if (lat > 55 & lat < 64 & lon > 2 & lon < 6){ band <- 32 } else { if (lat > 71 & lon >= 6 & lon < 9){ band <- 31 } else { if (lat > 71 & l...
Version for TypeScript, based on [Luiz Bondis summary](https://stackoverflow.com/a/65329856/189673): ```js export function utmZoneFromLatLng(lat: number, lon: number) { // Special Cases for Norway & Svalbard if (lat > 55 && lat < 64 && lon > 2 && lon < 6) { return 32; } if (lat > 71 && lon >= 6 && lon < 9)...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
**Edit:** For (non-R) code that works for *all* non-polar areas on earth, see [here](https://gis.stackexchange.com/questions/13291/is-there-a-simple-way-to-compute-the-utm-zone-from-a-lat-long-point) or [here](http://www.igorexchange.com/node/927). --- Unless you are dealing with data from a couple of exceptional are...
Version for TypeScript, based on [Luiz Bondis summary](https://stackoverflow.com/a/65329856/189673): ```js export function utmZoneFromLatLng(lat: number, lon: number) { // Special Cases for Norway & Svalbard if (lat > 55 && lat < 64 && lon > 2 && lon < 6) { return 32; } if (lat > 71 && lon >= 6 && lon < 9)...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
I don't know r-code but I suppose this PL/SQL code can help you with the exceptions: ``` UTMZone := Trunc((lon - Zone0WestMeridian) / d); --Special Cases for Norway & Svalbard CASE WHEN (lat > 55) AND (UTMZone = 31) AND (lat < 64) AND (lon > 2) THEN UTMZone := 32; WHEN (lat > 71) AND (UTMZone = 32...
Version for TypeScript, based on [Luiz Bondis summary](https://stackoverflow.com/a/65329856/189673): ```js export function utmZoneFromLatLng(lat: number, lon: number) { // Special Cases for Norway & Svalbard if (lat > 55 && lat < 64 && lon > 2 && lon < 6) { return 32; } if (lat > 71 && lon >= 6 && lon < 9)...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
I made this function for me using the previous answers. Maybe it is useful to someone here =) ``` utmzone <- function(lon,lat) { ## Special Cases for Norway & Svalbard if (lat > 55 & lat < 64 & lon > 2 & lon < 6){ band <- 32 } else { if (lat > 71 & lon >= 6 & lon < 9){ band <- 31 } else { if (lat > 71 & l...
Python version: ``` def get_utm_fromLatLon(lat, lon): #Special Cases for Norway and Svalbard if (lat > 55 and lat < 64 and lon > 2 and lon < 6): return 32 elif (lat > 71 and lon >= 6 and lon < 9): return 31 elif (lat > 71 and ((lon >= 9 and lon < 12) or (lon >= 18 and lon < 21))): ...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
So I had this problem today, that I needed to find the UTM zone from lat/long for points all over the globe. The trouble is that there's all these curly edge cases like Svalbard, Norway, and the poles:[![UTM curly edge cases](https://i.stack.imgur.com/Rhj62.jpg)](https://i.stack.imgur.com/Rhj62.jpg) (shown in red on th...
Python version: ``` def get_utm_fromLatLon(lat, lon): #Special Cases for Norway and Svalbard if (lat > 55 and lat < 64 and lon > 2 and lon < 6): return 32 elif (lat > 71 and lon >= 6 and lon < 9): return 31 elif (lat > 71 and ((lon >= 9 and lon < 12) or (lon >= 18 and lon < 21))): ...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
**Edit:** For (non-R) code that works for *all* non-polar areas on earth, see [here](https://gis.stackexchange.com/questions/13291/is-there-a-simple-way-to-compute-the-utm-zone-from-a-lat-long-point) or [here](http://www.igorexchange.com/node/927). --- Unless you are dealing with data from a couple of exceptional are...
I made this function for me using the previous answers. Maybe it is useful to someone here =) ``` utmzone <- function(lon,lat) { ## Special Cases for Norway & Svalbard if (lat > 55 & lat < 64 & lon > 2 & lon < 6){ band <- 32 } else { if (lat > 71 & lon >= 6 & lon < 9){ band <- 31 } else { if (lat > 71 & l...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
**Edit:** For (non-R) code that works for *all* non-polar areas on earth, see [here](https://gis.stackexchange.com/questions/13291/is-there-a-simple-way-to-compute-the-utm-zone-from-a-lat-long-point) or [here](http://www.igorexchange.com/node/927). --- Unless you are dealing with data from a couple of exceptional are...
I don't know r-code but I suppose this PL/SQL code can help you with the exceptions: ``` UTMZone := Trunc((lon - Zone0WestMeridian) / d); --Special Cases for Norway & Svalbard CASE WHEN (lat > 55) AND (UTMZone = 31) AND (lat < 64) AND (lon > 2) THEN UTMZone := 32; WHEN (lat > 71) AND (UTMZone = 32...
9,186,496
I'm writing a program which expects a number of lat/long points, and I convert them internally to UTM in order to do some calculations in metres. The range of the lat/long points themselves is quite small -- about 200m x 200m. They can be relied on almost always to be within a single UTM zone (unless you get unlucky a...
2012/02/08
['https://Stackoverflow.com/questions/9186496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/913184/']
I don't know r-code but I suppose this PL/SQL code can help you with the exceptions: ``` UTMZone := Trunc((lon - Zone0WestMeridian) / d); --Special Cases for Norway & Svalbard CASE WHEN (lat > 55) AND (UTMZone = 31) AND (lat < 64) AND (lon > 2) THEN UTMZone := 32; WHEN (lat > 71) AND (UTMZone = 32...
Python version: ``` def get_utm_fromLatLon(lat, lon): #Special Cases for Norway and Svalbard if (lat > 55 and lat < 64 and lon > 2 and lon < 6): return 32 elif (lat > 71 and lon >= 6 and lon < 9): return 31 elif (lat > 71 and ((lon >= 9 and lon < 12) or (lon >= 18 and lon < 21))): ...
13,735,783
I have a youtube player with custom HTML controls and would like to add a button to turn on/off closed caption and to toggle the language. Anyone have experience with using either the JS or iframe API to do this? I know that appending cc\_load\_policy=1 to the url will force the captions to display, but I am using cust...
2012/12/06
['https://Stackoverflow.com/questions/13735783', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1879911/']
I have not found this anywhere in their api docs, but with your youtube player object you should be able to do: ``` player.loadModule("captions"); //Works for html5 ignored by AS3 player.loadModule("cc"); //Works for AS3 ignored by html5 ``` to turn it off: ``` player.unloadModule("captions"); //Works for html5 ...
Unfortunately, we don't have full API support over captions right now. You can add yourself to this external feature request to be notified when this changes: <https://code.google.com/p/gdata-issues/issues/detail?id=444> (Despite the age of that feature request, there are people actively looking on adding support.)
13,735,783
I have a youtube player with custom HTML controls and would like to add a button to turn on/off closed caption and to toggle the language. Anyone have experience with using either the JS or iframe API to do this? I know that appending cc\_load\_policy=1 to the url will force the captions to display, but I am using cust...
2012/12/06
['https://Stackoverflow.com/questions/13735783', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1879911/']
I have not found this anywhere in their api docs, but with your youtube player object you should be able to do: ``` player.loadModule("captions"); //Works for html5 ignored by AS3 player.loadModule("cc"); //Works for AS3 ignored by html5 ``` to turn it off: ``` player.unloadModule("captions"); //Works for html5 ...
```js function onPlayerStateChange(event) { try { player.unloadModule("captions"); player.unloadModule("cc"); } catch (exception) { LoggerUtil.logError("Error when trying to unloadModule youtube captions: " + exception); } // The rest of your function } ``` Thanks **James Irwin** those t...
24,876
Crossposted from [MO](https://mathoverflow.net/questions/171493/polynomial-problems-in-graph-classes-defined-by-forbidden-induced-cyclic-subgrap). Let $C$ be a graph class defined by a finite number of forbidden induced subgraphs, all of which are cyclic (contain at least one cycle). > > Are there NP-hard graph prob...
2014/06/13
['https://cstheory.stackexchange.com/questions/24876', 'https://cstheory.stackexchange.com', 'https://cstheory.stackexchange.com/users/22348/']
I think there is a number of hard problems that become easy for triangle-free graphs; especially those deal directly with triangles such as Partition Into Triangles (Does G have a partition into triangles?). Other less trivial examples include: * Stable Cutset Problem (Does G have an independent set S such that G-S is...
From the comment above: in [Stefan Kratsch, Pascal Schweitzer, Graph Isomorphism for Graph Classes Characterized by two Forbidden Induced Subgraphs](http://arxiv.org/abs/1208.0142): GI is polynomial time (trivially) solvable for $(K\_s,I\_t)\text{-free}$ graphs, but also (less trivially) for $(K\_s,K\_{1,t})\text{-free...
24,876
Crossposted from [MO](https://mathoverflow.net/questions/171493/polynomial-problems-in-graph-classes-defined-by-forbidden-induced-cyclic-subgrap). Let $C$ be a graph class defined by a finite number of forbidden induced subgraphs, all of which are cyclic (contain at least one cycle). > > Are there NP-hard graph prob...
2014/06/13
['https://cstheory.stackexchange.com/questions/24876', 'https://cstheory.stackexchange.com', 'https://cstheory.stackexchange.com/users/22348/']
Here are some additional examples to Mon Tag's answer : * The Disconnected Cutset problem (Does $G$ admit a set of vertices $S$ such that $G-S$ and the subgraph of $G$ induced by $S$ are disconnected) is NP-complete (see [here](http://dx.doi.org/10.1007/978-3-642-23786-7_43)). It is easy to see that this problem is po...
From the comment above: in [Stefan Kratsch, Pascal Schweitzer, Graph Isomorphism for Graph Classes Characterized by two Forbidden Induced Subgraphs](http://arxiv.org/abs/1208.0142): GI is polynomial time (trivially) solvable for $(K\_s,I\_t)\text{-free}$ graphs, but also (less trivially) for $(K\_s,K\_{1,t})\text{-free...
24,876
Crossposted from [MO](https://mathoverflow.net/questions/171493/polynomial-problems-in-graph-classes-defined-by-forbidden-induced-cyclic-subgrap). Let $C$ be a graph class defined by a finite number of forbidden induced subgraphs, all of which are cyclic (contain at least one cycle). > > Are there NP-hard graph prob...
2014/06/13
['https://cstheory.stackexchange.com/questions/24876', 'https://cstheory.stackexchange.com', 'https://cstheory.stackexchange.com/users/22348/']
From the comment above: in [Stefan Kratsch, Pascal Schweitzer, Graph Isomorphism for Graph Classes Characterized by two Forbidden Induced Subgraphs](http://arxiv.org/abs/1208.0142): GI is polynomial time (trivially) solvable for $(K\_s,I\_t)\text{-free}$ graphs, but also (less trivially) for $(K\_s,K\_{1,t})\text{-free...
MAX-CUT remains NP-complete. **Lemma 3.2** simple max-cut is NP-complete in the following two classes of graphs: graphs not containing cycles of length at most $k$, for every $k \ge 3$. They are subdividing an edge twice. From "MAX-CUT and containment relations in graphs, Marcin Kaminski"
24,876
Crossposted from [MO](https://mathoverflow.net/questions/171493/polynomial-problems-in-graph-classes-defined-by-forbidden-induced-cyclic-subgrap). Let $C$ be a graph class defined by a finite number of forbidden induced subgraphs, all of which are cyclic (contain at least one cycle). > > Are there NP-hard graph prob...
2014/06/13
['https://cstheory.stackexchange.com/questions/24876', 'https://cstheory.stackexchange.com', 'https://cstheory.stackexchange.com/users/22348/']
I think there is a number of hard problems that become easy for triangle-free graphs; especially those deal directly with triangles such as Partition Into Triangles (Does G have a partition into triangles?). Other less trivial examples include: * Stable Cutset Problem (Does G have an independent set S such that G-S is...
MAX-CUT remains NP-complete. **Lemma 3.2** simple max-cut is NP-complete in the following two classes of graphs: graphs not containing cycles of length at most $k$, for every $k \ge 3$. They are subdividing an edge twice. From "MAX-CUT and containment relations in graphs, Marcin Kaminski"
24,876
Crossposted from [MO](https://mathoverflow.net/questions/171493/polynomial-problems-in-graph-classes-defined-by-forbidden-induced-cyclic-subgrap). Let $C$ be a graph class defined by a finite number of forbidden induced subgraphs, all of which are cyclic (contain at least one cycle). > > Are there NP-hard graph prob...
2014/06/13
['https://cstheory.stackexchange.com/questions/24876', 'https://cstheory.stackexchange.com', 'https://cstheory.stackexchange.com/users/22348/']
Here are some additional examples to Mon Tag's answer : * The Disconnected Cutset problem (Does $G$ admit a set of vertices $S$ such that $G-S$ and the subgraph of $G$ induced by $S$ are disconnected) is NP-complete (see [here](http://dx.doi.org/10.1007/978-3-642-23786-7_43)). It is easy to see that this problem is po...
MAX-CUT remains NP-complete. **Lemma 3.2** simple max-cut is NP-complete in the following two classes of graphs: graphs not containing cycles of length at most $k$, for every $k \ge 3$. They are subdividing an edge twice. From "MAX-CUT and containment relations in graphs, Marcin Kaminski"
21,020,187
From [this Spring documentation](http://docs.spring.io/spring/docs/3.2.6.RELEASE/spring-framework-reference/htmlsingle/#beans-factory-autowire) I know that when I use @Bean, the default is already equivalent to: @Bean(autowire = Autowire.NO) > > (Default) No autowiring. Bean references must be defined via a ref elem...
2014/01/09
['https://Stackoverflow.com/questions/21020187', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1538856/']
The `autowire` element of the `@Bean` annotation (as well as the `autowire` attribute of the `bean` element in xml-based config) determines the autowiring status of the **bean's own properties** and has no relation to how a bean which is marked with the `@Bean` annotation will be injected into other beans. On the oth...
That is what the spring documentation says though right? the default is NO. So, even if you do explicitly specify it it shouldnt have any impact. Also, when you do specify a bean, what you did mention of it being Autowire.No is correct. so it shouldnt have any impact.
21,020,187
From [this Spring documentation](http://docs.spring.io/spring/docs/3.2.6.RELEASE/spring-framework-reference/htmlsingle/#beans-factory-autowire) I know that when I use @Bean, the default is already equivalent to: @Bean(autowire = Autowire.NO) > > (Default) No autowiring. Bean references must be defined via a ref elem...
2014/01/09
['https://Stackoverflow.com/questions/21020187', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1538856/']
Setting `Autowire.NO` does not mean that the bean cannot be injected in other beans via `@Autowire`. `@Autowire` works by default by type, and can also work by name using `@Qualifier`. So if your bean has the right type or name, it will get inject in other beans, that's normal. `Autowire.NO` means something like: > ...
That is what the spring documentation says though right? the default is NO. So, even if you do explicitly specify it it shouldnt have any impact. Also, when you do specify a bean, what you did mention of it being Autowire.No is correct. so it shouldnt have any impact.