qid
int64
20
74.4M
question
stringlengths
36
16.3k
date
stringlengths
10
10
metadata
listlengths
3
3
response_j
stringlengths
33
24k
response_k
stringlengths
33
23k
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
Use `padding left` like `editText.setPadding (int left, int top, int right, int bottom);`
Try this in your java code ``` editText.setPadding( 5, 0,0,0); ```
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
Use `padding left` like `editText.setPadding (int left, int top, int right, int bottom);`
Try this code..... ``` android:includeFontPadding="true" android:paddingLeft="5dp" ```
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
Use `padding left` like `editText.setPadding (int left, int top, int right, int bottom);`
You can do this through XML as well in coding. If you want to do in XML, You have to do the padding to required Edit text. ``` <EditText android:id="@+id/bt_description" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingLeft="10dp" /> ``` If not you can do this through code as a...
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
try this code ``` android:paddingLeft="5dp" ```
Try this in your java code ``` editText.setPadding( 5, 0,0,0); ```
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
try this code ``` android:paddingLeft="5dp" ```
Try this code..... ``` android:includeFontPadding="true" android:paddingLeft="5dp" ```
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
try this code ``` android:paddingLeft="5dp" ```
You can do this through XML as well in coding. If you want to do in XML, You have to do the padding to required Edit text. ``` <EditText android:id="@+id/bt_description" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingLeft="10dp" /> ``` If not you can do this through code as a...
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
Try this code..... ``` android:includeFontPadding="true" android:paddingLeft="5dp" ```
Try this in your java code ``` editText.setPadding( 5, 0,0,0); ```
15,941,999
Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image: ![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png) In my case, as you see, in my "description...
2013/04/11
[ "https://Stackoverflow.com/questions/15941999", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1739882/" ]
Try this code..... ``` android:includeFontPadding="true" android:paddingLeft="5dp" ```
You can do this through XML as well in coding. If you want to do in XML, You have to do the padding to required Edit text. ``` <EditText android:id="@+id/bt_description" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingLeft="10dp" /> ``` If not you can do this through code as a...
13,670,253
The past 3 days I've tried to get this simple example to work but whatever I try I just can't seem to understand where I'm going wrong... HTML: ``` <input type="text" id="textEntry" /> <button>Go</button> <ul id="list"> <li>Text from the input field will appear below</li> </ul> ``` jQUERY: ``` $('button').clic...
2012/12/02
[ "https://Stackoverflow.com/questions/13670253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/933252/" ]
If the schema contains serial or sequence columns, you should reset these to the max value that occurs in the corresponding column. (normally you should not import the serials from a file, but give them the freedom to autoincrement.) For all imported tables you should identify the sequence fields and run the following...
You can automate wildplasser's solution so that all sequences are synchronized with the current maximum value of their associated column: ``` do $block$ declare r record; stmt text; max_id integer; begin for r in ( select * from ( select table_schema, ...
13,670,253
The past 3 days I've tried to get this simple example to work but whatever I try I just can't seem to understand where I'm going wrong... HTML: ``` <input type="text" id="textEntry" /> <button>Go</button> <ul id="list"> <li>Text from the input field will appear below</li> </ul> ``` jQUERY: ``` $('button').clic...
2012/12/02
[ "https://Stackoverflow.com/questions/13670253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/933252/" ]
If the schema contains serial or sequence columns, you should reset these to the max value that occurs in the corresponding column. (normally you should not import the serials from a file, but give them the freedom to autoincrement.) For all imported tables you should identify the sequence fields and run the following...
Another way is remove the primary key (id) from the columns (or don't dump the id). So your data would look like ``` INSERT INTO book (name, price) VALUES ('Alchemist' , 10); ``` instead of ``` INSERT INTO book (id, name, price) VALUES (1 , 'Alchemist' , 10); ``` This way, you won't have to reset the primary ke...
13,670,253
The past 3 days I've tried to get this simple example to work but whatever I try I just can't seem to understand where I'm going wrong... HTML: ``` <input type="text" id="textEntry" /> <button>Go</button> <ul id="list"> <li>Text from the input field will appear below</li> </ul> ``` jQUERY: ``` $('button').clic...
2012/12/02
[ "https://Stackoverflow.com/questions/13670253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/933252/" ]
You can automate wildplasser's solution so that all sequences are synchronized with the current maximum value of their associated column: ``` do $block$ declare r record; stmt text; max_id integer; begin for r in ( select * from ( select table_schema, ...
Another way is remove the primary key (id) from the columns (or don't dump the id). So your data would look like ``` INSERT INTO book (name, price) VALUES ('Alchemist' , 10); ``` instead of ``` INSERT INTO book (id, name, price) VALUES (1 , 'Alchemist' , 10); ``` This way, you won't have to reset the primary ke...
13,670,253
The past 3 days I've tried to get this simple example to work but whatever I try I just can't seem to understand where I'm going wrong... HTML: ``` <input type="text" id="textEntry" /> <button>Go</button> <ul id="list"> <li>Text from the input field will appear below</li> </ul> ``` jQUERY: ``` $('button').clic...
2012/12/02
[ "https://Stackoverflow.com/questions/13670253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/933252/" ]
In Rails you can use the command > > `ActiveRecord::Base.connection.reset_pk_sequence!('users')` > > > to bring the primary key index for the User table in sync again.
You can automate wildplasser's solution so that all sequences are synchronized with the current maximum value of their associated column: ``` do $block$ declare r record; stmt text; max_id integer; begin for r in ( select * from ( select table_schema, ...
13,670,253
The past 3 days I've tried to get this simple example to work but whatever I try I just can't seem to understand where I'm going wrong... HTML: ``` <input type="text" id="textEntry" /> <button>Go</button> <ul id="list"> <li>Text from the input field will appear below</li> </ul> ``` jQUERY: ``` $('button').clic...
2012/12/02
[ "https://Stackoverflow.com/questions/13670253", "https://Stackoverflow.com", "https://Stackoverflow.com/users/933252/" ]
In Rails you can use the command > > `ActiveRecord::Base.connection.reset_pk_sequence!('users')` > > > to bring the primary key index for the User table in sync again.
Another way is remove the primary key (id) from the columns (or don't dump the id). So your data would look like ``` INSERT INTO book (name, price) VALUES ('Alchemist' , 10); ``` instead of ``` INSERT INTO book (id, name, price) VALUES (1 , 'Alchemist' , 10); ``` This way, you won't have to reset the primary ke...
488,019
For most ML models we say they suffer from high bias or high variance, then we correct for it. However, in DL do neural networks suffer from the same concept in the sense that they initially have high bias or high variance and then you correct through regularization and/or dropout? I would argue they initially suffer f...
2020/09/18
[ "https://stats.stackexchange.com/questions/488019", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/72773/" ]
In general NNs are prone to overfitting the training set, which is case of a [high variance](https://datascience.stackexchange.com/questions/45578/why-underfitting-is-called-high-bias-and-overfitting-is-called-high-variance). Your train of thought is generally correct in the sense that the proposed solutions (regulariz...
Neural networks, including DNNs, don't *by themselves* suffer from high variance any more than other machine learning algorithms. It is just that we find it easier to start the training with more complex networks and control for variance by the techniques you mentioned, than to start with simpler (less expressive) netw...
9,327,400
I've create a c# winforms form, It has a bunch of labels positioned and a flowlayoutpanel. on certain occasions i set one of the labels and the flowlayoutpanel to visible =false. As a result i want all labels beneath them to be pushed up - at the moment there is a gap where they were. Also, I'd like the flowlayoutp...
2012/02/17
[ "https://Stackoverflow.com/questions/9327400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66975/" ]
If I got you correctly, I would suggest using a TableLayoutPane with two rows. The top row will contain a docked panel with all the controls that may be hidden. The bottom row will contain a docked panel with all the rest. Set the top row's SizeType to AutoSize and the bottom row's to 100%. When you want to hide the ...
The TableLayoutPanel does the pushing. Maybe you can use that if there is no better answer in next time.
9,327,400
I've create a c# winforms form, It has a bunch of labels positioned and a flowlayoutpanel. on certain occasions i set one of the labels and the flowlayoutpanel to visible =false. As a result i want all labels beneath them to be pushed up - at the moment there is a gap where they were. Also, I'd like the flowlayoutp...
2012/02/17
[ "https://Stackoverflow.com/questions/9327400", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66975/" ]
If I got you correctly, I would suggest using a TableLayoutPane with two rows. The top row will contain a docked panel with all the controls that may be hidden. The bottom row will contain a docked panel with all the rest. Set the top row's SizeType to AutoSize and the bottom row's to 100%. When you want to hide the ...
First problem: You may use some simple panels to divide your form, give them the `dock.fill` property. when you'll hide a panel programmatically, the other panels will fill the empty space left. Second problem: You have to set the `Autosize` property to `true`.
192,935
I want to say : > > Analysis **conducted at a** insurance company showed that... > > or > > Analysis **into a** insurance company showed that... > > > What is the best way to phrase this?
2014/08/23
[ "https://english.stackexchange.com/questions/192935", "https://english.stackexchange.com", "https://english.stackexchange.com/users/89164/" ]
I would make it slightly less passive: *"An analysis performed by the insurance company ..."* or other material to indicate *who* performed the analysis and *where* it was performed as well as the issue being analyzed. If you or your associates performed the analysis, you might phrase it: *"An analysis performed by ...
Use: > > The analysis that the company made says that \_\_\_. > > >
52,259,592
We are hosting our website in Azure. During the deployment(TFS) we will do the below Steps as the part of the deployment pipeline. 1. Stop the WebApp 2. Deploy Web App Service 3. Start the WebApp After the 1st step, if anyone tries to access our website, then by default Azure will return the below page [![enter imag...
2018/09/10
[ "https://Stackoverflow.com/questions/52259592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7073340/" ]
It should work with ``` from test import foo ``` But you have to add a `__init__.py` to your project directory. For Python 3 it would be: ``` from .test import foo ``` If you use the dot in front of the folder name, python searches for the file in the same directory as the file you are working on is placed in. ...
Are you using an IDE? If so add the path to the Python Interpreter inside the project Properties to all the primary packages (foo, test, notebooks). Otherwise try to explicitly add the bar package to the sys path like so ``` import sys import os MYDIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.pa...
52,259,592
We are hosting our website in Azure. During the deployment(TFS) we will do the below Steps as the part of the deployment pipeline. 1. Stop the WebApp 2. Deploy Web App Service 3. Start the WebApp After the 1st step, if anyone tries to access our website, then by default Azure will return the below page [![enter imag...
2018/09/10
[ "https://Stackoverflow.com/questions/52259592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7073340/" ]
Messing with `sys.path` is rarely a good idea. Since your plan seems to be to use both `foo` and `test` from `notebooks` (that will probably just contain Jupyter notebooks), the cleanest solution would be to install `foo` and `test` as packages. Remove the `__init__.py` from your top level directory and `notebooks`, ...
It should work with ``` from test import foo ``` But you have to add a `__init__.py` to your project directory. For Python 3 it would be: ``` from .test import foo ``` If you use the dot in front of the folder name, python searches for the file in the same directory as the file you are working on is placed in. ...
52,259,592
We are hosting our website in Azure. During the deployment(TFS) we will do the below Steps as the part of the deployment pipeline. 1. Stop the WebApp 2. Deploy Web App Service 3. Start the WebApp After the 1st step, if anyone tries to access our website, then by default Azure will return the below page [![enter imag...
2018/09/10
[ "https://Stackoverflow.com/questions/52259592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7073340/" ]
Messing with `sys.path` is rarely a good idea. Since your plan seems to be to use both `foo` and `test` from `notebooks` (that will probably just contain Jupyter notebooks), the cleanest solution would be to install `foo` and `test` as packages. Remove the `__init__.py` from your top level directory and `notebooks`, ...
Are you using an IDE? If so add the path to the Python Interpreter inside the project Properties to all the primary packages (foo, test, notebooks). Otherwise try to explicitly add the bar package to the sys path like so ``` import sys import os MYDIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.pa...
52,819,018
This code should count the number of prime numbers based on user input. If user input is 10, then I should get 4. However, I only get 0. Why does the second loop not run? ``` #include<stdio.h> #include<math.h> int main() { int N; scanf("%d", &N); int numprime; numprime = 0; int P=1; for (P; P<N...
2018/10/15
[ "https://Stackoverflow.com/questions/52819018", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10502481/" ]
`flex-direction: column` ======================== The major problem (besides some bad syntax on background shorthand) is that the `flex-direction` was at default which is `row` (horizontal). The flex items (`.logo` and `.copy`) are stacked vertically thus the `flex-direction` should be `column`. --- Demo ---- **Det...
you can use `position`. Add `position:relative;` to `.inner_content` and `position:absolute;` and `bottom:0;` to `.inner_content p` so your css looks like this ``` .flex { align-items: center; display: flex; } aside { background: url('../img/sidebar-image.jpg') no-repeat center/cover; height: 20em; ...
20,852,167
I am new to php. I have tried the following code to redirect the page when sign In button is clicked, but it is not happening. please help me editing the code. probably, there is an error in header() function. Have I used the header() function correctly? ``` <body> <?php $emailErr = $passwordErr = ""; $email = $p...
2013/12/31
[ "https://Stackoverflow.com/questions/20852167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3131191/" ]
Add `@ob_start();` top of the page, ``` if (isset($_POST["sign"])) { header('Location:signInform.php'); } ```
your issue is header already send.You can avoid this issue by using `ob_start()`.Try like this: ``` <?php ob_start(); $emailErr = $passwordErr = ""; $email = $password = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["email"])) { $emailErr = "*Email is required";} else { $email = test_input($_POST[...
20,852,167
I am new to php. I have tried the following code to redirect the page when sign In button is clicked, but it is not happening. please help me editing the code. probably, there is an error in header() function. Have I used the header() function correctly? ``` <body> <?php $emailErr = $passwordErr = ""; $email = $p...
2013/12/31
[ "https://Stackoverflow.com/questions/20852167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3131191/" ]
Add `@ob_start();` top of the page, ``` if (isset($_POST["sign"])) { header('Location:signInform.php'); } ```
Just remove following line. ``` include("signInform.php"); ``` and put header function like below. ``` header('location:signInform.php'); ```
20,852,167
I am new to php. I have tried the following code to redirect the page when sign In button is clicked, but it is not happening. please help me editing the code. probably, there is an error in header() function. Have I used the header() function correctly? ``` <body> <?php $emailErr = $passwordErr = ""; $email = $p...
2013/12/31
[ "https://Stackoverflow.com/questions/20852167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3131191/" ]
Add `@ob_start();` top of the page, ``` if (isset($_POST["sign"])) { header('Location:signInform.php'); } ```
``` use--- echo '<script> location.href="signInform.php";</script>'; instead of header('Location:signInform.php'); replace if($_POST["sign"]) { header('Location:signInform.php'); } to if($_POST["sign"]) { echo '<script> location.href="signInform.php";</script>'; } and why did you include include("signInform.php");...
20,852,167
I am new to php. I have tried the following code to redirect the page when sign In button is clicked, but it is not happening. please help me editing the code. probably, there is an error in header() function. Have I used the header() function correctly? ``` <body> <?php $emailErr = $passwordErr = ""; $email = $p...
2013/12/31
[ "https://Stackoverflow.com/questions/20852167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3131191/" ]
Just remove following line. ``` include("signInform.php"); ``` and put header function like below. ``` header('location:signInform.php'); ```
your issue is header already send.You can avoid this issue by using `ob_start()`.Try like this: ``` <?php ob_start(); $emailErr = $passwordErr = ""; $email = $password = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["email"])) { $emailErr = "*Email is required";} else { $email = test_input($_POST[...
20,852,167
I am new to php. I have tried the following code to redirect the page when sign In button is clicked, but it is not happening. please help me editing the code. probably, there is an error in header() function. Have I used the header() function correctly? ``` <body> <?php $emailErr = $passwordErr = ""; $email = $p...
2013/12/31
[ "https://Stackoverflow.com/questions/20852167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3131191/" ]
Just remove following line. ``` include("signInform.php"); ``` and put header function like below. ``` header('location:signInform.php'); ```
``` use--- echo '<script> location.href="signInform.php";</script>'; instead of header('Location:signInform.php'); replace if($_POST["sign"]) { header('Location:signInform.php'); } to if($_POST["sign"]) { echo '<script> location.href="signInform.php";</script>'; } and why did you include include("signInform.php");...
12,025,173
Here is the main problem: ``` dig maktabkhooneh.info +trace ``` works perfectly fine and returns the right answer. ``` dig maktabkhooneh.info ``` (without +trace) returns: ``` ; <<>> DiG 9.8.1-P1 <<>> maktabkhooneh.info ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id...
2012/08/19
[ "https://Stackoverflow.com/questions/12025173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1380812/" ]
`dig +trace` follows the whole chain from the beginning - it queries root servers, then .info servers then your namservers. Thus it avoids any caching resolvers, and also avoids propagation issues. `dig +notrace` (the default) queries your default DNS resolver (on Linux, whatever specified in `/etc/resolv.conf`). The...
In my case was a problem related to /etc/named.conf file. I could resolve this with the previous answer from Sandman and googling the way to fix a corrupted named.conf in cpanel. I had to access to shell console and type the following commands: for backup the file ``` mv /etc/named.conf /etc/named.conf.bak ``` for ...
38,574,785
I need to extract values from the below JSON response I am receiving from a web service response. ``` {"ns4:SearchSA_PartyReturn": { "xmlns:ns1": "urn:cs-base", "xsi:type": "ns4:SearchSA_PartyReturn", "ns4:object": { "xmlns:ns2": "urn:co-base", "recordCount": 3, "xmlns:ns0": "urn:cs...
2016/07/25
[ "https://Stackoverflow.com/questions/38574785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6116467/" ]
It looks like you're trying to get `document.getElementById("setting").value` but the actual ID is "Setting" as per ``` <select name="Setting"> <option value="Office">Office</option> <option value="HOPD">HOPD</option> </select> ``` Try changing the getElementById to `document.getElem...
``` function settingValue(){ //settingValue=document.getElementById("setting").value; var e = document.getElementById("Setting"); var settingValue = e.options[e.selectedIndex].value; document.getElementById("result").value=medicarePaymentCal(settingValue);...
58,567,334
I'm trying to turn a Huffman tree and a stream of bits into a list of characters plus a boolean indicating whether or not the output consumed all the input bits. Here's an example: ``` decode xyz_code [True,False,True,True,True,False,False,True] = ("yzyx",False) ``` Here's what I have so far, but it doesn't work. W...
2019/10/26
[ "https://Stackoverflow.com/questions/58567334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12276493/" ]
I think no, Authorization server is out of their roadmap. Starting from november the 13th every class in spring security which worked with Authorization server features become deprecated. [Spring Security OAuth 2.0 Roadmap Update](https://spring.io/blog/2019/11/14/spring-security-oauth-2-0-roadmap-update#no-authorizat...
@mhrsalehi, please checkout my repo. I added an implementation of old OAuth2 Authorization server for webflux. Currently only support `/oauth/token` if you want support for any other endpoints please submit a ticket or PR. Github: [spring-reactive-authorization-server](https://github.com/VuDo98/spring-reactive-authori...
74,370
I have an Ubuntu 6.06 server that needs to be replaced by an Ubuntu 9.04 server clean setup, I already copied the entire samba file server directory to the new 9.04 server using rsync. I need to know how to migrate the existing user accounts (machine accounts) to the new server so as when I physically transfer the conn...
2009/10/14
[ "https://serverfault.com/questions/74370", "https://serverfault.com", "https://serverfault.com/users/-1/" ]
``` passdb backend = tdbsam ``` means you have your samba accounts in a `passdb.tdb` file in `SAMBA_DIR/private`. As long as you copy it with rsync you are fine. There are two caveats: * Unix users: a samba user has to be a unix user as well, so you have to copy all files @churnd told you; * timing: machine accoun...
You'll need to copy /etc/passwd, /etc/shadow, /etc/group, /etc/samba/smbusers, and /etc/samba/smbpasswd. [This site](http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/) shows you how to do the first 3, but I've done the last two and it worked fine.
71,435,759
I am trying to add a new recipe to install new packages in my image. I need the next packages libnfc5 libnfc-bin libnfc-examples, I have found these packages in this page: <http://ftp.de.debian.org/debian/pool/main/libn/libnfc/>, so I am using the next commands to install the packages: * devtool add libnfc5 <http://ft...
2022/03/11
[ "https://Stackoverflow.com/questions/71435759", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18352597/" ]
`PIVOT` relational operator is an option: Sample data: ``` SELECT * INTO Company FROM (VALUES (1, 'Frodo B (manager), Gandalf G (director), Batman C (cleaner)'), (2, 'John Doe (secretary), Mark Jacobs (manager), Lilly Hopes (director), Rihanna Williams (cleaner), Maddy James (supervisor), Merry Poppins (HR)'), ...
Recursion is another (knowing that it is limited to 7 iterations): ``` with MyTable as ( select * from (values (1, 'Frodo B (manager), Gandalf G (director), Batman C (cleaner)') ,(2, 'John Doe (secretary), Mark Jacobs(manager), Lilly Hopes(director), Rihanna Williams (cleaner), Maddy James (supervisor), Merry Poppin...
66,986,874
Have some data stored in different directory paths in databricks file system. Need to rename some folders. Is it possible to rename folders in DBFS? If so, what's the command?
2021/04/07
[ "https://Stackoverflow.com/questions/66986874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8500105/" ]
You can use `mv` with `%fs` magic, or `dbutils.fs` to do this. This command is used for renaming and/or moving files and directories `%fs mv -r /path/to/folder /path/to/new_folder_name` the `-r` is to do recursive move with directories. It's documented in the [dbutils](https://docs.databricks.com/_static/notebooks/d...
Use this. Just replace the path with your actual path. ``` old_name = r"dbfs:/FileStore/tables/PM/TC/ROBERTA" new_name = r"dbfs:/FileStore/tables/PM/TC/BERT" dbutils.fs.mv(old_name, new_name, True) ```
73,695,925
I'm going nuts trying to connnect in Selenium4 to Chrome instance on a localhost. I invoked chrome from bash using ``` $ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=6666 --user-data-dir=/Users/h/Desktop/MY/chrome-profile ``` and next i tried to connect from Selenium4 ``` f...
2022/09/12
[ "https://Stackoverflow.com/questions/73695925", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18995273/" ]
You can use the format below: ``` PARSE_DATETIME('%m/%d/%Y %l:%M %p', "7/13/2022 9:46 AM") ``` The output: [![parse_datetime_output](https://i.stack.imgur.com/i07A9.png)](https://i.stack.imgur.com/i07A9.png)
Use `PARSE_DATETIME("%m/%d/%Y %l:%M %p", datetime_closed)` to get datetime or `DATE(PARSE_DATETIME("%m/%d/%Y %l:%M %p", datetime_closed))` to get date
72,506,798
Hello there I try to align some text in a container to the left but it won't work even when there is free space. As you can see there is some free space directly next to the image which isn't used for no reason. Right here I show you a picture and also the style. Thanks in advance if anyone can help. ![enter image des...
2022/06/05
[ "https://Stackoverflow.com/questions/72506798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17032453/" ]
You could use interfaces with default implementations which were introduced in C# 8. Then you could derive from these interfaces. Here's an example of how you could you provide default implementations for the `MoveForward()` and `StartBroadcast()` methods: ```cs public interface IVehicle { void MoveForward() ...
You can't inherit more than 1 class but you can inherit more than one interface. Is this what you are looking for? ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { internal class Program { static void Main(s...
72,506,798
Hello there I try to align some text in a container to the left but it won't work even when there is free space. As you can see there is some free space directly next to the image which isn't used for no reason. Right here I show you a picture and also the style. Thanks in advance if anyone can help. ![enter image des...
2022/06/05
[ "https://Stackoverflow.com/questions/72506798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17032453/" ]
You can't inherit more than 1 class but you can inherit more than one interface. Is this what you are looking for? ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { internal class Program { static void Main(s...
I think Jonas gave you the best answer that you can use default `interface` implementations. However I keep my post, because it gives information, how to achieve same effect, using technology without this language feature. ```cs public abstract class Example : IExample { private readonly IVehicle vehicle; pri...
72,506,798
Hello there I try to align some text in a container to the left but it won't work even when there is free space. As you can see there is some free space directly next to the image which isn't used for no reason. Right here I show you a picture and also the style. Thanks in advance if anyone can help. ![enter image des...
2022/06/05
[ "https://Stackoverflow.com/questions/72506798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17032453/" ]
You could use interfaces with default implementations which were introduced in C# 8. Then you could derive from these interfaces. Here's an example of how you could you provide default implementations for the `MoveForward()` and `StartBroadcast()` methods: ```cs public interface IVehicle { void MoveForward() ...
I think Jonas gave you the best answer that you can use default `interface` implementations. However I keep my post, because it gives information, how to achieve same effect, using technology without this language feature. ```cs public abstract class Example : IExample { private readonly IVehicle vehicle; pri...
72,506,798
Hello there I try to align some text in a container to the left but it won't work even when there is free space. As you can see there is some free space directly next to the image which isn't used for no reason. Right here I show you a picture and also the style. Thanks in advance if anyone can help. ![enter image des...
2022/06/05
[ "https://Stackoverflow.com/questions/72506798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17032453/" ]
You could use interfaces with default implementations which were introduced in C# 8. Then you could derive from these interfaces. Here's an example of how you could you provide default implementations for the `MoveForward()` and `StartBroadcast()` methods: ```cs public interface IVehicle { void MoveForward() ...
C# classes can only inherit from one base class, but can inherit from any number of interfaces. If your goal is to have multiple base classes being inherited to `MyNewClass`, you could change one of your abstract classes to inherit from the other, for example: ``` public abstract class RadioSignalBroadcast : Vehicle ...
72,506,798
Hello there I try to align some text in a container to the left but it won't work even when there is free space. As you can see there is some free space directly next to the image which isn't used for no reason. Right here I show you a picture and also the style. Thanks in advance if anyone can help. ![enter image des...
2022/06/05
[ "https://Stackoverflow.com/questions/72506798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17032453/" ]
C# classes can only inherit from one base class, but can inherit from any number of interfaces. If your goal is to have multiple base classes being inherited to `MyNewClass`, you could change one of your abstract classes to inherit from the other, for example: ``` public abstract class RadioSignalBroadcast : Vehicle ...
I think Jonas gave you the best answer that you can use default `interface` implementations. However I keep my post, because it gives information, how to achieve same effect, using technology without this language feature. ```cs public abstract class Example : IExample { private readonly IVehicle vehicle; pri...
3,051,606
I need to find minimum point of hanging rope with two known points $p\_1, p\_2$ (start and end point of the rope) and known rope length. I want to model all rope shapes with different length and start and end point. Do I have to use numerical methods? Does it have any closed form solution? Known $\to L,(x\_1,y\_1),...
2018/12/24
[ "https://math.stackexchange.com/questions/3051606", "https://math.stackexchange.com", "https://math.stackexchange.com/users/629130/" ]
Starting from @Cesareo answer, considering $$L^2-v^2 = 4a^2\sinh^2\left(\frac{h}{2a}\right)$$ let $x=\frac{h}{2a}$ to make the equation $$\frac{L^2-v^2}{h^2}=\frac{\sinh^2(x) }{x^2}\implies k=\sqrt{\frac{L^2-v^2}{h^2}}=\frac{\sinh(x) }{x}$$ Consider that you look for the zero of $$f(x)=\frac{\sinh(x) }{x}-k$$ It varie...
Calling $$ x\_2-x\_1 = h\\ y\_2-y\_1 = v $$ we have $$ v = a\cosh\left(\frac{x\_2}{a}\right)-a\cosh\left(\frac{x\_1}{a}\right)\\ L = a\sinh\left(\frac{x\_2}{a}\right)-a\sinh\left(\frac{x\_1}{a}\right) $$ so after some trigonometric transformations we arrive at $$ L^2-v^2 = 4a^2\sinh^2\left(\frac{x\_2-x\_1}{2a}\rig...
28,078,756
So I've typed a command (pacman -S perl-) and I hit tab and see that there are a whole bunch of completions (about 40), and I realize that I want to run every single completion (so I don't accidentally install from CPAN what is already a builtin). How do I run all completions of a command? BONUS: How do I run more th...
2015/01/21
[ "https://Stackoverflow.com/questions/28078756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2851917/" ]
Here is my own solution to deal with, * To apply matching for completion results. * To insert all the completion matches into the command line. * To activate menu selection and select the completion more than one. --- **To apply matching for completion results**, it could be done with the [`_match`](http://zsh.sourc...
I've found a solution to my problem, and it gets the job done, but it's not the kind of solution that I want. I selected the completion text on my screen (I'm using mintty) and copied it into my editor. I then reformatted it like so: ``` perl perl-IPC-Run3 \ perl-ack perl-libwww \ perl-Archive-Zip perl-Locale-Gettext...
344,872
It hadn’t properly registered yet with Arthur that the council wanted to knock it down" - what's the meaning of register with someone here?
2016/08/26
[ "https://english.stackexchange.com/questions/344872", "https://english.stackexchange.com", "https://english.stackexchange.com/users/193168/" ]
This would be dependent on whether the speaker was referring to the group/entity of the Club or to the location of Sunnyside Country Club. For instance if you removed the words 'Sunnyside' and 'Country' and just left the word Club, a speaker would be more likely to choose the term "to". I was accepted for membership...
See my comment to JA's answer. Membership prepositions per the [Ngram viewer](https://books.google.com/ngrams/graph?content=for%20membership%20*%2Cfor%20membership%20at%2Cfor%20membership%20into&year_start=1800&year_end=2000&corpus=15&smoothing=3&share=&direct_url=t2%3B%2Cfor%20membership%20%2A%3B%2Cc0%3B%2Cs0%3B%3Bfo...
344,872
It hadn’t properly registered yet with Arthur that the council wanted to knock it down" - what's the meaning of register with someone here?
2016/08/26
[ "https://english.stackexchange.com/questions/344872", "https://english.stackexchange.com", "https://english.stackexchange.com/users/193168/" ]
This would be dependent on whether the speaker was referring to the group/entity of the Club or to the location of Sunnyside Country Club. For instance if you removed the words 'Sunnyside' and 'Country' and just left the word Club, a speaker would be more likely to choose the term "to". I was accepted for membership...
I would suggest this is more of a US v UK English issue. I live in the UK and until about five years ago I had never heard the phrase 'membership to' - it was always 'membership of'. Suddenly, 'membership to' has become ubiquitous. As a Brit, 'membership to' makes no sense to me, but had I grown up in the USA it would ...
344,872
It hadn’t properly registered yet with Arthur that the council wanted to knock it down" - what's the meaning of register with someone here?
2016/08/26
[ "https://english.stackexchange.com/questions/344872", "https://english.stackexchange.com", "https://english.stackexchange.com/users/193168/" ]
This would be dependent on whether the speaker was referring to the group/entity of the Club or to the location of Sunnyside Country Club. For instance if you removed the words 'Sunnyside' and 'Country' and just left the word Club, a speaker would be more likely to choose the term "to". I was accepted for membership...
I would suggest this is more of a US v UK English issue. UK dictionaries use 'of' when defining membership. Moreover, I've lived in the UK for over 50 years and until about five years ago I had never heard the phrase 'membership to' - it was always 'membership of'. Suddenly, 'membership to' has become ubiquitous. As a ...
66,802
And in particular, when you play with 2 players do you deal out all the cards the from the deck? Or is there some undealt part that players draw from during the game? I mean, if you deal them all then you'll just know what's in your opponent's hand? This is going to sound trivial, but actually it's part of this theory...
2022/05/14
[ "https://anime.stackexchange.com/questions/66802", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/4484/" ]
**Yes, it is possible to play *Shichi Narabe* with only 2 players.** First of all, there is no exact requirement for the number of players, though most sites recommend at least 3 or 4 players: * [English Wikipedia](https://en.wikipedia.org/wiki/Domino_(card_game)): 3-7 (intro body) / 3-8 (infobox) * [Japanese Wikiped...
This game may be played with two players. It becomes less of a strategic battle and more of a time-killer. If you trust Wikipedia as a source, the [Japanese Wikipedia article](https://ja.wikipedia.org/wiki/7%E4%B8%A6%E3%81%B9#%E4%BA%BA%E6%95%B0) says it could even be played by one player. I can imagine playing this g...
19,970,356
We can extract distinct value set from a list by using following code ``` List<Person> distinctPeople = allPeople .GroupBy(p => new {p.PersonId, p.FavoriteColor} ) .Select(g => g.First()) .ToList(); ``` Assume person has PersonId, FavoriteColor, age, address, etc..... My requirement is I would like to get a se...
2013/11/14
[ "https://Stackoverflow.com/questions/19970356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2288789/" ]
I am writing this for other people who might run into the same problem like me in the future. Apparently as Mr. Leonardo as pointed out, HTML e-mails doesn't read the external or even internal css at all because the head part of the template are opted out and only body part are used. Thus the solution is to use table a...
The one way is to use inline css in the code, ``` <div class="pre"><strong>Title,</strong>&nbsp;</div> <div class="pre">&nbsp;</div> <blockquote> <div class="pre">Message part</div> </blockquote> <div class="pre">&nbsp;</div> <div class="pre"><span style="background-color: #800080;">Thanks</span>,<br /> <br /> </di...
19,970,356
We can extract distinct value set from a list by using following code ``` List<Person> distinctPeople = allPeople .GroupBy(p => new {p.PersonId, p.FavoriteColor} ) .Select(g => g.First()) .ToList(); ``` Assume person has PersonId, FavoriteColor, age, address, etc..... My requirement is I would like to get a se...
2013/11/14
[ "https://Stackoverflow.com/questions/19970356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2288789/" ]
As other devs mentioned email clients do not load external css, so you have to inline it. Inlining css manually is poor decision. There are libraries to inline css. One of them is [django-inlinecss](https://github.com/roverdotcom/django-inlinecss "django-inlinecss"). You can keep you code exactly as it is. All you need...
I am writing this for other people who might run into the same problem like me in the future. Apparently as Mr. Leonardo as pointed out, HTML e-mails doesn't read the external or even internal css at all because the head part of the template are opted out and only body part are used. Thus the solution is to use table a...
19,970,356
We can extract distinct value set from a list by using following code ``` List<Person> distinctPeople = allPeople .GroupBy(p => new {p.PersonId, p.FavoriteColor} ) .Select(g => g.First()) .ToList(); ``` Assume person has PersonId, FavoriteColor, age, address, etc..... My requirement is I would like to get a se...
2013/11/14
[ "https://Stackoverflow.com/questions/19970356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2288789/" ]
As other devs mentioned email clients do not load external css, so you have to inline it. Inlining css manually is poor decision. There are libraries to inline css. One of them is [django-inlinecss](https://github.com/roverdotcom/django-inlinecss "django-inlinecss"). You can keep you code exactly as it is. All you need...
The one way is to use inline css in the code, ``` <div class="pre"><strong>Title,</strong>&nbsp;</div> <div class="pre">&nbsp;</div> <blockquote> <div class="pre">Message part</div> </blockquote> <div class="pre">&nbsp;</div> <div class="pre"><span style="background-color: #800080;">Thanks</span>,<br /> <br /> </di...
18,746,129
I am trying to make a `left outer join` query that also has a `custom comparator`. I have the following lists: ``` List<ColumnInformation> list1; List<ColumnInformation> list2; ``` These hold information about an SQL column (datatype, name, table, etc). I have overrided `Equals` for the class, and made a `operator ...
2013/09/11
[ "https://Stackoverflow.com/questions/18746129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1043380/" ]
The way you do that is with a `GroupJoin` and `SelectMany` (to flatten the results): ``` ColumnComparer cc = new ColumnComparer(); var joinedList = list1 .GroupJoin(list2, x => x, y => y, (x, g) => new {x, g}, cc) .SelectMany( z => z.g.DefaultIfEmpty(), (z, b) =>...
You can take advantage of Sub-Query in combination with Where: ``` var leftOuterJoin = from l1 in list1 select new { jointList = (from l2 in list2 where l2.objectID == l1.ObjectID // <-- and you can do any other comparing...
59,397
As established [in a previous question](https://chemistry.stackexchange.com/q/31276), coordination compounds typically have a *field split* between the $\mathrm{t\_{2g}}$ and the $\mathrm{e\_g}$ d-orbitals.[1] This energy difference can be explained by the crystal field theory which assumes negative point-charges appro...
2016/09/20
[ "https://chemistry.stackexchange.com/questions/59397", "https://chemistry.stackexchange.com", "https://chemistry.stackexchange.com/users/7475/" ]
I currently happen to have the book by Figgis that Max mentioned. Chapter 2 is devoted to a mathematical formulation of crystal field theory, which I did not bother reading in detail because I do not understand any of it. *(The corollary is: If you have a better answer, please post it!)* It seems that both $D$ and $q$ ...
I will expand my previous comment into an answer. In the $O\_h$ case the metal ion is surrounded by $6$ ligand ions, each with charge $q=-Ze$ located at $\langle\pm a,0,0\rangle$, $\langle0, \pm a,0\rangle$, and $\langle0,0,\pm a\rangle$. The electrostatic potential of a point charge $q$ is $$V=\frac{kq}R$$ where $$k=\...
59,397
As established [in a previous question](https://chemistry.stackexchange.com/q/31276), coordination compounds typically have a *field split* between the $\mathrm{t\_{2g}}$ and the $\mathrm{e\_g}$ d-orbitals.[1] This energy difference can be explained by the crystal field theory which assumes negative point-charges appro...
2016/09/20
[ "https://chemistry.stackexchange.com/questions/59397", "https://chemistry.stackexchange.com", "https://chemistry.stackexchange.com/users/7475/" ]
I currently happen to have the book by Figgis that Max mentioned. Chapter 2 is devoted to a mathematical formulation of crystal field theory, which I did not bother reading in detail because I do not understand any of it. *(The corollary is: If you have a better answer, please post it!)* It seems that both $D$ and $q$ ...
A more high-level answer this time. In this approach we first find out the form of the term in the potential that will split the $d$ orbitals. Recall that the character of a proper rotation by angle $\alpha$ for the set of spherical harmonics with $L^2Y\_l^m(\theta,\phi)=\hbar^2l(l+1)Y\_l^m(\theta,\phi)$ is $$\chi\_l(R...
26,632,644
I am newbie to java db coding... This is my java code ``` Connection conn = null; Statement stmt = null; Class.forName("com.mysql.jdbc.Driver"); System.out.println("Connecting to database..."); conn = DriverManager.getConnection("jdbc:mysql://localhost/EMP",USER,PASS); System.out.println("Creating statement..."); stm...
2014/10/29
[ "https://Stackoverflow.com/questions/26632644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1079065/" ]
You are using the wrong driver for the database. Every database (MySQL, PostgreSQL, SQL Server, Oracle etc.) has a different driver which is what connects between JDBC and the particular database's communication protocol. You need the Microsoft SQL Server driver. You can download and install it from here if you don't ...
from what i can see and understand is that you're missing the port. you'd have done it in this way: conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/EMP",USER,PASS); The url can be describe in this way jdbc: which is your connector mysql:which is your current installed database //hostname: which the...
26,632,644
I am newbie to java db coding... This is my java code ``` Connection conn = null; Statement stmt = null; Class.forName("com.mysql.jdbc.Driver"); System.out.println("Connecting to database..."); conn = DriverManager.getConnection("jdbc:mysql://localhost/EMP",USER,PASS); System.out.println("Creating statement..."); stm...
2014/10/29
[ "https://Stackoverflow.com/questions/26632644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1079065/" ]
You are using the wrong driver for the database. Every database (MySQL, PostgreSQL, SQL Server, Oracle etc.) has a different driver which is what connects between JDBC and the particular database's communication protocol. You need the Microsoft SQL Server driver. You can download and install it from here if you don't ...
Download the Microsoft JDBC driver and use `Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);` If the problem still persists enable TCP/IP network protocol, which is disabled by default, and set the TCP/IP port to 1433 which is the default port number.
26,632,644
I am newbie to java db coding... This is my java code ``` Connection conn = null; Statement stmt = null; Class.forName("com.mysql.jdbc.Driver"); System.out.println("Connecting to database..."); conn = DriverManager.getConnection("jdbc:mysql://localhost/EMP",USER,PASS); System.out.println("Creating statement..."); stm...
2014/10/29
[ "https://Stackoverflow.com/questions/26632644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1079065/" ]
from what i can see and understand is that you're missing the port. you'd have done it in this way: conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/EMP",USER,PASS); The url can be describe in this way jdbc: which is your connector mysql:which is your current installed database //hostname: which the...
Download the Microsoft JDBC driver and use `Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);` If the problem still persists enable TCP/IP network protocol, which is disabled by default, and set the TCP/IP port to 1433 which is the default port number.
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Suppose we have some scalars $a\_0,a\_1,a\_2$ in $\Bbb R$ such that $$a\_0t+a\_1e^t+a\_2\sin t =0 \tag{1}$$ for all real number $t$. Making $t=0$ this gives us $a\_1=0$. Returning to $(1)$, we have $$a\_0t+a\_2\sin t =0 \tag{2}$$ Now, make $t=\pi$ and then $a\_0\pi=0$, which means $a\_0=0$.
*Hint.* Write one as a linear combination of the others. That is, look for real numbers $a,b,c$ not simultaneously vanishing, so that we may write $$at+be^t+c\sin t=0.$$
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Suppose we have some scalars $a\_0,a\_1,a\_2$ in $\Bbb R$ such that $$a\_0t+a\_1e^t+a\_2\sin t =0 \tag{1}$$ for all real number $t$. Making $t=0$ this gives us $a\_1=0$. Returning to $(1)$, we have $$a\_0t+a\_2\sin t =0 \tag{2}$$ Now, make $t=\pi$ and then $a\_0\pi=0$, which means $a\_0=0$.
HINT.- A good way to try this problem is to consider that the elements of $V$ are $f\_1,f\_2,f\_3$ where $f\_1(t)=t,f\_2(t)=e^t,f\_3(t)=\sin(t)$ so you have to show that if the linear combination $$a\_1f\_1+a\_2f\_2+a\_3f\_3=0$$ where les $f\_i$ are three vectors and les $a\_i$ are scalars in your vectorial space, then...
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Here is a another way to skin the cat: Suppose $\alpha\_1 t + \alpha\_2 e^t + \alpha\_3 \sin t = 0$ for all $t$. If we differentiate twice and set $t = 0$, we get $\alpha\_2 e^{\pi \over 2} = 0$ and so $\alpha\_2 = 0$. If we differentiate twice and set $t = -{\pi \over 2}$, we get $\alpha\_3 = 0$. Finally, set $t=1...
Suppose we have some scalars $a\_0,a\_1,a\_2$ in $\Bbb R$ such that $$a\_0t+a\_1e^t+a\_2\sin t =0 \tag{1}$$ for all real number $t$. Making $t=0$ this gives us $a\_1=0$. Returning to $(1)$, we have $$a\_0t+a\_2\sin t =0 \tag{2}$$ Now, make $t=\pi$ and then $a\_0\pi=0$, which means $a\_0=0$.
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Suppose we have some scalars $a\_0,a\_1,a\_2$ in $\Bbb R$ such that $$a\_0t+a\_1e^t+a\_2\sin t =0 \tag{1}$$ for all real number $t$. Making $t=0$ this gives us $a\_1=0$. Returning to $(1)$, we have $$a\_0t+a\_2\sin t =0 \tag{2}$$ Now, make $t=\pi$ and then $a\_0\pi=0$, which means $a\_0=0$.
Also you may find if $$\begin{vmatrix} f\_1(t) & f\_2(t) & f\_3(t) \\ f\_1'(t) & f\_2'(t) & f\_3'(t)\\ f\_1''(t) & f\_2''(t) & f\_3''(t)\end{vmatrix}= 0,$$ then the three functions are linearly dependent (LD) otherwise they are linearly independent (LI).
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Here is a another way to skin the cat: Suppose $\alpha\_1 t + \alpha\_2 e^t + \alpha\_3 \sin t = 0$ for all $t$. If we differentiate twice and set $t = 0$, we get $\alpha\_2 e^{\pi \over 2} = 0$ and so $\alpha\_2 = 0$. If we differentiate twice and set $t = -{\pi \over 2}$, we get $\alpha\_3 = 0$. Finally, set $t=1...
*Hint.* Write one as a linear combination of the others. That is, look for real numbers $a,b,c$ not simultaneously vanishing, so that we may write $$at+be^t+c\sin t=0.$$
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Here is a another way to skin the cat: Suppose $\alpha\_1 t + \alpha\_2 e^t + \alpha\_3 \sin t = 0$ for all $t$. If we differentiate twice and set $t = 0$, we get $\alpha\_2 e^{\pi \over 2} = 0$ and so $\alpha\_2 = 0$. If we differentiate twice and set $t = -{\pi \over 2}$, we get $\alpha\_3 = 0$. Finally, set $t=1...
HINT.- A good way to try this problem is to consider that the elements of $V$ are $f\_1,f\_2,f\_3$ where $f\_1(t)=t,f\_2(t)=e^t,f\_3(t)=\sin(t)$ so you have to show that if the linear combination $$a\_1f\_1+a\_2f\_2+a\_3f\_3=0$$ where les $f\_i$ are three vectors and les $a\_i$ are scalars in your vectorial space, then...
3,367,553
Is $S$ linearly dependent on $\textsf V = \mathcal{F}(\Bbb R,\Bbb R)$ and $S = \{t, e^t ,\sin(t)\}$. How to prove that a set of functions are linearly dependent?
2019/09/24
[ "https://math.stackexchange.com/questions/3367553", "https://math.stackexchange.com", "https://math.stackexchange.com/users/708009/" ]
Here is a another way to skin the cat: Suppose $\alpha\_1 t + \alpha\_2 e^t + \alpha\_3 \sin t = 0$ for all $t$. If we differentiate twice and set $t = 0$, we get $\alpha\_2 e^{\pi \over 2} = 0$ and so $\alpha\_2 = 0$. If we differentiate twice and set $t = -{\pi \over 2}$, we get $\alpha\_3 = 0$. Finally, set $t=1...
Also you may find if $$\begin{vmatrix} f\_1(t) & f\_2(t) & f\_3(t) \\ f\_1'(t) & f\_2'(t) & f\_3'(t)\\ f\_1''(t) & f\_2''(t) & f\_3''(t)\end{vmatrix}= 0,$$ then the three functions are linearly dependent (LD) otherwise they are linearly independent (LI).
16,917,821
I'm trying to implement simple ScopedExit class. Here's the code: ``` #include <iostream> #include <functional> template<class R, class... Args> class ScopedExit { public: ScopedExit(std::function<R(Args...)> exitFunction) { exitFunc_ = exitFunction; } ~ScopedExit() { exitFunc_()...
2013/06/04
[ "https://Stackoverflow.com/questions/16917821", "https://Stackoverflow.com", "https://Stackoverflow.com/users/644350/" ]
> > How to pass exit's function arguments to it? For example, I bind BarExitFunc with two integer arguments: 18 and 11. So how can I pass it to the exitFunc\_ in the destructor? > > > I can see no reason whatsoever to pass arguments to `exitFunc_` at call time in the destructor. Whatever you do, you'll have to pro...
1) You can save arguments in `tuple` for example. However, in your case, you can simply call `exitFunc_()` and function definition should be `std::function<R()> exitFunction` since you already bind arguments to function. Something like this probably ``` #include <iostream> #include <functional> #include <tuple> templ...
656,271
I am using Bluez bluetooth Manager, after I send the files from my Android device to the Laptop which contains Linux Mate with the standard File System. I cannot seem to find the files which a received in this manner. The Bluez documentation does not specify where do these files go.
2015/08/04
[ "https://askubuntu.com/questions/656271", "https://askubuntu.com", "https://askubuntu.com/users/431035/" ]
Grub allows you to password protect its config and console, as well as individual operating system entries. Please note that this *will not* stop dedicated individuals, especially the ones that know what they are doing. But I assume you know that. Lets get started. generate a password hash.. -------------------------...
The GRUB manual has a section about [security](http://www.gnu.org/software/grub/manual/grub.html#Security). This tells you how to password protect your GRUB boot menu to restrict access to specific operations or boot variants. It contains a small example.
2,793,312
When we use the cylindrical coordinate system $(r, \theta, z)$ where $r$ is the distance from the point in the $xy$-plane, $\theta$ is the angle with the $x$ axis and $z$ is the heigth. As can been seen in the picture [![enter image description here](https://i.stack.imgur.com/lKIQb.png)](https://i.stack.imgur.com/lKIQ...
2018/05/23
[ "https://math.stackexchange.com/questions/2793312", "https://math.stackexchange.com", "https://math.stackexchange.com/users/221950/" ]
**Hint:** You discover the rules by working backwards. First consider polynomials, say of the third degree, like $ax^3+bx^2+cx+d$. The first derivative is a second degree polynomial, so that the LHS of a first order equation would yield $$\alpha y+\beta y'=\alpha ax^3+(\alpha b+3\beta a)x^2+(\alpha c+2\beta b)x+(\al...
$$y'''(x)-2y''(x)+y'(x)=x+2$$ It's easy to determine the exponent of the function try to substitute $y=z+ax^n$ $$y'''+.............+y'=x+2$$ $$(z'''+....)+..............+(z'+nax^{n-1})=x+2$$ for y' we get the highest monomial degree in x so it must be equal to the degre of x on right side $$x^{n-1}=x \implies n=2$$ So ...
477,931
How can I create a table like this in Latex? [![enter image description here](https://i.stack.imgur.com/4MYki.png)](https://i.stack.imgur.com/4MYki.png) I have tried but it didn't work. I need also that it is enumerated so that it appears in the List of Tables. It doesn't matter if it is not coloured, as long as the ...
2019/03/05
[ "https://tex.stackexchange.com/questions/477931", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/182855/" ]
I suggest you to use `booktabs` for professional tables. ``` \documentclass[11pt,openright]{book} \usepackage{array} \newcolumntype{C}{>{\centering\arraybackslash}X} \renewcommand{\arraystretch}{1.2} \usepackage{booktabs} \usepackage{tabularx} \usepackage{caption} \begin{document} \listoftables \chapter{My chapter} ...
A mix-and-match with colors and using something as a starting point ``` \documentclass[10pt,a4paper]{article} \usepackage[table,xcdraw]{xcolor} \begin{document} \listoftables\newpage \begin{table}[] \begin{tabular}{!{\color{cyan}\vrule}l!{\color{cyan}\vrule}l!{\color{cyan}\vrule}l!{\color{cyan}\vrule}l...
477,931
How can I create a table like this in Latex? [![enter image description here](https://i.stack.imgur.com/4MYki.png)](https://i.stack.imgur.com/4MYki.png) I have tried but it didn't work. I need also that it is enumerated so that it appears in the List of Tables. It doesn't matter if it is not coloured, as long as the ...
2019/03/05
[ "https://tex.stackexchange.com/questions/477931", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/182855/" ]
I suggest you to use `booktabs` for professional tables. ``` \documentclass[11pt,openright]{book} \usepackage{array} \newcolumntype{C}{>{\centering\arraybackslash}X} \renewcommand{\arraystretch}{1.2} \usepackage{booktabs} \usepackage{tabularx} \usepackage{caption} \begin{document} \listoftables \chapter{My chapter} ...
Don't mix-and-mismatch visual cues and metaphores: if you employ colored rows, don't employ horizontal rules. And, for sure, you can omit all vertical rules -- they're not needed. [![enter image description here](https://i.stack.imgur.com/uJel3.png)](https://i.stack.imgur.com/uJel3.png) ``` \documentclass{article} \u...
477,931
How can I create a table like this in Latex? [![enter image description here](https://i.stack.imgur.com/4MYki.png)](https://i.stack.imgur.com/4MYki.png) I have tried but it didn't work. I need also that it is enumerated so that it appears in the List of Tables. It doesn't matter if it is not coloured, as long as the ...
2019/03/05
[ "https://tex.stackexchange.com/questions/477931", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/182855/" ]
I suggest you to use `booktabs` for professional tables. ``` \documentclass[11pt,openright]{book} \usepackage{array} \newcolumntype{C}{>{\centering\arraybackslash}X} \renewcommand{\arraystretch}{1.2} \usepackage{booktabs} \usepackage{tabularx} \usepackage{caption} \begin{document} \listoftables \chapter{My chapter} ...
There is also a really handy online tool called [Tables Generator](https://www.tablesgenerator.com/). It lets you input your data (you can even upload it from file), and adapt it WYSIWYG-style. It will then generate the correct LaTeX code for you to copy/paste into you document. Edit: As suggested by Sanctus, here i...
923,813
Show that it is not true in general that (i) for any sets A,B, one has P(A union B) is a subset of P(A) union P(B) Show that it is true in general that (ii) for any sets A , B , one has P(A) union P(B) is a subset of P(A union B). For part (i) and part (ii), can you help me verify my proof? i didnt use elements fo...
2014/09/08
[ "https://math.stackexchange.com/questions/923813", "https://math.stackexchange.com", "https://math.stackexchange.com/users/174559/" ]
Easier way to prove part two: set inclusion. The proof is mostly definition chasing. Let $S \in \mathbf{P}[A]\cup \mathbf{P}[B]$. Then either $S \subseteq A$ or $S \subseteq B$. In either case, $S \in \mathbf{P}[A \cup B]$ by noting that $$S \subseteq A \implies S \subseteq A \cup B \implies S \in \mathbf{P}[A \cup B]...
We have $A\cup B\in\wp\left(A\cup B\right)$. However $A\cup B\in\wp\left(A\right)\cup\wp\left(B\right)$ is true if and only if $A\cup B\subseteq A$ or $A\cup B\subseteq B$. If $A-B$ and $B-A$ are both non-empty then this is not the case. This proves that (i) is not true in general. --- $X\in\wp\left(A\right)\cup\...
26,017,705
I have an azure website and database. I'm running an ASP.NET MVC 4 / EF 5 app localy and trying to put some data to the azure database before to deploy the app. But I have a TargetInvocationException : {"The ASP.NET Simple Membership database could not be initialized. For more information, please see <http://go.microso...
2014/09/24
[ "https://Stackoverflow.com/questions/26017705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2660758/" ]
The following works for me: ``` <add name="coupdpoAPEkowswAEntities" connectionString="Server=tcp:myserver.database.windows.net,1433;Database=mydatabase;User ID=cdptest@myserver;Password=*****;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;" providerName="System.Data.EntityClient"/> ``` Use Server inst...
OK the providername was wrong. System.Data.SqlClient was excepted as this is a code first app model. I probably got System.Data.EntityClient from another app with Model First or Database First...
37,097,643
The server hosting the api is returning http for absolute urls even though the page was loaded using https, does this have something to do with django rest framework? because there doesn't seem any obvious way to remedy this. It's the url field in the Meta class that is relevant ``` class NewsSerializer(serializers.H...
2016/05/08
[ "https://Stackoverflow.com/questions/37097643", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1567198/" ]
You need to make sure nginx forwards the client's request scheme because it'll make a regular http request to Django. You'll need to add the following line to your vhost definition: ``` proxy_set_header X-Forwarded-Proto $scheme; ```
Are you using Rest Framework reverse() function to build URLs? <http://www.django-rest-framework.org/api-guide/reverse/> It uses incoming request to determine the protocol used.
28,768,715
For a project I am working on, one of the things we're implementing is something that we have code for in some of my teams older ASP.NET and MVC projects - an `Application_Error` exception catcher that dispatches an email to the development team with the exception experience and most relevant details. Here's how it lo...
2015/02/27
[ "https://Stackoverflow.com/questions/28768715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1404206/" ]
Abstract out your error handling logic from `Application_Error` into its own function. Create a [Web API exception filter](http://www.asp.net/web-api/overview/error-handling/exception-handling). ``` //register your filter with Web API pipeline //this belongs in the Application_Start event in Global Application Handler...
In my case, i prefer not use Web.config. Then i created code above in Global.asax file: ``` protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); //Not Found (When user digit unexisting url) if(ex is HttpException && ((HttpException)ex).GetHtt...
6,091,451
So I have this code that pops up a file chooser and reads the file: ``` JFileChooser chooser = new JFileChooser(); File file = null; int returnValue = chooser.showOpenDialog( null ) ; if( returnValue == JFileChooser.APPROVE_OPTION ) { file = chooser.getSelectedFile() ; } if(file != null) { String filePath ...
2011/05/22
[ "https://Stackoverflow.com/questions/6091451", "https://Stackoverflow.com", "https://Stackoverflow.com/users/765039/" ]
I don't know what your `ReadFile` thing is, but it looks like it takes a string representing the file path. In which case, you probably want to give it `file.getPath()`.
Try using this instead of your code in try block: ``` FileReader fr = new FileReader(filePath); FileWriter outputStream = new FileWriter("filename.txt");; int c; while ((c = fr.read()) != -1) { outputStream.write(c); } ```
17,525,935
i have created an application called "xyz.msi" and installed. Now i created another application called "abc.msi" and trying to install. But my question is if "xyz.msi" is installed already then it shouldn't allow to install "abc.msi". Thanks in advance
2013/07/08
[ "https://Stackoverflow.com/questions/17525935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2560586/" ]
Take a look at the [Upgrade table](http://msdn.microsoft.com/en-us/library/windows/desktop/aa372379%28v=vs.85%29.aspx). You can use this to define the search criteria along with the msidbUpgradeAttributesOnlyDetect attribute to cause your action property to be assigned the ProductCode property that is found. Then you c...
You are asking how MSI detect an installed application. Its since each MSI will have a unique Product Code (Refer to this: <http://msdn.microsoft.com/en-us/library/windows/desktop/aa370854(v=vs.85).aspx>) whenever you try to install a product it looks up at the product code if it matches it lets you do the re instal...
45,935,003
I have a string pipe of values, which I want to modify. the string pipe has a range from 0-5 values, so I made the following: ```js new Vue({ el: '#app', data: { valuesString: "" }, computed: { values: { get() { var values = this.valuesString ? this.valuesString.split("-") : []; ...
2017/08/29
[ "https://Stackoverflow.com/questions/45935003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1826106/" ]
I'm not entirely sure I understand what you are looking for, but I think this will do the trick: * Parse the piped string and place it in an array + See the computed property unpiped * loop through the array and place the value in the selectbox + the loop should occur on the . The result is bound to valuesString * ...
maby my question wasn't clear. [Bert's comment is right](https://stackoverflow.com/questions/45935003/vue-computed-setter-get-not-triggered-for-array-in-v-model/45951999#comment78845473_45935003) I solved my problem with a workaround, but I'm not so satisfied. maby anyone can help me to optimize it. For this I tried t...
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
Old Answer (still applies unless you are using Visual Studio Update 1 RTM (2015) or later) ------------------------------------------------------------------------------------------ In short. No, there doesn't seem to be a good plugin for it. If you use Perl rarely, I would recommend sticking with Visual Studio for M...
A workaround for Visual Studio desktop version is to use C++ syntax highlighting. * Go to Options -> Text Editor -> File Extension * Enter extension "pl" (no dot) * Assign it to "Microsoft Visual C++" * Click "Add" If necessary, repeat the same steps for "cgi" extension.
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
[Visual Studio Update 1 RTM](http://blogs.msdn.com/b/visualstudio/archive/2015/11/30/visual-studio-update-1-rtm.aspx) now (2015) has Perl support, along with Go, Java, R, Ruby, and Swift.
A work-in-progress Visual Studio [extension](https://marketplace.visualstudio.com/items?itemName=scriplit.perl6-lsp) for Perl6 (not the Perl5 asked by the OP) is incrementally more full-featured. It is released under the [MIT License](https://marketplace.visualstudio.com/items/scriplit.perl6-lsp/license) and its [repos...
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
[Visual Studio Update 1 RTM](http://blogs.msdn.com/b/visualstudio/archive/2015/11/30/visual-studio-update-1-rtm.aspx) now (2015) has Perl support, along with Go, Java, R, Ruby, and Swift.
A workaround for Visual Studio desktop version is to use C++ syntax highlighting. * Go to Options -> Text Editor -> File Extension * Enter extension "pl" (no dot) * Assign it to "Microsoft Visual C++" * Click "Add" If necessary, repeat the same steps for "cgi" extension.
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
[Komodo Edit](http://www.activestate.com/komodo-edit) is quite nice, and free. code folding and other good stuff.
A workaround for Visual Studio desktop version is to use C++ syntax highlighting. * Go to Options -> Text Editor -> File Extension * Enter extension "pl" (no dot) * Assign it to "Microsoft Visual C++" * Click "Add" If necessary, repeat the same steps for "cgi" extension.
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
Old Answer (still applies unless you are using Visual Studio Update 1 RTM (2015) or later) ------------------------------------------------------------------------------------------ In short. No, there doesn't seem to be a good plugin for it. If you use Perl rarely, I would recommend sticking with Visual Studio for M...
A work-in-progress Visual Studio [extension](https://marketplace.visualstudio.com/items?itemName=scriplit.perl6-lsp) for Perl6 (not the Perl5 asked by the OP) is incrementally more full-featured. It is released under the [MIT License](https://marketplace.visualstudio.com/items/scriplit.perl6-lsp/license) and its [repos...
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
Old Answer (still applies unless you are using Visual Studio Update 1 RTM (2015) or later) ------------------------------------------------------------------------------------------ In short. No, there doesn't seem to be a good plugin for it. If you use Perl rarely, I would recommend sticking with Visual Studio for M...
[Komodo Edit](http://www.activestate.com/komodo-edit) is quite nice, and free. code folding and other good stuff.
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
Old Answer (still applies unless you are using Visual Studio Update 1 RTM (2015) or later) ------------------------------------------------------------------------------------------ In short. No, there doesn't seem to be a good plugin for it. If you use Perl rarely, I would recommend sticking with Visual Studio for M...
For Perl syntax highlight `ext install perl6` Install this extension [To Run Perl and Other languages](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner)
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
A work-in-progress Visual Studio [extension](https://marketplace.visualstudio.com/items?itemName=scriplit.perl6-lsp) for Perl6 (not the Perl5 asked by the OP) is incrementally more full-featured. It is released under the [MIT License](https://marketplace.visualstudio.com/items/scriplit.perl6-lsp/license) and its [repos...
A workaround for Visual Studio desktop version is to use C++ syntax highlighting. * Go to Options -> Text Editor -> File Extension * Enter extension "pl" (no dot) * Assign it to "Microsoft Visual C++" * Click "Add" If necessary, repeat the same steps for "cgi" extension.
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
[Visual Studio Update 1 RTM](http://blogs.msdn.com/b/visualstudio/archive/2015/11/30/visual-studio-update-1-rtm.aspx) now (2015) has Perl support, along with Go, Java, R, Ruby, and Swift.
[Komodo Edit](http://www.activestate.com/komodo-edit) is quite nice, and free. code folding and other good stuff.
3,755,892
Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.
2010/09/20
[ "https://Stackoverflow.com/questions/3755892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/387203/" ]
[Visual Studio Update 1 RTM](http://blogs.msdn.com/b/visualstudio/archive/2015/11/30/visual-studio-update-1-rtm.aspx) now (2015) has Perl support, along with Go, Java, R, Ruby, and Swift.
For Perl syntax highlight `ext install perl6` Install this extension [To Run Perl and Other languages](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner)
8,626,880
On Android when I am mapping an address on a Mapview I have to wait for that action to return and then my user is given control back so I was wondering how can I send that function of to another thread? ``` mapLocationButton.setOnClickListener(new OnClickListener() { @Override public void onCl...
2011/12/24
[ "https://Stackoverflow.com/questions/8626880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/690851/" ]
Android provides the AsyncTask class to do that. Read <http://developer.android.com/reference/android/os/AsyncTask.html>
You can use an AsyncTask to do this work in the background. Check this [example](http://developer.android.com/reference/android/os/AsyncTask.html)
8,626,880
On Android when I am mapping an address on a Mapview I have to wait for that action to return and then my user is given control back so I was wondering how can I send that function of to another thread? ``` mapLocationButton.setOnClickListener(new OnClickListener() { @Override public void onCl...
2011/12/24
[ "https://Stackoverflow.com/questions/8626880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/690851/" ]
Android provides the AsyncTask class to do that. Read <http://developer.android.com/reference/android/os/AsyncTask.html>
``` Button button1 = (Button) findViewById(R.id.button1); button1.setOnClickListener(new OnClickListener() { public void onClick(View v) { p_dialog = ProgressDialog.show((activity_name).this, "", "Loading Image..."); new Thread(new Runnable() { public void run() { ...
8,626,880
On Android when I am mapping an address on a Mapview I have to wait for that action to return and then my user is given control back so I was wondering how can I send that function of to another thread? ``` mapLocationButton.setOnClickListener(new OnClickListener() { @Override public void onCl...
2011/12/24
[ "https://Stackoverflow.com/questions/8626880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/690851/" ]
You can use an AsyncTask to do this work in the background. Check this [example](http://developer.android.com/reference/android/os/AsyncTask.html)
``` Button button1 = (Button) findViewById(R.id.button1); button1.setOnClickListener(new OnClickListener() { public void onClick(View v) { p_dialog = ProgressDialog.show((activity_name).this, "", "Loading Image..."); new Thread(new Runnable() { public void run() { ...
83,697
In X-Men Origins, Scott Summers lost his eyes, which were then put into Deadpool. After this event, in X-Men 1 through X-Men 3 Scott was still able to fire lasers, implying that the mutant ability was not related to the eyes? Yet Deadpool was able to fire the lasers with Scott's eyes. In addition Deadpool was able to c...
2015/03/12
[ "https://scifi.stackexchange.com/questions/83697", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/42794/" ]
> > Why is Deadpool able to shoot lasers with eyes and Cyclops without? Why is Deadpool able to control the lasers without the technology Cyclops has? > > > Because Cyclops origin story involves trauma (either mental psychological trauma, or actual head injury) that prevents him from controlling his powers. His br...
the reason is because Hollyweird butt-pulled a bunch of powers for him because they didn't do any research before making the character in the film. This is why Deadpool could shoot beams from his eyes, and had other powers he never had in the Marvel universe. They weren't doing any research and, at the time, had no pla...
5,900,627
I am trying to pass an object from one page to another page using `<asp:hyperlink>` without any success. I was trying to invoke a C# method and put that object into a session but then I realized you can't invoke a method using `<asp:hyperlink>`. Then I thought about using `<asp:linkbutton>` but then I need to open the ...
2011/05/05
[ "https://Stackoverflow.com/questions/5900627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/386195/" ]
> > Then I thought about using `<asp:linkbutton>` but then I need to > open the new webpage in a new window. > > > You do not need to open a new window... add this to your server side `LinkButton` handler: ``` <asp:LinkButton id="btnYourLinkButton" runat="server" OnClick="btnYourLinkButton_Click">Test</asp:...
Add the object to the `Session` then redirect to the new page. In the new page, check the `Session` variable for the object.
5,900,627
I am trying to pass an object from one page to another page using `<asp:hyperlink>` without any success. I was trying to invoke a C# method and put that object into a session but then I realized you can't invoke a method using `<asp:hyperlink>`. Then I thought about using `<asp:linkbutton>` but then I need to open the ...
2011/05/05
[ "https://Stackoverflow.com/questions/5900627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/386195/" ]
Add the object to the `Session` then redirect to the new page. In the new page, check the `Session` variable for the object.
Any web application tends to be stateless in nature. Your objects only live during the processing of the page request. When developing and appliction with a technology such as ASP.Net the general pattern for object retrieval is to send an identifier as part of the form post data or the querystring and then use this ide...
5,900,627
I am trying to pass an object from one page to another page using `<asp:hyperlink>` without any success. I was trying to invoke a C# method and put that object into a session but then I realized you can't invoke a method using `<asp:hyperlink>`. Then I thought about using `<asp:linkbutton>` but then I need to open the ...
2011/05/05
[ "https://Stackoverflow.com/questions/5900627", "https://Stackoverflow.com", "https://Stackoverflow.com/users/386195/" ]
> > Then I thought about using `<asp:linkbutton>` but then I need to > open the new webpage in a new window. > > > You do not need to open a new window... add this to your server side `LinkButton` handler: ``` <asp:LinkButton id="btnYourLinkButton" runat="server" OnClick="btnYourLinkButton_Click">Test</asp:...
Any web application tends to be stateless in nature. Your objects only live during the processing of the page request. When developing and appliction with a technology such as ASP.Net the general pattern for object retrieval is to send an identifier as part of the form post data or the querystring and then use this ide...
24,342,687
I am trying to clear a session. Below is a little sample code I wrote to check with `SessionStatus`. ``` @Controller @SessionAttributes(value={"sessAttr1","sessAttr2","sessAttr3"}) public class SessionController { @RequestMapping(value="index") public ModelAndView populateSession(){ ModelAndView modelVie...
2014/06/21
[ "https://Stackoverflow.com/questions/24342687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1317840/" ]
`setComplete` is used to mark a session attribute as not needed *after* the request has been processed by the controller: It does not immediately modify the session, and it overall sounds like it's a poor fit for your use case. It's intended to be used in a situation like a POST where the data is intended to be used du...
you can use [invalidate()](http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html#invalidate%28%29) ``` @RequestMapping(value="home1") public String populateHomeSession(HttpservletRequest request){ HttpSession session=request.getSession(); session.invalidate(); return "home1"; } ```
24,342,687
I am trying to clear a session. Below is a little sample code I wrote to check with `SessionStatus`. ``` @Controller @SessionAttributes(value={"sessAttr1","sessAttr2","sessAttr3"}) public class SessionController { @RequestMapping(value="index") public ModelAndView populateSession(){ ModelAndView modelVie...
2014/06/21
[ "https://Stackoverflow.com/questions/24342687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1317840/" ]
you can use [invalidate()](http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html#invalidate%28%29) ``` @RequestMapping(value="home1") public String populateHomeSession(HttpservletRequest request){ HttpSession session=request.getSession(); session.invalidate(); return "home1"; } ```
status.setComplete(); remove sessionatribute after render.
24,342,687
I am trying to clear a session. Below is a little sample code I wrote to check with `SessionStatus`. ``` @Controller @SessionAttributes(value={"sessAttr1","sessAttr2","sessAttr3"}) public class SessionController { @RequestMapping(value="index") public ModelAndView populateSession(){ ModelAndView modelVie...
2014/06/21
[ "https://Stackoverflow.com/questions/24342687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1317840/" ]
`setComplete` is used to mark a session attribute as not needed *after* the request has been processed by the controller: It does not immediately modify the session, and it overall sounds like it's a poor fit for your use case. It's intended to be used in a situation like a POST where the data is intended to be used du...
status.setComplete(); remove sessionatribute after render.
54,616,879
I have a file directory `music/artist/{random_name}/{random_music}.ogg` There's a lot of folder in `{random_name}` and different kind of music title `{random_music}`. So, I wanted to rename the `{random_music}.ogg` to `music.ogg`. Each `{random_name}` folder only have one .ogg files. I've tried with the Bash script...
2019/02/10
[ "https://Stackoverflow.com/questions/54616879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8061434/" ]
Your pattern replacement is incorrect. Because all your paths start with `..`, `.*.ogg` actually matches *the entire path*, so *every* file gets turned into `music.ogg` in your current directory. You want `${f/\/*.ogg/music.ogg}` instead, or better yet, `${f%/*}/music.ogg`. That's the rough equivalent of `"$(dirname "...
I use usually this: ``` for f in ../music/artist/*/*.ogg do dest="${f/.*.ogg/music.ogg}" if [[ $f != "$dest" ]] # nothing to do if name doesn't change then if [[ -a $dest ]] then printf 'WARNING: File already exists: %s\n' "$dest" else mv "$f" "$dest" ...
54,616,879
I have a file directory `music/artist/{random_name}/{random_music}.ogg` There's a lot of folder in `{random_name}` and different kind of music title `{random_music}`. So, I wanted to rename the `{random_music}.ogg` to `music.ogg`. Each `{random_name}` folder only have one .ogg files. I've tried with the Bash script...
2019/02/10
[ "https://Stackoverflow.com/questions/54616879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8061434/" ]
Your pattern replacement is incorrect. Because all your paths start with `..`, `.*.ogg` actually matches *the entire path*, so *every* file gets turned into `music.ogg` in your current directory. You want `${f/\/*.ogg/music.ogg}` instead, or better yet, `${f%/*}/music.ogg`. That's the rough equivalent of `"$(dirname "...
You can change your code like this ``` for f in ../music/artist/*/*.ogg do echo mv $f "$(dirname "$f")"/music.ogg done ``` Here `dirname` will extract the directory name from your variable and you can append it with your `music.ogg` to get the desired result. For the example path that you provided if `$f` equal...
54,616,879
I have a file directory `music/artist/{random_name}/{random_music}.ogg` There's a lot of folder in `{random_name}` and different kind of music title `{random_music}`. So, I wanted to rename the `{random_music}.ogg` to `music.ogg`. Each `{random_name}` folder only have one .ogg files. I've tried with the Bash script...
2019/02/10
[ "https://Stackoverflow.com/questions/54616879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8061434/" ]
Your pattern replacement is incorrect. Because all your paths start with `..`, `.*.ogg` actually matches *the entire path*, so *every* file gets turned into `music.ogg` in your current directory. You want `${f/\/*.ogg/music.ogg}` instead, or better yet, `${f%/*}/music.ogg`. That's the rough equivalent of `"$(dirname "...
I hope this would help you: Previously: ``` [root@user]# tree music music └── artist β”œβ”€β”€ df β”‚Β Β  └── mp.ogg β”œβ”€β”€ gh β”‚Β Β  └── pl.ogg β”œβ”€β”€ jk β”‚Β Β  └── gl.ogg β”œβ”€β”€ po β”‚Β Β  └── ui.ogg β”œβ”€β”€ ty β”‚Β Β  └── lk.ogg └── ui └── dh.ogg 7 directories, 6 files ``` Source code: ``` #!/bi...
54,616,879
I have a file directory `music/artist/{random_name}/{random_music}.ogg` There's a lot of folder in `{random_name}` and different kind of music title `{random_music}`. So, I wanted to rename the `{random_music}.ogg` to `music.ogg`. Each `{random_name}` folder only have one .ogg files. I've tried with the Bash script...
2019/02/10
[ "https://Stackoverflow.com/questions/54616879", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8061434/" ]
Your pattern replacement is incorrect. Because all your paths start with `..`, `.*.ogg` actually matches *the entire path*, so *every* file gets turned into `music.ogg` in your current directory. You want `${f/\/*.ogg/music.ogg}` instead, or better yet, `${f%/*}/music.ogg`. That's the rough equivalent of `"$(dirname "...
``` find ../music/artist/ -type f -name "*.ogg" -exec bash -c 'mydir=`dirname {}`;mv {} $mydir/music.ogg' \; ``` This is a one-liner that should work. It implements the exec option of the find command which then gets the directory name and renames the original file to music.ogg.
6,346
I hope to observe planets like Jupiter and Saturn, and moons. I am a novice when it comes to telescopes and I know images in magazines are not taken with at least 12-inch telescope in a middle of nowhere. Is it possible to view Saturn in little yellowish and Mars in little reddish using following telescopes? I am going...
2014/09/13
[ "https://astronomy.stackexchange.com/questions/6346", "https://astronomy.stackexchange.com", "https://astronomy.stackexchange.com/users/2410/" ]
Go with Option 1 (135mm) as it has bigger light collecting area, i.e. diameter of primary mirror. It will enable you to see faint objects and it will also help you to see the dim objects under a greater zoom eyepiece, e.g. 4mm or 10mm. Also, don't fool yourself with the bigger numbers advertized by telescope vendors l...
> > Is it possible to view Saturn in little yellowish and Mars in little > reddish using following telescopes? > > > It is definitely possible to observe the rings of Saturn with telescopes this size. Even the Cassini division should sometimes appear visible, if the instruments are well collimated and seeing is n...
123,285
I have a 20 amp circuit going directly from the panel to the kitchen with 20 amp receptacles and subsequent 12 gauge wire. There are only 4 outlets on that circuit (one being a GFI). I am installing under-cabinet lights and lights above the sink, well within the total amperage and volts allowed for the 20 amp circuit. ...
2017/09/13
[ "https://diy.stackexchange.com/questions/123285", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/75416/" ]
Switches are not circuit breakers (overcurrent protection). They cannot protect wire and do not make it ok to use smaller wire past them. If any 14AWG wire is used, you must downgrade the breaker to 15A, and downgrade the countertop receptacles to 15A. The other wire can remain 12AWG. This will mean it is not one of ...
If you have any #14 wire in the circuit, you have to put a 15 A breaker on it. So, to keep your 20 A breaker, you should use #12 wire everywhere, and run #12 to the switch and lights.
7,238,330
I have following code ``` $.ajax({ type: 'POST', url: 'index.jsp', data: 'id=111', dataType: 'jsonp', success: function(data) { alert(data.result); }, error: function( err1, err2, err3 ) { ...
2011/08/30
[ "https://Stackoverflow.com/questions/7238330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/608576/" ]
try adding a contentType ``` $.ajax({ type: 'POST', url: 'index.jsp', data: {id:'111'}, contentType: "application/json; charset=utf-8", dataType: 'jsonp', success: function(data) { alert(data.result); }, error: function( err1, err2, err3 ) { alert('Error:' + ...
**This library is heavenly helpful I found it after wasting a lot hours.** Use this library <https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest> then you won't need to use jsonp. And your Cross Site request will begin to work normally.