qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
80,667
For example usage, on asking a question. The lack of response was expected/annoying... Google gave me 'Indifferent' but I believe there must be something else.
2012/09/05
[ "https://english.stackexchange.com/questions/80667", "https://english.stackexchange.com", "https://english.stackexchange.com/users/589/" ]
"Unresponsiveness" works if you really need it to be a single word.
Consider *[stodginess](http://en.wiktionary.org/wiki/stodginess)* (“state or quality of being stodgy”, *ie* of being dull, old-fashioned); as in “The stodginess of their response shocked me.” Also consider *[complacency](http://en.wiktionary.org/wiki/complacency#Noun)*, as in “The complacency of their response amazed m...
80,667
For example usage, on asking a question. The lack of response was expected/annoying... Google gave me 'Indifferent' but I believe there must be something else.
2012/09/05
[ "https://english.stackexchange.com/questions/80667", "https://english.stackexchange.com", "https://english.stackexchange.com/users/589/" ]
If OP doesn't like **indifference**, how about > > [apathy](http://www.thefreedictionary.com/apathy) *- lack of interest or concern, especially regarding matters of general importance or appeal* > > >
*The **stonewalling** was expected/annoying...* Wikipedia says : > > Stonewalling is a refusal to communicate or cooperate. Such behaviour occurs in situations such as marriage guidance counseling, diplomatic negotiations, politics and legal cases > > > and *Dictionary.com Unabridged. Based on the Random House D...
80,667
For example usage, on asking a question. The lack of response was expected/annoying... Google gave me 'Indifferent' but I believe there must be something else.
2012/09/05
[ "https://english.stackexchange.com/questions/80667", "https://english.stackexchange.com", "https://english.stackexchange.com/users/589/" ]
Perhaps > > The silence was deafening. > > >
"Inaction", "Inattention", or "Disregard" might be fitting. The first most fitting I think but maybe a little broad. > > The inaction was expected. > > >
254,480
We have 2 household ranges sidebyside on 2 50amp breakers. We want to replace both stoves with 1 60in commercial stove with burners/griddle and 2 ovens below. Without doing to much rewiring..is this possible.
2022/08/10
[ "https://diy.stackexchange.com/questions/254480", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/155218/" ]
It depends on a lot of things but for a 60 inch *commercial all-electric range*, 30kW is typical. Plus or minus a lot, but attempting to answer a very general question. For that on a residential single-phase 240V circuit you're going to need an entire 150A service panel just for the range. Most of these are able to ac...
You might want to run your plan by your home insurance agent. Your policy may not insure commercial equipment. I would want something in writing. If you’re buying new, check whether the warranty is valid for being in a home. Do you have the required clearance around the stove?
25,826,396
it is awkward, but until now i always copy the \*.h and the \*.c files to my projekts location. this is a mess and i want to change it! i want to build my own c library and have a few questions about it. where should i locate the \*.h files? should i copy them in the global /usr/include/ folder or should i create ...
2014/09/13
[ "https://Stackoverflow.com/questions/25826396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3403216/" ]
I would recommend putting the files somewhere in your `$HOME` directory. Let's say you've created a library called `linluk` and you want to keep that library under `$HOME/dev/c/linluk`. That would be your project root. You'll want a sensible directory structure. My suggestion is to have a `lib` directory containing yo...
As I commented, you should try first to build and install from its source code several free software libraries, e.g. like [libonion](http://www.coralbits.com/libonion/) or [gdbm](http://www.gnu.org.ua/software/gdbm/) or [GNU readline](http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html) etc (don't use any distribut...
34,548,493
I'm using MailChimp and I want to display the sign up form on a button click. They provide a modal pop up but it only loads when the page loads or after x amount of secs. I want to display the screen only when a user clicks a button. Can anyone lead me the right way? This is the code I get from MailChimp. ``` <scrip...
2015/12/31
[ "https://Stackoverflow.com/questions/34548493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1281890/" ]
In `server.xml` comment or remove the following line: ``` <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> ``` Also, check if the variable `JAVA_HOME` is set and pointing to your correct Java installation.
It seems you dont have a server.xml on your project or maybe there a mistake on it. Can you check ? Or post the server.xml file ? Sincerely
13,096,650
I'm writing a GUI application using Python and Qt as a GUI library. I would like to perform certain scheduled actions after e.g. 3 days or so (but some more often, some even more rare etc). I have discovered the QTimer() app but my understanding is that it only tracks time while the software is running. So, for exa...
2012/10/27
[ "https://Stackoverflow.com/questions/13096650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/647897/" ]
Either your app has to run all the time, eq. as a little systray icon on windows, or you need the operating system to run a version of your app regularly to check for updates. What operating system are you using? edit: on windows see this answer to get your program run at scheduled intervals [Programmitically how to ...
Creating a scheduler outside of the running PyQt app is a bit outside the scope of PyQt itself, and is platform-dependant. Unless you create a second app that runs strictly as a `Qt.WindowSystemMenuHint` in the system tray and actually performs the update separate of your main app. So here is an example of something t...
63,611,737
This is my CSS ```css .marquee { color: red; margin: 0; display: inline-block; white-space: nowrap; animation-name: marquee; animation-timing-function: linear; animation-duration: 10s; animation-iteration-count: infinite; } @keyframes marquee{ 0%{ transform: translate(10%, 0); } 100%{ transform: tran...
2020/08/27
[ "https://Stackoverflow.com/questions/63611737", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14174877/" ]
As you already use `awk` to create the arrays `log_array` and `lag_array` I'd recommend to do everything in a single `awk` command. This is not only shorter to write and faster to execute, but also more precise as `awk` supports floating point numbers whereas `bash` does not. ``` awk 'NR>1 && ($3-$4)/$3 > 0.3' inputFi...
If you don't mind the loss in precision coming from the fact that bash does not support floating point or fractional arithmetic, you can do a ``` if (( ${log_array[$i]} - ${lag_array[$j] * 100 / ${log_array[i]} > 20 )) then ... fi ```
46,118,351
I am trying to get a a max value per stretch of an indicator, or repeating value. Here is an example: ``` A = c(28, 20, 23, 30, 26, 23, 25, 26, 27, 25, 30, 26, 25, 22, 24, 25, 24, 27, 29) B = c(0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1) df <- as.data.frame(cbind(A, B)) df A B 28 0 20 1 23 1 30 0 26 0 2...
2017/09/08
[ "https://Stackoverflow.com/questions/46118351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7014711/" ]
One option would be `data.table` ``` library(data.table) setDT(df)[, Max := +((A== max(A)) & B), rleid(B) ] df # A B Max # 1: 28 0 0 # 2: 20 1 0 # 3: 23 1 1 # 4: 30 0 0 # 5: 26 0 0 # 6: 23 1 0 # 7: 25 1 0 # 8: 26 1 1 # 9: 27 0 0 #10: 25 0 0 #11: 30 1 1 #12: 26 1 0 #13: 25 1 0 #14: 22 0 ...
Solution using `dplyr` ``` library(dplyr) df %>% group_by(with(rle(B), rep(seq_along(lengths), lengths))) %>% mutate(MAX = ifelse(B == 0, 0, as.numeric(A == max(A)))) %>% .[, c(1, 2, 4)] A B MAX <dbl> <dbl> <dbl> 1 28 0 0 2 20 1 0 3 23 1 1 4 30 ...
4,259,650
So, $i$ and complex expressions are used as a sort of stepping stone to bypass domain issues when solving expressions and equations algebraically; it is very convenient to be able to factor out or solve the square root of a negative number. But is it just $i$? Are there any constants with no direct connection to the re...
2021/09/25
[ "https://math.stackexchange.com/questions/4259650", "https://math.stackexchange.com", "https://math.stackexchange.com/users/810037/" ]
**Hint:** Observe, $$\frac{\sin(x^2-1)}{x-1}=\frac{\sin(x^2-1)}{x^2-1}\cdot (x+1)=\frac{\sin y}{y}\cdot (x+1)$$ where $y=x^2-1$. Note, if $x$ tends to $1$ then, $y$ tends to $0$.
$$\lim\_{x\to1} \frac{\sin(x^2-1)}{(x-1)}=\lim\_{x\to1}\frac{\sin(x^2-1)}{(x^2-1)}\cdot (x+1)=\lim\_{x^2\to1}\frac{\sin (x^2-1)}{(x^2-1)}\lim\_{x\to1} (x+1)=1\times2$$
4,259,650
So, $i$ and complex expressions are used as a sort of stepping stone to bypass domain issues when solving expressions and equations algebraically; it is very convenient to be able to factor out or solve the square root of a negative number. But is it just $i$? Are there any constants with no direct connection to the re...
2021/09/25
[ "https://math.stackexchange.com/questions/4259650", "https://math.stackexchange.com", "https://math.stackexchange.com/users/810037/" ]
**Hint:** Observe, $$\frac{\sin(x^2-1)}{x-1}=\frac{\sin(x^2-1)}{x^2-1}\cdot (x+1)=\frac{\sin y}{y}\cdot (x+1)$$ where $y=x^2-1$. Note, if $x$ tends to $1$ then, $y$ tends to $0$.
Alternatively, you can observe that $\sin(x^{2} - 1) \sim x^{2} - 1$ when $x\to 1$. Based on such relation, we conclude that \begin{align\*} \lim\_{x\to 1}\frac{\sin(x^{2} - 1)}{x - 1} & = \lim\_{x\to 1}\frac{x^{2} - 1}{x-1}\\\\ & = \lim\_{x\to 1}(x+1)\\\\ & = 2 \end{align\*}
4,259,650
So, $i$ and complex expressions are used as a sort of stepping stone to bypass domain issues when solving expressions and equations algebraically; it is very convenient to be able to factor out or solve the square root of a negative number. But is it just $i$? Are there any constants with no direct connection to the re...
2021/09/25
[ "https://math.stackexchange.com/questions/4259650", "https://math.stackexchange.com", "https://math.stackexchange.com/users/810037/" ]
**Hint:** Observe, $$\frac{\sin(x^2-1)}{x-1}=\frac{\sin(x^2-1)}{x^2-1}\cdot (x+1)=\frac{\sin y}{y}\cdot (x+1)$$ where $y=x^2-1$. Note, if $x$ tends to $1$ then, $y$ tends to $0$.
The above solutions are very simple to understand but this is also what you can do: Expansion $\sin(t) = $ $t- \frac{t^3}{3!} +\frac{t^5}{5!}..... $ Now, $\frac{x^2-1}{x-1}-\frac{(x^2-1){3}}{3!(x-1)} +.......$ As ${x\to1} $ all higher powers ${\to0}$ Left with $\frac{(x+1)(x-1)}{x-1}$ As ${x\to1}$ implied $x-1{\to0...
4,259,650
So, $i$ and complex expressions are used as a sort of stepping stone to bypass domain issues when solving expressions and equations algebraically; it is very convenient to be able to factor out or solve the square root of a negative number. But is it just $i$? Are there any constants with no direct connection to the re...
2021/09/25
[ "https://math.stackexchange.com/questions/4259650", "https://math.stackexchange.com", "https://math.stackexchange.com/users/810037/" ]
$$\lim\_{x\to1} \frac{\sin(x^2-1)}{(x-1)}=\lim\_{x\to1}\frac{\sin(x^2-1)}{(x^2-1)}\cdot (x+1)=\lim\_{x^2\to1}\frac{\sin (x^2-1)}{(x^2-1)}\lim\_{x\to1} (x+1)=1\times2$$
The above solutions are very simple to understand but this is also what you can do: Expansion $\sin(t) = $ $t- \frac{t^3}{3!} +\frac{t^5}{5!}..... $ Now, $\frac{x^2-1}{x-1}-\frac{(x^2-1){3}}{3!(x-1)} +.......$ As ${x\to1} $ all higher powers ${\to0}$ Left with $\frac{(x+1)(x-1)}{x-1}$ As ${x\to1}$ implied $x-1{\to0...
4,259,650
So, $i$ and complex expressions are used as a sort of stepping stone to bypass domain issues when solving expressions and equations algebraically; it is very convenient to be able to factor out or solve the square root of a negative number. But is it just $i$? Are there any constants with no direct connection to the re...
2021/09/25
[ "https://math.stackexchange.com/questions/4259650", "https://math.stackexchange.com", "https://math.stackexchange.com/users/810037/" ]
Alternatively, you can observe that $\sin(x^{2} - 1) \sim x^{2} - 1$ when $x\to 1$. Based on such relation, we conclude that \begin{align\*} \lim\_{x\to 1}\frac{\sin(x^{2} - 1)}{x - 1} & = \lim\_{x\to 1}\frac{x^{2} - 1}{x-1}\\\\ & = \lim\_{x\to 1}(x+1)\\\\ & = 2 \end{align\*}
The above solutions are very simple to understand but this is also what you can do: Expansion $\sin(t) = $ $t- \frac{t^3}{3!} +\frac{t^5}{5!}..... $ Now, $\frac{x^2-1}{x-1}-\frac{(x^2-1){3}}{3!(x-1)} +.......$ As ${x\to1} $ all higher powers ${\to0}$ Left with $\frac{(x+1)(x-1)}{x-1}$ As ${x\to1}$ implied $x-1{\to0...
73,566,373
I am developing a webapp with spring boot with Windows 10 Pro German Edition. As IDE i am using Spring Tool Suite. When i start the application from the console with maven: ``` mvn clean package -Pproduction && mvn spring-boot:run -Dfile.encoding=UTF8 ``` and i call on the String "Jürgen" string.toCharArray() and sh...
2022/09/01
[ "https://Stackoverflow.com/questions/73566373", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2605902/" ]
The `Material-UI` library you are using makes this very easy. Their components behave differently based on the types of props you provide them with. In the case of `<Chip>`, if you pass an `onDelete` method, it should automatically show the "X" at the end. However, since you already did that, it should work. My...
There are two ways to add icon Way 1 u can use material ui icons to add icon Way 2 u can use bootstrap 5 to add icon By way 2 the steps are Step 1 Keep the cdn in the head part in index.html ``` <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-g...
36,070
I have a car with all four new tires installed at the same time 6 months ago. Three of them are identical and one is different (front right if this matters). Today, I noticed that the front tires have significant tread wear compared to the rear ones. I have checked several articles on diagnosing tread wear, but his typ...
2016/09/07
[ "https://mechanics.stackexchange.com/questions/36070", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/19474/" ]
Assuming the vehicle is front wheel drive, more wear in the front tyres than the rear is normal as the the driving wheels have plenty more torque and stresses placed on them than the rears. Avoiding harsh braking and accelerating will extend the life of the tyres.
If the tire tread is worn evenly and you have a front wheel drive car, that's just wear on your drive wheel from acceleration. On some vehicles, one wheel is favored more than the other. If it's that significant, congrats on driving it like you stole it- nothing wrong with that.
274,260
Below the first sentence is from one LSAT. My confusion is how **1.** differs from **2.**, which I made for comparison. > > 1. Works of art in the Renaissance were mostly commissioned by patrons. > > > > > 2. Most works of art in the Renaissance were commissioned by patrons. > > > I am wondering whether "1."...
2021/02/04
[ "https://ell.stackexchange.com/questions/274260", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/116956/" ]
1. Works of art in the Renaissance were mostly commissioned by patrons. 2. Most works of art in the Renaissance were commissioned by patrons. In this example, it is very difficult to perceive any difference in meaning between the two sentences. However, the constructions don't always mean the same. For example: 1. P...
As rjpond says, it is difficult to draw a distinction in meaning between the two sentences. But consider this. The second sentence has the unambiguous meaning that most works of art were entirely commissioned by patrons. Some were, some weren't. However, the meaning of the first sentence could be taken to mean this, b...
601,628
Good day. I am designing a power control circuit for dimming a 100W bulb using BTA16. In the circuit shown below, when I apply power to the circuit I only receive the positive pulse at the output (of both MOC3020 and the Triac, triggered perfectly at the desired angle) but it completely blocks the negative cycle. (Circ...
2021/12/24
[ "https://electronics.stackexchange.com/questions/601628", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/262268/" ]
I’m 99% sure you can use it. 16.8 V to 17 V is a 1.2% increase in supply voltage, and almost every product can operate perfectly within that range.
Every electronic component, and every electronic circuit has a tolerance for its parameters. It is highly likely that a 17 V power supply delivers a voltage which is within the tolerance range of the required 16.8 V input of your circuit. If this were a life-critical situation, say for aircraft or medical usage, I woul...
601,628
Good day. I am designing a power control circuit for dimming a 100W bulb using BTA16. In the circuit shown below, when I apply power to the circuit I only receive the positive pulse at the output (of both MOC3020 and the Triac, triggered perfectly at the desired angle) but it completely blocks the negative cycle. (Circ...
2021/12/24
[ "https://electronics.stackexchange.com/questions/601628", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/262268/" ]
Every electronic component, and every electronic circuit has a tolerance for its parameters. It is highly likely that a 17 V power supply delivers a voltage which is within the tolerance range of the required 16.8 V input of your circuit. If this were a life-critical situation, say for aircraft or medical usage, I woul...
Plug the power supply into AC (without connecting to your mixer) and measure the output voltage. If it is 17 V (with and without a load), you'll be fine. This means it is a regulated power supply with actual regulation. Some older power supplies or low cost power supplies from things like low-voltage desk lamps, or ot...
601,628
Good day. I am designing a power control circuit for dimming a 100W bulb using BTA16. In the circuit shown below, when I apply power to the circuit I only receive the positive pulse at the output (of both MOC3020 and the Triac, triggered perfectly at the desired angle) but it completely blocks the negative cycle. (Circ...
2021/12/24
[ "https://electronics.stackexchange.com/questions/601628", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/262268/" ]
I’m 99% sure you can use it. 16.8 V to 17 V is a 1.2% increase in supply voltage, and almost every product can operate perfectly within that range.
Plug the power supply into AC (without connecting to your mixer) and measure the output voltage. If it is 17 V (with and without a load), you'll be fine. This means it is a regulated power supply with actual regulation. Some older power supplies or low cost power supplies from things like low-voltage desk lamps, or ot...
50,299,147
I have a service in my Angular 5 project that holds some configuration state: ``` @Injectable export class FooService { isIncognito: boolean = null; constructor() { // I want Angular to wait for this to resolve (i.e. until `isIncognito != null`): FooService.isIncognitoWindow() .t...
2018/05/11
[ "https://Stackoverflow.com/questions/50299147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/159145/" ]
What you can do is use `APP_INITIALIZER` token to make sure that your `FooService` is initialised before the application starts. With the code below, angular will only start the application when the promise returned by the `load` method has resolved. **FooService.ts** ``` @Injectable() export class FooService { ...
If `isIncognitoWindow` returns `Promise` try this: ``` await awaitFooService.isIncognitoWindow() .then( isIncognito => { this.isIncognito= isIncognito; } ); ```
34,390,284
I'm trying to implement a KeyListener for a JFrame form in java. So far, I used the [code suggested here](https://stackoverflow.com/a/1379517/906428) and got a fairly good result, but when the event fires (when any of the desired keys is pressed), it seems that not only do I get the last key pressed, but as the occurr...
2015/12/21
[ "https://Stackoverflow.com/questions/34390284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/906428/" ]
The basic problem is, you are getting both a key pressed and key released event, but you are only changing `optionselected` on key release. So: * Pressing `C`, on `keyPressed`, `optionSelected` is `null`, `other` will be `null`, on `keyReleased`, `optionSelected` becomes `C`, show dialog * Pressing `T`, on `keyPresse...
From [the documentation for `dispatchKeyEvent`](https://docs.oracle.com/javase/8/docs/api/java/awt/KeyEventDispatcher.html): > > Return `true` if the KeyboardFocusManager should take no further > action with regard to the KeyEvent; `false` otherwise > > > Also you can directly consume the event in your `dispatch...
60,753,061
In the same function, I have tried to use integer, float, and rounding, but I could not get this result. What did I do wrong? The goal is: 10\*12.3 = 123 3\*12.3= 36.9 my code: ```py def multi(n1, n2): x = n1*n2 return x ``` I have tried `int(n1*n2)`, but I got 123 and 36. Then I tried `float(n1*n2)` an...
2020/03/19
[ "https://Stackoverflow.com/questions/60753061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13064478/" ]
You are always multiplying an integer with a float which will always output a float. If you want the number that your function returns to be a float with 1 decimal point you can use `round(num, 1)`. ```py def multi(n1, n2): x = n1*n2 return round(x, 1) print(multi(10, 12.3)) # outputs '123.0' print(multi(3,...
The number is not the *representation* of the number. For example, all these representations are `123`: ``` 123 12.3E1 123.0 123.0000000000000000000 ``` My advice is to do them as floating point and either use output formatting to get them all in a consistent format: ``` >>> for i in (12.3 * 10, 42., 36.9 / 10): .....
44,089,415
I am and getting an error when trying to modify code to handle documents in `Android Nougat`. > > incompatible types: cannot be converted to Context > > > This is my code ``` documentViewHolder.preview.setOnClickListener(new View.OnClickListener() { @Override public void onCl...
2017/05/20
[ "https://Stackoverflow.com/questions/44089415", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8041623/" ]
``` public class MessageAdapter extends BaseAdapter { private Context context; public MessageAdapter(Context context) { this.context = context; } ``` use that context(instead of MessageAdapter.this) in Uri ``` Uri path = FileProvider.getUriForFile(context ,BuildConfig.APPLICATION_ID + ".provider",document); ...
`MessageAdapter` is not a subclass of `Context`. Usually, for what you are doing (starting an activity, presumably), you have access to the `Activity` that you are in, and that is the `Context` to use here.
212,408
How common is the expression 'to keep someone across' the news. Is this a new phrasal verb? I've noticed it mostly in the last four years on British news programmes, such as the BBC. It seems to mean that they will try to keep us informed of any developments in a news story. Has it appeared in any dictionary yet?
2014/12/07
[ "https://english.stackexchange.com/questions/212408", "https://english.stackexchange.com", "https://english.stackexchange.com/users/87328/" ]
You heard "keep someone across" the news correctly. It is not so common (evidenced in part by the response you've received here) and you are not the first to wonder about it (as you can see in this [wordsmith.org forum](http://wordsmith.org/board/ubbthreads.php?ubb=showflat&Number=161960) as well as this [wordreference...
I suspect OP has simply misheard something like [*The BBC keeps you **abreast of** current affairs...*](https://www.google.co.uk/search?q=%22keeps%20you%20abreast%20of%22&rlz=1C1CHFX_en-GBGB569GB569&oq=%22keeps%20you%20abreast%20of%22&aqs=chrome..69i57.12810372j0j0&sourceid=chrome&es_sm=122&ie=UTF-8) > > [**abreast**...
212,408
How common is the expression 'to keep someone across' the news. Is this a new phrasal verb? I've noticed it mostly in the last four years on British news programmes, such as the BBC. It seems to mean that they will try to keep us informed of any developments in a news story. Has it appeared in any dictionary yet?
2014/12/07
[ "https://english.stackexchange.com/questions/212408", "https://english.stackexchange.com", "https://english.stackexchange.com/users/87328/" ]
I suspect OP has simply misheard something like [*The BBC keeps you **abreast of** current affairs...*](https://www.google.co.uk/search?q=%22keeps%20you%20abreast%20of%22&rlz=1C1CHFX_en-GBGB569GB569&oq=%22keeps%20you%20abreast%20of%22&aqs=chrome..69i57.12810372j0j0&sourceid=chrome&es_sm=122&ie=UTF-8) > > [**abreast**...
It may have been invented by Adnan Nawaz. He uses it in every telecast. I always thought it was a mistake, but it seems he decided to go with it and make it a new normal.
212,408
How common is the expression 'to keep someone across' the news. Is this a new phrasal verb? I've noticed it mostly in the last four years on British news programmes, such as the BBC. It seems to mean that they will try to keep us informed of any developments in a news story. Has it appeared in any dictionary yet?
2014/12/07
[ "https://english.stackexchange.com/questions/212408", "https://english.stackexchange.com", "https://english.stackexchange.com/users/87328/" ]
You heard "keep someone across" the news correctly. It is not so common (evidenced in part by the response you've received here) and you are not the first to wonder about it (as you can see in this [wordsmith.org forum](http://wordsmith.org/board/ubbthreads.php?ubb=showflat&Number=161960) as well as this [wordreference...
It may have been invented by Adnan Nawaz. He uses it in every telecast. I always thought it was a mistake, but it seems he decided to go with it and make it a new normal.
9,799,783
I have an application in c#.net in which I have embeded the SWF file in SWFObject from COM Object. Now after installation, the original SWF file also available in the application root directory. So from that place(application root directory) anyone can access that file. But I want to restrict that file from being open...
2012/03/21
[ "https://Stackoverflow.com/questions/9799783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1042848/" ]
I'm doing it like this: ``` body.ui-mobile-viewport,div.ui-mobile-viewport { background-color: transparent; background-image: url("your_image_URL"); } ```
I am going to guess its a CSS property that has background image set.
13,017
I saw a few questions, which are asking for the latest version of package/lib/software named **XY**, so I do believe that a more general question, which could help other looking for some package/lib/software. > > Where I can find a list of the Software packages and their version numbers supported by the RPi? > > > ...
2014/01/16
[ "https://raspberrypi.stackexchange.com/questions/13017", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/11251/" ]
> > a more general question > > > Good idea, except a generalization would be for the *operating system*, not the device, since it's the OS that determines what software packages are available. By analogy, let's say I have an Acme X1000 Laptop, and I want to know "What software packages are available in what versi...
The official RISC OS package manager is here: <http://www.riscpkg.org/> Note though, that this is a recent project, and up 'til about a year ago, there was no formal packaging used. So this is currently classifiying existing software, and well as new stuff.
455,965
Like most laptops, it has both ethernet and wireless networking options. Likewise, I have a wireless router with 10/100/1000 Mbs. 90% of the time, wireless speeds suffice. But once in a while, I have several gigs of data that needs transfering. In those times, I would physically walk over the router and plug in directl...
2012/07/31
[ "https://superuser.com/questions/455965", "https://superuser.com", "https://superuser.com/users/85983/" ]
You have to change the priority of the network adapters. To do this, open the **Network and Sharing Center** and click on **Change adapter settings** in the left pane. you should see a list of network adapters. Press the `Alt` button (if the menu bar is not already visible) and click on the **Advanced** menu, and then...
Easier and faster, you can just delete the entire `0.0.0.0` route. ``` route delete 0.0.0.0 ``` And adding back only the preferable route to the internet. ``` route add 0.0.0.0 mask 0.0.0.0 192.168.43.1 METRIC 1 ``` Also ensure that legitimate traffic meant for the second route is added to the routing table so ...
455,965
Like most laptops, it has both ethernet and wireless networking options. Likewise, I have a wireless router with 10/100/1000 Mbs. 90% of the time, wireless speeds suffice. But once in a while, I have several gigs of data that needs transfering. In those times, I would physically walk over the router and plug in directl...
2012/07/31
[ "https://superuser.com/questions/455965", "https://superuser.com", "https://superuser.com/users/85983/" ]
***(I know there is already accepted answer, but)...*** First, from XP onwards, Windows has a feature called automatic metric. This feature should automatically prioritize traffic on adapter with highest throughput. When you enable 'better' NIC (eg. by plugging in cable) Windows should automatically route traffic via...
Easier and faster, you can just delete the entire `0.0.0.0` route. ``` route delete 0.0.0.0 ``` And adding back only the preferable route to the internet. ``` route add 0.0.0.0 mask 0.0.0.0 192.168.43.1 METRIC 1 ``` Also ensure that legitimate traffic meant for the second route is added to the routing table so ...
1,695
what ways can I make one new line in a post? And what is the sense in the fact that pushing enter and starting a new line, doesn't create a new line when the question or I guess answer is submitted? Suppose I write a b c I just want a b and c to be on adjacent lines. But they come up as a b c And why is it that wh...
2010/11/21
[ "https://meta.superuser.com/questions/1695", "https://meta.superuser.com", "https://meta.superuser.com/users/42672/" ]
When you click on the `?` at the top right of the editing box, it leads you to the [markdown editing help page](https://meta.superuser.com/editing-help). This page is far from complete, but does mention > > End a line with two spaces to add a > linebreak: > > > You can also use the `<br>` HTML tag (or `<br/>`...
use `<br />` A B C > > so how would it even know what i'm typing is to be formatted as code > > > It doesn't using backticks makes it apply syntax formatting. Else prefixing 4 spaces does the same. ``` like so ``` This is [how I](https://meta.superuser.com/revisions/5db5f237-9391-481d-a8e9-6c448325c7...
38,176,658
My data is structured as follows: ``` Name Drill Movement Repetition DV 1 RUTH 90_Turn Sprint 1 10 2 RUTH 90_Turn Sprint 1 12 2 RUTH 90_Turn Sprint 2 12 2 RUTH 90_Turn Sprint 2 9 3 RUTH 90_Turn Sprint 3 14 3 RUTH 90_Turn Sprin...
2016/07/04
[ "https://Stackoverflow.com/questions/38176658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2716568/" ]
**I fixed this by including the libxml2.dylib in my project manually.** I'll include steps for anyone that stumbles up on this. 1. Click the folder at the top of Xcode's project pane, and select the first item in your project (it usually has the xcode icon). [![enter image description here](https://i.stack.imgur.c...
You can also add "-lxml2" to your "Other Linker Flags" [Xcode Project Settings](https://i.stack.imgur.com/NLKrQ.png)
38,176,658
My data is structured as follows: ``` Name Drill Movement Repetition DV 1 RUTH 90_Turn Sprint 1 10 2 RUTH 90_Turn Sprint 1 12 2 RUTH 90_Turn Sprint 2 12 2 RUTH 90_Turn Sprint 2 9 3 RUTH 90_Turn Sprint 3 14 3 RUTH 90_Turn Sprin...
2016/07/04
[ "https://Stackoverflow.com/questions/38176658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2716568/" ]
**I fixed this by including the libxml2.dylib in my project manually.** I'll include steps for anyone that stumbles up on this. 1. Click the folder at the top of Xcode's project pane, and select the first item in your project (it usually has the xcode icon). [![enter image description here](https://i.stack.imgur.c...
"You can also add "-lxml2" to your "Other Linker Flags" Xcode Project Settings" This Work for me like a charm
38,176,658
My data is structured as follows: ``` Name Drill Movement Repetition DV 1 RUTH 90_Turn Sprint 1 10 2 RUTH 90_Turn Sprint 1 12 2 RUTH 90_Turn Sprint 2 12 2 RUTH 90_Turn Sprint 2 9 3 RUTH 90_Turn Sprint 3 14 3 RUTH 90_Turn Sprin...
2016/07/04
[ "https://Stackoverflow.com/questions/38176658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2716568/" ]
You can also add "-lxml2" to your "Other Linker Flags" [Xcode Project Settings](https://i.stack.imgur.com/NLKrQ.png)
"You can also add "-lxml2" to your "Other Linker Flags" Xcode Project Settings" This Work for me like a charm
18,901,776
It seems that our apps which use `getPropertyType(..)` are failing under ios7. For whatever reason, `getPropertyType(..)` on for example a NSString property returns `NSString$'\x19\x03\x86\x13` as the type, instead of just NSString, and also instead of NSNumber it returns `NSNumber\xf0\x90\xae\x04\xff\xff\xff\xff`. All...
2013/09/19
[ "https://Stackoverflow.com/questions/18901776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/215400/" ]
The buffer returned by getPropertyType isn't NULL terminated. I think it's only dumb luck that it ever worked. Also, returning the data pointed to by a newly created NSData is not guaranteed to work once that function returns. I'd make this return an NSString. ``` NSString* getPropertyType(objc_property_t property) {...
The return value of your method need not be NULL-terminated, as it points to the internal memory of an `NSData` object. This would explain random bytes after your expected output. Note also that the return value might not point to valid memory at all if the `NSData` object is destroyed (which might be at any time aft...
49,843,926
I have a table on my website which contains the columns: User, Title, Description, Join, Update, Delete. The "User" column's width is way too big as well as the "Title" column. I need help with CSS to set them to something smaller without affecting the width of the other columns as they are perfect as is. My Code: ...
2018/04/15
[ "https://Stackoverflow.com/questions/49843926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5673120/" ]
You can use **width** property to fix the width of your columns. You can apply width in html directly or using css **HTML** ``` <td width="20%">content</td> <th width="20%">content</th> ``` **CSS** ``` .custom-class{ width: 20%; } <th class="custom-class"></th> <td class="custom-class"></td> ```
it seems that there is no problem, everything is the same ``` table { width: 100%; font: 17px/1.5 Arial, Helvetica,sans-serif; text-align: center; align: center; } input { width: 100%; font: 13px/1.5 Arial, Helvetica,sans-serif; text-align: center; align: center; height: auto; ...
49,843,926
I have a table on my website which contains the columns: User, Title, Description, Join, Update, Delete. The "User" column's width is way too big as well as the "Title" column. I need help with CSS to set them to something smaller without affecting the width of the other columns as they are perfect as is. My Code: ...
2018/04/15
[ "https://Stackoverflow.com/questions/49843926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5673120/" ]
You can use **width** property to fix the width of your columns. You can apply width in html directly or using css **HTML** ``` <td width="20%">content</td> <th width="20%">content</th> ``` **CSS** ``` .custom-class{ width: 20%; } <th class="custom-class"></th> <td class="custom-class"></td> ```
There are bunch of jQuery table plugins. Check [this](https://www.sitepoint.com/12-amazing-jquery-tables/) out. My favourites are `DataTables`, `x-Editable` and `Bootgrid`. There are also open sources, you can see them with their Github repo.
49,843,926
I have a table on my website which contains the columns: User, Title, Description, Join, Update, Delete. The "User" column's width is way too big as well as the "Title" column. I need help with CSS to set them to something smaller without affecting the width of the other columns as they are perfect as is. My Code: ...
2018/04/15
[ "https://Stackoverflow.com/questions/49843926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5673120/" ]
You can use **width** property to fix the width of your columns. You can apply width in html directly or using css **HTML** ``` <td width="20%">content</td> <th width="20%">content</th> ``` **CSS** ``` .custom-class{ width: 20%; } <th class="custom-class"></th> <td class="custom-class"></td> ```
If you don't mind I would suggest some changes, see below. Check if the form action is either join, update or delete to perform the action. About the data structure you receive when the form is submitted check out the `var_dump($_POST);` part PHP: ``` <?php var_dump($_POST); ?> ``` CSS: ``` table { width: 100%...
49,843,926
I have a table on my website which contains the columns: User, Title, Description, Join, Update, Delete. The "User" column's width is way too big as well as the "Title" column. I need help with CSS to set them to something smaller without affecting the width of the other columns as they are perfect as is. My Code: ...
2018/04/15
[ "https://Stackoverflow.com/questions/49843926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5673120/" ]
If you don't mind I would suggest some changes, see below. Check if the form action is either join, update or delete to perform the action. About the data structure you receive when the form is submitted check out the `var_dump($_POST);` part PHP: ``` <?php var_dump($_POST); ?> ``` CSS: ``` table { width: 100%...
it seems that there is no problem, everything is the same ``` table { width: 100%; font: 17px/1.5 Arial, Helvetica,sans-serif; text-align: center; align: center; } input { width: 100%; font: 13px/1.5 Arial, Helvetica,sans-serif; text-align: center; align: center; height: auto; ...
49,843,926
I have a table on my website which contains the columns: User, Title, Description, Join, Update, Delete. The "User" column's width is way too big as well as the "Title" column. I need help with CSS to set them to something smaller without affecting the width of the other columns as they are perfect as is. My Code: ...
2018/04/15
[ "https://Stackoverflow.com/questions/49843926", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5673120/" ]
If you don't mind I would suggest some changes, see below. Check if the form action is either join, update or delete to perform the action. About the data structure you receive when the form is submitted check out the `var_dump($_POST);` part PHP: ``` <?php var_dump($_POST); ?> ``` CSS: ``` table { width: 100%...
There are bunch of jQuery table plugins. Check [this](https://www.sitepoint.com/12-amazing-jquery-tables/) out. My favourites are `DataTables`, `x-Editable` and `Bootgrid`. There are also open sources, you can see them with their Github repo.
73,144,125
I have this project where I pull a json from gitlab, filter its contents, and then spit out a csv report. I've been going in circles putting in different solutions, and I *did* get it to work on my personal PC using two different methods, but neither work in the gitlab environment. First issue: The dataset I'm pulling...
2022/07/27
[ "https://Stackoverflow.com/questions/73144125", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19635246/" ]
If you use vector constructor with the integer parameter, you get vector with `nums.size()` elements initialized by default value. You should use indexing to set the elements: ``` ... for(int i = 0; i < l; ++i){ sum2 = sum2 + nums[i]; prefix[i] = sum2; } ... ``` If you want to use `push_back` method, you sho...
You create `prefix` to be the same size as `nums` and then you `push_back` the same number of elments. `prefix` will therefore be twice the size of `nums` after the first loop. You never access the elements you've `push_back`ed in the second loop so the algorithm is broken. I suggest that you simplify your algorithm. ...
107,190
The Ledger company says that their chips are super safe so that even if some electronic engineers get your Ledger wallet, they cannot get your private key. But is that true? For example, if I stole someone's purse and found a Ledger, is it possible I get his/her bitcoins?
2021/06/22
[ "https://bitcoin.stackexchange.com/questions/107190", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/119689/" ]
There is currently no way I could find that someone could extract a private key out of a Ledger wallet. So if someone steals your Ledger today, they should not be able to spend your coins. However, since the private keys are physically stored in the device, someone successfully extracting them isn't a question of "if"...
If the information is encrypted, it is not possible at all، Because even after successful data extraction, it needs to be decrypted. Access to encrypted information is completely useless if decryption is not possible.
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
On [POSIX](http://en.wikipedia.org/wiki/POSIX)-compliant systems, your program receives the [SIGSEGV](http://en.wikipedia.org/wiki/SIGSEGV) signal and dies as soon as you call `strlen(p2)`, since `p2` is `NULL`. To my knowledge, there's no way to portably catch [segfaults](http://en.wikipedia.org/wiki/Segmentation_fau...
`strlen()` doesn't throw exceptions, because it's a C function and C does not have exceptions. It just crashes your program when you give it bad input. (Although it is not required to.)
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
On [POSIX](http://en.wikipedia.org/wiki/POSIX)-compliant systems, your program receives the [SIGSEGV](http://en.wikipedia.org/wiki/SIGSEGV) signal and dies as soon as you call `strlen(p2)`, since `p2` is `NULL`. To my knowledge, there's no way to portably catch [segfaults](http://en.wikipedia.org/wiki/Segmentation_fau...
Your code has undefined behavior. Therefore **any** output or **no** output are both valid results. My guess is that `strlen` is causing an access violation (at least on x86) and your program is being terminated. C++ does not throw exceptions upon trying to dereference a null pointer.
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
In C++, dereferencing a NULL pointer causes **undefined behavior**, which means anything could happen: the computer could blow up, the function could return an arbitrary value, the program could be killed by an operating system exception (which, unlike a C++ expression, cannot be caught with `try-catch`). In short, **...
On [POSIX](http://en.wikipedia.org/wiki/POSIX)-compliant systems, your program receives the [SIGSEGV](http://en.wikipedia.org/wiki/SIGSEGV) signal and dies as soon as you call `strlen(p2)`, since `p2` is `NULL`. To my knowledge, there's no way to portably catch [segfaults](http://en.wikipedia.org/wiki/Segmentation_fau...
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
On [POSIX](http://en.wikipedia.org/wiki/POSIX)-compliant systems, your program receives the [SIGSEGV](http://en.wikipedia.org/wiki/SIGSEGV) signal and dies as soon as you call `strlen(p2)`, since `p2` is `NULL`. To my knowledge, there's no way to portably catch [segfaults](http://en.wikipedia.org/wiki/Segmentation_fau...
strlen(NULL) tries to dereference NULL pointer. This raises hardware exception which cannot be caught with try-catch mechanism. Program blows up. You would have the same scenario if you try to perform division by zero. For this reason it is always a good practice to check whether pointers are (not) NULL. If pointer is...
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
In C++, dereferencing a NULL pointer causes **undefined behavior**, which means anything could happen: the computer could blow up, the function could return an arbitrary value, the program could be killed by an operating system exception (which, unlike a C++ expression, cannot be caught with `try-catch`). In short, **...
`strlen()` doesn't throw exceptions, because it's a C function and C does not have exceptions. It just crashes your program when you give it bad input. (Although it is not required to.)
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
`strlen()` doesn't throw exceptions, because it's a C function and C does not have exceptions. It just crashes your program when you give it bad input. (Although it is not required to.)
strlen(NULL) tries to dereference NULL pointer. This raises hardware exception which cannot be caught with try-catch mechanism. Program blows up. You would have the same scenario if you try to perform division by zero. For this reason it is always a good practice to check whether pointers are (not) NULL. If pointer is...
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
In C++, dereferencing a NULL pointer causes **undefined behavior**, which means anything could happen: the computer could blow up, the function could return an arbitrary value, the program could be killed by an operating system exception (which, unlike a C++ expression, cannot be caught with `try-catch`). In short, **...
Your code has undefined behavior. Therefore **any** output or **no** output are both valid results. My guess is that `strlen` is causing an access violation (at least on x86) and your program is being terminated. C++ does not throw exceptions upon trying to dereference a null pointer.
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
Your code has undefined behavior. Therefore **any** output or **no** output are both valid results. My guess is that `strlen` is causing an access violation (at least on x86) and your program is being terminated. C++ does not throw exceptions upon trying to dereference a null pointer.
strlen(NULL) tries to dereference NULL pointer. This raises hardware exception which cannot be caught with try-catch mechanism. Program blows up. You would have the same scenario if you try to perform division by zero. For this reason it is always a good practice to check whether pointers are (not) NULL. If pointer is...
4,155,831
``` int main(int argc, char** argv) { try { char *p2 = NULL; cout << "p2:" << strlen(p2) <<endl; cout << "mark"; } catch (...) { cout << "caught exception" <<endl; } return 0; } ``` The output is `p2:`,so neither `cout << "mark";...
2010/11/11
[ "https://Stackoverflow.com/questions/4155831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454770/" ]
In C++, dereferencing a NULL pointer causes **undefined behavior**, which means anything could happen: the computer could blow up, the function could return an arbitrary value, the program could be killed by an operating system exception (which, unlike a C++ expression, cannot be caught with `try-catch`). In short, **...
strlen(NULL) tries to dereference NULL pointer. This raises hardware exception which cannot be caught with try-catch mechanism. Program blows up. You would have the same scenario if you try to perform division by zero. For this reason it is always a good practice to check whether pointers are (not) NULL. If pointer is...
2,235,655
I'm working on a blackberry application and would like to use the OpenStreetMap reverse geo-coding to get an address and/or a street corner. I found Nominatim but it doesn't seem to do zip codes in the US (it has UK postal codes though), is there a OpenStreetMap API to get zipcodes, or some other free/open licensed re...
2010/02/10
[ "https://Stackoverflow.com/questions/2235655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/259130/" ]
You can reverse-geocode US ZIP codes with [geocoder.us](http://geocoder.us/). [Their geocoder](http://search.cpan.org/~sderle/Geo-Coder-US/) is open source (GPLv2 or Perl Artistic License) and they encourage writing code using their web services API for non-commercial purposes. This is in fact the service [OpenStreetMa...
I found an opensource geocoder and have started to work on the autotooling. on extendthereach dot com slash products OpenSourceGeocoder Here is my github, but it is not ready yet: <http://github.com/h4ck3rm1k3/AutoToolsGeocoder> In theory we could use osm data with this, but I will have to look into it more.
2,235,655
I'm working on a blackberry application and would like to use the OpenStreetMap reverse geo-coding to get an address and/or a street corner. I found Nominatim but it doesn't seem to do zip codes in the US (it has UK postal codes though), is there a OpenStreetMap API to get zipcodes, or some other free/open licensed re...
2010/02/10
[ "https://Stackoverflow.com/questions/2235655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/259130/" ]
I use [Geonames.org](http://www.geonames.org). It offers different webservices around geocoding. The [Postcode WS](http://www.geonames.org/postal-codes/postal-codes-us.html) will help you: Postcode for Washington, USA: * [Via HTML page](http://www.geonames.org/postalcode-search.html?q=Washington&country=US) * [Via...
I found an opensource geocoder and have started to work on the autotooling. on extendthereach dot com slash products OpenSourceGeocoder Here is my github, but it is not ready yet: <http://github.com/h4ck3rm1k3/AutoToolsGeocoder> In theory we could use osm data with this, but I will have to look into it more.
2,235,655
I'm working on a blackberry application and would like to use the OpenStreetMap reverse geo-coding to get an address and/or a street corner. I found Nominatim but it doesn't seem to do zip codes in the US (it has UK postal codes though), is there a OpenStreetMap API to get zipcodes, or some other free/open licensed re...
2010/02/10
[ "https://Stackoverflow.com/questions/2235655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/259130/" ]
I use [Geonames.org](http://www.geonames.org). It offers different webservices around geocoding. The [Postcode WS](http://www.geonames.org/postal-codes/postal-codes-us.html) will help you: Postcode for Washington, USA: * [Via HTML page](http://www.geonames.org/postalcode-search.html?q=Washington&country=US) * [Via...
You can reverse-geocode US ZIP codes with [geocoder.us](http://geocoder.us/). [Their geocoder](http://search.cpan.org/~sderle/Geo-Coder-US/) is open source (GPLv2 or Perl Artistic License) and they encourage writing code using their web services API for non-commercial purposes. This is in fact the service [OpenStreetMa...
15,761,890
Is there a way to only add new files and not add modified files with git? That is, files that are listed as untracked with git status. Other than ofcourse adding each file separately. It's not absolutely necessary to do this in my case, the real question for me is answered here: [How to make git-diff and git log igno...
2013/04/02
[ "https://Stackoverflow.com/questions/15761890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1053561/" ]
Maybe ``` git add $(git ls-files -o --exclude-standard) ``` `git ls-files` lets you list the files managed by git, filtered by some options. `-o` in this case filters it to only show "others (i.e. untracked files)" The `$(...)` statement passes the return value of that command as an argument to `git add`.
You can use short mode of git status (see [man git-status(1)](https://www.kernel.org/pub/software/scm/git/docs/git-status.html)), which gives the following output: Without short mode: ``` $ git status ... # Untracked files: # (use "git add <file>..." to include in what will be committed) # # README # applicat...
3,847
["Camel hair"](http://en.wikipedia.org/wiki/Camel_hair) is, among other things, the hair of a camel. Since we talk about "sheep's wool" or "lamb's wool", why don't we use the "*'s*" after camel in the case above? Perhaps some historical reason might exist, but, as a not native of English language I'm wondering if I h...
2013/03/11
[ "https://ell.stackexchange.com/questions/3847", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/-1/" ]
You are assuming a relationship where none exists. This has nothing to do with the animal's death. "Camel hair" is the name given to the textile fiber obtained from a camel. It's as simple as that. They could have come up with another name for that fiber — like *angora* from rabbits, *cashmere* from goats, etc — but ...
I'm not aware of a rule about “if the separation of an animal’s part implies its death [then] the “\_’s” is dropped, as in the case of *calf skin*”. If such a rule exists, it is not used consistently. For example, [ngrams](http://books.google.com/ngrams/graph?content=elephant+tusk%2Celephant%27s+tusk&year_start=1800&ye...
3,847
["Camel hair"](http://en.wikipedia.org/wiki/Camel_hair) is, among other things, the hair of a camel. Since we talk about "sheep's wool" or "lamb's wool", why don't we use the "*'s*" after camel in the case above? Perhaps some historical reason might exist, but, as a not native of English language I'm wondering if I h...
2013/03/11
[ "https://ell.stackexchange.com/questions/3847", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/-1/" ]
I'm not aware of a rule about “if the separation of an animal’s part implies its death [then] the “\_’s” is dropped, as in the case of *calf skin*”. If such a rule exists, it is not used consistently. For example, [ngrams](http://books.google.com/ngrams/graph?content=elephant+tusk%2Celephant%27s+tusk&year_start=1800&ye...
I think of it this way... > > elephant's tusk > > > is when the tusk is still attached to the elephant. We would assume it's still alive, but not necessarily so. Its a possessive form. > > elephant tusk > > > is the tusk after removal from the elephant. It's a modified noun. Since it has been removed, i...
3,847
["Camel hair"](http://en.wikipedia.org/wiki/Camel_hair) is, among other things, the hair of a camel. Since we talk about "sheep's wool" or "lamb's wool", why don't we use the "*'s*" after camel in the case above? Perhaps some historical reason might exist, but, as a not native of English language I'm wondering if I h...
2013/03/11
[ "https://ell.stackexchange.com/questions/3847", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/-1/" ]
You are assuming a relationship where none exists. This has nothing to do with the animal's death. "Camel hair" is the name given to the textile fiber obtained from a camel. It's as simple as that. They could have come up with another name for that fiber — like *angora* from rabbits, *cashmere* from goats, etc — but ...
I think of it this way... > > elephant's tusk > > > is when the tusk is still attached to the elephant. We would assume it's still alive, but not necessarily so. Its a possessive form. > > elephant tusk > > > is the tusk after removal from the elephant. It's a modified noun. Since it has been removed, i...
3,847
["Camel hair"](http://en.wikipedia.org/wiki/Camel_hair) is, among other things, the hair of a camel. Since we talk about "sheep's wool" or "lamb's wool", why don't we use the "*'s*" after camel in the case above? Perhaps some historical reason might exist, but, as a not native of English language I'm wondering if I h...
2013/03/11
[ "https://ell.stackexchange.com/questions/3847", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/-1/" ]
You are assuming a relationship where none exists. This has nothing to do with the animal's death. "Camel hair" is the name given to the textile fiber obtained from a camel. It's as simple as that. They could have come up with another name for that fiber — like *angora* from rabbits, *cashmere* from goats, etc — but ...
No. In the case where the 's is dropped, we are referring to the animal in it's mass noun form as an adjective of the object, for example: > > Before it was made illegal, piano keys were often made out of elephant tusks. > > > In this case, **elephant** is an adjective to **tusks** meaning that the tusk in order ...
3,847
["Camel hair"](http://en.wikipedia.org/wiki/Camel_hair) is, among other things, the hair of a camel. Since we talk about "sheep's wool" or "lamb's wool", why don't we use the "*'s*" after camel in the case above? Perhaps some historical reason might exist, but, as a not native of English language I'm wondering if I h...
2013/03/11
[ "https://ell.stackexchange.com/questions/3847", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/-1/" ]
No. In the case where the 's is dropped, we are referring to the animal in it's mass noun form as an adjective of the object, for example: > > Before it was made illegal, piano keys were often made out of elephant tusks. > > > In this case, **elephant** is an adjective to **tusks** meaning that the tusk in order ...
I think of it this way... > > elephant's tusk > > > is when the tusk is still attached to the elephant. We would assume it's still alive, but not necessarily so. Its a possessive form. > > elephant tusk > > > is the tusk after removal from the elephant. It's a modified noun. Since it has been removed, i...
63,351
Is it possible to test a Hybrid Remote app in a web browser? The documentation makes it seems as though I simply need to replace 'cordova.js' with 'mockcordova.js' and add 'mocksmartstore.js'. However when I try that, cordova's "DeviceReady" function does not get triggered and none of app's functionality works. Anyo...
2015/01/14
[ "https://salesforce.stackexchange.com/questions/63351", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/15112/" ]
This is very similar to the question I answered [here](https://salesforce.stackexchange.com/questions/34898/why-does-the-mobile-sdk-ask-for-login-in-emulator-but-not-on-desktop/34907#34907). If you are using Angular.js for your hybrid app, use forceng.js - it is very similar to forcetk.js (without jQuery) and is compat...
I was able to get browser testing working for the hybrid remote app, which uses Visual Force Remoting, by also including a few other JS files (not just mocksmartstore and mockcordova). The JS files are loaded like this: $Resource.underscore $Resource.mockcordova $Resource.cordova\_force $Resource.mocksmartstore $R...
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
Boost filesystem is one of the Boost library that have some ABI problem relative to function signature change due to C++0x or C++11. cf Boost ticket : <https://svn.boost.org/trac/boost/ticket/6779> You have three solutions: 1. Inhibit C++11 scoped enums in concerned Boost header files included in your programs with #...
For some boost modules, you have to compile libraries **and** link them (using bootstrap.sh). In your case, you have to compile and link `Filesystem`, and probalbly `System` too Have a look [here](http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html) **For example:** * ./bootstrap.sh (bjam) ...
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
You need to add libboost\_filesystem library when linking. Or libboost\_filesystem-mt if your application is multi-threaded. Like this: ``` g++ -o file -lboost_filesystem-mt source_file.cpp ```
For some boost modules, you have to compile libraries **and** link them (using bootstrap.sh). In your case, you have to compile and link `Filesystem`, and probalbly `System` too Have a look [here](http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html) **For example:** * ./bootstrap.sh (bjam) ...
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
The solution that worked for me is to compile with "-c" and then create the executable like this: ``` g++ -c -o main.o main.cpp g++ -o my_prog main.o -lboost_system -lboost_filesystem ```
For some boost modules, you have to compile libraries **and** link them (using bootstrap.sh). In your case, you have to compile and link `Filesystem`, and probalbly `System` too Have a look [here](http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html) **For example:** * ./bootstrap.sh (bjam) ...
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
Boost filesystem is one of the Boost library that have some ABI problem relative to function signature change due to C++0x or C++11. cf Boost ticket : <https://svn.boost.org/trac/boost/ticket/6779> You have three solutions: 1. Inhibit C++11 scoped enums in concerned Boost header files included in your programs with #...
You need to add libboost\_filesystem library when linking. Or libboost\_filesystem-mt if your application is multi-threaded. Like this: ``` g++ -o file -lboost_filesystem-mt source_file.cpp ```
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
Boost filesystem is one of the Boost library that have some ABI problem relative to function signature change due to C++0x or C++11. cf Boost ticket : <https://svn.boost.org/trac/boost/ticket/6779> You have three solutions: 1. Inhibit C++11 scoped enums in concerned Boost header files included in your programs with #...
You need to add the following libraries: ``` g++ -o file -lboost_system -lboost_filesystem sourcefile.cpp ``` If you use a Makefile: ``` CC=gcc CXX=g++ PROG = program CXXFLAGS := -std=c++1y -g -Wall LDFLAGS = -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu LIBS= -lboost_system -lboost_filesystem SRCS= main.cpp OBJS=...
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
Boost filesystem is one of the Boost library that have some ABI problem relative to function signature change due to C++0x or C++11. cf Boost ticket : <https://svn.boost.org/trac/boost/ticket/6779> You have three solutions: 1. Inhibit C++11 scoped enums in concerned Boost header files included in your programs with #...
The solution that worked for me is to compile with "-c" and then create the executable like this: ``` g++ -c -o main.o main.cpp g++ -o my_prog main.o -lboost_system -lboost_filesystem ```
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
You need to add libboost\_filesystem library when linking. Or libboost\_filesystem-mt if your application is multi-threaded. Like this: ``` g++ -o file -lboost_filesystem-mt source_file.cpp ```
You need to add the following libraries: ``` g++ -o file -lboost_system -lboost_filesystem sourcefile.cpp ``` If you use a Makefile: ``` CC=gcc CXX=g++ PROG = program CXXFLAGS := -std=c++1y -g -Wall LDFLAGS = -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu LIBS= -lboost_system -lboost_filesystem SRCS= main.cpp OBJS=...
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
You need to add libboost\_filesystem library when linking. Or libboost\_filesystem-mt if your application is multi-threaded. Like this: ``` g++ -o file -lboost_filesystem-mt source_file.cpp ```
The solution that worked for me is to compile with "-c" and then create the executable like this: ``` g++ -c -o main.o main.cpp g++ -o my_prog main.o -lboost_system -lboost_filesystem ```
15,634,114
I'm trying to run program, using sample code of boost::filesystem on Ubuntu 12.10, but it doesn't want to build. ``` #include <iostream> #include <boost/filesystem.hpp> using namespace boost::filesystem; using namespace std; void fun(const string& dirPath); int main() { fun("/home"); return 0; } void fun(con...
2013/03/26
[ "https://Stackoverflow.com/questions/15634114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/903649/" ]
The solution that worked for me is to compile with "-c" and then create the executable like this: ``` g++ -c -o main.o main.cpp g++ -o my_prog main.o -lboost_system -lboost_filesystem ```
You need to add the following libraries: ``` g++ -o file -lboost_system -lboost_filesystem sourcefile.cpp ``` If you use a Makefile: ``` CC=gcc CXX=g++ PROG = program CXXFLAGS := -std=c++1y -g -Wall LDFLAGS = -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu LIBS= -lboost_system -lboost_filesystem SRCS= main.cpp OBJS=...
54,748,217
I have a table with more than 100 columns c1,c2,c3....c200 and I want to apply function (assume MAX) on all columns. I can compose my query for each column, but I cannot use \* for which BigQuery throws this error `Argument * can only be used in COUNT(*)` This Query format works but my query size will be much bigger ...
2019/02/18
[ "https://Stackoverflow.com/questions/54748217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3879625/" ]
Below example is for BigQuery Standard SQL and avoids to call out all columns by names but as a side-effect result is just one comma separated list of max values in order of respective columns ``` #standardSQL SELECT STRING_AGG(CAST(max_val AS STRING) ORDER BY pos) max_values FROM ( SELECT pos, MAX(CAST(val AS INT6...
You are passing a data set as parameter for your function, does your function accept a data set as its input parameter? If not, you get the error of course. You can try like this: ``` select (select max(c1) from mytable) max_c1, (select max(c2) from mytable) max_c2 from dual ```
54,748,217
I have a table with more than 100 columns c1,c2,c3....c200 and I want to apply function (assume MAX) on all columns. I can compose my query for each column, but I cannot use \* for which BigQuery throws this error `Argument * can only be used in COUNT(*)` This Query format works but my query size will be much bigger ...
2019/02/18
[ "https://Stackoverflow.com/questions/54748217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3879625/" ]
You are passing a data set as parameter for your function, does your function accept a data set as its input parameter? If not, you get the error of course. You can try like this: ``` select (select max(c1) from mytable) max_c1, (select max(c2) from mytable) max_c2 from dual ```
Once you harness the power of dynamically query generation, you will love Bigquery even more: You can literally create the sql first by another wrapper sql like this: ``` select concat("select ", string_agg(selected_columns), " from `{YOUR_TABLE_NAME}`") from (select concat("max(", column_name, ") as ", column_name...
54,748,217
I have a table with more than 100 columns c1,c2,c3....c200 and I want to apply function (assume MAX) on all columns. I can compose my query for each column, but I cannot use \* for which BigQuery throws this error `Argument * can only be used in COUNT(*)` This Query format works but my query size will be much bigger ...
2019/02/18
[ "https://Stackoverflow.com/questions/54748217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3879625/" ]
Below example is for BigQuery Standard SQL and avoids to call out all columns by names but as a side-effect result is just one comma separated list of max values in order of respective columns ``` #standardSQL SELECT STRING_AGG(CAST(max_val AS STRING) ORDER BY pos) max_values FROM ( SELECT pos, MAX(CAST(val AS INT6...
Once you harness the power of dynamically query generation, you will love Bigquery even more: You can literally create the sql first by another wrapper sql like this: ``` select concat("select ", string_agg(selected_columns), " from `{YOUR_TABLE_NAME}`") from (select concat("max(", column_name, ") as ", column_name...
6,102,144
We have an ExtJS Grid Panel that has grown to include too many columns (imo), so I am looking into enfolding some data into "sub-rows" of the main row. Like: Data1 | Data2 | Data3 | Data4 | Data5   Some additional data that spans Data1 | Data2 | Data3 | Data4 | Data5   Some additional data that spans I am ...
2011/05/23
[ "https://Stackoverflow.com/questions/6102144", "https://Stackoverflow.com", "https://Stackoverflow.com/users/643779/" ]
If you're using ExtJS-4, ``` // ... var rowBodyFeature = Ext.create('Ext.grid.feature.RowBody', { getAdditionalData: function(data, rowIndex, record, orig) { var headerCt = this.view.headerCt, colspan = headerCt.getColumnCount(); return { rowBody: "HELLO WORLD!", // do somethi...
What you need to do is implement a nested grid using the expander plugin. On the click or expand event, you can use your row's ID as a key to load the sub-rows.
333
When showing a fellow Stack Exchange regular our site, I got the complaint that most questions were in the form of an anecdote, eventually followed by the real question. They said this had a bad connotation due to their experiences on Programmers where this is a common sign of a bad question. Is it the sign of a bad q...
2012/07/13
[ "https://workplace.meta.stackexchange.com/questions/333", "https://workplace.meta.stackexchange.com", "https://workplace.meta.stackexchange.com/users/42/" ]
Yes, some questions are too anecdote-y, but I don't think that anecdotes directly correlate to bad questions. Given the nature of this site, and the desire to answer "practical, answerable questions based on actual problems that [users] face", the questions almost *must* include anecdotes to set the stage for the real ...
Questions here pertain to a real-life situation, in which there is no real good 'blanket'/'cookie cutter' answer. Instead, answers here tend to be more of a situational thing. Thus, the added backstory and context helps to focus answers down to something that will be truly helpful. Example: asking 'what should i put ...
333
When showing a fellow Stack Exchange regular our site, I got the complaint that most questions were in the form of an anecdote, eventually followed by the real question. They said this had a bad connotation due to their experiences on Programmers where this is a common sign of a bad question. Is it the sign of a bad q...
2012/07/13
[ "https://workplace.meta.stackexchange.com/questions/333", "https://workplace.meta.stackexchange.com", "https://workplace.meta.stackexchange.com/users/42/" ]
Yes, some questions are too anecdote-y, but I don't think that anecdotes directly correlate to bad questions. Given the nature of this site, and the desire to answer "practical, answerable questions based on actual problems that [users] face", the questions almost *must* include anecdotes to set the stage for the real ...
This SE was originally created to answer a lot of the "Good" questions on programmer that were off topic there. Specifically the career and workplace problems. We want to deal with real world problems not hypothetical problems. I do not think an anecdote (that is good summary of the issue) is bad in a question. We ar...
55,686,826
I want to find contours on the image below (white bubbles). The problem is that when I convert the image to gray with the standard way: ``` gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) ``` I do not see them (second image). Is it possible to change the conversion some how? Thank you for any help [![enter image ...
2019/04/15
[ "https://Stackoverflow.com/questions/55686826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7332041/" ]
``` import cv2 img = cv2.imread("WNrrP.png") img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.imshow("h",img) cv2.waitKey() ``` This works correctly for me
Works perfectly fine for me. Please insure that visualisation code is correct. Here is a screenshot of the my code which I ran to test your images. [Screenshot of code.](https://i.stack.imgur.com/mKCMj.png)
55,686,826
I want to find contours on the image below (white bubbles). The problem is that when I convert the image to gray with the standard way: ``` gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) ``` I do not see them (second image). Is it possible to change the conversion some how? Thank you for any help [![enter image ...
2019/04/15
[ "https://Stackoverflow.com/questions/55686826", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7332041/" ]
``` import cv2 img = cv2.imread("WNrrP.png") img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.imshow("h",img) cv2.waitKey() ``` This works correctly for me
the problem was in the different line before. The cvtColor works fine
54,374,825
I am trying to load a dataset of images into tensorflow but I am facing a problem to load it properly. Actually, I have a folder named PetImages in C drive which contains two folders with the name of cat and dog. Each folder holds more **12450** images so in total it is **24500** plus images. I am loading them with the...
2019/01/26
[ "https://Stackoverflow.com/questions/54374825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5302957/" ]
Looks to me like an indentation error. Your second `for` loop lies outside of your first `for` loop, which causes the first loop to terminate completely and set class\_num to 1 before the second loop is ever entered. You probably want to nest them. Try: ``` def create_training_data(): for category in CATEGORIES: ...
You can try to shuffle a mask or index of the training data ``` import random index=[k for k in range(len(training_data))] shuffIndex=random.shuffle(index) shuffTrainigData=[training_data[val] for val in shuffIndex] ``` Hope it helps
54,374,825
I am trying to load a dataset of images into tensorflow but I am facing a problem to load it properly. Actually, I have a folder named PetImages in C drive which contains two folders with the name of cat and dog. Each folder holds more **12450** images so in total it is **24500** plus images. I am loading them with the...
2019/01/26
[ "https://Stackoverflow.com/questions/54374825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5302957/" ]
Looks to me like an indentation error. Your second `for` loop lies outside of your first `for` loop, which causes the first loop to terminate completely and set class\_num to 1 before the second loop is ever entered. You probably want to nest them. Try: ``` def create_training_data(): for category in CATEGORIES: ...
your code only loaded the Dog data the training data, hence the 12450 for training lentgh. this means you are only shuffling dog images, which will give you 1s. your training length should be aprox 25000. fix yo indentations and you should be okay.
97,158
I've been reading Rabin's article on decidability in Barwise's text, and I came across Rabin's discussion of the decidability proof of his tree theory: the second-order theory with two successor functions. The text mentions that the proof is hard and very technical owing to many extensions of automata theory, and I was...
2012/05/16
[ "https://mathoverflow.net/questions/97158", "https://mathoverflow.net", "https://mathoverflow.net/users/23760/" ]
[**Edit, June 2, 2013:** At the Nordic Spring School in Logic this year there was a course by Wolfgang Thomas on *Logic, automata and games*. You may be interested in the slides, particularly for part III (Rabin’s tree theorem). Slides and notes for all courses can be downloaded [here](http://scandinavianlogic.org/scho...
Here is a very sketchy answer, but it should give the first idea of the proof. Basically, even on words (structures with one successor), you can decide if an MSO (Monadic Second Order) sentence accepts a model by translating the sentence to an equivalent automaton, and then you just need to find an accepting path in t...
519,175
I am studying for a class on System and Network Engineering and in one material we are told that Ubuntu uses the OS loader to load the bootloader GRUB. My question is what is the Ubuntu OS loader and where does it reside?
2014/09/02
[ "https://askubuntu.com/questions/519175", "https://askubuntu.com", "https://askubuntu.com/users/280766/" ]
I assume we are talking about a system using a BIOS system. Nowadays we also have UEFI where things are a bit more complicated. The [booting](https://wiki.ubuntu.com/Booting) (link has more detailed information) process has 4 stages: 1. BIOS * (U)EFI is another form of kind of firmware. BIOS is found mainly on IBM b...
The OS loader is Grub. Grub is more than just a bootloader. **By Default:** For BIOS computers it's stored in the drive's master boot record on MBR partition tables, and the drive's protected master boot record on GUID partition tables. For UEFI/EFI computers it's stored on the EFI System Partition. Sources: * [Pr...
41,909,766
I have two tables which look like this: ``` event_ap Event a_nr tnr date timestamp knr maschnr PAN 123 2203 2017-01-23 21600 11 x222 PAN 132 2203 2017-01-22 21600 22 x222 PAB 123 2203 2017-01-23 28523 11 x222 PAN 55...
2017/01/28
[ "https://Stackoverflow.com/questions/41909766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
This will be fixed shortly and be part of 4.1.9.Final: <https://github.com/netty/netty/pull/5766>
It seems if found the solution in this thread <https://github.com/netty/netty-tcnative/issues/136> I've just copied netty-tcnative-boringssl-static.jar and relinked tomcat-jni.jar to it in tomcat library directory
47,680,435
my next/prev buttons are not working. Can someone help me. Thanks!I am new to coding I have researched a bunch and tried different things but nothing is working. ``` <section class="section-main"> <div class="container"> <div class="row"> <div class="col-md-8"> <div id="carouselExampleIndicator...
2017/12/06
[ "https://Stackoverflow.com/questions/47680435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9063261/" ]
I can't think of a really elegant way to accomplish this. The following is somewhat brute force, but it gets the job done: ``` select t1.x, t1.y, (case when t1.y is null then unmatched.cnt else matched.cnt end) as cnt from table1 t1 outer apply (select count(*) as cnt from table2 t2 where t2.y ...
There are multiple ways to solve this problem and the best one for you really depends on the data, the number of rows and resulting performance. One of the ways would be doing the operation for everything but `null` from the `Table1` and then `UNION`-ing with the `null` row. For your given example I assume that the c...
47,680,435
my next/prev buttons are not working. Can someone help me. Thanks!I am new to coding I have researched a bunch and tried different things but nothing is working. ``` <section class="section-main"> <div class="container"> <div class="row"> <div class="col-md-8"> <div id="carouselExampleIndicator...
2017/12/06
[ "https://Stackoverflow.com/questions/47680435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9063261/" ]
I can't think of a really elegant way to accomplish this. The following is somewhat brute force, but it gets the job done: ``` select t1.x, t1.y, (case when t1.y is null then unmatched.cnt else matched.cnt end) as cnt from table1 t1 outer apply (select count(*) as cnt from table2 t2 where t2.y ...
This is the best I came up with: ``` SELECT t1.x , t1.y , [count] = ISNULL(t2.cnt,0) FROM #Table1 t1 LEFT JOIN (SELECT x , y , cnt = COUNT(*) FROM #Table2 GROUP BY x, y ) t2 ON (t1.x = t2.x AND t1.y = t2.y AND t1.y IS NOT NULL ) OR (...
47,680,435
my next/prev buttons are not working. Can someone help me. Thanks!I am new to coding I have researched a bunch and tried different things but nothing is working. ``` <section class="section-main"> <div class="container"> <div class="row"> <div class="col-md-8"> <div id="carouselExampleIndicator...
2017/12/06
[ "https://Stackoverflow.com/questions/47680435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9063261/" ]
I can't think of a really elegant way to accomplish this. The following is somewhat brute force, but it gets the job done: ``` select t1.x, t1.y, (case when t1.y is null then unmatched.cnt else matched.cnt end) as cnt from table1 t1 outer apply (select count(*) as cnt from table2 t2 where t2.y ...
Here is one solution. See if this helps! ``` WITH v_t2 AS (SELECT y, COUNT(*) AS cnt FROM table2 t2 GROUP BY t2.y ), v_t2_null AS (SELECT COUNT(*) AS cnt FROM table2 t2 WHERE NOT EXISTS (SELECT 1 FROM table1 t1 WHERE t1.y= t2.y) ) SELECT t1.x. t1.y, COALESCE(t2.cnt, v_t2_null.cnt) FROM table1 t1 LEFT JOIN...
47,680,435
my next/prev buttons are not working. Can someone help me. Thanks!I am new to coding I have researched a bunch and tried different things but nothing is working. ``` <section class="section-main"> <div class="container"> <div class="row"> <div class="col-md-8"> <div id="carouselExampleIndicator...
2017/12/06
[ "https://Stackoverflow.com/questions/47680435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9063261/" ]
I can't think of a really elegant way to accomplish this. The following is somewhat brute force, but it gets the job done: ``` select t1.x, t1.y, (case when t1.y is null then unmatched.cnt else matched.cnt end) as cnt from table1 t1 outer apply (select count(*) as cnt from table2 t2 where t2.y ...
If my understanding is right, it is not just a left join question, it is something like this: ``` -- Creating example CREATE TABLE #T1 (x int, y char(1) null) CREATE TABLE #T2 (x int, y char(1) null) -- Loading tables INSERT INTO #T1 SELECT 1,'A' UNION ALL SELECT 1,'B' UNION ALL SELECT 1,'C' UNION ALL SELECT 1,...
47,680,435
my next/prev buttons are not working. Can someone help me. Thanks!I am new to coding I have researched a bunch and tried different things but nothing is working. ``` <section class="section-main"> <div class="container"> <div class="row"> <div class="col-md-8"> <div id="carouselExampleIndicator...
2017/12/06
[ "https://Stackoverflow.com/questions/47680435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9063261/" ]
I can't think of a really elegant way to accomplish this. The following is somewhat brute force, but it gets the job done: ``` select t1.x, t1.y, (case when t1.y is null then unmatched.cnt else matched.cnt end) as cnt from table1 t1 outer apply (select count(*) as cnt from table2 t2 where t2.y ...
Another way we can do this via a self join and group by on join of two tables like below ``` select t1.*,t2.c from Table1 t1 join ( select a.y, sum(case when b.y is null then 0 else 1 end) as c from Table1 a full outer join Table2 b on a.y=b.y group by a.y ...
47,680,435
my next/prev buttons are not working. Can someone help me. Thanks!I am new to coding I have researched a bunch and tried different things but nothing is working. ``` <section class="section-main"> <div class="container"> <div class="row"> <div class="col-md-8"> <div id="carouselExampleIndicator...
2017/12/06
[ "https://Stackoverflow.com/questions/47680435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9063261/" ]
I can't think of a really elegant way to accomplish this. The following is somewhat brute force, but it gets the job done: ``` select t1.x, t1.y, (case when t1.y is null then unmatched.cnt else matched.cnt end) as cnt from table1 t1 outer apply (select count(*) as cnt from table2 t2 where t2.y ...
Thank you for all answers. They were very helpful. Here is my solution, with counts in proper way all rows from Table2 and match it by x to row in table1 with y == null. I know that I can wright better subquery in left join. Of course the real problem is much complicated and the question is simplified version of it. ...
39,609,727
I am messed with both completion handler and blocks while I am using them in `Swift` and `Objective-C`. And when I am searching blocks in `Swift` on google it is showing result for completion handler! Can somebody tell me what is the difference between completion handler and blocks with respect to `Swift` and `Objectiv...
2016/09/21
[ "https://Stackoverflow.com/questions/39609727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6160393/" ]
Here you can easily differentiate between blocks and completion handlers in fact both are blocks see detail below. **Blocks:** Blocks are a language-level feature added to C, Objective-C and C++, which allow you to create distinct segments of code that can be passed around to methods or functions as if they were valu...
In short : Completion handlers are a way of implementing callback functionality using blocks or closures. Blocks and Closures are chunks of code that can be passed around to methods or functions as if they were values (in other words "anonymous functions" which we can give names to and pass around).
39,609,727
I am messed with both completion handler and blocks while I am using them in `Swift` and `Objective-C`. And when I am searching blocks in `Swift` on google it is showing result for completion handler! Can somebody tell me what is the difference between completion handler and blocks with respect to `Swift` and `Objectiv...
2016/09/21
[ "https://Stackoverflow.com/questions/39609727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6160393/" ]
In short : Completion handlers are a way of implementing callback functionality using blocks or closures. Blocks and Closures are chunks of code that can be passed around to methods or functions as if they were values (in other words "anonymous functions" which we can give names to and pass around).
I am hope this will help. First Step: ``` #import <UIKit/UIKit.h> @interface ViewController : UIViewController -(void)InsertUser:(NSString*)userName InsertUserLastName:(NSString*)lastName widthCompletion:(void(^)(NSString* result))callback; @end ``` Second Step : ``` #import "ViewController.h" @interface Vie...
39,609,727
I am messed with both completion handler and blocks while I am using them in `Swift` and `Objective-C`. And when I am searching blocks in `Swift` on google it is showing result for completion handler! Can somebody tell me what is the difference between completion handler and blocks with respect to `Swift` and `Objectiv...
2016/09/21
[ "https://Stackoverflow.com/questions/39609727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6160393/" ]
Here you can easily differentiate between blocks and completion handlers in fact both are blocks see detail below. **Blocks:** Blocks are a language-level feature added to C, Objective-C and C++, which allow you to create distinct segments of code that can be passed around to methods or functions as if they were valu...
**Blocks**: ***Obj-c*** ``` - (void)hardProcessingWithString:(NSString *)input withCompletion:(void (^)(NSString *result))block; [object hardProcessingWithString:@"commands" withCompletion:^(NSString *result){ NSLog(result); }]; ``` **Closures**: ***Swift*** ``` func hardProcessingWithString(input: String, com...
39,609,727
I am messed with both completion handler and blocks while I am using them in `Swift` and `Objective-C`. And when I am searching blocks in `Swift` on google it is showing result for completion handler! Can somebody tell me what is the difference between completion handler and blocks with respect to `Swift` and `Objectiv...
2016/09/21
[ "https://Stackoverflow.com/questions/39609727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6160393/" ]
**Blocks**: ***Obj-c*** ``` - (void)hardProcessingWithString:(NSString *)input withCompletion:(void (^)(NSString *result))block; [object hardProcessingWithString:@"commands" withCompletion:^(NSString *result){ NSLog(result); }]; ``` **Closures**: ***Swift*** ``` func hardProcessingWithString(input: String, com...
I am hope this will help. First Step: ``` #import <UIKit/UIKit.h> @interface ViewController : UIViewController -(void)InsertUser:(NSString*)userName InsertUserLastName:(NSString*)lastName widthCompletion:(void(^)(NSString* result))callback; @end ``` Second Step : ``` #import "ViewController.h" @interface Vie...
39,609,727
I am messed with both completion handler and blocks while I am using them in `Swift` and `Objective-C`. And when I am searching blocks in `Swift` on google it is showing result for completion handler! Can somebody tell me what is the difference between completion handler and blocks with respect to `Swift` and `Objectiv...
2016/09/21
[ "https://Stackoverflow.com/questions/39609727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6160393/" ]
Here you can easily differentiate between blocks and completion handlers in fact both are blocks see detail below. **Blocks:** Blocks are a language-level feature added to C, Objective-C and C++, which allow you to create distinct segments of code that can be passed around to methods or functions as if they were valu...
I am hope this will help. First Step: ``` #import <UIKit/UIKit.h> @interface ViewController : UIViewController -(void)InsertUser:(NSString*)userName InsertUserLastName:(NSString*)lastName widthCompletion:(void(^)(NSString* result))callback; @end ``` Second Step : ``` #import "ViewController.h" @interface Vie...
223,880
*Huge omega thanks to @wasif for emailing me this challenge idea in its basic form* Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by category. However, most of the time, I barely know which tags exist, because there's just *so many* of them. Henceforth, to...
2021/04/20
[ "https://codegolf.stackexchange.com/questions/223880", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/78850/" ]
Python 3 + `requests`, 143 bytes ================================ ``` from requests import* p=1 while[print(x["name"])for x in get(f"http://api.stackexchange.com/tags?page={p}&site=codegolf").json()["items"]]:p+=1 ``` -19 bytes thanks to Jonathan Allan -5 bytes thanks to dingledooper
JavaScript, 176 bytes ===================== ```js async _=>{t=[];i=1;do t.push(...(j=await (await fetch("http://api.stackexchange.com/2.2/tags?site=codegolf&page="+i++)).json()).items);while(j.has_more)return t.map(d=>d.name)} ``` Must be run on `api.stackexchange.com` subdomain; I use `/docs` for testing.
223,880
*Huge omega thanks to @wasif for emailing me this challenge idea in its basic form* Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by category. However, most of the time, I barely know which tags exist, because there's just *so many* of them. Henceforth, to...
2021/04/20
[ "https://codegolf.stackexchange.com/questions/223880", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/78850/" ]
Python 3 + `requests`, 143 bytes ================================ ``` from requests import* p=1 while[print(x["name"])for x in get(f"http://api.stackexchange.com/tags?page={p}&site=codegolf").json()["items"]]:p+=1 ``` -19 bytes thanks to Jonathan Allan -5 bytes thanks to dingledooper
[Bash](https://www.gnu.org/software/bash/) + wget + jq, 86 ========================================================== Assumes there are no more than 99 pages of results (currently 10 pages). ```bash wget -qO- api.stackexchange.com/tags?site=codegolf\&page={1..99}|zcat|jq .items[].name ``` Testing this blew through ...
223,880
*Huge omega thanks to @wasif for emailing me this challenge idea in its basic form* Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by category. However, most of the time, I barely know which tags exist, because there's just *so many* of them. Henceforth, to...
2021/04/20
[ "https://codegolf.stackexchange.com/questions/223880", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/78850/" ]
[05AB1E](https://github.com/Adriandmen/05AB1E), ~~60~~ ~~57~~ 56 bytes ====================================================================== ``` [N>’¸¸.‚‹º.ŒŒ/›´?€¼=ƒËŠˆ&€®=ÿ’.wD2è'eQ#“e":"“¡¦ε'"¡н]\) ``` Outputs as a list of pages, where each page is a list of tags. ``` [N>’...’.wD2è'eQ#“e":"“¡¦ε'"¡н]\) # trimm...
JavaScript, 176 bytes ===================== ```js async _=>{t=[];i=1;do t.push(...(j=await (await fetch("http://api.stackexchange.com/2.2/tags?site=codegolf&page="+i++)).json()).items);while(j.has_more)return t.map(d=>d.name)} ``` Must be run on `api.stackexchange.com` subdomain; I use `/docs` for testing.
223,880
*Huge omega thanks to @wasif for emailing me this challenge idea in its basic form* Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by category. However, most of the time, I barely know which tags exist, because there's just *so many* of them. Henceforth, to...
2021/04/20
[ "https://codegolf.stackexchange.com/questions/223880", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/78850/" ]
JavaScript (Firefox chrome), 135 bytes ====================================== ```javascript f=async(i=1)=>(await((await fetch('http://codegolf.stackexchange.com/tags?page='+i)).text())).match(/[\w-]+(?=&#3)/g).map(alert)|f(i+1) ``` 1. ~~Open [Browser Console of Firefox](https://developer.mozilla.org/en-US/docs/Tools...
JavaScript, 176 bytes ===================== ```js async _=>{t=[];i=1;do t.push(...(j=await (await fetch("http://api.stackexchange.com/2.2/tags?site=codegolf&page="+i++)).json()).items);while(j.has_more)return t.map(d=>d.name)} ``` Must be run on `api.stackexchange.com` subdomain; I use `/docs` for testing.
223,880
*Huge omega thanks to @wasif for emailing me this challenge idea in its basic form* Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by category. However, most of the time, I barely know which tags exist, because there's just *so many* of them. Henceforth, to...
2021/04/20
[ "https://codegolf.stackexchange.com/questions/223880", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/78850/" ]
[Jyxal 0.2.0](https://github.com/Vyxal/Jyxal/tree/0.2.0), 44 bytes ================================================================== ``` 0{›:`ȯø.⟩β•∵.•⅛/ɾƈ?λ→=%&λẋ=¬⋎»₅`%¨UøJht(ntt, ``` [Jyxal-is-not-hosted-anywhere-so-read-the-readme-to-see-how-to-try-this](https://github.com/Vyxal/Jyxal/blob/master/README.md) Fi...
JavaScript, 176 bytes ===================== ```js async _=>{t=[];i=1;do t.push(...(j=await (await fetch("http://api.stackexchange.com/2.2/tags?site=codegolf&page="+i++)).json()).items);while(j.has_more)return t.map(d=>d.name)} ``` Must be run on `api.stackexchange.com` subdomain; I use `/docs` for testing.