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
54,407,769
I wish to read in an XML file using ConfigurationBuilder, but I keep getting an 'XML namespaces are not supported' Error. Is there a way to ignore the namespace? I'm fairly new to .net, so be gentle! I'm trying to use ConfigurationBuilder to retrieve a connection string from an XML file, in order to access a cloudtabl...
2019/01/28
[ "https://Stackoverflow.com/questions/54407769", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8484040/" ]
you can try ``` array1.filter(e1 => !array2.some(e2 => e2.apps.some(v => v[`app_id`] === e1[`app_id`])) ) ``` you might also want to handle null/undefined if that is the case.
You can use this code, I break it down in multiple sentences to be more clear what is going on ``` const appIds = this.array2.map(i => (i.apps || []).map(item => item.app_id)) const allAppIds : any = appIds.reduce((a, b) => { return a.concat(b); },[]); const notExistsItems = this.array1.filter(item => !allAppIds.inc...
22,613,994
I've managed to align side by side the DIV containing the image, and the DIV containing the text, side by side, by applying `float:left` to the image DIV. But when I Include these two DIVs in a parent DIV, and duplicate the parent and try to align the parents side by side by applying `float:left` to the first parent, ...
2014/03/24
[ "https://Stackoverflow.com/questions/22613994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3330034/" ]
You have the `float:left` outside of the style attribute, try moving that inside the speech marks and applying `float: left` to both parent divs.
[Updated Fiddle](http://fiddle.jshell.net/2tdpH/2/) =================================================== You can simply change your code to the below, giving each `div` a `display:inline-block;` then as long as your browser window is greater than the sum of the two `div` widths, they will display inline, no need for fl...
22,613,994
I've managed to align side by side the DIV containing the image, and the DIV containing the text, side by side, by applying `float:left` to the image DIV. But when I Include these two DIVs in a parent DIV, and duplicate the parent and try to align the parents side by side by applying `float:left` to the first parent, ...
2014/03/24
[ "https://Stackoverflow.com/questions/22613994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3330034/" ]
You have the `float:left` outside of the style attribute, try moving that inside the speech marks and applying `float: left` to both parent divs.
You had one of your `float: left` attributes outside of the style tag. Also, you should use CSS classes instead of putting all of your CSS styles inline. It makes your code much neater and prevents a lot of duplicated styling. [Here](http://fiddle.jshell.net/2tdpH/5/) is an updated Fiddle. HTML ``` <div class="parent...
59,527,152
I need to get 50 latest data (based on timestamp) from BigTable. I get the data using `read_row` and filter using `CellsRowLimitFilter(50)`. But it didn't return the latest data. It seems the data didn't sorted based on timestamp? how to get the latest data? Thank you for your help.
2019/12/30
[ "https://Stackoverflow.com/questions/59527152", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7765396/" ]
One efficient and practical compression method for 32-bit primes is storing the halved difference between consecutive primes using simple 8-bit bytes (and pulling the prime 2 out of thin air when needed). With a bit of indexing magic this gives superfast 'decompression' - i.e. it is an ideal form of representation when...
You guys got me wrong. I'm talking about compressing random data. If you divide a file into 4-byte data blocks, 1 out of 10 of each 4-byte number will be prime. You should also use a bitmap to determine whether each number is prime. Using a bitmap will clearly increase the size of the file, but I think it can be compre...
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
``` awk '$1 ~ /^[0-9][0-9][0-9]$/' file1 ``` This will match the first field (`$1`) against three digits only (note the forced start and stop range denoted by `^` and `$`). It then prints the entire line (`$0`). You don't need a `{print $0}` after the regex match, because the default action is to print the line anywa...
A bit unorthodox but you can do this as well - ``` [jaypal~/Temp]$ cat text7 200 201 202 203 204 205 2001 2002 2003 2004 2005 [jaypal~/Temp]$ awk 'BEGIN{FS="";} NF<4{print}' text7 200 201 202 203 204 205 ```
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
If we can assume that the first field only contains numbers: ``` awk 'length($1) == 3' file1 ``` If not, go with one of the regex solutions. --- An alternative solution: ``` awk '$1 >= 100 && $1 <= 999' file1 ``` print all line where the numeric value of the first field is in the range (100,999). This solution ...
Here's one: ``` awk '$1 ~ /^[[:digit:]]{3}$/' file1 ``` Or, if you prefer a range instead of the POSIX character class: ``` awk '$1 ~ /^[0-9]{3}$/' file1 ```
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
If we can assume that the first field only contains numbers: ``` awk 'length($1) == 3' file1 ``` If not, go with one of the regex solutions. --- An alternative solution: ``` awk '$1 >= 100 && $1 <= 999' file1 ``` print all line where the numeric value of the first field is in the range (100,999). This solution ...
``` awk '{num=$1/1; if (num == $1) if (length($1) == 3) print $0}' file ``` Should work with leading zero(s)
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
``` awk '$1 ~ /^[0-9][0-9][0-9]$/' file1 ``` This will match the first field (`$1`) against three digits only (note the forced start and stop range denoted by `^` and `$`). It then prints the entire line (`$0`). You don't need a `{print $0}` after the regex match, because the default action is to print the line anywa...
Here's one: ``` awk '$1 ~ /^[[:digit:]]{3}$/' file1 ``` Or, if you prefer a range instead of the POSIX character class: ``` awk '$1 ~ /^[0-9]{3}$/' file1 ```
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
Here's one: ``` awk '$1 ~ /^[[:digit:]]{3}$/' file1 ``` Or, if you prefer a range instead of the POSIX character class: ``` awk '$1 ~ /^[0-9]{3}$/' file1 ```
``` awk '{num=$1/1; if (num == $1) if (length($1) == 3) print $0}' file ``` Should work with leading zero(s)
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
If we can assume that the first field only contains numbers: ``` awk 'length($1) == 3' file1 ``` If not, go with one of the regex solutions. --- An alternative solution: ``` awk '$1 >= 100 && $1 <= 999' file1 ``` print all line where the numeric value of the first field is in the range (100,999). This solution ...
``` awk '{ if ($1 ~ /^[0-9][0-9][0-9]$/) print $0}' file ``` Note that we're using a reg-ex that specifies 3 char-classes (anything inside `[..]`), of *just* 0-9. The first field of a file is denoted as $1. The '^' and '$', indicate start and end of field. If we don't have those there, fields with 4 or more digits wi...
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
``` awk '$1 ~ /^[0-9][0-9][0-9]$/' file1 ``` This will match the first field (`$1`) against three digits only (note the forced start and stop range denoted by `^` and `$`). It then prints the entire line (`$0`). You don't need a `{print $0}` after the regex match, because the default action is to print the line anywa...
``` awk '{num=$1/1; if (num == $1) if (length($1) == 3) print $0}' file ``` Should work with leading zero(s)
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
If we can assume that the first field only contains numbers: ``` awk 'length($1) == 3' file1 ``` If not, go with one of the regex solutions. --- An alternative solution: ``` awk '$1 >= 100 && $1 <= 999' file1 ``` print all line where the numeric value of the first field is in the range (100,999). This solution ...
``` awk '/^[0-9][0-9][0-9]([^0-9]|$)/ {print $0}' file ``` [See it](http://www.ideone.com/MFmQN) To find lines that have only 3 digits and nothing else: ``` awk '/^[0-9][0-9][0-9]$/ {print $0}' file ```
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
``` awk '$1 ~ /^[0-9][0-9][0-9]$/' file1 ``` This will match the first field (`$1`) against three digits only (note the forced start and stop range denoted by `^` and `$`). It then prints the entire line (`$0`). You don't need a `{print $0}` after the regex match, because the default action is to print the line anywa...
``` awk '{ if ($1 ~ /^[0-9][0-9][0-9]$/) print $0}' file ``` Note that we're using a reg-ex that specifies 3 char-classes (anything inside `[..]`), of *just* 0-9. The first field of a file is denoted as $1. The '^' and '$', indicate start and end of field. If we don't have those there, fields with 4 or more digits wi...
8,212,952
Here is file1 ``` 200 201 202 203 204 205 2001 2002 2003 2004 2005 ``` Is there an awk oneliner that finds only lines with three digits in the the first field?
2011/11/21
[ "https://Stackoverflow.com/questions/8212952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1045523/" ]
Here's one: ``` awk '$1 ~ /^[[:digit:]]{3}$/' file1 ``` Or, if you prefer a range instead of the POSIX character class: ``` awk '$1 ~ /^[0-9]{3}$/' file1 ```
A bit unorthodox but you can do this as well - ``` [jaypal~/Temp]$ cat text7 200 201 202 203 204 205 2001 2002 2003 2004 2005 [jaypal~/Temp]$ awk 'BEGIN{FS="";} NF<4{print}' text7 200 201 202 203 204 205 ```
58,658,806
i want to install the package 'wdio-jasmine-framework' with the command 'npm i wdio-jasmine-framework --save-dev' but i get this error message. I already tried to delete the global 'node-gyp' package. I checked if my mac os is ready for it, with <https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md> and als...
2019/11/01
[ "https://Stackoverflow.com/questions/58658806", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6145451/" ]
If your window with is used by so many components as you mentioned, you must prefer using `context`. As it reads below: > > Context is for global scope of application. > > > So, `#2` is perfect choice here per react. First approach `#1` might be good for components in same hierarchy but only up-to 2-3 levels.
As HMR said in an above thread, my solution was to use redux to hold the width value. With this strategy you only need one listener and you can restrict how often you update with whatever tool you like. You could check if the width value is within the range of a new breakpoint and only update redux when that is true. T...
58,658,806
i want to install the package 'wdio-jasmine-framework' with the command 'npm i wdio-jasmine-framework --save-dev' but i get this error message. I already tried to delete the global 'node-gyp' package. I checked if my mac os is ready for it, with <https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md> and als...
2019/11/01
[ "https://Stackoverflow.com/questions/58658806", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6145451/" ]
I'm not sure if adding and removing event listeners is a more expensive operation than setting and deleting map keys but maybe the following would optimize it: ``` const changeTracker = (debounceTime => { const listeners = new Map(); const add = fn => { listeners.set(fn, fn); return () => listeners.delete(...
As HMR said in an above thread, my solution was to use redux to hold the width value. With this strategy you only need one listener and you can restrict how often you update with whatever tool you like. You could check if the width value is within the range of a new breakpoint and only update redux when that is true. T...
12,585,133
I'm having issues with redirecting mobile users to the regular site if they click the redirect link; when the link is clicked, they are still directed to the mobile site. I'm using the following bit of javascript: ``` function setCookie(c_name, value, exdays) { c_name = c_name.toLowerCase(); var exdate = new...
2012/09/25
[ "https://Stackoverflow.com/questions/12585133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1255049/" ]
This looks like a scenario that would benefit both generics and inheritance via a base class / interface. ``` class DBHandler<TTool> where TTool : ToolBase // or ITool { public DBHandler(){ ... } public void InsertTool(TTool tool) { ... } public TTool QueryTool(string toolID) { ... } public void Updat...
Inheritance does tend to be over-used, but this seems like an appropriate case for it. In many cases people just see duplicate code and think "I'll use inheritance to remove the duplicate code through a base class." In reality, most duplicate code can be refactored into another class entirely that is used in several pl...
12,585,133
I'm having issues with redirecting mobile users to the regular site if they click the redirect link; when the link is clicked, they are still directed to the mobile site. I'm using the following bit of javascript: ``` function setCookie(c_name, value, exdays) { c_name = c_name.toLowerCase(); var exdate = new...
2012/09/25
[ "https://Stackoverflow.com/questions/12585133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1255049/" ]
Inheritance does tend to be over-used, but this seems like an appropriate case for it. In many cases people just see duplicate code and think "I'll use inheritance to remove the duplicate code through a base class." In reality, most duplicate code can be refactored into another class entirely that is used in several pl...
I would say this is definitely a task for inheritance...but lets get one thing straight first. Composition is a design pattern that can and should be used where multiple inheritance of classes is not a feature of the given language (C# for example) Composition implies that your Composite class instantiates classes, wh...
12,585,133
I'm having issues with redirecting mobile users to the regular site if they click the redirect link; when the link is clicked, they are still directed to the mobile site. I'm using the following bit of javascript: ``` function setCookie(c_name, value, exdays) { c_name = c_name.toLowerCase(); var exdate = new...
2012/09/25
[ "https://Stackoverflow.com/questions/12585133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1255049/" ]
Inheritance does tend to be over-used, but this seems like an appropriate case for it. In many cases people just see duplicate code and think "I'll use inheritance to remove the duplicate code through a base class." In reality, most duplicate code can be refactored into another class entirely that is used in several pl...
Rather than inheritance, use generics. You want to perform the same operation on different types of objects, which is exactly what generics do best.
12,585,133
I'm having issues with redirecting mobile users to the regular site if they click the redirect link; when the link is clicked, they are still directed to the mobile site. I'm using the following bit of javascript: ``` function setCookie(c_name, value, exdays) { c_name = c_name.toLowerCase(); var exdate = new...
2012/09/25
[ "https://Stackoverflow.com/questions/12585133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1255049/" ]
This looks like a scenario that would benefit both generics and inheritance via a base class / interface. ``` class DBHandler<TTool> where TTool : ToolBase // or ITool { public DBHandler(){ ... } public void InsertTool(TTool tool) { ... } public TTool QueryTool(string toolID) { ... } public void Updat...
I would say this is definitely a task for inheritance...but lets get one thing straight first. Composition is a design pattern that can and should be used where multiple inheritance of classes is not a feature of the given language (C# for example) Composition implies that your Composite class instantiates classes, wh...
12,585,133
I'm having issues with redirecting mobile users to the regular site if they click the redirect link; when the link is clicked, they are still directed to the mobile site. I'm using the following bit of javascript: ``` function setCookie(c_name, value, exdays) { c_name = c_name.toLowerCase(); var exdate = new...
2012/09/25
[ "https://Stackoverflow.com/questions/12585133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1255049/" ]
This looks like a scenario that would benefit both generics and inheritance via a base class / interface. ``` class DBHandler<TTool> where TTool : ToolBase // or ITool { public DBHandler(){ ... } public void InsertTool(TTool tool) { ... } public TTool QueryTool(string toolID) { ... } public void Updat...
Rather than inheritance, use generics. You want to perform the same operation on different types of objects, which is exactly what generics do best.
31,580,975
I am new to Google Tag Manager. Currently Adobe dynamic tag manager gets tracking data from my site using Direct Call Rule. I am trying to understand what is direct call rule in Google Tag Manager (GTM)? Thanks
2015/07/23
[ "https://Stackoverflow.com/questions/31580975", "https://Stackoverflow.com", "https://Stackoverflow.com/users/163300/" ]
In GTM there is dataLayer object. In implementation you can use something similar to ``` dataLayer.push({ 'event':'YourAction', 'eventCategory':'xxxx', 'eventAction': action, 'eventLabel': 'xxxx', 'eventValue': 'xxxx', 'eventNonInteraction': true }); ``` Above is similar to `_satellite....
I always use ``` dataLayer.push({'event': 'DirectCallRuleName'}); ``` In GTM do the following 1. **Triggers** → **NEW** * *Trigger Type*: Custom Event * *Event Name*: DirectCallRuleName (or any other name you have chosen) * *This trigger fires on*: All custom events 2. **Tags** → **NEW** * *Track Type*: Event ...
105,416
I have a variable into a do loop. I append its content to a file, but I want to append it to itself so I could use it to do other stuff like sending mail. I tried `variable+=$variable` but it didn't work. I want to have access to the variable outside the do...done
2013/12/16
[ "https://unix.stackexchange.com/questions/105416", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/53978/" ]
I bet your loop is part of a pipeline ``` seq 5 | while read num; do x+=$num; done; echo $x # expect "12345", actually see "" ``` In bash, when you construct a pipeline, it spawns subshells for all the parts. When the subshell exits, any variables you modify within it are destroyed too. You have to code more caref...
If these are just strings you can append like this: ### Example ``` $ somevar="a string" $ echo $somevar a string $ somevar="$somevar$somevar" $ echo $somevar a stringa string ``` ### Loops You can use the same technique in a `for` loop in Bash. ``` $ a="0"; for i in $(seq 3); do a="$a$i"; echo "$i | $a"; done ...
21,368,546
I am trying to change the data portion of a node, but I am getting a cannot find symbol error on my sets and gets for the WordItem class. The first part is the object class and the containsWord is in the LinkedList class. Any help would be appreciated. ``` public class WordItem implements Comparable { private St...
2014/01/26
[ "https://Stackoverflow.com/questions/21368546", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3238326/" ]
If you are sending something via $\_POST, then you need a form. Use something like: ``` <form method="post" action="submitreserve.php"> <input type="hidden" name="id" value="123" /> <input type="hidden" name="year" value="2014" /> <input type="hidden" name="course" value="course here" /> <input type="hidden"...
You could have some JavaScript code, something like: ``` <a href="submitreserve.php" onclick="reserve(val1, val2, val3, val4)">Reserve</a> ``` Have your php code put the parameters in for the reserve function call. Then define a JavaScript function to do the POST request (sample provided below using jQuery): ``` f...
26,088,114
I'm having a little bit problem with my game. What I want is when one out of two arrays becomes all 0's the loop will stop. Currently the loop stops when **both** arrays are equal to zero. What I think is the problem but don't have a solution is that I have both array statements in one loop, it will run from top too b...
2014/09/28
[ "https://Stackoverflow.com/questions/26088114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2195176/" ]
The key is that you have to check the state of the entire board at each loop iteration. Like this: ``` void ShootAtShip(int board1[], int board2[], string names[], int cap) { for (int i = 0; i < cap; i++) { while ( 1 ) { bool board1HasShips = false; bool board2HasShips = false; for ( int...
Especially when writing games, it's a good idea to try and organize your code into functions. Personally I would do something like this: ``` bool isGameOver(int board1[], int board2[], size_t cap) { bool lost1 = true; bool lost2 = true; for (size_t i = 0; i < cap && lost1 != false; ++i) if (board1...
11,636,327
I'm looking for a solution (preferably in css or html) to make it so that my table which is inside a div container to squish its <td>'s so that they stay inside the div container when the browser is resized. <http://lux.physics.ucdavis.edu/public/new_website/kkdijlsis2311/ex.html> Notice how as you change the broswer s...
2012/07/24
[ "https://Stackoverflow.com/questions/11636327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1549442/" ]
Well, unfortunately it's not that simple. If you think about it, in your example you have 6 columns on one row, and then three on the other. You won't be able to just move the objects outside of the row because as you would expect, the table is designed to keep everything in the specified row(s). So, the best way to g...
The best solution would be to put your content in divs, with each `float: left;` and specify the height and width of each. If you really must use a table, you will have to look into Media Queries in order to adjust your stylesheet based on the size of the users browser window. But this will be much more complicated.
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
``` Name one thing you kept from your childhood -- Vogue interviewer My insecurities. -- Taylor Swift ``` Insecurity is a real thing and it lies to you all the time, and tells you very elaborate stories over and over. What's worse, it sounds like *you* so you want to believe it! Don't be fooled. Presume thi...
Joe's answer seems to be about right. You need to let them know when they are checking things that are not true. You are basically lying by omission. You claim your boss has checked these details with you a few times now. If your boss discovers the mistake, at best they will be angry that you didn't correct them. At w...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
> > How can I tell my manager that I was hired by mistake? > > > Short answer: **You don't**, you don't bring any of this up at all. You have **no real way to know** if this is true or not, so assume it's not and continue on. Keep your head down, focus on your tasks, and do the best you can. Now, if you feel th...
Always be honest; doing otherwise will come back to bite you in the end. If your boss mentions your previous experience (that you don't have), correct him politely. You did not misrepresent yourself during the application and hiring process, and you don't want to make the mistake of doing so now by allowing his assump...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
You are suffering from imposter syndrome. Just use your new job as an opportunity to learn the new technologies. Once you gain confidence with the new technologies, the imposter syndrome will disappear.
Ask yourself: If you convince your boss that you were hired by mistake, what's the benefit to you? Because *that* is the only thing that matters, the benefit to you. I can't actually see any benefit, and huge risks. What you are doing will be considered weird. You destroy your reputation. There is actually the risk o...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
You are suffering from imposter syndrome. Just use your new job as an opportunity to learn the new technologies. Once you gain confidence with the new technologies, the imposter syndrome will disappear.
I think that is excellent you have a conscience, however, it does not seem that you are certain that you are certain regarding the 'facts'. It would seem that the issue is that you need to face is to understand whether your supervisor has an incorrect understanding of your background and if you need to address this. ...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
Ask yourself: If you convince your boss that you were hired by mistake, what's the benefit to you? Because *that* is the only thing that matters, the benefit to you. I can't actually see any benefit, and huge risks. What you are doing will be considered weird. You destroy your reputation. There is actually the risk o...
``` Name one thing you kept from your childhood -- Vogue interviewer My insecurities. -- Taylor Swift ``` Insecurity is a real thing and it lies to you all the time, and tells you very elaborate stories over and over. What's worse, it sounds like *you* so you want to believe it! Don't be fooled. Presume thi...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
> > How can I tell my manager that I was hired by mistake? > > > Short answer: **You don't**, you don't bring any of this up at all. You have **no real way to know** if this is true or not, so assume it's not and continue on. Keep your head down, focus on your tasks, and do the best you can. Now, if you feel th...
``` Name one thing you kept from your childhood -- Vogue interviewer My insecurities. -- Taylor Swift ``` Insecurity is a real thing and it lies to you all the time, and tells you very elaborate stories over and over. What's worse, it sounds like *you* so you want to believe it! Don't be fooled. Presume thi...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
> > I want my manager to know my actual background and areas of expertise > and feel guilty that I “stole” a position using someone else's > credentials. However, I'd also like to retain my position, if > possible. How can I tell my manager that I was hired by mistake? > > > Skip the "hired by mistake" part - t...
Always be honest; doing otherwise will come back to bite you in the end. If your boss mentions your previous experience (that you don't have), correct him politely. You did not misrepresent yourself during the application and hiring process, and you don't want to make the mistake of doing so now by allowing his assump...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
> > I want my manager to know my actual background and areas of expertise > and feel guilty that I “stole” a position using someone else's > credentials. However, I'd also like to retain my position, if > possible. How can I tell my manager that I was hired by mistake? > > > Skip the "hired by mistake" part - t...
``` Name one thing you kept from your childhood -- Vogue interviewer My insecurities. -- Taylor Swift ``` Insecurity is a real thing and it lies to you all the time, and tells you very elaborate stories over and over. What's worse, it sounds like *you* so you want to believe it! Don't be fooled. Presume thi...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
> > How can I tell my manager that I was hired by mistake? > > > Short answer: **You don't**, you don't bring any of this up at all. You have **no real way to know** if this is true or not, so assume it's not and continue on. Keep your head down, focus on your tasks, and do the best you can. Now, if you feel th...
Ask yourself: If you convince your boss that you were hired by mistake, what's the benefit to you? Because *that* is the only thing that matters, the benefit to you. I can't actually see any benefit, and huge risks. What you are doing will be considered weird. You destroy your reputation. There is actually the risk o...
101,377
I was hired at my current workplace just over a month ago. During the interview process, I found out that someone I knew from university was also interviewing for the position. I'll call him Jim. Jim and I have never been close, but are merely aware of each other. Based solely on technical knowledge and relevant expert...
2017/10/24
[ "https://workplace.stackexchange.com/questions/101377", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/78670/" ]
> > How can I tell my manager that I was hired by mistake? > > > Short answer: **You don't**, you don't bring any of this up at all. You have **no real way to know** if this is true or not, so assume it's not and continue on. Keep your head down, focus on your tasks, and do the best you can. Now, if you feel th...
I think that is excellent you have a conscience, however, it does not seem that you are certain that you are certain regarding the 'facts'. It would seem that the issue is that you need to face is to understand whether your supervisor has an incorrect understanding of your background and if you need to address this. ...
20,290,387
Hello dear programmers I need to your help. I made a very very very simple java socket (client - server) project, what worked well. But when I used that client code to make it for android, it is not working, but I am making only client code for android, the server code is in Java again(may be I should make the server ...
2013/11/29
[ "https://Stackoverflow.com/questions/20290387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3050103/" ]
You should not connect network in "onCreate()", and can use "AsyncTask" ``` String advice = ""; class MySyncTask extends AsyncTask<Integer, Integer, String>{ @Override protected String doInBackground(Integer... params) { try{ Socket s = new Socket("127.0.0.1", 4242); InputStreamReader st...
You need to `flush` after writing the data to make sure the data is sent. You can make the server on Android or Java, both works fine.Try this: ``` writer.println(advice); writer.flush(); ``` And dont forget the EOF for each and every data you send so the whole thing would be: ``` writer.println(advice + System.get...
61,350,346
I am trying to create a classifier in order to differentiate between men and women from face images. For each image I have 4 sets of data (one for the whole face, eyes, nose and lips) witch are the same. That means for each image i have 4 of the same features but they are derived from different parts of the image. Is...
2020/04/21
[ "https://Stackoverflow.com/questions/61350346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13374408/" ]
I have found an answer that is both simple and accurate in all scenarios w/o dependancy on readStreams or extentions to 'naitive' VW as far back as VW7.4: simply use **findString:startingAt:** and do a greater then zero check for # of occurences sample: ``` |string substring1 substring2| string:= 'The Quick Brown Fo...
This may be dialect dependent, so try the following ``` 'Smalltalk' includesSubstring: 'mall' --> true 'Smalltalk' includesSubstring: 'malta' --> true 'Smalltalk' indexOfSubCollection: 'mall' --> 2 'Smalltalk' indexOfSubCollection: 'malta' --> 0 ``` (see Bob's comment below) ``` 'Smalltalk' indexOfSubCollection: '...
61,350,346
I am trying to create a classifier in order to differentiate between men and women from face images. For each image I have 4 sets of data (one for the whole face, eyes, nose and lips) witch are the same. That means for each image i have 4 of the same features but they are derived from different parts of the image. Is...
2020/04/21
[ "https://Stackoverflow.com/questions/61350346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13374408/" ]
I have found an answer that is both simple and accurate in all scenarios w/o dependancy on readStreams or extentions to 'naitive' VW as far back as VW7.4: simply use **findString:startingAt:** and do a greater then zero check for # of occurences sample: ``` |string substring1 substring2| string:= 'The Quick Brown Fo...
try `#match:`, like so: `'*fox*' match: 'there''s a fox in the woods'`. There're two kinds of wildcards: `*` and `#`. `#` matches any single character. `*` matches any number of characters (including none). `#match:` defaults to case-insensitive matching, if you need case-sensitive, use `#match:ignoringCase:` and pass...
61,350,346
I am trying to create a classifier in order to differentiate between men and women from face images. For each image I have 4 sets of data (one for the whole face, eyes, nose and lips) witch are the same. That means for each image i have 4 of the same features but they are derived from different parts of the image. Is...
2020/04/21
[ "https://Stackoverflow.com/questions/61350346", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13374408/" ]
I have found an answer that is both simple and accurate in all scenarios w/o dependancy on readStreams or extentions to 'naitive' VW as far back as VW7.4: simply use **findString:startingAt:** and do a greater then zero check for # of occurences sample: ``` |string substring1 substring2| string:= 'The Quick Brown Fo...
Match works fine in VisualWorks, but I add a utility method to string: includesSubString: aString ``` | readStream | readStream := self readStream. readStream upToAll: aString. ^readStream atEnd not ```
11,550,016
For the last hour I've tried several different solutions but none have solved my problem. I have various input fields containing a decimal number (price of product) e.g. `98.00`. Looping through a list of items, I need to add the fields together: ``` // Calculate sub-total $('.selected_list li.order_line:visible...
2012/07/18
[ "https://Stackoverflow.com/questions/11550016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91612/" ]
Use parseFloat: ``` var item_cost = parseFloat($(this).find('input.item_cost').val()); ``` More, [here](http://www.w3schools.com/jsref/jsref_parseFloat.asp)
You can use `parseFloat()` to convert the strings. I have updated your Fiddle: <http://jsfiddle.net/EgGUm/11/> ``` // Calculate sub-total $('.selected_list li.order_line:visible').each(function(){ var item_cost = parseFloat($(this).find('input.item_cost').val()); sub_total = sub_total + item_cost; }) ``...
2,432,813
I know of three ways to get a full language name of a CultureInfo object. ``` CultureInfo.DisplayName CultureInfo.NativeName CultureInfo.EnglishName ``` DisplayName gives the name in the installed .net language. NativeName gives the name in 'CultureInfos' language. EnglishName gives the name in English (s...
2010/03/12
[ "https://Stackoverflow.com/questions/2432813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/317298/" ]
This functionality isn't built into the .NET Framework Maybe look at [Google Translate API](http://code.google.com/apis/ajaxlanguage/)
Example for CultureInfo.EnglishName: ``` public CultureInfo GetCultureInfo(string EnglishName) { foreach (CultureInfo info in CultureInfo.GetCultures(CultureTypes.AllCultures)) { if (info.EnglishName == EnglishName) return new CultureInfo(info.Name); } ...
2,432,813
I know of three ways to get a full language name of a CultureInfo object. ``` CultureInfo.DisplayName CultureInfo.NativeName CultureInfo.EnglishName ``` DisplayName gives the name in the installed .net language. NativeName gives the name in 'CultureInfos' language. EnglishName gives the name in English (s...
2010/03/12
[ "https://Stackoverflow.com/questions/2432813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/317298/" ]
This functionality isn't built into the .NET Framework Maybe look at [Google Translate API](http://code.google.com/apis/ajaxlanguage/)
In principle the following code works: ``` private static ResourceManager resourceManager = new ResourceManager("mscorlib", typeof(int).Assembly); public static string CultureName(CultureInfo culture, CultureInfo displayCulture) { return resourceManager.GetString("Globalization.ci_" + culture.Name, displayCulture...
2,432,813
I know of three ways to get a full language name of a CultureInfo object. ``` CultureInfo.DisplayName CultureInfo.NativeName CultureInfo.EnglishName ``` DisplayName gives the name in the installed .net language. NativeName gives the name in 'CultureInfos' language. EnglishName gives the name in English (s...
2010/03/12
[ "https://Stackoverflow.com/questions/2432813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/317298/" ]
Example for CultureInfo.EnglishName: ``` public CultureInfo GetCultureInfo(string EnglishName) { foreach (CultureInfo info in CultureInfo.GetCultures(CultureTypes.AllCultures)) { if (info.EnglishName == EnglishName) return new CultureInfo(info.Name); } ...
In principle the following code works: ``` private static ResourceManager resourceManager = new ResourceManager("mscorlib", typeof(int).Assembly); public static string CultureName(CultureInfo culture, CultureInfo displayCulture) { return resourceManager.GetString("Globalization.ci_" + culture.Name, displayCulture...
19,516,515
I am using an ajax auto complete extender control in my ASP.net page for a text box : ``` <td align="left> <asp:TextBox ID="txtAutoComplete" runat="server" MaxLength="200" Width="50%"> </asp:TextBox> <asp:AutoCompleteExtender ID="txtAutoComplete_AutocompleteExtender" runat="server" ...
2013/10/22
[ "https://Stackoverflow.com/questions/19516515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2028690/" ]
You think the signature of the webmethod is wrong, try this (the prefixText is necessary, I think) ``` public string[] GetItemsList(string prefixText, int count) ```
To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line in the asmx code behind file: ``` [System.Web.Script.Services.ScriptService] ```
19,516,515
I am using an ajax auto complete extender control in my ASP.net page for a text box : ``` <td align="left> <asp:TextBox ID="txtAutoComplete" runat="server" MaxLength="200" Width="50%"> </asp:TextBox> <asp:AutoCompleteExtender ID="txtAutoComplete_AutocompleteExtender" runat="server" ...
2013/10/22
[ "https://Stackoverflow.com/questions/19516515", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2028690/" ]
Use ``` [WebMethod] public string[] GetItemsList(string PrefixText,int count) { char c1; char c2; char c3;`enter code here` if (count == 0) { count = 10; } Random rnd =new Random(); List<...
To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line in the asmx code behind file: ``` [System.Web.Script.Services.ScriptService] ```
74,686
At the end of CNN's August 9, 2022 video [Analysis: How FBI's search of Mar-a-Lago could help Trump in 2024](https://youtu.be/62Z4MnFIifY?t=604) (after about 10:00) host Brianna Keilar asks about the former US president potentially announcing candidacy in the 2024 presidential election. What I find interesting and don'...
2022/08/09
[ "https://politics.stackexchange.com/questions/74686", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/16047/" ]
From the July 28, 2022 Yahoo article, by Cheryl Teh, [**The RNC has been helping Trump pay his legal bills but will pull the plug once he kicks off his 2024 campaign**](https://news.yahoo.com/rnc-helping-trump-pay-legal-071035168.html): > > The Republican National Committee has been helping former President Donald Tr...
I just searched for the state law on election funds that I could find, and the first I found happened to be Maryland's. [Their guide](https://elections.maryland.gov/campaign_finance/summary_guide.html) states: > > It is prohibited for any candidate or political committee to use campaign funds for legal or other expen...
74,686
At the end of CNN's August 9, 2022 video [Analysis: How FBI's search of Mar-a-Lago could help Trump in 2024](https://youtu.be/62Z4MnFIifY?t=604) (after about 10:00) host Brianna Keilar asks about the former US president potentially announcing candidacy in the 2024 presidential election. What I find interesting and don'...
2022/08/09
[ "https://politics.stackexchange.com/questions/74686", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/16047/" ]
I just searched for the state law on election funds that I could find, and the first I found happened to be Maryland's. [Their guide](https://elections.maryland.gov/campaign_finance/summary_guide.html) states: > > It is prohibited for any candidate or political committee to use campaign funds for legal or other expen...
I don't think there are *legal* issues here. The RNC is a private organization like any other, and they can do what they want (within relevant legal and regulatory restrictions). It seems logical that they would want to act in a manner that is seen as "fair" to all candidates that they support. We see that the publishe...
74,686
At the end of CNN's August 9, 2022 video [Analysis: How FBI's search of Mar-a-Lago could help Trump in 2024](https://youtu.be/62Z4MnFIifY?t=604) (after about 10:00) host Brianna Keilar asks about the former US president potentially announcing candidacy in the 2024 presidential election. What I find interesting and don'...
2022/08/09
[ "https://politics.stackexchange.com/questions/74686", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/16047/" ]
From the July 28, 2022 Yahoo article, by Cheryl Teh, [**The RNC has been helping Trump pay his legal bills but will pull the plug once he kicks off his 2024 campaign**](https://news.yahoo.com/rnc-helping-trump-pay-legal-071035168.html): > > The Republican National Committee has been helping former President Donald Tr...
Obviously, Trump wants to run against Biden in the general presidential election, but before he does so, he has to win the Republican presidential primary, so if he announces his candidacy for the presidency, he would be first and foremost be announcing his intent to run against other Republicans for the Republican nom...
74,686
At the end of CNN's August 9, 2022 video [Analysis: How FBI's search of Mar-a-Lago could help Trump in 2024](https://youtu.be/62Z4MnFIifY?t=604) (after about 10:00) host Brianna Keilar asks about the former US president potentially announcing candidacy in the 2024 presidential election. What I find interesting and don'...
2022/08/09
[ "https://politics.stackexchange.com/questions/74686", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/16047/" ]
From the July 28, 2022 Yahoo article, by Cheryl Teh, [**The RNC has been helping Trump pay his legal bills but will pull the plug once he kicks off his 2024 campaign**](https://news.yahoo.com/rnc-helping-trump-pay-legal-071035168.html): > > The Republican National Committee has been helping former President Donald Tr...
I don't think there are *legal* issues here. The RNC is a private organization like any other, and they can do what they want (within relevant legal and regulatory restrictions). It seems logical that they would want to act in a manner that is seen as "fair" to all candidates that they support. We see that the publishe...
74,686
At the end of CNN's August 9, 2022 video [Analysis: How FBI's search of Mar-a-Lago could help Trump in 2024](https://youtu.be/62Z4MnFIifY?t=604) (after about 10:00) host Brianna Keilar asks about the former US president potentially announcing candidacy in the 2024 presidential election. What I find interesting and don'...
2022/08/09
[ "https://politics.stackexchange.com/questions/74686", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/16047/" ]
Obviously, Trump wants to run against Biden in the general presidential election, but before he does so, he has to win the Republican presidential primary, so if he announces his candidacy for the presidency, he would be first and foremost be announcing his intent to run against other Republicans for the Republican nom...
I don't think there are *legal* issues here. The RNC is a private organization like any other, and they can do what they want (within relevant legal and regulatory restrictions). It seems logical that they would want to act in a manner that is seen as "fair" to all candidates that they support. We see that the publishe...
15,426,183
In my project, I am trying to [fix the width and height](https://stackoverflow.com/a/4636290/1577396) of `td`'s by doing the following: ``` td{ max-width:100px; max-height:100px; width:100px; height:100px; overflow:hidden; word-wrap:break-word; /* CSS3 */ } ``` Here is the [**fiddle**](http://jsbi...
2013/03/15
[ "https://Stackoverflow.com/questions/15426183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1577396/" ]
Wrap your content with div ``` table{width:500px;height:200px;} td{border:1px solid green; width:100px; height:100px;} /* My fix try */ td div{ width:100px; height:100px; overflow:hidden; word-wrap:break-word; } ``` **[DEMO](http://jsfiddle.net/pgrKM/1/)**
My problem was somewhat different. I was only giving `width:100%` and `height:100%` to the `table` tag. i.e, no fixed `td`'s. I solved this by adding `div`'s inside each `td` tag and giving them fixed dimensions. ``` td>div{ /* Giving values less than the td values by assuming */ width:100px; height:100px;...
29,698,334
It seems that sbt always retrieves all the dependencies as long as I set `retrieveManaged := true` in `build.sbt`. I have some dependencies configured as `provided`, and I don't need them to be retrieved into the directory `lib_managed/`. How to tell sbt about that?
2015/04/17
[ "https://Stackoverflow.com/questions/29698334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1881299/" ]
After days of searching I found a sbt plugin which perfectly matches my requirement. <https://github.com/xerial/sbt-pack>. Although it's not about lib\_managed, it retrieves all the dependencies into target/pack/lib without those provided. And target/pack can be distributed directly without useless jars. That's exact...
The intent of the `provided` module configuration is: > > This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE A...
44,010
I have some lists of interpolated functions and I want to know if there is an easy way to operate with them. A simplified example: ``` listsin = Table[FunctionInterpolation[Sin[i*x], {x, 0, 2 Pi}], {i, 1, 10}] listlinear = Table[FunctionInterpolation[i*x, {x, 0, 2 Pi}], {i, 1, 10}] ``` This generates two lists of te...
2014/03/14
[ "https://mathematica.stackexchange.com/questions/44010", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/12975/" ]
I'm not sure of the output that you want but this returns a list if functions that should be equivalent to those in your `listsumd`: ``` MapThread[{##} /. {sin_, lin_} :> (sin'[#] + lin'[#] &) &, {listsin, listlinear}] ``` Please see [Mathematica Destructuring](https://mathematica.stackexchange.com/questions/8382/ma...
Just an alternative (using definitions `listsin`,`listlinear`): ``` f[x_] := Total /@ Map[#'[x] &, Transpose[{listsin, listlinear}], {2}] ``` or (to produce pure function as per Mr. Wizard): ``` g=(Total /@ Map[Function[g, g'[#]], Transpose[{listsin, listlinear}], {2}]) &; ``` Testing: ``` Through[MapThread...
202,419
I've been working on a detailed character model for some time. I finished the retopology, hid the sculpt, and now I can't seem to reveal the sculpt again in either object or edit mode (selecting the object from the outliner and hitting tab). [![The sculpt listed as visible in the outliner](https://i.stack.imgur.com/dP...
2020/11/19
[ "https://blender.stackexchange.com/questions/202419", "https://blender.stackexchange.com", "https://blender.stackexchange.com/users/84860/" ]
You can use *Apply Vector Field to Curve* node. Pass a vector or a matrix to it's *Field* input. ![](https://i.ibb.co/CJxhgYk/2020-11-20-14-09.png)
Initially pipeline was designed to create curve from mesh. When defining curve you can move it. Is it possible? Or you operate on some curves from beginning?
13,745,746
I have strongly typed dataset. Now I want to do a select on a datatable with linq. My problem is that this table have numeric columns that allows null-values. But if there are datarows that have in this columns no values, I don't know to make the Select- command. This is my query: ``` var query = from tab1 in localD...
2012/12/06
[ "https://Stackoverflow.com/questions/13745746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1853879/" ]
> > *“The number of story points associated with a story represents the > overall size of the story. There is no set formula for defining the > size of a story. Rather a story point estimate is an amalgamation of > the amount of effort involved in developing a feature, the complexity > of developing it, the risk i...
I do not know a bout a good article, but here is how we estimate activities using story points: first, we assemble as many people from the dev team as possible, with the product owner (PO, the decision maker from the client), the we make the PO explain a task/story/feature and then we use planning poker (with the PO as...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
Question. Does the UIActionSheet freeze, or does it disappear and the 3rd view isn't visible for 2-3 seconds? This could be due to 1 of 2 problems. 1. If the entire action sheet freezes, then you are doing some heavy lifting when you init that 3rd view, you are loading some core data, or a lot of assets, or something...
this is perhaps due to this ``` [self performSelector:@selector(RemoveView) withObject:self afterDelay:3.0]; ``` make an other methods and do this in that method. like this ``` [self viewRemover]; ``` and in viewRemover ``` -(void) viewRemover { [self performSelector:@selector(RemoveView) withObject:self aft...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
this is perhaps due to this ``` [self performSelector:@selector(RemoveView) withObject:self afterDelay:3.0]; ``` make an other methods and do this in that method. like this ``` [self viewRemover]; ``` and in viewRemover ``` -(void) viewRemover { [self performSelector:@selector(RemoveView) withObject:self aft...
How big is your third view. if the nib file needs to load too much, you may be waiting for a lot to happen, also if you have to change some UI elements and your blocking the UI thread, you will hault your app until a timeout occurs and the app will shift some things to compensate.. the route I take with this is dispat...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
this is perhaps due to this ``` [self performSelector:@selector(RemoveView) withObject:self afterDelay:3.0]; ``` make an other methods and do this in that method. like this ``` [self viewRemover]; ``` and in viewRemover ``` -(void) viewRemover { [self performSelector:@selector(RemoveView) withObject:self aft...
in Swift 4: I wrapped the code with this block ``` DispatchQueue.main.async { // your code to show action sheet. } ``` for example ``` DispatchQueue.main.async { let alert = UIAlertController(title: "Options", message: String("What do want to do?"), preferredStyle: UIAlertController.Style.actionShee...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
Question. Does the UIActionSheet freeze, or does it disappear and the 3rd view isn't visible for 2-3 seconds? This could be due to 1 of 2 problems. 1. If the entire action sheet freezes, then you are doing some heavy lifting when you init that 3rd view, you are loading some core data, or a lot of assets, or something...
User interface actions run in the main thread and only occur when your method ends. So, `MyThirdView` will not appear until the other instructions have finished. The only thing I can figure is delaying that is: ``` [self.doneButton.target performSelector:self.doneButton.action withObject:self.doneButton.target]; ```...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
User interface actions run in the main thread and only occur when your method ends. So, `MyThirdView` will not appear until the other instructions have finished. The only thing I can figure is delaying that is: ``` [self.doneButton.target performSelector:self.doneButton.action withObject:self.doneButton.target]; ```...
How big is your third view. if the nib file needs to load too much, you may be waiting for a lot to happen, also if you have to change some UI elements and your blocking the UI thread, you will hault your app until a timeout occurs and the app will shift some things to compensate.. the route I take with this is dispat...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
User interface actions run in the main thread and only occur when your method ends. So, `MyThirdView` will not appear until the other instructions have finished. The only thing I can figure is delaying that is: ``` [self.doneButton.target performSelector:self.doneButton.action withObject:self.doneButton.target]; ```...
in Swift 4: I wrapped the code with this block ``` DispatchQueue.main.async { // your code to show action sheet. } ``` for example ``` DispatchQueue.main.async { let alert = UIAlertController(title: "Options", message: String("What do want to do?"), preferredStyle: UIAlertController.Style.actionShee...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
Question. Does the UIActionSheet freeze, or does it disappear and the 3rd view isn't visible for 2-3 seconds? This could be due to 1 of 2 problems. 1. If the entire action sheet freezes, then you are doing some heavy lifting when you init that 3rd view, you are loading some core data, or a lot of assets, or something...
How big is your third view. if the nib file needs to load too much, you may be waiting for a lot to happen, also if you have to change some UI elements and your blocking the UI thread, you will hault your app until a timeout occurs and the app will shift some things to compensate.. the route I take with this is dispat...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
Question. Does the UIActionSheet freeze, or does it disappear and the 3rd view isn't visible for 2-3 seconds? This could be due to 1 of 2 problems. 1. If the entire action sheet freezes, then you are doing some heavy lifting when you init that 3rd view, you are loading some core data, or a lot of assets, or something...
in Swift 4: I wrapped the code with this block ``` DispatchQueue.main.async { // your code to show action sheet. } ``` for example ``` DispatchQueue.main.async { let alert = UIAlertController(title: "Options", message: String("What do want to do?"), preferredStyle: UIAlertController.Style.actionShee...
11,030,114
I am creating a `UIActionSheet` on actionSheet:clickedButtonAtIndex delegate method. ``` - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex if(buttonIndex == 1){ [self.myFirstView removeFromSuperview]; if (!self.mySecondView) { [[NSBundle m...
2012/06/14
[ "https://Stackoverflow.com/questions/11030114", "https://Stackoverflow.com", "https://Stackoverflow.com/users/988871/" ]
How big is your third view. if the nib file needs to load too much, you may be waiting for a lot to happen, also if you have to change some UI elements and your blocking the UI thread, you will hault your app until a timeout occurs and the app will shift some things to compensate.. the route I take with this is dispat...
in Swift 4: I wrapped the code with this block ``` DispatchQueue.main.async { // your code to show action sheet. } ``` for example ``` DispatchQueue.main.async { let alert = UIAlertController(title: "Options", message: String("What do want to do?"), preferredStyle: UIAlertController.Style.actionShee...
22,453,858
My table looks like this ``` id pname pfilter 1 onename 24, 36, 120 2 another 22, 124, 1 3 yet 120, 12, 124 ``` I´m trying to run this query: ``` $filterrun = "24"; SELECT * FROM table WHERE pfilter LIKE '$filterrun' ``` In this example i would like only id #1 to show up. And not id #2 and ...
2014/03/17
[ "https://Stackoverflow.com/questions/22453858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3428671/" ]
I hope this code will solve your issue.. ``` ScriptManager.RegisterStartupScript(this, this.GetType(), "onclick", "window.close()", true); ``` Please Mark as answer if it satisfies you..
`window.close()` will close the current window. If you want to close the opened window popup try following the below approach. Assuming you are opening a popup with a reference like below (Parent.aspx) ``` var windowObjectReference; var strWindowFeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status...
3,887
> > Who holds the decision to declare Man of the Match/Man of the Series/ > Tournament award? > > > Some [sources](http://answers.yahoo.com/question/index?qid=20071017054456AAnmqyO) say that it is decided by commentators and former cricket players. > > How the Man of the match is decide when there are equivalen...
2014/01/24
[ "https://sports.stackexchange.com/questions/3887", "https://sports.stackexchange.com", "https://sports.stackexchange.com/users/1277/" ]
> > Who holds the decision to declare Man of the Match/Man of the Series/ Tournament award? > > > It depends on the tournament or series that is going on. In some series they are decided by commentators as they say while giving award as it was quite difficult for us to choose. But For the Big tournaments such as W...
> > Who holds the decision to declare Man of the Match/Man of the Series/ Tournament award? > > > In most cases, the panel of TV pundits and commentators chosen for the series act as the jury. > > How the Man of the match is decide when there are equivalent performance from two players in the same match ? > > ...
9,508,254
Ok I have a really weird CSS issue that I was wondering could anyone suggest an explanation for. Steps to reproduce: Open Chrome and navigate to <http://www.mcwhinneys.com/media> The gallery of photos should be out of alignment, off to the right by about 50-70px Open the Developer console in chrome Expected Resul...
2012/02/29
[ "https://Stackoverflow.com/questions/9508254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/308474/" ]
Well, the actual cause for the wrong layout is the combination of `text-align: center` on your `ngg-gallery-thumbnail-box` (I'll call that *box* from now on) with `position: absolute` + `display: inline-block` on the inner `ngg-gallery-thumbnail` (I'll call that *thumb*). It goes like this: * We apply `text-align: ce...
It's really hard to tell, but it looks like it might be something to do with the interaction between the styling of the elements with class `ngg-gallery-thumbnail`. I would try tweaking/simplifying that. Do you need the `display:inline-block` setting there, for example?
54,239,384
``` CREATE TABLE #sorttest (test int, test2 int) INSERT INTO #sorttest VALUES (1, 2), (5, 4), (4, 3), (NULL, 1), (3, NULL), (2, 5) SELECT * FROM #sorttest ORDER BY CASE WHEN test IS NULL THEN 1 ELSE 0 END, test DESC DROP TABLE #sorttest ``` How to sort the output so that for both columns, `NULL` co...
2019/01/17
[ "https://Stackoverflow.com/questions/54239384", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7121660/" ]
``` DECLARE @sorttest TABLE ( test1 INT, test2 INT) INSERT INTO @sorttest values (1,2),(5,4),(4,3),(NULL,1),(3,null),(2,5) DECLARE @temp1 TABLE ( ID1 INT IDENTITY(1,1) PRIMARY KEY, test3 INT ) DECLARE @temp2 TABLE ( ID2 INT IDENTITY(1,1) PRIMARY KEY, test4 INT ) INSERT INTO @temp1 SELECT test1 FROM @sorttest ORDER B...
you could do this ``` SELECT * FROM #sorttest ORDER BY CASE WHEN test IS NULL and test2 is null THEN 2 ELSE case when test is null or test2 is null then 1 end END ,test desc ``` but then the ordering of the non-null column is a bit odd
14,132
In a university researcher's curriculum vitæ, it is typical to split items between categories such as *Education*, *Research activity*, *Publications*, *Teaching*, etc. I want to include as a separate categories the things that you do for the community, in my own group and at large (i.e., people from my research domain...
2011/02/25
[ "https://english.stackexchange.com/questions/14132", "https://english.stackexchange.com", "https://english.stackexchange.com/users/3479/" ]
*Other Professional Activities* or Other *Professional Responsibilities* would suffice, IMHO. A reasonably granular taxonomy is useful, but only up to a point - at which time, it is useful to have a catch-all category. EDIT: How about *Professional Community Activities/Responsibilities*? Say it how it is... you need...
If it's something that you do in your own free time that you don't get paid for, then **Volunteer Work** carries none of the negative connotations of Community Service whilst essentially meaning the same thing.
14,132
In a university researcher's curriculum vitæ, it is typical to split items between categories such as *Education*, *Research activity*, *Publications*, *Teaching*, etc. I want to include as a separate categories the things that you do for the community, in my own group and at large (i.e., people from my research domain...
2011/02/25
[ "https://english.stackexchange.com/questions/14132", "https://english.stackexchange.com", "https://english.stackexchange.com/users/3479/" ]
If it's something that you do in your own free time that you don't get paid for, then **Volunteer Work** carries none of the negative connotations of Community Service whilst essentially meaning the same thing.
Are these *Community Collaborations* or *Collaborative Activities* I might be on the wrong track here, since you might be doing these independently.
14,132
In a university researcher's curriculum vitæ, it is typical to split items between categories such as *Education*, *Research activity*, *Publications*, *Teaching*, etc. I want to include as a separate categories the things that you do for the community, in my own group and at large (i.e., people from my research domain...
2011/02/25
[ "https://english.stackexchange.com/questions/14132", "https://english.stackexchange.com", "https://english.stackexchange.com/users/3479/" ]
*Other Professional Activities* or Other *Professional Responsibilities* would suffice, IMHO. A reasonably granular taxonomy is useful, but only up to a point - at which time, it is useful to have a catch-all category. EDIT: How about *Professional Community Activities/Responsibilities*? Say it how it is... you need...
Are these *Community Collaborations* or *Collaborative Activities* I might be on the wrong track here, since you might be doing these independently.
20,389,835
I'm curious how to configure **capistrano 3** with short `cap deploy` command to deploy on production by default instead of full `cap production deploy`.
2013/12/05
[ "https://Stackoverflow.com/questions/20389835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1085570/" ]
Try this in your deploy.rb: ``` require 'capistrano/ext/multistage' set :stages, ["dev", "production"] set :default_stage, "production" ``` Then run: ``` cap deploy ```
In your Capfile add this at the bottom ``` invoke :beta ``` This will call the beta stage and make it the default. I'm not shure this is the correct way, but it seems to work :)
23,786,289
I want to detect applications window name when changing focus event occurs with python xlib, so in the first step I use this code: ``` #!/usr/bin/env python #-*- coding:utf-8 -*- import Xlib.display import time display = Xlib.display.Display() while True: window = display.get_input_focus().focus wmname = wind...
2014/05/21
[ "https://Stackoverflow.com/questions/23786289", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1957693/" ]
Your code is almost right, but it misses two things: * rather than listening only to focus changes, it should also listen to window property events which include changes of `WM_NAME` property, that also happen when you cycle tabs in your browser. * rather than listening only in root window, it should listen to every w...
@rr- As I just corrected elsewhere, you'll want to query both the current `_NET_WM_NAME` (UTF-8) and the legacy `WM_NAME` (non-UTF8) properties or the default xterm configuration will return no title. I just posted a complete working example over on [your Unix & Linux StackExchange question](https://unix.stackexchange...
68,752,275
I am getting an int of the entire string s for 'letter', the conditions in my 'if' statement seem to not be reading properly - is my syntax incorrect? I get user input: ``` string s = get_string("Text here: "); ``` the function is as follows: ``` int letter_count(string s) { int i =0; int len ...
2021/08/12
[ "https://Stackoverflow.com/questions/68752275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16636459/" ]
Try changing the OR operator with the AND
`if (s[i] != '\0' || s[i] != '.' || s[i] != ',' || s[i] != '!' || s[i] != '?')` is ALWAYS true. Because any character is either not "." or not ",". Which letter would you expect to be both? You want to check whether the current letter is "not ." AND "not ," AND "not !". I.e. `if (s[i] != '\0' && s[i] != '.' && ...
68,752,275
I am getting an int of the entire string s for 'letter', the conditions in my 'if' statement seem to not be reading properly - is my syntax incorrect? I get user input: ``` string s = get_string("Text here: "); ``` the function is as follows: ``` int letter_count(string s) { int i =0; int len ...
2021/08/12
[ "https://Stackoverflow.com/questions/68752275", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16636459/" ]
Try changing the OR operator with the AND
Almost correct, you have to change the type of the argument to char\*, there is no string type on the default libraries. ([Documentation of string library](https://www.cplusplus.com/reference/cstring/)). Working example with the modifications: ``` #include <stdio.h> #include <string.h> int letter_count (char* s) { ...
25,522,904
I am trying to perform an ng-hide when a value is either null or an empty array (in Firebug, this appears as []). I can carry out the null via: ``` ng-hide="myData.Address == null" ``` However when i try: ``` ng-hide="myData.Address == null || myData.Address == []" ``` The value still appears.
2014/08/27
[ "https://Stackoverflow.com/questions/25522904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2244072/" ]
Try this: ``` ng-hide="myData.Address == null || myData.Address.length == 0" ```
``` ng-hide="!myData.Address || !myData.Address.length" ```
25,522,904
I am trying to perform an ng-hide when a value is either null or an empty array (in Firebug, this appears as []). I can carry out the null via: ``` ng-hide="myData.Address == null" ``` However when i try: ``` ng-hide="myData.Address == null || myData.Address == []" ``` The value still appears.
2014/08/27
[ "https://Stackoverflow.com/questions/25522904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2244072/" ]
null and [] are both false, a shorter and cleaner way ``` ng-show="myData.Address" ```
``` ng-hide="!myData.Address || !myData.Address.length" ```
25,522,904
I am trying to perform an ng-hide when a value is either null or an empty array (in Firebug, this appears as []). I can carry out the null via: ``` ng-hide="myData.Address == null" ``` However when i try: ``` ng-hide="myData.Address == null || myData.Address == []" ``` The value still appears.
2014/08/27
[ "https://Stackoverflow.com/questions/25522904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2244072/" ]
Try this: ``` ng-hide="myData.Address == null || myData.Address.length == 0" ```
null and [] are both false, a shorter and cleaner way ``` ng-show="myData.Address" ```
545,355
I have got dedicated server from one company and the ip address which they have assigned to this server is 87.106.124.113. I have also the my ip address pool which is 80.48.94.x/24. Is it possible to use this 80.48.94.x on that server? Could I e.g. create eth0:0 with address 80.48.94.2 and do some routing on server so...
2013/10/11
[ "https://serverfault.com/questions/545355", "https://serverfault.com", "https://serverfault.com/users/193532/" ]
If both IP ranges are available to the one NIC via vlan trunking, then yes. If not, then no.
Yes you can assign different IP with an alias. I had this setup, bought additional IP for server and those were completely different subnet, made aliases and all worked fine.
52,461,314
Why does the following not replace multiple empty lines with one? ``` $ cat some_random_text.txt foo bar test ``` and this does not work: ``` $ cat some_random_text.txt | perl -pe "s/\n+/\n/g" foo bar test ``` I am trying to replace the multiple new lines (i.e. empty lines) to a single empty...
2018/09/22
[ "https://Stackoverflow.com/questions/52461314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9055634/" ]
The reason it doesn't work is that `-p` tells perl to process the input line by line, and there's never more than one `\n` in a single line. Better idea: ``` perl -00 -lpe 1 ``` * `-00`: Enable paragraph mode (input records are terminated by any sequence of 2+ newlines). * `-l`: Enable autochomp mode (the input rec...
You are executing the following program: ``` LINE: while (<>) { s/\n+/\n/g; } continue { die "-p destination: $!\n" unless print $_; } ``` Since you are reading one line at at time, and since a line is a sequence of characters that aren't line feeds terminated by a line feed, your pattern will never match more...
52,461,314
Why does the following not replace multiple empty lines with one? ``` $ cat some_random_text.txt foo bar test ``` and this does not work: ``` $ cat some_random_text.txt | perl -pe "s/\n+/\n/g" foo bar test ``` I am trying to replace the multiple new lines (i.e. empty lines) to a single empty...
2018/09/22
[ "https://Stackoverflow.com/questions/52461314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9055634/" ]
You are executing the following program: ``` LINE: while (<>) { s/\n+/\n/g; } continue { die "-p destination: $!\n" unless print $_; } ``` Since you are reading one line at at time, and since a line is a sequence of characters that aren't line feeds terminated by a line feed, your pattern will never match more...
Given: ``` $ echo "$txt" foo bar test ``` You can use `sed` to reduce the runs of blank lines to a single `\n`: ``` $ echo "$txt" | sed '/^$/N;/^\n$/D' foo bar test ``` Even easier, you can use `cat -s`: ``` $ echo "$txt" | cat -s # same output ``` In `perl` the idiomatic 1 line...
52,461,314
Why does the following not replace multiple empty lines with one? ``` $ cat some_random_text.txt foo bar test ``` and this does not work: ``` $ cat some_random_text.txt | perl -pe "s/\n+/\n/g" foo bar test ``` I am trying to replace the multiple new lines (i.e. empty lines) to a single empty...
2018/09/22
[ "https://Stackoverflow.com/questions/52461314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9055634/" ]
The reason it doesn't work is that `-p` tells perl to process the input line by line, and there's never more than one `\n` in a single line. Better idea: ``` perl -00 -lpe 1 ``` * `-00`: Enable paragraph mode (input records are terminated by any sequence of 2+ newlines). * `-l`: Enable autochomp mode (the input rec...
Given: ``` $ echo "$txt" foo bar test ``` You can use `sed` to reduce the runs of blank lines to a single `\n`: ``` $ echo "$txt" | sed '/^$/N;/^\n$/D' foo bar test ``` Even easier, you can use `cat -s`: ``` $ echo "$txt" | cat -s # same output ``` In `perl` the idiomatic 1 line...
10,807
There are many hechsheirim in today's world, but unfortunately, not everyone considers all of them to be on par with their standards. Nonetheless, I am assuming (and you may correct me if I'm wrong) that certain certifications are stringent enough to be considered acceptable by all. What are examples of such certifyin...
2011/10/24
[ "https://judaism.stackexchange.com/questions/10807", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/128/" ]
"and you may correct me if I'm wrong" You are wrong. No agency is universally accepted. Period. (If you meant to ask for agencies that are widely accepted, just "not by all", then that is an entirely different question, and depends on many factors, most practically geography, as some of the other answers indicate)
If you really want to cover as many bases as possible, it would be best to have a solid national hechsher (such as OU) **plus** one of the top-tier "heimishe" hechsheirim. A few that are very well-respected are the Volover Rav and his brother the Nirbatur Rav (in Brooklyn), and Rav Westheim (in England). The Badatz Eid...
10,807
There are many hechsheirim in today's world, but unfortunately, not everyone considers all of them to be on par with their standards. Nonetheless, I am assuming (and you may correct me if I'm wrong) that certain certifications are stringent enough to be considered acceptable by all. What are examples of such certifyin...
2011/10/24
[ "https://judaism.stackexchange.com/questions/10807", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/128/" ]
If you really want to cover as many bases as possible, it would be best to have a solid national hechsher (such as OU) **plus** one of the top-tier "heimishe" hechsheirim. A few that are very well-respected are the Volover Rav and his brother the Nirbatur Rav (in Brooklyn), and Rav Westheim (in England). The Badatz Eid...
I've heard of people in Israel who've insisted on everything being under "Rabbi Rubin's hechsher." Afraid I don't know a lot more about that.
10,807
There are many hechsheirim in today's world, but unfortunately, not everyone considers all of them to be on par with their standards. Nonetheless, I am assuming (and you may correct me if I'm wrong) that certain certifications are stringent enough to be considered acceptable by all. What are examples of such certifyin...
2011/10/24
[ "https://judaism.stackexchange.com/questions/10807", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/128/" ]
If you really want to cover as many bases as possible, it would be best to have a solid national hechsher (such as OU) **plus** one of the top-tier "heimishe" hechsheirim. A few that are very well-respected are the Volover Rav and his brother the Nirbatur Rav (in Brooklyn), and Rav Westheim (in England). The Badatz Eid...
The Chicago CRC gives out a card and has a website of Hechsherim they accept. Although this list includes Hechsherim that accept Cholov Stam and other Kulos, it is a good place to start. <http://www.crcweb.org/agency_list.php>
10,807
There are many hechsheirim in today's world, but unfortunately, not everyone considers all of them to be on par with their standards. Nonetheless, I am assuming (and you may correct me if I'm wrong) that certain certifications are stringent enough to be considered acceptable by all. What are examples of such certifyin...
2011/10/24
[ "https://judaism.stackexchange.com/questions/10807", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/128/" ]
"and you may correct me if I'm wrong" You are wrong. No agency is universally accepted. Period. (If you meant to ask for agencies that are widely accepted, just "not by all", then that is an entirely different question, and depends on many factors, most practically geography, as some of the other answers indicate)
I've heard of people in Israel who've insisted on everything being under "Rabbi Rubin's hechsher." Afraid I don't know a lot more about that.
10,807
There are many hechsheirim in today's world, but unfortunately, not everyone considers all of them to be on par with their standards. Nonetheless, I am assuming (and you may correct me if I'm wrong) that certain certifications are stringent enough to be considered acceptable by all. What are examples of such certifyin...
2011/10/24
[ "https://judaism.stackexchange.com/questions/10807", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/128/" ]
"and you may correct me if I'm wrong" You are wrong. No agency is universally accepted. Period. (If you meant to ask for agencies that are widely accepted, just "not by all", then that is an entirely different question, and depends on many factors, most practically geography, as some of the other answers indicate)
The Chicago CRC gives out a card and has a website of Hechsherim they accept. Although this list includes Hechsherim that accept Cholov Stam and other Kulos, it is a good place to start. <http://www.crcweb.org/agency_list.php>
121,150
I am a software developer, currently working at company **X**. Me and the rest of my team are spinning off to make a freelancer partnership (I think it's called an agency in other parts of the world). During our time at company **X**, we have worked for a number of clients, developing a number of software products for...
2018/10/19
[ "https://workplace.stackexchange.com/questions/121150", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/93613/" ]
I would advise against your current approach and instead emphasize your background and expertise in a different way. The problem with your current approach is that you imply that your **company** has expertise in providing clients with solutions. However, depending on the size of your team and the size of potential cl...
Personally, I think it is better to be safe then sorry, so don't include them right now. However, take my opinion with a grain of salt as I haven't ever started a company
121,150
I am a software developer, currently working at company **X**. Me and the rest of my team are spinning off to make a freelancer partnership (I think it's called an agency in other parts of the world). During our time at company **X**, we have worked for a number of clients, developing a number of software products for...
2018/10/19
[ "https://workplace.stackexchange.com/questions/121150", "https://workplace.stackexchange.com", "https://workplace.stackexchange.com/users/93613/" ]
I would advise against your current approach and instead emphasize your background and expertise in a different way. The problem with your current approach is that you imply that your **company** has expertise in providing clients with solutions. However, depending on the size of your team and the size of potential cl...
> > Is this immoral? Is this illegal? > > > You and your team get to decide what your "corporate morals" will be. I personally don't see anything wrong with the way you wrote, but your company should come to a consensus on the issue and follow that. Make sure everyone in your "freelance partnership" is comfortab...
34,809,798
I'm trying to use "Component approach" from Angular2 in Angular1, and my directives should send properties to each other. I've written code like this: Parent directive ``` angular .module('myModule') .controller('parentController', ParentController) .directive('parentDirective', () => { return { ...
2016/01/15
[ "https://Stackoverflow.com/questions/34809798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4229810/" ]
I think I found an answer to my question: In the file classify\_image.py that classifies the image using the pre trained model (NN + classifier), I made the below mentioned changes (statements with #ADDED written next to them): ``` def run_inference_on_image(image): """Runs inference on an image. Args: image...
Your problem sounds similar to this [visual search project](https://github.com/AKSHAYUBHAT/VisualSearchServer)
34,809,798
I'm trying to use "Component approach" from Angular2 in Angular1, and my directives should send properties to each other. I've written code like this: Parent directive ``` angular .module('myModule') .controller('parentController', ParentController) .directive('parentDirective', () => { return { ...
2016/01/15
[ "https://Stackoverflow.com/questions/34809798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4229810/" ]
I think I found an answer to my question: In the file classify\_image.py that classifies the image using the pre trained model (NN + classifier), I made the below mentioned changes (statements with #ADDED written next to them): ``` def run_inference_on_image(image): """Runs inference on an image. Args: image...
Tensorflow now has a nice tutorial on how to get the activations before the final layer and retrain a new classification layer with different categories: <https://www.tensorflow.org/versions/master/how_tos/image_retraining/> The example code: <https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/im...
34,809,798
I'm trying to use "Component approach" from Angular2 in Angular1, and my directives should send properties to each other. I've written code like this: Parent directive ``` angular .module('myModule') .controller('parentController', ParentController) .directive('parentDirective', () => { return { ...
2016/01/15
[ "https://Stackoverflow.com/questions/34809798", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4229810/" ]
Tensorflow now has a nice tutorial on how to get the activations before the final layer and retrain a new classification layer with different categories: <https://www.tensorflow.org/versions/master/how_tos/image_retraining/> The example code: <https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/im...
Your problem sounds similar to this [visual search project](https://github.com/AKSHAYUBHAT/VisualSearchServer)
34,281,990
I want to pause when an notification popup from the top of screen or when a call come in. I use AVPlayer/AVPlayerItem. How to implement it?
2015/12/15
[ "https://Stackoverflow.com/questions/34281990", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2259957/" ]
``` (function($) { $.fn.serializefiles = function() { var obj = $(this); var form_data = new FormData(this[0]); $.each($(obj).find('input[type="file[]"]'), function(i, tag) { $.each($(tag)[0].files, function(i, file) { form_data.append(tag.name, file); ...
Try this simple function: ``` submitHandler: function(form){ formdata = new FormData(form); $.ajax({ url: "process.php", type: 'POST', //data: $(this).serialize(), data: formdata, cache: false, ...
10,642,290
I have two sprites, one "tracks" and follows the other. I already have that working, so a fish will follow a bubble around the screen (it will rotate towards the direction as well as move toward it). Here's a diagram on how it works and what I want to happen: ![enter image description here](https://i.stack.imgur.com/F...
2012/05/17
[ "https://Stackoverflow.com/questions/10642290", "https://Stackoverflow.com", "https://Stackoverflow.com/users/339946/" ]
You've got the seeds of a solution already in your division-by-zero check. You want the fish to stop moving at a longer distance, so change the condition on `d`. Replace your first if/else with: ``` if (d > radiusOfBubblePlusRadiusOfFish){ fish.position = ccp( fish.position.x + dx/d * v *dt, ...
Don't calculate the fish position as the centre of the fish, rather the position in front of the mouth. So move until fish.position + offset = bubble.position.
200,960
Let $G$ be an algebraic group, and $G\_{Id}$ the connected component of the identity. Then $G\_{Id}$ is a normal subgroup of $G$ and $G/G\_{Id}$ is the component group of $G$. Let $G\_{c}\subset G$ be another connected component of $G$. Is is possible to define a group structure on $G\_c$? Assume we know that for any...
2015/03/24
[ "https://mathoverflow.net/questions/200960", "https://mathoverflow.net", "https://mathoverflow.net/users/-1/" ]
Each connected component is (in a natural way) a torsor under the identity component. The choice of a rational point (if there is one) defines an isomorphism with the identity component, and makes the component into an algebraic group.
To expand my short comments, it's possible (though not usually interesting) to place a group structure on any component $G\_c$ using an obvious bijection between this set and the connected component of the identity. Concerning the second question, look at a maximal torus $T$ in a connected simple algebraic group such...
51,470,341
I have created a view which assigns a number to an alphabetical grade and then gets an average from two values and then the average needs to be rounded to 0 decimal values. Below is the code where i am trying to round off the figure ``` ROUND(CAST(AVG(CASE Result WHEN 'O' THEN 5 WHEN 'H' THEN 4 WHEN 'P' THEN 3 WHE...
2018/07/23
[ "https://Stackoverflow.com/questions/51470341", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9287744/" ]
Yes, its name is **function composition**, one of the basic "patterns" in functional programming (or in any language, where functions are the first-class citizens, which is true for JavaScript also). You can take a look at [`compose` from `redux`](https://redux.js.org/api-reference/compose) Or, IMO it is better to, p...
What about using JavaScript decorators? ``` @connect(stateMapper, dispatchMapper) @withStyles(myStyles) export default class App extends Component { ... ``` There’s a fantastic library called [Core Decorators](https://www.npmjs.com/package/core-decorators) that provides some very useful common decorators that ar...
51,429,617
I am new to HTTP requests (GET, POST, PUT, ETC.) and I am having some issues understanding the "anatomy" of these procedures. What exactly is the difference between the **body and the data**? Are they the same thing? Or are **headers the same thing as the param**? When authentication takes place, are the **username an...
2018/07/19
[ "https://Stackoverflow.com/questions/51429617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9661478/" ]
For a full and correct understanding of these questions, [RFC2616](https://www.rfc-editor.org/rfc/rfc2616) recommend by Remy Lebeau is worth reading. > > What exactly is the difference between the body and the data? > > > If you are reading some blog, the body (HTTP body) is be used to transfer data (probably in ...
* data is not a HTTP specific term. data can be anything. * a 'parameter' is also not a HTTP specific term. Many web frameworks might consider parameters everything behind the `?` in a url, but this is not an absolute truth. * usernames and passwords sometimes appear in the request body, sometimes in headers. In web ap...
51,429,617
I am new to HTTP requests (GET, POST, PUT, ETC.) and I am having some issues understanding the "anatomy" of these procedures. What exactly is the difference between the **body and the data**? Are they the same thing? Or are **headers the same thing as the param**? When authentication takes place, are the **username an...
2018/07/19
[ "https://Stackoverflow.com/questions/51429617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9661478/" ]
Based on [This article](https://newbedev.com/what-is-the-difference-between-http-parameters-and-http-headers) and some points of others, you could find out about differences between ***HTTP header*** & ***HTTP parameter*** ,and and also ***Body***: **Header:** * meta data about the request * HTTP Headers are NOT part...
* data is not a HTTP specific term. data can be anything. * a 'parameter' is also not a HTTP specific term. Many web frameworks might consider parameters everything behind the `?` in a url, but this is not an absolute truth. * usernames and passwords sometimes appear in the request body, sometimes in headers. In web ap...
51,429,617
I am new to HTTP requests (GET, POST, PUT, ETC.) and I am having some issues understanding the "anatomy" of these procedures. What exactly is the difference between the **body and the data**? Are they the same thing? Or are **headers the same thing as the param**? When authentication takes place, are the **username an...
2018/07/19
[ "https://Stackoverflow.com/questions/51429617", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9661478/" ]
Based on [This article](https://newbedev.com/what-is-the-difference-between-http-parameters-and-http-headers) and some points of others, you could find out about differences between ***HTTP header*** & ***HTTP parameter*** ,and and also ***Body***: **Header:** * meta data about the request * HTTP Headers are NOT part...
For a full and correct understanding of these questions, [RFC2616](https://www.rfc-editor.org/rfc/rfc2616) recommend by Remy Lebeau is worth reading. > > What exactly is the difference between the body and the data? > > > If you are reading some blog, the body (HTTP body) is be used to transfer data (probably in ...