qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
35,517,331
I have two entities with following relationShip (these entities are taken for example purpose only) ``` public class Entity { public long ID { get; set; } } public class Doctor : Entity { public string Name {get; set;} public string sprcialization { get; set;} public string Icollection<JrDoctor> child...
2016/02/20
[ "https://Stackoverflow.com/questions/35517331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3859419/" ]
As it was mentioned in comments above, delombok helps. In case of maven build it would be: ``` <plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId> <version>${lombok.version}.0</version> <executions> <execution> <id>delombok</id> <ph...
Looks like it works if you use delombok according to [site](http://awhitford.github.io/lombok.maven/lombok-maven-plugin/usage.html) and add the target/generated-sources/delombok folder in the pom.xml under build > plugins > plugin > kotlin-maven-plugin
35,517,331
I have two entities with following relationShip (these entities are taken for example purpose only) ``` public class Entity { public long ID { get; set; } } public class Doctor : Entity { public string Name {get; set;} public string sprcialization { get; set;} public string Icollection<JrDoctor> child...
2016/02/20
[ "https://Stackoverflow.com/questions/35517331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3859419/" ]
There is a Kotlin compiler plugin for lombok. **It is still experimental** and it can be used with **Gradle** or **Maven**. It only supports a hand full of annotations, including * `@Getter`, `@Setter` * `@NoArgsConstructor`, `@RequiredArgsConstructor`, and `@AllArgsConstructor` * `@Data` * `@With` * `@Value` Seem t...
As it was mentioned in comments above, delombok helps. In case of maven build it would be: ``` <plugin> <groupId>org.projectlombok</groupId> <artifactId>lombok-maven-plugin</artifactId> <version>${lombok.version}.0</version> <executions> <execution> <id>delombok</id> <ph...
35,517,331
I have two entities with following relationShip (these entities are taken for example purpose only) ``` public class Entity { public long ID { get; set; } } public class Doctor : Entity { public string Name {get; set;} public string sprcialization { get; set;} public string Icollection<JrDoctor> child...
2016/02/20
[ "https://Stackoverflow.com/questions/35517331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3859419/" ]
To add to Sergey Mashkov's response (adding here I don't have enough rep points to comment on it), here's an [example app](https://github.com/rojiani/kotlin-lombok-integration) of a Gradle multi-project setup where Kotlin can see the Lombok-generated code (without kapt or delomboking. Caveats do apply - namely, Kotlin ...
Looks like it works if you use delombok according to [site](http://awhitford.github.io/lombok.maven/lombok-maven-plugin/usage.html) and add the target/generated-sources/delombok folder in the pom.xml under build > plugins > plugin > kotlin-maven-plugin
35,517,331
I have two entities with following relationShip (these entities are taken for example purpose only) ``` public class Entity { public long ID { get; set; } } public class Doctor : Entity { public string Name {get; set;} public string sprcialization { get; set;} public string Icollection<JrDoctor> child...
2016/02/20
[ "https://Stackoverflow.com/questions/35517331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3859419/" ]
There is a Kotlin compiler plugin for lombok. **It is still experimental** and it can be used with **Gradle** or **Maven**. It only supports a hand full of annotations, including * `@Getter`, `@Setter` * `@NoArgsConstructor`, `@RequiredArgsConstructor`, and `@AllArgsConstructor` * `@Data` * `@With` * `@Value` Seem t...
To add to Sergey Mashkov's response (adding here I don't have enough rep points to comment on it), here's an [example app](https://github.com/rojiani/kotlin-lombok-integration) of a Gradle multi-project setup where Kotlin can see the Lombok-generated code (without kapt or delomboking. Caveats do apply - namely, Kotlin ...
35,517,331
I have two entities with following relationShip (these entities are taken for example purpose only) ``` public class Entity { public long ID { get; set; } } public class Doctor : Entity { public string Name {get; set;} public string sprcialization { get; set;} public string Icollection<JrDoctor> child...
2016/02/20
[ "https://Stackoverflow.com/questions/35517331", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3859419/" ]
There is a Kotlin compiler plugin for lombok. **It is still experimental** and it can be used with **Gradle** or **Maven**. It only supports a hand full of annotations, including * `@Getter`, `@Setter` * `@NoArgsConstructor`, `@RequiredArgsConstructor`, and `@AllArgsConstructor` * `@Data` * `@With` * `@Value` Seem t...
Looks like it works if you use delombok according to [site](http://awhitford.github.io/lombok.maven/lombok-maven-plugin/usage.html) and add the target/generated-sources/delombok folder in the pom.xml under build > plugins > plugin > kotlin-maven-plugin
1,440,198
I have 2 updates that could not be installed automatically. When I try to upgrade with: `sudo apt upgrade` then I got this message: > > The following packages have been kept back: mysql-client mysql-server > > > So when I try to install it manually like: `sudo apt install mysql-client` then I got the following m...
2022/11/11
[ "https://askubuntu.com/questions/1440198", "https://askubuntu.com", "https://askubuntu.com/users/1648765/" ]
The clue is in this error message ``` mysql-community-client : Conflicts: mysql-server-8.0 but 8.0.31-0ubuntu0.22.04.1 is to be installed ``` You have the package `mysql-community-client` installed. This is a command line client that has the same purpose as the package `mysql-client` but (I believe) falls under a d...
This work for me (zabbix 6.2.7 ubuntu 22.04.2) : apt purge mysql-community-client apt purge mysql-common apt install mysql-client apt install zabbix-server-mysql set mysql password at /etc/zabbix/zabbix\_server.conf reboot server
56,026,812
Getting error when translating Android String from EN TO AR. "For locale "ar" (Arabic) the following quantities should also be defined: few, many, two, zero , This lint check looks at each translation of a and makes sure that all the quantity strings considered by the given language are provided by this translation" ...
2019/05/07
[ "https://Stackoverflow.com/questions/56026812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3312641/" ]
You should be adding a wildcard route `**` to catch any unexpected/unmatched/unlisted url and add the redirection to `/login`. ``` const routes: Routes = [ { path: 'login', component: LoginComponent }, { path: 'dashboard', component: DashboardComponent }, { path: '', redirectTo: '/login', pathMatch: 'full' }, ...
Just add a catch-all path ```js const routes: Routes = [ { path: 'login', component: LoginComponent }, { path: 'dashboard', component: DashboardComponent }, { path: '**', redirectTo: '/login' } ]; ```
58,574,953
I am using expo and firebase to build a react-native application and I want to upload an image to firebase storage. I have the following function as an onPress function to upload an image. ``` choosePhoto = () => { const options = { noData: true, } ImagePicker.launchImageLibrary(optio...
2019/10/26
[ "https://Stackoverflow.com/questions/58574953", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12160112/" ]
Use right Blazor syntax: ``` <input type="text" @bind="@message.Message"/> ``` If you need to execute function on blur: ``` <input value="@message.Message" @onchange="@((ChangeEventArgs __e) => { message.Message = __e.Value.ToString()); SaveMessages(); })" /> ``` More info: <https://learn.micros...
silly mistake on my part, the issue wasn't with my syntax. I made the mistake of binding to my service instead of a local variable so when I left focus it couldn't update and just retrieved from the service I simply added the local variable below ``` @foreach (var message in dataVariable) { ...
5,867,248
i have a problem with configuration of hibernate when i run the class test it affich: ``` creating session factory 3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit> INFO: Hibernate 2.1.6 3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found 3 mai 2011 09:47:50 n...
2011/05/03
[ "https://Stackoverflow.com/questions/5867248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/726991/" ]
You need a [mysql-connector-\*.jar](http://dev.mysql.com/downloads/connector/j/) on your classpath
Try using these property values: ``` <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> ... <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property> ``` Check that [hibernate3.jar](http://mirrors.ibiblio.org/pub/mirrors/maven2/o...
5,867,248
i have a problem with configuration of hibernate when i run the class test it affich: ``` creating session factory 3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit> INFO: Hibernate 2.1.6 3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found 3 mai 2011 09:47:50 n...
2011/05/03
[ "https://Stackoverflow.com/questions/5867248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/726991/" ]
You need a [mysql-connector-\*.jar](http://dev.mysql.com/downloads/connector/j/) on your classpath
> > > ``` > JDBC Driver class not found: com.jdbc.mysql.driver > ``` > > The full qualified class name is case sensitive. You need to declare `com.mysql.jdbc.Driver` with uppercase `D` in your Hibernate config file, not `com.mysql.jdbc.driver` with lowercase `d`.
32,212,170
My background image is not extending all the way down to the bottom of the window. I have set my background image in CSS along with a bunch of properties to make it transparent. This is my CSS: ``` body { background-image: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jp...
2015/08/25
[ "https://Stackoverflow.com/questions/32212170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5150686/" ]
Setting the height of `html, body` to 100% and using [`background-size: cover`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#Values) will make the background fill the page. Using `background-position: center center` will make it cut even amounts off of the image when it is a different aspect ratio...
Try using: ``` background-size: cover; ```
32,212,170
My background image is not extending all the way down to the bottom of the window. I have set my background image in CSS along with a bunch of properties to make it transparent. This is my CSS: ``` body { background-image: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jp...
2015/08/25
[ "https://Stackoverflow.com/questions/32212170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5150686/" ]
Setting the height of `html, body` to 100% and using [`background-size: cover`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#Values) will make the background fill the page. Using `background-position: center center` will make it cut even amounts off of the image when it is a different aspect ratio...
You can use `background-size: cover;` to extend your background image, and the image is cropped, but it is looks natural. If you want to include everything into the screen, try this: ``` body { background: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jpg") center no-repe...
32,212,170
My background image is not extending all the way down to the bottom of the window. I have set my background image in CSS along with a bunch of properties to make it transparent. This is my CSS: ``` body { background-image: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jp...
2015/08/25
[ "https://Stackoverflow.com/questions/32212170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5150686/" ]
Setting the height of `html, body` to 100% and using [`background-size: cover`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#Values) will make the background fill the page. Using `background-position: center center` will make it cut even amounts off of the image when it is a different aspect ratio...
Thank you everyone for your help! I updated my code after looking through the answers, and I now have the following (for anyone who had a problem similar to mine): ``` html, body{ height: 100%; } body{ background-image: url("MyImageURL"); background-color: rgba(255, 255, 255, 0.3); background-bl...
32,212,170
My background image is not extending all the way down to the bottom of the window. I have set my background image in CSS along with a bunch of properties to make it transparent. This is my CSS: ``` body { background-image: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jp...
2015/08/25
[ "https://Stackoverflow.com/questions/32212170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5150686/" ]
Try using: ``` background-size: cover; ```
Thank you everyone for your help! I updated my code after looking through the answers, and I now have the following (for anyone who had a problem similar to mine): ``` html, body{ height: 100%; } body{ background-image: url("MyImageURL"); background-color: rgba(255, 255, 255, 0.3); background-bl...
32,212,170
My background image is not extending all the way down to the bottom of the window. I have set my background image in CSS along with a bunch of properties to make it transparent. This is my CSS: ``` body { background-image: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jp...
2015/08/25
[ "https://Stackoverflow.com/questions/32212170", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5150686/" ]
You can use `background-size: cover;` to extend your background image, and the image is cropped, but it is looks natural. If you want to include everything into the screen, try this: ``` body { background: url("http://www.inc.com/uploaded_files/image/970x450/flatiron-school-1940x900_35912.jpg") center no-repe...
Thank you everyone for your help! I updated my code after looking through the answers, and I now have the following (for anyone who had a problem similar to mine): ``` html, body{ height: 100%; } body{ background-image: url("MyImageURL"); background-color: rgba(255, 255, 255, 0.3); background-bl...
72,390,830
i have a mongodb collection that I sort by the amount of points each item has, and it shows a rank according to it's place in the collection : ``` db.collection('websites').find({}).sort({ "points": -1 }).forEach(doc => { rank++; doc.rank = rank; delete doc._id; console.log(doc) ``` [![enter image descript...
2022/05/26
[ "https://Stackoverflow.com/questions/72390830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19007802/" ]
To test CORS locally, I found this repo: <https://github.com/njgibbon/nicks-cors-test> Just clone it, and click on the `html` file so it opens in your browser. By default it is calling the `github API` (<https://api.github.com>) and fetching info from there. You can open the console and check it. If you change it to `...
Make an API call from browser (Not from URL and Not from postman). May be through ajax to test. ``` Postman does not implement the CORS restrictions ```
150,631
I'm trying to sue the latest SLDS version 2.1.4 in a Visualforce page, but just including the Static Resource makes whole interface look very different even without including the wrapping "slds" class in any container element. Has the slds namespaced prefix been removed from core css library? Do we have to recompile t...
2016/11/30
[ "https://salesforce.stackexchange.com/questions/150631", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/1205/" ]
Did you download it with the custom namespace? > > To use the Design System in Visualforce you need to create a CSS file > with a custom scoped outer wrapper > > > <https://tools.lightningdesignsystem.com/css-customizer> > > Note: The download includes scoped files for both the Visualforce and > Lightning Com...
I have added style, it works fine: ``` <span class="slds-wizard__progress" **style="z-index: 0;"> <span class="slds-wizard__progress-bar" style="{!'width:'+v.percentDone+'%'}"</span> </span> ```
55,262,730
Is there any alternative to `stopListening()` method for API < 8 since this method was included in API level 8?
2019/03/20
[ "https://Stackoverflow.com/questions/55262730", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5147224/" ]
`SpeechRecognizer` class was added on API 8. So, you can't use it in lower API devices.
The `SpeechRecognizer` class itself was added in API 8.
36,130,665
I'm trying to split String like: `"Stack Overflow #forum #website";` -> `"Stack Overflow" "#forum #website"` I tried to use split function like:`str.split("( )#", 2);`, but the output was like: `"Stack Overflow" "forum #website"`. It seems that the `()` does not work, what should I do to fix this? Thanks in advance...
2016/03/21
[ "https://Stackoverflow.com/questions/36130665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4663915/" ]
You need to use positive lookahead assertion. ``` str.split("\\s(?=#)", 2); ``` *Little Explanation:* * `\\s` matches any kind of space character. * `(?=#)` Positive lookahead which asserts that the match ie , `space` should be followed by `#`. * So space before `#forum` got matched and java do splitting according ...
``` public class split { public static void main(String args[]){ String Str = new String("Stack Overflow #forum #website"); //**********that's what is to be done *************************** System.out.println("Return Value :" ); for (String retval: Str.split("(?=#)", 2)){ ...
122,132
I make and keep simple syrup on hand to use in my coffee. Sometimes I will finish it fast enough but other times it starts growing mold before I have used it all up. This guide that gets referenced a lot on other food channels recommends using 1 ounce of sodium Benzoate per gallon of syrup. (Alongside citric acid) <h...
2022/10/27
[ "https://cooking.stackexchange.com/questions/122132", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/101409/" ]
Simple syrup is, well, simple. As such, what I actually do when using it - make less, and keep it in the fridge. Dry sugar does not generally mold, so keeping the amount that's wet reasonable *.vs.* the rate of use keeps mold at bay. And sometimes I put in a bit of citric or tartaric acid when making it, in hopes of ca...
**Copper cup?** [![enter image description here](https://i.stack.imgur.com/UkhyWm.png)](https://i.stack.imgur.com/UkhyWm.png) Bust out your Moscow Mule mug and keep your syrup in that. Mold is exquisitely sensitive to copper. The amount that leaches into the syrup will prevent mold growth, I here assert. --- I am b...
122,132
I make and keep simple syrup on hand to use in my coffee. Sometimes I will finish it fast enough but other times it starts growing mold before I have used it all up. This guide that gets referenced a lot on other food channels recommends using 1 ounce of sodium Benzoate per gallon of syrup. (Alongside citric acid) <h...
2022/10/27
[ "https://cooking.stackexchange.com/questions/122132", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/101409/" ]
Simple syrup is, well, simple. As such, what I actually do when using it - make less, and keep it in the fridge. Dry sugar does not generally mold, so keeping the amount that's wet reasonable *.vs.* the rate of use keeps mold at bay. And sometimes I put in a bit of citric or tartaric acid when making it, in hopes of ca...
That SnoWizard link refers to their specific products. Their products are an aqueous solution of Sodium Benzoate (a salt) - but SnoWizard does not tell you the concentration of that solution. SnoWizard has their concentration of Sodium Benzoate in their product while others use a different concentration (presumably, I...
122,132
I make and keep simple syrup on hand to use in my coffee. Sometimes I will finish it fast enough but other times it starts growing mold before I have used it all up. This guide that gets referenced a lot on other food channels recommends using 1 ounce of sodium Benzoate per gallon of syrup. (Alongside citric acid) <h...
2022/10/27
[ "https://cooking.stackexchange.com/questions/122132", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/101409/" ]
If you don't mind a small amount of alcohol in your simple syrup, you can add vodka to inhibit the growth of mould. I use roughly 30mL of vodka per 250mL of simple syrup — use more or less to taste. I use simple syrup almost exclusively for cocktails, so the small amount of alcohol doesn't matter. Also note that you ...
**Copper cup?** [![enter image description here](https://i.stack.imgur.com/UkhyWm.png)](https://i.stack.imgur.com/UkhyWm.png) Bust out your Moscow Mule mug and keep your syrup in that. Mold is exquisitely sensitive to copper. The amount that leaches into the syrup will prevent mold growth, I here assert. --- I am b...
122,132
I make and keep simple syrup on hand to use in my coffee. Sometimes I will finish it fast enough but other times it starts growing mold before I have used it all up. This guide that gets referenced a lot on other food channels recommends using 1 ounce of sodium Benzoate per gallon of syrup. (Alongside citric acid) <h...
2022/10/27
[ "https://cooking.stackexchange.com/questions/122132", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/101409/" ]
That SnoWizard link refers to their specific products. Their products are an aqueous solution of Sodium Benzoate (a salt) - but SnoWizard does not tell you the concentration of that solution. SnoWizard has their concentration of Sodium Benzoate in their product while others use a different concentration (presumably, I...
**Copper cup?** [![enter image description here](https://i.stack.imgur.com/UkhyWm.png)](https://i.stack.imgur.com/UkhyWm.png) Bust out your Moscow Mule mug and keep your syrup in that. Mold is exquisitely sensitive to copper. The amount that leaches into the syrup will prevent mold growth, I here assert. --- I am b...
122,132
I make and keep simple syrup on hand to use in my coffee. Sometimes I will finish it fast enough but other times it starts growing mold before I have used it all up. This guide that gets referenced a lot on other food channels recommends using 1 ounce of sodium Benzoate per gallon of syrup. (Alongside citric acid) <h...
2022/10/27
[ "https://cooking.stackexchange.com/questions/122132", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/101409/" ]
If you don't mind a small amount of alcohol in your simple syrup, you can add vodka to inhibit the growth of mould. I use roughly 30mL of vodka per 250mL of simple syrup — use more or less to taste. I use simple syrup almost exclusively for cocktails, so the small amount of alcohol doesn't matter. Also note that you ...
That SnoWizard link refers to their specific products. Their products are an aqueous solution of Sodium Benzoate (a salt) - but SnoWizard does not tell you the concentration of that solution. SnoWizard has their concentration of Sodium Benzoate in their product while others use a different concentration (presumably, I...
31,435,664
I have the below simple program: ``` #include <iostream> #include <stdio.h> void SomeFunction(int a) { std::cout<<"Value in function: a = "<<a<<std::endl; } int main(){ size_t a(0); std::cout<<"Value in main: "<<a-1<<std::endl; SomeFunction(a-1); return 0; } ``` Upon executing this I get: > > Value...
2015/07/15
[ "https://Stackoverflow.com/questions/31435664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3895204/" ]
Since `size_t` type is unsigned, subtracting `1` is well defined: > > A computation involving `unsigned` operands can never overflow, because a result that cannot be represented by the resulting unsigned integer type is reduced modulo the number that is one greater than the largest value that can be represented by th...
It's easier to compare and contrast `signed` and `insigned` of type same basic type, say `signed int` and `unsigned int`. On a system that uses 32 bits for `int`, the range of `unsigned int` is [`0` - `4294967295`] and the range of `signed int` is [`-2147483647` - `2147483647`]. Say you have a variable of type `unsig...
31,435,664
I have the below simple program: ``` #include <iostream> #include <stdio.h> void SomeFunction(int a) { std::cout<<"Value in function: a = "<<a<<std::endl; } int main(){ size_t a(0); std::cout<<"Value in main: "<<a-1<<std::endl; SomeFunction(a-1); return 0; } ``` Upon executing this I get: > > Value...
2015/07/15
[ "https://Stackoverflow.com/questions/31435664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3895204/" ]
Since `size_t` type is unsigned, subtracting `1` is well defined: > > A computation involving `unsigned` operands can never overflow, because a result that cannot be represented by the resulting unsigned integer type is reduced modulo the number that is one greater than the largest value that can be represented by th...
Not on your computer... but technically yes, there is a situation where things can go wrong. All modern PCs use the "two's complement" system for signed integer arithmetic (read Wikipedia for details). Two's complement has many advantages, but one of the biggest is this: *unsaturated addition and subtraction of signed...
31,435,664
I have the below simple program: ``` #include <iostream> #include <stdio.h> void SomeFunction(int a) { std::cout<<"Value in function: a = "<<a<<std::endl; } int main(){ size_t a(0); std::cout<<"Value in main: "<<a-1<<std::endl; SomeFunction(a-1); return 0; } ``` Upon executing this I get: > > Value...
2015/07/15
[ "https://Stackoverflow.com/questions/31435664", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3895204/" ]
Not on your computer... but technically yes, there is a situation where things can go wrong. All modern PCs use the "two's complement" system for signed integer arithmetic (read Wikipedia for details). Two's complement has many advantages, but one of the biggest is this: *unsaturated addition and subtraction of signed...
It's easier to compare and contrast `signed` and `insigned` of type same basic type, say `signed int` and `unsigned int`. On a system that uses 32 bits for `int`, the range of `unsigned int` is [`0` - `4294967295`] and the range of `signed int` is [`-2147483647` - `2147483647`]. Say you have a variable of type `unsig...
46,235,904
Maybe someone could give me an idea, because I have not used php much until now. I installed a php web application on my local apache2 and got troubles with it, whereas many others pretend that the code is working for them. Here is an example of what is done in the code. Ini files are used to store configurations. Let...
2017/09/15
[ "https://Stackoverflow.com/questions/46235904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8613730/" ]
You should reconsider the format of your data. Instead of having so many columns you should `explode` it to get more lines to allow distributed computations: ```python import pyspark.sql.functions as psf df = df.select( "name", psf.explode( psf.array( *[psf.struct( psf.lit(...
You can try this approach. First crossjoin both dataframes ``` from pyspark.sql.types import * lrdd = sc.parallelize([['a', 'b'], ['c', 'd', 'e'], ['f']]). map(lambda x: ("key", x)) schema = StructType([StructField("K", StringType()), StructField("X", Arr...
16,465
See Update below. I got an email from Logitech that they are End of Lifing their Harmony Link product (see <https://community.logitech.com/s/question/0D55A0000745EkCSAU/harmony-link-eos-or-eol>). So I took it upon myself to start taking it apart. Peeling back the sticky pads on the bottom revealed 4 solder points. Tw...
2017/10/02
[ "https://reverseengineering.stackexchange.com/questions/16465", "https://reverseengineering.stackexchange.com", "https://reverseengineering.stackexchange.com/users/8057/" ]
If you are able to get hex output of the partition data, you can store it in a text file and then convert to a binary. On Linux, the following commands may help: ``` cat data.txt | cut -d' ' -f2-18 | sed s/\\s//g | tr -d '\n' | xxd -r -p > data.bin ```
Until a better solution is found, Perhaps the 'EOL' process can be avoided by blocking this device from access to the outside internet (by blocking it at your router/gateway). I have done this for an internet-enabled device that I don't trust to access the internet (it still works usefully on my LAN)
16,465
See Update below. I got an email from Logitech that they are End of Lifing their Harmony Link product (see <https://community.logitech.com/s/question/0D55A0000745EkCSAU/harmony-link-eos-or-eol>). So I took it upon myself to start taking it apart. Peeling back the sticky pads on the bottom revealed 4 solder points. Tw...
2017/10/02
[ "https://reverseengineering.stackexchange.com/questions/16465", "https://reverseengineering.stackexchange.com", "https://reverseengineering.stackexchange.com/users/8057/" ]
If you are able to get hex output of the partition data, you can store it in a text file and then convert to a binary. On Linux, the following commands may help: ``` cat data.txt | cut -d' ' -f2-18 | sed s/\\s//g | tr -d '\n' | xxd -r -p > data.bin ```
Have you been able to mount any portion of this dump as ubifs ? ``` $ strings data-complete.bin | grep -i ubi "console=ttymxc1,115200 noinitrd init=/linuxrc ubi.mtd=1 root=/dev/mtdblock:cramfs%{os_backup} %{os_cmdargs}" ubi attach -f 0x80000 -l 0x07EC0000 -w 0x800 -e 0x20000 -s 0x200 ubi load -b 0x100000 kernel%{os_ba...
16,465
See Update below. I got an email from Logitech that they are End of Lifing their Harmony Link product (see <https://community.logitech.com/s/question/0D55A0000745EkCSAU/harmony-link-eos-or-eol>). So I took it upon myself to start taking it apart. Peeling back the sticky pads on the bottom revealed 4 solder points. Tw...
2017/10/02
[ "https://reverseengineering.stackexchange.com/questions/16465", "https://reverseengineering.stackexchange.com", "https://reverseengineering.stackexchange.com/users/8057/" ]
Have you been able to mount any portion of this dump as ubifs ? ``` $ strings data-complete.bin | grep -i ubi "console=ttymxc1,115200 noinitrd init=/linuxrc ubi.mtd=1 root=/dev/mtdblock:cramfs%{os_backup} %{os_cmdargs}" ubi attach -f 0x80000 -l 0x07EC0000 -w 0x800 -e 0x20000 -s 0x200 ubi load -b 0x100000 kernel%{os_ba...
Until a better solution is found, Perhaps the 'EOL' process can be avoided by blocking this device from access to the outside internet (by blocking it at your router/gateway). I have done this for an internet-enabled device that I don't trust to access the internet (it still works usefully on my LAN)
16,740,402
I want to select from my FileList all different files using group by. But I want to get Back only the elements with the highest id. I only get the first entry back. How to fix this? ``` select * from files group by name; ``` This is my table-content... ``` ID NAME DATE USER 1443 - /te...
2013/05/24
[ "https://Stackoverflow.com/questions/16740402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2013798/" ]
``` select * from files where id in ( select max(id) from files group by name ) ``` or ``` select f.* from files f inner join ( select max(id) as id from files group by name ) x on x.id = f.id ``` [SQLFiddle demo](http://sqlfiddle.com/#!2/c25eb/1) --------------------------------------------------
Use this:- ``` select *,max(id) from files group by name; ```
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
I don't think messing around with the newline syntax is a good idea ... ----------------------------------------------------------------------- I agree with Henrik's comment. From the [markdown docs](http://daringfireball.net/projects/markdown/syntax): > > When you do want to insert a `<br />` break tag using Markdo...
You could write a [custom filter](http://docs.djangoproject.com/en/dev/howto/custom-template-tags/) that calls markdown, then does [replace](http://docs.python.org/library/stdtypes.html#str.replace) on its output.
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
**EDIT: As of the end of June, 2011, the extension below is now included with Python Markdown.** Here is a Markdown extension that I wrote and am currently testing on my site to do exactly what you want: ``` """ A python-markdown extension to treat newlines as hard breaks; like StackOverflow and GitHub flavored Markd...
You could write a [custom filter](http://docs.djangoproject.com/en/dev/howto/custom-template-tags/) that calls markdown, then does [replace](http://docs.python.org/library/stdtypes.html#str.replace) on its output.
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
You can override default MARKDOWN\_DEUX\_STYLES with adding `"break-on-newline": True` in `extras` settings : ``` MARKDOWN_DEUX_STYLES = { "default": { "extras": { "code-friendly": None, "break-on-newline": True, }, "safe_mode": "escape", } } ``` [Documentation...
You could write a [custom filter](http://docs.djangoproject.com/en/dev/howto/custom-template-tags/) that calls markdown, then does [replace](http://docs.python.org/library/stdtypes.html#str.replace) on its output.
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
I don't think messing around with the newline syntax is a good idea ... ----------------------------------------------------------------------- I agree with Henrik's comment. From the [markdown docs](http://daringfireball.net/projects/markdown/syntax): > > When you do want to insert a `<br />` break tag using Markdo...
There appears to be a `linebreaks` filter that converts `\n` characters to either `<br>` or `<p>`. See [linebreaks](http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaks) or [linebreaksbr](http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaksbr).
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
I don't think messing around with the newline syntax is a good idea ... ----------------------------------------------------------------------- I agree with Henrik's comment. From the [markdown docs](http://daringfireball.net/projects/markdown/syntax): > > When you do want to insert a `<br />` break tag using Markdo...
**EDIT: As of the end of June, 2011, the extension below is now included with Python Markdown.** Here is a Markdown extension that I wrote and am currently testing on my site to do exactly what you want: ``` """ A python-markdown extension to treat newlines as hard breaks; like StackOverflow and GitHub flavored Markd...
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
I don't think messing around with the newline syntax is a good idea ... ----------------------------------------------------------------------- I agree with Henrik's comment. From the [markdown docs](http://daringfireball.net/projects/markdown/syntax): > > When you do want to insert a `<br />` break tag using Markdo...
You can override default MARKDOWN\_DEUX\_STYLES with adding `"break-on-newline": True` in `extras` settings : ``` MARKDOWN_DEUX_STYLES = { "default": { "extras": { "code-friendly": None, "break-on-newline": True, }, "safe_mode": "escape", } } ``` [Documentation...
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
**EDIT: As of the end of June, 2011, the extension below is now included with Python Markdown.** Here is a Markdown extension that I wrote and am currently testing on my site to do exactly what you want: ``` """ A python-markdown extension to treat newlines as hard breaks; like StackOverflow and GitHub flavored Markd...
There appears to be a `linebreaks` filter that converts `\n` characters to either `<br>` or `<p>`. See [linebreaks](http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaks) or [linebreaksbr](http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaksbr).
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
You can override default MARKDOWN\_DEUX\_STYLES with adding `"break-on-newline": True` in `extras` settings : ``` MARKDOWN_DEUX_STYLES = { "default": { "extras": { "code-friendly": None, "break-on-newline": True, }, "safe_mode": "escape", } } ``` [Documentation...
There appears to be a `linebreaks` filter that converts `\n` characters to either `<br>` or `<p>`. See [linebreaks](http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaks) or [linebreaksbr](http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaksbr).
1,790,176
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
2009/11/24
[ "https://Stackoverflow.com/questions/1790176", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339046/" ]
**EDIT: As of the end of June, 2011, the extension below is now included with Python Markdown.** Here is a Markdown extension that I wrote and am currently testing on my site to do exactly what you want: ``` """ A python-markdown extension to treat newlines as hard breaks; like StackOverflow and GitHub flavored Markd...
You can override default MARKDOWN\_DEUX\_STYLES with adding `"break-on-newline": True` in `extras` settings : ``` MARKDOWN_DEUX_STYLES = { "default": { "extras": { "code-friendly": None, "break-on-newline": True, }, "safe_mode": "escape", } } ``` [Documentation...
19,249,707
I am trying to post an image (as part of a form) to a PHP server from a Worklight V6 app using the HTTP adapter. The image is base64 encoded ``` navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 8, destinationType: navigator.camera.DestinationType.DATA_URL }); ``` .. later in the code ``` $('#myI...
2013/10/08
[ "https://Stackoverflow.com/questions/19249707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2216025/" ]
I think the problem is "data:image/jpeg;base64," at the front of the base64 encoded data. Either send the image to the adapter w/o that prefix, or strip it off in the adapter before posting to the service.
David D saved me. In the adapter code, I had ``` var formData = encodeURI(imageData); ``` To get the code to work we changed it to ``` var imageData = "image='" + encodeURIComponent(inputData.image)+"'"; ``` var input = { method : 'post', returnedContentType : 'html', path : path, body: { "contentType" : "app...
3,422,685
There is a `buffer` type in Python, but how can I use it? In the [Python documentation about `buffer()`](https://docs.python.org/2.7/library/functions.html#buffer), the description is: > > `buffer(object[, offset[, size]])` > > > The object argument must be an object that supports the buffer call interface (such...
2010/08/06
[ "https://Stackoverflow.com/questions/3422685", "https://Stackoverflow.com", "https://Stackoverflow.com/users/225262/" ]
An example usage: ``` >>> s = 'Hello world' >>> t = buffer(s, 6, 5) >>> t <read-only buffer for 0x10064a4b0, size 5, offset 6 at 0x100634ab0> >>> print t world ``` The buffer in this case is a sub-string, starting at position 6 with length 5, and it doesn't take extra storage space - it references a slice of the str...
I think buffers are e.g. useful when interfacing Python to native libraries ([Guido van Rossum](https://en.wikipedia.org/wiki/Guido_van_Rossum) explains `buffer` in [this mailing list post](http://mail.python.org/pipermail/python-dev/2000-October/009974.html)). For example, [NumPy](https://en.wikipedia.org/wiki/NumPy)...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
Parse the fragment into a DOM. Use XPath to issue: ``` (//a)[2] ``` Done.
you don't have to use complicated regular expression for this if you don't want to. since you want to get anchors, and usually anchors has ending tags `</a>`, you can use your favourite language and do splits on `</a>` for each line. eg pseudocode ``` for each line in htmlfile do var=split line on </a> for each ...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
Parse the fragment into a DOM. Use XPath to issue: ``` (//a)[2] ``` Done.
like ``` /<a.+?>[^<>]*Announcements[^<>]*</a>/ ``` PS. regular expression are the wrong tool for parsing html
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
like ``` /<a.+?>[^<>]*Announcements[^<>]*</a>/ ``` PS. regular expression are the wrong tool for parsing html
you don't have to use complicated regular expression for this if you don't want to. since you want to get anchors, and usually anchors has ending tags `</a>`, you can use your favourite language and do splits on `</a>` for each line. eg pseudocode ``` for each line in htmlfile do var=split line on </a> for each ...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
``` /(<a.*?<\/a>).*?(<a.*?<\/a>)/ ``` $1 matches the first tag, $2 matches the second
``` <?php $string = '<span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"><span><a class="ms-sitemapdirectional" href="/">My Site</a></span><span> &gt; </span><span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems.aspx">Announcements</a></span><span> &gt; </span><span class="ms-sitemapdirectional"...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
like ``` /<a.+?>[^<>]*Announcements[^<>]*</a>/ ``` PS. regular expression are the wrong tool for parsing html
``` <?php $string = '<span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"><span><a class="ms-sitemapdirectional" href="/">My Site</a></span><span> &gt; </span><span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems.aspx">Announcements</a></span><span> &gt; </span><span class="ms-sitemapdirectional"...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
``` /(<a.*?<\/a>).*?(<a.*?<\/a>)/ ``` $1 matches the first tag, $2 matches the second
If you know the exact text of the element, and you know it's the last element of its kind in the fragment, you have more than enough information to match it with a regex. I suspect you're using a regex like this: ``` /<a\s+.*>Announcements<\/a>/s ``` ...and the `.*` is matching everything between the `<a` of the fir...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
``` /(<a.*?<\/a>).*?(<a.*?<\/a>)/ ``` $1 matches the first tag, $2 matches the second
you don't have to use complicated regular expression for this if you don't want to. since you want to get anchors, and usually anchors has ending tags `</a>`, you can use your favourite language and do splits on `</a>` for each line. eg pseudocode ``` for each line in htmlfile do var=split line on </a> for each ...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
Parse the fragment into a DOM. Use XPath to issue: ``` (//a)[2] ``` Done.
``` <?php $string = '<span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"><span><a class="ms-sitemapdirectional" href="/">My Site</a></span><span> &gt; </span><span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems.aspx">Announcements</a></span><span> &gt; </span><span class="ms-sitemapdirectional"...
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
Parse the fragment into a DOM. Use XPath to issue: ``` (//a)[2] ``` Done.
``` /(<a.*?<\/a>).*?(<a.*?<\/a>)/ ``` $1 matches the first tag, $2 matches the second
1,689,038
I have a HTML fragment which contains two anchor tags in various parts of the HTML. ``` <span id="ctl00_PlaceHolderTitleBreadcrumb_ContentMap"> <span><a class="ms-sitemapdirectional" href="/">My Site</a></span> <span> &gt; </span> <span><a class="ms-sitemapdirectional" href="/Lists/Announcements/AllItems....
2009/11/06
[ "https://Stackoverflow.com/questions/1689038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/127440/" ]
like ``` /<a.+?>[^<>]*Announcements[^<>]*</a>/ ``` PS. regular expression are the wrong tool for parsing html
If you know the exact text of the element, and you know it's the last element of its kind in the fragment, you have more than enough information to match it with a regex. I suspect you're using a regex like this: ``` /<a\s+.*>Announcements<\/a>/s ``` ...and the `.*` is matching everything between the `<a` of the fir...
53,128,628
I'm trying to implement a queue using 2 stacks but my code isn't functioning. Can you spot the error? ``` #include <stdio.h> #include<stdlib.h> #define MAX 5 typedef struct stack { int top; int arr[MAX]; } stack; void enque(stack*s1, int ele) { printf("entering"); push(&s1, ele); printf("what a pain"); } ...
2018/11/03
[ "https://Stackoverflow.com/questions/53128628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10598529/" ]
You will have to wait at least 30min - 1hour in order to see the changes in the PlayStore. Check if the PlayConsole, go to your app, Release Management , and check if your last version is Full rollout [![PlayConsole](https://i.stack.imgur.com/Xly0l.png)](https://i.stack.imgur.com/Xly0l.png)
Sometimes it takes more time ,Once our app took two days so what you can do is just wait it will get updated automatically
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
I used a combination of CSS and jQuery, along with hints on this page, to create a fluid width and height using Bootstrap 3. I also tested this on IE8 on Win7, and it works great. First, some CSS to handle the width and optional scrollbar for the content area ``` .modal.modal-wide .modal-dialog { width: 90%; } .mod...
``` #modalTest.modal-dialog{ width: <insert size> !important; } the !important is important :v ```
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
I know it is late but just found in [bs3 docs](http://getbootstrap.com/javascript/#modals) you can add `modal-lg` class to your modals ``` <!-- Large modal --> <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg"> Large modal </button> <div class="modal fade bs-example-modal-lg" ta...
``` #modalTest.modal-dialog{ width: <insert size> !important; } the !important is important :v ```
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
In bootstrap 3 you need assign width not to `.modal` class but to `.modal-dialog` ``` #modalTest .modal-dialog { width: 500px; /* your width */ } ```
I think you need to set the width in pixels and adjust the margin-left. For example, ``` .modal-dialog { width:700px; margin-left:-320px; } ``` The margin left must be half the width of the modal, minus 30px for the scrollbar. Here's an example on Bootply: <http://bootply.com/85213>
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
I used a combination of CSS and jQuery, along with hints on this page, to create a fluid width and height using Bootstrap 3. I also tested this on IE8 on Win7, and it works great. First, some CSS to handle the width and optional scrollbar for the content area ``` .modal.modal-wide .modal-dialog { width: 90%; } .mod...
This will of course change the width for all of your modal windows, but it might give you a better idea on how this works. I just changed my modal windows this way. ``` .modal-body { position: relative; padding: 20px; min-width: 800px; /* SET THE WIDTH OF THE MODAL */ } .modal-con...
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
In bootstrap 3 you need assign width not to `.modal` class but to `.modal-dialog` ``` #modalTest .modal-dialog { width: 500px; /* your width */ } ```
This will of course change the width for all of your modal windows, but it might give you a better idea on how this works. I just changed my modal windows this way. ``` .modal-body { position: relative; padding: 20px; min-width: 800px; /* SET THE WIDTH OF THE MODAL */ } .modal-con...
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
In bootstrap 3 you need assign width not to `.modal` class but to `.modal-dialog` ``` #modalTest .modal-dialog { width: 500px; /* your width */ } ```
I used a combination of CSS and jQuery, along with hints on this page, to create a fluid width and height using Bootstrap 3. I also tested this on IE8 on Win7, and it works great. First, some CSS to handle the width and optional scrollbar for the content area ``` .modal.modal-wide .modal-dialog { width: 90%; } .mod...
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
I know it is late but just found in [bs3 docs](http://getbootstrap.com/javascript/#modals) you can add `modal-lg` class to your modals ``` <!-- Large modal --> <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg"> Large modal </button> <div class="modal fade bs-example-modal-lg" ta...
This will of course change the width for all of your modal windows, but it might give you a better idea on how this works. I just changed my modal windows this way. ``` .modal-body { position: relative; padding: 20px; min-width: 800px; /* SET THE WIDTH OF THE MODAL */ } .modal-con...
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
I used a combination of CSS and jQuery, along with hints on this page, to create a fluid width and height using Bootstrap 3. I also tested this on IE8 on Win7, and it works great. First, some CSS to handle the width and optional scrollbar for the content area ``` .modal.modal-wide .modal-dialog { width: 90%; } .mod...
I think you need to set the width in pixels and adjust the margin-left. For example, ``` .modal-dialog { width:700px; margin-left:-320px; } ``` The margin left must be half the width of the modal, minus 30px for the scrollbar. Here's an example on Bootply: <http://bootply.com/85213>
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
I know it is late but just found in [bs3 docs](http://getbootstrap.com/javascript/#modals) you can add `modal-lg` class to your modals ``` <!-- Large modal --> <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg"> Large modal </button> <div class="modal fade bs-example-modal-lg" ta...
I think you need to set the width in pixels and adjust the margin-left. For example, ``` .modal-dialog { width:700px; margin-left:-320px; } ``` The margin left must be half the width of the modal, minus 30px for the scrollbar. Here's an example on Bootply: <http://bootply.com/85213>
18,346,203
I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: ``` <...
2013/08/20
[ "https://Stackoverflow.com/questions/18346203", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2174959/" ]
In bootstrap 3 you need assign width not to `.modal` class but to `.modal-dialog` ``` #modalTest .modal-dialog { width: 500px; /* your width */ } ```
``` #modalTest.modal-dialog{ width: <insert size> !important; } the !important is important :v ```
16,901,946
I have a question about low level stuff of dynamic memory allocation. I understand that there may be different implementations, but I need to understand the fundamental ideas. So, when a modern OS memory allocator or the equivalent allocates a block of memory, this block needs to be freed. But, before that happends,...
2013/06/03
[ "https://Stackoverflow.com/questions/16901946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1517167/" ]
"How this system keeps track of allocated and unallocated memory." For non-embedded systems with operating systems, a [virtual page table](http://en.wikipedia.org/wiki/Page_table), which the OS is in charge of organizing (with hardware [TLB](http://en.wikipedia.org/wiki/Translation_lookaside_buffer) support of course),...
Well, there are more than one way to achieve that. I once had to wrote a `malloc()` (and `free()`) implementation for educational purpose. This is from my experience, and real world implementation surely vary. I used a double linked list. Memory chunk returned to the user after calling `malloc()` were in fact a `stru...
16,901,946
I have a question about low level stuff of dynamic memory allocation. I understand that there may be different implementations, but I need to understand the fundamental ideas. So, when a modern OS memory allocator or the equivalent allocates a block of memory, this block needs to be freed. But, before that happends,...
2013/06/03
[ "https://Stackoverflow.com/questions/16901946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1517167/" ]
"How this system keeps track of allocated and unallocated memory." For non-embedded systems with operating systems, a [virtual page table](http://en.wikipedia.org/wiki/Page_table), which the OS is in charge of organizing (with hardware [TLB](http://en.wikipedia.org/wiki/Translation_lookaside_buffer) support of course),...
Normally there exist two different layers. One layer lives at application level, usually as part of the C standard library. This is what you call through functions like `malloc` and `free` (or `operator new` in C++, which in turn usually calls `malloc`). This layer takes care of your allocations, but does not know abo...
1,304,209
Reading along with the agile book, it says this in a footnote: > > ... You simply pass the select helper the result of doing a find(:all) on your lookup > table. > > > Okay ... ``` <%= f.select :source, Source.find(:all) %> ``` My source controller (and therefore table) looks like this: ``` create_table :so...
2009/08/20
[ "https://Stackoverflow.com/questions/1304209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/112377/" ]
I had same problem with Visual Studio 2008. In my case it was Stylecop plugin for Resharper. when I open a Xaml file my IDE was crashing. I removed Resharper Stylecop plugin and started working fine.
I was having the same problem with Visual Studio 2008 crashing with no error dialog of any kind when opening many of our WinForms in design mode. Tried the same process in safe mode (devenv.exe /safemode) and it worked. So... I tried disabling my add-ins one by one. The culprit in my case was the VMDebugger add-in inst...
1,304,209
Reading along with the agile book, it says this in a footnote: > > ... You simply pass the select helper the result of doing a find(:all) on your lookup > table. > > > Okay ... ``` <%= f.select :source, Source.find(:all) %> ``` My source controller (and therefore table) looks like this: ``` create_table :so...
2009/08/20
[ "https://Stackoverflow.com/questions/1304209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/112377/" ]
I disabled Gallio addin and VS2008 worked.
I was having the same problem with Visual Studio 2008 crashing with no error dialog of any kind when opening many of our WinForms in design mode. Tried the same process in safe mode (devenv.exe /safemode) and it worked. So... I tried disabling my add-ins one by one. The culprit in my case was the VMDebugger add-in inst...
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
open cmd in google cloud(which can be found after clicking in your project in right top corner) and type ``` gcloud projects delete [..your-project-id..] ```
Answering the question after a long time its been asked. Hopefully it will help someone who is looking for it in 2022. As per the documentation of [creating and managing projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) in google cloud. its a simple process. Search for IAM & Admin i...
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
You must first disable billing before deleting any project. See link <https://developers.google.com/console/help/#deletingaproject>
Step By Step to disable and request permanent deletion from Google Cloud Console and Google Appengine Project. Step 1 - Navigate to appengine project and Click on **Application Settings**. Step 2 - Scroll/Find the button to **Disable Application**. Click the button. Step 3 - Click on "**Disable Application Now**" S...
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
As 2017 approaches, [Raptor's answer](https://stackoverflow.com/a/40672213/1740008) pretty much nailed it, but here is a screenshot and the basic steps to delete a project from the google cloud platform. 1. Go to [console.cloud.google.com](https://console.cloud.google.com) 2. Select your project (from drop-down on top...
It's July 2018, none of the above works. Here is what I spotted and successfully deleted un-needed projects. <https://cloud.google.com/go/getting-started/delete-tutorial-resources> You need to delete all the unwanted project(s) else will be billed regardless.
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
**Deleting your project from old console is no longer available!** ![enter image description here](https://i.stack.imgur.com/ESITo.png) So in the new console go to `Billing and Settings` and delete your project from there. ![enter image description here](https://i.stack.imgur.com/mDX7a.png) ![enter image description...
Step By Step to disable and request permanent deletion from Google Cloud Console and Google Appengine Project. Step 1 - Navigate to appengine project and Click on **Application Settings**. Step 2 - Scroll/Find the button to **Disable Application**. Click the button. Step 3 - Click on "**Disable Application Now**" S...
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
Try to change back to old console design.. You can find delete button there. This is the old url <https://code.google.com/apis/console/> Then you click in the left sidebar on the project name, you'll have a "delete" link :)
Step By Step to disable and request permanent deletion from Google Cloud Console and Google Appengine Project. Step 1 - Navigate to appengine project and Click on **Application Settings**. Step 2 - Scroll/Find the button to **Disable Application**. Click the button. Step 3 - Click on "**Disable Application Now**" S...
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
**Deleting your project from old console is no longer available!** ![enter image description here](https://i.stack.imgur.com/ESITo.png) So in the new console go to `Billing and Settings` and delete your project from there. ![enter image description here](https://i.stack.imgur.com/mDX7a.png) ![enter image description...
You may need to visit <https://appengine.google.com/>, select an application, then go to Administration -> Application Settings, scroll down half-way and click "Disable Application" under "Disable or Delete". One the next page you can also request permanent deletion.
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
1. Login with your Google Account 2. Navigate to this page: <https://console.cloud.google.com/cloud-resource-manager?organizationId=0> 3. Select a single project 4. Click "DELETE" (on top, above projects table)
Step By Step to disable and request permanent deletion from Google Cloud Console and Google Appengine Project. Step 1 - Navigate to appengine project and Click on **Application Settings**. Step 2 - Scroll/Find the button to **Disable Application**. Click the button. Step 3 - Click on "**Disable Application Now**" S...
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
You may need to visit <https://appengine.google.com/>, select an application, then go to Administration -> Application Settings, scroll down half-way and click "Disable Application" under "Disable or Delete". One the next page you can also request permanent deletion.
1. Go to Google Cloud Platform, 2. select the project & click "DELETE PROJECT" on top right corner. <https://cloud.google.com/appengine/docs/python/console/?csw=1#delete%5Fapp> [![enter image description here](https://i.stack.imgur.com/WmeUn.png)](https://i.stack.imgur.com/WmeUn.png)
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
**Deleting your project from old console is no longer available!** ![enter image description here](https://i.stack.imgur.com/ESITo.png) So in the new console go to `Billing and Settings` and delete your project from there. ![enter image description here](https://i.stack.imgur.com/mDX7a.png) ![enter image description...
[https://console.cloud.google.com/cloud-resource-manager?project=mapapp-229211][1] This Will Help For Manage Google cloud projects
16,621,921
It seems that, from [Google Cloud Console](https://cloud.google.com/console#c=l) there is no way to delete a project. > > Note: As of 2013-09-19 this is no longer an issue because > Google had fixed it. > > - Now you can click on the check box and then > click delete > > >
2013/05/18
[ "https://Stackoverflow.com/questions/16621921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1431972/" ]
As of Dec 30, 2017, this appears to be different (yet again). I did the following. Logon to the Google Cloud Console, Select IAM & Admin then Settings (from hamburger menu on top-left nav-bar). This is a cascading menu. After choosing that I saw the following. [![IAM & Admin Settings page](https://i.stack.imgur.com/...
Just found that Google doesn't allow you to delete project in old console anymore. For now, you need to click on project, then "Billing & Settings", you will find delete button there.
8,250,904
For one of my view controller (extends UITableViewController), I need to configure its back button text to "Back". But the back button still shows up with parent view controller's title (the default). ``` - (void)viewDidLoad { ... self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:...
2011/11/24
[ "https://Stackoverflow.com/questions/8250904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/710480/" ]
You need to set the back button on the view controller that pushed the class onto the stack e.g. the controller that created and pushed the class you are showing The docs for [View Controller Programming Guide for iOS](http://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/ViewControllerCatalog/C...
Try this: ``` UIButton* backButton = [UIButton buttonWithType:101]; [backButton addTarget:self action:@selector(popView:) forControlEvents:UIControlEventTouchUpInside]; [backButton setTitle:@"Back" forState:UIControlStateNormal]; UIBarButtonItem* backItem = [[UIBarButtonItem alloc] initWithCustomView:backButton]; sel...
8,250,904
For one of my view controller (extends UITableViewController), I need to configure its back button text to "Back". But the back button still shows up with parent view controller's title (the default). ``` - (void)viewDidLoad { ... self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:...
2011/11/24
[ "https://Stackoverflow.com/questions/8250904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/710480/" ]
You need to set the back button on the view controller that pushed the class onto the stack e.g. the controller that created and pushed the class you are showing The docs for [View Controller Programming Guide for iOS](http://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/ViewControllerCatalog/C...
Here's a bit more information from the latest UINavigationController class reference, which tells you how to change the button in either the "pushing" or "pushed" controller (I'd add the link, but Apple keeps moving stuff around in subtle ways. Please use your favorite search engine). In summary: if you are configuri...
8,250,904
For one of my view controller (extends UITableViewController), I need to configure its back button text to "Back". But the back button still shows up with parent view controller's title (the default). ``` - (void)viewDidLoad { ... self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:...
2011/11/24
[ "https://Stackoverflow.com/questions/8250904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/710480/" ]
Try this: ``` UIButton* backButton = [UIButton buttonWithType:101]; [backButton addTarget:self action:@selector(popView:) forControlEvents:UIControlEventTouchUpInside]; [backButton setTitle:@"Back" forState:UIControlStateNormal]; UIBarButtonItem* backItem = [[UIBarButtonItem alloc] initWithCustomView:backButton]; sel...
Here's a bit more information from the latest UINavigationController class reference, which tells you how to change the button in either the "pushing" or "pushed" controller (I'd add the link, but Apple keeps moving stuff around in subtle ways. Please use your favorite search engine). In summary: if you are configuri...
6,941
I need to find a tutorial (or just be pointed in the right direction) into learning how to make a design in Illustrator that is contoured. I'm basically trying to make a design for a cup. Here's the template I've been given: ![Template](https://i.stack.imgur.com/uaRLv.png) I've got images and text that I want to put ...
2012/04/09
[ "https://graphicdesign.stackexchange.com/questions/6941", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/3428/" ]
You'll want to create artwork in a rectangle which matches the entire width as if it were flat. You also ***must*** have a rectangle drawn in the background. It can have a fill of none or white, but you really want the rectangle there. Then follow the steps in the image below. ![enter image description here](https://...
As Scott mentioned, Envelop Distort may do the trick. Sometimes I find it acts strange though. For the simple warp needed for a cup, you might also use `Effect` ⇒ `Warp` ⇒ `Arc`.
63,674,037
I opened VSCode and was presented with a notification that there was a conflict between two versions of a file. I followed the prompts and got a side-by-side comparison of two versions. I clicked the button that accepts the newer version, believing that VSCode had correctly inferred which version was newer. It had not,...
2020/08/31
[ "https://Stackoverflow.com/questions/63674037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3889130/" ]
For anyone coming to this thread later and facing a similar issue, I am going to share what I have learned so far based on Leo’s answer and other sources. Docker has a feature called **[multi-stage](https://docs.docker.com/develop/develop-images/multistage-build/)** builds. This allows us to create multiple layers and...
**Question 1: What is the use of WORKDIR /app on line number 2?** This defines your current working directory. Following commands will by default be run from that location and relative paths will start there. Example with the following file structure: ``` /app/ - README.md - folder1/ - some.txt ``` ``` ...
63,674,037
I opened VSCode and was presented with a notification that there was a conflict between two versions of a file. I followed the prompts and got a side-by-side comparison of two versions. I clicked the button that accepts the newer version, believing that VSCode had correctly inferred which version was newer. It had not,...
2020/08/31
[ "https://Stackoverflow.com/questions/63674037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3889130/" ]
**Question 1: What is the use of WORKDIR /app on line number 2?** This defines your current working directory. Following commands will by default be run from that location and relative paths will start there. Example with the following file structure: ``` /app/ - README.md - folder1/ - some.txt ``` ``` ...
The reason we use "multi-stage" builds and use several images and copy files to continue instead of just sequentially carrying out steps is mainly due to trying to keep the image size small. Although disk space may be adequate, the following factors can also be relevant: 1. Build/deploy times. Larger images mean longe...
63,674,037
I opened VSCode and was presented with a notification that there was a conflict between two versions of a file. I followed the prompts and got a side-by-side comparison of two versions. I clicked the button that accepts the newer version, believing that VSCode had correctly inferred which version was newer. It had not,...
2020/08/31
[ "https://Stackoverflow.com/questions/63674037", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3889130/" ]
For anyone coming to this thread later and facing a similar issue, I am going to share what I have learned so far based on Leo’s answer and other sources. Docker has a feature called **[multi-stage](https://docs.docker.com/develop/develop-images/multistage-build/)** builds. This allows us to create multiple layers and...
The reason we use "multi-stage" builds and use several images and copy files to continue instead of just sequentially carrying out steps is mainly due to trying to keep the image size small. Although disk space may be adequate, the following factors can also be relevant: 1. Build/deploy times. Larger images mean longe...
24,281,703
The Problem =========== `<tr>` and `<td>` tags are getting stripped off from the HTML that is returned when there is the usage of `<style>` tag. HTML ==== ``` <table> <thead> <tr> <th>Name</th> <th>Email</th> </tr> </thead> <tbody> <tr class="first"> ...
2014/06/18
[ "https://Stackoverflow.com/questions/24281703", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1223045/" ]
you should execute the blocking calls in `DefaultEventExecutorGroup` or your custom threadpool that can be added to when the handler is added `pipeline.addLast(new DefaultEventExecutorGroup(50),"BUSSINESS_LOGIC_HANDLER", new BHandler());` ``` ctx.executor().execute(new Runnable() { @Override public void run() { /...
Your custom handler is initialized by Netty everytime the **Server** receives a request, hence one instance of the handler is responsible for handling one **Client**. So, it is perfectly fine for issuing blocking calls in your handler. It will not affect other Client's, as long as you don't block it indefinitely (or ...
699,114
I'd like to remove the tile shown below, without uninstalling the program. It doesn't seem like it is an actual folder that can be removed - maybe it is a registry key? ![enter image description here](https://i.stack.imgur.com/lrA8C.png)
2014/01/09
[ "https://superuser.com/questions/699114", "https://superuser.com", "https://superuser.com/users/6521/" ]
The keys you're looking for are in the following locations: **For Explorer** `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current Version\explorer\MyComputer\NameSpace` **For SaveAs and Open File dialougs** `HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace` *...
The ScanSnap folder can be removed by unregistering its `.dll` file. No log off/restart required. 1. Open an command prompt with administrator rights. 2. Type the following command and press `Enter`: `regsvr32 /u "C:\Program Files\PFU\ScanSnap\SSFolder\SSFolder.dll"` Upon unregistering, the following keys will be de...
699,114
I'd like to remove the tile shown below, without uninstalling the program. It doesn't seem like it is an actual folder that can be removed - maybe it is a registry key? ![enter image description here](https://i.stack.imgur.com/lrA8C.png)
2014/01/09
[ "https://superuser.com/questions/699114", "https://superuser.com", "https://superuser.com/users/6521/" ]
The keys you're looking for are in the following locations: **For Explorer** `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current Version\explorer\MyComputer\NameSpace` **For SaveAs and Open File dialougs** `HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace` *...
On a Windows 10 (64-bit) host, open a command prompt with administrator rights and then invoke this command line: ``` regsvr32 /u "C:\Program Files (x86)\PFU\ScanSnap\SSFolder\x64\SSFolder.DLL" ``` *NB: This answer was derived from the answer provided by @and31415:* <https://superuser.com/a/703657/484629>
699,114
I'd like to remove the tile shown below, without uninstalling the program. It doesn't seem like it is an actual folder that can be removed - maybe it is a registry key? ![enter image description here](https://i.stack.imgur.com/lrA8C.png)
2014/01/09
[ "https://superuser.com/questions/699114", "https://superuser.com", "https://superuser.com/users/6521/" ]
The ScanSnap folder can be removed by unregistering its `.dll` file. No log off/restart required. 1. Open an command prompt with administrator rights. 2. Type the following command and press `Enter`: `regsvr32 /u "C:\Program Files\PFU\ScanSnap\SSFolder\SSFolder.dll"` Upon unregistering, the following keys will be de...
On a Windows 10 (64-bit) host, open a command prompt with administrator rights and then invoke this command line: ``` regsvr32 /u "C:\Program Files (x86)\PFU\ScanSnap\SSFolder\x64\SSFolder.DLL" ``` *NB: This answer was derived from the answer provided by @and31415:* <https://superuser.com/a/703657/484629>
19,160,216
I'm using `r.js` through `grunt-contrib-requirejs` and haven't had any problems with it so far, until I wanted to split up my config into a separate file so that both `testem` and my app could share the same config. I haven't got any problems with having the separate config, except when it comes to the optimiser which ...
2013/10/03
[ "https://Stackoverflow.com/questions/19160216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1745309/" ]
Managed to solve this a couple of days ago. Now using Almond to load in my optimised r.js build and so I use a config like this: ``` compile: { options: { name: 'vendor/almond/almond', baseUrl: 'lib', include: ['main'], insertRequire: ['main'], mainConfigFile: 'lib/config.js...
I have found a simpler solution. Just move *requirejs.config({})* to separate file. And before optimizing your main file append this config file to your main file. For example by *gulp-append-prepend* plugin. And then optimize)
4,081,522
I am trying to factor the polynomial $t^9-t$ in the field with three elements $0,1,2$. I think that the factors $(t)(t)(t)(t)(t)(t)(t)(t)(t-1)$ are all irreducible but for some reason this seemed too simple for a problem from the book I am working from. Any help or hints welcome!
2021/03/29
[ "https://math.stackexchange.com/questions/4081522", "https://math.stackexchange.com", "https://math.stackexchange.com/users/754575/" ]
Using the usual rules that apply in any field you can get down to $t^9-t=t(t^8-1)=t(t^4+1)(t^4-1)=t(t^4+1)(t^2+1)(t^2-1)=t(t^4+1)(t^2+1)(t+1)(t-1)$. However, you aren't done at that point. While $t^2+1$ is irreducible ($\Bbb{F}\_3$ has no square root of $-1$), $t^4+1$ must factor into two quadratics over $\Bbb{F}\_3$ ...
Hint: factor it in stages $$t^9-t$$ $$t(t^8-1)$$ $$t(t^4+1)(t^4-1)$$ $$t(t^4+1)(t^2-1)(t^2+1)$$ $$t(t-1)(t+1)(t^2+1)(t^4+1)$$
4,081,522
I am trying to factor the polynomial $t^9-t$ in the field with three elements $0,1,2$. I think that the factors $(t)(t)(t)(t)(t)(t)(t)(t)(t-1)$ are all irreducible but for some reason this seemed too simple for a problem from the book I am working from. Any help or hints welcome!
2021/03/29
[ "https://math.stackexchange.com/questions/4081522", "https://math.stackexchange.com", "https://math.stackexchange.com/users/754575/" ]
We have: $$\begin{align} t^9-t&=t(t^8-1)\\&=t(t^4+1)(t^4-1)\\&=t(t^4+1)(t^2+1)(t^2-1)\\&=t(t^4+1)(t^2+1)(t+1)(t-1)\end{align}$$ It is easy to see (right?) that $t^4+1$ and $t^2+1$ have no linear factors in $\Bbb F\_3$. So it remains to try and factorise $t^4+1$ into two quadratic terms: $$t^4+1=(t^2+at+b)(t^2+ct+d)$$...
Hint: factor it in stages $$t^9-t$$ $$t(t^8-1)$$ $$t(t^4+1)(t^4-1)$$ $$t(t^4+1)(t^2-1)(t^2+1)$$ $$t(t-1)(t+1)(t^2+1)(t^4+1)$$
19,120,799
I have two tomcat7 installed on the same machine (centos 6.4), but in two separate folders. In the first tomcat I left the default listening ports while in the other one I modified every port (in the file /conf/server.xml) so that doesn't overlap with the first tomcat. However, when I start the second tomcat I get this...
2013/10/01
[ "https://Stackoverflow.com/questions/19120799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2791481/" ]
Play framework creates the war in the exploded directory format and not as a compressed file. It is mentioned as part of the [play framework deployment documentatio](http://www.playframework.com/documentation/1.2/deployment)n: > > Please note that your application server must support deployment of > exploded WAR fil...
I know some containers (like `JBoss`) allow you to deploy directories like this in the same way as an archive, with the `.war` extension. It's called an "exploded artefact/deployment". [Link](https://community.jboss.org/wiki/ExplodedDeployment)
2,439,126
I have an entity that has a collection in it. The collection is a OneToMany unidirectional relationship storing who viewed a particular file. The problem I am having is that after I load the entity and try to update the collection, I don't get any errors, but the collection is never updated: Entity: ``` @OneToMany(ca...
2010/03/13
[ "https://Stackoverflow.com/questions/2439126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
A few things: 1. Check to see if your Read call is blocking. If so, you might not be able to call Write while the Read is blocking waiting for a response. Your API documentation may have more details on this. 2. Some APIs do not support multiple threads very well, even when synchronizing access. If that's the case her...
I've found more detailed API documentation. Indeed the ftdiDevice.read function is blocking unless you set the readTimeout value other then 0. Setting this timeout value solved the problem. Thanks for your quick response. Regards
2,439,126
I have an entity that has a collection in it. The collection is a OneToMany unidirectional relationship storing who viewed a particular file. The problem I am having is that after I load the entity and try to update the collection, I don't get any errors, but the collection is never updated: Entity: ``` @OneToMany(ca...
2010/03/13
[ "https://Stackoverflow.com/questions/2439126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
A few things: 1. Check to see if your Read call is blocking. If so, you might not be able to call Write while the Read is blocking waiting for a response. Your API documentation may have more details on this. 2. Some APIs do not support multiple threads very well, even when synchronizing access. If that's the case her...
Checking out the API, it looks to me that the driver is capable of emulating a COM port. I see the GetComPort() method returning a "COMx" string. That makes it pretty likely that you can use the System.IO.Ports.SerialPort class. Which already does what your wrapper is trying to do, it supports a DataReceived event. Wor...
2,439,126
I have an entity that has a collection in it. The collection is a OneToMany unidirectional relationship storing who viewed a particular file. The problem I am having is that after I load the entity and try to update the collection, I don't get any errors, but the collection is never updated: Entity: ``` @OneToMany(ca...
2010/03/13
[ "https://Stackoverflow.com/questions/2439126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I've found more detailed API documentation. Indeed the ftdiDevice.read function is blocking unless you set the readTimeout value other then 0. Setting this timeout value solved the problem. Thanks for your quick response. Regards
Checking out the API, it looks to me that the driver is capable of emulating a COM port. I see the GetComPort() method returning a "COMx" string. That makes it pretty likely that you can use the System.IO.Ports.SerialPort class. Which already does what your wrapper is trying to do, it supports a DataReceived event. Wor...
2,439,126
I have an entity that has a collection in it. The collection is a OneToMany unidirectional relationship storing who viewed a particular file. The problem I am having is that after I load the entity and try to update the collection, I don't get any errors, but the collection is never updated: Entity: ``` @OneToMany(ca...
2010/03/13
[ "https://Stackoverflow.com/questions/2439126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
An alternative is to use the event notification mechanism from FTDI, this way you don't need a blocking thread to read out data: ``` public FTDISample() { private AutoResetEvent receivedDataEvent; private BackgroundWorker dataReceivedHandler; private FTDI ftdi; public FTDISample(string serialNumber){ ...
I've found more detailed API documentation. Indeed the ftdiDevice.read function is blocking unless you set the readTimeout value other then 0. Setting this timeout value solved the problem. Thanks for your quick response. Regards
2,439,126
I have an entity that has a collection in it. The collection is a OneToMany unidirectional relationship storing who viewed a particular file. The problem I am having is that after I load the entity and try to update the collection, I don't get any errors, but the collection is never updated: Entity: ``` @OneToMany(ca...
2010/03/13
[ "https://Stackoverflow.com/questions/2439126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
An alternative is to use the event notification mechanism from FTDI, this way you don't need a blocking thread to read out data: ``` public FTDISample() { private AutoResetEvent receivedDataEvent; private BackgroundWorker dataReceivedHandler; private FTDI ftdi; public FTDISample(string serialNumber){ ...
Checking out the API, it looks to me that the driver is capable of emulating a COM port. I see the GetComPort() method returning a "COMx" string. That makes it pretty likely that you can use the System.IO.Ports.SerialPort class. Which already does what your wrapper is trying to do, it supports a DataReceived event. Wor...
77,341
I would like to know with the restrictions of GAE listed below, is it even possible to build a great social app (like Facebook) by hosting that app on GAE? In other words is GAE an infrastructure capable of hosting an app used by 600 million active users? Restrictions I've dugged out from a couple of forums / blogs (...
2011/05/17
[ "https://softwareengineering.stackexchange.com/questions/77341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/24257/" ]
No, App Engine is not appropriate for an app with 600 million active users. Realistically, apps this large run on highly customized infrastructure out of their own datacenters. It's probably possible to host such an app with Google, but you would work directly with their sales team to design a solution; the sandbox re...
I think the points in that FAQ fall into a couple of main areas. First of all, there's the points which are actually to the *benefit* of scalability, rather than the detriment. In a highly scalable application, one of the things you strive for is making sure every request is largely independent of the others and also ...
77,341
I would like to know with the restrictions of GAE listed below, is it even possible to build a great social app (like Facebook) by hosting that app on GAE? In other words is GAE an infrastructure capable of hosting an app used by 600 million active users? Restrictions I've dugged out from a couple of forums / blogs (...
2011/05/17
[ "https://softwareengineering.stackexchange.com/questions/77341", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/24257/" ]
I think what annoys me about this question is that you've phrased it and loaded it with "facts" in an attempt to gather a definitive no. The truth is that you could develop an App Engine app that replicates the features of Facebook, Twitter, or Tumblr. And assuming the app was well written, it would scale to support ...
No, App Engine is not appropriate for an app with 600 million active users. Realistically, apps this large run on highly customized infrastructure out of their own datacenters. It's probably possible to host such an app with Google, but you would work directly with their sales team to design a solution; the sandbox re...