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 |
|---|---|---|---|---|---|
30,336,337 | I'm a bit confused about the different between **Events** and **Listeners**.
I understood how you can create your events under `Events` then register them and implement the Handlers in `Handlers\Events`. So here I have events and the handling of events.
They work after I define them in `Providers\EventServiceProvide... | 2015/05/19 | [
"https://Stackoverflow.com/questions/30336337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/391986/"
] | The only difference between them seems to be is, `handler:event` is from Laravel 5.0's folder structure, and `make:listener` is the **new & current** folder structure. **Functionally, they are the same**! - [Upgrade Guide to Laravel 5.1](https://laravel.com/docs/5.1/upgrade#upgrade-5.1.0)
>
> **Commands & Handlers**
... | There's not too much information on this out there, so this might just be speculation. I took a look at [this video](https://www.youtube.com/watch?v=WNYb1r4eMio) and saw that you can use handlers with commands. I think if you're using commands, that makes sense to have all your handlers in one spot. However if you're n... |
30,336,337 | I'm a bit confused about the different between **Events** and **Listeners**.
I understood how you can create your events under `Events` then register them and implement the Handlers in `Handlers\Events`. So here I have events and the handling of events.
They work after I define them in `Providers\EventServiceProvide... | 2015/05/19 | [
"https://Stackoverflow.com/questions/30336337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/391986/"
] | The only difference between them seems to be is, `handler:event` is from Laravel 5.0's folder structure, and `make:listener` is the **new & current** folder structure. **Functionally, they are the same**! - [Upgrade Guide to Laravel 5.1](https://laravel.com/docs/5.1/upgrade#upgrade-5.1.0)
>
> **Commands & Handlers**
... | Listeners vs. Handlers :
A listener `listen` for a specific event to be fired. xxxxCreatedListener will only listen for xxxx
A handler can handle multiple events to be fired. For exemple, let's say you use performing CRUD operations, your handler could wait for the xxxxCreatedEvent, xxxxDeletedEvent, xxxxUpdatedEven... |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | I think the problem lies in the use of `top` which is SQL Server and not Oracle.
Use `rank` instead to get the salary in the decent order and get the first 10 of them:
```
select v.first_name, v.salary
from ( select first_name, salary, rank() over (order by salary desc) r from employees) v
where v.r <= 10
``` | This will work
```
select emp_id, salary from orders
order by salary desc limit 10;
``` |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | Top-N query is typically performed this way in Oracle:
```
select * from (
select first_name, salary
from employees order by salary desc
) where rownum <= 10
```
This one gets you top 10 salaries. | I think the problem lies in the use of `top` which is SQL Server and not Oracle.
Use `rank` instead to get the salary in the decent order and get the first 10 of them:
```
select v.first_name, v.salary
from ( select first_name, salary, rank() over (order by salary desc) r from employees) v
where v.r <= 10
``` |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | Top-N query is typically performed this way in Oracle:
```
select * from (
select first_name, salary
from employees order by salary desc
) where rownum <= 10
```
This one gets you top 10 salaries. | Try this ===
SELECT first\_name, salary FROM employees WHERE salary IN (SELECT salary FROM employees GROUP BY salary ORDER BY salary DESC LIMIT 10); |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | Top-N query is typically performed this way in Oracle:
```
select * from (
select first_name, salary
from employees order by salary desc
) where rownum <= 10
```
This one gets you top 10 salaries. | Try -
```
SELECT first_name, salary
( select first_name, salary
from employees
order by salary Desc)
where rownum <= 10
``` |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | Try -
```
SELECT first_name, salary
( select first_name, salary
from employees
order by salary Desc)
where rownum <= 10
``` | The below Query works in Oracle.
select \* from (select \* from emp order by sal desc) where rownum<=10; |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | Try -
```
SELECT first_name, salary
( select first_name, salary
from employees
order by salary Desc)
where rownum <= 10
``` | This will work
```
select emp_id, salary from orders
order by salary desc limit 10;
``` |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | Top-N query is typically performed this way in Oracle:
```
select * from (
select first_name, salary
from employees order by salary desc
) where rownum <= 10
```
This one gets you top 10 salaries. | The below Query works in Oracle.
select \* from (select \* from emp order by sal desc) where rownum<=10; |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | I think the problem lies in the use of `top` which is SQL Server and not Oracle.
Use `rank` instead to get the salary in the decent order and get the first 10 of them:
```
select v.first_name, v.salary
from ( select first_name, salary, rank() over (order by salary desc) r from employees) v
where v.r <= 10
``` | Try this ===
SELECT first\_name, salary FROM employees WHERE salary IN (SELECT salary FROM employees GROUP BY salary ORDER BY salary DESC LIMIT 10); |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | The below Query works in Oracle.
select \* from (select \* from emp order by sal desc) where rownum<=10; | Try this ===
SELECT first\_name, salary FROM employees WHERE salary IN (SELECT salary FROM employees GROUP BY salary ORDER BY salary DESC LIMIT 10); |
24,767,679 | I wrote this sql query:
```
select first_name, salary
from employees
where salary in( select distinct top(10) salary from employees order by salary disc );
```
When I ran it, I got this error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
What could have caused the ... | 2014/07/15 | [
"https://Stackoverflow.com/questions/24767679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3614370/"
] | I think the problem lies in the use of `top` which is SQL Server and not Oracle.
Use `rank` instead to get the salary in the decent order and get the first 10 of them:
```
select v.first_name, v.salary
from ( select first_name, salary, rank() over (order by salary desc) r from employees) v
where v.r <= 10
``` | The below Query works in Oracle.
select \* from (select \* from emp order by sal desc) where rownum<=10; |
123,439 | Recently, I learned about the concept of the [51% attack](https://www.investopedia.com/terms/1/51-attack.asp) which a malicious actor could perform on a cryptocurrency. Essentially, if you can control >50% of the hashing power for a given cryptocurrency, you can control the blockchain which allows you to do all sorts o... | 2020/04/03 | [
"https://money.stackexchange.com/questions/123439",
"https://money.stackexchange.com",
"https://money.stackexchange.com/users/44939/"
] | Generally new cryptocurrencies are protected either by a complete lack of incentive to attack them, or by amassing support leading up to their eventual "launch." Older ones are somewhat protected by people being vigilant and communities occasionally agreeing on hard forks to ignore transactions on "compromised" chains;... | Many cryptocurrencies are launched with the intent to fleece people by giving you money for worthless cryptocurrency. So all you need is a great launch and lots of initial sales. Since the intent was never for the victims / suckers to make any profit, who cares about a 51% attack? The people who launched the cryptocurr... |
21,147,988 | I'm a junior .NET developer and our company has a ton of code in their main application. All of our css for the web application is using bootstrap 2.3. I've been assigned the task to migrate from 2.3 to the new 3.0. This update has a ton of major changes. I'm looking for any and all suggestions on how I can make this w... | 2014/01/15 | [
"https://Stackoverflow.com/questions/21147988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2859933/"
] | Bootstrap 3 is a major upgrade. You will have to "manually" update the classes in each file, and in some cases change the structure of your markup. There are some tools that can help..
See:
[Updating Bootstrap to version 3 - what do I have to do?](https://stackoverflow.com/questions/17974998/updating-bootstrap-to-ver... | Use the find and replace for entire solution. |
16,069,799 | To get a MapView, I would have to extend my class with MapActivity. When I try to do this, I get an error "Create MapActivity Class".
If I do not extend it with MapActivity and use Activity instead, I get the following Exception.
```
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.strive.gostr... | 2013/04/17 | [
"https://Stackoverflow.com/questions/16069799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2208748/"
] | I'm the lead developer and maintainer of Open source project [RioFS](https://github.com/skoobe/riofs): a userspace filesystem to mount Amazon S3 buckets.
Our project is an alternative to “s3fs” project, main advantages comparing to “s3fs” are: simplicity, the speed of operations and bugs-free code. Currently [the proj... | Try this method using S3Backer:
```
mountpoint/
file # (e.g., can be used as a virtual loopback)
stats # human readable statistics
```
Read more about it hurr:
<http://www.turnkeylinux.org/blog/exploring-s3-based-filesystems-s3fs-and-s3backer> |
16,069,799 | To get a MapView, I would have to extend my class with MapActivity. When I try to do this, I get an error "Create MapActivity Class".
If I do not extend it with MapActivity and use Activity instead, I get the following Exception.
```
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.strive.gostr... | 2013/04/17 | [
"https://Stackoverflow.com/questions/16069799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2208748/"
] | This works for me:
```
sudo s3fs bucketname /mnt/folder -o allow_other,nosuid,use_cache=/mnt/foldercache
```
If you need to debug, just add `,f2 -f -d`:
```
sudo s3fs bucketname /mnt/folder -o allow_other,nosuid,use_cache=/mnt/foldercache,f2 -f -d
``` | Try this method using S3Backer:
```
mountpoint/
file # (e.g., can be used as a virtual loopback)
stats # human readable statistics
```
Read more about it hurr:
<http://www.turnkeylinux.org/blog/exploring-s3-based-filesystems-s3fs-and-s3backer> |
16,069,799 | To get a MapView, I would have to extend my class with MapActivity. When I try to do this, I get an error "Create MapActivity Class".
If I do not extend it with MapActivity and use Activity instead, I get the following Exception.
```
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.strive.gostr... | 2013/04/17 | [
"https://Stackoverflow.com/questions/16069799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2208748/"
] | I'm the lead developer and maintainer of Open source project [RioFS](https://github.com/skoobe/riofs): a userspace filesystem to mount Amazon S3 buckets.
Our project is an alternative to “s3fs” project, main advantages comparing to “s3fs” are: simplicity, the speed of operations and bugs-free code. Currently [the proj... | This works for me:
```
sudo s3fs bucketname /mnt/folder -o allow_other,nosuid,use_cache=/mnt/foldercache
```
If you need to debug, just add `,f2 -f -d`:
```
sudo s3fs bucketname /mnt/folder -o allow_other,nosuid,use_cache=/mnt/foldercache,f2 -f -d
``` |
3,856 | I've recently signed up for Google Apps because of the email support. I only use the web based gmail client for all my mail. I'd like to have a professional email signature for each email that I send that includes a small image which is the Logo of my company. How can include such an signature with Gmail? | 2010/07/16 | [
"https://webapps.stackexchange.com/questions/3856",
"https://webapps.stackexchange.com",
"https://webapps.stackexchange.com/users/1208/"
] | Google recently [announced](http://gmailblog.blogspot.com/2010/07/rich-text-signatures.html) support for rich text in signatures. That means you can now configure the font family, size and color, as well as insert images into the signature. Just go to your gmail settings and you'll find it right there, no need to enabl... | Just to add to that if you have multiple accounts (and hence want multiple signatures) Gmail can now handle this too (I used to have to use 'labs' canned responses to do this). So if you also set up Gmail to automatically respond to the e-mail account the message was originally sent to it means you automatically get th... |
682,123 | I have an OpenVPN client on a Windows 7, that connects to an OpenVPN server with tap.
The tunnel establishes correctly.
AFAIK, tap means that my virtual adapter is 'virtually' connected to the remote LAN, gets a remote LAN ip and participate in the LAN broadcast domani and so on.
When the tunnel is establish... | 2015/04/12 | [
"https://serverfault.com/questions/682123",
"https://serverfault.com",
"https://serverfault.com/users/87002/"
] | Not being too Windows savvy wrt. OpenVPN, FWIW, here is my bid on what the culprit might be here:
* Looking at the output from your Windows route command, it seems you are missing a gateway entry for the OpenVPN network. True, you have an address on the VPN net (the 172.16.1.40 address), but no gw is defined for that ... | I have a feeling you are not pushing your routes correctly from the server. I noticed that your gateway for the VPN is an IPv6 address.
Try using the `push` option in server.conf to push your routes. You might also want to add the `server` directive so you can reserve the client subnet.
If you're on linux you will ... |
682,123 | I have an OpenVPN client on a Windows 7, that connects to an OpenVPN server with tap.
The tunnel establishes correctly.
AFAIK, tap means that my virtual adapter is 'virtually' connected to the remote LAN, gets a remote LAN ip and participate in the LAN broadcast domani and so on.
When the tunnel is establish... | 2015/04/12 | [
"https://serverfault.com/questions/682123",
"https://serverfault.com",
"https://serverfault.com/users/87002/"
] | Locate the OpenVPNgui.exe, openvpn.exe and openvpnserver.exe files in the bin folder of your open vpn install. Right-click the executables, select properties and then the compatibility tab. Click the "Run this program as an administrator" check box, and close the properties panel. Completely close out of OpenVPN (use t... | I have a feeling you are not pushing your routes correctly from the server. I noticed that your gateway for the VPN is an IPv6 address.
Try using the `push` option in server.conf to push your routes. You might also want to add the `server` directive so you can reserve the client subnet.
If you're on linux you will ... |
1,273 | I can get the link to a **question** by hovering the cursor over its title. What's the smart way to get a direct link to one of the **answers**? The only way I know is to go to the user's page and hunt for it there. So I am clearly missing something. | 2019/05/09 | [
"https://space.meta.stackexchange.com/questions/1273",
"https://space.meta.stackexchange.com",
"https://space.meta.stackexchange.com/users/6944/"
] | All posts (questions and answers) have a "share" link beneath them, in the same area where the "edit" link is. This brings up a pop-up with a short URL that links directly to the question or answer. | This is a test of `https://space.meta.stackexchange.com/q/1273/58`
[What's the easiest way to get a link directly to an answer?](https://space.meta.stackexchange.com/q/1273/58)
Testing `https://space.meta.stackexchange.com/a/1274/58`
<https://space.meta.stackexchange.com/a/1274/58> |
1,273 | I can get the link to a **question** by hovering the cursor over its title. What's the smart way to get a direct link to one of the **answers**? The only way I know is to go to the user's page and hunt for it there. So I am clearly missing something. | 2019/05/09 | [
"https://space.meta.stackexchange.com/questions/1273",
"https://space.meta.stackexchange.com",
"https://space.meta.stackexchange.com/users/6944/"
] | All posts (questions and answers) have a "share" link beneath them, in the same area where the "edit" link is. This brings up a pop-up with a short URL that links directly to the question or answer. | It does work, even with long titles. However, this is *display feature* (appearance only) and is subject to change. It's not the same as button that creats a real text string of the form: `[title](url)` which you can copy/paste anywhere without depending on the page to regenerate the appearance of the title.
Also, ~~... |
58,262,036 | I'm trying to add columns (or delete them if the number is reduced) between where "ID" and "Total" are based on the cell value in B1.

How could this be done automatically every time the cell is updated?
Code I have so far
```
Private Sub Worksheet_Change(ByVal Target As Ran... | 2019/10/06 | [
"https://Stackoverflow.com/questions/58262036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3573760/"
] | There's a setting in interface builder for estimated size - set it to None.
[](https://i.stack.imgur.com/LvYQx.png)
Change to None:
[](https://i.stack.imgur.com/4kMTf.png) | I actually have never worked with XIBs or flow layouts, but I am currently working on some custom collection views: from what I know, in the most general case, it's not the collection view itself who's "choosing self-sizing", it's the layout object.
Collection view on itself or it's delegate do not have any methods th... |
12,531,333 | I'm looking for a way to send a user a regular file (mp3s or pictures), and keeping count of how many times this file was accessed **without going through an HTML/PHP page**.
For example, the user will point his browser to bla.com/file.mp3 and start downloading it, while a server-side script will do something like sav... | 2012/09/21 | [
"https://Stackoverflow.com/questions/12531333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688892/"
] | You will need to go through a php script, what you could do is rewrite the extensions you want to track, preferably at the folder level, to a php script which then does the calculations you need and serves the file to the user.
For Example:
If you want to track the /downloads/ folder you would create a rewrite on you... | Do you mean that you don't want your users to be presented with a specific page and interrupt their flow? If you do, you can still use a PHP page using the following steps. (I'm not up to date with PHP so it'll be pseudo-code, but you'll get the idea)
* Provide links to your file as (for example) <http://example.com/t... |
12,531,333 | I'm looking for a way to send a user a regular file (mp3s or pictures), and keeping count of how many times this file was accessed **without going through an HTML/PHP page**.
For example, the user will point his browser to bla.com/file.mp3 and start downloading it, while a server-side script will do something like sav... | 2012/09/21 | [
"https://Stackoverflow.com/questions/12531333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688892/"
] | You will need to go through a php script, what you could do is rewrite the extensions you want to track, preferably at the folder level, to a php script which then does the calculations you need and serves the file to the user.
For Example:
If you want to track the /downloads/ folder you would create a rewrite on you... | You would need to scan log files. Regardless you most likely would want to store counters in a database?
There is a great solution in serving static files using PHP:
<https://tn123.org/mod_xsendfile/> |
38,449,255 | I thought I knew a thing or two... then I met RegEx.
So what I am trying to do is a multistring negative look-ahead? Is that a thing?
Basically I want to find when a 3rd string exists BUT two precursory strings do NOT.
```
(?i:<!((yellow thing)\s(w+\s+){0,20}(blue thing))\s(\w+\s+){0,100}(green thing))
```
Target St... | 2016/07/19 | [
"https://Stackoverflow.com/questions/38449255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1040450/"
] | The error message is misleading. The problem is that the compiler has
no information what type the values `.Zero`, `.NotZero` refer to.
The problem is also unrelated to managed objects or the `valueForKey`
method, you would get the same error message for
```
func foo(value: Int) {
let eltType = value == 0 ? .Zero... | Remove the bracelet seems to works :
`let eltType = (object.valueForKey("type")! as! Int) == 0 ? .Zero : .NotZero` |
375,793 | I am studying mathematical modeling of a battery in simulink and for this it is necessary to determine some parameters. I'm stuck in the part where I need to determine an alpha parameter, which would be the relation between capacity and temperature. Not all battery manufacturers provide this parameter and would like to... | 2018/05/22 | [
"https://electronics.stackexchange.com/questions/375793",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/186980/"
] | Working with Li-ion or LiPo cells, I never heard of an *alpha* parameter in datasheets. But, usually you can easily find the discharge curves at various temperatures i.e. you can estimate a correlation coefficient between temperature and total capacity. | IEC 61215 standard requires this measurement for Li-ion and I believe the manufacturer must make the results of the testing available to the public. I have found the report for some batteries in the past. All I remember is I don't want to do that again.
You can measure it. Follow the IEC 61215 testing methods.
See:... |
32,292,130 | So I know what the `apply()` function does in javascript, but if you were to implement it on your own, how would you do that? Preferably don't use bind, since that's pretty dependent on apply.
NOTE: I'm asking out of curiosity, I don't want to actually do this. | 2015/08/30 | [
"https://Stackoverflow.com/questions/32292130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3082194/"
] | You're basically asking how to apply different transformations to an array depending on the index of the specific item. With Ruby you can chain `with_index` onto enumerators and then use the index inside your enumerator block as you loop through each array item. In order to transform an array into a new one, you will n... | You want a simple way?
```
n = 5
test = []
(n/2).times.with_object([]) do
test << gets.chomp.upcase
test << gets.chomp
end
test << gets.chomp.upcase if n.even?
```
More Rubylike:
```
n.times.with_object([]) do |i,test|
str = gets.chomp
str.upcase! if i.odd?
test << str
end
``` |
63,779,680 | I am implementing a library following a template method design pattern. It involves creating costly IO connection. To avoid any resource leaks, i want to enforce singleton instance on abstract class level. client just need to override the method which involves logic.
how can i do with kotlin?
```
abstract class Singl... | 2020/09/07 | [
"https://Stackoverflow.com/questions/63779680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1554241/"
] | Unfortunately, there is no way to enforce that only objects (singletons in Kotlin) can inherit from a certain abstract/open class or interface in Kotlin. `object` declaration is just syntactic sugar for a regular class with a Singleton pattern.
I know it's not much, but I guess you can achieve this to a certain degree... | Instead of creating abstract class just change the code like this:-
```
object SingletonConnection{
fun start(){ /* code */ }
fun connect(){ /* code */ }
fun clientLogic()
}
```
It will provide the same implementation which you want to achieve using abstract class.
Also get the method using this c... |
3,686,846 | I have to solve this integral but I don't understand which substitution I have to use. I've tried with $\sqrt{v^2+w^2}=t$, $v^2+w^2=t$, adding and subtracting $1$ in the numerator, adding and subtracting $2w$ under square root, but no dice. | 2020/05/22 | [
"https://math.stackexchange.com/questions/3686846",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/518653/"
] | For convergence, we require $0 < |v| \leq 1$, and then without loss of generatlity we can take $v > 0$. The trick here is to let $w = v \sinh x$, so that
\begin{aligned}
v^2+w^2 &= v^2 (1 + \sinh^2 x) = v^2 \cosh^2 x, \\
dw &= v \cosh x \; dx, \\
x &= \sinh^{-1} \frac{w}{v}
\end{aligned}
Our integral then becomes
$$\in... | Hint: recall that
$$ \int \frac{1}{\sqrt{1+w^2}} dw = \sinh^{-1}(w) +C $$
where $\sinh^{-1}$ indicates the inverse of the hyperbolic sine function. Consider the substitution $w=tv$ and proceed. |
3,686,846 | I have to solve this integral but I don't understand which substitution I have to use. I've tried with $\sqrt{v^2+w^2}=t$, $v^2+w^2=t$, adding and subtracting $1$ in the numerator, adding and subtracting $2w$ under square root, but no dice. | 2020/05/22 | [
"https://math.stackexchange.com/questions/3686846",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/518653/"
] | we have:
$$I=\int\_0^{\sqrt{1-v^2}}\frac 1{\sqrt{v^2+w^2}}dw=\frac 1v\int\_0^{\sqrt{1-v^2}}\frac 1{\sqrt{1+(w/v)^2}}dw$$
now if we let $x=\frac wv\Rightarrow dw=vdx$ and so:
$$I=\int\_0^{\frac{\sqrt{1-v^2}}{v}}\frac 1{\sqrt{1+x^2}}dx$$
which is now a standard integral that can be computed by letting $x=\sinh(y)$ and re... | Hint: recall that
$$ \int \frac{1}{\sqrt{1+w^2}} dw = \sinh^{-1}(w) +C $$
where $\sinh^{-1}$ indicates the inverse of the hyperbolic sine function. Consider the substitution $w=tv$ and proceed. |
3,686,846 | I have to solve this integral but I don't understand which substitution I have to use. I've tried with $\sqrt{v^2+w^2}=t$, $v^2+w^2=t$, adding and subtracting $1$ in the numerator, adding and subtracting $2w$ under square root, but no dice. | 2020/05/22 | [
"https://math.stackexchange.com/questions/3686846",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/518653/"
] | we have:
$$I=\int\_0^{\sqrt{1-v^2}}\frac 1{\sqrt{v^2+w^2}}dw=\frac 1v\int\_0^{\sqrt{1-v^2}}\frac 1{\sqrt{1+(w/v)^2}}dw$$
now if we let $x=\frac wv\Rightarrow dw=vdx$ and so:
$$I=\int\_0^{\frac{\sqrt{1-v^2}}{v}}\frac 1{\sqrt{1+x^2}}dx$$
which is now a standard integral that can be computed by letting $x=\sinh(y)$ and re... | For convergence, we require $0 < |v| \leq 1$, and then without loss of generatlity we can take $v > 0$. The trick here is to let $w = v \sinh x$, so that
\begin{aligned}
v^2+w^2 &= v^2 (1 + \sinh^2 x) = v^2 \cosh^2 x, \\
dw &= v \cosh x \; dx, \\
x &= \sinh^{-1} \frac{w}{v}
\end{aligned}
Our integral then becomes
$$\in... |
14,112,927 | I've got an installation of Plone 4.2.1 running nicely, but visitors to the site can click on the Users tab in the main menu and go straight to a search of all my registered users. Certainly, anonymous visitors are unable to actually list anyone, but I don't want this functionality at all.
What's the Plone way of:
* ... | 2013/01/01 | [
"https://Stackoverflow.com/questions/14112927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/520763/"
] | The `Users` tab is only shown because there is a `Members` folder (with the title `Users`) in the root that is publicly visibile.
You have three options to deal with the default; make the `Members` folder private, delete it altogether, or remove the `index_html` default view.
Unpublish
---------
You can 'unpublish',... | You can just delete the Users folder. |
11,820,142 | >
> **Possible Duplicate:**
>
> [Android - How to determine the Absolute path for specific file from Assets?](https://stackoverflow.com/questions/4744169/android-how-to-determine-the-absolute-path-for-specific-file-from-assets)
>
>
>
I am trying to pass a file to File(String path) class. Is there a way to find... | 2012/08/05 | [
"https://Stackoverflow.com/questions/11820142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/875708/"
] | AFAIK, you can't create a `File` from an assets file because these are stored in the apk, that means there is no path to an assets folder.
But, you can try to create that `File` using a buffer and the [`AssetManager`](http://developer.android.com/reference/android/content/res/AssetManager.html) (it provides access to ... | Unless you unpack them, assets remain inside the apk. Accordingly, there isn't a path you can feed into a File. The path you've given in your question will work with/in a WebView, but I think that's a special case for WebView.
You'll need to unpack the file or use it directly.
If you have a Context, you can use `cont... |
39,576,750 | I have the following project structure `settings.gradle`:
```
include 'B'
include 'C'
rootProject.name = 'A'
```
How add gradle to subproject root project as dependency? | 2016/09/19 | [
"https://Stackoverflow.com/questions/39576750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6464377/"
] | As far as the `project` method is concerned, the root project has no name. So this is the syntax in project B's build.gradle:
```
dependencies {
compile project(':')
}
```
However, it is rarely a good idea to do this. It is too easy to end up with circular dependencies. Most multi-module projects have a separate "... | I assume the question being asked is: **"How to add a Gradle root project as dependency to a subproject?"**
The following worked for me, when I added this in my subproject's build.gradle.
```
dependencies {
//Add the root/parent project as a dependency
compile project(":")
}
//Without this, my subproject's t... |
47,636,430 | I'm struggling to setup nginx inside a docker container. I basically have two containers:
* a php:7-apache container that serves a dynamic website, including its static contents.
* a nginx container, with a volume mounted inside it as a **/home/www-data/static-content** folder (I do this in my docker-compose.yml), to ... | 2017/12/04 | [
"https://Stackoverflow.com/questions/47636430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | It looks like you'd do well to take advantage of ImageMagick's "-gravity" setting here. This might not be exactly what you're looking for, but notice how "-gravity" works to locate the overlay image with "-composite", and the text is located with "-annotate" using a command like this...
```
convert foo.png -resize 572... | Here is an alternate way to do it in ImageMagick using montage.
logo.jpg
[](https://i.stack.imgur.com/9CtME.jpg)
```
montage -title "Testing" logo.jpg -geometry 160x120+25+25 -tile 1x1 -frame 0 -background white logo_title.jpg
```
[![enter image ... |
2,917,916 | I was trying to use generating functions to get a closed form for the sum of first $n$ positive integers.
So far I got to $G(x) = \frac{1}{(1-x)^3}$ but I don't know how to convert this back to the coefficient on power series. | 2018/09/15 | [
"https://math.stackexchange.com/questions/2917916",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/525966/"
] | You can use $\frac 1{1-x}=\sum\_{i=0}^\infty x^i$ and take two derivatives
$$\frac {d^2}{dx^2}\frac 1{1-x}=\frac 2{(1-x)^3}=\frac {d^2}{dx^2}\sum\_{i=0}^\infty x^i=\sum\_{i=0}^\infty(i+2)(i+1)x^i\\=1+3x+6x^2+10x^3+\ldots$$
which is off by $1$ in the index. | Using [Binomial series](https://en.wikipedia.org/wiki/Binomial_series),
for $|-x|<1,$
$$(1-x)^{-3}=\sum\_{r=0}^\infty\dfrac{(-3)(-2)\cdots\{-3-(r-1)\}}{r!}(-x)^r$$
Now $\dfrac{(-3)(-3-1)\cdots\{-3-(r-1)\}}{r!}=(-1)^r\dfrac{(r+2)(r+1)\cdots3}{r!}=(-1)^r\dfrac{(r+1)(r+2)}2$ |
2,917,916 | I was trying to use generating functions to get a closed form for the sum of first $n$ positive integers.
So far I got to $G(x) = \frac{1}{(1-x)^3}$ but I don't know how to convert this back to the coefficient on power series. | 2018/09/15 | [
"https://math.stackexchange.com/questions/2917916",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/525966/"
] | You can use $\frac 1{1-x}=\sum\_{i=0}^\infty x^i$ and take two derivatives
$$\frac {d^2}{dx^2}\frac 1{1-x}=\frac 2{(1-x)^3}=\frac {d^2}{dx^2}\sum\_{i=0}^\infty x^i=\sum\_{i=0}^\infty(i+2)(i+1)x^i\\=1+3x+6x^2+10x^3+\ldots$$
which is off by $1$ in the index. | Since $\frac{1}{1-x}=1+x+x^2+x^3+\ldots$ for any $x\in(-1,1)$, we have
$$ [x^n]\frac{1}{(1-x)^k} = \begin{array}{c}\small\text{number of ways for writing }n\\\small\text{as a sum of }k\small\text{ natural numbers}\end{array} $$
and the RHS is given by [stars and bars](https://en.wikipedia.org/wiki/Stars_and_bars_(comb... |
2,917,916 | I was trying to use generating functions to get a closed form for the sum of first $n$ positive integers.
So far I got to $G(x) = \frac{1}{(1-x)^3}$ but I don't know how to convert this back to the coefficient on power series. | 2018/09/15 | [
"https://math.stackexchange.com/questions/2917916",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/525966/"
] | You can use $\frac 1{1-x}=\sum\_{i=0}^\infty x^i$ and take two derivatives
$$\frac {d^2}{dx^2}\frac 1{1-x}=\frac 2{(1-x)^3}=\frac {d^2}{dx^2}\sum\_{i=0}^\infty x^i=\sum\_{i=0}^\infty(i+2)(i+1)x^i\\=1+3x+6x^2+10x^3+\ldots$$
which is off by $1$ in the index. | Let $\frac{1}{(1-x)^3}=\sum\_{i=0}^{\infty}a\_ix^i$, then $$1=(1-3x+3x^2-x^3)\sum\_{i=0}^{\infty}a\_ix^i=\sum\_{i=0}^{\infty}a\_ix^i-\sum\_{i=0}^{\infty}3a\_ix^{i+1}+\sum\_{i=0}^{\infty}3a\_ix^{i+2}-\sum\_{i=0}^{\infty}a\_ix^{i+3}$$
From this we get (by comparing LHS and RHS):
* $1=a\_0$
* $0=a\_1-3a\_0\Rightarrow a\... |
25,826,293 | Why two different strings of literals can't be replaced with = operator?
i thought maybe it's because that they are an array of literals and two different arrays cant be replaced
wondered if there is another reason and if what i said is nonsense
example:
```
char s1[] = "ABCDEFG";
char s2[] = "XYZ";
s1=s2; ERROR
``... | 2014/09/13 | [
"https://Stackoverflow.com/questions/25826293",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3783574/"
] | Arrays have no the assignment operator and may not be used as initializers for other arrays because they are converted to pointers to their first elements when are used in expressions.
Use standard C function `strcpy` declared in header `<cstring>` if you want "to assign" one character array to other that contain stri... | If you're using C++, and apparently you're not very familiar with pointers....using std::string could be easier for you:
```
#include <string>
std::string s1 = "ABCDEFG";
std::string s2 = "XYZ";
s1=s2; // No ERROR!
``` |
33,900,657 | I am interested to know if anyone has built a javascript websocket listener for a browser. Basically the server side of a websocket that runs in a client. This would allow messages to be sent to the client directly. Why? Because instead of having a Node.js, python, java, etc, server process sitting on or near the clien... | 2015/11/24 | [
"https://Stackoverflow.com/questions/33900657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3426462/"
] | [WebRTC](https://webrtc.org/getting-started/overview) allows for peer-to-peer connections to be made between browsers.
You would still need a server in order for individual users to discover each other but then they could connect directly to each other rather than having to pass all their traffic via a central server... | The idea.
You can use a simple **echo server** written in any language. Your script can send the data to the server then get it back, handle it on the same page with different functions/classes emulating the real server.
An example: <http://www.websocket.org/echo.html>
Then, you can think about different formats of ... |
45,267,955 | ```
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://www.csgoanalyst.win'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.body
```
I am trying to scrape hltv.org in order to find out what maps each... | 2017/07/23 | [
"https://Stackoverflow.com/questions/45267955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8353998/"
] | Try to remove
>
> android:fitsSystemWindows="true"
>
>
>
on your CollapsingToolbarLayout. | Try to put
```
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
</android.support.design.widget.CoordinatorLayout>
```
as the root of all... |
45,267,955 | ```
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://www.csgoanalyst.win'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.body
```
I am trying to scrape hltv.org in order to find out what maps each... | 2017/07/23 | [
"https://Stackoverflow.com/questions/45267955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8353998/"
] | Try to remove
>
> android:fitsSystemWindows="true"
>
>
>
on your CollapsingToolbarLayout. | If you use a custom toolbar in the profile fragment,you put this code to `onCreateView` method:
```
((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);
```
I had the same problem and this was solved. |
45,267,955 | ```
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://www.csgoanalyst.win'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.body
```
I am trying to scrape hltv.org in order to find out what maps each... | 2017/07/23 | [
"https://Stackoverflow.com/questions/45267955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8353998/"
] | Try to remove
>
> android:fitsSystemWindows="true"
>
>
>
on your CollapsingToolbarLayout. | Remove `android:fitsSystemWindows="true"`
from root `CoordinatorLayout`. |
45,267,955 | ```
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://www.csgoanalyst.win'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.body
```
I am trying to scrape hltv.org in order to find out what maps each... | 2017/07/23 | [
"https://Stackoverflow.com/questions/45267955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8353998/"
] | try
```
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
```
when you switch to tab with collapsing toolbar and
```
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
```
when switch to another | Try to put
```
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
</android.support.design.widget.CoordinatorLayout>
```
as the root of all... |
45,267,955 | ```
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://www.csgoanalyst.win'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.body
```
I am trying to scrape hltv.org in order to find out what maps each... | 2017/07/23 | [
"https://Stackoverflow.com/questions/45267955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8353998/"
] | try
```
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
```
when you switch to tab with collapsing toolbar and
```
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
```
when switch to another | If you use a custom toolbar in the profile fragment,you put this code to `onCreateView` method:
```
((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);
```
I had the same problem and this was solved. |
45,267,955 | ```
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://www.csgoanalyst.win'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.body
```
I am trying to scrape hltv.org in order to find out what maps each... | 2017/07/23 | [
"https://Stackoverflow.com/questions/45267955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8353998/"
] | try
```
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
```
when you switch to tab with collapsing toolbar and
```
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
```
when switch to another | Remove `android:fitsSystemWindows="true"`
from root `CoordinatorLayout`. |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | Make sure that the mods' load order is correct (as explained in an [answer by DouglasLeeder](https://gaming.stackexchange.com/a/138952/4797)). If you're unsure on how to do this, just let [BOSS](https://github.com/boss-developers/boss/releases/) take care of the mods' load order. BOSS has a database of mods and their p... | If that is your load order I see one problem: You have the skyrim patch after the DLC patches - it needs to go first.
The correct order is given at: <http://skyrim.nexusmods.com/mods/19/>
>
> * Skyrim.esm
> * Update.esm
> * Unofficial Skyrim Patch.esp
> * Dawnguard.esm
> * Unofficial Dawnguard Patch.esp
> * Hearthfi... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | USKP has a problem with the dragonactorscript.pex file.
Found and installed a fix available here: <http://www.nexusmods.com/skyrim/mods/31685>
Personally, I went and overwrote the file from USKP itself instead of treating this fix as a separate mod, keeping a backup available just in case. | If that is your load order I see one problem: You have the skyrim patch after the DLC patches - it needs to go first.
The correct order is given at: <http://skyrim.nexusmods.com/mods/19/>
>
> * Skyrim.esm
> * Update.esm
> * Unofficial Skyrim Patch.esp
> * Dawnguard.esm
> * Unofficial Dawnguard Patch.esp
> * Hearthfi... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | If that is your load order I see one problem: You have the skyrim patch after the DLC patches - it needs to go first.
The correct order is given at: <http://skyrim.nexusmods.com/mods/19/>
>
> * Skyrim.esm
> * Update.esm
> * Unofficial Skyrim Patch.esp
> * Dawnguard.esm
> * Unofficial Dawnguard Patch.esp
> * Hearthfi... | I had the same issue. However when I disabled all the unofficial patches I was still having this problem. I ended up taking the script extender off and it worked. Then slowly started uploading my mods back on that didn't need the script extender. I wanna put it back on there so I can have my immersion mods back that ma... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | If that is your load order I see one problem: You have the skyrim patch after the DLC patches - it needs to go first.
The correct order is given at: <http://skyrim.nexusmods.com/mods/19/>
>
> * Skyrim.esm
> * Update.esm
> * Unofficial Skyrim Patch.esp
> * Dawnguard.esm
> * Unofficial Dawnguard Patch.esp
> * Hearthfi... | I also used Nexus 31685, but I had to extract the mqkilldragonscript.pex from UDBP (Nexus 31083) which I added to the scripts folder for Nexus 31685. My SMPC (Nexus 23833) was overwriting the updated mqkilldragonscript.pex and keeping the dragon soul from absorbing properly. I used BSA Unpacker (Nexus 4804) to get the ... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | Make sure that the mods' load order is correct (as explained in an [answer by DouglasLeeder](https://gaming.stackexchange.com/a/138952/4797)). If you're unsure on how to do this, just let [BOSS](https://github.com/boss-developers/boss/releases/) take care of the mods' load order. BOSS has a database of mods and their p... | I had the same issue. However when I disabled all the unofficial patches I was still having this problem. I ended up taking the script extender off and it worked. Then slowly started uploading my mods back on that didn't need the script extender. I wanna put it back on there so I can have my immersion mods back that ma... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | Make sure that the mods' load order is correct (as explained in an [answer by DouglasLeeder](https://gaming.stackexchange.com/a/138952/4797)). If you're unsure on how to do this, just let [BOSS](https://github.com/boss-developers/boss/releases/) take care of the mods' load order. BOSS has a database of mods and their p... | I also used Nexus 31685, but I had to extract the mqkilldragonscript.pex from UDBP (Nexus 31083) which I added to the scripts folder for Nexus 31685. My SMPC (Nexus 23833) was overwriting the updated mqkilldragonscript.pex and keeping the dragon soul from absorbing properly. I used BSA Unpacker (Nexus 4804) to get the ... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | USKP has a problem with the dragonactorscript.pex file.
Found and installed a fix available here: <http://www.nexusmods.com/skyrim/mods/31685>
Personally, I went and overwrote the file from USKP itself instead of treating this fix as a separate mod, keeping a backup available just in case. | I had the same issue. However when I disabled all the unofficial patches I was still having this problem. I ended up taking the script extender off and it worked. Then slowly started uploading my mods back on that didn't need the script extender. I wanna put it back on there so I can have my immersion mods back that ma... |
138,924 | Anyone around coy with being Mr. Fixit? (Ms. Fixit would be even better, but either will do nicely.) I can't absorb dragon souls, and yes, I've been through almost every thread there is here on the answer. (So please, do not duplicate me. Pretty please?)
Mind you, I got a *TRUCKLOAD* of mods installed... *(ducks in pr... | 2013/11/06 | [
"https://gaming.stackexchange.com/questions/138924",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/59017/"
] | USKP has a problem with the dragonactorscript.pex file.
Found and installed a fix available here: <http://www.nexusmods.com/skyrim/mods/31685>
Personally, I went and overwrote the file from USKP itself instead of treating this fix as a separate mod, keeping a backup available just in case. | I also used Nexus 31685, but I had to extract the mqkilldragonscript.pex from UDBP (Nexus 31083) which I added to the scripts folder for Nexus 31685. My SMPC (Nexus 23833) was overwriting the updated mqkilldragonscript.pex and keeping the dragon soul from absorbing properly. I used BSA Unpacker (Nexus 4804) to get the ... |
58,197,804 | I have recently started using Ant Deisgn and really enjoyed working with it.
However I seem to have stumble upon an issue that I am having a hard time solving.
Using react-testing-library for tests, I am having troubles with testing some Ant Design component.
One of the reason is that for some unknown reason some co... | 2019/10/02 | [
"https://Stackoverflow.com/questions/58197804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/909822/"
] | The `data-testid` attribute is configurable to whatever attribute you want.
<https://testing-library.com/docs/dom-testing-library/api-configuration>
Also, as long as the library you choose, has ID attribute, you çan do following :
```js
const {container} = render(<Foo />) ;
const button = container.querySelector... | Today, I had the same issue with testing a label of an Ant Design Desciptions.Item with the react-testing-library.
I figured out that the label was in a `<span>` element, so I moved it into a `<div>` element which solved my problem.
Before:
```
<Descriptions.Item
data-testid='test-label-of-descriptions-item-fai... |
71,841,110 | I created my page routing with react-router v5 and everything works well. If I click on the link, it takes me to the page, but when I reload the page I get a "404 | Page Not Found" error on the page.
```
import React, { useEffect, useState } from 'react'
import Home from './dexpages/Home'
import {
BrowserRouter,
R... | 2022/04/12 | [
"https://Stackoverflow.com/questions/71841110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11185816/"
] | Don't use React Router with next.js.
[Next.js has its own routing mechanism](https://nextjs.org/docs/basic-features/pages) which is used for both client-side routing and server-side routing.
By using React Router, you're bypassing that with your own client-side routing so when you request the page directly (and depen... | Your paths need to be adjusted. For the home page it is fine to be routed to `/` however for the other pages there is no need for a backslash, remove the backslash from the Airdrops, Send, Swapping, and Dashboard paths respectively and you should be fine.
Try this below for each of the routes.
`<Route path="airdrops"... |
54,244,797 | I am trying to perform a CountIfs function where two criteria are met. First a line is "Approved" and second the Appv Date is within the reporting month. The CountIfs works find when only the first criteria exists but when I add the second I get a Type Mismatch error and I am not sure why.
Code:
```
' Declarations
D... | 2019/01/17 | [
"https://Stackoverflow.com/questions/54244797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10344640/"
] | You can grab the selected item using `lb2.SelectedItem` and split it as you are doing, then take the rest of the items (filtering out the item with an index of `lb2.SelectedIndex` by using a `Where` clause) and then do a `SelectMany` on the results, splitting each on a space character:
```
var nonSelected = lb2.Items.... | * Verify that there's at least one selected item, to avoid exceptions.
* Insert in the first array the content of the currently selected ListBox item, splitting it using [String.Split()](https://learn.microsoft.com/en-us/dotnet/api/system.string.split?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId... |
69,113,035 | I have the following data:
```
data_list = ["\"TOTO TITI TATA,TAGADA\"", "\"\"\"TUTU,ROOT\"\"\""]
```
It is transformed into a pandas dataframe:
```
df = pandas.DataFrame(data_list)
print(df)
0
0 "TOTO TITI TATA,TAGADA"
1 """TUTU,ROOT""
```
When writing the dataframe as a csv, ... | 2021/09/09 | [
"https://Stackoverflow.com/questions/69113035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6213883/"
] | `"` and `,` are both special characters by default in csv format
`"` is used when `,` is there between a data. That time the data is escaped by quotes to tell that it should be a single data.
whereas, `,` is the default seperator for distinguishing between data.
Since you are using both of them in your data, that's ... | Is it what you expect?
```
print(df.to_csv(index=False, header=False, quoting=csv.QUOTE_NONE, sep= "@"))
"TOTO TITI TATA,TAGADA"
"""TUTU,ROOT"""
``` |
50,917,419 | I'd like to send request using python and requests library.
I have checked this request in web browser inspector and form data looks like that:
```
data[foo]: bar
data[numbers][]: 1
data[numbers][]: 2
data[numbers][]: 3
data[numbers][]: 4
data[numbers][]: 5
csrf_hash: 12345
```
This is my code:
```
payload = {'dat... | 2018/06/18 | [
"https://Stackoverflow.com/questions/50917419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369663/"
] | The problem realise in the way that you are trying to send the data to <https://www.foo.com/bar/>
instead of sending it using `data`I would recommend you to try `json` instead so your final code should look something like this
```
payload = {'data[foo]': 'bar', 'csrf_hash': 12345,
'data[numbers]': [1, 2, 3, ... | Can you try to do this:
```
import json
url = 'https://www.foo.com/bar/'
payload = {'some': 'data'}
r = requests.post(url, data=json.dumps(payload))
``` |
50,917,419 | I'd like to send request using python and requests library.
I have checked this request in web browser inspector and form data looks like that:
```
data[foo]: bar
data[numbers][]: 1
data[numbers][]: 2
data[numbers][]: 3
data[numbers][]: 4
data[numbers][]: 5
csrf_hash: 12345
```
This is my code:
```
payload = {'dat... | 2018/06/18 | [
"https://Stackoverflow.com/questions/50917419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369663/"
] | I resolve problem with this code:
```
payload = {'data[foo]': 'bar', 'csrf_hash': 12345,
'data[numbers][0]': 1, 'data[numbers][1]': 2, 'data[numbers][2]': 3, 'data[numbers][3]': 4, 'data[numbers][4]': 5}
r = s.post('https://www.foo.com/bar/', payload)
```
It's not very beautiful, but works. | Can you try to do this:
```
import json
url = 'https://www.foo.com/bar/'
payload = {'some': 'data'}
r = requests.post(url, data=json.dumps(payload))
``` |
50,917,419 | I'd like to send request using python and requests library.
I have checked this request in web browser inspector and form data looks like that:
```
data[foo]: bar
data[numbers][]: 1
data[numbers][]: 2
data[numbers][]: 3
data[numbers][]: 4
data[numbers][]: 5
csrf_hash: 12345
```
This is my code:
```
payload = {'dat... | 2018/06/18 | [
"https://Stackoverflow.com/questions/50917419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369663/"
] | I needed a way to deal with it in a more dynamic / adaptable way. What I came up with was this:
```
def multi_dict_to_php_dict(md):
result = {}
for key in md.keys():
if '[]' in key: # Key is an array, we need to make the array keys unique.
keyformat = '[%d]'.join(key.split('[]'))
... | Can you try to do this:
```
import json
url = 'https://www.foo.com/bar/'
payload = {'some': 'data'}
r = requests.post(url, data=json.dumps(payload))
``` |
50,917,419 | I'd like to send request using python and requests library.
I have checked this request in web browser inspector and form data looks like that:
```
data[foo]: bar
data[numbers][]: 1
data[numbers][]: 2
data[numbers][]: 3
data[numbers][]: 4
data[numbers][]: 5
csrf_hash: 12345
```
This is my code:
```
payload = {'dat... | 2018/06/18 | [
"https://Stackoverflow.com/questions/50917419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369663/"
] | I resolve problem with this code:
```
payload = {'data[foo]': 'bar', 'csrf_hash': 12345,
'data[numbers][0]': 1, 'data[numbers][1]': 2, 'data[numbers][2]': 3, 'data[numbers][3]': 4, 'data[numbers][4]': 5}
r = s.post('https://www.foo.com/bar/', payload)
```
It's not very beautiful, but works. | The problem realise in the way that you are trying to send the data to <https://www.foo.com/bar/>
instead of sending it using `data`I would recommend you to try `json` instead so your final code should look something like this
```
payload = {'data[foo]': 'bar', 'csrf_hash': 12345,
'data[numbers]': [1, 2, 3, ... |
50,917,419 | I'd like to send request using python and requests library.
I have checked this request in web browser inspector and form data looks like that:
```
data[foo]: bar
data[numbers][]: 1
data[numbers][]: 2
data[numbers][]: 3
data[numbers][]: 4
data[numbers][]: 5
csrf_hash: 12345
```
This is my code:
```
payload = {'dat... | 2018/06/18 | [
"https://Stackoverflow.com/questions/50917419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5369663/"
] | I resolve problem with this code:
```
payload = {'data[foo]': 'bar', 'csrf_hash': 12345,
'data[numbers][0]': 1, 'data[numbers][1]': 2, 'data[numbers][2]': 3, 'data[numbers][3]': 4, 'data[numbers][4]': 5}
r = s.post('https://www.foo.com/bar/', payload)
```
It's not very beautiful, but works. | I needed a way to deal with it in a more dynamic / adaptable way. What I came up with was this:
```
def multi_dict_to_php_dict(md):
result = {}
for key in md.keys():
if '[]' in key: # Key is an array, we need to make the array keys unique.
keyformat = '[%d]'.join(key.split('[]'))
... |
6,024,494 | So I'd like to have a gradient that fills 100% of the background of a webpage. For browsers that can't handle it, a solid color is fine.
here is my current css:
```
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
padding: 0;
background-repeat: no-repeat;
background: #afb1b4; /* Old browsers */
background: -moz... | 2011/05/16 | [
"https://Stackoverflow.com/questions/6024494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/412485/"
] | Get rid of your `height: 100%` declarations. It seems like setting the height to 100% just sets it to 100% of the viewport, not actually 100% of the page itself. | I also found that adding 'fixed' to the end seemed to do the trick:
```
body {
margin: 0;
padding: 0;
background-repeat: no-repeat;
background: #afb1b4; /* Old browsers */
background: -moz-linear-gradient(top, #afb1b4 0%, #696a6d 100%) fixed no-repeat; /* FF3.6+ */
background: -webkit-gradient(linear, left top, left b... |
6,024,494 | So I'd like to have a gradient that fills 100% of the background of a webpage. For browsers that can't handle it, a solid color is fine.
here is my current css:
```
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
padding: 0;
background-repeat: no-repeat;
background: #afb1b4; /* Old browsers */
background: -moz... | 2011/05/16 | [
"https://Stackoverflow.com/questions/6024494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/412485/"
] | Get rid of your `height: 100%` declarations. It seems like setting the height to 100% just sets it to 100% of the viewport, not actually 100% of the page itself. | Here's an expansion of my comment to use SVG instead of vendor prefix and proprietary extensions. This reduces the size of the CSS and, with the employment of some ingenius tactics, can allow you to use a single SVG file as a sprite pack for gradients (reducing the total number of HTTP requests).
First create your SVG... |
6,024,494 | So I'd like to have a gradient that fills 100% of the background of a webpage. For browsers that can't handle it, a solid color is fine.
here is my current css:
```
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
padding: 0;
background-repeat: no-repeat;
background: #afb1b4; /* Old browsers */
background: -moz... | 2011/05/16 | [
"https://Stackoverflow.com/questions/6024494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/412485/"
] | Here's an expansion of my comment to use SVG instead of vendor prefix and proprietary extensions. This reduces the size of the CSS and, with the employment of some ingenius tactics, can allow you to use a single SVG file as a sprite pack for gradients (reducing the total number of HTTP requests).
First create your SVG... | I also found that adding 'fixed' to the end seemed to do the trick:
```
body {
margin: 0;
padding: 0;
background-repeat: no-repeat;
background: #afb1b4; /* Old browsers */
background: -moz-linear-gradient(top, #afb1b4 0%, #696a6d 100%) fixed no-repeat; /* FF3.6+ */
background: -webkit-gradient(linear, left top, left b... |
56,447,602 | I have a batch file and I want to call a powershell script that returns several values to the batch file.
I've tried to do it by setting environment variables, but that does not work.
This is the batch file:
```
::C:\temp\TestPScall.bat
@echo off
powershell -executionpolicy Bypass -file "c:\temp\PStest.ps1"
@echo [... | 2019/06/04 | [
"https://Stackoverflow.com/questions/56447602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10161783/"
] | You don't need an else on the statement. check to see if your variable is false and if it is it will return if not the rest of your function will run automatically.
```
function function1() {
function2(); // call function2
// after called function (here I need true or false, to decide if the function should stop or co... | If function2 is synchronous you can just return:
```
function function1() {
if(!function2()){
return
}; // call function2
// after called function (here I need true or false, to decide if the function should stop or continue)
}
function function2() {
if (condition === value) {
return true;
} else {
... |
56,447,602 | I have a batch file and I want to call a powershell script that returns several values to the batch file.
I've tried to do it by setting environment variables, but that does not work.
This is the batch file:
```
::C:\temp\TestPScall.bat
@echo off
powershell -executionpolicy Bypass -file "c:\temp\PStest.ps1"
@echo [... | 2019/06/04 | [
"https://Stackoverflow.com/questions/56447602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10161783/"
] | You don't need an else on the statement. check to see if your variable is false and if it is it will return if not the rest of your function will run automatically.
```
function function1() {
function2(); // call function2
// after called function (here I need true or false, to decide if the function should stop or co... | ```
const function1 = check => {
if (check === false) {
return;
} else {
console.log("back from function2");
}
};
function1(false) // console.log doesn't run
function1(true) // console.log runs
```
make sure that you pass in a Boolean value. |
6,403,038 | I have an array called followers and I would like to know how I could get the objectAtIndex $a of the array in PHP.
My current code is this, but it doesn't work:
```
$followers = anArray....
$returns = array();
for ($a = 1; $a <= $numberOfFollowers; $a++) {
$follower = $followers[$a];
ech... | 2011/06/19 | [
"https://Stackoverflow.com/questions/6403038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/804782/"
] | Why not do a `foreach()`, like this?
```
$followers = array();
$returns = array();
foreach($followers as $index => $follower){
echo $follower;
$query = mysql_query("query....");
if (!$query) {}
while ($row = mysql_fetch_assoc($query)) {
}
}
```
I don't know what you are cooking with this, but to... | It looks like every element of `$followers` is a value returned from `mysql_fetch_assoc()`. Each element will be an associative array, and when you echo it I would expect to see it echoed as the string `'Array'`, since that is PHP's usual behaviour.
One point to observe is that when you create an empty array using `ar... |
71,332,057 | I'm new to react native and I'm not able to consume this api, when I start this app in the browser, it works fine, but when I go to the expo app it doesn't display the pokemon image, could someone help me?
```tsx
import { StatusBar } from 'expo-status-bar';
import React, { useEffect, useState } from 'react';
import { ... | 2022/03/03 | [
"https://Stackoverflow.com/questions/71332057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13966942/"
] | On MySQL, you could use aggregation:
```sql
SELECT id
FROM yourTable
GROUP BY id
HAVING SUM(name = 'Gaurav') = COUNT(*);
```
On all databases:
```sql
SELECT id
FROM yourTable
GROUP BY id
HAVING COUNT(CASE WHEN name = 'Gaurav' THEN 1 END) = COUNT(*);
``` | You can try this as well. Bit hardcoded. You can use 0 instead of null and remove where clause as well if you want.
```
SELECT Case When Name ='Gaurav' Then ID else NULL END AS ID
FROM Yourtable
where name ='Gaurav'
``` |
22,198,001 | I'm using Qt Creator running with the mingw C++ compiler to compile some C sources I obtained from an institution known as the NBIS.
I'm trying to extract just the code that will allow me to decode images encoded in the WSQ image format.
Unfortunately I'm getting messages that I have "multiple definitions" of certain ... | 2014/03/05 | [
"https://Stackoverflow.com/questions/22198001",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1741137/"
] | There's no automatic function that I know, but it can be easily done manually.
1. Remove `Pods` folder near your `Podfile`
2. Remove next files: `Podfile` and `Podfile.lock`
3. Remove generated `<Project_Name>.workspace` file
4. Open your `xcodeproj` file and in `Xcode`:
* Remove reference to `Pods-<YOUR_TARGET>.xcco... | ### Self Answer
While the answer by @Ossir works properly, I have found one library called [cocoapods-deintegrate](https://github.com/kylef/cocoapods-deintegrate) that takes charge of all the work that deintegrate CocoaPods from your project.
In order to use it, you first install it by `gem install cocoapods-deintegr... |
206,579 | Bits Back coding is a scheme to transmit an observation $x$.
You can read about it [here](http://www.cs.toronto.edu/~fritz/absps/freybitsback.pdf)[1]. To my understanding, it works like this:
1. The encoder samples a message $z$ from a distribution $Q(z|x)$ that it computed.
2. The encoder sends $z$ to decoder, using ... | 2015/05/14 | [
"https://mathoverflow.net/questions/206579",
"https://mathoverflow.net",
"https://mathoverflow.net/users/2873/"
] | I was wondering the same! But this is the answer I came up with (although I am not entirely sure if this reasoning is correct).
Since after the decoding process the decoder knows the distribution $Q(z|x)$ AND $P(x)$, he could then come up with an encoding that follows the distribution $P(z)/Q(z|x)$ and thus, represen... | I think that the key to understand bits-back coding is that sampling from the distribution $Q(z|x)$ is equal to decoding some "random bits" with $Q(z|x)$. And these random bits are the things that receiver can get automatically after receiving $z$ and $x$.
Considering a sequential image transmission scenario, if we us... |
35,048,571 | Hey all I am trying to get the previous button so that I can change its text to something else once someone selects a value from a select box.
```
<div class="input-group">
<div class="input-group-btn search-panel">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
... | 2016/01/27 | [
"https://Stackoverflow.com/questions/35048571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277480/"
] | After installing the latest preview release, v0.6.5.0 as of writing this, I ran into the same issue. It appears that Xamarin Android Player is expecting VirtualBox to be registered with the `%PATH%` environment variable, but it doesn't happen during the install process by default.
In this case, you just add `C:\Progra... | Just run as admin (Right hand click) |
308,895 | I'm trying to plot the Wien and Rayleigh-Jeans laws in a graph of `$I \times \nu$`.
```
Wien Law:
\[ I=\frac{2h\nu^3}{c^2}e^{-\textstyle\frac{h\nu}{kT}}\]
Rayleigh-Jeans Law:
\[I=\frac{2k\nu^2T}{c^2}\]
```
But PGFPlot always crashes because the constants (in SI units) are way too small!
Whats the best way to do thi... | 2016/05/10 | [
"https://tex.stackexchange.com/questions/308895",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/102658/"
] | ```
\documentclass{article}
\newcounter{emphlevel}
\renewcommand\emph[1]{\stepcounter{emphlevel}%
\ifnum\value{emphlevel}=1`#1'\else
\ifnum\value{emphlevel}=2\textsc{#1}\else
\ifnum\value{emphlevel}=3\textit{#1}\else
\fi\fi\fi\addtocounter{emphlevel}{-1}%
}
\begin{document}
\emph{Single quotes within \emph{... | I decided to use another command name, but the nesting can be controlled
with a counter and `\ifcase...\fi` conditional.
The 4th level will provide an usual `\@ctrerr`, but this could be shifted to basically any level.
```
\documentclass{article}
\newcounter{smartlevel}
\makeatletter
\newcommand{\smartcmd}[1]{%
... |
308,895 | I'm trying to plot the Wien and Rayleigh-Jeans laws in a graph of `$I \times \nu$`.
```
Wien Law:
\[ I=\frac{2h\nu^3}{c^2}e^{-\textstyle\frac{h\nu}{kT}}\]
Rayleigh-Jeans Law:
\[I=\frac{2k\nu^2T}{c^2}\]
```
But PGFPlot always crashes because the constants (in SI units) are way too small!
Whats the best way to do thi... | 2016/05/10 | [
"https://tex.stackexchange.com/questions/308895",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/102658/"
] | ```
\documentclass{article}
\newcounter{emphlevel}
\renewcommand\emph[1]{\stepcounter{emphlevel}%
\ifnum\value{emphlevel}=1`#1'\else
\ifnum\value{emphlevel}=2\textsc{#1}\else
\ifnum\value{emphlevel}=3\textit{#1}\else
\fi\fi\fi\addtocounter{emphlevel}{-1}%
}
\begin{document}
\emph{Single quotes within \emph{... | A simple application of grouping:
```
\documentclass{article}
\newcount\emphlevel
\DeclareRobustCommand{\emph}[1]{%
\begingroup
\normalfont
\advance\emphlevel by 1
\ifcase\emphlevel
\or
`\aftergroup'\normalfont
\or
\normalfont\expandafter\textsc
\or
\normalfont\expandafter\textit
\else
... |
308,895 | I'm trying to plot the Wien and Rayleigh-Jeans laws in a graph of `$I \times \nu$`.
```
Wien Law:
\[ I=\frac{2h\nu^3}{c^2}e^{-\textstyle\frac{h\nu}{kT}}\]
Rayleigh-Jeans Law:
\[I=\frac{2k\nu^2T}{c^2}\]
```
But PGFPlot always crashes because the constants (in SI units) are way too small!
Whats the best way to do thi... | 2016/05/10 | [
"https://tex.stackexchange.com/questions/308895",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/102658/"
] | A simple application of grouping:
```
\documentclass{article}
\newcount\emphlevel
\DeclareRobustCommand{\emph}[1]{%
\begingroup
\normalfont
\advance\emphlevel by 1
\ifcase\emphlevel
\or
`\aftergroup'\normalfont
\or
\normalfont\expandafter\textsc
\or
\normalfont\expandafter\textit
\else
... | I decided to use another command name, but the nesting can be controlled
with a counter and `\ifcase...\fi` conditional.
The 4th level will provide an usual `\@ctrerr`, but this could be shifted to basically any level.
```
\documentclass{article}
\newcounter{smartlevel}
\makeatletter
\newcommand{\smartcmd}[1]{%
... |
55,135,777 | Can anybody help in knowing whether IFC entity type names are case sensitive or case insensitive.
For example: Can we replace `IFCPERSON` with `IfcPerson` (camel case) or `ifcperson` (small) in an \*.ifc file? | 2019/03/13 | [
"https://Stackoverflow.com/questions/55135777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11195292/"
] | How about applying the following convention in every single context:
Simply assume that they are case sensitive and work accordingly.
If you always do that, you will never have a problem.
If you see different casing examples, and all of them work, you can assume it is not case sensitive.
Otherwise, you will always ... | You might want to take a look at [an online version of ISO10303-p21](http://www.steptools.com/stds/step/IS_final_p21e3.html) which defines the STEP data format (file format of .ifc files).
Chapter 5.4 defines the format of tokens, to which entity names belong, to only contain uppercase letters and digits. So basically... |
55,135,777 | Can anybody help in knowing whether IFC entity type names are case sensitive or case insensitive.
For example: Can we replace `IFCPERSON` with `IfcPerson` (camel case) or `ifcperson` (small) in an \*.ifc file? | 2019/03/13 | [
"https://Stackoverflow.com/questions/55135777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11195292/"
] | How about applying the following convention in every single context:
Simply assume that they are case sensitive and work accordingly.
If you always do that, you will never have a problem.
If you see different casing examples, and all of them work, you can assume it is not case sensitive.
Otherwise, you will always ... | Let's look at how cases are defined in the standards for EXPRESS (used to specify the schema) and for STEP physical files (used for the actual \*.ifc files).
### Entity type names in the schema definition
According to [ISO10303-11](https://www.iso.org/standard/38047.html), in EXPRESS, entity names are case-insensitiv... |
41,535,837 | I want to build a website that allows the user to convert `Hz` to `bpm` (note however that my question concerns all sort of unit conversion). I am using PHP and am hosting my website on Apache.
So, I was wondering if it was possible to "bind" an input field to an HTML element, like we do in WPF developement where you... | 2017/01/08 | [
"https://Stackoverflow.com/questions/41535837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6622623/"
] | With just the DOM and JavaScript, you can use the [`input` event](https://developer.mozilla.org/en-US/docs/Web/Events/input) on a text field to receive an immediate callback when its value changes as the result of user action:
```
document.querySelector("selector-for-the-field").addEventListener("input", function() {
... | I will give you an example of real-time "inches to cm" conversion.
Note for this example to work, you will need to include jQuery.
HTML:
```
<div>
<label>Inches</label>
<input type="text" id="user_input" />
</div>
<div>
<label>Centimeters</label>
<input type="text" id="result" readonly />
</div>
```... |
45,933,651 | I have a column named ***weight*** in my table **accounts**. i need to fetch the values from this column like,
when the user clicks weight from 40 - 100, It need to display all the persons with weight in between 40 and 100.
This is my html code,
```
<div class="float-right span35">
<form class="list-wrapper sear... | 2017/08/29 | [
"https://Stackoverflow.com/questions/45933651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7057771/"
] | Simpliest way: administrator credentials should be predefined via some config file on server side. As additional protection you may force user to change password on first log in. Another way: a lot of CMS provides a full access + installation steps to first loggined user. | Use QSslSocket to get a secured communication layer (<http://doc.qt.io/qt-5/qsslsocket.html>), since you will exchange passwords on top of this administration link.
There is an example here of the client part of the code, with Qt5: <http://doc.qt.io/qt-5/qtnetwork-securesocketclient-example.html>
On the server side, ... |
81,961 | I'm trying to attach programmatically an Image with caption to my node.
I'm using [image\_field\_caption](https://drupal.org/project/image_field_caption) module.
```
$node = node_load($nid);
$path = "images/gallery_articolo/".$value['foto'];
$filetitle = $value['desc'];
$filename = $value['foto'];
... | 2013/08/08 | [
"https://drupal.stackexchange.com/questions/81961",
"https://drupal.stackexchange.com",
"https://drupal.stackexchange.com/users/6984/"
] | in the log entry it shows that `[:db_insert_placeholder_7]` and `[:db_insert_placeholder_8]` elements of the Array were empty - that might be the reason why **Insert** statement failed for the `caption` field:
```
Array
(
[:db_insert_placeholder_0] => field_steps
[:db_insert_placeholder_1] => node
[:db_insert_pla... | In Drupal 7, you can use **[system\_retrieve\_file](https://api.drupal.org/api/drupal/modules!system!system.module/function/system_retrieve_file/7)**
>
> **system\_retrieve\_file** - It will download a file from a remote source,
> copy it from temp to a specified destination and optionally save it to
> the file\_ma... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | Maybe this will help a little (adapting documentation exaple for `Slider2D`):
```
DynamicModule[{p = {2 π, 0}},
Row @ {Slider2D[Dynamic[p], {{2 Pi, 0}, {0, Pi}}],
Plot3D[Exp[-(x^2 + y^2)], {x, -3, 3}, {y, -3, 3},
ImageSize -> {700, 700}, PlotRange -> All, ViewAngle -> .0015,
View... | Combining some of the ideas here and elsewhere, this appears to produce a parallel projection:
```
tr = TransformationMatrix[
RescalingTransform[{{-2, 2}, {-2, 2}, {-3/2, 5/2}}]];
p = {{1, 0, 0, 0}, {0, 0, 1, 0}, {0, 1, 0, 0}, {0, 0, 0, 1}};
DynamicModule[{vm = {tr, p}, vp = {0, 0, 100}},
tom2 = Table[
Graphics3D[... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | Maybe this will help a little (adapting documentation exaple for `Slider2D`):
```
DynamicModule[{p = {2 π, 0}},
Row @ {Slider2D[Dynamic[p], {{2 Pi, 0}, {0, Pi}}],
Plot3D[Exp[-(x^2 + y^2)], {x, -3, 3}, {y, -3, 3},
ImageSize -> {700, 700}, PlotRange -> All, ViewAngle -> .0015,
View... | I think the only way to do this is by dynamically reseting the [`ViewMatrix`](http://reference.wolfram.com/mathematica/ref/ViewMatrix.html) to be an [orthographic projection](http://reference.wolfram.com/mathematica/ref/ViewMatrix.html#464375084). It was beyond my ability, patience, or inclination to figure how to deco... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | Maybe this will help a little (adapting documentation exaple for `Slider2D`):
```
DynamicModule[{p = {2 π, 0}},
Row @ {Slider2D[Dynamic[p], {{2 Pi, 0}, {0, Pi}}],
Plot3D[Exp[-(x^2 + y^2)], {x, -3, 3}, {y, -3, 3},
ImageSize -> {700, 700}, PlotRange -> All, ViewAngle -> .0015,
View... | I just found the simplest solution.
Don't set `ViewPoint` to infinity!!! Just set it any number large enough, the effect will equivalent to setting to infinity.
Try for example the following
```
ListPointPlot3D[Tuples[Range[10], 3], BoxRatios -> Automatic,
ViewPoint -> {0, 0, 1000}]
```
for your example just cha... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | Maybe this will help a little (adapting documentation exaple for `Slider2D`):
```
DynamicModule[{p = {2 π, 0}},
Row @ {Slider2D[Dynamic[p], {{2 Pi, 0}, {0, Pi}}],
Plot3D[Exp[-(x^2 + y^2)], {x, -3, 3}, {y, -3, 3},
ImageSize -> {700, 700}, PlotRange -> All, ViewAngle -> .0015,
View... | Mathematica Version 11.2 affords the new option : `ViewProjection-> "Orthographic"`.
It seems to do the job, but I can't test the interacitvity because I have only access to Mathematica 11.2 in the cloud (in the "Wolfram Development Platform").
So instead of interacting, I have set `ViewPoint -> {0, 0, 3}` in your ... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | I think the only way to do this is by dynamically reseting the [`ViewMatrix`](http://reference.wolfram.com/mathematica/ref/ViewMatrix.html) to be an [orthographic projection](http://reference.wolfram.com/mathematica/ref/ViewMatrix.html#464375084). It was beyond my ability, patience, or inclination to figure how to deco... | Combining some of the ideas here and elsewhere, this appears to produce a parallel projection:
```
tr = TransformationMatrix[
RescalingTransform[{{-2, 2}, {-2, 2}, {-3/2, 5/2}}]];
p = {{1, 0, 0, 0}, {0, 0, 1, 0}, {0, 1, 0, 0}, {0, 0, 0, 1}};
DynamicModule[{vm = {tr, p}, vp = {0, 0, 100}},
tom2 = Table[
Graphics3D[... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | I just found the simplest solution.
Don't set `ViewPoint` to infinity!!! Just set it any number large enough, the effect will equivalent to setting to infinity.
Try for example the following
```
ListPointPlot3D[Tuples[Range[10], 3], BoxRatios -> Automatic,
ViewPoint -> {0, 0, 1000}]
```
for your example just cha... | Combining some of the ideas here and elsewhere, this appears to produce a parallel projection:
```
tr = TransformationMatrix[
RescalingTransform[{{-2, 2}, {-2, 2}, {-3/2, 5/2}}]];
p = {{1, 0, 0, 0}, {0, 0, 1, 0}, {0, 1, 0, 0}, {0, 0, 0, 1}};
DynamicModule[{vm = {tr, p}, vp = {0, 0, 100}},
tom2 = Table[
Graphics3D[... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | I think the only way to do this is by dynamically reseting the [`ViewMatrix`](http://reference.wolfram.com/mathematica/ref/ViewMatrix.html) to be an [orthographic projection](http://reference.wolfram.com/mathematica/ref/ViewMatrix.html#464375084). It was beyond my ability, patience, or inclination to figure how to deco... | Mathematica Version 11.2 affords the new option : `ViewProjection-> "Orthographic"`.
It seems to do the job, but I can't test the interacitvity because I have only access to Mathematica 11.2 in the cloud (in the "Wolfram Development Platform").
So instead of interacting, I have set `ViewPoint -> {0, 0, 3}` in your ... |
28,600 | I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect.
I obtained the correct position figure by setting the `ViewPoint` to `Infinity`. But when I rotate the figure, the infinity effect fails and the perspective eff... | 2013/07/15 | [
"https://mathematica.stackexchange.com/questions/28600",
"https://mathematica.stackexchange.com",
"https://mathematica.stackexchange.com/users/8200/"
] | I just found the simplest solution.
Don't set `ViewPoint` to infinity!!! Just set it any number large enough, the effect will equivalent to setting to infinity.
Try for example the following
```
ListPointPlot3D[Tuples[Range[10], 3], BoxRatios -> Automatic,
ViewPoint -> {0, 0, 1000}]
```
for your example just cha... | Mathematica Version 11.2 affords the new option : `ViewProjection-> "Orthographic"`.
It seems to do the job, but I can't test the interacitvity because I have only access to Mathematica 11.2 in the cloud (in the "Wolfram Development Platform").
So instead of interacting, I have set `ViewPoint -> {0, 0, 3}` in your ... |
349,678 | I've seen Facebook's APIs that will sometimes start with resource id. Also, if the URI is for a business process as opposed to a fine grained resource, would it be acceptable to start the endpoint with an ID, e.g.
```
/{fine-grained-id}/businessProcess
```
So the ID does not represent an item in a list of business p... | 2017/05/26 | [
"https://softwareengineering.stackexchange.com/questions/349678",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/273555/"
] | Roy Fielding introduced REST - <https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm> - and I don't believe there's anything in his dissertation prescribing a particular URI scheme. As long as your scheme is consistent it should be fine. It would also be advisable if it makes some kind of sense to us... | A key tenet of RESTful interfaces is that they: identify information.
For example, if you wanted to READ information - e.g. User 123, then you should send a GET request with the id as 123.
Where the ID of the user is located, within the URL, is immaterial. Generally most routes specify the ID at the end of the URL. ... |
349,678 | I've seen Facebook's APIs that will sometimes start with resource id. Also, if the URI is for a business process as opposed to a fine grained resource, would it be acceptable to start the endpoint with an ID, e.g.
```
/{fine-grained-id}/businessProcess
```
So the ID does not represent an item in a list of business p... | 2017/05/26 | [
"https://softwareengineering.stackexchange.com/questions/349678",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/273555/"
] | Roy Fielding introduced REST - <https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm> - and I don't believe there's anything in his dissertation prescribing a particular URI scheme. As long as your scheme is consistent it should be fine. It would also be advisable if it makes some kind of sense to us... | >
> /{fine-grained-id}/businessProcess
>
>
>
I'm not familiar with the Facebook API, but you should avoid putting actions or processes in your URLs if the intent is to call that action by making a request to that URL. For example this is wrong
`GET /infrastructure/database/reshard`
Instead, the client should put... |
8,779,929 | I want my app to have an activity that shows instruction on how to use the app. However, this "instruction" screen shall only be showed once after an install, how do you do this? | 2012/01/08 | [
"https://Stackoverflow.com/questions/8779929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/871956/"
] | You can test wether a special flag (let's call it `firstRun`) is set in your application `SharedPreferences`. If not, it's the first run, so show your activity/popup/whatever with the instructions and then set the `firstRun` in the preference.
```
protected void onCreate(Bundle savedInstanceState) {
super.onCreate... | **yes, you can fix this problem with SharedPreferences**
```
SharedPreferences pref;
SharedPreferences.Editor editor;
pref = getSharedPreferences("firstrun", MODE_PRIVATE);
editor = pref.edit();
editor.putString("chkRegi","true");
editor.commit();
```
Then check String chkRegi ture or false |
7,495,922 | protecting a page for Read and/or Write access is possible as there are bits in the page table entry that can be turned on and off at kernel level. Is there a way in which certain region of memory be protected from write access, lets say in a C structure there are certain variable(s) which need to be write protected an... | 2011/09/21 | [
"https://Stackoverflow.com/questions/7495922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/940022/"
] | No, there is no such facility. If you need per-data-object protections, you'll have to allocate at least a page per object (using `mmap`). If you also want to have some protection against access beyond the end of the object (for arrays) you might allocate at least one more page than what you need, align the object so i... | One way, although terribly slow, is to protect the whole page in which the object lies. Whenever a write access to that page happens, your *custom handler for invalid page access* gets called and resolves the situation by quickly unprotecting the page, writing the data and then protecting the page again.
This works fi... |
10,473,661 | Recently I've decided to move from Common DBCP to Tomcat JDBC Connection Pool. I changed bean description (using spring 3.1 + hibernate 4 + tomcat) and was faced with the next issue on my web app start up:
**HHH000342: Could not obtain connection to query metadata : com.mysql.jdbc.Driver**
and then when I try to quer... | 2012/05/06 | [
"https://Stackoverflow.com/questions/10473661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1340495/"
] | First of all it seems that you are creating lots of string objects in the inner loop. You could try to build list of prefixes first:
```
linker = 'CTGTAGGCACCATCAAT'
prefixes = []
for i in range(len(linker)):
prefixes.append(linker[:i])
```
Additionally you could use `string`'s method `endswith` instead of creat... | **About twise faster** than all theese variants (at least at python 2.7.2)
```
seq_2 = set()
# Here I use generator. So I escape .append lookup and list resizing
def F(f):
# local memory
local_seq_2 = set()
# lookup escaping
local_seq_2_add = local_seq_2.add
# static variables
linker ='CTGTAGGC... |
10,473,661 | Recently I've decided to move from Common DBCP to Tomcat JDBC Connection Pool. I changed bean description (using spring 3.1 + hibernate 4 + tomcat) and was faced with the next issue on my web app start up:
**HHH000342: Could not obtain connection to query metadata : com.mysql.jdbc.Driver**
and then when I try to quer... | 2012/05/06 | [
"https://Stackoverflow.com/questions/10473661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1340495/"
] | Probably a large part of the problem is the `seq_2.count(line) == 0` test for whether `line` is in `seq_2`. This will walk over each element of `seq_2` and test whether it's equal to `line` -- which will take longer and longer as `seq_2` grows. You should use a set instead, which will give you constant-time tests for w... | **About twise faster** than all theese variants (at least at python 2.7.2)
```
seq_2 = set()
# Here I use generator. So I escape .append lookup and list resizing
def F(f):
# local memory
local_seq_2 = set()
# lookup escaping
local_seq_2_add = local_seq_2.add
# static variables
linker ='CTGTAGGC... |
10,473,661 | Recently I've decided to move from Common DBCP to Tomcat JDBC Connection Pool. I changed bean description (using spring 3.1 + hibernate 4 + tomcat) and was faced with the next issue on my web app start up:
**HHH000342: Could not obtain connection to query metadata : com.mysql.jdbc.Driver**
and then when I try to quer... | 2012/05/06 | [
"https://Stackoverflow.com/questions/10473661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1340495/"
] | I am not sure what your code is meant to do, but general approach is:
1. Avoid unnecessary operations, conditions etc.
2. Move everything you can out of the loop.
3. Try to do as few levels of loop as possible.
4. Use common Python practices where possible (they are generally more efficient).
But most important: try ... | **About twise faster** than all theese variants (at least at python 2.7.2)
```
seq_2 = set()
# Here I use generator. So I escape .append lookup and list resizing
def F(f):
# local memory
local_seq_2 = set()
# lookup escaping
local_seq_2_add = local_seq_2.add
# static variables
linker ='CTGTAGGC... |
28,728,398 | I have 2 arrays :
1. $valid\_sku\_array
2. $qb\_sku\_array
I want to `intersect` them, and print out the `bad` one (diff)
Then I do this :
```
// Case Sensitive
$intersect_sku_array_s = array_intersect( $valid_sku_array, $qb_sku_array );
dd($intersect_sku_array_s); ... array (size=17238)
... | 2015/02/25 | [
"https://Stackoverflow.com/questions/28728398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You're problem already begins with your intersect call! There you will lose your "real" array data, because you compare everything in lowercase and assign it also in lowercase.
So your array\_diff won't find anything, because it's case sensitive and if you make it case insensitive you still doesn't have the real data.... | I'm not familiar with `dd` as a PHP function.
Your question is not entirely clear, but if you are just trying to look at the contents of the array `$diff` there are many ways to do it...
```
echo "diff=<pre>".print_r($diff,true)."</pre><br />\n";
```
-or-
```
var_dump($diff);
```
-or-
```
foreach ($diff as $k=>... |
220,741 | I have a file share, and I want a process which enumerates files on that share and automatically creates a 7z self-extracting exe of *files* over 1 month old. On a different share, I want to create a 7z self-extracting exe of *directories* that are over 1 month old. Any idea if there is a program which can do this? I a... | 2011/01/10 | [
"https://serverfault.com/questions/220741",
"https://serverfault.com",
"https://serverfault.com/users/3479/"
] | I ended up doing this with a batch file, and setting it to run via Task Scheduler. Here is the batch file if anyone is interested:
```
@echo off
set RETENTION_PERIOD_DAYS=30
set FILE_BASED_ARCHIVES=g:\shares\public\crashes
set DIRECTORY_BASED_ARCHIVES=g:\shares\results
set MINIMUM_FILESIZE=1000000
set ZIP_PATH="c:\Pr... | Looks like he's running windows guys. (.exe)
Create a shortcut or batch file that runs the command, and then run the shortcut or batch file from Windows Task Scheduler. |
18,008 | Что-то меня вчера заклинило. Можно ли сказать "оказывать консультацию" или только "давать"? | 2013/04/02 | [
"https://rus.stackexchange.com/questions/18008",
"https://rus.stackexchange.com",
"https://rus.stackexchange.com/users/3/"
] | Давать консультацию, совет, а оказывать помощь и т.п. Возможно, но менее употребительно - предоставить консультацию. | Только "дать" или "провести". Но никак не "оказать". Оказать можно помощь. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.