qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
5,275,445
I've got this grid (a list of products in an internet shop) for which I've no idea how big it can get. But I suppose a couple hundred items is quite realistic, especially for search results. Maybe even thousands, if we get a big client. :) Naturally, I should use paging for such a grid. But how to do it so that search...
2011/03/11
[ "https://Stackoverflow.com/questions/5275445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41360/" ]
Is it really the grid you want to have index by the search engine or are you afer a product detail page? If the last one is what you want, you can have a dynamic sitemap (XML) and the search engines will take it from there.
I run a number of price comparison sites and as such i've had the same issue as you before. I dont really have a concrete answer, i doubt anyone will have one tbh. The trick is to try and make each page as unique as possible. The more unique pages, the better. Think of it as each page in google is a lottery ticket, th...
5,275,445
I've got this grid (a list of products in an internet shop) for which I've no idea how big it can get. But I suppose a couple hundred items is quite realistic, especially for search results. Maybe even thousands, if we get a big client. :) Naturally, I should use paging for such a grid. But how to do it so that search...
2011/03/11
[ "https://Stackoverflow.com/questions/5275445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41360/" ]
Is it really the grid you want to have index by the search engine or are you afer a product detail page? If the last one is what you want, you can have a dynamic sitemap (XML) and the search engines will take it from there.
SEO is a dark art - nobody will be able to tell you exactly what to do and how to do it. However, I do have some general pointers. Pleun is right - your objective should be to get the robots to your product detail page - that's likely to be the most keyword-rich, so optimize this page as much as you can! Semantic HTML...
57,837,921
I am trying to create TabBar which would be located in the middle of the page (Description widget must be at the top). The problem is that I have to manually set the height of the Container widget which contains TabBarView. If I leave it without this height, I get error `Horizontal viewport was given unbounded height....
2019/09/07
[ "https://Stackoverflow.com/questions/57837921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7988304/" ]
I have fixed this issue by changing SingleChildScrollView into ListView and writing my own TabView widget which contains tabs in Stack wrapper. Top level widget body wrappers changed from Column and SingleChildScrollView to ListView: ``` Widget build(BuildContext context) { SizeConfig().init(context); retur...
I found this working fine with me ``` import 'package:cdc/ui/shared/app_color.dart'; import 'package:flutter/material.dart'; class OrderDetails extends StatefulWidget { @override _OrderDetailsState createState() => _OrderDetailsState(); } class _OrderDetailsState extends State<OrderDetails> with SingleTicker...
464,941
I have very little experience with licensing issues. Let's say I'm developing an application for .NET 2.0. Is it OK to use (and distribute) some .NET 3.5 DLL's with my application? For example, could I just copy "System.Core.dll" in my setup to the client's machine? Or could I even just extract some class (e.g. using ...
2009/01/21
[ "https://Stackoverflow.com/questions/464941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41283/" ]
You definitely, *definitely* shouldn't start redistributing DLLs from one framework version to another. For one thing it may well be illegal (even or possibly *especially* using Reflector to extract source) - but more importantly, you've then got a bit of code which was designed and written for one version of the fram...
Why would you need to distribute those dll's? You need an installation of the .Net framework on your client's machine anyway. That should include all relevant Microsoft dll's. AFAIK a .Net ap can not be run on a machine without the framework, so you need it anyway. **Edit** I just had a look at the [.NET Framework 1....
464,941
I have very little experience with licensing issues. Let's say I'm developing an application for .NET 2.0. Is it OK to use (and distribute) some .NET 3.5 DLL's with my application? For example, could I just copy "System.Core.dll" in my setup to the client's machine? Or could I even just extract some class (e.g. using ...
2009/01/21
[ "https://Stackoverflow.com/questions/464941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41283/" ]
You definitely, *definitely* shouldn't start redistributing DLLs from one framework version to another. For one thing it may well be illegal (even or possibly *especially* using Reflector to extract source) - but more importantly, you've then got a bit of code which was designed and written for one version of the fram...
I'm sure that you idea absolutely illegal for Microsoft license on .NET
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I know you can easily add a loading indicator to your splash screen by setting the `ShowSplashScreenSpinner` option to YES in your PhoneGap configuration file (PhoneGap.plist on iOS) It shows a spinner in the middle of the splash screen while the app is loading Edit: This only works with iOS.
If you use jquery-mobile you can do: ``` $.mobile.showPageLoadingMsg(); $('.ui-loader h1').html('<h1>Saving ... <span id="ui-loading-extra"></span>'); ``` Then in onProgressChanged do: ``` $('#ui-loading-extra').text(progress + '%'); ```
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I think I've found a solution (not a full solution, but a spinner solution). Inside DroidGap subclass you should add this line: ``` super.setStringProperty("loadingDialog", "Wait, Loading..."); ``` Here is my full example ``` public class MainActivity extends DroidGap { @Override public void onCreate(Bundle...
If you use jquery-mobile you can do: ``` $.mobile.showPageLoadingMsg(); $('.ui-loader h1').html('<h1>Saving ... <span id="ui-loading-extra"></span>'); ``` Then in onProgressChanged do: ``` $('#ui-loading-extra').text(progress + '%'); ```
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I finally managed to add a progress bar to a PhoneGap webView which will show the progress (percentage) of the page load. Hope this helps you As [this other answer explains](https://stackoverflow.com/a/9995855/969132), `appView` is located inside a `LinearLayout`. The protected (and therefore inherited) variable root ...
If you use jquery-mobile you can do: ``` $.mobile.showPageLoadingMsg(); $('.ui-loader h1').html('<h1>Saving ... <span id="ui-loading-extra"></span>'); ``` Then in onProgressChanged do: ``` $('#ui-loading-extra').text(progress + '%'); ```
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
Stop using a Activity that extends DroidGap, create a regular Android activity and put org.apache.cordova.CordovaWebView in a layout file. It will give you much more flexibility. <http://docs.phonegap.com/en/2.2.0/guide_cordova-webview_android.md.html#Embedding%20Cordova%20WebView%20on%20Android>
If you use jquery-mobile you can do: ``` $.mobile.showPageLoadingMsg(); $('.ui-loader h1').html('<h1>Saving ... <span id="ui-loading-extra"></span>'); ``` Then in onProgressChanged do: ``` $('#ui-loading-extra').text(progress + '%'); ```
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I think I've found a solution (not a full solution, but a spinner solution). Inside DroidGap subclass you should add this line: ``` super.setStringProperty("loadingDialog", "Wait, Loading..."); ``` Here is my full example ``` public class MainActivity extends DroidGap { @Override public void onCreate(Bundle...
I know you can easily add a loading indicator to your splash screen by setting the `ShowSplashScreenSpinner` option to YES in your PhoneGap configuration file (PhoneGap.plist on iOS) It shows a spinner in the middle of the splash screen while the app is loading Edit: This only works with iOS.
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I finally managed to add a progress bar to a PhoneGap webView which will show the progress (percentage) of the page load. Hope this helps you As [this other answer explains](https://stackoverflow.com/a/9995855/969132), `appView` is located inside a `LinearLayout`. The protected (and therefore inherited) variable root ...
I know you can easily add a loading indicator to your splash screen by setting the `ShowSplashScreenSpinner` option to YES in your PhoneGap configuration file (PhoneGap.plist on iOS) It shows a spinner in the middle of the splash screen while the app is loading Edit: This only works with iOS.
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I think I've found a solution (not a full solution, but a spinner solution). Inside DroidGap subclass you should add this line: ``` super.setStringProperty("loadingDialog", "Wait, Loading..."); ``` Here is my full example ``` public class MainActivity extends DroidGap { @Override public void onCreate(Bundle...
I finally managed to add a progress bar to a PhoneGap webView which will show the progress (percentage) of the page load. Hope this helps you As [this other answer explains](https://stackoverflow.com/a/9995855/969132), `appView` is located inside a `LinearLayout`. The protected (and therefore inherited) variable root ...
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I think I've found a solution (not a full solution, but a spinner solution). Inside DroidGap subclass you should add this line: ``` super.setStringProperty("loadingDialog", "Wait, Loading..."); ``` Here is my full example ``` public class MainActivity extends DroidGap { @Override public void onCreate(Bundle...
Stop using a Activity that extends DroidGap, create a regular Android activity and put org.apache.cordova.CordovaWebView in a layout file. It will give you much more flexibility. <http://docs.phonegap.com/en/2.2.0/guide_cordova-webview_android.md.html#Embedding%20Cordova%20WebView%20on%20Android>
9,395,010
I have a PhoneGap 1.4.1 / jQueryMobile 1.0.1 / Android project which is showing the res/drawable/splash.png just fine, and the splashscreen goes away once the WebView is loaded. I would like to add some sort of progress indicator percentage text to the splashscreen but have been unsuccessful so far. I have had succes...
2012/02/22
[ "https://Stackoverflow.com/questions/9395010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/618172/" ]
I finally managed to add a progress bar to a PhoneGap webView which will show the progress (percentage) of the page load. Hope this helps you As [this other answer explains](https://stackoverflow.com/a/9995855/969132), `appView` is located inside a `LinearLayout`. The protected (and therefore inherited) variable root ...
Stop using a Activity that extends DroidGap, create a regular Android activity and put org.apache.cordova.CordovaWebView in a layout file. It will give you much more flexibility. <http://docs.phonegap.com/en/2.2.0/guide_cordova-webview_android.md.html#Embedding%20Cordova%20WebView%20on%20Android>
172,352
I have a question about the following proof in Atiyah-Macdonald: ![enter image description here](https://i.stack.imgur.com/Ks3Xf.png) 1:Why is $\Omega$ infinite? Are all algebraically closed fields infinite? 2: How does the existence of $\xi$ follow from $\Omega$ being infinite? Thanks.
2012/07/18
[ "https://math.stackexchange.com/questions/172352", "https://math.stackexchange.com", "https://math.stackexchange.com/users/5798/" ]
1.) Yes, algebraically closed fields are infinite: For, if $\mathbb F$ is a finite field, we can consider the polynomial $p(X) = 1 + \prod\_{a \in \mathbb F}(X-a)$, which has no zeros as $p(\alpha) = 1 + 0 = 1$ for each $\alpha \in \mathbb F$, so $\mathbb F$ is not algebraically closed. 2.) $\xi$ is choosed such that ...
**Hint** $\rm\,(1)$ follows by a polynomial analog of Euclid's proof of infinitely many primes. If $\rm\:D\:$ is a domain, then Euclid's method yields infinitely many nonassociate irreducible polynomials $\rm\in D[x].\,$ When $\rm\,D\,$ is an algebraically closed field, irreducibles are linear, associate to a monic pri...
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Preferences aside, the second example is the "right" one. In the first one, you're creating a new `getName` function for every object. In 2, all objects created with this constructor will share the prototype/`getName`. Change it in one place and it will change for every instance. On special occasions (like complex inh...
Just a personal opinion here... but I prefer the "dog" style notation for long-term maintainability. All "dog" code stays contained within the dog definition. Imagine it's 5 years later and "the next guy" is instructed to remove the hasTail property. No matter how many other objects/properties/etc. were defined betwee...
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Just a personal opinion here... but I prefer the "dog" style notation for long-term maintainability. All "dog" code stays contained within the dog definition. Imagine it's 5 years later and "the next guy" is instructed to remove the hasTail property. No matter how many other objects/properties/etc. were defined betwee...
I use the `cat` notation because it doesn't introduce unnecessary closures, which can be a little inefficient. However, I've never tested exactly *how* inefficient they are, and it might not make that much of a difference in this age of hyper-optimized JavaScript engines.
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Just a personal opinion here... but I prefer the "dog" style notation for long-term maintainability. All "dog" code stays contained within the dog definition. Imagine it's 5 years later and "the next guy" is instructed to remove the hasTail property. No matter how many other objects/properties/etc. were defined betwee...
I prefer the cat method that uses the prototype. 1. I'd rather not have all my methods indented one more level inside the contructor. 2. I'd rather have the constructor code be just the constructor code rather than lots of other functions - I think it makes it easier to see what you're looking for. 3. I'd rather use ...
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Just a personal opinion here... but I prefer the "dog" style notation for long-term maintainability. All "dog" code stays contained within the dog definition. Imagine it's 5 years later and "the next guy" is instructed to remove the hasTail property. No matter how many other objects/properties/etc. were defined betwee...
I personally prefer wrapping the function definitions within the object (e.g the dog notation), as it's more like a Java/PHP "class". However using the dog notation is less memory efficient as the functions are copied each time a new instance is created (see this [article](http://codebetter.com/petervanooijen/2006/10/...
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Preferences aside, the second example is the "right" one. In the first one, you're creating a new `getName` function for every object. In 2, all objects created with this constructor will share the prototype/`getName`. Change it in one place and it will change for every instance. On special occasions (like complex inh...
I use the `cat` notation because it doesn't introduce unnecessary closures, which can be a little inefficient. However, I've never tested exactly *how* inefficient they are, and it might not make that much of a difference in this age of hyper-optimized JavaScript engines.
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Preferences aside, the second example is the "right" one. In the first one, you're creating a new `getName` function for every object. In 2, all objects created with this constructor will share the prototype/`getName`. Change it in one place and it will change for every instance. On special occasions (like complex inh...
I prefer the cat method that uses the prototype. 1. I'd rather not have all my methods indented one more level inside the contructor. 2. I'd rather have the constructor code be just the constructor code rather than lots of other functions - I think it makes it easier to see what you're looking for. 3. I'd rather use ...
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
Preferences aside, the second example is the "right" one. In the first one, you're creating a new `getName` function for every object. In 2, all objects created with this constructor will share the prototype/`getName`. Change it in one place and it will change for every instance. On special occasions (like complex inh...
I personally prefer wrapping the function definitions within the object (e.g the dog notation), as it's more like a Java/PHP "class". However using the dog notation is less memory efficient as the functions are copied each time a new instance is created (see this [article](http://codebetter.com/petervanooijen/2006/10/...
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
I personally prefer wrapping the function definitions within the object (e.g the dog notation), as it's more like a Java/PHP "class". However using the dog notation is less memory efficient as the functions are copied each time a new instance is created (see this [article](http://codebetter.com/petervanooijen/2006/10/...
I use the `cat` notation because it doesn't introduce unnecessary closures, which can be a little inefficient. However, I've never tested exactly *how* inefficient they are, and it might not make that much of a difference in this age of hyper-optimized JavaScript engines.
7,143,033
Which is a better Javascript object pattern ... ``` function dog(name) { this.name = name; this.getName = function() { return this.name; }; }; ``` OR ``` function cat(name) { this.name = name; }; cat.prototype.getName = function() { return this.name; }; ``` AND WHY? ----- edits Does one or the ot...
2011/08/22
[ "https://Stackoverflow.com/questions/7143033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595298/" ]
I personally prefer wrapping the function definitions within the object (e.g the dog notation), as it's more like a Java/PHP "class". However using the dog notation is less memory efficient as the functions are copied each time a new instance is created (see this [article](http://codebetter.com/petervanooijen/2006/10/...
I prefer the cat method that uses the prototype. 1. I'd rather not have all my methods indented one more level inside the contructor. 2. I'd rather have the constructor code be just the constructor code rather than lots of other functions - I think it makes it easier to see what you're looking for. 3. I'd rather use ...
25,284,050
I want to convert the sql below ``` SELECT a.UserId, UserName, RealName, a.LocationID, LocationName, c.RoleId, RoleName FROM UserProfile a LEFT JOIN Location b ON a.LocationID = b.LocationID LEFT JOIN webpages_UsersInRoles c ON a.UserId = c.UserId LEFT JOIN webpages_Roles d ...
2014/08/13
[ "https://Stackoverflow.com/questions/25284050", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1173042/" ]
The tables that you want to query must be in the *model*. If you are using model-first, it means you have to add them to the model. If you are using code first they will be in the model, if there are *navigation properties* from a class that is in the `DbContext`. Once you have navigation properties in place, you shou...
Try like this using LINQ (please correct spell) ``` var data=(from d in obj.UserProfiles join d1 in obj.Locations on d.LocationID equals d1.LocationID into sr from x in sr.defaultifEmpty() join d2 in obj.webpages_UsersInRoles on d.UserId equals d2.UserId into sr1 from x1 i...
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
I have set up a project for exactly this: [www.textrevi.com](http://www.textrevi.com/) Feel free to post your text, and there will be a correction (in German within 24 hours). There is also an option to show the corrections, so you can easily see your mistakes: [![textrevi correction example](https://i.stack.imgur....
www.busuu.com is really good but beware that you sometimes have to do other activities to get the the translation part but they are also quite helpful. There are plenty of native speakers who will reply, I have used it for German many times before.
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
There doesn't seem to be such a site yet. There certainly isn't one with critical mass, like GL&U has, otherwise it would (almost per definition) be easy to find on google. There might conceivably be a tiny forgotten one hidden away somewhere on the internet, but if it's so small that google searches won't pick it up, ...
try [http://www.Busuu.com](http://www.busuu.com) there is a free and a paid part to the site, and it's possible to post texts and other native speakers will correct it, usually pretty fast
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
There doesn't seem to be such a site yet. There certainly isn't one with critical mass, like GL&U has, otherwise it would (almost per definition) be easy to find on google. There might conceivably be a tiny forgotten one hidden away somewhere on the internet, but if it's so small that google searches won't pick it up, ...
I have set up a project for exactly this: [www.textrevi.com](http://www.textrevi.com/) Feel free to post your text, and there will be a correction (in German within 24 hours). There is also an option to show the corrections, so you can easily see your mistakes: [![textrevi correction example](https://i.stack.imgur....
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
There doesn't seem to be such a site yet. There certainly isn't one with critical mass, like GL&U has, otherwise it would (almost per definition) be easy to find on google. There might conceivably be a tiny forgotten one hidden away somewhere on the internet, but if it's so small that google searches won't pick it up, ...
[Lang-8](http://lang-8.com/) is something you might be looking for, although randomly slapping down an email will not be corrected. I have had my submissions corrected in minutes previously. Also, you can think about helping people learning your mother tongue. In my experience, you would need to split into parts you ...
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
[Lang-8](http://lang-8.com/) is something you might be looking for, although randomly slapping down an email will not be corrected. I have had my submissions corrected in minutes previously. Also, you can think about helping people learning your mother tongue. In my experience, you would need to split into parts you ...
www.busuu.com is really good but beware that you sometimes have to do other activities to get the the translation part but they are also quite helpful. There are plenty of native speakers who will reply, I have used it for German many times before.
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
[Lang-8](http://lang-8.com/) is something you might be looking for, although randomly slapping down an email will not be corrected. I have had my submissions corrected in minutes previously. Also, you can think about helping people learning your mother tongue. In my experience, you would need to split into parts you ...
try [http://www.Busuu.com](http://www.busuu.com) there is a free and a paid part to the site, and it's possible to post texts and other native speakers will correct it, usually pretty fast
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
There doesn't seem to be such a site yet. There certainly isn't one with critical mass, like GL&U has, otherwise it would (almost per definition) be easy to find on google. There might conceivably be a tiny forgotten one hidden away somewhere on the internet, but if it's so small that google searches won't pick it up, ...
www.busuu.com is really good but beware that you sometimes have to do other activities to get the the translation part but they are also quite helpful. There are plenty of native speakers who will reply, I have used it for German many times before.
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
I have set up a project for exactly this: [www.textrevi.com](http://www.textrevi.com/) Feel free to post your text, and there will be a correction (in German within 24 hours). There is also an option to show the corrections, so you can easily see your mistakes: [![textrevi correction example](https://i.stack.imgur....
try [http://www.Busuu.com](http://www.busuu.com) there is a free and a paid part to the site, and it's possible to post texts and other native speakers will correct it, usually pretty fast
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
There is this site [Lang-8](http://lang-8.com/) that I have been indicated. I have not used it yet though, but it looks promising. It's not only for german language. But I don't think there is any time guaranty for being corrected. edit: I saw elsewhere on SE someone talking about <http://www.proz.com/> but it doesn'...
try [http://www.Busuu.com](http://www.busuu.com) there is a free and a paid part to the site, and it's possible to post texts and other native speakers will correct it, usually pretty fast
2,622
I write e-mails throughout the day at my job and use the following resources to correct them before it goes out: * [Google translate](http://translate.google.com/#en%7Cde%7C) (machine translations) * [Linguee](http://www.linguee.de) (searchable human translations) * [LEO](http://dict.leo.org) (german/english word/phra...
2011/09/27
[ "https://german.stackexchange.com/questions/2622", "https://german.stackexchange.com", "https://german.stackexchange.com/users/743/" ]
I have set up a project for exactly this: [www.textrevi.com](http://www.textrevi.com/) Feel free to post your text, and there will be a correction (in German within 24 hours). There is also an option to show the corrections, so you can easily see your mistakes: [![textrevi correction example](https://i.stack.imgur....
There is this site [Lang-8](http://lang-8.com/) that I have been indicated. I have not used it yet though, but it looks promising. It's not only for german language. But I don't think there is any time guaranty for being corrected. edit: I saw elsewhere on SE someone talking about <http://www.proz.com/> but it doesn'...
29,167,630
When I use `php artisan migrate:rollback` with Laravel 5, I get this error: > > Warning: PHP Startup: Unable to load dynamic library > '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - > /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so: > cannot open shared object file: No such...
2015/03/20
[ "https://Stackoverflow.com/questions/29167630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4681617/" ]
You are getting that error because those libraries are not in: `/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/` First, check if those files exist on your server and change to the right path. Second, if they are not in your server, you need to install them. I am not sure which OS you are using, but this is h...
in my case, I've tried to run my shell command prompt in my xampp control, It works like magic, just go to xampp control, click the shell button, and type the directories where your file is located, type php artisan serve Hope this help.
25,473,573
I'm taking over an existing project. It contains a package.json and Gruntfile. According to the instructions [here](http://gruntjs.com/getting-started) I've run ``` npm install ``` after installing grunt-cli globally. However, running grunt results in ``` $ grunt --env=production Loading "compass.js" tasks...ERRO...
2014/08/24
[ "https://Stackoverflow.com/questions/25473573", "https://Stackoverflow.com", "https://Stackoverflow.com/users/320057/" ]
Removing node\_modules (which was under source control, to my suprise) and running ``` npm cache clean npm install ``` solved this problem.
As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use `npm cache verify` instead. If you want to force clean, try `npm cache clean --force` after that run `npm cache verify`
39,176
I bought a Huffy electric bike but I don't have charger. The person at pawnshop where was bought said I can charge it with a car, like jump start. [![enter image description here](https://i.stack.imgur.com/Z2cmh.png)](https://i.stack.imgur.com/Z2cmh.png)
2016/05/27
[ "https://bicycles.stackexchange.com/questions/39176", "https://bicycles.stackexchange.com", "https://bicycles.stackexchange.com/users/26241/" ]
DO NOT DO THIS! You can't safely charge any battery using jumper leads from another battery. If the other battery matches the flat one, but is fully charged, the current will be so high that you will probably start a fire. You will definitely damage the flat battery, and probably both of them. Jumper leads work on car...
Definitely not do this you need a lithium battery charger as these are Smart chargers and regulate the trickle charge into the battery through a BMS board. Find out what voltage your battery is ie:-36v and if so you need a battery charger higher normally 42v but it's gotta be over the 36v but not exeptionally higher so...
39,176
I bought a Huffy electric bike but I don't have charger. The person at pawnshop where was bought said I can charge it with a car, like jump start. [![enter image description here](https://i.stack.imgur.com/Z2cmh.png)](https://i.stack.imgur.com/Z2cmh.png)
2016/05/27
[ "https://bicycles.stackexchange.com/questions/39176", "https://bicycles.stackexchange.com", "https://bicycles.stackexchange.com/users/26241/" ]
DON'T CHARGE YOUR EBIKE BATTERY WITH CAR CHARGER ================================================ Most probably you have 36V Lithium-ion battery. Car charger won't match this battery and in worst case you can get an explosion in your garage: [![enter image description here](https://i.stack.imgur.com/rcotc.png)](https...
Definitely not do this you need a lithium battery charger as these are Smart chargers and regulate the trickle charge into the battery through a BMS board. Find out what voltage your battery is ie:-36v and if so you need a battery charger higher normally 42v but it's gotta be over the 36v but not exeptionally higher so...
2,913,544
I know that constants start with the `k` prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pretend it's `OMG`. I tried prefixing my constants with `omgkConstantNa...
2010/05/26
[ "https://Stackoverflow.com/questions/2913544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168594/" ]
I try to consistently use `kJAFoo` (or `kXXFoo` where XX is a project prefix) for my public constants – especially actual `const`s which are exported symbols – but generally use `kFoo` for enums or `static const`s inside an implementation file. Similarly, I use `sFoo` for static variables and `gJAFoo` in the rare cases...
I normally make constants Pascal case. If you choose to follow the 'namespacing convention' of putting a prefix on everything then you'd use that as well. So I'd normally do ``` static NSString *SearchTextKey = @"searchText"; ``` you may choose to namespace it though which would have it be (assuming your prefix i...
2,913,544
I know that constants start with the `k` prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pretend it's `OMG`. I tried prefixing my constants with `omgkConstantNa...
2010/05/26
[ "https://Stackoverflow.com/questions/2913544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168594/" ]
I normally make constants Pascal case. If you choose to follow the 'namespacing convention' of putting a prefix on everything then you'd use that as well. So I'd normally do ``` static NSString *SearchTextKey = @"searchText"; ``` you may choose to namespace it though which would have it be (assuming your prefix i...
I usually follow the same prefix/capitalisation convention as classes, so where Cocoa has `NSTouchPhaseBegan` I might have `GLTuneNameKey`.
2,913,544
I know that constants start with the `k` prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pretend it's `OMG`. I tried prefixing my constants with `omgkConstantNa...
2010/05/26
[ "https://Stackoverflow.com/questions/2913544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168594/" ]
Apple's [Coding Guidelines for Cocoa](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html) recommends to use the same naming conventions for enumerations as for functions. Following this advice, *OMGConstantName* would be correct.
I normally make constants Pascal case. If you choose to follow the 'namespacing convention' of putting a prefix on everything then you'd use that as well. So I'd normally do ``` static NSString *SearchTextKey = @"searchText"; ``` you may choose to namespace it though which would have it be (assuming your prefix i...
2,913,544
I know that constants start with the `k` prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pretend it's `OMG`. I tried prefixing my constants with `omgkConstantNa...
2010/05/26
[ "https://Stackoverflow.com/questions/2913544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168594/" ]
I try to consistently use `kJAFoo` (or `kXXFoo` where XX is a project prefix) for my public constants – especially actual `const`s which are exported symbols – but generally use `kFoo` for enums or `static const`s inside an implementation file. Similarly, I use `sFoo` for static variables and `gJAFoo` in the rare cases...
I usually follow the same prefix/capitalisation convention as classes, so where Cocoa has `NSTouchPhaseBegan` I might have `GLTuneNameKey`.
2,913,544
I know that constants start with the `k` prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pretend it's `OMG`. I tried prefixing my constants with `omgkConstantNa...
2010/05/26
[ "https://Stackoverflow.com/questions/2913544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168594/" ]
I try to consistently use `kJAFoo` (or `kXXFoo` where XX is a project prefix) for my public constants – especially actual `const`s which are exported symbols – but generally use `kFoo` for enums or `static const`s inside an implementation file. Similarly, I use `sFoo` for static variables and `gJAFoo` in the rare cases...
Apple's [Coding Guidelines for Cocoa](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html) recommends to use the same naming conventions for enumerations as for functions. Following this advice, *OMGConstantName* would be correct.
2,913,544
I know that constants start with the `k` prefix, but does anyone have their own constant prefix, so they can easily get completion on their constants, instead of Apple's? I use a three letter prefix for my classes because of my company name, let's pretend it's `OMG`. I tried prefixing my constants with `omgkConstantNa...
2010/05/26
[ "https://Stackoverflow.com/questions/2913544", "https://Stackoverflow.com", "https://Stackoverflow.com/users/168594/" ]
Apple's [Coding Guidelines for Cocoa](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html) recommends to use the same naming conventions for enumerations as for functions. Following this advice, *OMGConstantName* would be correct.
I usually follow the same prefix/capitalisation convention as classes, so where Cocoa has `NSTouchPhaseBegan` I might have `GLTuneNameKey`.
22,917,957
The code is: ``` class MyClass: ... def __getitem__(self, index): ... def __setitem__(self, index, value): ... def __delitem__(self, index): ... if sys.version_info < (2, 0): # They won't be defined if version is at least 2.0 final def __getslice__(self, i,...
2014/04/07
[ "https://Stackoverflow.com/questions/22917957", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3501595/" ]
You can apply stylesheet dynamically with jQuery like this. ``` $(document).ready(function () { var cssName1= [ 'CSS/katy.css', 'CSS/daftpunk.css', 'CSS/wiliam.css']; var rndIndex = Math.floor(Math.random()*3); var rndCss = cssName1[rndIndex]; $('head').append('<link rel="stylesheet" href="' + rndCss +...
There is no direct way but you can definitely use javascript to do such funky things.
3,484,955
From what I've heard there was IronRuby and Ruby.NET and a few other variations. I've also heard that Ruby may not be supported anymore by Microsoft as they started to lay of much of that development group. I'd like to know which implementation(s) of Ruby is likely to survive, and which one will be adopted into large ...
2010/08/14
[ "https://Stackoverflow.com/questions/3484955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/328397/" ]
IronRuby is the only implementation of Ruby in the .NET space - the Ruby.Net was incorporated into the Microsoft project a long time ago. As for the other questions, a lot of other people would be interested to know the answers too! Sadly, there's nobody to give an authoritative answer. We can be pretty sure that Mat...
Most likely - they will never get adopted into large enterprises. At least - those languages that are built on top of DLR. Thing is - these languages got quite small niche. They are **best** choice only when there's need for strong interop between ruby and .NET. Otherwise - it's usually better to go pure .NET or pure ...
1,351,881
This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies t...
2009/08/29
[ "https://Stackoverflow.com/questions/1351881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/165394/" ]
I think you're running in to [margin collapsing](http://www.howtocreate.co.uk/tutorials/css/margincollapsing). See the [CSS 2.1 spec on margin collapsing](http://www.w3.org/TR/CSS21/box.html#collapsing-margins) for more info.
Try adding `overflow: auto` to the #header css code. For example, ``` #header{ width:600px; height:300px; background-color:red; overflow: auto; } ``` EDIT: Seems like `position: absolute` works as well.
1,351,881
This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies t...
2009/08/29
[ "https://Stackoverflow.com/questions/1351881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/165394/" ]
Yes, it's a standards thing. It's called margin collapsing, and the reason that you don't see it in IE7 is most likely because IE7 gets it wrong. Margins are a bit tricky as they don't specify an area around an element, but rather the minimum distance between elements. Margin collapsing happens when a child element ha...
Try adding `overflow: auto` to the #header css code. For example, ``` #header{ width:600px; height:300px; background-color:red; overflow: auto; } ``` EDIT: Seems like `position: absolute` works as well.
1,351,881
This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies t...
2009/08/29
[ "https://Stackoverflow.com/questions/1351881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/165394/" ]
Try adding `overflow: auto` to the #header css code. For example, ``` #header{ width:600px; height:300px; background-color:red; overflow: auto; } ``` EDIT: Seems like `position: absolute` works as well.
I just had this problem as well and added this to the css ``` border: 0px solid; ```
1,351,881
This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies t...
2009/08/29
[ "https://Stackoverflow.com/questions/1351881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/165394/" ]
I think you're running in to [margin collapsing](http://www.howtocreate.co.uk/tutorials/css/margincollapsing). See the [CSS 2.1 spec on margin collapsing](http://www.w3.org/TR/CSS21/box.html#collapsing-margins) for more info.
Yes, it's a standards thing. It's called margin collapsing, and the reason that you don't see it in IE7 is most likely because IE7 gets it wrong. Margins are a bit tricky as they don't specify an area around an element, but rather the minimum distance between elements. Margin collapsing happens when a child element ha...
1,351,881
This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies t...
2009/08/29
[ "https://Stackoverflow.com/questions/1351881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/165394/" ]
I think you're running in to [margin collapsing](http://www.howtocreate.co.uk/tutorials/css/margincollapsing). See the [CSS 2.1 spec on margin collapsing](http://www.w3.org/TR/CSS21/box.html#collapsing-margins) for more info.
I just had this problem as well and added this to the css ``` border: 0px solid; ```
1,351,881
This problem is happening for me on IE8 and Chrome which makes me think this is a standards thing. I am creating a site with header and menu using DIVs that do not have any content but do have background images and heights / widths set in CSS. I want the inner DIV to have margin against the parent div but it applies t...
2009/08/29
[ "https://Stackoverflow.com/questions/1351881", "https://Stackoverflow.com", "https://Stackoverflow.com/users/165394/" ]
Yes, it's a standards thing. It's called margin collapsing, and the reason that you don't see it in IE7 is most likely because IE7 gets it wrong. Margins are a bit tricky as they don't specify an area around an element, but rather the minimum distance between elements. Margin collapsing happens when a child element ha...
I just had this problem as well and added this to the css ``` border: 0px solid; ```
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
My answer only applies to Japan, I don't know about other countries. There is a special position termed "Research Student". I did that for 6 months before my masters . I know that in general any student (foreigner or japanese) can do this. However, it is very common for foreigners to do this before starting the master...
In the US, at a research level university, a masters program usually fills this role. Often (but not always), one gets support for the masters doing software or sysadmin'ing for a research group. You are most likely not doing research for the group but are contributing and you attend the research group's meetings. It...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
I did two four-month stints as a research assistant before starting my MSc. The first was in industry between my third and fourth years as an undergrad. The second was between my undergrad and MSc at a university with a professor who later became my PhD supervisor. The two positions were very different. The first one ...
In the US, at a research level university, a masters program usually fills this role. Often (but not always), one gets support for the masters doing software or sysadmin'ing for a research group. You are most likely not doing research for the group but are contributing and you attend the research group's meetings. It...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
My answer only applies to Japan, I don't know about other countries. There is a special position termed "Research Student". I did that for 6 months before my masters . I know that in general any student (foreigner or japanese) can do this. However, it is very common for foreigners to do this before starting the master...
I am not really sure that I understand the question well. If you are asking about a pre-doc student position I guess you can do some kind of research internship before the PhD (maybe as a supplementary year of your master program, or with a hiatus in your curriculum). But if you ask for a research position without P...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
EPFL in Switzerland officially had a pre-doc program in CS, which was basically like a short Masters with fewer courses and more research. I don't think they still offer this program. Unofficially, there are research assistantship/internship opportunities for pre-doctoral students here and there. If the institute you'r...
In the US, at a research level university, a masters program usually fills this role. Often (but not always), one gets support for the masters doing software or sysadmin'ing for a research group. You are most likely not doing research for the group but are contributing and you attend the research group's meetings. It...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
My answer only applies to Japan, I don't know about other countries. There is a special position termed "Research Student". I did that for 6 months before my masters . I know that in general any student (foreigner or japanese) can do this. However, it is very common for foreigners to do this before starting the master...
I did two four-month stints as a research assistant before starting my MSc. The first was in industry between my third and fourth years as an undergrad. The second was between my undergrad and MSc at a university with a professor who later became my PhD supervisor. The two positions were very different. The first one ...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
In the US, for current undergraduates, there are plenty of summer programs called "REUs" -- Research Experience for Undergraduates. These are research-only positions, usually paid, for 3 months during the summer. Often times faculty mentors will already have well-defined projects that they want their REU students to wo...
In the US, at a research level university, a masters program usually fills this role. Often (but not always), one gets support for the masters doing software or sysadmin'ing for a research group. You are most likely not doing research for the group but are contributing and you attend the research group's meetings. It...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
I am not really sure that I understand the question well. If you are asking about a pre-doc student position I guess you can do some kind of research internship before the PhD (maybe as a supplementary year of your master program, or with a hiatus in your curriculum). But if you ask for a research position without P...
In the US, at a research level university, a masters program usually fills this role. Often (but not always), one gets support for the masters doing software or sysadmin'ing for a research group. You are most likely not doing research for the group but are contributing and you attend the research group's meetings. It...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
Formally, such a thing exists and is called a [postbaccalaureate program](http://en.wikipedia.org/wiki/Postbaccalaureate_program). It is common, for example, before medical school, but one can really do this for anything. [Some universities](http://ce.columbia.edu/About-0) allow students who have already completed thei...
In the US, at a research level university, a masters program usually fills this role. Often (but not always), one gets support for the masters doing software or sysadmin'ing for a research group. You are most likely not doing research for the group but are contributing and you attend the research group's meetings. It...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
My answer only applies to Japan, I don't know about other countries. There is a special position termed "Research Student". I did that for 6 months before my masters . I know that in general any student (foreigner or japanese) can do this. However, it is very common for foreigners to do this before starting the master...
Formally, such a thing exists and is called a [postbaccalaureate program](http://en.wikipedia.org/wiki/Postbaccalaureate_program). It is common, for example, before medical school, but one can really do this for anything. [Some universities](http://ce.columbia.edu/About-0) allow students who have already completed thei...
7,779
> > Are there positions for recently graduated bachelor or masters students with a record of research to work as a **researcher** before committing to their PhD? > > > TCS has a culture of post-doc positions for recent PhD graduates to do research before attempting to apply for a faculty position. Is there a simil...
2011/08/17
[ "https://cstheory.stackexchange.com/questions/7779", "https://cstheory.stackexchange.com", "https://cstheory.stackexchange.com/users/1037/" ]
My answer only applies to Japan, I don't know about other countries. There is a special position termed "Research Student". I did that for 6 months before my masters . I know that in general any student (foreigner or japanese) can do this. However, it is very common for foreigners to do this before starting the master...
EPFL in Switzerland officially had a pre-doc program in CS, which was basically like a short Masters with fewer courses and more research. I don't think they still offer this program. Unofficially, there are research assistantship/internship opportunities for pre-doctoral students here and there. If the institute you'r...
15
I would like to echo a post that Scott Morrison made on Tex.SE. A link to the post [here](https://tex.meta.stackexchange.com/questions/12/vote-early-and-often), and the text of the post: > > "I'm a moderator from MathOverflow, and this "question" is actually unsolicited advice, based on our experience from the initia...
2011/04/27
[ "https://music.meta.stackexchange.com/questions/15", "https://music.meta.stackexchange.com", "https://music.meta.stackexchange.com/users/-1/" ]
I actually posted on the [programmmers meta](https://softwareengineering.meta.stackexchange.com/q/1061/6415) on this topic. I completely agree - good questions deserve more votes. I couldn't tell you how many times I've seen questions on SE with one or two votes and 15-20 good, upvoted answers. If you think a question...
For what it is worth I have taken it upon myself to vote more, I hope others in the community would follow suit.
24,116,403
I have been trying to display two buttons on an Android app. However, the buttons are not visible and the whole page is a blank. This is my XML code- ``` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
2014/06/09
[ "https://Stackoverflow.com/questions/24116403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3549458/" ]
The reason it doesn't work is that you're incrementing `i`, but modifying the array. The simple way is just clear out the array at the end: ``` for (var i = 0; i < someArray.length; i++) { someArray[i].action(); } someArray.splice(0,someArray.length); ``` but if you *have* to update the array on each pass ``` ...
Why not simply do ``` for (var i = 0; i < someArray.length; i++) { someArray[i].action(); } someArray = []; ```
24,116,403
I have been trying to display two buttons on an Android app. However, the buttons are not visible and the whole page is a blank. This is my XML code- ``` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
2014/06/09
[ "https://Stackoverflow.com/questions/24116403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3549458/" ]
The reason it doesn't work is that you're incrementing `i`, but modifying the array. The simple way is just clear out the array at the end: ``` for (var i = 0; i < someArray.length; i++) { someArray[i].action(); } someArray.splice(0,someArray.length); ``` but if you *have* to update the array on each pass ``` ...
You need to decide the length first, and not count it on each iteration (it is also good for performance) Here is a fiddle: <http://jsfiddle.net/hW4Mm/22/> The magic is in this line: `var len = someArray.length;` That should work.
24,116,403
I have been trying to display two buttons on an Android app. However, the buttons are not visible and the whole page is a blank. This is my XML code- ``` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
2014/06/09
[ "https://Stackoverflow.com/questions/24116403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3549458/" ]
The reason it doesn't work is that you're incrementing `i`, but modifying the array. The simple way is just clear out the array at the end: ``` for (var i = 0; i < someArray.length; i++) { someArray[i].action(); } someArray.splice(0,someArray.length); ``` but if you *have* to update the array on each pass ``` ...
Just try with: ``` while (someArray.length) { someArray[0].action(); someArray.splice(0,1); } ``` Or: ``` while (someArray.length) { someArray.shift().action(); } ```
24,116,403
I have been trying to display two buttons on an Android app. However, the buttons are not visible and the whole page is a blank. This is my XML code- ``` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
2014/06/09
[ "https://Stackoverflow.com/questions/24116403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3549458/" ]
The reason it doesn't work is that you're incrementing `i`, but modifying the array. The simple way is just clear out the array at the end: ``` for (var i = 0; i < someArray.length; i++) { someArray[i].action(); } someArray.splice(0,someArray.length); ``` but if you *have* to update the array on each pass ``` ...
This can be done really simply, by looping over the array, then making it a blank array. Hope this was helpful! ``` someArray.forEach(function (person) { // Use Array#forEach to itterate person.action(); // Call action on person (person = someArray[i] in your example) }); someArray = []; // Now make someArray = t...
24,116,403
I have been trying to display two buttons on an Android app. However, the buttons are not visible and the whole page is a blank. This is my XML code- ``` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
2014/06/09
[ "https://Stackoverflow.com/questions/24116403", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3549458/" ]
The reason it doesn't work is that you're incrementing `i`, but modifying the array. The simple way is just clear out the array at the end: ``` for (var i = 0; i < someArray.length; i++) { someArray[i].action(); } someArray.splice(0,someArray.length); ``` but if you *have* to update the array on each pass ``` ...
wutt?? you want to modify the collection while iterating? you need to put additional logic after removing the item you have 2 items, ibrahim and ismail ``` when entering the first loop (i = 0, length = 2, 0 < 2 => iterate) ibrahim action is called and then the ibrahim is removed when entering the second loop (i = ...
26,115,405
I have a view controller that shows up at the start of my app to prepare the UIManagedDocument I'm using with Core Data. Problem: I keep getting a `swift_unknownWeakRelease()` crash when I run the app on an iPhone 4S device with iOS 7.1. Here's the code: ``` class SetupViewController: UIViewController { @IBOutlet...
2014/09/30
[ "https://Stackoverflow.com/questions/26115405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/855680/" ]
The problem here is with unowned reference. When self is released, the block still retains self and so tries to call self which is nil. Use weak in order to prevent this. Since weak is optional type inside block, you could use conditional unwrapping and execute other code as, ``` class SetupViewController: UIViewContr...
I don't think that there could be problem with retain cycle. `prepareWithCompletionHandler` closure parameter captures `self`, but `self` (instance of `SetupViewController`) doesn't own the document variable. You don't need to use capture list in this case.
30,250
I am running a campaign in [Roll20](http://www.roll20.net), and I have some players that will very often miss sessions without any warning, or just show up really late into the campaign. Because of their absences, I have had to cancel the last three sessions. They're not new to how RPGs are supposed to work: one is rea...
2013/11/21
[ "https://rpg.stackexchange.com/questions/30250", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/9044/" ]
There are several things you can do. Most of them are not too great for your game, but unfortunately, people who don't help the group succeed are often more detrimental than I think they realize. Aim for a cooperative solution ============================== The first thing I'd do is send them a message explaining why...
These are not players in your group. They are casual inconveniences that are making you regularly not play. They're not even apologetic inconveniences – they don't have even the consideration to answer your messages, let alone the consideration to show up so the group can play. Kick them from the group. You are dedica...
30,250
I am running a campaign in [Roll20](http://www.roll20.net), and I have some players that will very often miss sessions without any warning, or just show up really late into the campaign. Because of their absences, I have had to cancel the last three sessions. They're not new to how RPGs are supposed to work: one is rea...
2013/11/21
[ "https://rpg.stackexchange.com/questions/30250", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/9044/" ]
These are not players in your group. They are casual inconveniences that are making you regularly not play. They're not even apologetic inconveniences – they don't have even the consideration to answer your messages, let alone the consideration to show up so the group can play. Kick them from the group. You are dedica...
These players have repeatedly missed your scheduled games (I assume you have a regular meet time and/or you set the game's schedule on the Campaign Info page). They do not respond to your attempts at communication. They've already quit your game in every sense except hitting the Leave Campaign button. Give them the bo...
30,250
I am running a campaign in [Roll20](http://www.roll20.net), and I have some players that will very often miss sessions without any warning, or just show up really late into the campaign. Because of their absences, I have had to cancel the last three sessions. They're not new to how RPGs are supposed to work: one is rea...
2013/11/21
[ "https://rpg.stackexchange.com/questions/30250", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/9044/" ]
These are not players in your group. They are casual inconveniences that are making you regularly not play. They're not even apologetic inconveniences – they don't have even the consideration to answer your messages, let alone the consideration to show up so the group can play. Kick them from the group. You are dedica...
Those players are ideal for secondary characters. * One way is for their characters to be secondary PCs, who have a standing reason for not being around the party. > > Bart the Big is a mercenary caravan guard, but between jobs he stays with his traveling friends, with which faith always seems to gather him at funny...
30,250
I am running a campaign in [Roll20](http://www.roll20.net), and I have some players that will very often miss sessions without any warning, or just show up really late into the campaign. Because of their absences, I have had to cancel the last three sessions. They're not new to how RPGs are supposed to work: one is rea...
2013/11/21
[ "https://rpg.stackexchange.com/questions/30250", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/9044/" ]
There are several things you can do. Most of them are not too great for your game, but unfortunately, people who don't help the group succeed are often more detrimental than I think they realize. Aim for a cooperative solution ============================== The first thing I'd do is send them a message explaining why...
These players have repeatedly missed your scheduled games (I assume you have a regular meet time and/or you set the game's schedule on the Campaign Info page). They do not respond to your attempts at communication. They've already quit your game in every sense except hitting the Leave Campaign button. Give them the bo...
30,250
I am running a campaign in [Roll20](http://www.roll20.net), and I have some players that will very often miss sessions without any warning, or just show up really late into the campaign. Because of their absences, I have had to cancel the last three sessions. They're not new to how RPGs are supposed to work: one is rea...
2013/11/21
[ "https://rpg.stackexchange.com/questions/30250", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/9044/" ]
There are several things you can do. Most of them are not too great for your game, but unfortunately, people who don't help the group succeed are often more detrimental than I think they realize. Aim for a cooperative solution ============================== The first thing I'd do is send them a message explaining why...
Those players are ideal for secondary characters. * One way is for their characters to be secondary PCs, who have a standing reason for not being around the party. > > Bart the Big is a mercenary caravan guard, but between jobs he stays with his traveling friends, with which faith always seems to gather him at funny...
30,250
I am running a campaign in [Roll20](http://www.roll20.net), and I have some players that will very often miss sessions without any warning, or just show up really late into the campaign. Because of their absences, I have had to cancel the last three sessions. They're not new to how RPGs are supposed to work: one is rea...
2013/11/21
[ "https://rpg.stackexchange.com/questions/30250", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/9044/" ]
These players have repeatedly missed your scheduled games (I assume you have a regular meet time and/or you set the game's schedule on the Campaign Info page). They do not respond to your attempts at communication. They've already quit your game in every sense except hitting the Leave Campaign button. Give them the bo...
Those players are ideal for secondary characters. * One way is for their characters to be secondary PCs, who have a standing reason for not being around the party. > > Bart the Big is a mercenary caravan guard, but between jobs he stays with his traveling friends, with which faith always seems to gather him at funny...
40,246,767
I'm rerunning a twenty line portion of code for multiple data sets where the only line that changes is the table name. Is there a way to parameterize the table name to pass into the code? I've found examples of passing a column as parameter but not an entire table. Here's an example of what I'm doing where I would wan...
2016/10/25
[ "https://Stackoverflow.com/questions/40246767", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3453901/" ]
You can build a macro and provide a parameter, which will be a table name. ``` %macro union(table_name); PROC SQL; SELECT COUNT(number) AS band_1 FROM &TABLE_NAME WHERE VAR < 620 outer union SELECT COUNT(number) AS band_2 FROM &TABLE_NAME WHERE VAR BETWEEN 620 AND 639; QUIT; %mend union; ...
you can use dynamic query like exec ('select \* from'+@tablename)
19,029,264
I am using jquery.validate.js for my front end validations. The email and other validations work on tab out, but the required validations work only on submitting the form. Is it possible to have all my required validations to work on tab-out as well. Here is a link from the site for the reference code and behaviour: <h...
2013/09/26
[ "https://Stackoverflow.com/questions/19029264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1170159/" ]
you should create a `blur` function for your validate controls. for example: ``` $("#password").on("blur", function () { if ($(this).val().trim().length == 0) { alert("Please enter your password");//or any process you want to be done } }); ```
create blur event handler that validates an element use jquery validator valid method: ``` $(document).on('blur', 'elementSelector', function(e) { $(this).valid(); }); ``` see example [here](http://jsfiddle.net/prrBQ/1/).
19,029,264
I am using jquery.validate.js for my front end validations. The email and other validations work on tab out, but the required validations work only on submitting the form. Is it possible to have all my required validations to work on tab-out as well. Here is a link from the site for the reference code and behaviour: <h...
2013/09/26
[ "https://Stackoverflow.com/questions/19029264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1170159/" ]
Adding the below piece of code inside the .validate function worked. ``` onfocusout: function(element) { this.element(element); }, ``` Here is the link - [JSFIDDLE](http://jsfiddle.net/vLKUE/)
you should create a `blur` function for your validate controls. for example: ``` $("#password").on("blur", function () { if ($(this).val().trim().length == 0) { alert("Please enter your password");//or any process you want to be done } }); ```
19,029,264
I am using jquery.validate.js for my front end validations. The email and other validations work on tab out, but the required validations work only on submitting the form. Is it possible to have all my required validations to work on tab-out as well. Here is a link from the site for the reference code and behaviour: <h...
2013/09/26
[ "https://Stackoverflow.com/questions/19029264", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1170159/" ]
Adding the below piece of code inside the .validate function worked. ``` onfocusout: function(element) { this.element(element); }, ``` Here is the link - [JSFIDDLE](http://jsfiddle.net/vLKUE/)
create blur event handler that validates an element use jquery validator valid method: ``` $(document).on('blur', 'elementSelector', function(e) { $(this).valid(); }); ``` see example [here](http://jsfiddle.net/prrBQ/1/).
40,811,229
I have got this code using react-chartjs. It displays the graph but the options get ignored everytime no matter what I put there. Is there another way you are supposed to add the options into the component? ``` import React, { PropTypes } from 'react' var LineChart = require("react-chartjs").Line; var data = { labe...
2016/11/25
[ "https://Stackoverflow.com/questions/40811229", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2802557/" ]
You're using a "dataset structure" so check out the docs on options for [Line Chart Datasets](http://www.chartjs.org/docs/#line-chart-dataset-structure). They suggest you should send the "options" along with your data object - in this case to the Components `data` prop. ``` var data = { labels: ["January", "Febru...
There is change in Chart.js version 2 to version 3 for scales namespace is options.scales scales: { y: { min: 0, max: 100, } }, x: { grid: { display: true, } }, we use like this
25,203,846
This is not homework question, I today learned heap data structure and I don't know how would I prove that relation is true. Thanks.
2014/08/08
[ "https://Stackoverflow.com/questions/25203846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2648841/" ]
Prove by Induction: 1. children of root (1) -> child1= 2\*1=2 , child2= 2\*1 + 1 = 3 **true** 2. **Assuming** children of kth element are -> child1= 2k , child2=2k+1 3. **Prove** children of (k+1)th elements are child1= 2\*(k+1), child2=2(k+1) + 1 (Prove this) Proof of 3: since children of kth elements are at 2k and ...
Here is a proof without induction, which is more intuitive and insightful from my point of view. Here are 4 mental steps that proof this relation to me. ### Flatten the tree. Let's enumerate all the vertices of a tree in the following way: [![enter image description here](https://i.stack.imgur.com/PgUOC.png)](http...
34,147,413
Note: The code below is just logic, so no parameters are defined. Although they are defined and being used actively in the same javascript file i'm in. I'm new to javascript/angularjs (I don't even know what code this is) and as of now it's really throwing me a curveball because of the syntax and everything else going...
2015/12/08
[ "https://Stackoverflow.com/questions/34147413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3258366/" ]
I think the correct architecture in this case to use is below: ``` class Cart(models.Model): user = models.OneToOneField(User, related_name='cart') date_added = models.DateTimeField(auto_now_add=True, help_text="Date when cart is added.") date_modified = models.DateTimeField(auto_now=True, help_te...
I think it's more effective to create Cart when create a user, or when user is going to buy something, but not the time when put flower into the cart then you create it. well, just use the `signal`, try `pre_add` or `pre_save` when the purchasing behavior made. <https://docs.djangoproject.com/en/1.9/ref/signals/>
5,758,750
Does anyone know of a way to show another class without creating a new instance? It seems a bit crazy from a memory management point of view that each time you want to display a different form / page you need to use StartActivity which then creates a new instances of the class instead of reusing instances previously cr...
2011/04/22
[ "https://Stackoverflow.com/questions/5758750", "https://Stackoverflow.com", "https://Stackoverflow.com/users/555148/" ]
Not sure if this would work for Android (coming from a MS/C# background), but conceptually one option is to iterate through open forms looking for one with a specific handle. Then, once you find it, simply call the method to show that form. This would depend on there being a Java equivalent to the Application.OpenForms...
> > It seems a bit crazy from a memory management point of view that each time you want to display a different form / page you need to use StartActivity which then creates a new instances of the class instead of reusing instances previously created. > > > Tactically, you are welcome to add `FLAG_REORDER_TO_FRONT` ...
137,549
Consider a [Simic Hybrid](https://www.dndbeyond.com/characters/races/simic-hybrid) with the Manta Glide trait: > > You have ray-like fins that you can use as wings to slow your fall or allow you to glide. When you fall and aren't incapacitated, you can subtract up to 100 feet from the fall when calculating falling da...
2018/12/17
[ "https://rpg.stackexchange.com/questions/137549", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/42865/" ]
### Yes, it should be able to Consider it from a practical perspective: if something is gliding (not being propelled), is it moving under its own power really? It doesn't have a flying speed, because it's not really "flying". I would rule that it doesn't consume movement at all, since the only remaining speed (land) c...
The Ability works the same in combat as it does out of combat. ============================================================== The ability states that it slows your fall. So, it will take more than one turn to move 100' while descending 50'. However since a fly/glide speed isn't listed, it is up to the DM as to how man...
661,346
I have a large MFC C++ application that I would be very keen to port into AutoCAD and IntelliCAD. AutoDesk offer Object ARX for this purpose, which replaces the older and slower ADS technology. IntelliCAD, afaik only supports ADS. Has anyone out there done this, and if so which tools did you use and what pitfalls did y...
2009/03/19
[ "https://Stackoverflow.com/questions/661346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22564/" ]
Have a look at my answers to a couple of previous AutoCAD questions [Open source cad drawing (dwg) library in C#](https://stackoverflow.com/questions/169390/open-source-cad-drawing-dwg-library-in-c/206456#206456) [.Net CAD component that can read/write dxf/ dwg files](https://stackoverflow.com/questions/298622/-net-...
"DWGdirect is not just a SDK to read and write DWG files. It actually offers a full blown framework that can be used to develop a professional CAD application, complete with plug-in architecture and all." [quote source](http://www.deelip.com/2009/03/opencad-my-first-book.html)
661,346
I have a large MFC C++ application that I would be very keen to port into AutoCAD and IntelliCAD. AutoDesk offer Object ARX for this purpose, which replaces the older and slower ADS technology. IntelliCAD, afaik only supports ADS. Has anyone out there done this, and if so which tools did you use and what pitfalls did y...
2009/03/19
[ "https://Stackoverflow.com/questions/661346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22564/" ]
Have a look at my answers to a couple of previous AutoCAD questions [Open source cad drawing (dwg) library in C#](https://stackoverflow.com/questions/169390/open-source-cad-drawing-dwg-library-in-c/206456#206456) [.Net CAD component that can read/write dxf/ dwg files](https://stackoverflow.com/questions/298622/-net-...
One option to consider is to target AutoCAD and Bricscad. Supporting AutoCAD and IntelliCAD requires essentially two versions of code. Bricscad's goal is to be completely compatible with ObjectARX, and in my experience they are pretty close. This at least simplifies the problem from supporting three instances (your st...
661,346
I have a large MFC C++ application that I would be very keen to port into AutoCAD and IntelliCAD. AutoDesk offer Object ARX for this purpose, which replaces the older and slower ADS technology. IntelliCAD, afaik only supports ADS. Has anyone out there done this, and if so which tools did you use and what pitfalls did y...
2009/03/19
[ "https://Stackoverflow.com/questions/661346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/22564/" ]
One option to consider is to target AutoCAD and Bricscad. Supporting AutoCAD and IntelliCAD requires essentially two versions of code. Bricscad's goal is to be completely compatible with ObjectARX, and in my experience they are pretty close. This at least simplifies the problem from supporting three instances (your st...
"DWGdirect is not just a SDK to read and write DWG files. It actually offers a full blown framework that can be used to develop a professional CAD application, complete with plug-in architecture and all." [quote source](http://www.deelip.com/2009/03/opencad-my-first-book.html)
57,596,488
I am trying to access JSON using urllib.request.urlopen. It works fine when I use urllib2 in python2, but not urllib.request.urlopen. ``` URL = 'https://api.exchangeratesapi.io/latest' f = urllib.request.urlopen(URL) ``` ``` Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3....
2019/08/21
[ "https://Stackoverflow.com/questions/57596488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11958437/" ]
This is what I used and it worked: ``` from urllib.request import urlopen URL = 'https://api.exchangeratesapi.io/latest' f = urlopen(URL) ``` I hope this works for you!
you can try to disable the ssl verification ``` import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) ```
57,596,488
I am trying to access JSON using urllib.request.urlopen. It works fine when I use urllib2 in python2, but not urllib.request.urlopen. ``` URL = 'https://api.exchangeratesapi.io/latest' f = urllib.request.urlopen(URL) ``` ``` Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3....
2019/08/21
[ "https://Stackoverflow.com/questions/57596488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11958437/" ]
This is what I used and it worked: ``` from urllib.request import urlopen URL = 'https://api.exchangeratesapi.io/latest' f = urlopen(URL) ``` I hope this works for you!
In my case there was an issue with error in *request.py*: **\_load\_windows\_store\_certs** caused *MemoryError* Fixed by updating python from version **3.7.4** to **3.8.1** Hope this help
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
You'd need to look at the Query Execution Plan on your RDBMS to verify that `LIKE` with no wildcards is treated as efficiently as an `=` would be. A quick test in SQL Server shows that it would give you an index scan rather than a seek so I guess it doesn't look at that when generating the plan and for SQL Server using...
Speed. [15-char filler as there's not much more to say]
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
You'd need to look at the Query Execution Plan on your RDBMS to verify that `LIKE` with no wildcards is treated as efficiently as an `=` would be. A quick test in SQL Server shows that it would give you an index scan rather than a seek so I guess it doesn't look at that when generating the plan and for SQL Server using...
Without using any wildcards with `LIKE`, is should be fine for your needs if the speed/efficiency is something you don't bother with.
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
You'd need to look at the Query Execution Plan on your RDBMS to verify that `LIKE` with no wildcards is treated as efficiently as an `=` would be. A quick test in SQL Server shows that it would give you an index scan rather than a seek so I guess it doesn't look at that when generating the plan and for SQL Server using...
MySQL will allow it, but will ignore the index: ``` mysql> describe METADATA_44; +---------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+---------+-------+ | AtextId | int(11) | NO | PRI | NULL | | | num...
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
You'd need to look at the Query Execution Plan on your RDBMS to verify that `LIKE` with no wildcards is treated as efficiently as an `=` would be. A quick test in SQL Server shows that it would give you an index scan rather than a seek so I guess it doesn't look at that when generating the plan and for SQL Server using...
You are better off writing your query as ``` SELECT * FROM my_table WHERE id = 1; ``` otherwise mysql will have to typecast '1' to int which is the type of the column `id` so obviously there is a small performance penalty, when u know the type of the column supply the value according to that type
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
MySQL will allow it, but will ignore the index: ``` mysql> describe METADATA_44; +---------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+---------+-------+ | AtextId | int(11) | NO | PRI | NULL | | | num...
Speed. [15-char filler as there's not much more to say]
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
You are better off writing your query as ``` SELECT * FROM my_table WHERE id = 1; ``` otherwise mysql will have to typecast '1' to int which is the type of the column `id` so obviously there is a small performance penalty, when u know the type of the column supply the value according to that type
Speed. [15-char filler as there's not much more to say]
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
MySQL will allow it, but will ignore the index: ``` mysql> describe METADATA_44; +---------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+---------+-------+ | AtextId | int(11) | NO | PRI | NULL | | | num...
Without using any wildcards with `LIKE`, is should be fine for your needs if the speed/efficiency is something you don't bother with.
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
You are better off writing your query as ``` SELECT * FROM my_table WHERE id = 1; ``` otherwise mysql will have to typecast '1' to int which is the type of the column `id` so obviously there is a small performance penalty, when u know the type of the column supply the value according to that type
Without using any wildcards with `LIKE`, is should be fine for your needs if the speed/efficiency is something you don't bother with.
2,891,654
I was wondering if there's a drawback (other than bad practice) to using something like this ``` SELECT * FROM my_table WHERE id LIKE '1'; ``` where id is an integer. I know you're supposed to use id=1 but I am writing a java program and if everything can use LIKE it'll be a lot easier for me. Also, so far, everythi...
2010/05/23
[ "https://Stackoverflow.com/questions/2891654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176121/" ]
MySQL will allow it, but will ignore the index: ``` mysql> describe METADATA_44; +---------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+---------+-------+ | AtextId | int(11) | NO | PRI | NULL | | | num...
You are better off writing your query as ``` SELECT * FROM my_table WHERE id = 1; ``` otherwise mysql will have to typecast '1' to int which is the type of the column `id` so obviously there is a small performance penalty, when u know the type of the column supply the value according to that type
167,176
I have wrote code for a stopwatch that utilizes the abstract design pattern and would like to get some feedback on the code, so be as harsh as you can. Note: I used `ctime` instead of `chrono` because this is not meant for benchmarking. The code will later be used in a console game, and the format of the `std::tm stru...
2017/07/02
[ "https://codereview.stackexchange.com/questions/167176", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/141270/" ]
1. What is the purpose of shortening the term "Prime(s)" to Prim in your method names? IMO `numberOfPrimes` and `checkIfPrime` are more readable. The same is true for `primAmount` etc. 2. `if(checkIfPrim(i) == true)` can simply be `if (checkIfPrim(i))` 3. Your spacing is inconsistent. Generally, it is recommended to le...
Consider ``` // If number is prime -> return true public static boolean isPrime(int number) { if (number == 2) { return true; } if (number < 2 || number % 2 == 0) { return false; } for (int i = 3, n = 1 + (int)Math.sqrt(number); i <= n; i += 2) { if (number % i == 0) { ...