qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
18,081,917 | ```
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href = "Jquery.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
var amount = new Array();
var x;
amount[0] = 1;
function jobID(form){
x = document.... | 2013/08/06 | [
"https://Stackoverflow.com/questions/18081917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1449637/"
] | Your scope of `x` is the issue. `x` is local to jobID. Declare `x` outside of the function.
```
var x;
function jobID(form){
x = document.forms["JobIdForm"]["jobid"].value;
return false;
}
``` | try something like this:
js
==
```
$(function(){ //equivalent to $(document).read(function(){});
//you are running "joID(form)" on submit now, but have it written/called right in the html. i try to avoid that.
$("form[name='JobIdForm']").submit(function(event){
//i did not see an actual form[action] valu... |
5,651,956 | So I saw [this question](https://stackoverflow.com/q/3573554/186643) here on SO, but it hasn't really solved this problem for me.
I have an ASP.NET MVC 3 + Razor app running on IIS5 on my dev pc, and then IIS6 for my dev web server. Everything worked great until I deployed it. I am bin deploying everything, with no pr... | 2011/04/13 | [
"https://Stackoverflow.com/questions/5651956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186643/"
] | It's probably because you're getting errors from your DB service when it's deployed, which you aren't getting locally. This is causing it to try and redirect from a child action, which you can't do.
You might want to try getting the drop-down data in your main action, and put it all in a ViewModel, so you aren't using... | I had a similar problem but for the life of me, I couldn't figure out where the redirection was coming from. Once I figured it out, I thought I'd post an answer in case it happens to anyone else.
If the source of the redirection is not apparent from the imperative code, e.g.:
```
[AuthoriseThis]
public Action... |
5,651,956 | So I saw [this question](https://stackoverflow.com/q/3573554/186643) here on SO, but it hasn't really solved this problem for me.
I have an ASP.NET MVC 3 + Razor app running on IIS5 on my dev pc, and then IIS6 for my dev web server. Everything worked great until I deployed it. I am bin deploying everything, with no pr... | 2011/04/13 | [
"https://Stackoverflow.com/questions/5651956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186643/"
] | It's probably because you're getting errors from your DB service when it's deployed, which you aren't getting locally. This is causing it to try and redirect from a child action, which you can't do.
You might want to try getting the drop-down data in your main action, and put it all in a ViewModel, so you aren't using... | if you put in the child action
`(ControllerContext.ParentActionViewContext.Controller as System.Web.Mvc.Controller).Response.Redirect(Url.Action("Action", "Controller"));` it will redirect from the childaction. |
5,651,956 | So I saw [this question](https://stackoverflow.com/q/3573554/186643) here on SO, but it hasn't really solved this problem for me.
I have an ASP.NET MVC 3 + Razor app running on IIS5 on my dev pc, and then IIS6 for my dev web server. Everything worked great until I deployed it. I am bin deploying everything, with no pr... | 2011/04/13 | [
"https://Stackoverflow.com/questions/5651956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186643/"
] | if you put in the child action
`(ControllerContext.ParentActionViewContext.Controller as System.Web.Mvc.Controller).Response.Redirect(Url.Action("Action", "Controller"));` it will redirect from the childaction. | I had a similar problem but for the life of me, I couldn't figure out where the redirection was coming from. Once I figured it out, I thought I'd post an answer in case it happens to anyone else.
If the source of the redirection is not apparent from the imperative code, e.g.:
```
[AuthoriseThis]
public Action... |
55,371,468 | I am building a landing page with fixed left and right image and content in the middle. in desktop view its working fine but in mobile view the images overlapping the contents. how do I fix this?
```
<div class="container">
<div class="row">
<div class="col-sm col-lg mt-5 mb-5">
... | 2019/03/27 | [
"https://Stackoverflow.com/questions/55371468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10110626/"
] | ```css
.dashed-box {
position: relative;
z-index: 1;
border: dashed;
height: 8em;
margin-bottom: 1em;
margin-top: 2em;
}
.gold-box {
position: absolute;
z-index: 3; /* put .gold-box above .green-box and .dashed-box */
background: gold;
width: 80%;
left: 60px;
top: 3em;
}
.green... | Set the Z-index on those images. The trick is that the content needs higher position than the images.
Example:
.img\_class {z-index: -1} |
55,371,468 | I am building a landing page with fixed left and right image and content in the middle. in desktop view its working fine but in mobile view the images overlapping the contents. how do I fix this?
```
<div class="container">
<div class="row">
<div class="col-sm col-lg mt-5 mb-5">
... | 2019/03/27 | [
"https://Stackoverflow.com/questions/55371468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10110626/"
] | ```css
.dashed-box {
position: relative;
z-index: 1;
border: dashed;
height: 8em;
margin-bottom: 1em;
margin-top: 2em;
}
.gold-box {
position: absolute;
z-index: 3; /* put .gold-box above .green-box and .dashed-box */
background: gold;
width: 80%;
left: 60px;
top: 3em;
}
.green... | If you assign the `!important` keyword after the z-index for `.left` and `.right` classes and then explicitly set a higher z-index on `.container` class it appears to work ok.
```
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8' />
<title>plantshop.me</title>
<link href="//stac... |
55,371,468 | I am building a landing page with fixed left and right image and content in the middle. in desktop view its working fine but in mobile view the images overlapping the contents. how do I fix this?
```
<div class="container">
<div class="row">
<div class="col-sm col-lg mt-5 mb-5">
... | 2019/03/27 | [
"https://Stackoverflow.com/questions/55371468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10110626/"
] | ```css
.dashed-box {
position: relative;
z-index: 1;
border: dashed;
height: 8em;
margin-bottom: 1em;
margin-top: 2em;
}
.gold-box {
position: absolute;
z-index: 3; /* put .gold-box above .green-box and .dashed-box */
background: gold;
width: 80%;
left: 60px;
top: 3em;
}
.green... | try to increase the z-index like z-index:9999 of behrain image and leaf z-index to 9 in mobile view. |
27,636,547 | I'm making a math library because 0.1 + 0.2 DOES NOT = 0.30000000000004. But I ran into a really weird problem
I have an array:
```
var array = [1,2,3,".",4,5,6];
```
I want to split it into two parts so I...
```
var part1 = array;
var part2 = array;
```
And then...
```
for (var i = 4; i < 7; i++) {
part1[i] ... | 2014/12/24 | [
"https://Stackoverflow.com/questions/27636547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4093378/"
] | This happens because both `part1` and `part2` (and obviously `array` too) variables are pointing to the same memory address, which stores the same information, therefore if you edit any of the three arrays the changes will be visible in all of them, because you're modifying the same value represented by three different... | You have to copy the array:
```
var part1 = array.concat();// it is possible to use array.slice() too.
var part2 = array.concat();
```
If not, you are always modifying the same object, since part1 and part2 will have a reference to the array variable.
On the other hand, I would not recomend you to build your own ma... |
27,636,547 | I'm making a math library because 0.1 + 0.2 DOES NOT = 0.30000000000004. But I ran into a really weird problem
I have an array:
```
var array = [1,2,3,".",4,5,6];
```
I want to split it into two parts so I...
```
var part1 = array;
var part2 = array;
```
And then...
```
for (var i = 4; i < 7; i++) {
part1[i] ... | 2014/12/24 | [
"https://Stackoverflow.com/questions/27636547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4093378/"
] | You have to copy the array:
```
var part1 = array.concat();// it is possible to use array.slice() too.
var part2 = array.concat();
```
If not, you are always modifying the same object, since part1 and part2 will have a reference to the array variable.
On the other hand, I would not recomend you to build your own ma... | What is going wrong in your code is that you don't create a clone of the array: `array`, `part1`, and `part2` all point to the very same array. You can create a copy like `part1 = array.slice(0)`.
Instead of writing your own math library to solve floating point round-off errors, you can use for example BigNumbers in [... |
27,636,547 | I'm making a math library because 0.1 + 0.2 DOES NOT = 0.30000000000004. But I ran into a really weird problem
I have an array:
```
var array = [1,2,3,".",4,5,6];
```
I want to split it into two parts so I...
```
var part1 = array;
var part2 = array;
```
And then...
```
for (var i = 4; i < 7; i++) {
part1[i] ... | 2014/12/24 | [
"https://Stackoverflow.com/questions/27636547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4093378/"
] | This happens because both `part1` and `part2` (and obviously `array` too) variables are pointing to the same memory address, which stores the same information, therefore if you edit any of the three arrays the changes will be visible in all of them, because you're modifying the same value represented by three different... | What is going wrong in your code is that you don't create a clone of the array: `array`, `part1`, and `part2` all point to the very same array. You can create a copy like `part1 = array.slice(0)`.
Instead of writing your own math library to solve floating point round-off errors, you can use for example BigNumbers in [... |
58,292,264 | I'm uploading multiple files with form field
```
<input type="file" accept="image/jpeg, image/png" multiple
```
a loop sends all files to upload function
```
// Upload photo function
var upload = function (photo, callback) {
var formData = new FormData();
formDat... | 2019/10/08 | [
"https://Stackoverflow.com/questions/58292264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10815299/"
] | You can modify your Action method like
```
[HttpPost]
public ActionResult CalculatePurePrice([FromBody]string TotalPrice)
{
return Json(TotalPrice, JsonRequestBehavior.AllowGet);
}
``` | For your issue, it is caused by `dataType: 'json'` which is telling jQuery what kind of response to expect. For plain test without `""`, it will fail to convert to json. If you enter `"test"` in the input, it will work, but if you enter `test` directly, it will fail since there is no extra `""`.
For a workaround, you ... |
58,292,264 | I'm uploading multiple files with form field
```
<input type="file" accept="image/jpeg, image/png" multiple
```
a loop sends all files to upload function
```
// Upload photo function
var upload = function (photo, callback) {
var formData = new FormData();
formDat... | 2019/10/08 | [
"https://Stackoverflow.com/questions/58292264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10815299/"
] | You need to add `Accept` header in your ajax request. Then your backend will give proper json or it will return plain text.
$('.calculateField').on('input', function (e) {
```
var requestData = $('.calculateField').val();
$.ajax({
url: '/InsurancePolicyContract/CalculatePurePrice',
type: 'POST',
data: JS... | For your issue, it is caused by `dataType: 'json'` which is telling jQuery what kind of response to expect. For plain test without `""`, it will fail to convert to json. If you enter `"test"` in the input, it will work, but if you enter `test` directly, it will fail since there is no extra `""`.
For a workaround, you ... |
15,220,585 | I have fields that different people should see in different names.
For example, suppose I have the following user types:
```
public enum UserType {Expert, Normal, Guest}
```
I implemented an `IMetadataAware` attribute:
```
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class DisplayForUs... | 2013/03/05 | [
"https://Stackoverflow.com/questions/15220585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7586/"
] | I know I am bit late to this party but I was looking to the answer to same question and couldn't find it anywhere on the web. In the end I worked it out myself.
The short answer is yes you can have multiple attributes of the same type that implement IMetadataAware interface on the same field / property. You just have ... | You implementation is not wrong, but any attribute that implements `IMetadataAware` is applied by the [AssociatedMetadataProvider](http://msdn.microsoft.com/en-us/library/system.web.mvc.associatedmetadataprovider%28v=vs.98%29.aspx) (and any derived type) after the Metadata creation.
To override the default behavior, yo... |
15,012,057 | I am just coding a small website with an admin panel.
Since I am going to be the only one who will access that panel I was thinking instead of making traditional username - password matching just make simple .htaccess file to admin folder as
```
<Limit GET POST>
order deny,allow
deny from all
allow from myip
al... | 2013/02/21 | [
"https://Stackoverflow.com/questions/15012057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408868/"
] | Restricting by IP is a perfectly valid alternative to protecting with a password, but less flexible for access.
If you use SSL then you could implement [SSLRequire](http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequire) to make things more flexible whilst still "password-less" (note issue with threaded MPM).
H... | Syntax is like this:
```
<Limit GET POST>
order deny,allow
deny from all
allow from 1.2.3.4
allow from 127.0.01
</Limit>
```
It should be secure but keep in mind that if some one from the same server tries to access you web pages then with 127.0.0.1 IP it is no longer protects your pages. |
15,012,057 | I am just coding a small website with an admin panel.
Since I am going to be the only one who will access that panel I was thinking instead of making traditional username - password matching just make simple .htaccess file to admin folder as
```
<Limit GET POST>
order deny,allow
deny from all
allow from myip
al... | 2013/02/21 | [
"https://Stackoverflow.com/questions/15012057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1408868/"
] | Restricting by IP is a perfectly valid alternative to protecting with a password, but less flexible for access.
If you use SSL then you could implement [SSLRequire](http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequire) to make things more flexible whilst still "password-less" (note issue with threaded MPM).
H... | What about order?
```
order deny,allow
deny from all
allow from 127.0.0.1
``` |
35,765 | I have started to develop a simple 3D engine. I use OpenGL for rendering, and it is developed for Windows. It is all written in C.
How do I write an interface for the keyboard and mouse input? I would like to keep it as simple as possible - in contrast to the native Win32 input system. | 2012/09/09 | [
"https://gamedev.stackexchange.com/questions/35765",
"https://gamedev.stackexchange.com",
"https://gamedev.stackexchange.com/users/19693/"
] | There is more than one one way to skin the cat. If I understand correctly, you want to be able to take input from keyboard and mouse and use that to control stuff in your engine. But to write such interface from scratch, by yourself, would not only be a classic case of reinventing the wheel, but also, a very tedious ta... | There are frameworks like [FreeGLUT](http://freeglut.sourceforge.net/) that give a basic input/output abilities with keyboard and mouse, but if you want more there are the [Visual C++ APIs](http://msdn.microsoft.com/en-us/library/windows/desktop/ms645530%28v=vs.85%29.aspx) for Windows. |
5,108,069 | How do i use the flash context in spring without having to install webflow? | 2011/02/24 | [
"https://Stackoverflow.com/questions/5108069",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26188/"
] | In [mvc-showcase](https://anonsvn.springframework.org/svn/spring-samples/mvc-showcase/) example you can find special filter which emulates flash scope behaviour, so probably you can use it right now and don't waiting 3.1 with official support.
See for details: [web.xml](https://anonsvn.springframework.org/svn/spring-s... | `@SessionAttributes` can be used like a flash context, since you can clear them using `SessionStatus` |
146,223 | At the first I should add that different cultures have different attitudes and believes, so with that in mind I would like to ask my question that may seem weird to almost all European, American, Australian countries. :)
As women colleagues shake hands with men in company, how should I prevent shaking hands (maybe by ... | 2019/10/09 | [
"https://workplace.stackexchange.com/questions/146223",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/97397/"
] | If you are based in any of the countries you mentioned in your question the only way you can avoid shaking hands with women is to avoid shaking hands with everyone regardless of gender.
Treating people differently based on gender is discrimination and whilst small hand shaking could be perceived this way. I’m not sur... | At work, in many cultures including the regions you mentioned in your question, you should treat men and women the same. Specifically, if you don't shake hands with women, do not shake hands with men, but it extends to all interactions.
Pick some non-contact greeting gesture. One person I know who does not shake hands... |
146,223 | At the first I should add that different cultures have different attitudes and believes, so with that in mind I would like to ask my question that may seem weird to almost all European, American, Australian countries. :)
As women colleagues shake hands with men in company, how should I prevent shaking hands (maybe by ... | 2019/10/09 | [
"https://workplace.stackexchange.com/questions/146223",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/97397/"
] | If you are based in any of the countries you mentioned in your question the only way you can avoid shaking hands with women is to avoid shaking hands with everyone regardless of gender.
Treating people differently based on gender is discrimination and whilst small hand shaking could be perceived this way. I’m not sur... | >
> What is the best way to say hello with all respect?
>
>
>
Bow, it's a respectful greeting, better than nothing.
Refusing to shake hands with women would be found distasteful to any in the Western World, so don't expect it to go unnoticed, however bowing is acceptable. When I say bow I mean whatever goes in th... |
146,223 | At the first I should add that different cultures have different attitudes and believes, so with that in mind I would like to ask my question that may seem weird to almost all European, American, Australian countries. :)
As women colleagues shake hands with men in company, how should I prevent shaking hands (maybe by ... | 2019/10/09 | [
"https://workplace.stackexchange.com/questions/146223",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/97397/"
] | At work, in many cultures including the regions you mentioned in your question, you should treat men and women the same. Specifically, if you don't shake hands with women, do not shake hands with men, but it extends to all interactions.
Pick some non-contact greeting gesture. One person I know who does not shake hands... | >
> What is the best way to say hello with all respect?
>
>
>
Bow, it's a respectful greeting, better than nothing.
Refusing to shake hands with women would be found distasteful to any in the Western World, so don't expect it to go unnoticed, however bowing is acceptable. When I say bow I mean whatever goes in th... |
27,314 | Background: I have a whole mess of systems running the 2.6.20 and 2.6.22 kernel in what started as a Fedora Core 2 install several years ago. These systems have 8 cpus, as reported by `cat /proc/cpuinfo`.
My question is, when a process is running that uses multi-threading, does 99.99% CPU usage as reported by `top` me... | 2009/06/17 | [
"https://serverfault.com/questions/27314",
"https://serverfault.com",
"https://serverfault.com/users/769/"
] | 99% cpu usage means almost total utilization of single core.
if your system is totally loaded [ couple threads each hogging one cpu ] - you'll see 400% usage on quad core or 800% usage on two quad cores.
processes/threads are re-assigned between cpus - that's why you see 25% of utilisation on each of cores. but you c... | It shows load per core. Don't forget about a great "top" replacement called htop. It will draw you load of individual cpus/cores. |
42,933,170 | I have created a jQuery change event handler which works ok on a normal drop down (choice) field, but as soon as I change that filed property to "Require that this column contains information" = Yes then the event handler will no longer trigger. Any idea how to overcome this?
This is the original code. Could you recom... | 2017/03/21 | [
"https://Stackoverflow.com/questions/42933170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7746884/"
] | Original Answer
---------------
The version 4 of the React Router has **a lot of breaking changes**. You can't use nested routes this way anymore. Check out this example of nested routes using the new version of the React Router.
```
const Header = () => (
<nav>
<ul>
<li>Home</li>
<li>About</li>
... | I think you are misunderstanding the way React-router works.
Nested routes are rendered "Nested", that means that parent routes will renders itself and then all childs, usually used for common routes.
Here you have a working example I am using right now:
```js
<Router history={browserHistory}>
<Route path='/' comp... |
67,260,615 | I've run into a problem with trying to isolate a Country name in a Column.
The country name contains the name of the country followed by its coordinates
like this :
```
1
CBD, Sydney.mw-parser-output .geo-default,.mw-parser-output .geo-dms,.mw-parser-output .geo-dec{display:inline}.mw-parser-output .geo-nondefault,.mw... | 2021/04/26 | [
"https://Stackoverflow.com/questions/67260615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15413212/"
] | A few more examples to generalize the regex pattern would be helpful. This works for one example that you have shared.
```
x <- "Sydney, Australia, 65(degrees),20',30'N,78(degrees),45',87\"E"
sub('.*?, (.*?), \\d+\\(degrees\\).*', '\\1', x)
#[1] "Australia"
```
Or maybe even just to get text after first comma.
```
... | If the country is always after the first comma, this works:
```
library(stringr)
str_extract(df$country, "(?<=,\\s{1,10})[A-Za-z]+(?=[^A-Za-z])")
[1] "Egypt" "Niger" "Syria" "Syria" "Syria" "Venezuela" "Peru"
```
@Ronak's data:
```
df <- structure(list(country = c("EgyAbusir, Egypt.mw-parser-out... |
47,851,421 | I am trying to build my first project using an existing sqlite database in Android Studio. All of the instructions I have referenced say to create an assets folder and copy the database into that folder. A call from the database helper will move the file for me for run time testing. The problem is that when the databas... | 2017/12/17 | [
"https://Stackoverflow.com/questions/47851421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9108569/"
] | Because `spam` isn't a function, it's the result of calling the function `print` with the argument `'Hello!'`, which is `None`, of type `NoneType`.
If you want to assign that expression to a variable, then you can use a lambda:
```
l = lambda: print('Hello!') # Doesn't actually call print
l() # 1. Prints 'Hello!'
l()... | ```
spam = print('Hello!')
```
evaluates the expression on the right hand side and binds its value to `spam`. The return value of the (Python 3) `print()` function is `None`, so `spam` refers to `None`:
```
>>> spam = print('Hello!')
Hello!
>>> spam is None
True
```
One way to handle this is to create a partial fu... |
47,851,421 | I am trying to build my first project using an existing sqlite database in Android Studio. All of the instructions I have referenced say to create an assets folder and copy the database into that folder. A call from the database helper will move the file for me for run time testing. The problem is that when the databas... | 2017/12/17 | [
"https://Stackoverflow.com/questions/47851421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9108569/"
] | Because `spam` isn't a function, it's the result of calling the function `print` with the argument `'Hello!'`, which is `None`, of type `NoneType`.
If you want to assign that expression to a variable, then you can use a lambda:
```
l = lambda: print('Hello!') # Doesn't actually call print
l() # 1. Prints 'Hello!'
l()... | A function, depending on how that function is written, may or may not have an explicit return value. It's up to the author of the function to decide how he wants to implement his function. A function with an explicit return value must have a `return` statement in it. The `return` statement causes the function to end an... |
47,851,421 | I am trying to build my first project using an existing sqlite database in Android Studio. All of the instructions I have referenced say to create an assets folder and copy the database into that folder. A call from the database helper will move the file for me for run time testing. The problem is that when the databas... | 2017/12/17 | [
"https://Stackoverflow.com/questions/47851421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9108569/"
] | ```
spam = print('Hello!')
```
evaluates the expression on the right hand side and binds its value to `spam`. The return value of the (Python 3) `print()` function is `None`, so `spam` refers to `None`:
```
>>> spam = print('Hello!')
Hello!
>>> spam is None
True
```
One way to handle this is to create a partial fu... | A function, depending on how that function is written, may or may not have an explicit return value. It's up to the author of the function to decide how he wants to implement his function. A function with an explicit return value must have a `return` statement in it. The `return` statement causes the function to end an... |
27,878,132 | I understand that the compiler uses the target type to determine the type argument that makes the generic method invocation applicable. For instance, in the following statement:
```
List<String> listOne = Collections.emptyList();
```
where the `Collections.emptyList` has a type parameter `T` in its signature
```
pu... | 2015/01/10 | [
"https://Stackoverflow.com/questions/27878132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1064245/"
] | Each usage of a wildcard has a distinct type associated with it. (Usually the JLS refers to this as being a "fresh type".) This is how for example a compiler error like this works:
```
List<?> list0 = ... ;
List<?> list1 = ... ;
list0.add(list1.get(0)); // error
```
Because it's the case that `list0` and `list1` are... | >
> What is the inferred type in this case? Is it Object? Or it doesn't
> really matter due to the wildcard telling the compiler any type is
> possible?
>
>
>
On one level, it's kind of a philosophical question, because the type argument does not have any effect on the compiled bytecode, so it doesn't really mat... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | This is new version of php code
```
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "your_dbname";
//mysql and db connection
$con = new mysqli($servername, $username, $password, $dbname);
if ($con->connect_error) { //error check
die("Connection failed: " . $con->connect_error);
}
else
{... | try this code
data.php
```
<table border="1">
<tr>
<th>NO.</th>
<th>NAME</th>
<th>Major</th>
</tr>
<?php
//connection to mysql
mysql_connect("localhost", "root", ""); //server , username , password
mysql_select_db("codelution");
//query get data
$sql = mysql_query("SELECT * FROM student ORDER BY id A... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | You can export the data from MySQL to Excel by using this simple code.
```
<?php
include('db_con.php');
$stmt=$db_con->prepare('select * from books');
$stmt->execute();
$columnHeader ='';
$columnHeader = "Sr NO"."\t"."Book Name"."\t"."Book Author"."\t"."Book
ISBN"."\t";
$setData='';
while($rec =$stmt->FETCH(PDO::... | Posts by John Peter and Dileep kurahe helped me to develop what I consider as being a simpler and cleaner solution, just in case anyone else is still looking. (I am not showing any database code because I actually used a $\_SESSION variable.)
The above solutions invariably caused an error upon loading in Excel, about ... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | ***Just Try With The Following :***
**PHP Part :**
```
<?php
/*******EDIT LINES 3-8*******/
$DB_Server = "localhost"; //MySQL Server
$DB_Username = "username"; //MySQL Username
$DB_Password = "password"; //MySQL Password
$DB_DBName = "databasename"; //MySQL Database Name
$DB_TBLNam... | If you just want your query data dumped into excel I have to do this frequently and using an html table is a very simple method. I use mysqli for db queries and the following code for exports to excel:
```
header("Content-Type: application/xls");
header("Content-Disposition: attachment; filename=filename.xls");
... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | If you just want your query data dumped into excel I have to do this frequently and using an html table is a very simple method. I use mysqli for db queries and the following code for exports to excel:
```
header("Content-Type: application/xls");
header("Content-Disposition: attachment; filename=filename.xls");
... | PHPExcel is your friend. Very easy to use and works like a charm.
<https://github.com/PHPOffice/PHPExcel> |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | PHPExcel is your friend. Very easy to use and works like a charm.
<https://github.com/PHPOffice/PHPExcel> | Posts by John Peter and Dileep kurahe helped me to develop what I consider as being a simpler and cleaner solution, just in case anyone else is still looking. (I am not showing any database code because I actually used a $\_SESSION variable.)
The above solutions invariably caused an error upon loading in Excel, about ... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | Try the Following Code Please.
just only update two values.
1.your\_database\_name
2.table\_name
```
<?php
$host="localhost";
$username="root";
$password="";
$dbname="your_database_name";
$con = new mysqli($host, $username, $password,$dbname);
$sql_data="select * from table_name";
... | This is baes on John Peter's answer above. The code is working perfectly but I needed it for WordPress. So, I did something like this:
```
<?php
require '../../../wp-load.php';
$file_name = "registered-users";
$args = array( 'role' => 'client',
'meta_query' => array( array(
'key' => '_dt_transaction_archiv... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | This is new version of php code
```
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "your_dbname";
//mysql and db connection
$con = new mysqli($servername, $username, $password, $dbname);
if ($con->connect_error) { //error check
die("Connection failed: " . $con->connect_error);
}
else
{... | Try this code:
```
<?php
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=hasil-export.xls");
include 'view-lap.php';
?>
``` |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | PHPExcel is your friend. Very easy to use and works like a charm.
<https://github.com/PHPOffice/PHPExcel> | You can export the data from MySQL to Excel by using this simple code.
```
<?php
include('db_con.php');
$stmt=$db_con->prepare('select * from books');
$stmt->execute();
$columnHeader ='';
$columnHeader = "Sr NO"."\t"."Book Name"."\t"."Book Author"."\t"."Book
ISBN"."\t";
$setData='';
while($rec =$stmt->FETCH(PDO::... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | This is new version of php code
```
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "your_dbname";
//mysql and db connection
$con = new mysqli($servername, $username, $password, $dbname);
if ($con->connect_error) { //error check
die("Connection failed: " . $con->connect_error);
}
else
{... | Try the Following Code Please.
just only update two values.
1.your\_database\_name
2.table\_name
```
<?php
$host="localhost";
$username="root";
$password="";
$dbname="your_database_name";
$con = new mysqli($host, $username, $password,$dbname);
$sql_data="select * from table_name";
... |
15,699,301 | I'm trying to get my MySQL data to Excel file, but I'm having problems with Excel cells. All my text goes to one cell, I would like to have each row value in separate Excel cell. Here is my code:
```
$queryexport = ("
SELECT username,password,fullname FROM ecustomer_users
WHERE fk_customer='".$fk_customer."'
");
$row... | 2013/03/29 | [
"https://Stackoverflow.com/questions/15699301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1988417/"
] | ***Just Try With The Following :***
**PHP Part :**
```
<?php
/*******EDIT LINES 3-8*******/
$DB_Server = "localhost"; //MySQL Server
$DB_Username = "username"; //MySQL Username
$DB_Password = "password"; //MySQL Password
$DB_DBName = "databasename"; //MySQL Database Name
$DB_TBLNam... | I think you should try with this API
<http://code.google.com/p/php-excel/source/browse/trunk/php-excel.class.php>
With This
```
Create a quick export from a database table into Excel
Compile some statistical records with a few calculations and deliver
the result in an Excel worksheet
Gather the items off your (web... |
14,466 | I want to open a service for people to print portrait images of people they are inspired by. Musicians, scientists, people such as Einstein, Mozart, etc.
What are the legal concerns of using images of **Google Images** and how can I find images which can be legally used for this purpose? | 2016/10/07 | [
"https://law.stackexchange.com/questions/14466",
"https://law.stackexchange.com",
"https://law.stackexchange.com/users/5614/"
] | There is no country in the world that has *absolute* freedom of speech. There are many that have extreme limits on it.
The country with the greatest freedom is probably the United States of America but even there there are limits.
For example, it is illegal to defame someone. That is, make a factual statement about a... | If you had said it to their faces in the hallway, would you have gotten in trouble? If so, then the answer is yes, you can get in trouble with your school. Probably not with the law, unless you made some credible threat of imminent violence. |
29,069,259 | I am trying to process an array of objects (representing game players) to assign each object a group number based on their current group value.
The catch is that each group should have as close to four players as possible and some players want to be in specific groups which must not be broken (but can be renamed or me... | 2015/03/16 | [
"https://Stackoverflow.com/questions/29069259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2629166/"
] | You're misunderstanding what the ID is. It's not a property of the variable, it's a property of the object that is assigned to the variable. If you change the object, for example from one number to another, you also change the ID. It is *impossible* to change to a different object without also changing the ID.
You can... | The only sure way to do so is to use a mutable object and then mutate it. Since it will be the same object, it will have the same ID.
For immutable objects such as integers and strings, this is all but impossible. |
29,069,259 | I am trying to process an array of objects (representing game players) to assign each object a group number based on their current group value.
The catch is that each group should have as close to four players as possible and some players want to be in specific groups which must not be broken (but can be renamed or me... | 2015/03/16 | [
"https://Stackoverflow.com/questions/29069259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2629166/"
] | The only sure way to do so is to use a mutable object and then mutate it. Since it will be the same object, it will have the same ID.
For immutable objects such as integers and strings, this is all but impossible. | You can do that with a list and it will not change the objects identity.
```py
def _increaseParam(param):
param_list = []
print id(param_list) # -> 3072758732
pitch = 50
param_list.append(param)
param_list[0] += pitch
print id(param_list) # -> 3072758732<br><br>_increaseParam(10)
... |
29,069,259 | I am trying to process an array of objects (representing game players) to assign each object a group number based on their current group value.
The catch is that each group should have as close to four players as possible and some players want to be in specific groups which must not be broken (but can be renamed or me... | 2015/03/16 | [
"https://Stackoverflow.com/questions/29069259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2629166/"
] | You're misunderstanding what the ID is. It's not a property of the variable, it's a property of the object that is assigned to the variable. If you change the object, for example from one number to another, you also change the ID. It is *impossible* to change to a different object without also changing the ID.
You can... | You can do that with a list and it will not change the objects identity.
```py
def _increaseParam(param):
param_list = []
print id(param_list) # -> 3072758732
pitch = 50
param_list.append(param)
param_list[0] += pitch
print id(param_list) # -> 3072758732<br><br>_increaseParam(10)
... |
35,735 | I am looking for a way to create a Photo Post type. Basically a post that is a title and a single image. Where I am getting stuck is the actual attaching an image to a post. I would like to have an image upload field in a metabox. I followed this [guide](http://austinpassy.com/2010/03/creating-custom-metaboxes-and-the-... | 2011/12/07 | [
"https://wordpress.stackexchange.com/questions/35735",
"https://wordpress.stackexchange.com",
"https://wordpress.stackexchange.com/users/10909/"
] | Your above function tests whether a page *is* a child page of some other page, not whether it has children.
You can test for children of the current page like so:
```
function has_children() {
global $post;
$children = get_pages( array( 'child_of' => $post->ID ) );
if( count( $children ) == 0 ) {
... | Here is version for any post type, in case if you are using custom post type
```
function has_children($post_ID = null) {
if ($post_ID === null) {
global $post;
$post_ID = $post->ID;
}
$query = new WP_Query(array('post_parent' => $post_ID, 'post_type' => 'any'));
return $query->have_po... |
59,672 | Can the Yongnuo YN622C TX be used with the YN622C controlling the B800 like the Radio Poppers and Pocket Wizards? | 2015/01/25 | [
"https://photo.stackexchange.com/questions/59672",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/37282/"
] | Depends on what you mean by "controlling."
If by "controlling" you mean firing in sync, as manual triggers, no sweat. The YN-622C has a PC sync port that you can use to hook it up to an AB800 as a radio receiver, and the Bee will fire in sync.
If by "controlling" you mean firing in sync and letting you remotely set ... | I'm trying to use Yongnuo YN622C II on Alien Bees with a Pocket Wizard AC9 to set the power... It seems to work... :-) even if it's just a short house test and the Alien Bee makes some strange sounds... |
59,672 | Can the Yongnuo YN622C TX be used with the YN622C controlling the B800 like the Radio Poppers and Pocket Wizards? | 2015/01/25 | [
"https://photo.stackexchange.com/questions/59672",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/37282/"
] | Depends on what you mean by "controlling."
If by "controlling" you mean firing in sync, as manual triggers, no sweat. The YN-622C has a PC sync port that you can use to hook it up to an AB800 as a radio receiver, and the Bee will fire in sync.
If by "controlling" you mean firing in sync and letting you remotely set ... | Well 1st off yes you can use the YN622C 11 with the Alien Bees but you have to manually change power setting not able to do it by way of remote |
59,672 | Can the Yongnuo YN622C TX be used with the YN622C controlling the B800 like the Radio Poppers and Pocket Wizards? | 2015/01/25 | [
"https://photo.stackexchange.com/questions/59672",
"https://photo.stackexchange.com",
"https://photo.stackexchange.com/users/37282/"
] | Depends on what you mean by "controlling."
If by "controlling" you mean firing in sync, as manual triggers, no sweat. The YN-622C has a PC sync port that you can use to hook it up to an AB800 as a radio receiver, and the Bee will fire in sync.
If by "controlling" you mean firing in sync and letting you remotely set ... | Ok, if you use the YN622C TX on camera and the YN622C on the YN flash you can control the flash with the TX, but when you use the YN622C with the b800 and the YN622C TX, you have to manually change the power output by hand not the TX |
2,305,569 | e.g.
```
public interface CacheClient
{
List<?> getKeysWithExpiryCheck();
}
```
Or should I return
```
List<Object>
``` | 2010/02/21 | [
"https://Stackoverflow.com/questions/2305569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27328/"
] | [Here](http://java.sun.com/docs/books/tutorial/extra/generics/index.html) is a good intro to Java Generics. [A] and [B] explain the difference between ? and Object. Basically, ? indicates that the type is unknown which is a problem if you need to add items to the list. However, if you only read from the list it is OK t... | Could it be to ensure type safety? Returning a List of object means that the list could hold anything. |
2,305,569 | e.g.
```
public interface CacheClient
{
List<?> getKeysWithExpiryCheck();
}
```
Or should I return
```
List<Object>
``` | 2010/02/21 | [
"https://Stackoverflow.com/questions/2305569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27328/"
] | [Here](http://java.sun.com/docs/books/tutorial/extra/generics/index.html) is a good intro to Java Generics. [A] and [B] explain the difference between ? and Object. Basically, ? indicates that the type is unknown which is a problem if you need to add items to the list. However, if you only read from the list it is OK t... | If you declare your method as
```
List<Object> getKeysWithExpiryCheck();
```
You can only return `List<Object>` instances from it, and nothing else. If you e.g. try to return `List<String>`, you get a compilation error. This is because although `Object` is a supertype of `String`, `List<Object>` is not a supertype o... |
2,305,569 | e.g.
```
public interface CacheClient
{
List<?> getKeysWithExpiryCheck();
}
```
Or should I return
```
List<Object>
``` | 2010/02/21 | [
"https://Stackoverflow.com/questions/2305569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27328/"
] | [Here](http://java.sun.com/docs/books/tutorial/extra/generics/index.html) is a good intro to Java Generics. [A] and [B] explain the difference between ? and Object. Basically, ? indicates that the type is unknown which is a problem if you need to add items to the list. However, if you only read from the list it is OK t... | Basically it means that the collection can hold any type.
However when using it's impossible to modify the collection.
```
public void doSomething(Collection<?> col) {
for (Object o : col) {
System.out.println(o);
}
col.add("string"); //Compile Error here !
}
``` |
2,305,569 | e.g.
```
public interface CacheClient
{
List<?> getKeysWithExpiryCheck();
}
```
Or should I return
```
List<Object>
``` | 2010/02/21 | [
"https://Stackoverflow.com/questions/2305569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27328/"
] | If you declare your method as
```
List<Object> getKeysWithExpiryCheck();
```
You can only return `List<Object>` instances from it, and nothing else. If you e.g. try to return `List<String>`, you get a compilation error. This is because although `Object` is a supertype of `String`, `List<Object>` is not a supertype o... | Could it be to ensure type safety? Returning a List of object means that the list could hold anything. |
2,305,569 | e.g.
```
public interface CacheClient
{
List<?> getKeysWithExpiryCheck();
}
```
Or should I return
```
List<Object>
``` | 2010/02/21 | [
"https://Stackoverflow.com/questions/2305569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27328/"
] | If you declare your method as
```
List<Object> getKeysWithExpiryCheck();
```
You can only return `List<Object>` instances from it, and nothing else. If you e.g. try to return `List<String>`, you get a compilation error. This is because although `Object` is a supertype of `String`, `List<Object>` is not a supertype o... | Basically it means that the collection can hold any type.
However when using it's impossible to modify the collection.
```
public void doSomething(Collection<?> col) {
for (Object o : col) {
System.out.println(o);
}
col.add("string"); //Compile Error here !
}
``` |
18,896,455 | First, let's review my code:
HTML:
```
<div class="button_container">
<div class="inner_button">
<a href="#" class="button_text">Button</a>
</div>
<div class="button_side">
<i class="play" />
</div>
</div>
```
CSS:
```
.inner_button:hover {
background: red;
}
.button_container:... | 2013/09/19 | [
"https://Stackoverflow.com/questions/18896455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1339464/"
] | >
> *"I also want to do the reverse, so that if `.button_side` is hovered it will hover `.button_container`"*
>
>
>
I believe you are correct about needing to use JS for this (easy with some jQuery), because CSS tends to work from parents to children, not the other way around. First define a class to add with the ... | **I think you can do something like this (with jQuery):**
```
$(document).ready(function(){
$('.button_side').hover(function(){
$('.button_container').addClass('hover');
}, function(){
$('.button_container').removeClass('hover');
});
});
```
If you need some help, try to see thi... |
18,896,455 | First, let's review my code:
HTML:
```
<div class="button_container">
<div class="inner_button">
<a href="#" class="button_text">Button</a>
</div>
<div class="button_side">
<i class="play" />
</div>
</div>
```
CSS:
```
.inner_button:hover {
background: red;
}
.button_container:... | 2013/09/19 | [
"https://Stackoverflow.com/questions/18896455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1339464/"
] | >
> *"I also want to do the reverse, so that if `.button_side` is hovered it will hover `.button_container`"*
>
>
>
I believe you are correct about needing to use JS for this (easy with some jQuery), because CSS tends to work from parents to children, not the other way around. First define a class to add with the ... | This is not exactly what you are asking but probably helpful.
Sometimes is a suitable solution if you don't want to mess around with js to much.
On the other side it makes your `html` and `css` code messy. I rarely use this in some special situations (e.g. for having a hover effect for column views where the column ca... |
18,896,455 | First, let's review my code:
HTML:
```
<div class="button_container">
<div class="inner_button">
<a href="#" class="button_text">Button</a>
</div>
<div class="button_side">
<i class="play" />
</div>
</div>
```
CSS:
```
.inner_button:hover {
background: red;
}
.button_container:... | 2013/09/19 | [
"https://Stackoverflow.com/questions/18896455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1339464/"
] | This is not exactly what you are asking but probably helpful.
Sometimes is a suitable solution if you don't want to mess around with js to much.
On the other side it makes your `html` and `css` code messy. I rarely use this in some special situations (e.g. for having a hover effect for column views where the column ca... | **I think you can do something like this (with jQuery):**
```
$(document).ready(function(){
$('.button_side').hover(function(){
$('.button_container').addClass('hover');
}, function(){
$('.button_container').removeClass('hover');
});
});
```
If you need some help, try to see thi... |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | When I had this issue I went to the Apple Member Center and realized that the Provisioning Profile (for the extension) that I had created was marked as 'Invalid'. I just re-created the Provisioning Profile with the same certificate that the app is signed with and then downloaded it via Xcode > Preferences > Account > r... | I had the same issue. This started on the day when my Certificate got expired after a year. Following steps worked for me:
1. Delete the old expired certificate from Keychain(You will be able to see a red cross on the certificate icon)
2. Restarting your mac |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | My problem was that I had a Copy Files post-build step that was causing the issue (somehow).
Once I removed that Copy Files phase, this error went away.. | I had the same issue. This started on the day when my Certificate got expired after a year. Following steps worked for me:
1. Delete the old expired certificate from Keychain(You will be able to see a red cross on the certificate icon)
2. Restarting your mac |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | I have tried the following solution is working this morning! Please try it!
>
> The only solution here was that I went to Developer Portal, removed
> all profiles, then removed all downloaded profiles through Finder, did
> Clean project and Clean Build folder, closed and re-opened Xcode.
>
>
> Then I opened my p... | I had the same issue. This started on the day when my Certificate got expired after a year. Following steps worked for me:
1. Delete the old expired certificate from Keychain(You will be able to see a red cross on the certificate icon)
2. Restarting your mac |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | So if anyone comes across this cryptic message the "App Group" switch in Capabilities of the app extension was off for some reason. Turned it back on and all good. Fix any "issues" if it requires you to when you do this | When I had this issue I went to the Apple Member Center and realized that the Provisioning Profile (for the extension) that I had created was marked as 'Invalid'. I just re-created the Provisioning Profile with the same certificate that the app is signed with and then downloaded it via Xcode > Preferences > Account > r... |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | So if anyone comes across this cryptic message the "App Group" switch in Capabilities of the app extension was off for some reason. Turned it back on and all good. Fix any "issues" if it requires you to when you do this | I had the same issue. This started on the day when my Certificate got expired after a year. Following steps worked for me:
1. Delete the old expired certificate from Keychain(You will be able to see a red cross on the certificate icon)
2. Restarting your mac |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | My problem was that I had a Copy Files post-build step that was causing the issue (somehow).
Once I removed that Copy Files phase, this error went away.. | For me it was not having the App Groups set up correctly on all my App IDs on the Developer Portal. Therefor the App Groups in the app didn't work correctly, causing this problem. |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | I have tried the following solution is working this morning! Please try it!
>
> The only solution here was that I went to Developer Portal, removed
> all profiles, then removed all downloaded profiles through Finder, did
> Clean project and Clean Build folder, closed and re-opened Xcode.
>
>
> Then I opened my p... | When I had this issue I went to the Apple Member Center and realized that the Provisioning Profile (for the extension) that I had created was marked as 'Invalid'. I just re-created the Provisioning Profile with the same certificate that the app is signed with and then downloaded it via Xcode > Preferences > Account > r... |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | My problem was that I had a Copy Files post-build step that was causing the issue (somehow).
Once I removed that Copy Files phase, this error went away.. | What fixed this for me was:
1. Re-Logging to my accounts in Preferences -> Accounts.
2. Turning App Groups OFF in both (main app + keyboard extension) Targets (under Target -> Capabilities), then turning them back ON and re-selecting/re-checking the app groups. |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | When I had this issue I went to the Apple Member Center and realized that the Provisioning Profile (for the extension) that I had created was marked as 'Invalid'. I just re-created the Provisioning Profile with the same certificate that the app is signed with and then downloaded it via Xcode > Preferences > Account > r... | For me it was not having the App Groups set up correctly on all my App IDs on the Developer Portal. Therefor the App Groups in the app didn't work correctly, causing this problem. |
27,273,911 | An app extension is causing a code signing issue. This app is already on the Appstore (with this extension) yet overnight for some reason when I have come back to this app im getting
A strange error as its contradicting itself by showing two exact ide... | 2014/12/03 | [
"https://Stackoverflow.com/questions/27273911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1238867/"
] | My problem was that I had a Copy Files post-build step that was causing the issue (somehow).
Once I removed that Copy Files phase, this error went away.. | When I had this issue I went to the Apple Member Center and realized that the Provisioning Profile (for the extension) that I had created was marked as 'Invalid'. I just re-created the Provisioning Profile with the same certificate that the app is signed with and then downloaded it via Xcode > Preferences > Account > r... |
125,301 | We use Apache 2.2 to host SVN repository on a Windows 2003 machine.
Works fine except that over a couple of weeks the `httpd` process inflates and starts consuming something like 1.5 gigabytes of virtual memory. All operations with the repository become very slow.
What to tweak to prevent `httpd` from cosuming so man... | 2010/03/23 | [
"https://serverfault.com/questions/125301",
"https://serverfault.com",
"https://serverfault.com/users/101/"
] | APR can [slowly leak memory](http://old.nabble.com/apr-pools---memory-leaks-td19766375.html) because of the way APR pools fragment available RAM over time. If you can configure the max requests per child limit in Apache lower so the tasks will restart sooner that should mitigate the problem to an extent. The [MaxMemFre... | I use VisualSVN Server, which is a packaged Apache+SVN system and it doesn't use anywhere near this amount of RAM. I've got 12Mb virtual use right now.
However - when committing you will see the memory use rise, when the files have been committed it should drop right down again.
I'd check the access use - make sure t... |
243,595 | Let $G$ be a group with center $Z(G)$ and let $\sim$ denote the conjugancy equivalence relation on $G$ (that is, $a \sim b$ iff $\exists g \in G$ s.t. $a = gbg^{-1}$). Finally let $[a]$ denote the conjugacy class which contains $a \in G$.
Now if $a \in Z(G)$ it is clear that $[a] = \{a\}$, for if $b = gag^{-1}$, then ... | 2012/11/24 | [
"https://math.stackexchange.com/questions/243595",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/46072/"
] | Note that $a=gbg^{-1}$ if and only if $b=(g^{-1})a(g^{-1})^{-1}$. Hence, if $b\in[a]$, then $b\in\{hah^{-1}:h\in G\},$ and the converse holds, as well. In other words, $[a]=\{hah^{-1}:h\in G\}$. If $[a]=\{a\}$, then $hah^{-1}=a$ for all $h\in G$, so $a\in Z(G)$. | The conjugacy class of an element is its orbit under conjugation by the whole group. In other words, the conjugacy class of $x$ is the set $\{g^{-1}xg : g \in G\}$. If this set only consists of $x$, then necessarily $g^{-1}xg =x$ for every $g\in G$. So $x\in Z(G)$. |
1,766,638 | A friend of mine gave me external hard drive and he deleted some personal files (using his computer) before he gave it to me. Few days after I plugged the HD in my PC, I saw several deleted files in my recycle bin (my PC) which originate from the HD. Thinking I accidentally deleted the files, I restored the files from ... | 2023/02/03 | [
"https://superuser.com/questions/1766638",
"https://superuser.com",
"https://superuser.com/users/1770021/"
] | You might check out [QPDF](https://qpdf.readthedocs.io/en/stable/index.html) which is an open source tool to manipulate PDF files. With it you can split the file into pages, isolate particular pages, and then recombine those pages before sending the separate files to a specific printer. Or you can isolate pages based o... | Adobe Acrobat Pro along with the
[AutoSplit Pro plug-in](https://evermap.com/AutoSplit.asp)
($149)
can do it. More information to be found in the article
[Extract Pages from a PDF Document Using a Text Search](https://evermap.com/Tutorial_ASP_ExtractPagesByTextSearch.asp).
[ *just do it*.
If only there were global stockpiles of explosives powerful enough to not only depopulate large parts of the globe but to sm... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | "Too few people left" is indeed a credible explanation. Small groups of surviving people struggling every day cannot pertain knowledge. A reduction in numbers alone is not the point, 1 million people maintaining a city state can save a lot of knowledge, the same number of people scattered in small tribal groups all aro... | Wow, lots of conflicting responses here. I'm not going to weigh in on whether or not you could break humanity this badly though. Let's ignore the naysayers and (as the slogan goes) *just do it*.
If only there were global stockpiles of explosives powerful enough to not only depopulate large parts of the globe but to sm... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | **"Can my modern society be reduced to medieval technology?" has been asked before, and the answer is always "no."**
The examples given by other authors are not from the perspective of modern society. They describe ancient peoples having had complex interdependencies — but compared to today, that simply isn't true. It... | Yes, if you just have a few hundred people left globally you wouldn't be surprised they lost a lot of knowledge.
================================================================================================================
An apocalypse bad enough to wipe out humanity to the last few hundred is bad enough that most... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | After the fall of the Roman Empire, no pottery was made in Britain for a substantial period; losing knowledge of historical details or electricity is easy by comparison! | Wow, lots of conflicting responses here. I'm not going to weigh in on whether or not you could break humanity this badly though. Let's ignore the naysayers and (as the slogan goes) *just do it*.
If only there were global stockpiles of explosives powerful enough to not only depopulate large parts of the globe but to sm... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | Limited numbers is not enough
=============================
Limiting numbers can be very effective in restricting knowledge. If only a few thousand around the world are left, too few are available to maintain the technologies and knowledge. However, there is a big flaw. The time after which it takes place.
Imagine th... | Wow, lots of conflicting responses here. I'm not going to weigh in on whether or not you could break humanity this badly though. Let's ignore the naysayers and (as the slogan goes) *just do it*.
If only there were global stockpiles of explosives powerful enough to not only depopulate large parts of the globe but to sm... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | **The answer is undoubtedly yes, because you didn't specify how small the population could be.** Obviously, if you had a population of 2, then it's simply not possible for 2 people to know 99%+ of all modern knowledge.
But I'm guessing that what you really want is a self-sustaining civilization. In other words, you do... | "Too few people left" is indeed a credible explanation. Small groups of surviving people struggling every day cannot pertain knowledge. A reduction in numbers alone is not the point, 1 million people maintaining a city state can save a lot of knowledge, the same number of people scattered in small tribal groups all aro... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | This is not only possible, it's happened.
The last Mound-Builder culture of the Mississippi River valley collapsed after the introduction of European epidemic diseases, causing the population to decline to the point it could not maintain the chiefdoms it had consisted of. Some tribes managed to maintain legends that c... | "Too few people left" is indeed a credible explanation. Small groups of surviving people struggling every day cannot pertain knowledge. A reduction in numbers alone is not the point, 1 million people maintaining a city state can save a lot of knowledge, the same number of people scattered in small tribal groups all aro... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | This is not only possible, it's happened.
The last Mound-Builder culture of the Mississippi River valley collapsed after the introduction of European epidemic diseases, causing the population to decline to the point it could not maintain the chiefdoms it had consisted of. Some tribes managed to maintain legends that c... | Yes, if you just have a few hundred people left globally you wouldn't be surprised they lost a lot of knowledge.
================================================================================================================
An apocalypse bad enough to wipe out humanity to the last few hundred is bad enough that most... |
240,403 | My setting is what I would call "post-post-apocalyptic", meaning that our civilization doesn't exist anymore, but the collapse has happened in a past distant enough that people aren't really dealing with the direct fallouts of it anymore, or at least those aren't the story's focus. I need this setting to :
* Be techno... | 2023/01/08 | [
"https://worldbuilding.stackexchange.com/questions/240403",
"https://worldbuilding.stackexchange.com",
"https://worldbuilding.stackexchange.com/users/97222/"
] | Considering our modern society, I'd say it's very plausible.
If production of electricity becomes impossible during an apocalyptic event, what is left of our modern civilization?
First of all, Wikipedia and all online resources are gone forever. But at the same time food production (the raw materials as well as baked... | In my opinion, no, not completely. At this stage it's not possible to lose the knowledge so completely so that humanity globally slides back to some less advanced level. Barring Extinction Level Event I can't imagine such situation.
Now, please do not mistake that with complete collapse of our modern society, or even ... |
62,004,876 | I have recursive function for make map from xml
```
def get_map(groovy.xml.slurpersupport.Node Node) {
nodeRootName = Node.name()
if (Node.childNodes().size() == 0) {
return [(nodeRootName): (Node.text())]
} else {
subMap = [(nodeRootName):[]]
for (subNode in Node.childNodes()) {
... | 2020/05/25 | [
"https://Stackoverflow.com/questions/62004876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11100757/"
] | Try this:
```
subMap[nodeRootName].add(get_map(subNode))
``` | It only works like this subMap.(subMap.keySet()[0]).add(get\_map(subNode)) |
62,004,876 | I have recursive function for make map from xml
```
def get_map(groovy.xml.slurpersupport.Node Node) {
nodeRootName = Node.name()
if (Node.childNodes().size() == 0) {
return [(nodeRootName): (Node.text())]
} else {
subMap = [(nodeRootName):[]]
for (subNode in Node.childNodes()) {
... | 2020/05/25 | [
"https://Stackoverflow.com/questions/62004876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11100757/"
] | Try this:
```
subMap[nodeRootName].add(get_map(subNode))
``` | I do not know what version of Groovy you use. I can not find groovy.xml.slurpersupport.Node class in version 2.5.9. But consider moving creation map out of the **for** loop.
```
def get_map(groovy.xml.slurpersupport.Node Node) {
nodeRootName = Node.name()
if (Node.childNodes().size() == 0) {
return [(n... |
549,437 | I'm not into physics so I don't know the exact wording for this kind of things, but I do my best:
I would like to have a device which generates frequencies. These frequencies should be directed to a antenna or something similar. Is this possible to build on a home-made-basis?
Thanks in advance :-)
Kind regards,
Max | 2020/05/05 | [
"https://physics.stackexchange.com/questions/549437",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/263308/"
] | I am assuming you are talking about transmitting a carrier frequency. Then you basically have a lot of choices: depending on the range of frequencies (e.g FM, AM, etc).
If you are interested in FM frequencies, this link does a pretty good job describing how you'd build one (<https://www.instructables.com/id/How-to-Ma... | What you want is called a *radio frequency signal generator*. These are tuneable across broad ranges of frequencies but usually come in several different models depending on which segment of the RF spectrum you wish to work in: low frequency (less than 500 kilohertz), medium frequency (500 kilohertz to 2 megahertz), hi... |
16,933,973 | I am making ActionBar where is date and a button. This is my code:
```
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ActionBar actionBar = getActionBar();
... | 2013/06/05 | [
"https://Stackoverflow.com/questions/16933973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Accessing sub-collection will be worked on,
meanwhile you can use this workaround: <http://console.neo4j.org/r/f7lmtk>
```
start n=node(*)
where has(n.name)
with collect(n.name) as names
return reduce(a=[], x in names : a + filter(y in [x] : length(a)<2)) as two_names
```
`Reduce` is used to build up the result... | Be careful, the new **filter** syntax is:
filter(x IN a.array **WHERE** length(x)= 3) |
27,417,620 | What I have at hand is a text file of decent size (~ 23MB). I am reading the file line by line and extracting a few words from each line based on some external criteria. For the sake of this example, let's say each line contains at least half a dozen tab-separated values and I am picking up all except the first and the... | 2014/12/11 | [
"https://Stackoverflow.com/questions/27417620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1011791/"
] | >
> From the documentation, I understand that update and |= are equivalent. Further, since |= is supposed to accept any iterable...
>
>
>
From the documentation:
>
> Note, the non-operator versions of the `update()`, `intersection_update()`, `difference_update()`, and `symmetric_difference_update()` methods will... | `set` methods such as `update` accept arbitrary iterables, while `set` operators such as `|` and `|=` require sets.
Quoting [the documentation](https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset):
>
> Note, the non-operator versions of `union()`, `intersection()`,
> `difference()`, and `symmetr... |
22,035,446 | I'm new to IOS development. I'm developing an app which involves downloading files and saving that to apps temp folder and I dont know how to do that my current code is given below
```
NSURL *tmpDirURL = [NSURL fileURLWithPath:NSTemporaryDirectory() isDirectory:YES];
NSLog(@"%@",tmpDirURL);
NSString *myString = [tmpD... | 2014/02/26 | [
"https://Stackoverflow.com/questions/22035446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1858684/"
] | I found the solution'
```
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *htmlFilePath = [documentsDirectory stringByAppendingPathComponent:fileName];
[data writeToFile:h... | When downloadDestinationPath is set, the result of this request will be downloaded to the file at this location. If downloadDestinationPath is not set, download data will be stored in memory
```
NSURL *tmpDirURL = [NSURL fileURLWithPath:NSTemporaryDirectory() isDirectory:YES];
NSLog(@"%@",tmpDirURL);
NSString *myStrin... |
29,637,762 | I swear I have included jquery in the page header, it is right there!
Nonetheless the following code, which I've included near the bottom of the page (and inline for now) gives me an error saying "TypeError: $ is not a function."
```
<script>
function displayResult(longA, latA, longB, latB, units) {
... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29637762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/845642/"
] | Try wrapping your code in a closure (which is considered good practice anyways):
```
(function($) {
$("#calculateButton").click(function() {
// do stuff...
});
}(jQuery));
```
If this snippet still complains with the same error, there's bound to be a problem with the way you're loading the jQuery libra... | You are probably linking it from a root folder that is not your HTML folder. Use an absolute path:
```
<script src="/jquery.js" ></script>
```
Or make sure `jquery.js` is in the *same* folder as your HTML. |
29,637,762 | I swear I have included jquery in the page header, it is right there!
Nonetheless the following code, which I've included near the bottom of the page (and inline for now) gives me an error saying "TypeError: $ is not a function."
```
<script>
function displayResult(longA, latA, longB, latB, units) {
... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29637762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/845642/"
] | Try wrapping your code in a closure (which is considered good practice anyways):
```
(function($) {
$("#calculateButton").click(function() {
// do stuff...
});
}(jQuery));
```
If this snippet still complains with the same error, there's bound to be a problem with the way you're loading the jQuery libra... | Make sure the **jQuery library** it's the first script you load.
Add this just before the closing `</body>` tag.
```
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-{{JQUERY_VERSION}}.min.js"><\/scri... |
29,637,762 | I swear I have included jquery in the page header, it is right there!
Nonetheless the following code, which I've included near the bottom of the page (and inline for now) gives me an error saying "TypeError: $ is not a function."
```
<script>
function displayResult(longA, latA, longB, latB, units) {
... | 2015/04/14 | [
"https://Stackoverflow.com/questions/29637762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/845642/"
] | Make sure the **jQuery library** it's the first script you load.
Add this just before the closing `</body>` tag.
```
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-{{JQUERY_VERSION}}.min.js"><\/scri... | You are probably linking it from a root folder that is not your HTML folder. Use an absolute path:
```
<script src="/jquery.js" ></script>
```
Or make sure `jquery.js` is in the *same* folder as your HTML. |
34,770,891 | I have a button with image.How can I localize it, in order it to have another image on different language ? | 2016/01/13 | [
"https://Stackoverflow.com/questions/34770891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4730700/"
] | Are you loading the image from a Storyboard or programmatically?
If programmatically, then you can localise the string of the file name and have different images for each localisation. | Select the “image” in the project navigator. Next, bring up the file inspector, and locate the localization section, in which you’ll see a button named “*Localize…*”. Click the button and you’ll be prompted for confirmation. Choose English and click the “Localize” button to confirm.
[" method to access it. Works great for me. |
34,770,891 | I have a button with image.How can I localize it, in order it to have another image on different language ? | 2016/01/13 | [
"https://Stackoverflow.com/questions/34770891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4730700/"
] | If your image is not in an xcassets you can localize it in the file inspector.
If you image is in an xcassets, you can include the language identifier in its name, or as @jdapps said, localize the image name in a strings file. | Select the “image” in the project navigator. Next, bring up the file inspector, and locate the localization section, in which you’ll see a button named “*Localize…*”. Click the button and you’ll be prompted for confirmation. Choose English and click the “Localize” button to confirm.
[" method to access it. Works great for me. | Select the “image” in the project navigator. Next, bring up the file inspector, and locate the localization section, in which you’ll see a button named “*Localize…*”. Click the button and you’ll be prompted for confirmation. Choose English and click the “Localize” button to confirm.
[ instead
---
Also See
* [assert vs. JUnit Assertions](https://stackoverflow.com/questions/2966347/assert-vs-junit-assertions) |
19,240,001 | My unit tests use the `main` entry point in each of my Java classes. I'm using Eclipse. It's been risky to rely on the test results because sometimes I've forgotten to set `-enableassertions` in the JVM arguments. Is there a universal setting that applies to all current and future `Run Configurations`? | 2013/10/08 | [
"https://Stackoverflow.com/questions/19240001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/427155/"
] | To make assertions enabled by default, first go to the Eclipse menu named `Window` because Eclipse is a GUI application so it seems to be an excellent reason to put it in a menu called "Window".
Window > Preferences > Java > Installed JREs
Select the JRE that you use.
Click `Edit`. Add to the `Default VM Arguments` ... | Please don't use the Java `assert` in unit tests.
This kind of assertion can be disabled because it is not intended to be used in unit tests at all. This assert only helps you to ensure some conditions at runtime of your actual code. Unit tests are different and done with special means as like [JUnit](http://junit.or... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | *Almost nothing* can **reliably** be said about a group just from a presentation **in finite time**. (In fact, the abelianisation is just about the only thing one can reliably compute.) Most strikingly, there is no algorithm to recognise whether a given presentation represents the trivial group. More generally, one can... | Quite a lot, I believe (although `a lot' is subjective).
A neat example of a property which can be read immediately off of a (finite) presentation $\langle X; R \rangle$ is the Deficiency of said presentation. This is defined to be $|X|-|R|$. Now, this contain some intriguing properties. For example, every group of de... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | Quite a lot, I believe (although `a lot' is subjective).
A neat example of a property which can be read immediately off of a (finite) presentation $\langle X; R \rangle$ is the Deficiency of said presentation. This is defined to be $|X|-|R|$. Now, this contain some intriguing properties. For example, every group of de... | Continuing the idea that working with bare presentations is "hard", automatic groups sometimes can give you a handle, if you're trying to study a specific group . [Automatic groups](http://en.wikipedia.org/wiki/Automatic_group) are groups with finite state machines that can, essentially, solve the word problem for that... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | *Almost nothing* can **reliably** be said about a group just from a presentation **in finite time**. (In fact, the abelianisation is just about the only thing one can reliably compute.) Most strikingly, there is no algorithm to recognise whether a given presentation represents the trivial group. More generally, one can... | If you have a *finite* presentation of a group $G$, then you can easily derive its abelianization $G^{ab}$ from that, by standard techniques: Basically, you create an integer matrix, with one column for each generator, and one row for each relation, noting in entry $a\_{ij}$ how often the generator $g\_j$ occurred in t... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | If you have a *finite* presentation of a group $G$, then you can easily derive its abelianization $G^{ab}$ from that, by standard techniques: Basically, you create an integer matrix, with one column for each generator, and one row for each relation, noting in entry $a\_{ij}$ how often the generator $g\_j$ occurred in t... | Continuing the idea that working with bare presentations is "hard", automatic groups sometimes can give you a handle, if you're trying to study a specific group . [Automatic groups](http://en.wikipedia.org/wiki/Automatic_group) are groups with finite state machines that can, essentially, solve the word problem for that... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | *Almost nothing* can **reliably** be said about a group just from a presentation **in finite time**. (In fact, the abelianisation is just about the only thing one can reliably compute.) Most strikingly, there is no algorithm to recognise whether a given presentation represents the trivial group. More generally, one can... | Continuing the idea that working with bare presentations is "hard", automatic groups sometimes can give you a handle, if you're trying to study a specific group . [Automatic groups](http://en.wikipedia.org/wiki/Automatic_group) are groups with finite state machines that can, essentially, solve the word problem for that... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | *Almost nothing* can **reliably** be said about a group just from a presentation **in finite time**. (In fact, the abelianisation is just about the only thing one can reliably compute.) Most strikingly, there is no algorithm to recognise whether a given presentation represents the trivial group. More generally, one can... | Given a group $\Gamma$ which you are interested in, given by a presentation, and an easy group $G$ which you understand (a dihedral group or a symmetric group, maybe), you can often use the presentation to determine whether or not there exists a surjective homomorphism $\Gamma\to G$, and maybe you can even count them. ... |
31,355 | This maybe a very general question.
If we have a group given by its presentation only, what kind of properties could be proven about it?
I know examples about non-amenability of some Burnside groups.
What kind of examples are there in literature where one proves some property "just" from a presentation? | 2010/07/11 | [
"https://mathoverflow.net/questions/31355",
"https://mathoverflow.net",
"https://mathoverflow.net/users/7307/"
] | Given a group $\Gamma$ which you are interested in, given by a presentation, and an easy group $G$ which you understand (a dihedral group or a symmetric group, maybe), you can often use the presentation to determine whether or not there exists a surjective homomorphism $\Gamma\to G$, and maybe you can even count them. ... | Continuing the idea that working with bare presentations is "hard", automatic groups sometimes can give you a handle, if you're trying to study a specific group . [Automatic groups](http://en.wikipedia.org/wiki/Automatic_group) are groups with finite state machines that can, essentially, solve the word problem for that... |
63,928,658 | I have two functions. One that creates a multiplication table of a given number and the other function prints the array out. Below is my code:
Here's the error (***Line 18***):
```
expression must be a pointer to a complete object type
```
How do I fix this error and print the array? Also, I don't know how to print... | 2020/09/16 | [
"https://Stackoverflow.com/questions/63928658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12207989/"
] | If using C99 or later with VLA support, pass into the print function the dimensions needed.
```
// void print(int arr[][]){
void print(size_t rows, size_t cols, int arr[row][col]){
size_t r,c;
for (size_t r = 0; r < rows; r++) {
for (size_t c = 0; c < cols; c++) {
printf("%d ",arr[r][c]);
}... | You need to declare the array in `main()`, so it can be passed to both functions.
When an array is passed as a function parameter, it just passes a pointer. You need to pass the array dimensions, they can't be determined using `sizeof`.
To get each row of the table on a new line, put `printf("\n");` after the loop th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.