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 |
|---|---|---|---|---|---|
20,268,989 | I've got a site set up on an apache server with the desktop site in /public\_html and a mobile site /in public\_html/mob
I'm trying to set up an .htaccess rewriterule to send users to an index.php file in /public\_html if they visit the /mob folder. My current rewrite rule, in the mob subfolder is:
```
RewriteRule ^(... | 2013/11/28 | [
"https://Stackoverflow.com/questions/20268989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/969450/"
] | * Check `DOCUMENT_ROOT` of your `m.domain.com`.
If `DOCUMENT_ROOT` for your `m.domain.com` is `/public_html/mob` then you cannot load `/public_html/index.php` without doing a full redirect (or proxy) to `http://domain.com/index.php`
* Just to clarify any web site cannot access files above its `DOCUMENT_ROOT` folder l... | If your rule's target starts with a `/`, that makes it an absolute URI starting from the *document root*, which I assume would be the public\_html folder:
```
RewriteRule ^(/)?$ /index.php
``` |
12,961,777 | I have a textbox which when a users fills in the box and hits return does an auto postback and the update panel is there to just refresh that part of the page where the textbox is located.
I have attached to that textbox a requiredfieldvalidator which needs to fire if the user does not complete the box when they to mo... | 2012/10/18 | [
"https://Stackoverflow.com/questions/12961777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/267869/"
] | I had the same problem with a modal and a UpdatePanel, **you have to add** in the requirefilevalidator property as a ValidationGroup="groupvalidationX", the same for the Button:
```
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:RequiredField... | Because AutoPostBack is set to true, I believe the client-side validation process isn't able to fire when it needs to.
Try adding `CausesValidation="True"` to the TextBox. |
50,852,917 | This sounds to me quite simple, but i guess i am missing something.
I have the following class:
```
public class Difficulty
{
public int Fractional;
public int ArtistMax;
private readonly List<Difficulty> QuestionDifficultyList = new List<Difficulty>();
public Difficulty()
... | 2018/06/14 | [
"https://Stackoverflow.com/questions/50852917",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1372356/"
] | You can flatten the array using `concat` and `map`. Use `reduce` to get the percetange.
```js
let arr = [{"id":"5b221edea8abbc4194a62b90","name":"Job one","tasks":[{"id":"5b221edea8abbc4194a62b91","name":"Task 2","status":"finished"},{"id":"5b221edea8abbc4194a62b91","name":"Task 3","status":"pending"},{"id":"5b221edea... | You can simply use nested `forEach` for calculating the percentage.
Try the following:
```js
var arr = [{"id":"5b221edea8abbc4194a62b90","name":"Job one","tasks":[{"id":"5b221edea8abbc4194a62b91","name":"Task 2","status":"finished"},{"id":"5b221edea8abbc4194a62b91","name":"Task 3","status":"pending"},{"id":"5b221ede... |
2,440,495 | I have a tab-separated data file with a little over 2 million lines and 19 columns.
You can find it, in US.zip: <http://download.geonames.org/export/dump/>.
I started to run the following but with `for l in f.readlines()`. I understand that just iterating over the file is supposed to be more efficient so I'm posting t... | 2010/03/13 | [
"https://Stackoverflow.com/questions/2440495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/177293/"
] | Make sure that Django's DEBUG setting is set to False | This looks perfectly fine to me. Iterating over the file like that or using `xreadlines()` will read each line as needed (with sane buffering behind the scenes). Memory usage should not grow as you read in more and more data.
As for performance, you should profile your app. Most likely the bottleneck is somewhere in a... |
2,440,495 | I have a tab-separated data file with a little over 2 million lines and 19 columns.
You can find it, in US.zip: <http://download.geonames.org/export/dump/>.
I started to run the following but with `for l in f.readlines()`. I understand that just iterating over the file is supposed to be more efficient so I'm posting t... | 2010/03/13 | [
"https://Stackoverflow.com/questions/2440495",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/177293/"
] | Make sure that Django's DEBUG setting is set to False | There's no reason to worry in the data you've given us: is memory consumption going UP as you read more and more lines? Now *that* would be cause for worry -- but there's no indication that this would happen in the code you've shown, assuming that `p.save()` saves the object to some database or file and not in memory, ... |
2,557,811 | If L,M and N are the roots of the equation
$$x^3 -2x^2 +3x-1=0$$
Then , find
$$1) L+M+N$$
$$2)\frac{1}{L}+\frac{1}{M}+\frac{1}{N}$$
I know the relation between the roots of the cubic equation but i want to get it using this equation ? | 2017/12/08 | [
"https://math.stackexchange.com/questions/2557811",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/451403/"
] | So, you know that $LMN=1$, $LM+MN+NL=3$, $L+M+N=2$. (Vieta's formulas.) This answers the first question.
The second one: use the fact that $\frac{1}{L}+\frac{1}{M}+\frac{1}{N}=\frac{LM+MN+NL}{LMN}$. | **HINT**
$$L+M+N = 2$$
$$\frac{1}{L}+\frac{1}{M}+\frac{1}{N}=\frac{LM+MN+NL}{LMN}=3$$
**NOTE**
to find this relations **simply expand**
$$(x-L)(x-M)(x-N)=0$$ |
3,949,970 | Consider of graph $G$ being the union of two simple planar graph both on the same set of vertices. I want to show $\chi(G) \leq 12$.
Four colour theorem indicates that the chromatic number of a planar graph is less than 4, and for general graphs $\chi(G1 \cup G2) \leq \chi(G1)\*\chi(G2)$. But this would only yield an ... | 2020/12/15 | [
"https://math.stackexchange.com/questions/3949970",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/614011/"
] | Since $G\_1$ and $G\_2$ are planar, we have $|E(G\_1)| \le 3|V(G\_1)|-6$ and $|E(G\_2)| \le 3|V(G\_2)|-6$. Since $V(G\_1) = V(G\_2)$ given, let $V = V(G\_1) = V(G\_2)$ for convenience. Then we have
$$|E(G\_1)|+|E(G\_2)| = |E(G\_1 \cup G\_2)| \le 6|V|-12$$
Now, by Handshaking Lemma, we also know that
$$\sum\_{v \in V}d\... | Planar graphs satisfy $|E(G)| \le 3|V(G)|-6$, so the union of two planar graphs satisfies $|E(G)| \le 6|V(G)|-12$, which we can use to show that there is a vertex of degree less than $12$.
This leads us to a proof by induction: remove that vertex, color the rest, and then color that vertex. The inductive hypothesis ap... |
2,445,627 | Hai
am having a WPF user control in my WPF Form, when i click my button in my form , i just want to pass some value to the textbox which is in the usercontrol, tell me how to do this. | 2010/03/15 | [
"https://Stackoverflow.com/questions/2445627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/293773/"
] | There are several ways you can do this. The easiest way is to use a String property and implement INotifyPropertyChanged in your UserControl.
To illustrate, you will have your UserControl like so:
```
/// <summary>
/// Interaction logic for TextBoxUsercontrol.xaml
/// </summary>
public partial class TextBoxUsercontro... | Standard WPF? NO WAY.
Why? You dont pass values around. You get a click event on the item that is clicked (the button) with elements defined on the button (only), then in the code you access the other elements, which thus also have to be either defined in code (the standard way) and expose their values through somethi... |
2,445,627 | Hai
am having a WPF user control in my WPF Form, when i click my button in my form , i just want to pass some value to the textbox which is in the usercontrol, tell me how to do this. | 2010/03/15 | [
"https://Stackoverflow.com/questions/2445627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/293773/"
] | There are several ways you can do this. The easiest way is to use a String property and implement INotifyPropertyChanged in your UserControl.
To illustrate, you will have your UserControl like so:
```
/// <summary>
/// Interaction logic for TextBoxUsercontrol.xaml
/// </summary>
public partial class TextBoxUsercontro... | Just Create a Dependency property and Bind the Porperty to the UserControl's TextBox. While creating the object itself assign the value to the Usercontrol's dependency property. |
70,594,575 | I have a method that saves cache.
```
@GetMapping("/orders")
@Cacheable(value = "List<Order>", key = "{#customerName+'s orders', #page, #size}")
public List<Order> findOrders(@RequestParam("customerName") String customerName,
@RequestParam(name = "page") int page,
... | 2022/01/05 | [
"https://Stackoverflow.com/questions/70594575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11595665/"
] | It should be configured on your "thirdparty" cluster adding the following on your cluster config:
```
transport_socket:
name: envoy.transport_sockets.tls
``` | To add to @koffi-kodjo's answer, you also need to specify the `typed_config` property. The `transport_socket` node should be placed at the same level of the `name: thirdparty` node.
```yaml
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
"@type": type.googleap... |
54,049,663 | I am trying to run script (`script1.py`) from `windows task scheduler`. The script is supposed to control Chrome `webdriver` and I believe it could be the root of the problem.
>
> Result is 0x1.
>
>
>
Before creating the task I tested the execution of `script1.py` directly from `cmd` and it works.
So I've create... | 2019/01/05 | [
"https://Stackoverflow.com/questions/54049663",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10869884/"
] | Since we deal with webdriver in the script, the execution should be visible.
Task has to be set for "*Run only when user is logged in*", otherwise it ran in background and failed (it was set to "Run whether user is logged on or not"). | I had the same problem, but I searched all kinds of ways on Google that were unsuccessful. Finally, I found that the reason for the execution failure was that my py script had a third-party library that was not installed in Python (the script worked well in spyder, but "DLL load failed" in python.exe)hoping to help peo... |
50,695,759 | I want to convert any length of String to byte32 in Java.
Code
```
String s="9c46267273a4999031c1d0f7e40b2a59233ce59427c4b9678d6c3a4de49b6052e71f6325296c4bddf71ea9e00da4e88c4d4fcbf241859d6aeb41e1714a0e";
//Convert into byte32
``` | 2018/06/05 | [
"https://Stackoverflow.com/questions/50695759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5907617/"
] | From the comments it became clear that you want to reduce the storage space of that string to 32 bytes.
The given string can easily be compressed from the 124 bytes to 62 bytes by doing a hexadecimal conversion.
However, there is no algorithm and there will not be an algorithm that can compress any data to 32 bytes. ... | You can achieve with the following function
```
byte[] bytes = s.getBytes();
``` |
50,695,759 | I want to convert any length of String to byte32 in Java.
Code
```
String s="9c46267273a4999031c1d0f7e40b2a59233ce59427c4b9678d6c3a4de49b6052e71f6325296c4bddf71ea9e00da4e88c4d4fcbf241859d6aeb41e1714a0e";
//Convert into byte32
``` | 2018/06/05 | [
"https://Stackoverflow.com/questions/50695759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5907617/"
] | You can not convert **any** length string to a byte array of length 32.
Java uses UTF-16 as it's string encoding, so in order to store 100% of the string, 1:1 as a fixed length byte array, you would be at a surface glance be limited to 16 characters.
If you are willing to live with the limitation of 16 characters, by... | You can achieve with the following function
```
byte[] bytes = s.getBytes();
``` |
50,695,759 | I want to convert any length of String to byte32 in Java.
Code
```
String s="9c46267273a4999031c1d0f7e40b2a59233ce59427c4b9678d6c3a4de49b6052e71f6325296c4bddf71ea9e00da4e88c4d4fcbf241859d6aeb41e1714a0e";
//Convert into byte32
``` | 2018/06/05 | [
"https://Stackoverflow.com/questions/50695759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5907617/"
] | From the comments it became clear that you want to reduce the storage space of that string to 32 bytes.
The given string can easily be compressed from the 124 bytes to 62 bytes by doing a hexadecimal conversion.
However, there is no algorithm and there will not be an algorithm that can compress any data to 32 bytes. ... | You can not convert **any** length string to a byte array of length 32.
Java uses UTF-16 as it's string encoding, so in order to store 100% of the string, 1:1 as a fixed length byte array, you would be at a surface glance be limited to 16 characters.
If you are willing to live with the limitation of 16 characters, by... |
59,990,636 | I'm using Typescript. I want to
* Create a context
* Use the context in routing
* Update the context when logged in.
I'm following [this tutorial](https://www.freecodecamp.org/news/state-management-with-react-hooks/), except Typescript cut my hopes short. See below
I have this in my App.tsx
```
import React from 'r... | 2020/01/30 | [
"https://Stackoverflow.com/questions/59990636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1757321/"
] | If you take a look at the docs about [`React.createContext`](https://reactjs.org/docs/context.html#reactcreatecontext)
>
> The `defaultValue` argument is **only** used when a component does not have a matching Provider above it in the tree. This can be helpful for testing components in isolation without wrapping them... | I had a similar problem, but after many trials and errors I was able to fix it.
I was following this tutorial:
Link: <https://soshace.com/react-user-login-authentication-using-usecontext-and-usereducer/>
Code: <https://github.com/nero2009/login-auth-useContext>
The problem about routing is also covered ther... |
35,595,218 | I'm using the following code to format strings of text and put them inside `<div></div>` tags.
```
<?php
$errors = '::This is line 1 ';
$errors .= '::This is line 2 ';
$errors = preg_replace('#::(.+?)\s*(?=::|$)#','<li>$1</li>',$errors);
echo ($errors);
?>
```
[Fiddle](https://eval.in/524310)
What this does is... | 2016/02/24 | [
"https://Stackoverflow.com/questions/35595218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/407503/"
] | Use a "ThisDeviceOnly" accessibility constant, ideally kSecAttrAccessibleWhenUnlockedThisDeviceOnly :
<https://developer.apple.com/library/ios/documentation/Security/Reference/keychainservices/#//apple_ref/doc/constant_group/Keychain_Item_Accessibility_Constants> | As long as data in not in app directory these data shall not be backed up, also there are flags which can be set in folder which shall not be backedup, try similar to below
[Can I add the Do not Back up for the "Document Directory" for iCloud](https://stackoverflow.com/questions/16316819/can-i-add-the-do-not-back-up-f... |
33,097,359 | Hello all I am getting below maven build error in eclipse:I am using Maven 3.3, Java7, Kepler Eclipse 2.0.2. Can anybody help me.
```
Plugin execution not covered by lifecycle configuration: org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (execution: default, phase: initialize).
```
pom.xml
```
... | 2015/10/13 | [
"https://Stackoverflow.com/questions/33097359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5091741/"
] | Add in parent pom :
```
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
... | I had the same issue on java 8 and maven 3.6.0, I increased the version of jacoco-maven-plugin from 0.7.2.201409121644 to 0.7.9 and the problem was gone. |
33,097,359 | Hello all I am getting below maven build error in eclipse:I am using Maven 3.3, Java7, Kepler Eclipse 2.0.2. Can anybody help me.
```
Plugin execution not covered by lifecycle configuration: org.jacoco:jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (execution: default, phase: initialize).
```
pom.xml
```
... | 2015/10/13 | [
"https://Stackoverflow.com/questions/33097359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5091741/"
] | Adding plugin EclEmma (java Code Coverage)in Kepler Eclipse has solved my problem. | I had the same issue on java 8 and maven 3.6.0, I increased the version of jacoco-maven-plugin from 0.7.2.201409121644 to 0.7.9 and the problem was gone. |
10,216 | I'm trying to install **Sitecore 9 Update 1 XP0 topology** and everything looks great until the step
>
> **CreateShardApplicationDatabaseServerLoginSqlCmd**
>
>
>
[](https://i.stack.imgur.com/VvbpO.png)
The server I am running the installation w... | 2018/02/16 | [
"https://sitecore.stackexchange.com/questions/10216",
"https://sitecore.stackexchange.com",
"https://sitecore.stackexchange.com/users/393/"
] | Right after post my question, realized that sqlcmd was not installed at the server - which is weird, because XP1 topology didn't require at all!
In my case, I had to download and install
* [Microsoft ODBC Driver 13 for SQL Server](https://www.microsoft.com/en-us/download/details.aspx?id=50420)
* [Microsoft Command Li... | Thank you, Vinicius. To add to the correct answer, after downloading the two utilities from your answer, my problem was not resolved.
I encountered into the same issue when running Sitecore installation using SIF on staging environment where SQL server was not added to environment variables.
When running the SIF on de... |
10,216 | I'm trying to install **Sitecore 9 Update 1 XP0 topology** and everything looks great until the step
>
> **CreateShardApplicationDatabaseServerLoginSqlCmd**
>
>
>
[](https://i.stack.imgur.com/VvbpO.png)
The server I am running the installation w... | 2018/02/16 | [
"https://sitecore.stackexchange.com/questions/10216",
"https://sitecore.stackexchange.com",
"https://sitecore.stackexchange.com/users/393/"
] | Right after post my question, realized that sqlcmd was not installed at the server - which is weird, because XP1 topology didn't require at all!
In my case, I had to download and install
* [Microsoft ODBC Driver 13 for SQL Server](https://www.microsoft.com/en-us/download/details.aspx?id=50420)
* [Microsoft Command Li... | Adding to Vinicius answer and Rama suggestion.
If it still does not work Restart would help. It worked for me after a restart. |
10,216 | I'm trying to install **Sitecore 9 Update 1 XP0 topology** and everything looks great until the step
>
> **CreateShardApplicationDatabaseServerLoginSqlCmd**
>
>
>
[](https://i.stack.imgur.com/VvbpO.png)
The server I am running the installation w... | 2018/02/16 | [
"https://sitecore.stackexchange.com/questions/10216",
"https://sitecore.stackexchange.com",
"https://sitecore.stackexchange.com/users/393/"
] | Thank you, Vinicius. To add to the correct answer, after downloading the two utilities from your answer, my problem was not resolved.
I encountered into the same issue when running Sitecore installation using SIF on staging environment where SQL server was not added to environment variables.
When running the SIF on de... | Adding to Vinicius answer and Rama suggestion.
If it still does not work Restart would help. It worked for me after a restart. |
66,405,566 | Question:
What are the total distributions in 2020 from properties that were acquired in 2019 broken down by state?
So far this is what I have and seems like I am not getting it right to sum up? what step am I missing. I am not getting an error but not getting an answer either? Any ideas?
```
CREATE TABLE Property
(... | 2021/02/28 | [
"https://Stackoverflow.com/questions/66405566",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12935314/"
] | The problem should comes from the encoding and decoding. When users try editing the ini file from windows Notepad, especially the non-english windows users, the ini file will be changed to some other default encodings. Some hidden chars will show up then, however you won't see it from any text editor, but unfortunately... | I solved it. The file was saved as 'UTF-8 with BOM' encoding. When it is edited and saved by notepad in windows, it will be automatically saved as like this. |
11,778 | Normally, reputation increases by 10 if an answer gets 1 upvote, 15 if an answer is accepted, and 5 if a question gets 1 upvote.
But on this website, reputation increases by 1 for some of my questions. I'd like to know how reputation increases by 1. Thanks. | 2018/10/10 | [
"https://english.meta.stackexchange.com/questions/11778",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/319007/"
] | Although it's not particularly clear when looking at [this page](https://english.stackexchange.com/users/319007/math-wizard?tab=reputation&sort=post) (because the events didn't happen in this order), the complete summary of your reputation on this site can be summarized as follows:
* Association bonus: +100
* 7 upvote... | It's also possible that you've reached the reputation maximum for the day.
In general you can only gain 200 reputation per day (although some things bypass this: bounty awards, accepted answers, and association bonuses). For instance, if you were already at 199 (somehow), then getting an upvote would only give you one... |
11,778 | Normally, reputation increases by 10 if an answer gets 1 upvote, 15 if an answer is accepted, and 5 if a question gets 1 upvote.
But on this website, reputation increases by 1 for some of my questions. I'd like to know how reputation increases by 1. Thanks. | 2018/10/10 | [
"https://english.meta.stackexchange.com/questions/11778",
"https://english.meta.stackexchange.com",
"https://english.meta.stackexchange.com/users/319007/"
] | Your reputation may increase by 1 if an answer you downvoted is deleted.
You can see all the individual events that affected your reputation by going to your Profile->Activity->Reputation. | It's also possible that you've reached the reputation maximum for the day.
In general you can only gain 200 reputation per day (although some things bypass this: bounty awards, accepted answers, and association bonuses). For instance, if you were already at 199 (somehow), then getting an upvote would only give you one... |
64,961,755 | This program is run when there is no extant file named "Test Object.to". The output of this program is "IO caught". Why?
```
import java.io.*;
public class Test
{
public static void main (String [] args)
{
TestObject testObject = new TestObject("Test Object");
try
{
saveT... | 2020/11/23 | [
"https://Stackoverflow.com/questions/64961755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8273105/"
] | First of all, this does not throw a `FileNotFoundException`, since [as per the docs](https://docs.oracle.com/javase/7/docs/api/java/io/FileOutputStream.html#FileOutputStream(java.io.File)), `FileOutputStream`'s constructor will create the file if it doesn't exist instead of throwing an error. If you print the error, yo... | Ok I see now that TestObject obviously needs to implement Serializable |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | You're probably used to this in a different sense, but [disgusting](http://www.dictionary.com/browse/disgusting) means
>
> causing disgust; offensive to the physical, moral, or aesthetic taste.
>
>
>
The etymology of [disgust](http://www.etymonline.com/index.php?term=disgust) is "dis + taste"; in other words, it ... | **gag**
>
> to experience the sudden uncomfortable feeling of tightness in the
> throat and stomach that makes you feel like you are going to vomit
>
>
>
[Cambridge](http://dictionary.cambridge.org/dictionary/english/gag?a=british) |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | >
> “smell” : “***reek***”
>
> “taste” : “***smack***”
>
>
>
There is no one word that works everywhere, but ***smack*** is a perfect replacement in the compound verb *reeks of*:
>
> Your plan *reeks of* desperation. (*bad-smell metaphor*)
>
> Your plan *smacks of* desperation. (*bad-taste metaphor*)
>
... | **Bite**. Often implies acidity, but works for any strong flavor.
>
> 3A sharp or pungent flavour. ‘a fresh, lemony bite’
>
>
>
ODO bite: <https://en.oxforddictionaries.com/definition/bite> |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | Perhaps "**smack**" would serve. This meaning of the word is defined by [oxforddictionaries.com](https://en.oxforddictionaries.com/definition/smack) as
>
> Have a flavour of; taste of
>
>
>
and
>
> Suggest the presence or effects of (something wrong or unpleasant)
>
>
> | **Bite**. Often implies acidity, but works for any strong flavor.
>
> 3A sharp or pungent flavour. ‘a fresh, lemony bite’
>
>
>
ODO bite: <https://en.oxforddictionaries.com/definition/bite> |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | >
> “smell” : “***reek***”
>
> “taste” : “***smack***”
>
>
>
There is no one word that works everywhere, but ***smack*** is a perfect replacement in the compound verb *reeks of*:
>
> Your plan *reeks of* desperation. (*bad-smell metaphor*)
>
> Your plan *smacks of* desperation. (*bad-taste metaphor*)
>
... | Just from the limited information given by the OP, he/she seems to be asking for a verb for taste with a negative connotation.
>
> smell : reek :: taste : \_\_\_\_\_\_\_\_\_
>
>
>
Taking the general meaning of "reek" as "smell bad," a comparable verb that, when used for taste, generally means "taste bad" is [**cl... |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | >
> “smell” : “***reek***”
>
> “taste” : “***smack***”
>
>
>
There is no one word that works everywhere, but ***smack*** is a perfect replacement in the compound verb *reeks of*:
>
> Your plan *reeks of* desperation. (*bad-smell metaphor*)
>
> Your plan *smacks of* desperation. (*bad-taste metaphor*)
>
... | You're probably used to this in a different sense, but [disgusting](http://www.dictionary.com/browse/disgusting) means
>
> causing disgust; offensive to the physical, moral, or aesthetic taste.
>
>
>
The etymology of [disgust](http://www.etymonline.com/index.php?term=disgust) is "dis + taste"; in other words, it ... |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | You're probably used to this in a different sense, but [disgusting](http://www.dictionary.com/browse/disgusting) means
>
> causing disgust; offensive to the physical, moral, or aesthetic taste.
>
>
>
The etymology of [disgust](http://www.etymonline.com/index.php?term=disgust) is "dis + taste"; in other words, it ... | Not sure that there is a comparable word as 'taste' by itself (even in context) does not have an alternate meaning that implies unpleasantness. 'Smell' can imply unpleasantness.
Example:
"Something smells."
"Somethings tastes."
..and as an adjective can in fact imply pleasantness...
"That is smelly."
"That is tasty... |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | Just from the limited information given by the OP, he/she seems to be asking for a verb for taste with a negative connotation.
>
> smell : reek :: taste : \_\_\_\_\_\_\_\_\_
>
>
>
Taking the general meaning of "reek" as "smell bad," a comparable verb that, when used for taste, generally means "taste bad" is [**cl... | It's not a verb but maybe [pungent](http://www.merriam-webster.com/dictionary/pungent) [MW] would work for you
>
> having a strong, sharp taste or smell
>
>
> |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | Perhaps "**smack**" would serve. This meaning of the word is defined by [oxforddictionaries.com](https://en.oxforddictionaries.com/definition/smack) as
>
> Have a flavour of; taste of
>
>
>
and
>
> Suggest the presence or effects of (something wrong or unpleasant)
>
>
> | It's not a verb but maybe [pungent](http://www.merriam-webster.com/dictionary/pungent) [MW] would work for you
>
> having a strong, sharp taste or smell
>
>
> |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | Just from the limited information given by the OP, he/she seems to be asking for a verb for taste with a negative connotation.
>
> smell : reek :: taste : \_\_\_\_\_\_\_\_\_
>
>
>
Taking the general meaning of "reek" as "smell bad," a comparable verb that, when used for taste, generally means "taste bad" is [**cl... | Not sure that there is a comparable word as 'taste' by itself (even in context) does not have an alternate meaning that implies unpleasantness. 'Smell' can imply unpleasantness.
Example:
"Something smells."
"Somethings tastes."
..and as an adjective can in fact imply pleasantness...
"That is smelly."
"That is tasty... |
355,700 | If "reek" is used as a term to describe something that smells bad, what word of equivalent meaning would describe something that tastes bad? | 2016/10/27 | [
"https://english.stackexchange.com/questions/355700",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/-1/"
] | Perhaps "**smack**" would serve. This meaning of the word is defined by [oxforddictionaries.com](https://en.oxforddictionaries.com/definition/smack) as
>
> Have a flavour of; taste of
>
>
>
and
>
> Suggest the presence or effects of (something wrong or unpleasant)
>
>
> | Not sure that there is a comparable word as 'taste' by itself (even in context) does not have an alternate meaning that implies unpleasantness. 'Smell' can imply unpleasantness.
Example:
"Something smells."
"Somethings tastes."
..and as an adjective can in fact imply pleasantness...
"That is smelly."
"That is tasty... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | I would (and do) apply the Athletics skill. Characters don't get a lot of skills, so it's an investment to choose Athletics as one of the (about) 4 you get. So it should be of some use.
The entire point of the Athletics skill is that you are better at physical tasks, Opening (stuck, locked, etc.) doors is a physical t... | Personally I always let people add their applicable skills. It makes more sense that someone who trains in lifting things (which is part of athletics) would be better at lifting a portcullis than someone who isn't. They would probably also have an easier time opening a stuck door. If someone puts one of their limited n... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | RAW Forcing open a door is a Strength Check
-------------------------------------------
Comparing Strength with Strength (Athletics) as described in the PHB, we can conclude that forcing open a door should be a Strength check.
Let's start with Strength checks. The PHB says (175/176 - emphasis mine) says
>
> A Stren... | I would (and do) apply the Athletics skill. Characters don't get a lot of skills, so it's an investment to choose Athletics as one of the (about) 4 you get. So it should be of some use.
The entire point of the Athletics skill is that you are better at physical tasks, Opening (stuck, locked, etc.) doors is a physical t... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | I would (and do) apply the Athletics skill. Characters don't get a lot of skills, so it's an investment to choose Athletics as one of the (about) 4 you get. So it should be of some use.
The entire point of the Athletics skill is that you are better at physical tasks, Opening (stuck, locked, etc.) doors is a physical t... | I would allow either, on physical (real-world) grounds.
If you have the brute strength, then fine, use it, smash down the door on a plain Strength check.
If you have specific training for using and controlling your strength, then use that—a Strength (Athletics) check—to break down the door. Take advantage of the prof... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | The Angry GM brings up this particular example in his article on Ability Checks. <https://theangrygm.com/being-in-flex-able/>
Since you’re asking this question, I highly recommend reading the full overview of ability checks, skills, and a seasoned review of the rules and some recommendations.
The short version is tha... | Personally I always let people add their applicable skills. It makes more sense that someone who trains in lifting things (which is part of athletics) would be better at lifting a portcullis than someone who isn't. They would probably also have an easier time opening a stuck door. If someone puts one of their limited n... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | RAW Forcing open a door is a Strength Check
-------------------------------------------
Comparing Strength with Strength (Athletics) as described in the PHB, we can conclude that forcing open a door should be a Strength check.
Let's start with Strength checks. The PHB says (175/176 - emphasis mine) says
>
> A Stren... | The Angry GM brings up this particular example in his article on Ability Checks. <https://theangrygm.com/being-in-flex-able/>
Since you’re asking this question, I highly recommend reading the full overview of ability checks, skills, and a seasoned review of the rules and some recommendations.
The short version is tha... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | The Angry GM brings up this particular example in his article on Ability Checks. <https://theangrygm.com/being-in-flex-able/>
Since you’re asking this question, I highly recommend reading the full overview of ability checks, skills, and a seasoned review of the rules and some recommendations.
The short version is tha... | I would allow either, on physical (real-world) grounds.
If you have the brute strength, then fine, use it, smash down the door on a plain Strength check.
If you have specific training for using and controlling your strength, then use that—a Strength (Athletics) check—to break down the door. Take advantage of the prof... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | RAW Forcing open a door is a Strength Check
-------------------------------------------
Comparing Strength with Strength (Athletics) as described in the PHB, we can conclude that forcing open a door should be a Strength check.
Let's start with Strength checks. The PHB says (175/176 - emphasis mine) says
>
> A Stren... | Personally I always let people add their applicable skills. It makes more sense that someone who trains in lifting things (which is part of athletics) would be better at lifting a portcullis than someone who isn't. They would probably also have an easier time opening a stuck door. If someone puts one of their limited n... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | I would allow either, on physical (real-world) grounds.
If you have the brute strength, then fine, use it, smash down the door on a plain Strength check.
If you have specific training for using and controlling your strength, then use that—a Strength (Athletics) check—to break down the door. Take advantage of the prof... | Personally I always let people add their applicable skills. It makes more sense that someone who trains in lifting things (which is part of athletics) would be better at lifting a portcullis than someone who isn't. They would probably also have an easier time opening a stuck door. If someone puts one of their limited n... |
185,647 | According to RAW, should forcing stuck/locked/barred doors open be a Strength check, or a Strength (Athletics) check?
As I read the description of the Strength ability and the Athletics skill in the rules, it seems that brute force checks, such as pushing/shoving/kicking or pulling open a stuck, heavy or locked door s... | 2021/05/29 | [
"https://rpg.stackexchange.com/questions/185647",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/52407/"
] | RAW Forcing open a door is a Strength Check
-------------------------------------------
Comparing Strength with Strength (Athletics) as described in the PHB, we can conclude that forcing open a door should be a Strength check.
Let's start with Strength checks. The PHB says (175/176 - emphasis mine) says
>
> A Stren... | I would allow either, on physical (real-world) grounds.
If you have the brute strength, then fine, use it, smash down the door on a plain Strength check.
If you have specific training for using and controlling your strength, then use that—a Strength (Athletics) check—to break down the door. Take advantage of the prof... |
55,562,537 | I am learning ElasticSearch following the example [elasticsearch-net-example](https://github.com/elastic/elasticsearch-net-example/tree/6.x-netcore).
The error occurs in the following code:
```
foreach (var package in packages)
{
var result = Client.Index(package); <--The type arguments for... | 2019/04/07 | [
"https://Stackoverflow.com/questions/55562537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7670994/"
] | As I understand it, ElasticSearch could not determine the type name by the input value, so you need to add its name in the second parameter:
```
var result = Client.Index<FeedPackage>(package, i => i.Type("package"));
``` | I've had the same issue just a minute ago. Make sure you are using proper .net client version. In my case I was looking at doc for version 1.x while using version 7.x of the client - may bad :)
Current version is available here: <https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/nest-getting-started... |
55,562,537 | I am learning ElasticSearch following the example [elasticsearch-net-example](https://github.com/elastic/elasticsearch-net-example/tree/6.x-netcore).
The error occurs in the following code:
```
foreach (var package in packages)
{
var result = Client.Index(package); <--The type arguments for... | 2019/04/07 | [
"https://Stackoverflow.com/questions/55562537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7670994/"
] | I just met the same problem. Changing the code to `var result = Client.Index<FeedPackage>(package, i => i.Type("package"));` as MiXaiL suggested in his upvoted answer does not work because it won't compile. However, simply changing `Index()` to `IndexDocument()` works beautifully:
```
var result = Client.IndexDocument... | I've had the same issue just a minute ago. Make sure you are using proper .net client version. In my case I was looking at doc for version 1.x while using version 7.x of the client - may bad :)
Current version is available here: <https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/nest-getting-started... |
39,653 | Often times we file a bug and later see that it's marked as "As Designed" by the developer. Sometimes it gets marked as "Will Not Fix".
When a bug is marked "Will Not Fix" then it is supposed to give credit to the tester and an acknowledgement that the bug was valid but it was decided not to fix it.
What is the thin... | 2019/06/20 | [
"https://sqa.stackexchange.com/questions/39653",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/816/"
] | When a bug is marking as "**Will not Fix**" it may have many probabilities.
* We need to validate the severity/impact of the bug to the users. If the bug is really valid one but it wont have much impact on the user and business side then it can go in "Will not Fix" category
* "Will not Fix" innocents the bug will not ... | A decision about a bug MUST ALWAYS BE MADE by the core team: project manager, architect, analyst, test lead... whatever they may be called in the organization.
"Will not fix" acknowledges the presence of the bug. It is quite dangerous to choose this option, if a very careful analysis is not done regarding its impact (... |
39,653 | Often times we file a bug and later see that it's marked as "As Designed" by the developer. Sometimes it gets marked as "Will Not Fix".
When a bug is marked "Will Not Fix" then it is supposed to give credit to the tester and an acknowledgement that the bug was valid but it was decided not to fix it.
What is the thin... | 2019/06/20 | [
"https://sqa.stackexchange.com/questions/39653",
"https://sqa.stackexchange.com",
"https://sqa.stackexchange.com/users/816/"
] | I can recommend this reading about [bug advocacy](http://www.testingeducation.org/BBST/bugadvocacy/) by Cem Kaner.
There is also a [workbook](https://rads.stackoverflow.com/amzn/click/com/098981193X) by him. It provides useful help in how you can learn to 'defend your bug', but it also teaches about understanding your... | A decision about a bug MUST ALWAYS BE MADE by the core team: project manager, architect, analyst, test lead... whatever they may be called in the organization.
"Will not fix" acknowledges the presence of the bug. It is quite dangerous to choose this option, if a very careful analysis is not done regarding its impact (... |
1,124,774 | Can you tell me what does the function do and how would you document the following function using **Comments**:
```
function tosql($value, $value_type, $is_delimiters = true, $use_null = true)
{
if (is_array($value) || strlen($value)) {
switch ($value_type) {
case NUMBER:
... | 2009/07/14 | [
"https://Stackoverflow.com/questions/1124774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103132/"
] | Well giving it a quick once over it appears to be a function to safely convert a given value to a string that can be used in an SQL command. If it can't convert it then it give a suitable safe value, 'NULL', so as not to break the code.
```
usage: tosql( mydate, 'DATE' )
```
Suggest you cut and paste something like ... | It takes a value and a constant denoting the type of value and turns it into something acceptable in a SQL statement. It supports arrays as well for some types (`DATETIME`, `DATE`, `TIME`, `TIMESTAMP`, and `LIST` types). When `$is_delimiters` is true, it surrounds the item with single quotes (for inserted values and co... |
1,124,774 | Can you tell me what does the function do and how would you document the following function using **Comments**:
```
function tosql($value, $value_type, $is_delimiters = true, $use_null = true)
{
if (is_array($value) || strlen($value)) {
switch ($value_type) {
case NUMBER:
... | 2009/07/14 | [
"https://Stackoverflow.com/questions/1124774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/103132/"
] | Using PHPDocumentor
```
/**
* tosql
* Converts a string to a valid sql string
* @param string
* @param string
* @return string
*/
function tosql($value, $value_type, $is_delimiters = true, $use_null = true)
{
}
``` | It takes a value and a constant denoting the type of value and turns it into something acceptable in a SQL statement. It supports arrays as well for some types (`DATETIME`, `DATE`, `TIME`, `TIMESTAMP`, and `LIST` types). When `$is_delimiters` is true, it surrounds the item with single quotes (for inserted values and co... |
38,082,539 | I have got function in controller which looks like this:
```
//Create room
public function createRoom(){
$room = $this->Rooms->newEntity();
if($this->request->is('post')){
$room = $this->Rooms->patchEntity($room, $this->request->data);
$user_field = $this->Rooms->Users->find()->where(['id' => $... | 2016/06/28 | [
"https://Stackoverflow.com/questions/38082539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4222739/"
] | You can simply use [ng-change](https://docs.angularjs.org/api/ng/directive/ngChange)
```js
var myComponent = {
scope: {},
bindings: {},
controller: function() {
this.inputText = "boo";
this.inputNumber = 666;
this.changeEvent = function(val) {
console.log("change event" + val);
}
... | In Controller:
```
$scope.$watch("myForm.$dirty", function() {
$scope.myForm.$setPristine();
});
```
Html:
```
<form name="myForm">
<input type="text" ng-model="$ctrl.inputText">
<input type="number" ng-model="$ctrl.inputNumber">
</form>
``` |
41,043,828 | My goal is simple and I have achieved this previously which is why I'm resorting to asking my question here.
I am trying to animate a subview. Simple enough. The view ends up exactly where I want it to be after the animation is over. The only problem is:
whatever I do the animation duration is completely ignored. It h... | 2016/12/08 | [
"https://Stackoverflow.com/questions/41043828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6923171/"
] | You can try
[self.view layoutIfNeeded];
like this
```
- (void)callToDismissView:(UIView *)view {
[self.view addSubview:view];
[self dismissViewControllerAnimated:NO completion:nil];
[self.view layoutIfNeeded];
[UIView animateWithDuration:0.25 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^(voi... | Maybe you need try like this.
```
- (void)callToDismissView:(UIView *)view {
[self.view addSubview:view];
CGRect frame = self.view.frame;
frame.origin.x = frame.size.width;
[UIView animateWithDuration:0.3 delay:0.3
options:UIViewAnimationOptionCurveEaseInOut animations:^(void){... |
41,043,828 | My goal is simple and I have achieved this previously which is why I'm resorting to asking my question here.
I am trying to animate a subview. Simple enough. The view ends up exactly where I want it to be after the animation is over. The only problem is:
whatever I do the animation duration is completely ignored. It h... | 2016/12/08 | [
"https://Stackoverflow.com/questions/41043828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6923171/"
] | You can try
[self.view layoutIfNeeded];
like this
```
- (void)callToDismissView:(UIView *)view {
[self.view addSubview:view];
[self dismissViewControllerAnimated:NO completion:nil];
[self.view layoutIfNeeded];
[UIView animateWithDuration:0.25 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^(voi... | It seems there was no way in hell I could animate the transition in the presenting view controller and so the simplest way to resolve the issue was to animate the transition in the presented view controller before it is being dismissed.
The way I did this was by casting the delegate to a view controller. It was then ea... |
183,021 | I have been in a team for more than a year and I am stuck. The company works on proprietary software and I don't have much guidance. I waste all my time going round in circles and I can barely get other team members to give me some basic info. My weekend and weekdays are also lost because of this.
This is my first job... | 2022/02/24 | [
"https://workplace.stackexchange.com/questions/183021",
"https://workplace.stackexchange.com",
"https://workplace.stackexchange.com/users/133159/"
] | Never resign without having another job lined up. There are many other answers on this site that explain why. Don't do it.
Your question reads like you are burning out. I would focus on getting your mind back on track.
1. Practice detaching yourself from the stuff happening in your workplace: What happens at work, st... | When you do have time to yourself take time to reflect and re-organize. Where you want to work, what you can do in terms of your skills and abilities, goals either at the same company or career goals in general and decide if your goals can be better met at the current company or with a different one. As for interviewin... |
25,577,011 | The steps to install composer globally is there: <https://getcomposer.org/doc/00-intro.md#globally>
The commands there are:
`curl -sS https://getcomposer.org/installer | php`
`mv composer.phar /usr/local/bin/composer`
but The original the command:
`curl -sS https://getcomposer.org/installer | php`
returns: `... | 2014/08/29 | [
"https://Stackoverflow.com/questions/25577011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/971619/"
] | This is not a perfect answer but it solved for me.
just hit the url
```
https://getcomposer.org/installer
```
it'll download a file name "installer",
Now go to the download folder where it downloaded
Run this command
```
php installer
```
It'll give you new file composer.phar
This is the exact file that you w... | Fot some reason Curl try using ipv6 to download compose, and the result is a time out.
try this:
echo ipv4 >> ~/.curlrc
then try again:
curl -sS <https://getcomposer.org/installer> | php |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | I would say
A False, as IDS only notifies and does not prevent intrusion. So the missed traffic will pass.
B TRUE
C False as network-based firewall will inspect all packets that are originating from both the local and outside networks. (in case they pass the firewall)
D False, the same as C. | Remember the difference between IDS and IPS. Detection and Prevention. Wjile IDS may run on a host and can detect attacks it has no way to prevent them. Since a IPS is on the firewall it can see and stop all malicious traffic.
A, True, since it may be implemented on the hosts (HIDS)
B, True, an IPS must be able to st... |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | First of all, let's look at definitions for IPS and IDS:
[IDS](https://en.wikipedia.org/wiki/Intrusion_detection_system):
>
> An intrusion detection system (IDS) is a device or software application **that monitors** a network or systems for malicious activity or policy violations. Any detected activity or violation ... | Remember the difference between IDS and IPS. Detection and Prevention. Wjile IDS may run on a host and can detect attacks it has no way to prevent them. Since a IPS is on the firewall it can see and stop all malicious traffic.
A, True, since it may be implemented on the hosts (HIDS)
B, True, an IPS must be able to st... |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | The correct answer should be A and D option.
**a.- An IDS deals with malicious traffic that the firewall missed.**
b.- An IPS is on the boundary of the trusted inside and the untrusted outside.
c.- A network-based firewall protects hosts from malicious traffic originating on their same network.
**d.- An IPS protect... | Remember the difference between IDS and IPS. Detection and Prevention. Wjile IDS may run on a host and can detect attacks it has no way to prevent them. Since a IPS is on the firewall it can see and stop all malicious traffic.
A, True, since it may be implemented on the hosts (HIDS)
B, True, an IPS must be able to st... |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | I would say
A False, as IDS only notifies and does not prevent intrusion. So the missed traffic will pass.
B TRUE
C False as network-based firewall will inspect all packets that are originating from both the local and outside networks. (in case they pass the firewall)
D False, the same as C. | My Answer is:
A - True - traffic that evades the firewalls will be deal with IDS and IPS.
B - False- A Firewall sits on the border between the trusted inside and the untrusted outside.
C - True - A network vulnerable to malicious traffic originating
from that very network.
D - True - IPS as a control device is in-l... |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | First of all, let's look at definitions for IPS and IDS:
[IDS](https://en.wikipedia.org/wiki/Intrusion_detection_system):
>
> An intrusion detection system (IDS) is a device or software application **that monitors** a network or systems for malicious activity or policy violations. Any detected activity or violation ... | My Answer is:
A - True - traffic that evades the firewalls will be deal with IDS and IPS.
B - False- A Firewall sits on the border between the trusted inside and the untrusted outside.
C - True - A network vulnerable to malicious traffic originating
from that very network.
D - True - IPS as a control device is in-l... |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | The correct answer should be A and D option.
**a.- An IDS deals with malicious traffic that the firewall missed.**
b.- An IPS is on the boundary of the trusted inside and the untrusted outside.
c.- A network-based firewall protects hosts from malicious traffic originating on their same network.
**d.- An IPS protect... | My Answer is:
A - True - traffic that evades the firewalls will be deal with IDS and IPS.
B - False- A Firewall sits on the border between the trusted inside and the untrusted outside.
C - True - A network vulnerable to malicious traffic originating
from that very network.
D - True - IPS as a control device is in-l... |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | First of all, let's look at definitions for IPS and IDS:
[IDS](https://en.wikipedia.org/wiki/Intrusion_detection_system):
>
> An intrusion detection system (IDS) is a device or software application **that monitors** a network or systems for malicious activity or policy violations. Any detected activity or violation ... | I would say
A False, as IDS only notifies and does not prevent intrusion. So the missed traffic will pass.
B TRUE
C False as network-based firewall will inspect all packets that are originating from both the local and outside networks. (in case they pass the firewall)
D False, the same as C. |
158,893 | I am studying Security Fundamentals on Networks and as a part of an excercise I have the following question:
```
Which of the following statements are true? (Select all that apply)
a.- An IDS deals with malicious traffic that the firewall missed.
b.- An IPS is on the boundary of the trusted inside and the untrusted ... | 2017/05/06 | [
"https://security.stackexchange.com/questions/158893",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/147557/"
] | First of all, let's look at definitions for IPS and IDS:
[IDS](https://en.wikipedia.org/wiki/Intrusion_detection_system):
>
> An intrusion detection system (IDS) is a device or software application **that monitors** a network or systems for malicious activity or policy violations. Any detected activity or violation ... | The correct answer should be A and D option.
**a.- An IDS deals with malicious traffic that the firewall missed.**
b.- An IPS is on the boundary of the trusted inside and the untrusted outside.
c.- A network-based firewall protects hosts from malicious traffic originating on their same network.
**d.- An IPS protect... |
7,563,772 | I have a PHP form that inputs empID, projectNumber, and clock-in/clock-out time-stamp into a MySQL table like this:
Having no reputation, I can't post image, so take a look here:
[screenshot http://mailed.in/timecard/ss1.jpg](http://mailed.in/timecard/ss1.jpg)
I need help in generating a report that looks like this:
... | 2011/09/27 | [
"https://Stackoverflow.com/questions/7563772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/966171/"
] | >
> This confused me because I thought that one user only has a specific session, no one can access of the others. If so, session attributes are thread safe.
>
>
>
Well, if that was the case, session attributes need not be thread-safe. That is different from saying they are thread-safe.
The lack of thread safety ... | Session attribute is not `thread safe`.
From this document ([Java theory and practice: Are all stateful Web applications broken?](http://www.ibm.com/developerworks/library/j-jtp09238/index.html))
>
> When a Web application stores mutable session data such as a shopping
> cart in an HttpSession, it becomes possible ... |
143,599 | I'm hoping to get some feedback on a function with variadic templates that parses a format string and fills in some parameters whose order and types are based on the characters in the format string. Kind of like `scanf()`.
(For the curious, I am trying to make a typesafe version of [this function](https://git.gnome.or... | 2016/10/08 | [
"https://codereview.stackexchange.com/questions/143599",
"https://codereview.stackexchange.com",
"https://codereview.stackexchange.com/users/119603/"
] | >
> So here's what I'm hoping to find out:
> Is this code idiomatic modern C++?
>
>
>
Pretty much.
You use recursion to handle the multiple arguments. But a better technique may be to use the compiler to build objects to handle each argument. Unfortunately the way you have to defined the interface makes this a... | Bug
===
There is at least one bug I noticed: if `format` is shorter than the number of arguments minus 1, you'll only detect this when scanning the last one, where `format` will point past the end of string.
Interface
=========
Output parameters
-----------------
The `tscanf` interface is not uniform for all suppor... |
6,666,083 | I'm working on a side project at work which requires me to write some javascript code. Unfortunately I'm very new to the javascript world and am learning as I go.
So part of what I have to do requires me to find certain comments on the page, and I am using the following line to get all the comments first:
```
var ar... | 2011/07/12 | [
"https://Stackoverflow.com/questions/6666083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/487894/"
] | You can traverse the DOM starting at the node, `document` and iterating each node's `childNodes` array. When you find a node, you can test for the `nodeType==8`
Here are links to
[childNodes](https://developer.mozilla.org/En/DOM/Node.childNodes)
[nodeType](https://developer.mozilla.org/en/nodeType)
[document.creat... | You could avoid this by loading the page in a String variable (e.g. using AJAX) and parsing it.
I would say ignoring comments should be the desired behaviour, beacuse comments should be considered a "no-go" for the parser/interpreter.
IE is always doing some fancy (non-standard) stuff which often breaks things ;) |
41,591,028 | Extent report version - 3.0
Language - Java and TestNG classes
I have a class - ExtentManager.java
```
package framewrk;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
public class ExtentManager ... | 2017/01/11 | [
"https://Stackoverflow.com/questions/41591028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3448017/"
] | In the above approach, you are creating a new extent report in each Class. That is why you are getting only the latest executed test result.
You can create a common superclass for both TC1 and TC2 classes. In the superclass you can create @AfterClass and @BeforeClass functions. Then it should work.
Hope it helps! | ```
Use this method extent.flush() in @aftersuite. because this statement generates the result
{
public class TC1
{
static ExtentReports extent;
static ExtentTest test;
@BeforeClass
public void setup(){
extent = ExtentManager.GetExtent();
}
@Test
public void OpenUT(){
... |
41,591,028 | Extent report version - 3.0
Language - Java and TestNG classes
I have a class - ExtentManager.java
```
package framewrk;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
public class ExtentManager ... | 2017/01/11 | [
"https://Stackoverflow.com/questions/41591028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3448017/"
] | In the above approach, you are creating a new extent report in each Class. That is why you are getting only the latest executed test result.
You can create a common superclass for both TC1 and TC2 classes. In the superclass you can create @AfterClass and @BeforeClass functions. Then it should work.
Hope it helps! | I got one approach that works well, 1st check if the extent object is already created? if yes then return the object without reinitialising the extent object, here is how it looks
Under the ExtentManager class [as shown in the question], add this code block
```
public static ExtentReports getInstance() {
if(e... |
41,591,028 | Extent report version - 3.0
Language - Java and TestNG classes
I have a class - ExtentManager.java
```
package framewrk;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
public class ExtentManager ... | 2017/01/11 | [
"https://Stackoverflow.com/questions/41591028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3448017/"
] | In the above approach, you are creating a new extent report in each Class. That is why you are getting only the latest executed test result.
You can create a common superclass for both TC1 and TC2 classes. In the superclass you can create @AfterClass and @BeforeClass functions. Then it should work.
Hope it helps! | In your case **ExtentManager.GetExtent()** this method overrides the previously created report hence only the last test result shows up in report. Make sure this method is only called during the whole set of your test start, best way is to do it by implementing ITestListener |
41,591,028 | Extent report version - 3.0
Language - Java and TestNG classes
I have a class - ExtentManager.java
```
package framewrk;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
public class ExtentManager ... | 2017/01/11 | [
"https://Stackoverflow.com/questions/41591028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3448017/"
] | I got one approach that works well, 1st check if the extent object is already created? if yes then return the object without reinitialising the extent object, here is how it looks
Under the ExtentManager class [as shown in the question], add this code block
```
public static ExtentReports getInstance() {
if(e... | ```
Use this method extent.flush() in @aftersuite. because this statement generates the result
{
public class TC1
{
static ExtentReports extent;
static ExtentTest test;
@BeforeClass
public void setup(){
extent = ExtentManager.GetExtent();
}
@Test
public void OpenUT(){
... |
41,591,028 | Extent report version - 3.0
Language - Java and TestNG classes
I have a class - ExtentManager.java
```
package framewrk;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
public class ExtentManager ... | 2017/01/11 | [
"https://Stackoverflow.com/questions/41591028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3448017/"
] | In your case **ExtentManager.GetExtent()** this method overrides the previously created report hence only the last test result shows up in report. Make sure this method is only called during the whole set of your test start, best way is to do it by implementing ITestListener | ```
Use this method extent.flush() in @aftersuite. because this statement generates the result
{
public class TC1
{
static ExtentReports extent;
static ExtentTest test;
@BeforeClass
public void setup(){
extent = ExtentManager.GetExtent();
}
@Test
public void OpenUT(){
... |
4,621,593 | Hi i need to pass my Request.Form as a parameter, but first i have to add some key/value pairs to it. I get the exception that the Collection is readonly.
I've tried:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
```
and i get the same error.
and i've tried:
```
foreach(KeyValueP... | 2011/01/07 | [
"https://Stackoverflow.com/questions/4621593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470772/"
] | You don't need to cast a `string` to `string`. `NameValueCollection` is built around string keys, and string values. How about a quick extension method:
```
public static IDictionary<string, string> ToDictionary(this NameValueCollection col)
{
var dict = new Dictionary<string, string>();
foreach (var key in col.K... | Andre,
how about:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
IDictionary<string, string> myDictionary =
myform.Cast<string>()
.Select(s => new { Key = s, Value = myform[s] })
.ToDictionary(p => p.Key, p => p.Value);
```
uses LINQ to keep it all on one ... |
4,621,593 | Hi i need to pass my Request.Form as a parameter, but first i have to add some key/value pairs to it. I get the exception that the Collection is readonly.
I've tried:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
```
and i get the same error.
and i've tried:
```
foreach(KeyValueP... | 2011/01/07 | [
"https://Stackoverflow.com/questions/4621593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470772/"
] | You don't need to cast a `string` to `string`. `NameValueCollection` is built around string keys, and string values. How about a quick extension method:
```
public static IDictionary<string, string> ToDictionary(this NameValueCollection col)
{
var dict = new Dictionary<string, string>();
foreach (var key in col.K... | ```
public static IEnumerable<Tuple<string, string>> ToEnumerable(this NameValueCollection collection)
{
return collection
//.Keys
.Cast<string>()
.Select(key => new Tuple<string, string>(key, collection[key]));
}
```
or
```
public static Dictionary<string, string> ToDictionary(this NameVal... |
4,621,593 | Hi i need to pass my Request.Form as a parameter, but first i have to add some key/value pairs to it. I get the exception that the Collection is readonly.
I've tried:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
```
and i get the same error.
and i've tried:
```
foreach(KeyValueP... | 2011/01/07 | [
"https://Stackoverflow.com/questions/4621593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470772/"
] | You don't need to cast a `string` to `string`. `NameValueCollection` is built around string keys, and string values. How about a quick extension method:
```
public static IDictionary<string, string> ToDictionary(this NameValueCollection col)
{
var dict = new Dictionary<string, string>();
foreach (var key in col.K... | If your already using MVC then you can do it with 0 lines of code.
```
using System.Web.Mvc;
var dictionary = new Dictionary<string, object>();
Request.Form.CopyTo(dictionary);
``` |
4,621,593 | Hi i need to pass my Request.Form as a parameter, but first i have to add some key/value pairs to it. I get the exception that the Collection is readonly.
I've tried:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
```
and i get the same error.
and i've tried:
```
foreach(KeyValueP... | 2011/01/07 | [
"https://Stackoverflow.com/questions/4621593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470772/"
] | If your already using MVC then you can do it with 0 lines of code.
```
using System.Web.Mvc;
var dictionary = new Dictionary<string, object>();
Request.Form.CopyTo(dictionary);
``` | Andre,
how about:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
IDictionary<string, string> myDictionary =
myform.Cast<string>()
.Select(s => new { Key = s, Value = myform[s] })
.ToDictionary(p => p.Key, p => p.Value);
```
uses LINQ to keep it all on one ... |
4,621,593 | Hi i need to pass my Request.Form as a parameter, but first i have to add some key/value pairs to it. I get the exception that the Collection is readonly.
I've tried:
```
System.Collections.Specialized.NameValueCollection myform = Request.Form;
```
and i get the same error.
and i've tried:
```
foreach(KeyValueP... | 2011/01/07 | [
"https://Stackoverflow.com/questions/4621593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/470772/"
] | If your already using MVC then you can do it with 0 lines of code.
```
using System.Web.Mvc;
var dictionary = new Dictionary<string, object>();
Request.Form.CopyTo(dictionary);
``` | ```
public static IEnumerable<Tuple<string, string>> ToEnumerable(this NameValueCollection collection)
{
return collection
//.Keys
.Cast<string>()
.Select(key => new Tuple<string, string>(key, collection[key]));
}
```
or
```
public static Dictionary<string, string> ToDictionary(this NameVal... |
6,689,343 | ```
<form name="formone" id="optionsform">
<fieldset>
<label><input type="radio" name="group1" id="ac-yes" value="1">Yes</label>
<label><input type="radio" name="group1" id="ac-no" value="0">No</label>
<label><input type="radio" name="group2" id="bt-yes" value="2">Yes</label>
<label><input type... | 2011/07/14 | [
"https://Stackoverflow.com/questions/6689343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/843977/"
] | Change
```
$('input[type=radio]').click(fonction(){
var score = 0;
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val()});
$('a').attr('href',urls[score]);
}
```
To
```
$('input[type=radio]').click(function(){ // 'function' not fonction
var score = 0;
$('input[type=r... | It should be:
```
$('input[type=radio]').click(function(){
var score = 0;
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val()});
$('a').attr('href',urls[score]);
});
``` |
6,689,343 | ```
<form name="formone" id="optionsform">
<fieldset>
<label><input type="radio" name="group1" id="ac-yes" value="1">Yes</label>
<label><input type="radio" name="group1" id="ac-no" value="0">No</label>
<label><input type="radio" name="group2" id="bt-yes" value="2">Yes</label>
<label><input type... | 2011/07/14 | [
"https://Stackoverflow.com/questions/6689343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/843977/"
] | Change
```
$('input[type=radio]').click(fonction(){
var score = 0;
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val()});
$('a').attr('href',urls[score]);
}
```
To
```
$('input[type=radio]').click(function(){ // 'function' not fonction
var score = 0;
$('input[type=r... | You are missing the closing parenthesis for the `.click(` call. You also have `function` mispelled there. |
6,689,343 | ```
<form name="formone" id="optionsform">
<fieldset>
<label><input type="radio" name="group1" id="ac-yes" value="1">Yes</label>
<label><input type="radio" name="group1" id="ac-no" value="0">No</label>
<label><input type="radio" name="group2" id="bt-yes" value="2">Yes</label>
<label><input type... | 2011/07/14 | [
"https://Stackoverflow.com/questions/6689343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/843977/"
] | Change
```
$('input[type=radio]').click(fonction(){
var score = 0;
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val()});
$('a').attr('href',urls[score]);
}
```
To
```
$('input[type=radio]').click(function(){ // 'function' not fonction
var score = 0;
$('input[type=r... | You misspelt `function`, so while you are trying to pass a function statement, you are actually passing a function call followed by a block where a block isn't allowed. |
6,689,343 | ```
<form name="formone" id="optionsform">
<fieldset>
<label><input type="radio" name="group1" id="ac-yes" value="1">Yes</label>
<label><input type="radio" name="group1" id="ac-no" value="0">No</label>
<label><input type="radio" name="group2" id="bt-yes" value="2">Yes</label>
<label><input type... | 2011/07/14 | [
"https://Stackoverflow.com/questions/6689343",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/843977/"
] | Change
```
$('input[type=radio]').click(fonction(){
var score = 0;
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val()});
$('a').attr('href',urls[score]);
}
```
To
```
$('input[type=radio]').click(function(){ // 'function' not fonction
var score = 0;
$('input[type=r... | ```
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val()});
```
The Above line is Missing the ')' Symbol after ParseInt in your code
```
$('input[type=radio]:checked').each(function(){score+=parseInt($(this).val())});
``` |
2,954,814 | ### Requirements
[Word frequency algorithm for natural language processing](https://stackoverflow.com/questions/90580/word-frequency-algorithm-for-natural-language-processing)
### Using Solr
While the answer for that question is excellent, I was wondering if I could make use of all the time I spent getting to know S... | 2010/06/02 | [
"https://Stackoverflow.com/questions/2954814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62653/"
] | I guess you can use Solr and combine it with other tools.
Tokenization, stop word removal, stemming, and even synonyms come out of the box with Solr.
If you need named entity recognition or base noun-phrase extraction, you need to use [OpenNLP](http://opennlp.sourceforge.net/) or an equivalent tool as a pre-processing ... | You can actually configure Solr to use NLP algorithms both when indexing documents and at search time.
The first phase (indexing time) can be done using/writing Solr UpdateRequestProcessor plugins for analyzing fields texts while the second phase can be implemented writing a custom QParserPlugin which analyzes the quer... |
2,954,814 | ### Requirements
[Word frequency algorithm for natural language processing](https://stackoverflow.com/questions/90580/word-frequency-algorithm-for-natural-language-processing)
### Using Solr
While the answer for that question is excellent, I was wondering if I could make use of all the time I spent getting to know S... | 2010/06/02 | [
"https://Stackoverflow.com/questions/2954814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62653/"
] | I guess you can use Solr and combine it with other tools.
Tokenization, stop word removal, stemming, and even synonyms come out of the box with Solr.
If you need named entity recognition or base noun-phrase extraction, you need to use [OpenNLP](http://opennlp.sourceforge.net/) or an equivalent tool as a pre-processing ... | There is a special request handler designed to apply parsing to filter our less relevant search results. It is based on machine learning of constituency parse trees obtained by OpenNLP.
Please see the blog
<http://search-engineering.blogspot.com>
and the paper
<http://dx.doi.org/10.1016/j.datak.2012.07.003>
This SOL... |
2,954,814 | ### Requirements
[Word frequency algorithm for natural language processing](https://stackoverflow.com/questions/90580/word-frequency-algorithm-for-natural-language-processing)
### Using Solr
While the answer for that question is excellent, I was wondering if I could make use of all the time I spent getting to know S... | 2010/06/02 | [
"https://Stackoverflow.com/questions/2954814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62653/"
] | I guess you can use Solr and combine it with other tools.
Tokenization, stop word removal, stemming, and even synonyms come out of the box with Solr.
If you need named entity recognition or base noun-phrase extraction, you need to use [OpenNLP](http://opennlp.sourceforge.net/) or an equivalent tool as a pre-processing ... | In this Google code project
<http://code.google.com/p/relevance-based-on-parse-trees>
you can use the linguistic-based request handler
in the package opennlp.tools.similarity.apps.solr
public class SyntGenRequestHandler extends SearchHandler
where the search results obtained by SearchHandler
are re-ranked based on ... |
2,954,814 | ### Requirements
[Word frequency algorithm for natural language processing](https://stackoverflow.com/questions/90580/word-frequency-algorithm-for-natural-language-processing)
### Using Solr
While the answer for that question is excellent, I was wondering if I could make use of all the time I spent getting to know S... | 2010/06/02 | [
"https://Stackoverflow.com/questions/2954814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62653/"
] | You can actually configure Solr to use NLP algorithms both when indexing documents and at search time.
The first phase (indexing time) can be done using/writing Solr UpdateRequestProcessor plugins for analyzing fields texts while the second phase can be implemented writing a custom QParserPlugin which analyzes the quer... | There is a special request handler designed to apply parsing to filter our less relevant search results. It is based on machine learning of constituency parse trees obtained by OpenNLP.
Please see the blog
<http://search-engineering.blogspot.com>
and the paper
<http://dx.doi.org/10.1016/j.datak.2012.07.003>
This SOL... |
2,954,814 | ### Requirements
[Word frequency algorithm for natural language processing](https://stackoverflow.com/questions/90580/word-frequency-algorithm-for-natural-language-processing)
### Using Solr
While the answer for that question is excellent, I was wondering if I could make use of all the time I spent getting to know S... | 2010/06/02 | [
"https://Stackoverflow.com/questions/2954814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/62653/"
] | You can actually configure Solr to use NLP algorithms both when indexing documents and at search time.
The first phase (indexing time) can be done using/writing Solr UpdateRequestProcessor plugins for analyzing fields texts while the second phase can be implemented writing a custom QParserPlugin which analyzes the quer... | In this Google code project
<http://code.google.com/p/relevance-based-on-parse-trees>
you can use the linguistic-based request handler
in the package opennlp.tools.similarity.apps.solr
public class SyntGenRequestHandler extends SearchHandler
where the search results obtained by SearchHandler
are re-ranked based on ... |
37,480,598 | I'm trying to write a piece of code for encrypting/decrypting data (e.g. passwords) which will be stored in DB. The goal is that data can be used in C++, PHP and Java. The problem is I’m not getting same encrypted data in C++ and PHP (I’m not dealing with Java jet).
C++ code:
```
void CSSLtestDlg::TryIt()
{
CStrin... | 2016/05/27 | [
"https://Stackoverflow.com/questions/37480598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2050867/"
] | So the problem was in C++ code in StrToHex() function (which I forget to post in original question) so here it is:
```
CString StrToHex(unsigned char* str)
{
CString tmp;
CString csHexString;
int nCount = strlen((char *)str);
for( int nIdx =0; nIdx < nCount; nIdx++ )
{ ... | There's also another extra 0 in the second output (B6/B06). Those are probably the only low bytes in the output, and you have different format settings.
If you show your C++ StrToHex it's probably a simple format string fix, like %x to %0x. |
1,798,313 | What range of numbers $[2, X]$ should I search, to be absolutely sure that I would get exactly or more than $N$ prime numbers within that range? Any formula for $X$? | 2016/05/24 | [
"https://math.stackexchange.com/questions/1798313",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/342019/"
] | Since $\pi(x)\sim\frac{x}{\log x}$ by the PNT, $p\_n$ behaves like $n\log n$. You may use Chebyshev's weak version $$C\_1\frac{x}{\log x}\leq \pi(x)\leq C\_2\frac{x}{\log x}$$
to deduce explicit (enough) bounds for $p\_n$.
Anyway, unless $n$ is extremely small, there are at least $n$ primes in the range $[2,n\log^2(n... | Rosser and Schoenfeld proved that for $X \ge 17$ there are at least $N$ primes less than or equal to $\dfrac X {\ln X}$. So, choose $X$ so that $\dfrac X {\ln X} \ge N$. |
72,982,746 | I am migrating a lot of old presentations to a new design using VBA. I have created the new file from a template, copied each slide across and applied the correct custom layout that I need to each one. Once done, I am left with a load of the old custom layouts that are not used, and want to delete them all. The new des... | 2022/07/14 | [
"https://Stackoverflow.com/questions/72982746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19550213/"
] | You could utilize vue's [`defineExpose`](https://vuejs.org/api/sfc-script-setup.html#defineexpose) method and then add a `ref` for your `MainContent` component and access it through that.
```
<!-- MAIN COMPONENT -->
<template>
<PageWrap>
<template v-slot:content>
<MainContent ref="mainContentCo... | you can try:
```js
<!-- MAIN CONTENT COMPONENT -->
<template>
<div id="main-content" ref='mainContentRef'>
<slot name='content'></slot>
</div>
</template>
<script setup>
import { defineProps, ref } from 'vue';
const mainContentRef = ref(null);
// Now you can do:
mainContentRef.val... |
8,009,557 | I've started learning how to use blocks/functions/lambda in Objective-C. But I can't get it to work with Objects. Probably I'm missing some pointer, but it's not working however I do.
This is my code for the moment:
```
MyEventArgs (^skapaEventArg)(Operation);
skapaEventArg = ^(Operation a) { return *[[MyEventArgs al... | 2011/11/04 | [
"https://Stackoverflow.com/questions/8009557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/753126/"
] | It should be:
```
MyEventArgs *(^skapaEventArg)(Operation);
skapaEventArg = ^(Operation a) { return [[MyEventArgs alloc] initWithOperation:a]; };
MyEventArgs *a = skapaEventArg(Add);
```
Note the `*` in the first line, and the lack of it in the second line. | ```
return *[[MyEventArgs alloc] initWithOperation:a];
```
I think you get "incompatible type" error because you return dereferenced pointer. |
6,397 | Is the patient's height available in MIMIC-III? In my use case, I would be interested in having it in order to compute the patient's ideal body weight.
On Oracle DB:
```
SELECT *
FROM all_tab_columns
WHERE LOWER(column_name) = 'height'
AND owner = 'MIMIC';
```
or on PostgreSQL:
```
select table_name
from informa... | 2015/11/05 | [
"https://opendata.stackexchange.com/questions/6397",
"https://opendata.stackexchange.com",
"https://opendata.stackexchange.com/users/1652/"
] | You can use this [query](https://github.com/MIT-LCP/mimic-code/blob/master/demographics/postgres/HeightWeightQuery.sql) (tested on MIMIC-III v1.1, took around 80 seconds to run on my computer):
```
-- ------------------------------------------------------------------
-- Title: Extract height and weight for ICUSTAY_IDs... | see this link from the GITHUB code repository for MIMIC iii
<https://github.com/MIT-LCP/mimic-code/blob/master/concepts/firstday/height-first-day.sql> |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | There's another sourceforge project called pyro4. It can handle python modules like: numpy, sklearn... And maybe it's even better because it is currently developed. (last jepp version was released in 2010) | I've found this [link](http://weka.wikispaces.com/Using+WEKA+via+Jepp) today.
It says: 'Jepp doesn't seem to be able to import third-party libraries like scipy, numpy or wx (pure Python modules can be imported, though).'
Can anybody confirm this? |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | Check out <https://github.com/mrj0/jep>, that's where JEP is now. And it seems it was updated recently. As per the site it now works with Python version >= 2.6. | I've found this [link](http://weka.wikispaces.com/Using+WEKA+via+Jepp) today.
It says: 'Jepp doesn't seem to be able to import third-party libraries like scipy, numpy or wx (pure Python modules can be imported, though).'
Can anybody confirm this? |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | I cannot speak for earlier versions of JEP, but I was able to run your script from the JEP 3.7.1 command line. It uses Python 3.6.5. I can also run the equivalent in Java 8.
C:>jep ... .... python\python36\Lib\site-packages\jep\console.py"
```
No readline available. History will not be available.
... | I've found this [link](http://weka.wikispaces.com/Using+WEKA+via+Jepp) today.
It says: 'Jepp doesn't seem to be able to import third-party libraries like scipy, numpy or wx (pure Python modules can be imported, though).'
Can anybody confirm this? |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | I've found this [link](http://weka.wikispaces.com/Using+WEKA+via+Jepp) today.
It says: 'Jepp doesn't seem to be able to import third-party libraries like scipy, numpy or wx (pure Python modules can be imported, though).'
Can anybody confirm this? | Balazs, it will indeed import 3rd-party libraries. One can do a `Jep.eval('import sklearn')` statement. |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | There's another sourceforge project called pyro4. It can handle python modules like: numpy, sklearn... And maybe it's even better because it is currently developed. (last jepp version was released in 2010) | Check out <https://github.com/mrj0/jep>, that's where JEP is now. And it seems it was updated recently. As per the site it now works with Python version >= 2.6. |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | There's another sourceforge project called pyro4. It can handle python modules like: numpy, sklearn... And maybe it's even better because it is currently developed. (last jepp version was released in 2010) | I cannot speak for earlier versions of JEP, but I was able to run your script from the JEP 3.7.1 command line. It uses Python 3.6.5. I can also run the equivalent in Java 8.
C:>jep ... .... python\python36\Lib\site-packages\jep\console.py"
```
No readline available. History will not be available.
... |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | There's another sourceforge project called pyro4. It can handle python modules like: numpy, sklearn... And maybe it's even better because it is currently developed. (last jepp version was released in 2010) | Balazs, it will indeed import 3rd-party libraries. One can do a `Jep.eval('import sklearn')` statement. |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | Check out <https://github.com/mrj0/jep>, that's where JEP is now. And it seems it was updated recently. As per the site it now works with Python version >= 2.6. | Balazs, it will indeed import 3rd-party libraries. One can do a `Jep.eval('import sklearn')` statement. |
15,734,259 | I'd like to use python modules in my python code. But I think jepp cannot handle it properly.
**For example:**
```
>>>from sklearn import linear_model
>>>clf = linear_model.LinearRegression()
>>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2])
>>>LinearRegression(copy_X=True, fit_intercept=True... | 2013/03/31 | [
"https://Stackoverflow.com/questions/15734259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1559672/"
] | I cannot speak for earlier versions of JEP, but I was able to run your script from the JEP 3.7.1 command line. It uses Python 3.6.5. I can also run the equivalent in Java 8.
C:>jep ... .... python\python36\Lib\site-packages\jep\console.py"
```
No readline available. History will not be available.
... | Balazs, it will indeed import 3rd-party libraries. One can do a `Jep.eval('import sklearn')` statement. |
567,240 | A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as:
$$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$
But if you imagine... | 2020/07/21 | [
"https://physics.stackexchange.com/questions/567240",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/266613/"
] | >
> But if you imagine lifting up a rock from the ground at a constant speed, am I not doing work on the rock by converting the chemical energy stored in my muscles into the potential energy of the rock?
>
>
>
Yes, you do. There are a few things to be noted here. First, as you lift it up, the rock has to move whic... | My professor explained it to me by giving me the spring example.
Suppose there is a spring attached to a block of mass m at one end and wall at the other.Neglect friction everywhere.
If we now pull the mass with constant velocity. Let's us see what changes happens:
In the above example there are 3 objects that are m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.