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
1,415,443
I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory obj\Debug\TempPE and then leaves it empty. I don't mind Visual Studio creating al...
2009/09/12
[ "https://Stackoverflow.com/questions/1415443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33225/" ]
It is not possible to prevent Visual Studio 2008 from doing this.
It's possible that you're running into a bug. If you see the obj folder being created but not containing any data **and** you see the expected files being created in the path you specified it may be an oversight. If this is the case can you please file a bug on connect? * <http://connect.microsoft.com>
1,415,443
I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory obj\Debug\TempPE and then leaves it empty. I don't mind Visual Studio creating al...
2009/09/12
[ "https://Stackoverflow.com/questions/1415443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33225/" ]
It's possible that you're running into a bug. If you see the obj folder being created but not containing any data **and** you see the expected files being created in the path you specified it may be an oversight. If this is the case can you please file a bug on connect? * <http://connect.microsoft.com>
Remove `obj` folder after build works for me. There is two way to remove it. 1. Add the following command in Project -> Property -> Build Event -> AfterBuild . `rmdir /s /q obj` Or 2. Add the following section in `.csproj` ```xml <PropertyGroup> <PostBuildEvent>rmdir /s /q obj</PostBuildEvent> </PropertyG...
1,415,443
I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory obj\Debug\TempPE and then leaves it empty. I don't mind Visual Studio creating al...
2009/09/12
[ "https://Stackoverflow.com/questions/1415443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33225/" ]
It's possible that you're running into a bug. If you see the obj folder being created but not containing any data **and** you see the expected files being created in the path you specified it may be an oversight. If this is the case can you please file a bug on connect? * <http://connect.microsoft.com>
Actually, also Microsoft suggests you to add command as a post-build action ``` rd "$(ProjectDir)obj" /s /q ``` see more at [To set the intermediate output directory for a project (.NET projects)](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-change-the-build-output-directory?view=vs-2022)
1,415,443
I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory obj\Debug\TempPE and then leaves it empty. I don't mind Visual Studio creating al...
2009/09/12
[ "https://Stackoverflow.com/questions/1415443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33225/" ]
It is not possible to prevent Visual Studio 2008 from doing this.
Remove `obj` folder after build works for me. There is two way to remove it. 1. Add the following command in Project -> Property -> Build Event -> AfterBuild . `rmdir /s /q obj` Or 2. Add the following section in `.csproj` ```xml <PropertyGroup> <PostBuildEvent>rmdir /s /q obj</PostBuildEvent> </PropertyG...
1,415,443
I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory obj\Debug\TempPE and then leaves it empty. I don't mind Visual Studio creating al...
2009/09/12
[ "https://Stackoverflow.com/questions/1415443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/33225/" ]
It is not possible to prevent Visual Studio 2008 from doing this.
Actually, also Microsoft suggests you to add command as a post-build action ``` rd "$(ProjectDir)obj" /s /q ``` see more at [To set the intermediate output directory for a project (.NET projects)](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-change-the-build-output-directory?view=vs-2022)
36,531,990
I'm working on Python 2.7 and regular expressions. So my question is: how can I select the words with all the letters are uppercase from a .txt file? For example my txt file: > > PYTHON 111 Python I - blabla. JAVA 222 Physics II - blalba.. > > > I want an output like "PYTHON, JAVA". Also I don't want one letter ...
2016/04/10
[ "https://Stackoverflow.com/questions/36531990", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6184581/" ]
You don't need regular expressions. Of course if you like them, they can work, but python provides a simpler way: ``` >>> words = "PYTHON 111 Python I - blabla. JAVA 222 APPhysics II - blalba.." >>> for word in words.split(): ... if word.isalpha() and word.isupper() and len(word) > 1: ... print word ... PYTHO...
``` >>> s="PYTHON 111 Python I - blabla. JAVA 222 APPhysics II - blalba.." >>> re.findall(r"\b[A-Z]{2,}\b", s) ['PYTHON', 'JAVA', 'II'] ```
39,646
So I was asked to DM for a group in 4th edition. I live 2 hours away so we are doing 1 12-hour session a month. We just had our first session and I made it clear that I was doing and am willing to do some atypical things. I have only DM'd once before and have only mild familiarity with D&D 4th ed (still more than any o...
2014/06/06
[ "https://rpg.stackexchange.com/questions/39646", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/13578/" ]
Three things you can, and should do: * Admit your mistake. Tell the player, "hey, I misunderstood the shield rule here, you can weild two, the second just doesn't do you any good." It's important to own up to this asap. * Let him rebuild his character from the ground up. You've clearly found out his character concept ...
waX eagle makes some great points. I would like to add one. You can allow the PC to use two shields, and stack the bonuses and penalties. Just be aware of all of them. * Although he has his holy symbol around his neck, he still needs a free hand in order to use any spell or ability with a somatic (S)[gesturing] compo...
66,606,511
I am using below code snippet for deploying code to multiple environments parallelly . For example I have two environments acpt, acpt2. The function Deploy executes from shared library which loaded at first to below script . The problem is when it tries to deploy first environment “acpt” as its parallel stage it moves ...
2021/03/12
[ "https://Stackoverflow.com/questions/66606511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15146927/" ]
A more efficient way to do this is with: ``` id = 123 attribute = 'title' value = 'New Title' Stuff.objects.filter(id=id).update(**\*\*{attribute: value}**) ``` This will prevent first fetching the object with a query, and then update it. If you need to load the object anyway, you can work with [**`setattr(…)`** [Py...
Try using an if statement like ``` If attribute = 'title' item.title = value item.save() ```
48,112,868
**AuthComponent** ``` import { TopnavComponent } from './../topnav/topnav.component'; import { Component, OnInit,ViewContainerRef } from '@angular/core'; import {AuthService} from "./auth.service"; import { NgForm } from '@angular/forms'; import {Router} from "@angular/router"; import {Profile}...
2018/01/05
[ "https://Stackoverflow.com/questions/48112868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4472540/" ]
By following all [upgrade guides](https://laravel.com/docs/5.5/upgrade). Or if you want it done fast, by using a service like [Laravel Shift](https://laravelshift.com/). I have never used this service, so I cannot say how well this will work with bigger projects.
Laravel 5.3 and below has a little different folder architecture, so you should care in such things as well. I usually do the following steps to upgrade from any version(**Mainly 5.4 and above**) to latest. Step 1: Save a backup of composer.json and delete composer.json file from your project and copy new one from lar...
36,204,662
I have two classes: ``` class A { public: bool funA(); }; class B : public A { pubic: bool funB(); }; ``` and a templated function that takes a function pointer and then calls it against a list of B's: ``` template <typename T> std::vector<T> getFunc(T (B::func*)()) { ....iterator through list of...
2016/03/24
[ "https://Stackoverflow.com/questions/36204662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/748910/" ]
Simply deduce the entire parameter and extract its return type: ```c++ template<class F,class R=std::result_of_t<F(B&)>> std::vector<R> getFunc(F&&){return{};} ``` `std::result_of_t` is C++14, for a C++11 compatible solution, use `typename std::result_of<F(B&)>::type`. For a C++03 solution, simply deduce the class ...
`&B::funA` has type `bool (A::*)()`, not `bool (B::*)()`. You will need to perform a `static_cast`: `static_cast<bool (B::*)()>(&B::funA)`.
21,222,994
When I tried to remove SublimeLinter on Mac I deleted the package, cache, every part of it in Application Support but it seems I can’t get rid of it in SublimeText 3. I open ST and I instantly get a message in a new tab from PackageControl telling me that SublimeLinter installed successfully and all the folders and fi...
2014/01/19
[ "https://Stackoverflow.com/questions/21222994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2394845/" ]
You need to uninstall it via Package Control. Hit `Command ⌘``Shift ⇧``P` to open the Command Palette, then type `pcr` and select **`Package Control: Remove Package`**. Scroll down the list, or type `sublimelinter`, hit `Enter`, and restart. You should be all set after that.
This worked for me guys, I deleted the windows app version of Python because there was two paths when I typed "Where Python" on CMD. Then after I deleted Anaconda and reinstalled it, it fixed itself.
55,705,113
I have a SQL query with a case statement. The case statement has a subquery. I want to replace (delete) the subselect with a join. It is possible? How can i do it? The Query: ``` SELECT tablex.Abnumber, CASE WHEN Abdate is not null AND isnull(Abnumber,0) > 1 AND Abdate < (SELECT Abdate FROM t_tablex WHERE Annumber = ...
2019/04/16
[ "https://Stackoverflow.com/questions/55705113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7857590/" ]
If I understood correctly, you are trying to update ValueX columns based on FieldX data. In that case you need to write Case condition for every column. You can directly write 10 Case conditions like below ``` UPDATE A_LOG SET VALUE1 = CASE WHEN FIELD1 IN ('AAA','BBB','CCC','DDD','EEE' ) THEN 0 ELSE VALUE1 END, VALU...
Try this: ``` Declare @Table Table(Field1 varchar(10), Value1 varchar(10), Field2 varchar(10), Value2 varchar(10) ,Field10 varchar(10) , Value10 varchar(10)) Declare @NewTable Table(Field1 varchar(10), Value1 varchar(10), Field2 varchar(10), Value2 varchar(10) ,Field10 varchar(10) , Value10 varchar(10)) ...
55,705,113
I have a SQL query with a case statement. The case statement has a subquery. I want to replace (delete) the subselect with a join. It is possible? How can i do it? The Query: ``` SELECT tablex.Abnumber, CASE WHEN Abdate is not null AND isnull(Abnumber,0) > 1 AND Abdate < (SELECT Abdate FROM t_tablex WHERE Annumber = ...
2019/04/16
[ "https://Stackoverflow.com/questions/55705113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7857590/" ]
If I understood correctly, you are trying to update ValueX columns based on FieldX data. In that case you need to write Case condition for every column. You can directly write 10 Case conditions like below ``` UPDATE A_LOG SET VALUE1 = CASE WHEN FIELD1 IN ('AAA','BBB','CCC','DDD','EEE' ) THEN 0 ELSE VALUE1 END, VALU...
The Case statement wouldn't work in the way that you've written. You need to individually compare the values in each Field and set the value of 'Value' column. ``` SELECT CAST( CASE WHEN Field1 = AAA or BBB or CCC or DDD or EEE THEN Value1 = 0 ...
55,705,113
I have a SQL query with a case statement. The case statement has a subquery. I want to replace (delete) the subselect with a join. It is possible? How can i do it? The Query: ``` SELECT tablex.Abnumber, CASE WHEN Abdate is not null AND isnull(Abnumber,0) > 1 AND Abdate < (SELECT Abdate FROM t_tablex WHERE Annumber = ...
2019/04/16
[ "https://Stackoverflow.com/questions/55705113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7857590/" ]
I'm pretty certain the wildcard you're trying to use for your `CASE WHEN` isn't a valid way of using it. You can use variables to create a SQL string that you can then copy and execute - this way, if you need to increase the number of fields you're checking, you only have to change one part of your code :) The code b...
Try this: ``` Declare @Table Table(Field1 varchar(10), Value1 varchar(10), Field2 varchar(10), Value2 varchar(10) ,Field10 varchar(10) , Value10 varchar(10)) Declare @NewTable Table(Field1 varchar(10), Value1 varchar(10), Field2 varchar(10), Value2 varchar(10) ,Field10 varchar(10) , Value10 varchar(10)) ...
55,705,113
I have a SQL query with a case statement. The case statement has a subquery. I want to replace (delete) the subselect with a join. It is possible? How can i do it? The Query: ``` SELECT tablex.Abnumber, CASE WHEN Abdate is not null AND isnull(Abnumber,0) > 1 AND Abdate < (SELECT Abdate FROM t_tablex WHERE Annumber = ...
2019/04/16
[ "https://Stackoverflow.com/questions/55705113", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7857590/" ]
I'm pretty certain the wildcard you're trying to use for your `CASE WHEN` isn't a valid way of using it. You can use variables to create a SQL string that you can then copy and execute - this way, if you need to increase the number of fields you're checking, you only have to change one part of your code :) The code b...
The Case statement wouldn't work in the way that you've written. You need to individually compare the values in each Field and set the value of 'Value' column. ``` SELECT CAST( CASE WHEN Field1 = AAA or BBB or CCC or DDD or EEE THEN Value1 = 0 ...
41,359,169
I have this in my view ``` 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => 'address.order_delivery_address_city' ], ``` which shows field like '1' or '2' or '3'... How to change it to be like this ``` if (address.order_deli...
2016/12/28
[ "https://Stackoverflow.com/questions/41359169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6903904/" ]
Try: ``` 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => function($model){ if($model->address->order_delivery_address_city == '1'){ return 'New-York'; ...
Try this: ``` [ 'attribute'=>'order_delivery_address_city', 'value'=>function($model){ return $model->order_delivery_address_city=='1' ? 'New-York':'Anything else'; } ], ```
41,359,169
I have this in my view ``` 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => 'address.order_delivery_address_city' ], ``` which shows field like '1' or '2' or '3'... How to change it to be like this ``` if (address.order_deli...
2016/12/28
[ "https://Stackoverflow.com/questions/41359169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6903904/" ]
Try: ``` 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => function($model){ if($model->address->order_delivery_address_city == '1'){ return 'New-York'; ...
It will work fine. Try this way. ```html 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => function($model){ $city_name = City::find()->select(['city_name'])->where(['city_id' => $model->order_del...
41,359,169
I have this in my view ``` 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => 'address.order_delivery_address_city' ], ``` which shows field like '1' or '2' or '3'... How to change it to be like this ``` if (address.order_deli...
2016/12/28
[ "https://Stackoverflow.com/questions/41359169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6903904/" ]
Try this: ``` [ 'attribute'=>'order_delivery_address_city', 'value'=>function($model){ return $model->order_delivery_address_city=='1' ? 'New-York':'Anything else'; } ], ```
It will work fine. Try this way. ```html 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'attribute' => 'order_delivery_address_city', 'value' => function($model){ $city_name = City::find()->select(['city_name'])->where(['city_id' => $model->order_del...
13,867,527
Hi i have a textbox which i am using as a counter to show how many characters are still allowed in another textbox. I have made it read only and its background transparent so that you cant tell it is a select box. The only problem is you can still click on it or tab to it. Is there a way to do this so it appears just l...
2012/12/13
[ "https://Stackoverflow.com/questions/13867527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1804234/" ]
If this is an [Asp.Net Web Control](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.aspx) set it's `Enabled` property to `false` ``` <asp:TextBox Enabled="false" /> ``` If it is HTML you can do this: ``` <input type="text" disabled /> ```
you need some style with css and some trick with Jquery. **CSS** ``` .readonly{ border:none; background:#aaa; }​ ``` **Jquery** ``` $(".readonly").focus(function(){ $(this).blur(); });​ ``` now just add `class="readonly"` to your textbox. ``` <asp:TextBox cssClass="readonly" /> ``` check d...
13,867,527
Hi i have a textbox which i am using as a counter to show how many characters are still allowed in another textbox. I have made it read only and its background transparent so that you cant tell it is a select box. The only problem is you can still click on it or tab to it. Is there a way to do this so it appears just l...
2012/12/13
[ "https://Stackoverflow.com/questions/13867527", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1804234/" ]
Just replace the `input` element with a `span` element or some other non-input element. This requires a trivial change to your JavaScript; you would assign to the `innerHTML` property of the element rather than `value`. Then the content will appear as normal text, and you can style it as desired.
you need some style with css and some trick with Jquery. **CSS** ``` .readonly{ border:none; background:#aaa; }​ ``` **Jquery** ``` $(".readonly").focus(function(){ $(this).blur(); });​ ``` now just add `class="readonly"` to your textbox. ``` <asp:TextBox cssClass="readonly" /> ``` check d...
30,228,157
I have a string given below. ``` AppCodename: Mozilla<br>Appversion: 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36<br> ``` I want to extract `Mozilla` from the above string. I use the following python program. ```py import re import jso...
2015/05/14
[ "https://Stackoverflow.com/questions/30228157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/316082/" ]
You may consider matching alot easier than replacing: ``` appcodename = re.search('AppCodename: (\w+)', message).group(1) print('appcode name {}'.format(appcodename)) ``` [**eval.in**](https://eval.in/356149)
Use the following `regex`: ``` # match anything after AppCodename: and before <br>. '.*AppCodename: ([\w]+?)<br>(.*)' ``` Output: ``` appcode name Mozilla ```
30,228,157
I have a string given below. ``` AppCodename: Mozilla<br>Appversion: 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36<br> ``` I want to extract `Mozilla` from the above string. I use the following python program. ```py import re import jso...
2015/05/14
[ "https://Stackoverflow.com/questions/30228157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/316082/" ]
The problem with your regex is twofold: 1. You are using a negated class `[^<br>]` which matches any character except `<`, `b`, `r` and `>` (their order is irrelevant). This does not cause any problem with this particular case, but it is not advised to use a negated class to prevent matches for specific sequence of ch...
Use the following `regex`: ``` # match anything after AppCodename: and before <br>. '.*AppCodename: ([\w]+?)<br>(.*)' ``` Output: ``` appcode name Mozilla ```
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
This is how you should be able to do it --- ``` /****this is the Css****/ .full { width:100%; height:auto; } /***end Css***/ <!--Now the html--!> <section> <img src="image/main.png" class="full"> </section> ``` Or you can go the simple way \*update you can do it like this -...
**HOW TO MAKE AN IMAGE RESIZE ITSELF IN A GMAIL** First, here is the HTML code we will be working with: ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
This is how you should be able to do it --- ``` /****this is the Css****/ .full { width:100%; height:auto; } /***end Css***/ <!--Now the html--!> <section> <img src="image/main.png" class="full"> </section> ``` Or you can go the simple way \*update you can do it like this -...
You need to be as archaic as possible to make HTML emails work across all clients. Inline styles and HTML 4 code should do the trick. Be warned though - max-width and max-height works in most clients, but this does NOT include Outlook 2007/2010/2013/365 which could well be over half of your target audience. Width wor...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
This is how you should be able to do it --- ``` /****this is the Css****/ .full { width:100%; height:auto; } /***end Css***/ <!--Now the html--!> <section> <img src="image/main.png" class="full"> </section> ``` Or you can go the simple way \*update you can do it like this -...
I was dealing with really big images without any kind of a container. I fixed it by using `max-width` to ensure the image wouldn't be too big. ``` <img src="" width="100%" style="max-width: 80vw; margin: 0; border: 0; padding: 0; display: block;" /> ``` Using both width and max-width ...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
This is the correct way to do it for a html email: ``` <img alt="" src="" width="100%" style="margin: 0; border: 0; padding: 0; display: block;"> ``` It will auto resize to match the width of the container element (which should always be a `<td>`). Note that on some clients (Outlook '07, '10 & '13 in particular), t...
**HOW TO MAKE AN IMAGE RESIZE ITSELF IN A GMAIL** First, here is the HTML code we will be working with: ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
You need to be as archaic as possible to make HTML emails work across all clients. Inline styles and HTML 4 code should do the trick. Be warned though - max-width and max-height works in most clients, but this does NOT include Outlook 2007/2010/2013/365 which could well be over half of your target audience. Width wor...
**HOW TO MAKE AN IMAGE RESIZE ITSELF IN A GMAIL** First, here is the HTML code we will be working with: ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" c...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
This is the correct way to do it for a html email: ``` <img alt="" src="" width="100%" style="margin: 0; border: 0; padding: 0; display: block;"> ``` It will auto resize to match the width of the container element (which should always be a `<td>`). Note that on some clients (Outlook '07, '10 & '13 in particular), t...
You need to be as archaic as possible to make HTML emails work across all clients. Inline styles and HTML 4 code should do the trick. Be warned though - max-width and max-height works in most clients, but this does NOT include Outlook 2007/2010/2013/365 which could well be over half of your target audience. Width wor...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
This is the correct way to do it for a html email: ``` <img alt="" src="" width="100%" style="margin: 0; border: 0; padding: 0; display: block;"> ``` It will auto resize to match the width of the container element (which should always be a `<td>`). Note that on some clients (Outlook '07, '10 & '13 in particular), t...
I was dealing with really big images without any kind of a container. I fixed it by using `max-width` to ensure the image wouldn't be too big. ``` <img src="" width="100%" style="max-width: 80vw; margin: 0; border: 0; padding: 0; display: block;" /> ``` Using both width and max-width ...
10,711,638
Are there ways to resize an image to fit thew window the image is being viewed in *WITHOUT* javascript and limited CSS? I ask because I have an email campaign that I send out that features a main image that I want as large as possible *without* scrolling. I have read ways to do this with javascript and jQuery but I d...
2012/05/22
[ "https://Stackoverflow.com/questions/10711638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/825757/" ]
You need to be as archaic as possible to make HTML emails work across all clients. Inline styles and HTML 4 code should do the trick. Be warned though - max-width and max-height works in most clients, but this does NOT include Outlook 2007/2010/2013/365 which could well be over half of your target audience. Width wor...
I was dealing with really big images without any kind of a container. I fixed it by using `max-width` to ensure the image wouldn't be too big. ``` <img src="" width="100%" style="max-width: 80vw; margin: 0; border: 0; padding: 0; display: block;" /> ``` Using both width and max-width ...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
SATA2 disks should be compatible with the Smart Array P400i that comes with your server (or any other SAS controller, for the matter), although probably not with stellar performance as others have noted. But keep in mind that not all SATA disks are suitable for use with RAID because of the infamous Time-Limited Error R...
Few times I had a problem with SATA drives inside Proliant servers where under Linux drives were detected as PATA. The solution was to turn off Auto mode for hdd in BIOS settings...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
Few times I had a problem with SATA drives inside Proliant servers where under Linux drives were detected as PATA. The solution was to turn off Auto mode for hdd in BIOS settings...
You can use SATA drives, but make sure they are "raid edition" drives intended for use in servers, and not drives intended for use in desktops. "Raid Edition" is Western Digital's name for it: other vendors each have their own name, but this is important; it's not just snake oil and you can run into problems if you get...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
SATA2 disks should be compatible with the Smart Array P400i that comes with your server (or any other SAS controller, for the matter), although probably not with stellar performance as others have noted. But keep in mind that not all SATA disks are suitable for use with RAID because of the infamous Time-Limited Error R...
You should be able use any SATA drive, but I'd consult the bare drive model numbers on HP's *[Hard Drive Model Number Matrix](http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=408482&docId=emr_na-c00305257&docLocale=en_US)* before you buy. That'll give you a strong indication of which drives will work well i...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
SATA drives always work when connected to a SAS controller, by definition. Minor correction - the SATA drives must be SATA2 or newer (3Gbps) -- from comment below.
You should be able use any SATA drive, but I'd consult the bare drive model numbers on HP's *[Hard Drive Model Number Matrix](http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=408482&docId=emr_na-c00305257&docLocale=en_US)* before you buy. That'll give you a strong indication of which drives will work well i...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
SATA2 disks should be compatible with the Smart Array P400i that comes with your server (or any other SAS controller, for the matter), although probably not with stellar performance as others have noted. But keep in mind that not all SATA disks are suitable for use with RAID because of the infamous Time-Limited Error R...
You can use SATA drives, but make sure they are "raid edition" drives intended for use in servers, and not drives intended for use in desktops. "Raid Edition" is Western Digital's name for it: other vendors each have their own name, but this is important; it's not just snake oil and you can run into problems if you get...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
I've never had any compatibility issues using SATA disks in HP hardware or with Smart Array controllers. A better solution may be to use midline SAS drives if you have the budget. They'll still run at 7200 RPM, but still have a SAS interface (and queuing, etc.). I'd recommend the [2.5" Seagate Constellation drives]...
Few times I had a problem with SATA drives inside Proliant servers where under Linux drives were detected as PATA. The solution was to turn off Auto mode for hdd in BIOS settings...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
SATA drives always work when connected to a SAS controller, by definition. Minor correction - the SATA drives must be SATA2 or newer (3Gbps) -- from comment below.
Few times I had a problem with SATA drives inside Proliant servers where under Linux drives were detected as PATA. The solution was to turn off Auto mode for hdd in BIOS settings...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
You should be able use any SATA drive, but I'd consult the bare drive model numbers on HP's *[Hard Drive Model Number Matrix](http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=408482&docId=emr_na-c00305257&docLocale=en_US)* before you buy. That'll give you a strong indication of which drives will work well i...
You can use SATA drives, but make sure they are "raid edition" drives intended for use in servers, and not drives intended for use in desktops. "Raid Edition" is Western Digital's name for it: other vendors each have their own name, but this is important; it's not just snake oil and you can run into problems if you get...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
SATA drives always work when connected to a SAS controller, by definition. Minor correction - the SATA drives must be SATA2 or newer (3Gbps) -- from comment below.
You can use SATA drives, but make sure they are "raid edition" drives intended for use in servers, and not drives intended for use in desktops. "Raid Edition" is Western Digital's name for it: other vendors each have their own name, but this is important; it's not just snake oil and you can run into problems if you get...
295,348
Does anyone know if I can install normal 2.5" SATA drives inside an HP DL360 G5 server? Right now it has 6 72GB SAS drives. I am looking for raw storage for my files SAS performance in not required.
2011/07/29
[ "https://serverfault.com/questions/295348", "https://serverfault.com", "https://serverfault.com/users/62376/" ]
I've never had any compatibility issues using SATA disks in HP hardware or with Smart Array controllers. A better solution may be to use midline SAS drives if you have the budget. They'll still run at 7200 RPM, but still have a SAS interface (and queuing, etc.). I'd recommend the [2.5" Seagate Constellation drives]...
You can use SATA drives, but make sure they are "raid edition" drives intended for use in servers, and not drives intended for use in desktops. "Raid Edition" is Western Digital's name for it: other vendors each have their own name, but this is important; it's not just snake oil and you can run into problems if you get...
32,897,206
For some reason I can't append the lines of my file to an empty list. "data1.txt" is just a file full of lines and lines of numbers. Calling this function returns an empty list. ``` filename = 'data1.txt' def get_data(filename): with open(filename, 'r') as qfile: data = qfile.read().splitlines(...
2015/10/01
[ "https://Stackoverflow.com/questions/32897206", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5399282/" ]
``` >>> def get_data(filename): ... with open(filename, 'r') as qfile: ... return map(float, qfile) ```
try with ``` filename = 'data1.txt' def get_data(filename): with open(filename, 'r') as qfile: float_list = [] for line in qfile: float_list.append(float(line)) return float_list ``` Note: you have a few problems in your code in terms of mixed indentation (spaces and tabs)
28,882,642
I have a Groovy and Gradle project in Eclipse Kepler with a few classes and a single Spock spec. I can run the Gradle build from the shell, and it works fine, including the Spock spec. I now wanted to try running the Spock spec in Eclipse, either in the debugger or not. When I run it, I see the following: ``` Conflic...
2015/03/05
[ "https://Stackoverflow.com/questions/28882642", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10508/" ]
When using kepler and gradle each one places its groovy module on the classpath. Lets not use kepler's one: ![enter image description here](https://i.stack.imgur.com/SDcrH.jpg)
I suggest to use the dependency below instead of `localGroovy()`, in order to avoid troubles with team members. Let the dependency management work to gradle ``` compile "org.codehaus.groovy:groovy-all:2.3.9" ``` **Edit 01** Check this link, in order to switch de groovy version <http://groovy.codehaus.org/Compiler+Sw...
45,111,690
How do I implement two interfaces in a class like so: ``` public class MainActivity extends Activity implements RewardedVideoAdListener implements GoogleApiClient.ConnectionCallbacks { } ``` If it's impossible, what's the simplest workaround?
2017/07/14
[ "https://Stackoverflow.com/questions/45111690", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8244559/" ]
Simple ``` public class MainActivity extends Activity implements RewardedVideoAdListener ,GoogleApiClient.ConnectionCallbacks { } ``` Use a comma instead of implements.
Yes, you can just separate the classes it implements with commas rather than multiple `implements` keywords ``` public class MainActivity extends Activity implements RewardedVideoAdListener, ConnectionCallbacks { } ```
28,083,587
In SQL select statement sometimes we need to use `order by 1` or `1 order by`. What is the main difference between them ?
2015/01/22
[ "https://Stackoverflow.com/questions/28083587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4290372/" ]
`ORDER BY 1` means that you want to order your results by the first field in the select. Instead of 1 you can write the first field name (or alias if there is one). in the `1 ORDER BY` the 1 is part of the previous clause in your SQL. That's not linked to the order by clause.
You can use `order by 1`. `1` indicates the column in your `select` clause - the first column. `select col1, col2 from t1 1 order by` throws a syntax error.
28,083,587
In SQL select statement sometimes we need to use `order by 1` or `1 order by`. What is the main difference between them ?
2015/01/22
[ "https://Stackoverflow.com/questions/28083587", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4290372/" ]
`ORDER BY 1` means that you want to order your results by the first field in the select. Instead of 1 you can write the first field name (or alias if there is one). in the `1 ORDER BY` the 1 is part of the previous clause in your SQL. That's not linked to the order by clause.
``` select id,name,emp_id from user where is_active!=0 and 1 order by emp_id ``` Here the line `and 1` can be completely ignored, because it is just a second condition, which is always true. The records will be ORDER BY the column `emp_id` ``` select id,name,emp_id from user where is_active!=0 and 1 order by 1 ``` ...
44,094,148
I have Android studio 2.3.2 installed. I have installed the sdk tools and platform tools manually because I'm in syria. I really need to download the sdk build tools from another server because iadl is missing. Is there is anyway​ to download this from external site? My sdk is 25.0.2 My OS Linux mint
2017/05/21
[ "https://Stackoverflow.com/questions/44094148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7653476/" ]
<https://androidsdkoffline.blogspot.de/p/android-sdk-build-tools.html> Don't know if those are official. I Hope so. Here is a description with the official sdkmanager <https://stackoverflow.com/a/19416222/2145395> ``` sdkmanager "build-tools" ``` does install the tools package.
Here is a list of all files for android sdk that you can download it without any error: <https://mirrors.cloud.tencent.com/AndroidSDK/>
29,036,112
In my form, I programmatically set some fields as required depending on some conditions. I use this code : ``` if (condition) $('#my_field']).attr('data-parsley-required', 'true'); ``` And it works fine. But now I want to display a "required" icon such as red \* when thoses fields turn required. I found some "parsl...
2015/03/13
[ "https://Stackoverflow.com/questions/29036112", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4319788/" ]
You need to explicitly provide the `sqlite-jdbc-3.7.2.jar` file in your classpath while compiling and running your classes using the `-cp` option. The java and javac commands will only look for .class files in the classpath and not jars. Try this : `javac -cp <path_to_jar/sqlite-jdbc-3.7.2.jar>;. <your_class_name>.j...
I have found the answer to fix this. compile the script as normal ``` javac Query.java ``` Then specify the driver when executing ``` java -classpath ".;sqlite-jdbc-3.7.2.jar" Query ``` And it will run fine
34,858,024
Suppose I have the following code: ``` class proba { boolean fun(Number n) { return n == null || 0 == n; } } ``` This compiles without problem using openjdk 7 (debian wheezy), but fails to compile when using openjdk 8, with the following error (even when using -source 7): ``` proba.java:3: error: in...
2016/01/18
[ "https://Stackoverflow.com/questions/34858024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708128/" ]
This is actually a bugfix (see [JDK-8013357](https://bugs.openjdk.java.net/browse/JDK-8013357)): the Java-7 behavior contradicted the [JLS §15.21](https://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.21): > > The equality operators may be used to compare two operands that are convertible (§5.1.8) to n...
If you want to compare Number and int - call Number.intValue() and then compare.
8,076,635
Hi I've got a DIV that holds a sprite that has around 40 emoticons on it. Its 200px \* 100px and each emoticons is around 25\*25px. I want to be able to use a mouse over to explain each emoticon - eg: ':) smile'. ![this one](https://i.stack.imgur.com/DygVC.png) I've been advised to use this code for co-ordinates: `...
2011/11/10
[ "https://Stackoverflow.com/questions/8076635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/880413/" ]
Change your `if` condition to: ``` if(x>=0 && x<25 && y>=0 && y<25) ``` Also see my [jsfiddle](http://jsfiddle.net/scessor/kfr7Y/4/).
I would just append empty `<div>` elements to the container, with absolute position, each with the proper title according to mapping you have to define. Code will explain it better: ``` var iconWidth = 25; var iconHeight = 25; var toolTips = { "0,0": "big grin", "0,25": "cool", "25,0": "wink" }; var conta...
8,076,635
Hi I've got a DIV that holds a sprite that has around 40 emoticons on it. Its 200px \* 100px and each emoticons is around 25\*25px. I want to be able to use a mouse over to explain each emoticon - eg: ':) smile'. ![this one](https://i.stack.imgur.com/DygVC.png) I've been advised to use this code for co-ordinates: `...
2011/11/10
[ "https://Stackoverflow.com/questions/8076635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/880413/" ]
Change your `if` condition to: ``` if(x>=0 && x<25 && y>=0 && y<25) ``` Also see my [jsfiddle](http://jsfiddle.net/scessor/kfr7Y/4/).
No javascript required - Just use the title attribute: ``` <img src="emoticons/smile.png" title=":) smile" /> ```
8,076,635
Hi I've got a DIV that holds a sprite that has around 40 emoticons on it. Its 200px \* 100px and each emoticons is around 25\*25px. I want to be able to use a mouse over to explain each emoticon - eg: ':) smile'. ![this one](https://i.stack.imgur.com/DygVC.png) I've been advised to use this code for co-ordinates: `...
2011/11/10
[ "https://Stackoverflow.com/questions/8076635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/880413/" ]
I would just append empty `<div>` elements to the container, with absolute position, each with the proper title according to mapping you have to define. Code will explain it better: ``` var iconWidth = 25; var iconHeight = 25; var toolTips = { "0,0": "big grin", "0,25": "cool", "25,0": "wink" }; var conta...
No javascript required - Just use the title attribute: ``` <img src="emoticons/smile.png" title=":) smile" /> ```
39,666,859
I'm trying run a script if URL doesn't contain specific string. Here is what i have so far: ``` var ignorePages = ['page1','page2','page3']; if (window.location.href.indexOf($.inArray(ignorePages)) === -1) { // do something } ``` But this is not working. I would like to test if the string is found in array and ...
2016/09/23
[ "https://Stackoverflow.com/questions/39666859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1764663/" ]
AsyncStorage return a promise. you can use .then for get value exemple: ``` AsyncStorage.getItem('key').then((keyValue) => { console.log(keyValue) //Display key value }, (error) => { console.log(error) //Display error }); ```
Looking [at the docs](https://facebook.github.io/react-native/docs/asyncstorage.html) you should be able to do this reliably to retrieve data from your async storage object.: ``` try { const value = await AsyncStorage.getItem('@MySuperStore:key'); if (value !== null){ // We have data!! console.log(value._6...
454,456
I'm quite new to ubuntu. I installed it sucessfully on a Laptop, and a regular PC. I am now trying to install Ubuntu 12.04 on a hp xw9300 Workstation. Hardware specification can be found [here](http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDispl...
2014/04/24
[ "https://askubuntu.com/questions/454456", "https://askubuntu.com", "https://askubuntu.com/users/273625/" ]
I'd use `crontab` to schedule a command. To do that, run `crontab -e` and add something like the following like: ``` 0 8 * * Mon bash -c 'cd /path/to/dir; mv "$(ls -t expdp*.dump | head -1)" /another/dir/' ``` That will look for the latest file that matches `expdp*.dump` in `/path/to/dir`and move it to `/another/di...
You could use something like this (I have no idea if this is the best way to do it as I just put something together and it's working). ``` #!/bin/bash cd /source/directory/ cp `ls -1t | head -1` /destination/directory/ ```
454,456
I'm quite new to ubuntu. I installed it sucessfully on a Laptop, and a regular PC. I am now trying to install Ubuntu 12.04 on a hp xw9300 Workstation. Hardware specification can be found [here](http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDispl...
2014/04/24
[ "https://askubuntu.com/questions/454456", "https://askubuntu.com", "https://askubuntu.com/users/273625/" ]
Create a script with something like this; ``` #!/bin/sh mv "$(ls -t <name of your file> | head -1)" /directory/it/has/to/go find /directory/it/has/to/go -type f -mtime 90 -exec rm {} + ``` Now we have to create a cronjob so this script runs every week. ``` $: crontab -e ``` Add this line: ``` 0 0 * * 0 yourscrip...
I'd use `crontab` to schedule a command. To do that, run `crontab -e` and add something like the following like: ``` 0 8 * * Mon bash -c 'cd /path/to/dir; mv "$(ls -t expdp*.dump | head -1)" /another/dir/' ``` That will look for the latest file that matches `expdp*.dump` in `/path/to/dir`and move it to `/another/di...
454,456
I'm quite new to ubuntu. I installed it sucessfully on a Laptop, and a regular PC. I am now trying to install Ubuntu 12.04 on a hp xw9300 Workstation. Hardware specification can be found [here](http://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDispl...
2014/04/24
[ "https://askubuntu.com/questions/454456", "https://askubuntu.com", "https://askubuntu.com/users/273625/" ]
Create a script with something like this; ``` #!/bin/sh mv "$(ls -t <name of your file> | head -1)" /directory/it/has/to/go find /directory/it/has/to/go -type f -mtime 90 -exec rm {} + ``` Now we have to create a cronjob so this script runs every week. ``` $: crontab -e ``` Add this line: ``` 0 0 * * 0 yourscrip...
You could use something like this (I have no idea if this is the best way to do it as I just put something together and it's working). ``` #!/bin/bash cd /source/directory/ cp `ls -1t | head -1` /destination/directory/ ```
88,371
I am a GIS Analyst with one years experience and no idea where to begin with professional development. I'm competent with the ArcGIS platform, but I am not too familiar with its administration processes. I can work with basic Python programming. I'm taking a course in SQL next week, and I'm pretty terrible with web ser...
2014/03/03
[ "https://gis.stackexchange.com/questions/88371", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/24579/" ]
You've really kind of answered your own question here, but I'll elaborate for the purposes of canonism. I'll provide you with some ideas based off of specific skills that I often see requested at the [GIS jobs clearinghouse](http://gjc.org). You can pretty much go two separate routes here (or both simultaneously) and b...
I honestly believe that GIS is a fast growing and limitless field. Conor has answered pretty much most of what I would say. I think a programming/scripting/database/analysis background will get you far. But, ask yourself what it is that you want to be doing. Is there a field that interests you other than GIS? So many...
10,861,759
I need to load database content according to the following scheme into the variable `data`. ``` var data = { "62": { sku: "62", section: "bodyImage", img: "images/diy-images/config-images/62.png", label: "plain red", price: "100" }, "63": { sku: "63", ...
2012/06/02
[ "https://Stackoverflow.com/questions/10861759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/438091/" ]
``` var data = {}; // data variable for future use $.ajax({ url: '', data: '', dataType: 'json', success: function(rows) { $.each(rows, function(i, val) { var id = val.sku, section = val.section, img = val.img, label = val.label, price = val.price; }); // if yo...
You can address the properties by name: ``` for (var i in rows) { var row = rows[i]; var id = row.sku; // or var id = i; var section = row.section; var img = row.img; var label = row.label; var price = row.price; ... } ```
10,861,759
I need to load database content according to the following scheme into the variable `data`. ``` var data = { "62": { sku: "62", section: "bodyImage", img: "images/diy-images/config-images/62.png", label: "plain red", price: "100" }, "63": { sku: "63", ...
2012/06/02
[ "https://Stackoverflow.com/questions/10861759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/438091/" ]
You can get json object value by '.' operator ``` var data = (function() { $.ajax({ url: 'get_data.php', data: "", dataType: 'json', success: function(rows) { for (var i in rows) { var id = row.sku; var section = row.section; ...
You can address the properties by name: ``` for (var i in rows) { var row = rows[i]; var id = row.sku; // or var id = i; var section = row.section; var img = row.img; var label = row.label; var price = row.price; ... } ```
43,058,665
I have 2 queries to get a *sum* and I would like to combine them into a single select query if possible noting they have different field names in the *where* clause. ``` SELECT ISNULL(SUM(Stocking_Count), 0) FROM Fish_Stocking WHERE fish_id = 'B2017-1' AND tank_id = 'H A01' AND Date_Assigned = '2017-02-02' AN...
2017/03/28
[ "https://Stackoverflow.com/questions/43058665", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2063006/" ]
You need to define the functions as properties of your created object like this: ``` function Coin(intValue){ this.intCents = null; //The property this.setCents = function(intValue) { //Trying access the intCents property from within this method /// <summary>Sets the intCents property for this object...
This is probably a duplicate of [*How does the “this” keyword work?*](https://stackoverflow.com/questions/3127429/how-does-the-this-keyword-work) A function's *this* is usually set by the call (*bind* and arrow functions are exceptions, but they aren't relevant here) and is scoped to the current execution context (exc...
20,062,096
I have an asp:file upload which I allowed users to select multiple files, I want it that if the user clicks on browse and pressed ok, I want the users to be able to preview the images selected (just like facebook image upload) how can i do this?
2013/11/19
[ "https://Stackoverflow.com/questions/20062096", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2811018/" ]
![I thing this is helpful you](https://i.stack.imgur.com/whjyB.png) <http://www.aspforums.net/Threads/165544/Display-Image-Preview-without-saving-file-physically-after-upload-in-ASPNet/> also refer this link...........
``` <asp:FileUpload ID="FileUpload1" runat="server" style="top: 256px; left: 533px; position: absolute; height: 23px; width: 217px" ForeColor="White" /> <asp:Button ID="btnset" runat="server" Font-Bold="False" Font-Names="Times New Roman" Font-Size="Medium" style="top: 309px; left: 605px; position: absolute; height: ...
9,504,578
I am trying to write a function that can remove elemnts from the DOM, but I am facing a problem I can't solve. The code looks like this: ``` function closeMessage(message) { var height = $(message).outerHeight(); $(message).fadeTo("fast", 0.01).animate({marginTop: -height, marginBottom: 0}, function(){ ...
2012/02/29
[ "https://Stackoverflow.com/questions/9504578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1144247/" ]
The first problem is that `outerHeight` does not take into account margins without passing `true` to it: ``` var height = $(message).outerHeight(true); $(message).fadeTo("fast", 0.01).animate({marginTop: -height, marginBottom: 0}, function(){ $(message).remove(); }); ``` The second problem is that by CSS definit...
jQuery animate function uses a default easing function called swing. Try changing your code to use the 'linear' easing function. ``` $(message).fadeTo("fast", 0.01).animate({marginTop: -height, marginBottom: 0},'linear', function(){ $(message).remove(); }); ``` Check out the documentation [here](http://...
49,714,714
Hello I have prepare jQuery validation for my Gravity Forms registration form to prevent submit but if my condition is match I want to submit my form but Javascript is not work as expected code is ``` jQuery("#gform_1").submit(function(e){ if(jQuery("#input_1_1_3").val()=='' || jQuery("#input_1_1_6").val()=='' ||...
2018/04/08
[ "https://Stackoverflow.com/questions/49714714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2490546/" ]
On your form submit button , you have this code on click ``` onclick='if(window["gf_submitting_1"]){return false;} window["gf_submitting_1"]=true; ' ``` This codes makes your submit button works only once . Try removing it and it should work
Gravity forms has an inherent validation options. for each field, on the form builder page, you can choose to mark it as required and create a custom error for the field. when embedding the form on the WordPress page you can choose that the submission will be done with Ajax so the page will not be reloaded on submitti...
49,714,714
Hello I have prepare jQuery validation for my Gravity Forms registration form to prevent submit but if my condition is match I want to submit my form but Javascript is not work as expected code is ``` jQuery("#gform_1").submit(function(e){ if(jQuery("#input_1_1_3").val()=='' || jQuery("#input_1_1_6").val()=='' ||...
2018/04/08
[ "https://Stackoverflow.com/questions/49714714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2490546/" ]
On your form submit button , you have this code on click ``` onclick='if(window["gf_submitting_1"]){return false;} window["gf_submitting_1"]=true; ' ``` This codes makes your submit button works only once . Try removing it and it should work
Custom jQuery not executing with gravity forms? Try putting it inside ``` jQuery(document).on('gform_post_render', function(){ // your js here }); ``` Read the documentation here <https://docs.gravityforms.com/gform_post_render/> From the docs: > > "This jQuery hook is fired every time the form is rendered t...
49,714,714
Hello I have prepare jQuery validation for my Gravity Forms registration form to prevent submit but if my condition is match I want to submit my form but Javascript is not work as expected code is ``` jQuery("#gform_1").submit(function(e){ if(jQuery("#input_1_1_3").val()=='' || jQuery("#input_1_1_6").val()=='' ||...
2018/04/08
[ "https://Stackoverflow.com/questions/49714714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2490546/" ]
Custom jQuery not executing with gravity forms? Try putting it inside ``` jQuery(document).on('gform_post_render', function(){ // your js here }); ``` Read the documentation here <https://docs.gravityforms.com/gform_post_render/> From the docs: > > "This jQuery hook is fired every time the form is rendered t...
Gravity forms has an inherent validation options. for each field, on the form builder page, you can choose to mark it as required and create a custom error for the field. when embedding the form on the WordPress page you can choose that the submission will be done with Ajax so the page will not be reloaded on submitti...
10,733,529
I'm using NHibernate to map my objects to the DB. One of these object is called "Attachment". its ID is generated using the "newsequentialid" in MS SQL server 2008 (as the Default Value or Binding) to create the Guid for the id column. Now what i want is that when a new Attachment is inserted then NHibernate will allo...
2012/05/24
[ "https://Stackoverflow.com/questions/10733529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/733143/" ]
Typically, you define `-l` options to the linker using LDLIBS, and `-L` flags using LDFLAGS. Edit the Makefile and add the appropriate options. ``` CPPFLAGS += -I/usr/local/ssl/include LDFLAGS += -L/usr/local/ssl/lib LDLIBS += -lcrypto -lm ```
These are compiler errors, you haven't got to the linking stage yet. I would guess that, when compiling tgl\_frbsenddata.ec, the compiler doesn't know what a DES\_cblock is or a DES\_key\_schedule. At the point where the compiler hits the lines with the errors in, I suspect des.h has not yet been included whatever you...
2,427,848
[![enter image description here](https://i.stack.imgur.com/Ivlaz.png)](https://i.stack.imgur.com/Ivlaz.png) A GRE question asks whether the area of parallelogram can be found only using the information provided above. Area of parallelogram = base x height If we cut off one end to form a triangle and place it on th...
2017/09/13
[ "https://math.stackexchange.com/questions/2427848", "https://math.stackexchange.com", "https://math.stackexchange.com/users/198174/" ]
I already discussed this point several times (see [this answer](https://math.stackexchange.com/questions/2379549/proof-of-prop-i-27-in-euclids-elements/2380863#2380863), for instance): [Euclid's exterior angle theorem](https://en.wikipedia.org/wiki/Exterior_angle_theorem) is perfectly valid in [absolute geometry](https...
I understand what you are after and I am regretfully not conversant enough with the foundations of geometry to provide an rigorous answer. Hoping not to waste anybody's time, I wonder though if the following elementary line of reasoning could be re-phrased to meet your requirements: I apologise in advance if it contai...
15,053,069
is there any chance to make the font in Netbeans 7.3 under ubuntu 12 to look better??? take a look on how the same code looks in eclipse and netbeans while both IDEs configured with the same editor fonts settings (monospaced), i tried with other fonts also. it seams like netbeans rendering the fonts completely in a d...
2013/02/24
[ "https://Stackoverflow.com/questions/15053069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1478248/" ]
The fonts will look different regardless of the changes you make, as Eclipse is based upon SWT, and NetBeans on Swing; the two UI tool kits use different font rendering engines. Some fonts look better than others in Swing. My preference in Swing (and nearly everywhere I use mono-spaced fonts, really) is [Ubuntu Mono](...
Font rendering is different because they use different UI libraries. Netbeans uses swing. Eclipse uses swt. You can patch the jdk to get swing to respect your font rendering settings: <https://gist.github.com/aleksandara/2963640> PPA for ubuntu with patch applied: <https://launchpad.net/~no1wantdthisname/+archive/ope...
318,385
I'm trying to generate a gpg key ``` $ gpg --full-gen-key ``` but eventurally I get an error ``` gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory ``` I'm on Arch Linux. ``` $ gpg --version gpg (GnuPG) 2.1.15 libgcrypt 1.7.3 Copyright (C) 2016 Free Software Fou...
2016/10/22
[ "https://unix.stackexchange.com/questions/318385", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/198038/" ]
Did you delete the /home/me123/.gnupg directory and then it was recreated by gpg? If so, that's likely what is confusing the agent. Either restart the agent (`gpgconf --kill gpg-agent`) or, more drastically, reboot your machine and try again.
It would appear that the directory ~/.gnupg/private-keys-v1.d (under some circumstances) is not being created or, is created with the wrong permissions. ``` # mkdir -p ~/.gnupg/private-keys-v1.d # chmod 700 ~/.gnupg/private-keys-v1.d ``` Fixed it for me.
318,385
I'm trying to generate a gpg key ``` $ gpg --full-gen-key ``` but eventurally I get an error ``` gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory ``` I'm on Arch Linux. ``` $ gpg --version gpg (GnuPG) 2.1.15 libgcrypt 1.7.3 Copyright (C) 2016 Free Software Fou...
2016/10/22
[ "https://unix.stackexchange.com/questions/318385", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/198038/" ]
Did you delete the /home/me123/.gnupg directory and then it was recreated by gpg? If so, that's likely what is confusing the agent. Either restart the agent (`gpgconf --kill gpg-agent`) or, more drastically, reboot your machine and try again.
Just want to add to this old thread, in case someone comes here looking for answers, that I had a similar issue on macOS (Big Sur 11.2). After deleting the `.gnupg` directory I had the same error as OP. The `~/.gnupg/private-keys-v1.d` directory was recreated by GnuPG and had the correct permissions. Also, killing `gpg...
318,385
I'm trying to generate a gpg key ``` $ gpg --full-gen-key ``` but eventurally I get an error ``` gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory ``` I'm on Arch Linux. ``` $ gpg --version gpg (GnuPG) 2.1.15 libgcrypt 1.7.3 Copyright (C) 2016 Free Software Fou...
2016/10/22
[ "https://unix.stackexchange.com/questions/318385", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/198038/" ]
Did you delete the /home/me123/.gnupg directory and then it was recreated by gpg? If so, that's likely what is confusing the agent. Either restart the agent (`gpgconf --kill gpg-agent`) or, more drastically, reboot your machine and try again.
[Crossposting from a [related question](https://unix.stackexchange.com/questions/647022/gpg-key-is-not-getting-generated-agent-genkey-in-gpg-is-looking-for-some-file/680853).] In [this issue](https://github.com/MISP/MISP/issues/3702) this was called expected behaviour with the reason being a lack of ownership of the t...
318,385
I'm trying to generate a gpg key ``` $ gpg --full-gen-key ``` but eventurally I get an error ``` gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory ``` I'm on Arch Linux. ``` $ gpg --version gpg (GnuPG) 2.1.15 libgcrypt 1.7.3 Copyright (C) 2016 Free Software Fou...
2016/10/22
[ "https://unix.stackexchange.com/questions/318385", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/198038/" ]
It would appear that the directory ~/.gnupg/private-keys-v1.d (under some circumstances) is not being created or, is created with the wrong permissions. ``` # mkdir -p ~/.gnupg/private-keys-v1.d # chmod 700 ~/.gnupg/private-keys-v1.d ``` Fixed it for me.
Just want to add to this old thread, in case someone comes here looking for answers, that I had a similar issue on macOS (Big Sur 11.2). After deleting the `.gnupg` directory I had the same error as OP. The `~/.gnupg/private-keys-v1.d` directory was recreated by GnuPG and had the correct permissions. Also, killing `gpg...
318,385
I'm trying to generate a gpg key ``` $ gpg --full-gen-key ``` but eventurally I get an error ``` gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory ``` I'm on Arch Linux. ``` $ gpg --version gpg (GnuPG) 2.1.15 libgcrypt 1.7.3 Copyright (C) 2016 Free Software Fou...
2016/10/22
[ "https://unix.stackexchange.com/questions/318385", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/198038/" ]
It would appear that the directory ~/.gnupg/private-keys-v1.d (under some circumstances) is not being created or, is created with the wrong permissions. ``` # mkdir -p ~/.gnupg/private-keys-v1.d # chmod 700 ~/.gnupg/private-keys-v1.d ``` Fixed it for me.
[Crossposting from a [related question](https://unix.stackexchange.com/questions/647022/gpg-key-is-not-getting-generated-agent-genkey-in-gpg-is-looking-for-some-file/680853).] In [this issue](https://github.com/MISP/MISP/issues/3702) this was called expected behaviour with the reason being a lack of ownership of the t...
318,385
I'm trying to generate a gpg key ``` $ gpg --full-gen-key ``` but eventurally I get an error ``` gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory ``` I'm on Arch Linux. ``` $ gpg --version gpg (GnuPG) 2.1.15 libgcrypt 1.7.3 Copyright (C) 2016 Free Software Fou...
2016/10/22
[ "https://unix.stackexchange.com/questions/318385", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/198038/" ]
Just want to add to this old thread, in case someone comes here looking for answers, that I had a similar issue on macOS (Big Sur 11.2). After deleting the `.gnupg` directory I had the same error as OP. The `~/.gnupg/private-keys-v1.d` directory was recreated by GnuPG and had the correct permissions. Also, killing `gpg...
[Crossposting from a [related question](https://unix.stackexchange.com/questions/647022/gpg-key-is-not-getting-generated-agent-genkey-in-gpg-is-looking-for-some-file/680853).] In [this issue](https://github.com/MISP/MISP/issues/3702) this was called expected behaviour with the reason being a lack of ownership of the t...
8,995,078
Could someone please tell any resources or links to learn usage of Mercurial with Visual FoxPro 9.0?
2012/01/24
[ "https://Stackoverflow.com/questions/8995078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1152568/" ]
Ganapathy, The white paper from my *VFP Version Control with Mercurial* session at Southwest Fox 2011 is now available for download as a PDF from the developers page of my website at <http://www.ita-software.com/foxpage.aspx>. The direct link to the paper is <http://bit.ly/IgXzhM>. This is introductory material intend...
Rick Borup (http://www.ita-software.com/foxpage.aspx) presented a pre-conference session on this topic at Southwest Fox 2011. He wrote a terrific 59-page paper for it. I don't know whether he has published that paper elsewhere. Tamar
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
The project and Keystore file should have the same drive otherwise this error will arise.
First change path of past version to another drive: [![enter image description here](https://i.stack.imgur.com/llvhO.jpg)](https://i.stack.imgur.com/llvhO.jpg) And key store path and destination folder must be in same folder: [![enter image description here](https://i.stack.imgur.com/47MhG.jpg)](https://i.stack.imgu...
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
Same here. Looks like it does not like to build to another drive letter. i.e. Key store path is on D: and destination folder on E: and I get the message 'other' has different root. Note that the file seems to be produced on E: anyway. When I change destination folder to D: it's all ok.
The project and Keystore file should have the same drive otherwise this error will arise.
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
This works for `APK` but for `AAB` You must have the **keystore** file and generated **APK FOLDER** on the same drive.
For generating .aab bundle file, your bundle file destination must be in the same drive as where your project is located. For .aab files the key store location is not relevant. Ex: if your project is somewhere in drive "D:..." then your bundle file location must be somewhere in drive "D:...".
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
Same here. Looks like it does not like to build to another drive letter. i.e. Key store path is on D: and destination folder on E: and I get the message 'other' has different root. Note that the file seems to be produced on E: anyway. When I change destination folder to D: it's all ok.
This works for `APK` but for `AAB` You must have the **keystore** file and generated **APK FOLDER** on the same drive.
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
Same here. Looks like it does not like to build to another drive letter. i.e. Key store path is on D: and destination folder on E: and I get the message 'other' has different root. Note that the file seems to be produced on E: anyway. When I change destination folder to D: it's all ok.
I had previously, temporarily had my project on drive E, I moved it back to drive C, got the **'other' has different root** message. Solution for me: deleted first "intermediates" folder [did not work] then deleted both .gradle and .idea folders Problem solved :)
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
Same here. Looks like it does not like to build to another drive letter. i.e. Key store path is on D: and destination folder on E: and I get the message 'other' has different root. Note that the file seems to be produced on E: anyway. When I change destination folder to D: it's all ok.
First change path of past version to another drive: [![enter image description here](https://i.stack.imgur.com/llvhO.jpg)](https://i.stack.imgur.com/llvhO.jpg) And key store path and destination folder must be in same folder: [![enter image description here](https://i.stack.imgur.com/47MhG.jpg)](https://i.stack.imgu...
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
For generating .aab bundle file, your bundle file destination must be in the same drive as where your project is located. For .aab files the key store location is not relevant. Ex: if your project is somewhere in drive "D:..." then your bundle file location must be somewhere in drive "D:...".
I had previously, temporarily had my project on drive E, I moved it back to drive C, got the **'other' has different root** message. Solution for me: deleted first "intermediates" folder [did not work] then deleted both .gradle and .idea folders Problem solved :)
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
This works for `APK` but for `AAB` You must have the **keystore** file and generated **APK FOLDER** on the same drive.
I had previously, temporarily had my project on drive E, I moved it back to drive C, got the **'other' has different root** message. Solution for me: deleted first "intermediates" folder [did not work] then deleted both .gradle and .idea folders Problem solved :)
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
This works for `APK` but for `AAB` You must have the **keystore** file and generated **APK FOLDER** on the same drive.
The project and Keystore file should have the same drive otherwise this error will arise.
62,089,862
The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. \* What went wrong: Execution failed for task ':app:signReleaseBundle'. > > A failure occurred while executing com.android.build.gradle.internal.tasks....
2020/05/29
[ "https://Stackoverflow.com/questions/62089862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5584309/" ]
This works for `APK` but for `AAB` You must have the **keystore** file and generated **APK FOLDER** on the same drive.
First change path of past version to another drive: [![enter image description here](https://i.stack.imgur.com/llvhO.jpg)](https://i.stack.imgur.com/llvhO.jpg) And key store path and destination folder must be in same folder: [![enter image description here](https://i.stack.imgur.com/47MhG.jpg)](https://i.stack.imgu...
68,234,214
I built a bot in Python that scrapes **eBay product listing links** from HTML. Every link is pointing to the *product page*. However, the first one is pointing to an **error page** like: ``` https://www.ebay.com/itm/01920391?epid=26039819083&_trkparms=ispr%3D1&hash=item3b542eae7a:g:FQkAAOSwK21gKvEZ&amdata=enc%3AAQAFA...
2021/07/03
[ "https://Stackoverflow.com/questions/68234214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16368343/" ]
If you want to skip first link you can use list slicing with `[1:]`: ```py ... for a in listings[1:]: # <--- ignore first link link = a["href"] if link.startswith("https://www.ebay.com/itm/"): page = browser.get(link) ```
cut out that link using the if statement ``` import time import requests from bs4 import BeautifulSoup from selenium import webdriver browser = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe') #error = browser.find_element_by_xpath("//*[@id='wrapper']/div[1]/div/div/p") url = "https://www.ebay.com/sch/i....
68,234,214
I built a bot in Python that scrapes **eBay product listing links** from HTML. Every link is pointing to the *product page*. However, the first one is pointing to an **error page** like: ``` https://www.ebay.com/itm/01920391?epid=26039819083&_trkparms=ispr%3D1&hash=item3b542eae7a:g:FQkAAOSwK21gKvEZ&amdata=enc%3AAQAFA...
2021/07/03
[ "https://Stackoverflow.com/questions/68234214", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16368343/" ]
I would have gone similar way to @SIM and relied on faster css filtering and using css classes (generally 2nd fastest way of matching on nodes in css after id). ``` links = [i['href'] for i in soup.select('#srp-river-results .s-item__link')] ``` The introduction of the leading id limits results to the actual listing...
cut out that link using the if statement ``` import time import requests from bs4 import BeautifulSoup from selenium import webdriver browser = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe') #error = browser.find_element_by_xpath("//*[@id='wrapper']/div[1]/div/div/p") url = "https://www.ebay.com/sch/i....
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
If the question is really to help them avoid getting infected again, and it is a computer for the kids, I recommend you to do some research on deploying [Windows SteadyState](http://www.microsoft.com/windows/products/winfamily/sharedaccess/default.mspx) for that particular computer.
One of my standard answers to this kind of question is to use [OpenDNS](http://en.wikipedia.org/wiki/OpenDNS), because it allows users to block sites that are known to host malicious software from the router so that it keeps all connected PCs clean. If they're the kind of users who won't renew [AV software](http://en....
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
Run the web browser in an isolated environment (e.g. with **[Sandboxie](http://www.sandboxie.com/)**) and be done with malware attacks, 'accidental' toolbar installations, and the like. PS: In the registered version you can force a program to run always inside the sandbox. If system memory is not a scarce commodity, y...
The top rated advice here is all good, but there is no perfect solution. Not yet covered: I would emphasize training above all else. Most spyware / adware is invited into the computer. Whatever your computer / OS & your religious beliefs about them, your web browser is your weakest point in the system. Surfing the web...
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
If the question is really to help them avoid getting infected again, and it is a computer for the kids, I recommend you to do some research on deploying [Windows SteadyState](http://www.microsoft.com/windows/products/winfamily/sharedaccess/default.mspx) for that particular computer.
The top rated advice here is all good, but there is no perfect solution. Not yet covered: I would emphasize training above all else. Most spyware / adware is invited into the computer. Whatever your computer / OS & your religious beliefs about them, your web browser is your weakest point in the system. Surfing the web...
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
Best solution I found: gave my kids a Mac mini with parental controls on... No virus problems, they can't really install any crapware even if their friends point them to some. Also, game choice is limited, which is a big plus. With that, they spend much more time exploring the web, experimenting with making music or vi...
Ask your friend to browse/ do his work in a virtual machine (VM), and prepare a backup image so that whenever that VM is infected, you can always delete it and restore from the backup image. Or, maybe you can use [Sanboxie](http://www.sandboxie.com/) to [isolate the browsing and BitTorrent software](http://www.sandbox...
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
Here is a simple answer: > > Avoid using the Internet. > > > And another simple answer: > > Don't install *anything*. > > >
Exactly what do your friend and his family use the computer for? It might be that they can do just fine with Ubuntu or some other user-friendly Linux distro, and that would drastically cut down on these problems. There are mail clients, web browsers, and office suites suitable for home use included in Ubuntu. It would...
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
* Have non-tech users accounts be non-admin * Teach safe browsing habits * Never download anything that isn't from an 'official' source * Use Firefox/Chrome/Safari/Opera instead of Internet Explorer * Run malware scans regularly * Set Windows to update automatically * Install virus protection and scan automatically/reg...
Here is a simple answer: > > Avoid using the Internet. > > > And another simple answer: > > Don't install *anything*. > > >
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
* Have non-tech users accounts be non-admin * Teach safe browsing habits * Never download anything that isn't from an 'official' source * Use Firefox/Chrome/Safari/Opera instead of Internet Explorer * Run malware scans regularly * Set Windows to update automatically * Install virus protection and scan automatically/reg...
Ask your friend to browse/ do his work in a virtual machine (VM), and prepare a backup image so that whenever that VM is infected, you can always delete it and restore from the backup image. Or, maybe you can use [Sanboxie](http://www.sandboxie.com/) to [isolate the browsing and BitTorrent software](http://www.sandbox...
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
* Have non-tech users accounts be non-admin * Teach safe browsing habits * Never download anything that isn't from an 'official' source * Use Firefox/Chrome/Safari/Opera instead of Internet Explorer * Run malware scans regularly * Set Windows to update automatically * Install virus protection and scan automatically/reg...
Particularly if the main OS is Windows XP, I would recommend setting up a virtual machine ([VirtualBox](http://en.wikipedia.org/wiki/VirtualBox) is free and good) and putting a Linux distribution inside the VM. Do web browsing from Linux and run other programs from Windows. You could also set up a dual boot - [Wubi](h...
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
Ask your friend to browse/ do his work in a virtual machine (VM), and prepare a backup image so that whenever that VM is infected, you can always delete it and restore from the backup image. Or, maybe you can use [Sanboxie](http://www.sandboxie.com/) to [isolate the browsing and BitTorrent software](http://www.sandbox...
My issue is about having the kids grow up learning. SteadyState styled solutions, which so far sound like the most attractive, will either A) be a limitation to what the kids can learn, or B) will be worked around at some point by the kids. Either way, you're limiting the kids' ability to be become good computer users....
43,461
I recently reinstalled the OS (Windows XP Home) on a friend's heavily spyware/adware infected machine. It appears as though his kids (7 and 11 years I believe) were visiting sites that offered downloads for search bars, screensavers, and "cute" cartoony animations that anyone with safety in mind would never download. ...
2009/09/18
[ "https://superuser.com/questions/43461", "https://superuser.com", "https://superuser.com/users/1469/" ]
Best solution I found: gave my kids a Mac mini with parental controls on... No virus problems, they can't really install any crapware even if their friends point them to some. Also, game choice is limited, which is a big plus. With that, they spend much more time exploring the web, experimenting with making music or vi...
Particularly if the main OS is Windows XP, I would recommend setting up a virtual machine ([VirtualBox](http://en.wikipedia.org/wiki/VirtualBox) is free and good) and putting a Linux distribution inside the VM. Do web browsing from Linux and run other programs from Windows. You could also set up a dual boot - [Wubi](h...
10,557,615
So I need to run a bunch of (maven) tests with testfiles being supplied as an argument to a maven task. Something like this: `mvn clean test -Dtest=<filename>` And the test files are usually organized into different directories. So I'm trying to write a script which would execute the above 'command' and automaticall...
2012/05/11
[ "https://Stackoverflow.com/questions/10557615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1293653/" ]
I haven't figured out whether it is a bug or intentional (for some reason) in matplotlib, but in order to get a full legend label you need to leave a trailing comma on your list of labels: ``` figlegend((k),('Limit',),loc='lower center') ``` change that line and your code: ``` from pylab import * k = plot((0, 1),(1...
The answer to your problem is the following. For the names of the legend, you have to surround it in square brackets, like this: ``` figlegend((k),[('Limit')],loc='lower center') ``` as you can see the legend name 'limit' is surrounded in square brackets, and this will then display the full name. ``` Here would be...
8,733,854
I'm trying to save simple text data in my app using this code from Beginning iPhone Development: ``` - (NSString *)dataFilePath { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; return [documentsDire...
2012/01/04
[ "https://Stackoverflow.com/questions/8733854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1088618/" ]
My guess is that when this was written for iOS 3, applicationWillTerminate was called when you hit the home button. With iOS 5, this isn't the case. Try moving your code to -applicationDidEnterBackground.
May I suggest using the NSUserDefaults class? It's very good for storing simple data like this. Setting a value ``` NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject:@"value" forKey:@"field"]; [defaults synchronize]; ``` Getting a value ``` NSUserDefaults * defaults = [NSUserDe...
13,250,180
My bash code look likes: ``` set -e ( flock -n 9 main $@ ) 9>/var/lock/mylockfile ``` But currently it don't show any error message, if it is not able to get lock on the file. Is there a way to show error message ?
2012/11/06
[ "https://Stackoverflow.com/questions/13250180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/428705/" ]
With "set -e", you can use the ERR signal. As said in the man page of bash (description of the "set" command with option "-e"): ``` "A trap on ERR, if set, is executed before the shell exits." ``` So you can try something like: ``` set -e ( trap 'echo flock failed.' ERR flock -n 9 trap - ERR # reset ERR tr...
You should check for the return code of `flock -n` ``` set -e ( flock -n 9 if [ "$?" -eq 1 ] ; then echo "could not lock" exit 1 fi main $@ ) 9>/var/lock/mylockfile ```
13,250,180
My bash code look likes: ``` set -e ( flock -n 9 main $@ ) 9>/var/lock/mylockfile ``` But currently it don't show any error message, if it is not able to get lock on the file. Is there a way to show error message ?
2012/11/06
[ "https://Stackoverflow.com/questions/13250180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/428705/" ]
The example in the manpage says: ``` ( flock -n 9 || exit 1 # ... commands executed under lock ... ) 9>/var/lock/mylockfile ``` ie it exits if flock fails -- why don't you just use that? If you want to display an error, you could try this: ``` ( # paranoia: flock may fail with an exit code ot...
You should check for the return code of `flock -n` ``` set -e ( flock -n 9 if [ "$?" -eq 1 ] ; then echo "could not lock" exit 1 fi main $@ ) 9>/var/lock/mylockfile ```