qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
208,002 | I'm new to LaTeX and I have a question about the LaTeX code (which I have to do for my essay), for the inner product of vectors on an exponential\*,how can I fix the problem that the two vektors k and x have their vectors taht are not parallel . *The vector of k is much higher that the vector in x* ( I use the command ... | 2014/10/19 | [
"https://tex.stackexchange.com/questions/208002",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/64448/"
] | Actually, X11 is not erased but moved to /opt/X11.
So, the simplest solution would probably be to manually add the symbolic link from /usr/X11 to /opt/X11:
```
sudo ln -s /opt/X11 /usr/X11
``` | I had the exact same problem with another program that was working prior to upgrading to OS X Yosemite, and then returned the following error subsequent to upgrading:
```
dyld: Library not loaded: /usr/X11/lib/libX11.6.dylib
Referenced from: /Users/grosbj/LANL/MCNP5/bin/mcnp5
Reason: image not found
Trace/BPT trap... |
208,002 | I'm new to LaTeX and I have a question about the LaTeX code (which I have to do for my essay), for the inner product of vectors on an exponential\*,how can I fix the problem that the two vektors k and x have their vectors taht are not parallel . *The vector of k is much higher that the vector in x* ( I use the command ... | 2014/10/19 | [
"https://tex.stackexchange.com/questions/208002",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/64448/"
] | Actually, X11 is not erased but moved to /opt/X11.
So, the simplest solution would probably be to manually add the symbolic link from /usr/X11 to /opt/X11:
```
sudo ln -s /opt/X11 /usr/X11
``` | Same problem after installing OSX Catalina ...
But now, you need to make a link like this:
```
sudo ln -s /opt/X11 /private/var/select/X11
```
(The link `/usr/X11` points to `/private/var/select/X11` and can't be modified.) |
208,002 | I'm new to LaTeX and I have a question about the LaTeX code (which I have to do for my essay), for the inner product of vectors on an exponential\*,how can I fix the problem that the two vektors k and x have their vectors taht are not parallel . *The vector of k is much higher that the vector in x* ( I use the command ... | 2014/10/19 | [
"https://tex.stackexchange.com/questions/208002",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/64448/"
] | Same problem after installing OSX Catalina ...
But now, you need to make a link like this:
```
sudo ln -s /opt/X11 /private/var/select/X11
```
(The link `/usr/X11` points to `/private/var/select/X11` and can't be modified.) | I had the exact same problem with another program that was working prior to upgrading to OS X Yosemite, and then returned the following error subsequent to upgrading:
```
dyld: Library not loaded: /usr/X11/lib/libX11.6.dylib
Referenced from: /Users/grosbj/LANL/MCNP5/bin/mcnp5
Reason: image not found
Trace/BPT trap... |
14,580,615 | I have installed Drush-5.4-2012-06-04-Installer-v1.0.18.msi in the location C:\ProgramData\Drush by default. I run the program and moved to drupal working directory.
When I type drush it is showing "drush is not recognized as an internal or external command " error. Do I need to configure anything before run? Please h... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14580615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1679480/"
] | You need to set the path variable :
* right click on **computer**
* go to **properties**
* click **advanced system settings** then
* click on **environment variable**, then
* find the variable **path**
* and edit it
add this to end of the variable value **C:ProgramData\Propeople\Drush** and restart the drush, It shou... | Faced this problem while i was installing drush with composer.
For anyone who have installed drush with composer, if this problem occures, You will have to set PATH variable as follows.
```
F:\Users\{YOUR-USERNAME}\AppData\Roaming\Composer\vendor\drush\drush\;
```
I did this and now my path variables are below.
``... |
14,580,615 | I have installed Drush-5.4-2012-06-04-Installer-v1.0.18.msi in the location C:\ProgramData\Drush by default. I run the program and moved to drupal working directory.
When I type drush it is showing "drush is not recognized as an internal or external command " error. Do I need to configure anything before run? Please h... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14580615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1679480/"
] | You need to set the path variable :
* right click on **computer**
* go to **properties**
* click **advanced system settings** then
* click on **environment variable**, then
* find the variable **path**
* and edit it
add this to end of the variable value **C:ProgramData\Propeople\Drush** and restart the drush, It shou... | For Drupal, you need to run `composer require drush/drush` command from the root project folder |
14,580,615 | I have installed Drush-5.4-2012-06-04-Installer-v1.0.18.msi in the location C:\ProgramData\Drush by default. I run the program and moved to drupal working directory.
When I type drush it is showing "drush is not recognized as an internal or external command " error. Do I need to configure anything before run? Please h... | 2013/01/29 | [
"https://Stackoverflow.com/questions/14580615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1679480/"
] | Faced this problem while i was installing drush with composer.
For anyone who have installed drush with composer, if this problem occures, You will have to set PATH variable as follows.
```
F:\Users\{YOUR-USERNAME}\AppData\Roaming\Composer\vendor\drush\drush\;
```
I did this and now my path variables are below.
``... | For Drupal, you need to run `composer require drush/drush` command from the root project folder |
46,598,234 | i'm new to java and am trying to return the value of commission to be printed out in the last line. but i keep getting the incompatible types: unexpected return value error.
```
import java.util.Scanner;
public class retail {
public static void main (String[] args){
char code;
double commission;
... | 2017/10/06 | [
"https://Stackoverflow.com/questions/46598234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8730148/"
] | Extending your code:
```
from datetime import datetime, date,timedelta
from pytz import timezone
tz1 = timezone('utc')
tz2 = timezone('Asia/Kolkata')
tz3 = timezone('America/Los_Angeles')
dt1 = datetime.now(tz=tz1)
dt2 = datetime.now(tz=tz2)
print(dt1)
print(dt2)
start_of_week = dt1+timedelta(days=0-dt1.weekday())
... | I'm expanding chakris answer:
**updated** Since a week either can start or end on the same day, when you input sunday and the week start with sunday you have two options.
Maybe you can change the code to fit your needs.
```
from datetime import datetime, date,timedelta
from pytz import timezone
def week_startandend... |
211,310 | We have a message queue on our queue server to which no-one has access. During a test we removed all the users from the queue. Now no-one can access it at all. | 2010/11/16 | [
"https://superuser.com/questions/211310",
"https://superuser.com",
"https://superuser.com/users/25713/"
] | There is a file in the system32\msmq\storage\lqs directory that contains the configuration for this queue. Find the file that contains the name of the queue you are talking about. If you delete the file and restart MSMQ, the queue has gone. Obviously don't delete any of the other files! | Also you can run this code snippet. Note that your project should reference System.Messaging
```
using System.Messaging;
.
.
.
MessageQueue[] msmques = MessageQueue.GetPrivateQueuesByMachine(".");
foreach (var item in msmques)
{
MessageQueue.Delete(".\\"+item.QueueName);
}
``` |
71,116,939 | currently, I am struggling with how the MongoDB document system works. I want to fetch array elements with an auto-generated id but how to fetch that specific data that I don't know.
my current schema is
```
const ItemPricesSchema = new mongoose.Schema({
_id : {
type: String
},
ItemsPrices: {
... | 2022/02/14 | [
"https://Stackoverflow.com/questions/71116939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13931640/"
] | You can do an aggregation with `$project` and apply `$filter` on the array part. In mongoose you can apply the aggregation query in a more or less similar way <https://mongoosejs.com/docs/api/aggregate.html>
```js
db.collection.aggregate([
{
$project: {
"ItemsPrices": {
$filter: {
input: ... | Option 1:
Use `$filter` in an aggregation query as explained by [cmgchess](https://stackoverflow.com/users/13583510/cmgchess)
Option 2:
If you only want one object from array you can use [$elemMatch](https://docs.mongodb.com/manual/reference/operator/query/elemMatch/) like this:
```
db.collection.find({
"ItemsPri... |
174,835 | I am playing Minecraft with the [Oceancraft](http://www.minecraftmods.com/oceancraft/) mod installed. Among other things, this adds quicksand, which if you step in you begin to sink and slowly suffocate.
Once you have stepped in quicksand - is there any way to avoid your untimely demise? I've tried walking out of it ... | 2014/07/04 | [
"https://gaming.stackexchange.com/questions/174835",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/16659/"
] | If I meet Quicksand on any map, it mostly appears like

So if you stepped in it you can easily dig the 2 neighboring blocks in a depth of 2, kinda like this.

And the you ... | If you have a fast shovel like an efficiency II or a diamond shovel, it is sometimes possible to dig the quicksand you're stuck in, and a jump boost like the Famguide mod's Familiar Rana or a jump boost II beacon can allow you to escape if you don't sink too deep, but a fast shovel will do. But you must try before you ... |
174,835 | I am playing Minecraft with the [Oceancraft](http://www.minecraftmods.com/oceancraft/) mod installed. Among other things, this adds quicksand, which if you step in you begin to sink and slowly suffocate.
Once you have stepped in quicksand - is there any way to avoid your untimely demise? I've tried walking out of it ... | 2014/07/04 | [
"https://gaming.stackexchange.com/questions/174835",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/16659/"
] | If I meet Quicksand on any map, it mostly appears like

So if you stepped in it you can easily dig the 2 neighboring blocks in a depth of 2, kinda like this.

And the you ... | Placing a torch in quicksand on adjacent blocks briefly clears the quicksand, long enough to help you escape. |
20,330,154 | I need to display in excel a matrix, but my last column display special caracteres in excel.
I want to convert this last column in number or String, to be display correctly.
My matrix
```
data
= 'A1' [48]
'A2' [44]
'A3' [45]
'A4' [46]
```
This last column (with brackets) seems to be double.
I wa... | 2013/12/02 | [
"https://Stackoverflow.com/questions/20330154",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/359706/"
] | Try like this:
```
Class<String[]> cls = String[].class;
``` | `String[].class` should do for you. |
18,226,346 | i need to make a div position absolute and make it in center but i used does not make it happen. i have gone crazy trying to make it to the center.
i have tried using left and right value to 0. it should have made the div to the center automatically.
need to figure out what went wrong?
help please!
here is the code ... | 2013/08/14 | [
"https://Stackoverflow.com/questions/18226346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2427498/"
] | You forgot to set the position to absolute
```
.slider-wrap {
width: 1000px;
height: 500px;
left:0; right:0;
top:100px;
background:#096;
z-index:99;
margin:0px auto;
}
```
Add `position:absolute;`
```
.slider-wrap {
position:absolute;
width: 1000px;
height: 500px;
... | The proper way to center a div is as such:
```
.slider-wrap {
...
margin-right: auto;
margin-left: auto;
}
```
Also note that `z-index` will not work unless you set the `position` attribute. ie: `position: absolute;` |
18,226,346 | i need to make a div position absolute and make it in center but i used does not make it happen. i have gone crazy trying to make it to the center.
i have tried using left and right value to 0. it should have made the div to the center automatically.
need to figure out what went wrong?
help please!
here is the code ... | 2013/08/14 | [
"https://Stackoverflow.com/questions/18226346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2427498/"
] | You forgot to set the position to absolute
```
.slider-wrap {
width: 1000px;
height: 500px;
left:0; right:0;
top:100px;
background:#096;
z-index:99;
margin:0px auto;
}
```
Add `position:absolute;`
```
.slider-wrap {
position:absolute;
width: 1000px;
height: 500px;
... | You need to add `position: absolute;` to your css for absolute positioning.
Note: Also add `position: relative;` to the *parent* element you whish to use as wrapper.
So for example:
```
.slider-container {
position: relative;
width: 100%;
height: 100%;
...
}
.slider-wrap {
position: absolute;
... |
18,226,346 | i need to make a div position absolute and make it in center but i used does not make it happen. i have gone crazy trying to make it to the center.
i have tried using left and right value to 0. it should have made the div to the center automatically.
need to figure out what went wrong?
help please!
here is the code ... | 2013/08/14 | [
"https://Stackoverflow.com/questions/18226346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2427498/"
] | You forgot to set the position to absolute
```
.slider-wrap {
width: 1000px;
height: 500px;
left:0; right:0;
top:100px;
background:#096;
z-index:99;
margin:0px auto;
}
```
Add `position:absolute;`
```
.slider-wrap {
position:absolute;
width: 1000px;
height: 500px;
... | Try this it should work fine.
display:block; |
71,783,339 | I'm trying to replace symbols from object in python, I used
```
df_summary.replace('\(|\)!,"-', '', regex=True)
```
[](https://i.stack.imgur.com/vozsS.jpg)
but it didn't change anything. | 2022/04/07 | [
"https://Stackoverflow.com/questions/71783339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18737194/"
] | The replace function is not *in place*. This means that your dataframe will be unchanged, and the result is returned as the return value of the replac function.
You can the the inplace parameter of replace:
```
df_summary.replace('\(|\)!,"-', '', regex=True, inplace=True)
```
Most of the pandas functions are note in... | Apart from addind `regex=True` or setting the result to `df_summary` again, your are using a pattern:
```
`\(|\)!,"-`
```
That matches matches either `(` OR the string `\)!,"-`
As you are referring to symbols, and you want to replace all separate chars `(` `)` `!` `,` `"` `-` you can use a repeated character class... |
71,783,339 | I'm trying to replace symbols from object in python, I used
```
df_summary.replace('\(|\)!,"-', '', regex=True)
```
[](https://i.stack.imgur.com/vozsS.jpg)
but it didn't change anything. | 2022/04/07 | [
"https://Stackoverflow.com/questions/71783339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18737194/"
] | You can either do
```
df_summary.replace('\(|\)!,"-', '', regex=True, inplace=True)
```
or
```
df_summary = df_summary.replace('\(|\)!,"-', '', regex=True)
```
When you only do `df_summary.replace...`, this line returns you a pandas list. You forgot to save it. Please add comments to further assist you | Apart from addind `regex=True` or setting the result to `df_summary` again, your are using a pattern:
```
`\(|\)!,"-`
```
That matches matches either `(` OR the string `\)!,"-`
As you are referring to symbols, and you want to replace all separate chars `(` `)` `!` `,` `"` `-` you can use a repeated character class... |
14,870,665 | I'm developing a web solution to run in the clients existing portal. In this portal they already handle F1 differently from the default behaviour.
I would like to add a "Help" icon to my solution that when clicked simulates pressing F1. Of course I would like the solution to be as cross browser compatible as possible... | 2013/02/14 | [
"https://Stackoverflow.com/questions/14870665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1480182/"
] | You can use this to catch the event in IE:
* [Internet Explorer or any Browser F1 keypress displays your own help](https://stackoverflow.com/questions/3405412/internet-explorer-or-any-browser-f1-keypress-displays-your-own-help)
and use these to fire the event:
* [Is it possible to simulate key press events programm... | On this page <https://github.com/jeresig/jquery.hotkeys#readme> there is this quote:
*"Others, (IE) either let you handle built-in short-cuts, but will add their functionality after your code has executed. Or (Opera/Safari) will not pass those events to the DOM at all.
So, if you bind Ctrl-Q or Alt-F4 and your Safari/O... |
14,870,665 | I'm developing a web solution to run in the clients existing portal. In this portal they already handle F1 differently from the default behaviour.
I would like to add a "Help" icon to my solution that when clicked simulates pressing F1. Of course I would like the solution to be as cross browser compatible as possible... | 2013/02/14 | [
"https://Stackoverflow.com/questions/14870665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1480182/"
] | You can use this to catch the event in IE:
* [Internet Explorer or any Browser F1 keypress displays your own help](https://stackoverflow.com/questions/3405412/internet-explorer-or-any-browser-f1-keypress-displays-your-own-help)
and use these to fire the event:
* [Is it possible to simulate key press events programm... | ```
jQuery.event.trigger({ type : 'keypress', which : 112 });
``` |
13,647 | I am attempting to complete some *simple* homework examples my Russian teacher has given me. (I am learning Russian in my free time, whilst I work full-time)
The example given in my textbook is:
>
> Given: Наша квартира была приватизирована пять лет назад.
>
>
> Desired: *Нашу квартиру приватизировали* пять лет на... | 2016/12/09 | [
"https://russian.stackexchange.com/questions/13647",
"https://russian.stackexchange.com",
"https://russian.stackexchange.com/users/8075/"
] | >
> Наша квартира *была приватизирована* пять лет назад.
>
>
>
The sentence is in the **passive voice** in the past formed with *быть* which agrees with the subject наша квартира in gender(feminine ) = была + приватизирована (past passive participle, short form) also agreeing in gender with the subject.The topic i... | >
> Is my assumption that the sentence is going from the active voice in the given sentence, to the passive voice in the desired sentence, correct?
>
>
>
Well, actually it's vice versa: passive to active.
>
> What part of speech is the word «приватизирована»?
>
>
>
This is "*краткое страдательное причастие*"... |
6,402,339 | I would like to implement a robust IPC solution between a single JVM applet and a C++ application running on the same machine. What is the best approach for doing so?
Any suggestions will be greatly appreciated! Thanks! | 2011/06/19 | [
"https://Stackoverflow.com/questions/6402339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/805320/"
] | sockets are about your best (only reasonable?) choice. although if you are running an applet, you will have to deal with access permissions issues (signing the applet will probably solve these). | Sockets as a transport protocol.
JSON as a message protocol, with optional length header or trailing zero if required. |
35,815,261 | Hybrid apps are obviously a bit new, so it's hard to find good information on this. I know that I need to allow cross origin resource sharing on my server side pages, but this clearly adds a security flaw. On a phonegap/cordova app, I only have client-side control with ajax calls to my server-side page. This means that... | 2016/03/05 | [
"https://Stackoverflow.com/questions/35815261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3822526/"
] | I answered your question, and many others like it, in this blog post: [Client authenticity is not the server's problem](https://paragonie.com/blog/2016/03/client-authenticity-is-not-server-s-problem).
>
> One of the most basic rules of application security is **input validation**. The reason this rule is so fundamen... | This question is asked here every day.
What you want to do is logically impossible. There is no solution. You cannot control the client. |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | The way I solved the problem is I went to the host machine and ran a few commands.
```
sudo mkdir /var/run/sshd
sudo chmod 755 -R /var/run/sshd
sudo service ssh restart
```
I got connected to the machine after that. | 1. Check that sshd in installed and running of the server.
2. Make sure that the daemon is installed and started.You must be able to 'man sshd'. I think that package it is in is open-ssl, and you will need to start the daemon ( and stop it when you don't need it.). |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | I had the same issue but after restarting the sshd daemon I could connect to host.
```
sudo systemctl restart sshd && systemctl status sshd
```
This is only a temporary workaround until you increase the MaxAuthTries parameter. | After many days, I do not know what was the problem in the end, perhaps I really had too many tries and had to wait. Or it was another thing, like a missing openssh installation. I posted a [working guide how to use ssh to download a git repo](https://stackoverflow.com/a/66648529/11154841) here, with the core of it as ... |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | The above error happen when you have limit of failed try to authenticate to the server and you have too many ssh keys on your client (more than value of MaxAuthTries)
What you can try is to increase the value of MaxAuthTries and restart sshd daemon. Or you can limit the number of keys in your `~/.ssh` directory and us... | After many days, I do not know what was the problem in the end, perhaps I really had too many tries and had to wait. Or it was another thing, like a missing openssh installation. I posted a [working guide how to use ssh to download a git repo](https://stackoverflow.com/a/66648529/11154841) here, with the core of it as ... |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | The way I solved the problem is I went to the host machine and ran a few commands.
```
sudo mkdir /var/run/sshd
sudo chmod 755 -R /var/run/sshd
sudo service ssh restart
```
I got connected to the machine after that. | Create an new ssh key pair for user authentication. [SSH Keys and Public Key Authentication guide](https://www.ssh.com/ssh/keygen/)
Just follow the guide. |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | Just **reboot your server** which you want to ssh. It worked for me, previously I was facing the same issue. | This could be because you do not have an openssh server running on your ubuntu. You can run the below command to check the status of your openssh server.
```
ubuntu@ubuntu:~$ sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset... |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | My solution is add my local IP address to the `/etc/hosts.allow`:
```
sshd:192.168.10.88:allow
```
this works for me. | Create an new ssh key pair for user authentication. [SSH Keys and Public Key Authentication guide](https://www.ssh.com/ssh/keygen/)
Just follow the guide. |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | I had the same issue but after restarting the sshd daemon I could connect to host.
```
sudo systemctl restart sshd && systemctl status sshd
```
This is only a temporary workaround until you increase the MaxAuthTries parameter. | Create an new ssh key pair for user authentication. [SSH Keys and Public Key Authentication guide](https://www.ssh.com/ssh/keygen/)
Just follow the guide. |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | The way I solved the problem is I went to the host machine and ran a few commands.
```
sudo mkdir /var/run/sshd
sudo chmod 755 -R /var/run/sshd
sudo service ssh restart
```
I got connected to the machine after that. | The above error happen when you have limit of failed try to authenticate to the server and you have too many ssh keys on your client (more than value of MaxAuthTries)
What you can try is to increase the value of MaxAuthTries and restart sshd daemon. Or you can limit the number of keys in your `~/.ssh` directory and us... |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | That actually means that your IP is blacklisted by the server. Try to whitelist your IP address to be able to login.
You may take a look at the /etc/hosts list to see if your server's ip address have changed. | Create an new ssh key pair for user authentication. [SSH Keys and Public Key Authentication guide](https://www.ssh.com/ssh/keygen/)
Just follow the guide. |
918,667 | I cannot connect to my server via ssh using my computer, but I can connect to this server via my cell phone using termius app. I have checked `/etc/hosts.allow` and `/etc/hosts.deny` and my iptables, and I have alse searched google, it seems no answer fits this problem. I don't know how to solve it , here is `ssh -v 18... | 2017/05/25 | [
"https://askubuntu.com/questions/918667",
"https://askubuntu.com",
"https://askubuntu.com/users/673328/"
] | This could be because you do not have an openssh server running on your ubuntu. You can run the below command to check the status of your openssh server.
```
ubuntu@ubuntu:~$ sudo systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset... | I had this same thing happen, and needed to ssh -v 'ip addr' and then i saw that i needed to accept the certificate.
Also may be an ACL or route rule blocking putty: example -
Putty client has 10.x.x.x addr with firewalls blocking enterprise network from talking to DMZ hosts, but your cell phone at 58.x.x.x whatever p... |
39,529,824 | We have a requirement, that we want to select k random rows from a database.
So, our intial thought was going like this :-
```
table.objects.filter(..).order_by('?')[:k]
```
but then we read over the internet that this is highly inefficient solution so we came up with this (not so innovative):-
```
random.sample(ta... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39529824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3596887/"
] | You can do it like this:
```
<tr ng-repeat="(key, value) in data.Test">
<td> {{value.Testing.static.name}} </td>
</tr>
```
<https://jsfiddle.net/nh5zxoka/3/> | ```js
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.data = {
"Test": [{
"Testing": {
"static": {
"name": "test01"
},
"testboolean": true
}
}, {
"Testing": {
"static": {
"name": "test02"
},
"secondstatic": "yes"
}
}, {
"Testing": {
... |
39,529,824 | We have a requirement, that we want to select k random rows from a database.
So, our intial thought was going like this :-
```
table.objects.filter(..).order_by('?')[:k]
```
but then we read over the internet that this is highly inefficient solution so we came up with this (not so innovative):-
```
random.sample(ta... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39529824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3596887/"
] | You can do it like this:
```
<tr ng-repeat="(key, value) in data.Test">
<td> {{value.Testing.static.name}} </td>
</tr>
```
<https://jsfiddle.net/nh5zxoka/3/> | You do not need the (key, value) here, just
```
<div ng-controller="MyCtrl">
<table>
<tr ng-repeat="val in data.Test">
<td> {{val.Testing.static.name}} </td>
</tr>
</table>
</div>
```
key[0] - is just the first letter of the key "Test" |
39,529,824 | We have a requirement, that we want to select k random rows from a database.
So, our intial thought was going like this :-
```
table.objects.filter(..).order_by('?')[:k]
```
but then we read over the internet that this is highly inefficient solution so we came up with this (not so innovative):-
```
random.sample(ta... | 2016/09/16 | [
"https://Stackoverflow.com/questions/39529824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3596887/"
] | You can do it like this:
```
<tr ng-repeat="(key, value) in data.Test">
<td> {{value.Testing.static.name}} </td>
</tr>
```
<https://jsfiddle.net/nh5zxoka/3/> | Something like this will do the trick:
```
<div ng-controller="MyCtrl">
<table>
<tr ng-repeat="value in data.Test">
<td> {{value.Testing.static.name}} </td>
</tr>
</table>
</div>
```
If you are sure that the hierarchy of your JSON will remain the same, then there is no need to iterate in the j... |
532,879 | $$\int\frac{\mathrm dx}{\sqrt x \cos(1-\sqrt x)}$$
please provide a hint about the substitution. The website gives a long answer [See here.](http://www.wolframalpha.com/input/?i=int%201/%28x%5E%281/2%29cos%281-x%5E%281/2%29%29)
Wondering if there is a simplification. | 2013/10/20 | [
"https://math.stackexchange.com/questions/532879",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/100812/"
] | **Hint**:
$$u = 1 - \sqrt{x} \implies du = -\frac{1}{2 \sqrt{x}} dx$$
so the integral can be written as
$$\int \frac{1}{\cos(1 - \sqrt{x})} \frac{dx}{\sqrt{x}} = \int \frac{1}{\cos{u}} \frac{du}{-2} = -\frac{1}{2} \int \sec{u} du$$ | HINT: Let $u=1-\sqrt{x}$, and get the trig function out of the denominator. |
53,288,831 | Ruby's json library defaults to converting Time objects to Strings
```
require 'json'
Time.at(1000).utc.to_json # => "\"1970-01-01 00:16:40 UTC\""
```
The problem with this is that we lose precision. I'd like to\_json to produce a float instead.
I also know there are some workarounds using `oj` or requiring `json/... | 2018/11/13 | [
"https://Stackoverflow.com/questions/53288831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1449987/"
] | >
> *A straightforward approach is to monkey patch Time, although I'm not fond of doing that, especially to core classes*
>
>
>
There's no JSON format for dates, as far as JSON cares they're just strings. Most languages understand [ISO 8601](https://github.com/ruby/ruby/blob/4444025d16ae1a586eee6a0ac9bdd09e33833f3... | You could save the number of nanoseconds since the Epoch.
```
require 'time'
require 'json'
t = Time.now
#=> 2018-11-13 13:23:32 -0800
json = [t.to_i, t.nsec].to_json
#=> "[1542144212,883611300]"
secs, nsecs = JSON.parse(json)
#=> [1542144212, 883611300]
r = secs + 10**-9 * nsecs
#=> (15421442128836113/10000... |
39,379,637 | I would like to use multiple `geom_smooth` layers in a single ggplot2 chart. When I try to do that, the color scheme gets screwed up. Here is an example demonstrating what is happening.
We construct a simple dataframe we want to visualize.
```
df = data.frame(x = c("a", "b", "c"),
y1 = seq(1, 3),
... | 2016/09/07 | [
"https://Stackoverflow.com/questions/39379637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2252852/"
] | Certainly reshaping your dataset will make things easier, and is the recommended approach. However, if you want to keep using separate layers:
As you haven't mapped a `color` for `geom_smooth`, it uses the default color of blue for the smoothed lines it drew. If you want just the ribbon, use `geom_ribbon` instead.
``... | I would probably do something closer to this:
```
library(dplyr)
df1 <- df %>%
select(x,contains("y1")) %>%
rename(y = y1, y_upr = y1_upr, y_lwr = y1_lwr) %>%
mutate(grp = "y1")
df2 <- df %>%
select(x,contains("y2")) %>%
rename(y = y2, y_upr = y2_upr, y_lwr = y2_lwr) %>%
mutate(grp = "y2")
df_a... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | **HTML**
```
<select name="study-phase" onchange="myFunction()" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="study-year" id="... | You need to define the function before calling it,
For example, in the first select (example 1) im calling a function that isn't defined yet and nothing happens (see console for error)
in the second select (example 2) i define it first then call it.
This makes for a messy html layout with random scripts in it, so in... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | Try using the `.change()` event :
**HTML**
```
<select name="study-phase" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="s... | To done this jquery will be more efficient so you just need to do some thing like this:-
1.Remove onchange="myFunction()" form your select
2.Add this code on your script:-
```
$('#study-phase').on('change',function(){
if ($(this).val() == "pri") {
$("#a")css('display','block');
}});
```
It will work fine |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | Try using the `.change()` event :
**HTML**
```
<select name="study-phase" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="s... | I guess what you want is that when you select the value pri in the first select the second take the value aa. As you use jquery I'll give you an example.
```
$( document ).ready(function() {
$("#study-phase").change(function(){
if($(this).val() === "pri")
{
$("#study-year").val("aa");
}
});
})
... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | **HTML**
```
<select name="study-phase" onchange="myFunction()" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="study-year" id="... | Your JavaScript isn't valid.
Moreover, I think you want to one of the option in the second dropdown once you make change in the first.
You can build on this logic further
Here is a sample minimal code:
```js
function myFunction() {
if (document.getElementById("study-phase").value == "pri")
document.getElem... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | ```
$(function(myFunction()){
if (document.getElementById("study-phase").value == "pri") {
document.getElementById("a").style.display = "block";
}});
```
give error
```
Uncaught SyntaxError: Unexpected token (
```
apart if you revised your code as below it works, as it is vanillaJs you dont need j... | To done this jquery will be more efficient so you just need to do some thing like this:-
1.Remove onchange="myFunction()" form your select
2.Add this code on your script:-
```
$('#study-phase').on('change',function(){
if ($(this).val() == "pri") {
$("#a")css('display','block');
}});
```
It will work fine |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | **HTML**
```
<select name="study-phase" onchange="myFunction()" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="study-year" id="... | To done this jquery will be more efficient so you just need to do some thing like this:-
1.Remove onchange="myFunction()" form your select
2.Add this code on your script:-
```
$('#study-phase').on('change',function(){
if ($(this).val() == "pri") {
$("#a")css('display','block');
}});
```
It will work fine |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | ```
$(function(myFunction()){
if (document.getElementById("study-phase").value == "pri") {
document.getElementById("a").style.display = "block";
}});
```
give error
```
Uncaught SyntaxError: Unexpected token (
```
apart if you revised your code as below it works, as it is vanillaJs you dont need j... | You need to define the function before calling it,
For example, in the first select (example 1) im calling a function that isn't defined yet and nothing happens (see console for error)
in the second select (example 2) i define it first then call it.
This makes for a messy html layout with random scripts in it, so in... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | ```
$(function(myFunction()){
if (document.getElementById("study-phase").value == "pri") {
document.getElementById("a").style.display = "block";
}});
```
give error
```
Uncaught SyntaxError: Unexpected token (
```
apart if you revised your code as below it works, as it is vanillaJs you dont need j... | Your JavaScript isn't valid.
Moreover, I think you want to one of the option in the second dropdown once you make change in the first.
You can build on this logic further
Here is a sample minimal code:
```js
function myFunction() {
if (document.getElementById("study-phase").value == "pri")
document.getElem... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | **HTML**
```
<select name="study-phase" onchange="myFunction()" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="study-year" id="... | You can do something like this instead:
```js
$(document).ready(function() {
$("#study-phase").on("change", function() {
if (document.getElementById("study-phase").value === "pri") {
$('option#a').show();
}
});
});
```
```css
#a,
#b,
#c,
#d,
#f,
#g,
#h,
#j,
#k,
#e,
#i {
display: n... |
44,392,223 | I am trying to perform two processes using bean, my problem is that I can not find the way these processes are performed continuously. The first process is to send an object and the second process is the response of the object.
```
@Component
public class Proceso implements InitializingBean{
private static final S... | 2017/06/06 | [
"https://Stackoverflow.com/questions/44392223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708486/"
] | Try using the `.change()` event :
**HTML**
```
<select name="study-phase" id="study-phase" class="sp-input">
<option value=""></option>
<option id="pri" value="pri">Primary</option>
<option id="pre" value="pre">Prep</option>
<option id="sec" value="sec">Secondary</option>
</select>
<select name="s... | You can do something like this instead:
```js
$(document).ready(function() {
$("#study-phase").on("change", function() {
if (document.getElementById("study-phase").value === "pri") {
$('option#a').show();
}
});
});
```
```css
#a,
#b,
#c,
#d,
#f,
#g,
#h,
#j,
#k,
#e,
#i {
display: n... |
54,531,287 | I would like to be able to push each **|** into an array
Here is my function:
```
def pyramide(lines):
k = 1 * lines - 1
for i in range(0, lines):
for j in range(0, k):
print(end=" ")
k = k - 1
for j in range(0, i+1):
print("|", end=" ")
... | 2019/02/05 | [
"https://Stackoverflow.com/questions/54531287",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11013215/"
] | Split it in 2:
* a list of arrays holding the '|' 's (or other character)
* a function to print the 'pyramid' arrays
Wrapped in a class you get something like:
```
class CPyramide(object):
def __init__(self, lines):
self.pir = []
# construct the array of arrays for the pyramid
# each one... | ```html
def triangle(n):
k = 2*n - 2
for i in range(0, n):
for j in range(0, k):
print(end=" ")
k = k - 1
for j in range(0, i+1):
print("| ", end="")
print("\r")
n = 5
triangle(n)
this will return
D:\>st.py
|
... |
31,119,709 | I am trying to develop server-side using loopback with database connector.
However, I am quite confused with installing loopback on AWS.
[reference for installing loopback on AWS](http://docs.strongloop.com/display/SL/Amazon+EC2)
This website mentioned that only loopback of version 2.0 could be installed.
Yet, when ... | 2015/06/29 | [
"https://Stackoverflow.com/questions/31119709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5009672/"
] | Even if you install the image that comes preconfigured with Loopback 2, you should be able to upgrade to newer versions using npm as you normally would (`sudo npm install -g strongloop` and the like). Imagine if there's a security issue that you'd need that wasn't backported for whatever reason...Loopback is just files... | You can probably install whatever you want.
The difference is that if you want a machine image that contains everything already there and don't want to build it yourself you're stuck to 2.0 here (<https://aws.amazon.com/marketplace/pp/B00PG9I0M0>)
What I would do is use the provided AMI and after that upgrade loo... |
6,478,496 | I have a google site search
<http://www.google.com/cse/manage/create>
Which gives me the following working code:
```
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', { language: '... | 2011/06/25 | [
"https://Stackoverflow.com/questions/6478496",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/356635/"
] | Have a look at <http://code.google.com/apis/customsearch/docs/js/cselement-reference.html#_methods-el>
It looks like the control you create comes with methods. It seems you are looking for the .execute(query) method. | One way is to have the iFrame code right on you homepage and you can customize it. You will find various ways to do it. But if you want to a more personalized thing like have a search box and then have results in your page then I would suggest you do a backend process to querying Google and then post back the results. ... |
399,768 | Here is the MWE:
```
\documentclass{article}
\usepackage[shortlabels]{enumitem}
\begin{document}
\begin{enumerate}[label={Q.\arabic*.}]
\item This is 1
\item This is 2
\item This is 3A
\item This is 3B
\item This is 4
\end{enumerate}
\end{document}
```
How do I get labels to match the items details? So, it... | 2017/11/05 | [
"https://tex.stackexchange.com/questions/399768",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/18495/"
] | If you don't mind doing the special cases semi-manually, you could do the following:
```
\documentclass{article}
\usepackage[shortlabels]{enumitem}
\newlength{\aw}
\settowidth{\aw}{A}
\begin{document}
\begin{enumerate}[label={Q.\arabic*.\hspace*{\aw}}]
\item This is 1
\item This is 2
\addtocounter{enumi}{1}
... | Here is a semi-automated way of constructing these lists. With the code below, you can use the commands
```
\begin{MyList}
\item This is 1
\item This is 2
\item* This is 3A
\item* This is 3B\label{3B}
\item This is 4
\end{MyList}
```
to produce the list:
[ {
wp_enqueue_style( 'stylename', get_template_directory_uri() . '/path_to_your_css.css' );
}
add_action( 'wp_enqueue_scr... |
3,540,533 | I have a theme in which there are numerous options, like:-
* Setting Theme Type among many available
* Setting Body Background Color & Image
* Setting Header & Footer Images
* Setting General Font Face, Size & Color
* Setting Text Area Background Color, and Font Face & Font Color
* Setting Form Area Background Color &... | 2010/08/22 | [
"https://Stackoverflow.com/questions/3540533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/332019/"
] | Try something like this:
```
<?php
function template($file, $data = array())
{
ob_start();
extract($data);
include_once 'path/to/theme/folder/' . $file . '.php';
return ob_get_clean();
}
// Assign values to the template file
$values['theme_type'] = 'default';
$... | Create various stylesheets (`.css`). Each stylesheet represents a theme. Change the `<link>` element's `href` attribute to match the path to the selected theme.
If you're allowing user-uploaded CSS files, make sure to sanitize the input, as IE has the ability to execute parts of a CSS file as if it were JavaScript, le... |
28,275 | Ich suche ein Wort, welches jemanden beschreibt, der äußerst glaubwürdig ist. Also jemanden, bei dem **quasi niemand auf die Idee kommen würde, sie/ihn der Lüge zu bezichtigen,** bzw. jemanden, dem man vertraut.
Außer unantastbar, vertrauenswürdig und glaubwürdig fällt mir nichts ein.
Das gesuchte Wort sollte das fet... | 2016/02/19 | [
"https://german.stackexchange.com/questions/28275",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/16926/"
] | Ich würde eine solche Person **[integer](http://www.duden.de/rechtschreibung/integer)** nennen.
Allerdings setzt dies voraus, dass sie hohe moralische Ansprüche an sich selbst hat - formal kann auch ein aus Überzeugung **böse** handelnder Mensch als integer bezeichnet werden, wenn er damit seinem eigenen Wertesystem f... | Als Alternative fällt mir da noch das übertragene *Institution* ein. So wie in:
>
> Dieser Mann/diese Frau ist eine Institution.
>
>
> |
28,275 | Ich suche ein Wort, welches jemanden beschreibt, der äußerst glaubwürdig ist. Also jemanden, bei dem **quasi niemand auf die Idee kommen würde, sie/ihn der Lüge zu bezichtigen,** bzw. jemanden, dem man vertraut.
Außer unantastbar, vertrauenswürdig und glaubwürdig fällt mir nichts ein.
Das gesuchte Wort sollte das fet... | 2016/02/19 | [
"https://german.stackexchange.com/questions/28275",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/16926/"
] | Ich würde eine solche Person **[integer](http://www.duden.de/rechtschreibung/integer)** nennen.
Allerdings setzt dies voraus, dass sie hohe moralische Ansprüche an sich selbst hat - formal kann auch ein aus Überzeugung **böse** handelnder Mensch als integer bezeichnet werden, wenn er damit seinem eigenen Wertesystem f... | wie wäre es mit **über jeden Zweifel erhaben**? |
28,275 | Ich suche ein Wort, welches jemanden beschreibt, der äußerst glaubwürdig ist. Also jemanden, bei dem **quasi niemand auf die Idee kommen würde, sie/ihn der Lüge zu bezichtigen,** bzw. jemanden, dem man vertraut.
Außer unantastbar, vertrauenswürdig und glaubwürdig fällt mir nichts ein.
Das gesuchte Wort sollte das fet... | 2016/02/19 | [
"https://german.stackexchange.com/questions/28275",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/16926/"
] | Ich würde eine solche Person **[integer](http://www.duden.de/rechtschreibung/integer)** nennen.
Allerdings setzt dies voraus, dass sie hohe moralische Ansprüche an sich selbst hat - formal kann auch ein aus Überzeugung **böse** handelnder Mensch als integer bezeichnet werden, wenn er damit seinem eigenen Wertesystem f... | Als Alternative würde ich noch ***[grundehrlich](http://www.duden.de/rechtschreibung/grundehrlich)*** ins Rennen werfen. Der Nachteil ist, dass es ausschließlich etwas darüber aussagt, welchen Wahrheitsgehalt die Äußerungen der Person haben, als darüber, wie die Person von anderen wahrgenommen wird. |
28,275 | Ich suche ein Wort, welches jemanden beschreibt, der äußerst glaubwürdig ist. Also jemanden, bei dem **quasi niemand auf die Idee kommen würde, sie/ihn der Lüge zu bezichtigen,** bzw. jemanden, dem man vertraut.
Außer unantastbar, vertrauenswürdig und glaubwürdig fällt mir nichts ein.
Das gesuchte Wort sollte das fet... | 2016/02/19 | [
"https://german.stackexchange.com/questions/28275",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/16926/"
] | wie wäre es mit **über jeden Zweifel erhaben**? | Als Alternative fällt mir da noch das übertragene *Institution* ein. So wie in:
>
> Dieser Mann/diese Frau ist eine Institution.
>
>
> |
28,275 | Ich suche ein Wort, welches jemanden beschreibt, der äußerst glaubwürdig ist. Also jemanden, bei dem **quasi niemand auf die Idee kommen würde, sie/ihn der Lüge zu bezichtigen,** bzw. jemanden, dem man vertraut.
Außer unantastbar, vertrauenswürdig und glaubwürdig fällt mir nichts ein.
Das gesuchte Wort sollte das fet... | 2016/02/19 | [
"https://german.stackexchange.com/questions/28275",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/16926/"
] | Als Alternative würde ich noch ***[grundehrlich](http://www.duden.de/rechtschreibung/grundehrlich)*** ins Rennen werfen. Der Nachteil ist, dass es ausschließlich etwas darüber aussagt, welchen Wahrheitsgehalt die Äußerungen der Person haben, als darüber, wie die Person von anderen wahrgenommen wird. | Als Alternative fällt mir da noch das übertragene *Institution* ein. So wie in:
>
> Dieser Mann/diese Frau ist eine Institution.
>
>
> |
28,275 | Ich suche ein Wort, welches jemanden beschreibt, der äußerst glaubwürdig ist. Also jemanden, bei dem **quasi niemand auf die Idee kommen würde, sie/ihn der Lüge zu bezichtigen,** bzw. jemanden, dem man vertraut.
Außer unantastbar, vertrauenswürdig und glaubwürdig fällt mir nichts ein.
Das gesuchte Wort sollte das fet... | 2016/02/19 | [
"https://german.stackexchange.com/questions/28275",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/16926/"
] | wie wäre es mit **über jeden Zweifel erhaben**? | Als Alternative würde ich noch ***[grundehrlich](http://www.duden.de/rechtschreibung/grundehrlich)*** ins Rennen werfen. Der Nachteil ist, dass es ausschließlich etwas darüber aussagt, welchen Wahrheitsgehalt die Äußerungen der Person haben, als darüber, wie die Person von anderen wahrgenommen wird. |
6,059,257 | I'm using IceFaces 1.8.2 with Tomcat 6
On a irregular basis I get the message "Connection is lost" with the option to reload the page. This is not acceptable for a public site.
My question now is if this approach makes sense:
```
Ice.onConnectionLost('document:body',
function() {
window.location.href... | 2011/05/19 | [
"https://Stackoverflow.com/questions/6059257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266478/"
] | I suggest using the `java.text.DateFormat` as shown in [this page](http://www.rgagnon.com/javadetails/java-0099.html) :
```
public static boolean isValidDateStr(String date) {
try {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
sdf.setLenient(false);
sdf.parse(date);
}
catch (P... | I thing using regex for this is almost impossible, due to the complex calculation required for leap years. Jon Skeet is right: use `new SimpleDateFormat("yyyyMMdd")` for this. |
6,059,257 | I'm using IceFaces 1.8.2 with Tomcat 6
On a irregular basis I get the message "Connection is lost" with the option to reload the page. This is not acceptable for a public site.
My question now is if this approach makes sense:
```
Ice.onConnectionLost('document:body',
function() {
window.location.href... | 2011/05/19 | [
"https://Stackoverflow.com/questions/6059257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266478/"
] | I suggest using the `java.text.DateFormat` as shown in [this page](http://www.rgagnon.com/javadetails/java-0099.html) :
```
public static boolean isValidDateStr(String date) {
try {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
sdf.setLenient(false);
sdf.parse(date);
}
catch (P... | the regex for a leap year is very complex: case in point: (this also incorporates full date checking)
```
"(((\\d\\d)(0[48]|[2468][048]|[13579][26])|([02468][048]|[13579][26])(00))(02)([012]\\d))|(\\d\\d([02468][1235679]|[13579][01345789])(02)([01]\\d|2[012345678]))|(\\d\\d\\d\\d((0[13578]|1[02])([012]\\d|3[01])|((0[4... |
6,059,257 | I'm using IceFaces 1.8.2 with Tomcat 6
On a irregular basis I get the message "Connection is lost" with the option to reload the page. This is not acceptable for a public site.
My question now is if this approach makes sense:
```
Ice.onConnectionLost('document:body',
function() {
window.location.href... | 2011/05/19 | [
"https://Stackoverflow.com/questions/6059257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266478/"
] | I thing using regex for this is almost impossible, due to the complex calculation required for leap years. Jon Skeet is right: use `new SimpleDateFormat("yyyyMMdd")` for this. | the regex for a leap year is very complex: case in point: (this also incorporates full date checking)
```
"(((\\d\\d)(0[48]|[2468][048]|[13579][26])|([02468][048]|[13579][26])(00))(02)([012]\\d))|(\\d\\d([02468][1235679]|[13579][01345789])(02)([01]\\d|2[012345678]))|(\\d\\d\\d\\d((0[13578]|1[02])([012]\\d|3[01])|((0[4... |
50,549,041 | Just for fun, I am trying to create a magazine style, two-column layout with CSS like in the image below:
[](https://i.stack.imgur.com/YENLa.png)
I plan to do it by as many means as possible. Probably first with just some `div's` and `float's`. Then ... | 2018/05/27 | [
"https://Stackoverflow.com/questions/50549041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/303685/"
] | Instead of performing the entire multiplication, you only need to keep track of the factors of 2 and 5. If a number can be written as `N = 2^a * 5^b * (factors other than 2 or 5)`, then the number of trailing zeros in `N` is `min(a, b)`. (This is because a trailing zero is just a factor of 10, which requires one 2 and ... | ```
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int s0 = Integer.parseInt(br.readLine());
int s1 = Integer.parseInt(br.readLine());
int num21 = findNumberOf2s(s0);
... |
72,467,770 | I am trying to scrape and sort articles with a body, headline, and date column. However, when pulling the date, I’m running into an error with the time zone:
```
ValueError: time data 'Jun 1, 2022 2:49PM EDT' does not match format '%b %d, %Y %H:%M%p %z'
```
My code is as follows:
```
def get_info(url):
headers=... | 2022/06/01 | [
"https://Stackoverflow.com/questions/72467770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19251626/"
] | Note %z in strptime() is for timezone offsets not names and %Z only accepts certain values for time zones. For details see [API docs](https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior).
Simplest option is to use [dateparser](https://dateutil.readthedocs.io/en/stable/parser.html) module to pars... | As alternate to @CodeMonkey solution, you may also try it by pandas :
```
pd.to_datetime('Jun 1, 2022 2:49PM EDT').tz_localize('US/Eastern')
``` |
58,693,786 | I am working on an RL problem and I created a class to initialize the model and other parameters. The code is as follows:
```
class Agent:
def __init__(self, state_size, is_eval=False, model_name=""):
self.state_size = state_size
self.action_size = 20 # measurement, CNOT, bit-flip
self.memo... | 2019/11/04 | [
"https://Stackoverflow.com/questions/58693786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4595522/"
] | in last code block,
```
def act(self, state):
options = self.model.predict(state)
return np.argmax(options[0]), options
```
self.model is a function which is returning a model, it should be self.model().predict(state) | I used `np.reshape`. So in this case, I did
`density_test = np.reshape(density.flatten(), (1,1,16))`
and the network gave the output. |
2,870,686 | I use TAB and Shift-Tab in Visual Studio to indent an entire selection. This does nothing in Eclipse, and I can't seem to find another way to do it.
Update: I wasn't really paying all that much attention to this initially and did not ask the question correctly.
I now realized that it is in XML files where TAB still do... | 2010/05/20 | [
"https://Stackoverflow.com/questions/2870686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/58880/"
] | `Tab` and `Shift`+`Tab` are the normal ways to do this in Eclipse, just like in Visual Studio.
In addition to the keyboard shortcuts, you can also do this from the Source menu. Source -> Shift Left, and Source -> Shift Right.
Have you checked to make sure tab/shift tabbing is working as you expect in other applicat... | Go to Window Menu -> Preferences -> Java -> Editor -> Typing and make sure the `'Tab key adjusts the indentation of the current line' checkbox is ticked. |
2,870,686 | I use TAB and Shift-Tab in Visual Studio to indent an entire selection. This does nothing in Eclipse, and I can't seem to find another way to do it.
Update: I wasn't really paying all that much attention to this initially and did not ask the question correctly.
I now realized that it is in XML files where TAB still do... | 2010/05/20 | [
"https://Stackoverflow.com/questions/2870686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/58880/"
] | `Tab` and `Shift`+`Tab` are the normal ways to do this in Eclipse, just like in Visual Studio.
In addition to the keyboard shortcuts, you can also do this from the Source menu. Source -> Shift Left, and Source -> Shift Right.
Have you checked to make sure tab/shift tabbing is working as you expect in other applicat... | ctrl + i ---> it is for making accurate indentation to a block of source code. |
2,870,686 | I use TAB and Shift-Tab in Visual Studio to indent an entire selection. This does nothing in Eclipse, and I can't seem to find another way to do it.
Update: I wasn't really paying all that much attention to this initially and did not ask the question correctly.
I now realized that it is in XML files where TAB still do... | 2010/05/20 | [
"https://Stackoverflow.com/questions/2870686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/58880/"
] | ctrl + i ---> it is for making accurate indentation to a block of source code. | Go to Window Menu -> Preferences -> Java -> Editor -> Typing and make sure the `'Tab key adjusts the indentation of the current line' checkbox is ticked. |
217,667 | I tried every solution from [How to run Dropbox daemon in background?](https://unix.stackexchange.com/questions/35624/how-to-run-dropbox-daemon-in-background) and nothing solves my problem:
Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup but the problem is that right no... | 2015/07/22 | [
"https://unix.stackexchange.com/questions/217667",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/34550/"
] | Have a look here:
<https://community.spiceworks.com/topic/131973-dropbox-headless-workstation?page=1#entry-6076539>
A user mentioned:
>
> Just thought I'd mention:
>
>
> (a) the latest distributions seem to make this fairly straightfoward,
> just run `dropbox start` from the command line, BUT (b) watch out for
>... | Best solution would be to find the problem that avoids server starting from `service dropbox start`. Check your logs to see what's happened.
But in the mean time, you can start your daemon with `nohup`, that will keep it running after you logout.
`nohup $HOME/.dropbox-dist/dropboxd &` |
217,667 | I tried every solution from [How to run Dropbox daemon in background?](https://unix.stackexchange.com/questions/35624/how-to-run-dropbox-daemon-in-background) and nothing solves my problem:
Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup but the problem is that right no... | 2015/07/22 | [
"https://unix.stackexchange.com/questions/217667",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/34550/"
] | Have a look here:
<https://community.spiceworks.com/topic/131973-dropbox-headless-workstation?page=1#entry-6076539>
A user mentioned:
>
> Just thought I'd mention:
>
>
> (a) the latest distributions seem to make this fairly straightfoward,
> just run `dropbox start` from the command line, BUT (b) watch out for
>... | thanks a lot for all your answers. Thanks to user [Nixgrrrl](https://unix.stackexchange.com/users/146799/nixgrrrl)'s comment, I realize that it was because I was using ssh -X (the default on my system). As soon as I did normal ssh, trying the humble `dropbox start &` worked :) |
58,390,962 | I have a ad banner integrate in swiftUI with UIViewControllerRepresentable but i doesn't know to add event like adViewDidReceiveAd(). I have learn on <https://developer.apple.com/tutorials/swiftui/interfacing-with-uikit> but the event adViewDidReceiveAd never start
```
struct GADBannerViewController: UIViewControll... | 2019/10/15 | [
"https://Stackoverflow.com/questions/58390962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11876189/"
] | ```
import SwiftUI
import UIKit
import GoogleMobileAds
final class GADBannerViewController: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIViewController {
let view = GADBannerView(adSize: kGADAdSizeBanner)
let viewController = UIViewController()
view... | I find the solution, I post here for others :
```
import SwiftUI
import UIKit
import GoogleMobileAds
final class GADBannerViewController: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIViewController {
let view = GADBannerView(adSize: kGADAdSizeBanner)
let vie... |
600,645 | I have a unity gain differential op amp, using a grounded dual supply, with both inputs AC coupled.
Does the inverting input need a dedicated path to ground or can the DC bias current find its way to ground via the power supply?
[](https://i.stack.im... | 2021/12/16 | [
"https://electronics.stackexchange.com/questions/600645",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/303305/"
] | >
> *Does the inverting input need a dedicated path to ground or can the DC
> bias current find its way to ground via the power supply?*
>
>
>
If the bias current is (say) 10 nA then that flows through R3 and creates a DC error at the input to the device of 470 μV. That will also appear at the output because the D... | You're fine, the inverting input has a path for bias current through the feedback resistor, and of course the non-inverting input has the resistor to ground.
Both inputs have a dc path to ground, which is the important consideration. |
600,645 | I have a unity gain differential op amp, using a grounded dual supply, with both inputs AC coupled.
Does the inverting input need a dedicated path to ground or can the DC bias current find its way to ground via the power supply?
[](https://i.stack.im... | 2021/12/16 | [
"https://electronics.stackexchange.com/questions/600645",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/303305/"
] | You're fine, the inverting input has a path for bias current through the feedback resistor, and of course the non-inverting input has the resistor to ground.
Both inputs have a dc path to ground, which is the important consideration. | The best way to understand and explain circuits in an intuitive way is to show where currents flow (see [my Codidact paper 1](https://electrical.codidact.com/posts/284816)) and what voltages are in circuits ([my Codidact paper 2](https://electrical.codidact.com/posts/284860)).
Here the OP is interested in where the in... |
600,645 | I have a unity gain differential op amp, using a grounded dual supply, with both inputs AC coupled.
Does the inverting input need a dedicated path to ground or can the DC bias current find its way to ground via the power supply?
[](https://i.stack.im... | 2021/12/16 | [
"https://electronics.stackexchange.com/questions/600645",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/303305/"
] | >
> *Does the inverting input need a dedicated path to ground or can the DC
> bias current find its way to ground via the power supply?*
>
>
>
If the bias current is (say) 10 nA then that flows through R3 and creates a DC error at the input to the device of 470 μV. That will also appear at the output because the D... | The best way to understand and explain circuits in an intuitive way is to show where currents flow (see [my Codidact paper 1](https://electrical.codidact.com/posts/284816)) and what voltages are in circuits ([my Codidact paper 2](https://electrical.codidact.com/posts/284860)).
Here the OP is interested in where the in... |
24,643,258 | I am trying to increment an array of 5 in Java by 100 starting at 0(to get the output of: 0,100,200,300,400). For some reason my for loop will not add 100 and when I run the program, it just prints 0,0,0,0,0. Any help would be appreciated.
```
public class Integers {
void createIntegers(int[] arr) {
for ... | 2014/07/08 | [
"https://Stackoverflow.com/questions/24643258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3818410/"
] | It is very easy, you need only slight change :
```
public class Integers {
void createIntegers(int[] arr) {
for (int n = 0; n < arr.length; n++){
arr[n] = 100*n;
}
}
void printIntegers(int[] arr) {
for (int index = 0; index < arr.length; index++) {
... | Two things:
1. You're not setting the integers in your first method
2. You're incrementing by too large a number in the for loop in your first method
Try something more along the lines of multiplying by 100 inside the for loop and storing the result in the index location
```
for(int i = 0; i < arr.length; i++){
a... |
24,643,258 | I am trying to increment an array of 5 in Java by 100 starting at 0(to get the output of: 0,100,200,300,400). For some reason my for loop will not add 100 and when I run the program, it just prints 0,0,0,0,0. Any help would be appreciated.
```
public class Integers {
void createIntegers(int[] arr) {
for ... | 2014/07/08 | [
"https://Stackoverflow.com/questions/24643258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3818410/"
] | Two things:
1. You're not setting the integers in your first method
2. You're incrementing by too large a number in the for loop in your first method
Try something more along the lines of multiplying by 100 inside the for loop and storing the result in the index location
```
for(int i = 0; i < arr.length; i++){
a... | Looks like you need to read up a bit on the basics, here's some sample code to help you achieve what your trying to do. Your code is not doing as expected since your for condition is just looping but not actually assigning anything.
```
public class Test {
private static int[] myIntegers = new int[5];
private static... |
24,643,258 | I am trying to increment an array of 5 in Java by 100 starting at 0(to get the output of: 0,100,200,300,400). For some reason my for loop will not add 100 and when I run the program, it just prints 0,0,0,0,0. Any help would be appreciated.
```
public class Integers {
void createIntegers(int[] arr) {
for ... | 2014/07/08 | [
"https://Stackoverflow.com/questions/24643258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3818410/"
] | It is very easy, you need only slight change :
```
public class Integers {
void createIntegers(int[] arr) {
for (int n = 0; n < arr.length; n++){
arr[n] = 100*n;
}
}
void printIntegers(int[] arr) {
for (int index = 0; index < arr.length; index++) {
... | The body of your for loop inside createIntegers() is empty, and therefore isn't doing anything, as well as the fact that it will only run once, as after it does, n will be 100, and 100 > 5. You need to use a separate variable to increment the list integers, and a separate variable to keep track of the iterations, like ... |
24,643,258 | I am trying to increment an array of 5 in Java by 100 starting at 0(to get the output of: 0,100,200,300,400). For some reason my for loop will not add 100 and when I run the program, it just prints 0,0,0,0,0. Any help would be appreciated.
```
public class Integers {
void createIntegers(int[] arr) {
for ... | 2014/07/08 | [
"https://Stackoverflow.com/questions/24643258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3818410/"
] | It is very easy, you need only slight change :
```
public class Integers {
void createIntegers(int[] arr) {
for (int n = 0; n < arr.length; n++){
arr[n] = 100*n;
}
}
void printIntegers(int[] arr) {
for (int index = 0; index < arr.length; index++) {
... | Looks like you need to read up a bit on the basics, here's some sample code to help you achieve what your trying to do. Your code is not doing as expected since your for condition is just looping but not actually assigning anything.
```
public class Test {
private static int[] myIntegers = new int[5];
private static... |
24,643,258 | I am trying to increment an array of 5 in Java by 100 starting at 0(to get the output of: 0,100,200,300,400). For some reason my for loop will not add 100 and when I run the program, it just prints 0,0,0,0,0. Any help would be appreciated.
```
public class Integers {
void createIntegers(int[] arr) {
for ... | 2014/07/08 | [
"https://Stackoverflow.com/questions/24643258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3818410/"
] | The body of your for loop inside createIntegers() is empty, and therefore isn't doing anything, as well as the fact that it will only run once, as after it does, n will be 100, and 100 > 5. You need to use a separate variable to increment the list integers, and a separate variable to keep track of the iterations, like ... | Looks like you need to read up a bit on the basics, here's some sample code to help you achieve what your trying to do. Your code is not doing as expected since your for condition is just looping but not actually assigning anything.
```
public class Test {
private static int[] myIntegers = new int[5];
private static... |
36,906,719 | The offending line in my index.html file reads
```
<script src="main.dart" type="application/dart"></script>
```
The error report is:
```
Build error:
Transform polymer (PolymerBootstrapTransformer) on myproj_frontend|web/index.html threw error: Invalid argument(s): Illegal character in path
dart:core/uri.dart 855... | 2016/04/28 | [
"https://Stackoverflow.com/questions/36906719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321279/"
] | I have the same problem. Looks like it is an issue with the `analyzer` package `0.27.0` and later.
I solved it by pinning the version in `pubspec.yaml` to `<0.27.0`. | I found that analyzer 0.27.2 is ok, but analyzer 0.27.3 will cause exception “Invalid argument(s): Illegal character in path” on my Win 10.
ps. I use Dart 1.16.0 |
405,341 | I saw a user who asked this question [i wanna know more this Fibonacci's operating Principles](https://stackoverflow.com/questions/66270493/i-wanna-know-more-this-fibonaccis-operating-principles#66270493) who then voted to close his own question.
What results from a person closing their own question rather than just d... | 2021/02/19 | [
"https://meta.stackoverflow.com/questions/405341",
"https://meta.stackoverflow.com",
"https://meta.stackoverflow.com/users/2159528/"
] | This post has an answer [When is it OK to delete your own question?](https://meta.stackoverflow.com/questions/281849/when-is-it-ok-to-delete-your-own-question) that has some good points about not deleting a question.
Rather than automatically trigger a delete instead offer that as an option should a person try to clos... | Guiding users to delete content sounds like a bad idea.
I don't think there is serious misunderstanding of what "close" and "delete" mean even for new users and I'm pretty sure number of "self-close" vote is very small to deserve any additional work even if there is some value in it (I'm not interested in the exact nu... |
405,341 | I saw a user who asked this question [i wanna know more this Fibonacci's operating Principles](https://stackoverflow.com/questions/66270493/i-wanna-know-more-this-fibonaccis-operating-principles#66270493) who then voted to close his own question.
What results from a person closing their own question rather than just d... | 2021/02/19 | [
"https://meta.stackoverflow.com/questions/405341",
"https://meta.stackoverflow.com",
"https://meta.stackoverflow.com/users/2159528/"
] | This post has an answer [When is it OK to delete your own question?](https://meta.stackoverflow.com/questions/281849/when-is-it-ok-to-delete-your-own-question) that has some good points about not deleting a question.
Rather than automatically trigger a delete instead offer that as an option should a person try to clos... | I think, no - if the user has the intent to delete the question, but he can not, it has a reason (mostly, to not lose the work of the answerers). If the user has no intent to delete his question, but wants to close it on some reason, then he gets his vote to close it.
I think, what could be done better:
1. Users migh... |
405,341 | I saw a user who asked this question [i wanna know more this Fibonacci's operating Principles](https://stackoverflow.com/questions/66270493/i-wanna-know-more-this-fibonaccis-operating-principles#66270493) who then voted to close his own question.
What results from a person closing their own question rather than just d... | 2021/02/19 | [
"https://meta.stackoverflow.com/questions/405341",
"https://meta.stackoverflow.com",
"https://meta.stackoverflow.com/users/2159528/"
] | Guiding users to delete content sounds like a bad idea.
I don't think there is serious misunderstanding of what "close" and "delete" mean even for new users and I'm pretty sure number of "self-close" vote is very small to deserve any additional work even if there is some value in it (I'm not interested in the exact nu... | I think, no - if the user has the intent to delete the question, but he can not, it has a reason (mostly, to not lose the work of the answerers). If the user has no intent to delete his question, but wants to close it on some reason, then he gets his vote to close it.
I think, what could be done better:
1. Users migh... |
23,014,043 | is there a way to track using google analytics what radio in a radio group is being selected? Our issue is that if a user tabs through the radio group (for accessibility concerns) it will fire off an event for each option.
Not sure how to get around this besides adding a button to for the user to say i've made my sel... | 2014/04/11 | [
"https://Stackoverflow.com/questions/23014043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/982439/"
] | If you don't have JDK you should probably install it. Find it [here](http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)
**JDK/Java SDK** = Java Development Kit/Java Software Development Kit - what you need to write programs that require Java or use libraries written in Java. For example, if... | You need to install JDK from here <http://www.oracle.com/technetwork/java/javase/downloads/index.html>. what you are having is JRE, but you dont have jdk. remove existing JRE and install JDK from the site. |
23,014,043 | is there a way to track using google analytics what radio in a radio group is being selected? Our issue is that if a user tabs through the radio group (for accessibility concerns) it will fire off an event for each option.
Not sure how to get around this besides adding a button to for the user to say i've made my sel... | 2014/04/11 | [
"https://Stackoverflow.com/questions/23014043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/982439/"
] | If you don't have JDK you should probably install it. Find it [here](http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)
**JDK/Java SDK** = Java Development Kit/Java Software Development Kit - what you need to write programs that require Java or use libraries written in Java. For example, if... | What is the Fully qualified name for Database class ?
You need to install JDK from
<http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html>
Then from JDK folder u will find file called src.zip which is include all the source code of the standard class's . But i believe
this will not sho... |
23,014,043 | is there a way to track using google analytics what radio in a radio group is being selected? Our issue is that if a user tabs through the radio group (for accessibility concerns) it will fire off an event for each option.
Not sure how to get around this besides adding a button to for the user to say i've made my sel... | 2014/04/11 | [
"https://Stackoverflow.com/questions/23014043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/982439/"
] | You need to install JDK from here <http://www.oracle.com/technetwork/java/javase/downloads/index.html>. what you are having is JRE, but you dont have jdk. remove existing JRE and install JDK from the site. | What is the Fully qualified name for Database class ?
You need to install JDK from
<http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html>
Then from JDK folder u will find file called src.zip which is include all the source code of the standard class's . But i believe
this will not sho... |
31,469,681 | I am working on a huge android project with tons of classes. Until now we are compiling with Android 3.2 and giving support to Android 2.3.
Now I am testing to compile with Android 5.1.1, but still giving support to Android 2.3. My surprise was that a lot of code is deprecated now... (`getWith(), getDrawable(), setBac... | 2015/07/17 | [
"https://Stackoverflow.com/questions/31469681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/479886/"
] | Deprecated means two things:
1. There is another (maybe better) solution
2. It isn't fully support anymore
That means that your code `could` be run fine. But Google/Android don't guarantee that.
According to [Java documentation](https://docs.oracle.com/javase/tutorial/java/annotations/predefined.html) the `@Deprecat... | Yes it should work fine. But you really should use the latest methods instead of deprecated ones and use support libraries to make it compatible to the previous versions.
All the deprecated methods that I have used have worked fine, but Google does not guarantee that they will. |
31,469,681 | I am working on a huge android project with tons of classes. Until now we are compiling with Android 3.2 and giving support to Android 2.3.
Now I am testing to compile with Android 5.1.1, but still giving support to Android 2.3. My surprise was that a lot of code is deprecated now... (`getWith(), getDrawable(), setBac... | 2015/07/17 | [
"https://Stackoverflow.com/questions/31469681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/479886/"
] | Deprecated means two things:
1. There is another (maybe better) solution
2. It isn't fully support anymore
That means that your code `could` be run fine. But Google/Android don't guarantee that.
According to [Java documentation](https://docs.oracle.com/javase/tutorial/java/annotations/predefined.html) the `@Deprecat... | You can continue using deprecated methods, they should still work as intended. But you have to be careful, because they could be removed in future versions.
As mentioned in the documention over [developer.android.com](https://developer.android.com/reference/java/lang/Deprecated)
>
> A program element annotated @Depr... |
31,469,681 | I am working on a huge android project with tons of classes. Until now we are compiling with Android 3.2 and giving support to Android 2.3.
Now I am testing to compile with Android 5.1.1, but still giving support to Android 2.3. My surprise was that a lot of code is deprecated now... (`getWith(), getDrawable(), setBac... | 2015/07/17 | [
"https://Stackoverflow.com/questions/31469681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/479886/"
] | Deprecated means two things:
1. There is another (maybe better) solution
2. It isn't fully support anymore
That means that your code `could` be run fine. But Google/Android don't guarantee that.
According to [Java documentation](https://docs.oracle.com/javase/tutorial/java/annotations/predefined.html) the `@Deprecat... | It may stop working with new version.
Example: LocationManager.addNmeaListener(GpsStatus.NmeaListener listener)
Deprecated from API 24.
Stop Working in API 29 (Android 10). No implementation inside (returns false).
In documentation: No-op method to keep backward-compatibility.
Had trouble to find why old code stop... |
44,150,266 | I have a quick question how can I loop over an NSMutable array starting from a certain index.
For Example I have these double loops I want k to start from the same index as l.
```
for (Line *l in L)
{
for (Line *k in L)
{
............
}
}
```
To elaborate further, lets say L has 10 ... | 2017/05/24 | [
"https://Stackoverflow.com/questions/44150266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7438106/"
] | Objective-C is an extension of C, lookup the C `for` loop and you'll have your answer. HTH
**Addendum**
I was going to let you benefit from the learning experience of looking up the C `for` yourself, however at the time of writing all other answers since added give the code but it is not complete, so here is what you... | You have to use an indexed (ordinary) `for` loop instead of fast enumeration (`for-in`):
```
int l;
for (l=startValue; l<=endValue; l++)
{
int i;
for (int i=l; i<=endValue; i++)
{
…
}
}
``` |
44,150,266 | I have a quick question how can I loop over an NSMutable array starting from a certain index.
For Example I have these double loops I want k to start from the same index as l.
```
for (Line *l in L)
{
for (Line *k in L)
{
............
}
}
```
To elaborate further, lets say L has 10 ... | 2017/05/24 | [
"https://Stackoverflow.com/questions/44150266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7438106/"
] | You simply need to modify for-statement.
```
NSInteger indexYouNeed;
NSInteger iterationCount;
for (int i = indexYouNeed; i < iterationCount; i++) {
/* Your code here */
}
```
You may find [this link](https://stackoverflow.com/questions/7476541/for-in-statement-objective-c) helpfulll. | You have to use an indexed (ordinary) `for` loop instead of fast enumeration (`for-in`):
```
int l;
for (l=startValue; l<=endValue; l++)
{
int i;
for (int i=l; i<=endValue; i++)
{
…
}
}
``` |
3,530,949 | I have to solve the equation:
$$\sin x + \cos x = \sin x \cos x$$
This is what I tried:
$$\hspace{1cm} \sin x + \cos x = \sin x \cos x \hspace{1cm} ()^2$$
$$\sin^2 x + 2\sin x \cos x + \cos^2 x = \sin^2 x \cos^2x$$
$$1 + \sin(2x) = \dfrac{4 \sin^2 x \cos^2x}{4}$$
$$1 + \sin(2x) = \dfrac{\sin^2(2x)}{4}$$
$$\sin^2... | 2020/02/01 | [
"https://math.stackexchange.com/questions/3530949",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | Note that when you square the equation
$$(\sin x + \cos x)^2 = (\sin x \cos x)^2$$
which can be factorized as
$$(\sin x + \cos x - \sin x \cos x)(\sin x + \cos x + \sin x \cos x)=0$$
you effectively introduced another equation $\sin x + \cos x =- \sin x \cos x$ in the process beside the original one $\sin x + \co... | As your error has been pointed out, I am providing a different way to tackle the problem without introducing extra solutions.
From the given equation, we have $1=(1-\sin x)(1-\cos x)$, which is equivalent to
$$1=\Biggl(1-\cos\left(\frac{\pi}2-x\right)\Biggr)\left(2\sin^2 \frac{x}{2}\right)=4\sin^2\left(\frac{\pi}{4}-... |
3,530,949 | I have to solve the equation:
$$\sin x + \cos x = \sin x \cos x$$
This is what I tried:
$$\hspace{1cm} \sin x + \cos x = \sin x \cos x \hspace{1cm} ()^2$$
$$\sin^2 x + 2\sin x \cos x + \cos^2 x = \sin^2 x \cos^2x$$
$$1 + \sin(2x) = \dfrac{4 \sin^2 x \cos^2x}{4}$$
$$1 + \sin(2x) = \dfrac{\sin^2(2x)}{4}$$
$$\sin^2... | 2020/02/01 | [
"https://math.stackexchange.com/questions/3530949",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | As your error has been pointed out, I am providing a different way to tackle the problem without introducing extra solutions.
From the given equation, we have $1=(1-\sin x)(1-\cos x)$, which is equivalent to
$$1=\Biggl(1-\cos\left(\frac{\pi}2-x\right)\Biggr)\left(2\sin^2 \frac{x}{2}\right)=4\sin^2\left(\frac{\pi}{4}-... | There is a subtle way to get rid of the extra solutions that uses the work you've done.
When you render
$\sin 2x=2\sin x\cos x =2-2\sqrt{2}$
you then have with $u=\sin x, v=\cos x$:
$uv=1-\sqrt{2}$
$\color{blue}{u+v=uv=1-\sqrt{2}}$
where the blue equation reimposes the original requirement and it's goodbye extran... |
3,530,949 | I have to solve the equation:
$$\sin x + \cos x = \sin x \cos x$$
This is what I tried:
$$\hspace{1cm} \sin x + \cos x = \sin x \cos x \hspace{1cm} ()^2$$
$$\sin^2 x + 2\sin x \cos x + \cos^2 x = \sin^2 x \cos^2x$$
$$1 + \sin(2x) = \dfrac{4 \sin^2 x \cos^2x}{4}$$
$$1 + \sin(2x) = \dfrac{\sin^2(2x)}{4}$$
$$\sin^2... | 2020/02/01 | [
"https://math.stackexchange.com/questions/3530949",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | As your error has been pointed out, I am providing a different way to tackle the problem without introducing extra solutions.
From the given equation, we have $1=(1-\sin x)(1-\cos x)$, which is equivalent to
$$1=\Biggl(1-\cos\left(\frac{\pi}2-x\right)\Biggr)\left(2\sin^2 \frac{x}{2}\right)=4\sin^2\left(\frac{\pi}{4}-... | Using auxiliary angle, we first change the equation
$$
\sin x+\cos x=\sin x \cos x \tag\*{(\*)}
$$
equivalently to
$$
\sqrt{2} \cos \left(x-\frac{\pi}{4}\right)= \frac{\sin 2 x}{2}
$$
Putting $y=x-\dfrac{\pi}{4} $ gives a quadratic equation in $\cos y $
$$
\sqrt{2} \cos y=\frac{1}{2}\left(2 \cos ^{2} y-1\right)
$$
So... |
3,530,949 | I have to solve the equation:
$$\sin x + \cos x = \sin x \cos x$$
This is what I tried:
$$\hspace{1cm} \sin x + \cos x = \sin x \cos x \hspace{1cm} ()^2$$
$$\sin^2 x + 2\sin x \cos x + \cos^2 x = \sin^2 x \cos^2x$$
$$1 + \sin(2x) = \dfrac{4 \sin^2 x \cos^2x}{4}$$
$$1 + \sin(2x) = \dfrac{\sin^2(2x)}{4}$$
$$\sin^2... | 2020/02/01 | [
"https://math.stackexchange.com/questions/3530949",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | Note that when you square the equation
$$(\sin x + \cos x)^2 = (\sin x \cos x)^2$$
which can be factorized as
$$(\sin x + \cos x - \sin x \cos x)(\sin x + \cos x + \sin x \cos x)=0$$
you effectively introduced another equation $\sin x + \cos x =- \sin x \cos x$ in the process beside the original one $\sin x + \co... | There is a subtle way to get rid of the extra solutions that uses the work you've done.
When you render
$\sin 2x=2\sin x\cos x =2-2\sqrt{2}$
you then have with $u=\sin x, v=\cos x$:
$uv=1-\sqrt{2}$
$\color{blue}{u+v=uv=1-\sqrt{2}}$
where the blue equation reimposes the original requirement and it's goodbye extran... |
3,530,949 | I have to solve the equation:
$$\sin x + \cos x = \sin x \cos x$$
This is what I tried:
$$\hspace{1cm} \sin x + \cos x = \sin x \cos x \hspace{1cm} ()^2$$
$$\sin^2 x + 2\sin x \cos x + \cos^2 x = \sin^2 x \cos^2x$$
$$1 + \sin(2x) = \dfrac{4 \sin^2 x \cos^2x}{4}$$
$$1 + \sin(2x) = \dfrac{\sin^2(2x)}{4}$$
$$\sin^2... | 2020/02/01 | [
"https://math.stackexchange.com/questions/3530949",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | Note that when you square the equation
$$(\sin x + \cos x)^2 = (\sin x \cos x)^2$$
which can be factorized as
$$(\sin x + \cos x - \sin x \cos x)(\sin x + \cos x + \sin x \cos x)=0$$
you effectively introduced another equation $\sin x + \cos x =- \sin x \cos x$ in the process beside the original one $\sin x + \co... | Using auxiliary angle, we first change the equation
$$
\sin x+\cos x=\sin x \cos x \tag\*{(\*)}
$$
equivalently to
$$
\sqrt{2} \cos \left(x-\frac{\pi}{4}\right)= \frac{\sin 2 x}{2}
$$
Putting $y=x-\dfrac{\pi}{4} $ gives a quadratic equation in $\cos y $
$$
\sqrt{2} \cos y=\frac{1}{2}\left(2 \cos ^{2} y-1\right)
$$
So... |
2,153,266 | I have situation where in the regular expression is something like this:
`^b?A+b?$`
So `b` *may* match at the start of the string 0 or 1 times, and `A` *must* match one or more times. Again `b` *may* match at the end of the string 0 or 1 times.
Now I want to modify this regular expression in such way that it may matc... | 2010/01/28 | [
"https://Stackoverflow.com/questions/2153266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46279/"
] | Try this:
```
^(bA+|A+b?)$
```
This allows a `b` at the start and then at least one `A`, or some `A`s at the start and optionally a `b` at the end. This covers all the possibilities and is slightly faster than the accepted answer in the case that it doesn't match as only one of the two options needs to be tested (as... | ```
^(b+A+b?|b?A+b+)$
```
why doesn't that work? |
2,153,266 | I have situation where in the regular expression is something like this:
`^b?A+b?$`
So `b` *may* match at the start of the string 0 or 1 times, and `A` *must* match one or more times. Again `b` *may* match at the end of the string 0 or 1 times.
Now I want to modify this regular expression in such way that it may matc... | 2010/01/28 | [
"https://Stackoverflow.com/questions/2153266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46279/"
] | Theres a nice "or" operator in regexps you can use.
```
^(b?A+|A+b?)$
``` | ```
^(b+A+b?|b?A+b+)$
```
why doesn't that work? |
2,153,266 | I have situation where in the regular expression is something like this:
`^b?A+b?$`
So `b` *may* match at the start of the string 0 or 1 times, and `A` *must* match one or more times. Again `b` *may* match at the end of the string 0 or 1 times.
Now I want to modify this regular expression in such way that it may matc... | 2010/01/28 | [
"https://Stackoverflow.com/questions/2153266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46279/"
] | Theres a nice "or" operator in regexps you can use.
```
^(b?A+|A+b?)$
``` | Try this:
```
^(bA+|A+b?)$
```
This allows a `b` at the start and then at least one `A`, or some `A`s at the start and optionally a `b` at the end. This covers all the possibilities and is slightly faster than the accepted answer in the case that it doesn't match as only one of the two options needs to be tested (as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.