qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
50,208,502
I had an Angular app with `dev, prod & QA` environments. I build it by ng build --env=QA After building, How do I know, that it is in QA environment without deploying it to the server?
2018/05/07
[ "https://Stackoverflow.com/questions/50208502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7498614/" ]
We can find it in dist/main.bundle.js with variable environment. So, by this, we know which environment it is. ``` var environment = { production: true, envName: 'QA' }; ```
You can just import environment anywhere ``` import { environment } from './path/to/env'; ``` ... And later use it like so ``` console.log(environment.envName); ```
50,208,502
I had an Angular app with `dev, prod & QA` environments. I build it by ng build --env=QA After building, How do I know, that it is in QA environment without deploying it to the server?
2018/05/07
[ "https://Stackoverflow.com/questions/50208502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7498614/" ]
We can find it in dist/main.bundle.js with variable environment. So, by this, we know which environment it is. ``` var environment = { production: true, envName: 'QA' }; ```
First, add a new property to each of the `environment.{env}.ts` files. ``` export const environment = { production: false, envName: 'dev' }; ``` Then in the `myapp.component.ts` file import settings, and set the binding. ``` import { environment } from './environment'; export class MyappAppComponent { en...
50,637,672
I want to fetch data(the images in each post) stored in <https://www.instagram.com/explore/tags/selfie/?__a=1>, but all I get when I decode and var\_dump this is NULL. ``` $obj = json_decode("https://www.instagram.com/explore/tags/selfie/?__a=1", true); var_dump($obj); ```
2018/06/01
[ "https://Stackoverflow.com/questions/50637672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5909288/" ]
Before decoding json you have to first fetch api response. ``` $obj = json_decode(file_get_contents("https://www.instagram.com/explore/tags/selfie/?__a=1"), true); ```
The argument to the function json\_decode(), $html must be plaintext/string. This should work. ``` $url = "https://www.instagram.com/explore/tags/selfie/?__a=1"; $html = file_get_contents($url); $obj = json_decode($html,true); var_dump($obj); ``` See this in action [here](https://repl.it/repls/UnselfishBlindProced...
50,637,672
I want to fetch data(the images in each post) stored in <https://www.instagram.com/explore/tags/selfie/?__a=1>, but all I get when I decode and var\_dump this is NULL. ``` $obj = json_decode("https://www.instagram.com/explore/tags/selfie/?__a=1", true); var_dump($obj); ```
2018/06/01
[ "https://Stackoverflow.com/questions/50637672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5909288/" ]
You're trying to `json_decode` the STRING `https://www.instagram.com/explore/tags/selfie/?__a=1` What you need to do is to fetch the URL first. I suggest using [`file_get_contents`](http://php.net/manual/en/function.file-get-contents.php), which takes a URL and returns the contents at the end of that URL. Try this:...
The argument to the function json\_decode(), $html must be plaintext/string. This should work. ``` $url = "https://www.instagram.com/explore/tags/selfie/?__a=1"; $html = file_get_contents($url); $obj = json_decode($html,true); var_dump($obj); ``` See this in action [here](https://repl.it/repls/UnselfishBlindProced...
39,424,559
I quick started with Redis on Windows PC with ``` docker run -p 6379:6379 redis ``` (Redis does not have Windows distribution, [fork for Windows](https://github.com/MSOpenTech/redis) is not the latest version ) ``` 1:C 10 Sep 08:17:03.635 # Warning: no config file specified, using the default config. In order to sp...
2016/09/10
[ "https://Stackoverflow.com/questions/39424559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482717/" ]
As you mentioned (in the comments), redis bundled their image with `protected-mode` set to yes ([see here](http://redis.io/topics/security)). **How to go around protected-mode** * 1) Disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the s...
Thanks to Alex answer and comment in <https://github.com/docker-library/redis/issues/74> I was able to connect to the Redis using full IP 192.168.99.100:6379 Note that latest 3.2 image has protected mode disabled <https://github.com/docker-library/redis/issues/75>
39,424,559
I quick started with Redis on Windows PC with ``` docker run -p 6379:6379 redis ``` (Redis does not have Windows distribution, [fork for Windows](https://github.com/MSOpenTech/redis) is not the latest version ) ``` 1:C 10 Sep 08:17:03.635 # Warning: no config file specified, using the default config. In order to sp...
2016/09/10
[ "https://Stackoverflow.com/questions/39424559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482717/" ]
As you mentioned (in the comments), redis bundled their image with `protected-mode` set to yes ([see here](http://redis.io/topics/security)). **How to go around protected-mode** * 1) Disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the s...
Ran into a similar problem today. Using the redis container's IP address for the `JedisConnectionFactory` solved the issue for me. **Docker command:** ``` docker inspect --format '{{ .NetworkSettings.IPAddress }}' some-redis-instance ```
39,424,559
I quick started with Redis on Windows PC with ``` docker run -p 6379:6379 redis ``` (Redis does not have Windows distribution, [fork for Windows](https://github.com/MSOpenTech/redis) is not the latest version ) ``` 1:C 10 Sep 08:17:03.635 # Warning: no config file specified, using the default config. In order to sp...
2016/09/10
[ "https://Stackoverflow.com/questions/39424559", "https://Stackoverflow.com", "https://Stackoverflow.com/users/482717/" ]
Ran into a similar problem today. Using the redis container's IP address for the `JedisConnectionFactory` solved the issue for me. **Docker command:** ``` docker inspect --format '{{ .NetworkSettings.IPAddress }}' some-redis-instance ```
Thanks to Alex answer and comment in <https://github.com/docker-library/redis/issues/74> I was able to connect to the Redis using full IP 192.168.99.100:6379 Note that latest 3.2 image has protected mode disabled <https://github.com/docker-library/redis/issues/75>
49,255,874
trying executing this code on the group with joins but its giving me error that its not a group by statement code below ``` SELECT sum (quantity), customers.customer_name, states.state_name, regions.region_name FROM sales JOIN customers ON sales.customer_id = customers....
2018/03/13
[ "https://Stackoverflow.com/questions/49255874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8217437/" ]
``` dat <- data.frame(VAR1=c(0,1,0,1,0,0,1,1,0), VAR2=c(1,1,0,1,0,0,1,0,1), VAR3=c(0,1,1,1,1,0,1,1,1)) dat1 <- dat[,names(sort(colSums(dat), decreasing = TRUE))] dat1 VAR3 VAR2 VAR1 1 0 1 0 2 1 1 1 3 1 0 0 4 1 1 1 5 1 0 0 6 0 0 0 7 ...
``` dat[,names(sort(colSums(dat), decreasing = T))] ``` colSums gives sums of all columns of the *dat* ``` > colSums(dat) VAR1 VAR2 VAR3 4 5 7 ``` sort it in a decreasing order of sum value ``` > sort(colSums(dat), decreasing = T) VAR3 VAR2 VAR1 7 5 4 ``` Get the names in this exact order and...
65,987
A few days back, I went for a riverside shoot with my Nikon D5300. Unfortunately, moderate rain soon started. I noticed a few photographers, probably with professional grade cameras, were daring enough to shoot the landscape in such weather. The scenic beauty around at that moment was mesmerizing, but I missed capturin...
2015/08/02
[ "https://photo.stackexchange.com/questions/65987", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/39813/" ]
The D5300 is an entry-level DSLR and is not weatherproof at all. As most cameras, it will handle a few drops of water or snow but you should not let it get wet. Weatherproof DSLRs and mirrorless exist and they will be able to stand up to strong rain without issues as long as a weatherproof lens is also attached. All c...
Not sure if it is or not but I took my D5300 up Snowdon while it was raining and hailing, camera got drenched but it is still in good condition
65,987
A few days back, I went for a riverside shoot with my Nikon D5300. Unfortunately, moderate rain soon started. I noticed a few photographers, probably with professional grade cameras, were daring enough to shoot the landscape in such weather. The scenic beauty around at that moment was mesmerizing, but I missed capturin...
2015/08/02
[ "https://photo.stackexchange.com/questions/65987", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/39813/" ]
The D5300 is an entry-level DSLR and is not weatherproof at all. As most cameras, it will handle a few drops of water or snow but you should not let it get wet. Weatherproof DSLRs and mirrorless exist and they will be able to stand up to strong rain without issues as long as a weatherproof lens is also attached. All c...
[![Frost bite](https://i.stack.imgur.com/n87kB.jpg)](https://i.stack.imgur.com/n87kB.jpg) Above, you see frost on my camera. It is okay to use your camera in moderate rain and just dry off the camera well before the next use.
65,987
A few days back, I went for a riverside shoot with my Nikon D5300. Unfortunately, moderate rain soon started. I noticed a few photographers, probably with professional grade cameras, were daring enough to shoot the landscape in such weather. The scenic beauty around at that moment was mesmerizing, but I missed capturin...
2015/08/02
[ "https://photo.stackexchange.com/questions/65987", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/39813/" ]
The D5300 is an entry-level DSLR and is not weatherproof at all. As most cameras, it will handle a few drops of water or snow but you should not let it get wet. Weatherproof DSLRs and mirrorless exist and they will be able to stand up to strong rain without issues as long as a weatherproof lens is also attached. All c...
The most authentic information available for the D5300 is the official manual. Here is the link: <http://download.nikonimglib.com/archive2/BTcII00t9KUv024jW9c13oRqeg68/D5300VRRM_(En)02.pdf> Specifically, in the "Caring for the Camera" section, there are several important indicators as to how weatherproof your camera ...
65,987
A few days back, I went for a riverside shoot with my Nikon D5300. Unfortunately, moderate rain soon started. I noticed a few photographers, probably with professional grade cameras, were daring enough to shoot the landscape in such weather. The scenic beauty around at that moment was mesmerizing, but I missed capturin...
2015/08/02
[ "https://photo.stackexchange.com/questions/65987", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/39813/" ]
Not sure if it is or not but I took my D5300 up Snowdon while it was raining and hailing, camera got drenched but it is still in good condition
[![Frost bite](https://i.stack.imgur.com/n87kB.jpg)](https://i.stack.imgur.com/n87kB.jpg) Above, you see frost on my camera. It is okay to use your camera in moderate rain and just dry off the camera well before the next use.
65,987
A few days back, I went for a riverside shoot with my Nikon D5300. Unfortunately, moderate rain soon started. I noticed a few photographers, probably with professional grade cameras, were daring enough to shoot the landscape in such weather. The scenic beauty around at that moment was mesmerizing, but I missed capturin...
2015/08/02
[ "https://photo.stackexchange.com/questions/65987", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/39813/" ]
The most authentic information available for the D5300 is the official manual. Here is the link: <http://download.nikonimglib.com/archive2/BTcII00t9KUv024jW9c13oRqeg68/D5300VRRM_(En)02.pdf> Specifically, in the "Caring for the Camera" section, there are several important indicators as to how weatherproof your camera ...
[![Frost bite](https://i.stack.imgur.com/n87kB.jpg)](https://i.stack.imgur.com/n87kB.jpg) Above, you see frost on my camera. It is okay to use your camera in moderate rain and just dry off the camera well before the next use.
9,836,552
I need to perform some code when the user stop scrolling the picker, in other way, when the picker stop scrolling. The logic i want to follow is, once the picker stop scrolling, i get the current value and i do some database queries basing on that value. In the picker view documentation, i don't see a delegate method ...
2012/03/23
[ "https://Stackoverflow.com/questions/9836552", "https://Stackoverflow.com", "https://Stackoverflow.com/users/734308/" ]
whenever you scroll the picker view, didSelect delegate method call at the end of scroll ``` - (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { NSLog(@"Selected %i. ", row); /// do it here your queries } ``` try with above example and check your consol...
The delegate class has a method [`pickerView:didSelectRow:inComponent:`](http://developer.apple.com/library/ios/documentation/uikit/reference/UIPickerViewDelegate_Protocol/Reference/UIPickerViewDelegate.html#//apple_ref/occ/intfm/UIPickerViewDelegate/pickerView%3adidSelectRow%3ainComponent%3a), that you can use to dete...
32,962,528
``` #include <bits/stdc++.h> using namespace std; #define HODOR long long int #define INF 1234567890 #define rep(i, a, b) for(int i = (a); i < (b); ++i) #define dwn(i, a, b) for(int i = (a); i >= (b); --i) #define REP(c, it) for( typeof( (c).begin()) it = (c).begin(); it != (c).end(); ++it) #define...
2015/10/06
[ "https://Stackoverflow.com/questions/32962528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4914678/" ]
You could pass in as a pointer to a pointer to int like this ``` int MaxPath(int** arr,int n) ``` but for this to work you would have to declare int arr[n][n] differently ``` int main() { int t,n; inp(t); while(t--) { inp(n); int** arr = new int*[n]; for (int i = 0; i < n; i+...
The compiler needs to be able in MaxPath to calculate the address where the data item is stored. This is only possible if it knows the width of the matrix. One of the simplest solutions is to create some kind of matrix class that implements a two- (or multi-) dimensional type on top of vector. It looks like this: ``...
61,936,858
**this is my dataframe:** ``` c_id fname age salary lname 1 abc 21 21.22 yyy 2 def 41 23.4 zzz ``` i need to display the position of the column name with respect to datatype. so my output should be: ``` **FOR INT:** col_name position c_id 0 age 2 **for str:** col_name po...
2020/05/21
[ "https://Stackoverflow.com/questions/61936858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13343231/" ]
IIUC, you can just create a dataframe from the dtypes and reset the index to get the positional index number. ``` col_df = ( pd.DataFrame(df.dtypes, columns=["DataType"]) .rename_axis("Column") .reset_index() .rename_axis("Position") ) Column DataType Position 0 c_id int64 1 ...
You could use .dtypes method on DataFrame ``` df.dtypes >>> Name object Age int64 City object Marks float64 dtype: object df.dtypes['Name'] >>> object ```
45,806,172
what is the best way to check whether a stack exists using the AWS Java SDK, given a stack name? I've tried the below code based on - <https://github.com/aws/aws-sdk-java/blob/master/src/samples/AwsCloudFormation/CloudFormationSample.java> ``` DescribeStacksRequest wait = new DescribeStacksRequest(); wait.set...
2017/08/21
[ "https://Stackoverflow.com/questions/45806172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2817943/" ]
In case someone else is looking for a quick and dirty solution, this works, ``` //returns true if stack exists public boolean stackExists(AmazonCloudFormation awsCFTClient, String stackName) throws Exception{ DescribeStacksRequest describe = new DescribeStacksRequest(); describe.setStackName(stackName); //...
Found a slightly better way to do it but with a few remarks: * aws java sdk 2.0 is used here <https://github.com/aws/aws-sdk-java-v2> * in the example below, you see kotlin syntax `client.listStacks().stackSummaries().any{ it.stackName() == stackName }` In Java you can simply replace `any` method `anyMatch`. Accord...
18,966,169
Is it possible to show a right click menu on table items with SWT? The menu would be different for every item, e.g for some rows, some of the menu items would be enabled, for others, they would be disabled. So, each row would need its own menu, and when setting up the menu i'd need a way to identify which row I was wor...
2013/09/23
[ "https://Stackoverflow.com/questions/18966169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2790209/" ]
Listening for `SWT.MouseDown`, as suggested by @user4793956, is completely useless. The context menu is always brought up, no need to call `setVisible(true)`. Quite contrary, you need to cancel the `SWT.MenuDetect` event, if you do **not** want the menu to pop up. This works for me: ``` // Create context menu Menu me...
``` table = new DynamicTable(shell, SWT.BORDER | SWT.FULL_SELECTION); table.addMenuDetectListener(new MenuDetectListener() { @Override public void menuDetected(MenuDetectEvent e) { int index = table.getSelectionIndex(); if (index == -1) ...
18,966,169
Is it possible to show a right click menu on table items with SWT? The menu would be different for every item, e.g for some rows, some of the menu items would be enabled, for others, they would be disabled. So, each row would need its own menu, and when setting up the menu i'd need a way to identify which row I was wor...
2013/09/23
[ "https://Stackoverflow.com/questions/18966169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2790209/" ]
Listening for `SWT.MouseDown`, as suggested by @user4793956, is completely useless. The context menu is always brought up, no need to call `setVisible(true)`. Quite contrary, you need to cancel the `SWT.MenuDetect` event, if you do **not** want the menu to pop up. This works for me: ``` // Create context menu Menu me...
Without using a DynamicTable: ``` Menu contextMenu = new Menu(table); table.setMenu(contextMenu); MenuItem mItem1 = new MenuItem(contextMenu, SWT.None); mItem1.setText("Menu Item Test."); table.addListener(SWT.MouseDown, new Listener(){ @Override public void handleEvent(Event even...
14,326,604
When a user slides the jQuery Slider over, it effects each image. How do I only get the images pertaining to that slider to change? I've tried: `$(this).closest('img.down')` and `$(this).siblings('img.down')` ``` $("#slider").slider({ value:50, min: 0, max: 100, step: 50, slide: function( event, ui ) { ...
2013/01/14
[ "https://Stackoverflow.com/questions/14326604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/908392/" ]
You need to make a change to your markup, ***you cannot have three items in a page with the same id***. You can make it ``` class="slider" ``` Move the initialization of the CSS outside of the function then traverse the markup to get the correct image: ``` $('img.up, img.down').css('opacity','.4'); $(".slider").sli...
`siblings` works fine for me: <http://jsfiddle.net/psybJ/8/> ``` $("#slider").slider({ value: 50, min: 0, max: 100, step: 50, slide: function(event, ui) { $(this).siblings('img.up, img.down').css('opacity', '.4'); if(ui.value >= 51) { $(this).siblings('img.up').css('opac...
14,326,604
When a user slides the jQuery Slider over, it effects each image. How do I only get the images pertaining to that slider to change? I've tried: `$(this).closest('img.down')` and `$(this).siblings('img.down')` ``` $("#slider").slider({ value:50, min: 0, max: 100, step: 50, slide: function( event, ui ) { ...
2013/01/14
[ "https://Stackoverflow.com/questions/14326604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/908392/" ]
You need to make a change to your markup, ***you cannot have three items in a page with the same id***. You can make it ``` class="slider" ``` Move the initialization of the CSS outside of the function then traverse the markup to get the correct image: ``` $('img.up, img.down').css('opacity','.4'); $(".slider").sli...
You really should replace "id" with "class" for your sliders. if you do that then this code will work fine: ``` $(".slider").slider({ value:50, min: 0, max: 100, step: 50, slide: function( event, ui ) { var parent = $(this).parent(); if (ui.value >= 51) { $('img.up',parent).css('opacity','.8')...
396,799
I am trying to set up a part of our network as a linux cluster. Since its a little educational for me, I choose using MAAS with JuJu. However there are some questions that boggle my mind and I was hoping that someone could clarify that for me. The linux cluster I'm about to set up consists of 10 machines. Half of it D...
2013/12/28
[ "https://askubuntu.com/questions/396799", "https://askubuntu.com", "https://askubuntu.com/users/229480/" ]
Maybe if you let install of [Juju GUI](https://juju.ubuntu.com/docs/howto-gui-management.html) to provide adequately more what type of network balancing you need then you could find your answer faster. [**Using Juju with GUI**](https://juju.ubuntu.com/docs/howto-gui-management.html) This advanced guides very close t...
Meanwhile I have a better understanding of how networking is arranged in maas and its pretty cool. So to answer my own question: I recommend against separating IPMI and PXE traffic. Its more efficient to just share the RAC traffic on eth0. All server can boot PXE default on eth0 too. Besides, you don't need an extra...
17,981,284
In this situation, I want to find all records that contain the name steve in one column and email@email.com in another. I know Im missing an operator, but i dont know which ``` SELECT firstname,lastname,middlename,company_name, primary_emailaddress,alternate_emailaddress,personal_addre...
2013/07/31
[ "https://Stackoverflow.com/questions/17981284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/135605/" ]
Ok, after a lot of searching. I answered my own question. I've discovered finding anything on the angular documentation is incredibly impossible, but sometimes, once it's found, it changes how you were thinking about your problem. I began here: <http://docs.angularjs.org/api/ng>.$location Which took me here: <http://...
You can change the display of the page using ng-show and ng-hide, these transitions won't reload the page. But I think the problem you're trying to solve is you want to be able to bookmark the page, be able to press refresh and get the page you want. I'd suggest implementing angular ui-router Which is great for switch...
17,981,284
In this situation, I want to find all records that contain the name steve in one column and email@email.com in another. I know Im missing an operator, but i dont know which ``` SELECT firstname,lastname,middlename,company_name, primary_emailaddress,alternate_emailaddress,personal_addre...
2013/07/31
[ "https://Stackoverflow.com/questions/17981284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/135605/" ]
I actually found a solution that I find a little more elegant for my application. The $locationChangeSuccess event is a bit of a brute force approach, but I found that checking the path allows us to avoid page reloads when the route path *template* is unchanged, but reloads the page when switching to a different route...
You can change the display of the page using ng-show and ng-hide, these transitions won't reload the page. But I think the problem you're trying to solve is you want to be able to bookmark the page, be able to press refresh and get the page you want. I'd suggest implementing angular ui-router Which is great for switch...
17,981,284
In this situation, I want to find all records that contain the name steve in one column and email@email.com in another. I know Im missing an operator, but i dont know which ``` SELECT firstname,lastname,middlename,company_name, primary_emailaddress,alternate_emailaddress,personal_addre...
2013/07/31
[ "https://Stackoverflow.com/questions/17981284", "https://Stackoverflow.com", "https://Stackoverflow.com/users/135605/" ]
Ok, after a lot of searching. I answered my own question. I've discovered finding anything on the angular documentation is incredibly impossible, but sometimes, once it's found, it changes how you were thinking about your problem. I began here: <http://docs.angularjs.org/api/ng>.$location Which took me here: <http://...
I actually found a solution that I find a little more elegant for my application. The $locationChangeSuccess event is a bit of a brute force approach, but I found that checking the path allows us to avoid page reloads when the route path *template* is unchanged, but reloads the page when switching to a different route...
63,678,928
Suppose a class MyClass implements an interface MyInterface, and it has its own instance method let's say foo(). When i create an instance of MyClass like this: ``` MyInterface myClass = new MyClass(); ``` The compiler wouldn't let me access its instance method without an explicit casting: ``` myClass.foo(); // Ca...
2020/08/31
[ "https://Stackoverflow.com/questions/63678928", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3554898/" ]
The *meaning* of the line `MyInterface myClass = new MyClass()` is, "Create a new `MyClass`, and then forget about all its features except those defined in the interface `MyInterface`." When you refer to "the compiler obviously knows myClass is an instance of MyClass," you're not actually correct: it's *not* the compi...
It might be of type `MyClass` but you are treating it as a `MyInterface`. When you do `A myVar = new B();` you only have access to whatever you can access in `A` even though `myVar`is of type `B`.
33,528,414
![Here's the Screenshot](https://i.stack.imgur.com/ldDO2.png) I am trying to override the OnLaunched() function in a Template 10 Windows Application, but the problem is that it is sealed in Template 10 BootStrapper class (which inherits from the Application class). Here's my method: ``` using Windows.UI.Xaml; ... ...
2015/11/04
[ "https://Stackoverflow.com/questions/33528414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5035469/" ]
Template 10 does not allow us to override OnLaunched() method. Instead we can override the OnInitializeAsync() and OnStartAsync() methods for this purpose. The reason is that Template 10 recommends us to use something called the Single Page Model, which is nothing but using a single instance of the Page class to put i...
You're trying to override OnLaunched in MyPage.xaml.cs and I'm pretty safe to assume that your MyPage class does not inherit from Application. So it does not have OnLaunched() method (at least not with that signature). What you need to do is override it in App.xaml.cs, as it's Application.OnLaunched(). App class, which...
17,996,678
I'm trying to find a structural break in my time series using the `breakpoints()` function (in the `strucchange` package). My goal is to find where is "knot" in my dataset. I'm looking for a procedure which would test all possible knots and choose the one who minimize an information criterion such AIC or BIC. `breakpoi...
2013/08/01
[ "https://Stackoverflow.com/questions/17996678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1967500/" ]
The 'strucchange' package seems designed to return discontinuous results. You may want to look at packages that are designed the way you imagine the result to be structured. The 'segmented' package is one such. ``` require(segmented) out.lm<-lm(y~date3,data=df) o<-segmented(out.lm, seg.Z= ~date3, psi=list(date3=c(-10...
A continuous piecewise linear fit is also called a linear spline, and can be fit with `bs` in the `splines` package (comes with base R). ``` lm(y ~ bs(x, deg=1, df, knots), ...) ``` The breakpoints are called knots, and you have to specify them via either the `knots` argument or the `df` argument (which chooses knot...
43,441,231
I have started working with flex box on React native, on CSS you should set the display to flex but on RN, this is set by default. What classifies a container object where you can set alignItems, justifyContent? Does it *only* need to be a view? or is every single component a potential container?
2017/04/16
[ "https://Stackoverflow.com/questions/43441231", "https://Stackoverflow.com", "https://Stackoverflow.com/users/457172/" ]
You need to do change in first for loop:- ``` for (i = 1; i < tr.length; i++) { // not start with 0 start with 1. ``` Means leave table `<thead><tr>` and then start searching in rest `<tr>`. Note:- check it and if you are facing any problem. I will create an example for you.
This can be easily achieved by putting the rows in a tbody, and changing the variabl;e `tr` selector. ```js $(document).ready(function(){ $('#search-attorneys').on('keyup', function(){ var input, filter, table, tr, td, i; input = $("#search-attorneys"); filter = $("#search-attorneys").val().toUpperCa...
86,788
How do I display a list of values $\{a\_1,a\_2,\ldots,a\_n\}$ in a two column format? > > `--------- > 1 | a_1 > 2 | a_2 > 3 | a_3 > ...... > n | a_n` > > > I tried using TableFormat but this doesn't display the row number.
2015/06/25
[ "https://mathematica.stackexchange.com/questions/86788", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/19923/" ]
**Update** `ciao`'s answer makes the most sense. ``` TableForm[a /@ Range[5], TableHeadings -> Automatic] ``` **Original Post** Try this. If your list of values is ``` a /@ Range[5] (* {a[1], a[2], a[3], a[4], a[5]} *) ``` then you can do something like ``` TableForm@Transpose[{Range[5], a /@ Range[5]}] ``` ...
``` Table[{n, Subscript[a, n]}, {n, 1, 5}] // TableForm ```
154,329
In Leetcode it states that my runtime is only faster than 38% all of submitted JavaScript solutions. Is there anything I can change to make it more efficient? ``` /** * @param {number} x * @param {number} y * @return {number} */ var hammingDistance = function(x, y) { var resultStr =( x^y); let count =0; ...
2017/02/03
[ "https://codereview.stackexchange.com/questions/154329", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/57142/" ]
A few things could be changed here, non of which I mention are optimisation however. Your solution is almost identical to the [example on the wiki page](https://en.wikipedia.org/wiki/Hamming_distance#Algorithm_example) where you can see hardware optimisations if supported, though the example does not apply to JavaScrip...
Your implementation (with bugs fixed as per the other answer) is very efficient for small Hamming distances, but the cost scales as the Hamming distance. To make it more efficient you should make it independent of the Hamming distance by [parallelising it](https://graphics.stanford.edu/~seander/bithacks.html#CountBitsS...
37,395,473
I am having trouble with some code that was given to me. It isn't concatenating the rows as it should be. I am pulling from 3 tables to select which rows to concatenate. I have a `Comment`, `WorkOrderT` and `WorkMaterial_nonFiltered` table. The `Comment` table, obviously, has comments and is linked to the `WorkMateri...
2016/05/23
[ "https://Stackoverflow.com/questions/37395473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2911241/" ]
I have ended up using pass through queries to a linked server. That is where the problem actually was. With the data coming back from the linked server. Once I figured that out I was able to get the results that I needed. Now I have a really long pass through query that uses the `for xml` and gives me the comments for ...
Explicitly ask for a text node within an element, rather than an element. ``` select wo.WOId as ID, (select distinct '; ' + c.comments as "text()" from working.Comment c where c.Instance_InstanceId = wm.id for xml path(''), type) as "MaterialComments" from ...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
You **can** write in PURE machine code manually **WITHOUT ASSEMBLY** Linux/ELF: <https://github.com/XlogicX/m2elf>. This is still a work in progress, I just started working on this yesterday. Source file for "Hello World" would look like this: ``` b8 21 0a 00 00 #moving "!\n" into eax a3 0c 10 00 06 #movin...
When targeting an embedded system you can make a binary image of the rom or ram that is strictly the instructions and associated data from the program. And often can write that binary into a flash/rom and run it. Operating systems want to know more than that, and developers often want to leave more than that in their ...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
The OS is not running the instructions, the CPU does (except if we're talking about a virtual machine OS, which do exist, I'm thinking about Forth or such things). The OS however does require some metainformation to know, that a file does in fact contain executable code, and how it expects its environment to look like....
When targeting an embedded system you can make a binary image of the rom or ram that is strictly the instructions and associated data from the program. And often can write that binary into a flash/rom and run it. Operating systems want to know more than that, and developers often want to leave more than that in their ...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
Everyone knows that the application we usually wrote is run on the operating system. And managed by it. It means that the operating system is run on the machine. So I think that is PURE machine code which you said. So, you need to study how an operating system works. Here is some NASM assembly code for a boot sector...
The OS is not running the instructions, the CPU does (except if we're talking about a virtual machine OS, which do exist, I'm thinking about Forth or such things). The OS however does require some metainformation to know, that a file does in fact contain executable code, and how it expects its environment to look like....
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
You **can** write in PURE machine code manually **WITHOUT ASSEMBLY** Linux/ELF: <https://github.com/XlogicX/m2elf>. This is still a work in progress, I just started working on this yesterday. Source file for "Hello World" would look like this: ``` b8 21 0a 00 00 #moving "!\n" into eax a3 0c 10 00 06 #movin...
It sounds like you're looking for the old [16-bit DOS `.COM` file format](http://en.wikipedia.org/wiki/COM_file). The bytes of a `.COM` file are loaded at offset 100h in the program segment (limiting them to a maximum size of 64k - 256 bytes), and the CPU simply started executing at offset 100h. There are no headers or...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
Real Machine Code ----------------- What you need to run the test: Linux x86 or x64 (in my case I am using Ubuntu x64) **Let's Start** This Assembly (x86) moves the value 666 into the eax register: ``` movl $666, %eax ret ``` Let's make the binary representation of it: Opcode **movl** (movl is a mov with operand...
The next program is an Hello World program I wrote in Machine Code 16 bit (intel 8086), If you want to know machine code, I suggest that you learn Assembly first, because every line of code in Assembly is converted to A code line in Machine Code. For well I know I am from the few people in the world, still programming ...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
Everyone knows that the application we usually wrote is run on the operating system. And managed by it. It means that the operating system is run on the machine. So I think that is PURE machine code which you said. So, you need to study how an operating system works. Here is some NASM assembly code for a boot sector...
It sounds like you're looking for the old [16-bit DOS `.COM` file format](http://en.wikipedia.org/wiki/COM_file). The bytes of a `.COM` file are loaded at offset 100h in the program segment (limiting them to a maximum size of 64k - 256 bytes), and the CPU simply started executing at offset 100h. There are no headers or...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
Everyone knows that the application we usually wrote is run on the operating system. And managed by it. It means that the operating system is run on the machine. So I think that is PURE machine code which you said. So, you need to study how an operating system works. Here is some NASM assembly code for a boot sector...
When targeting an embedded system you can make a binary image of the rom or ram that is strictly the instructions and associated data from the program. And often can write that binary into a flash/rom and run it. Operating systems want to know more than that, and developers often want to leave more than that in their ...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
The OS is not running the instructions, the CPU does (except if we're talking about a virtual machine OS, which do exist, I'm thinking about Forth or such things). The OS however does require some metainformation to know, that a file does in fact contain executable code, and how it expects its environment to look like....
This are nice responses, but why someone would want to do this might guide the answer better. I think the most important reason is to get full control of their machine, especially over its cache writing, for maximum performance, and prevent any OS from sharing the processor or virtualizing your code (thus slowing it do...
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
You **can** write in PURE machine code manually **WITHOUT ASSEMBLY** Linux/ELF: <https://github.com/XlogicX/m2elf>. This is still a work in progress, I just started working on this yesterday. Source file for "Hello World" would look like this: ``` b8 21 0a 00 00 #moving "!\n" into eax a3 0c 10 00 06 #movin...
On Windows--at least 32bit Windows--you can execute RAW INSTRUCTIONS using a .com file. For instance, if you take this string and save it in notepad with a .com extension: ``` X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* ``` It will print a string and set off your antivirus software.
5,267,988
I just need a hello world demo to see how machine code actually works. Though windows' **EXE** and linux' **ELF** is near machine code,but it's not **PURE** How can I write/execute **PURE** machine code?
2011/03/11
[ "https://Stackoverflow.com/questions/5267988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631505/" ]
You **can** write in PURE machine code manually **WITHOUT ASSEMBLY** Linux/ELF: <https://github.com/XlogicX/m2elf>. This is still a work in progress, I just started working on this yesterday. Source file for "Hello World" would look like this: ``` b8 21 0a 00 00 #moving "!\n" into eax a3 0c 10 00 06 #movin...
The next program is an Hello World program I wrote in Machine Code 16 bit (intel 8086), If you want to know machine code, I suggest that you learn Assembly first, because every line of code in Assembly is converted to A code line in Machine Code. For well I know I am from the few people in the world, still programming ...
1,651
I flagged many, but not all, of the comments on [this question](https://law.stackexchange.com/q/86530/46948) and [associated answer](https://law.stackexchange.com/a/86532/46948) as not needed/conversational. The flags were declined. They are mostly talking about the physical makeup of money, inflation and, whether one...
2022/11/23
[ "https://law.meta.stackexchange.com/questions/1651", "https://law.meta.stackexchange.com", "https://law.meta.stackexchange.com/users/46948/" ]
I also flagged the comments after seeing this post. My flag on this comment also got rejected: > > I once ran a pair of blue jeans through the cycles through which a > washing machine puts them and then found that I had left three > twenty-dollar bills in one of the pockets. That is my only experience > of money lau...
Handling of comments is increasingly arbitrary on LawSE, but users can help by being more reasonable and exercising some self-restraint when it comes to flagging. As [feetwet said very politely](https://law.meta.stackexchange.com/questions/1651/comments-that-are-conversational#comment3911_1651): Please err on the side ...
1,651
I flagged many, but not all, of the comments on [this question](https://law.stackexchange.com/q/86530/46948) and [associated answer](https://law.stackexchange.com/a/86532/46948) as not needed/conversational. The flags were declined. They are mostly talking about the physical makeup of money, inflation and, whether one...
2022/11/23
[ "https://law.meta.stackexchange.com/questions/1651", "https://law.meta.stackexchange.com", "https://law.meta.stackexchange.com/users/46948/" ]
We respond to flags ------------------- If you flag it, we look at it and we have to make a decision to delete or let them slide. There has been criticism in the past of heavy handedness in deleting comments ([How to deal with comments?](https://law.meta.stackexchange.com/questions/900/how-to-deal-with-comments)). Now...
Handling of comments is increasingly arbitrary on LawSE, but users can help by being more reasonable and exercising some self-restraint when it comes to flagging. As [feetwet said very politely](https://law.meta.stackexchange.com/questions/1651/comments-that-are-conversational#comment3911_1651): Please err on the side ...
24,366,091
We receive a file from an external provider. One of the columns contains a timestamp in the form "05/01/2014 09:25:41 AM EDT". I am trying to insert this into a TIMESTAMP WITH TIME ZONE column with the following SQL: `INSERT INTO table VALUES (to_timestamp_tz('05/01/2014 09:25:41 AM EDT', 'MM/DD/YYYY HH12:MI:SS AM TZR...
2014/06/23
[ "https://Stackoverflow.com/questions/24366091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3767403/" ]
> > Are they differ in anything other than the usage ? or Does the syntax and definitions also differ? > > > The language is the same. The environment is different. By "Core JavaScript," Flanagan is talking about *the language* and only the objects and functions defined by the [ECMAScript specification](http://ec...
* Server-sided: Runs on server (like Node.js) * Client-sided: Runs in browser * Core: The set of functionality available to all javascript engines
24,366,091
We receive a file from an external provider. One of the columns contains a timestamp in the form "05/01/2014 09:25:41 AM EDT". I am trying to insert this into a TIMESTAMP WITH TIME ZONE column with the following SQL: `INSERT INTO table VALUES (to_timestamp_tz('05/01/2014 09:25:41 AM EDT', 'MM/DD/YYYY HH12:MI:SS AM TZR...
2014/06/23
[ "https://Stackoverflow.com/questions/24366091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3767403/" ]
> > Are they differ in anything other than the usage ? or Does the syntax and definitions also differ? > > > The language is the same. The environment is different. By "Core JavaScript," Flanagan is talking about *the language* and only the objects and functions defined by the [ECMAScript specification](http://ec...
Without knowing the book, I can't tell you what is the meaning of `CoreJavaScript`, but in what concerns to the first two the difference is: Client side javascript as the name says, is javascript code, running on the client side, a typical scenario of this is, when you access a website, and you run javascript code. Th...
24,366,091
We receive a file from an external provider. One of the columns contains a timestamp in the form "05/01/2014 09:25:41 AM EDT". I am trying to insert this into a TIMESTAMP WITH TIME ZONE column with the following SQL: `INSERT INTO table VALUES (to_timestamp_tz('05/01/2014 09:25:41 AM EDT', 'MM/DD/YYYY HH12:MI:SS AM TZR...
2014/06/23
[ "https://Stackoverflow.com/questions/24366091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3767403/" ]
> > Are they differ in anything other than the usage ? or Does the syntax and definitions also differ? > > > The language is the same. The environment is different. By "Core JavaScript," Flanagan is talking about *the language* and only the objects and functions defined by the [ECMAScript specification](http://ec...
after installation of node js in system then we use javascript on server side. the code of nodejs is just like a javascript. no major differences so its also a javascript. Nodejs enables the user to use javascript code on server side too.
24,366,091
We receive a file from an external provider. One of the columns contains a timestamp in the form "05/01/2014 09:25:41 AM EDT". I am trying to insert this into a TIMESTAMP WITH TIME ZONE column with the following SQL: `INSERT INTO table VALUES (to_timestamp_tz('05/01/2014 09:25:41 AM EDT', 'MM/DD/YYYY HH12:MI:SS AM TZR...
2014/06/23
[ "https://Stackoverflow.com/questions/24366091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3767403/" ]
* Server-sided: Runs on server (like Node.js) * Client-sided: Runs in browser * Core: The set of functionality available to all javascript engines
Without knowing the book, I can't tell you what is the meaning of `CoreJavaScript`, but in what concerns to the first two the difference is: Client side javascript as the name says, is javascript code, running on the client side, a typical scenario of this is, when you access a website, and you run javascript code. Th...
24,366,091
We receive a file from an external provider. One of the columns contains a timestamp in the form "05/01/2014 09:25:41 AM EDT". I am trying to insert this into a TIMESTAMP WITH TIME ZONE column with the following SQL: `INSERT INTO table VALUES (to_timestamp_tz('05/01/2014 09:25:41 AM EDT', 'MM/DD/YYYY HH12:MI:SS AM TZR...
2014/06/23
[ "https://Stackoverflow.com/questions/24366091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3767403/" ]
* Server-sided: Runs on server (like Node.js) * Client-sided: Runs in browser * Core: The set of functionality available to all javascript engines
after installation of node js in system then we use javascript on server side. the code of nodejs is just like a javascript. no major differences so its also a javascript. Nodejs enables the user to use javascript code on server side too.
24,366,091
We receive a file from an external provider. One of the columns contains a timestamp in the form "05/01/2014 09:25:41 AM EDT". I am trying to insert this into a TIMESTAMP WITH TIME ZONE column with the following SQL: `INSERT INTO table VALUES (to_timestamp_tz('05/01/2014 09:25:41 AM EDT', 'MM/DD/YYYY HH12:MI:SS AM TZR...
2014/06/23
[ "https://Stackoverflow.com/questions/24366091", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3767403/" ]
Without knowing the book, I can't tell you what is the meaning of `CoreJavaScript`, but in what concerns to the first two the difference is: Client side javascript as the name says, is javascript code, running on the client side, a typical scenario of this is, when you access a website, and you run javascript code. Th...
after installation of node js in system then we use javascript on server side. the code of nodejs is just like a javascript. no major differences so its also a javascript. Nodejs enables the user to use javascript code on server side too.
93,224
> > Use spaces liberally throughout your code. “When in doubt, space it out.” > > > In the above sentence, what does "space it out" mean? Source: <https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/#spacing>
2016/06/09
[ "https://ell.stackexchange.com/questions/93224", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/36262/" ]
In your example > > space it out > > > means to add spaces (or whitespaces) to make the code easier for humans to read. Consider the difference between > > def myMethod(a,b,c)if(a==b)t=0;elseif(b==c)t=a;else t=c;end;return t;end > > > and > > def myMethod(a,b,c) > >     if(a==b) > >         t=0; ...
The construction > > (verb) + **it out** > > > can be used to emphasize a verb in the sense to do that verb more, to do it until its maximum capacity, or to do it completely. So your example means > > use more spaces > > > In other words, it means exactly what the first part says > > Use spaces liberall...
43,918,785
I have a data frame with columns I want to reorder. However, in different iterations of my script, the total number of columns may change. ``` >Fruit Vendor A B C D E ... Apples Oranges Otto 4 5 2 5 2 ... 3 4 Fruit2<-Fruit[c(32,33,2:5)] ``` So instead of manually adapting the code (the columns 32 and 33 cha...
2017/05/11
[ "https://Stackoverflow.com/questions/43918785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7998091/" ]
Make sure you are "adding" the `mysql-connector-java-5.1.42-bin.jar` file to the classpath when starting your program (obviously it can be a different version number). something like ``` java -cp .;mysql-connector-java-5.0.8-bin.jar JdbcExample ``` or ``` set CLASSPATH=...;mysql-connector-java-5.0.8-bin.jar java ...
Looks like more of a classpath issue. Try adding the jar manually to your project. I ran the same with `mysql-connector-java-5.0.8.jar` and I dont get this error.
35,679,477
``` array[obj][obj] = 1; ``` I want to create 2D array whose index is user defined object. How to do this? or there is some other data structure available to do this?
2016/02/28
[ "https://Stackoverflow.com/questions/35679477", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5672907/" ]
Android will use `res\values-v21\styles.xml` if the user's device is running Android API level 21+ (Android 5.0+) & will use `res\values\styles.xml` for older versions
It just means that the styles differ in android versions. `styles.xml` in values-v21 mean that, that particular style is for Android API 21 version 5.0+ while `styles.xml` will be for any other Android version besides 5.0+. its the same as language where you create an activity for en, fr, pk etc. Older version woul...
1,825,624
I have created a job with the `at` command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
2009/12/01
[ "https://Stackoverflow.com/questions/1825624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147352/" ]
You should be able to find your command with a `ps` variant like: ``` ps -ef ps -fubob # if your job's user ID is bob. ``` Then, once located, it should be a simple matter to use `kill` to kill the process (permissions permitting). If you're talking about getting rid of jobs in the `at` queue (that aren't running y...
To delete a job which has not yet run, you need the `atrm` command. You can use `atq` command to get its number in the at list. To kill a job which has already started to run, you'll need to grep for it using: ``` ps -eaf | grep <command name> ``` and then use `kill` to stop it. A quicker way to do this on most sy...
1,825,624
I have created a job with the `at` command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
2009/12/01
[ "https://Stackoverflow.com/questions/1825624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147352/" ]
To delete a job which has not yet run, you need the `atrm` command. You can use `atq` command to get its number in the at list. To kill a job which has already started to run, you'll need to grep for it using: ``` ps -eaf | grep <command name> ``` and then use `kill` to stop it. A quicker way to do this on most sy...
First ``` ps -ef ``` to list all processes. Note the the process number of the one you want to kill. Then ``` kill 1234 ``` were you replace 1234 with the process number that you want. Alternatively, if you are absolutely certain that there is only one process with a particular name, or you want to kill multiple...
1,825,624
I have created a job with the `at` command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
2009/12/01
[ "https://Stackoverflow.com/questions/1825624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147352/" ]
To delete a job which has not yet run, you need the `atrm` command. You can use `atq` command to get its number in the at list. To kill a job which has already started to run, you'll need to grep for it using: ``` ps -eaf | grep <command name> ``` and then use `kill` to stop it. A quicker way to do this on most sy...
`at -l` to list jobs, which gives return like this: ``` age2%> at -l 11 2014-10-21 10:11 a hoppent 10 2014-10-19 13:28 a hoppent ``` `atrm 10` kills job 10 Or so my sysadmin told me, and it
1,825,624
I have created a job with the `at` command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
2009/12/01
[ "https://Stackoverflow.com/questions/1825624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147352/" ]
You should be able to find your command with a `ps` variant like: ``` ps -ef ps -fubob # if your job's user ID is bob. ``` Then, once located, it should be a simple matter to use `kill` to kill the process (permissions permitting). If you're talking about getting rid of jobs in the `at` queue (that aren't running y...
First ``` ps -ef ``` to list all processes. Note the the process number of the one you want to kill. Then ``` kill 1234 ``` were you replace 1234 with the process number that you want. Alternatively, if you are absolutely certain that there is only one process with a particular name, or you want to kill multiple...
1,825,624
I have created a job with the `at` command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
2009/12/01
[ "https://Stackoverflow.com/questions/1825624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147352/" ]
You should be able to find your command with a `ps` variant like: ``` ps -ef ps -fubob # if your job's user ID is bob. ``` Then, once located, it should be a simple matter to use `kill` to kill the process (permissions permitting). If you're talking about getting rid of jobs in the `at` queue (that aren't running y...
`at -l` to list jobs, which gives return like this: ``` age2%> at -l 11 2014-10-21 10:11 a hoppent 10 2014-10-19 13:28 a hoppent ``` `atrm 10` kills job 10 Or so my sysadmin told me, and it
1,825,624
I have created a job with the `at` command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
2009/12/01
[ "https://Stackoverflow.com/questions/1825624", "https://Stackoverflow.com", "https://Stackoverflow.com/users/147352/" ]
`at -l` to list jobs, which gives return like this: ``` age2%> at -l 11 2014-10-21 10:11 a hoppent 10 2014-10-19 13:28 a hoppent ``` `atrm 10` kills job 10 Or so my sysadmin told me, and it
First ``` ps -ef ``` to list all processes. Note the the process number of the one you want to kill. Then ``` kill 1234 ``` were you replace 1234 with the process number that you want. Alternatively, if you are absolutely certain that there is only one process with a particular name, or you want to kill multiple...
275,274
There is a challenge involving a lemon floating in a jug of water which seems impossible to beat. I've noticed it in several pubs of Edinburgh. The challenge is as follows: * There is a jug half filled with water. * Floating in the water, there's a lemon. The lemon doesn't touch either the bottom nor the edges of the...
2016/08/19
[ "https://physics.stackexchange.com/questions/275274", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/67968/" ]
We assume the lemon is rigid, which is reasonably accurate for these small forces. Stability in buoyancy requires a small rotation to create a net restoring torque. This is conceptualized as the [metacenter](https://en.wikipedia.org/wiki/Metacentric_height), which is the "average" point the water pushes upward on. For...
[![enter image description here](https://i.stack.imgur.com/IKbME.jpg)](https://i.stack.imgur.com/IKbME.jpg) The real answer is a trick. Sorry Take a **heavier** coin and squeeze it in sideways underneath, so it's now a lemon with the centre of gravity at the bottom, like the keel on a sailboat. As long as the top co...
275,274
There is a challenge involving a lemon floating in a jug of water which seems impossible to beat. I've noticed it in several pubs of Edinburgh. The challenge is as follows: * There is a jug half filled with water. * Floating in the water, there's a lemon. The lemon doesn't touch either the bottom nor the edges of the...
2016/08/19
[ "https://physics.stackexchange.com/questions/275274", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/67968/" ]
[![enter image description here](https://i.stack.imgur.com/IKbME.jpg)](https://i.stack.imgur.com/IKbME.jpg) The real answer is a trick. Sorry Take a **heavier** coin and squeeze it in sideways underneath, so it's now a lemon with the centre of gravity at the bottom, like the keel on a sailboat. As long as the top co...
I don't happen to have a lemon at the moment. But here's what I would try. I would try to place the coin so that it's position is as close as possible to the water plane. So then near either tip of the lemon rather than the center. My guess is the lemon is somewhat more stable in pitch than in roll, so it may not pitch...
275,274
There is a challenge involving a lemon floating in a jug of water which seems impossible to beat. I've noticed it in several pubs of Edinburgh. The challenge is as follows: * There is a jug half filled with water. * Floating in the water, there's a lemon. The lemon doesn't touch either the bottom nor the edges of the...
2016/08/19
[ "https://physics.stackexchange.com/questions/275274", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/67968/" ]
We assume the lemon is rigid, which is reasonably accurate for these small forces. Stability in buoyancy requires a small rotation to create a net restoring torque. This is conceptualized as the [metacenter](https://en.wikipedia.org/wiki/Metacentric_height), which is the "average" point the water pushes upward on. For...
I don't happen to have a lemon at the moment. But here's what I would try. I would try to place the coin so that it's position is as close as possible to the water plane. So then near either tip of the lemon rather than the center. My guess is the lemon is somewhat more stable in pitch than in roll, so it may not pitch...
48,758,254
I am trying to join two tables: Table1: (900 million rows (106 GB). And, id1, id2, id3, id4 are **clustered primary key**, houseType is string) ``` +-----+-----+-----+------------+--------+ | Id1 | id2 | id3 | id4 | val1 | +-----+-----+-----+------------+--------+ | ac | 15 | 697 | houseType1 | 75.396 | +-...
2018/02/13
[ "https://Stackoverflow.com/questions/48758254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3448011/" ]
This should reduce your recordset: ``` Select a.id1, a.id2, a.id3, a.id4, b.factor1 * a.val1 as result From Table1 a inner join Table2 b on a.val1 >= b.val1 and a.val1 < b.val2 ``` This way, you will only get a single record from b for each record from a. This is at least a start to improve your per...
I would be inclined to express this as a subquery or lateral join: ``` Select a.id1, a.id2, a.id3, a.id4, b.factor1 * a.val1 as result From Table1 a cross apply (select b.* from Table2 b where a.val1 >= b.val1 and a.val1 < b.val2 ) b; ``` The aggregation is unnecessary because the four keys co...
30,533,846
I am using the Chartist plugin for generating charts. I've noticed that it does different element generations through browsers. In Internet Explorer, it uses the `<text>` element, but it is offset on the left by 70px. I want to move that element on the right 70px, but I can't achieve this. I've tried with the `text-a...
2015/05/29
[ "https://Stackoverflow.com/questions/30533846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1616512/" ]
Correct (but possibly slow) solution ------------------------------------ This **is** a bug of the Chartist library. They are calculating their label position so it is not center-aligned to the category. For the permanent solution, you need to take it up with them, so the bug is fixed on their side. You can find aut...
How about modifying x attribute via Javascript? ``` <![if !IE]> <script> document.getElementsByTagName("text")[0].setAttribute("x", 95); </script> <![endif]> ```
30,533,846
I am using the Chartist plugin for generating charts. I've noticed that it does different element generations through browsers. In Internet Explorer, it uses the `<text>` element, but it is offset on the left by 70px. I want to move that element on the right 70px, but I can't achieve this. I've tried with the `text-a...
2015/05/29
[ "https://Stackoverflow.com/questions/30533846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1616512/" ]
Correct (but possibly slow) solution ------------------------------------ This **is** a bug of the Chartist library. They are calculating their label position so it is not center-aligned to the category. For the permanent solution, you need to take it up with them, so the bug is fixed on their side. You can find aut...
Text tag is child of svg g element. You can't change x/y position of g element but you can use transform="translate(x,y)": ``` <g transform="translate(70,0)" ... > <text class="ct-label ct-horizontal ct-end" x="25" y="205" width="179" height="20">FEB-2015</text> <text class="ct-label ct-horizontal ct-end" x="2...
30,533,846
I am using the Chartist plugin for generating charts. I've noticed that it does different element generations through browsers. In Internet Explorer, it uses the `<text>` element, but it is offset on the left by 70px. I want to move that element on the right 70px, but I can't achieve this. I've tried with the `text-a...
2015/05/29
[ "https://Stackoverflow.com/questions/30533846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1616512/" ]
Correct (but possibly slow) solution ------------------------------------ This **is** a bug of the Chartist library. They are calculating their label position so it is not center-aligned to the category. For the permanent solution, you need to take it up with them, so the bug is fixed on their side. You can find aut...
Add this to your style sheet: ``` text{ position: relative; right: 0px; left: 50px; } ``` It will remove your left transform and will move your `<text></text>` to right ( 50px )
30,533,846
I am using the Chartist plugin for generating charts. I've noticed that it does different element generations through browsers. In Internet Explorer, it uses the `<text>` element, but it is offset on the left by 70px. I want to move that element on the right 70px, but I can't achieve this. I've tried with the `text-a...
2015/05/29
[ "https://Stackoverflow.com/questions/30533846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1616512/" ]
Correct (but possibly slow) solution ------------------------------------ This **is** a bug of the Chartist library. They are calculating their label position so it is not center-aligned to the category. For the permanent solution, you need to take it up with them, so the bug is fixed on their side. You can find aut...
``` <!--[if IE]> <script> $chart.on( 'created', function() { $( '.ct-labels' ).attr( 'transform', 'translate(70)' ); } ); </script> <![endif]--> ```
292,887
Recently I downloaded ubuntu 13.04 (iso). Now after extracting the iso file and running wubi - it says downloading required files though I had already downloaded the iso file (794 MB). So what to do now?
2013/05/09
[ "https://askubuntu.com/questions/292887", "https://askubuntu.com", "https://askubuntu.com/users/101535/" ]
wubi in 13.04 is not in a releasable state. You have to install Ubuntu 12.10 through wubi and then upgrade to 13.04. follow this [steps](http://schoudhury.com/blog/articles/install-ubuntu-13-04-with-ubuntu-wubi-installer/)
Use the ISO that you have downloaded. You can make a boot-able pendrive by using this utility at <http://www.pendrivelinux.com/>. Then you can install ubuntu using this pendrive. PS. : in your boot options just check that USB is higher priority to the hard-drive. Also, Wubi currently is not the best way of installin...
292,887
Recently I downloaded ubuntu 13.04 (iso). Now after extracting the iso file and running wubi - it says downloading required files though I had already downloaded the iso file (794 MB). So what to do now?
2013/05/09
[ "https://askubuntu.com/questions/292887", "https://askubuntu.com", "https://askubuntu.com/users/101535/" ]
wubi in 13.04 is not in a releasable state. You have to install Ubuntu 12.10 through wubi and then upgrade to 13.04. follow this [steps](http://schoudhury.com/blog/articles/install-ubuntu-13-04-with-ubuntu-wubi-installer/)
If you're on Windows, or even on Wine you could also try Unetbootin or LinuxLiveUsb. I tried both of those for the first time yesterday, both were remarkably easy to use and did the job perfectly.
292,887
Recently I downloaded ubuntu 13.04 (iso). Now after extracting the iso file and running wubi - it says downloading required files though I had already downloaded the iso file (794 MB). So what to do now?
2013/05/09
[ "https://askubuntu.com/questions/292887", "https://askubuntu.com", "https://askubuntu.com/users/101535/" ]
wubi in 13.04 is not in a releasable state. You have to install Ubuntu 12.10 through wubi and then upgrade to 13.04. follow this [steps](http://schoudhury.com/blog/articles/install-ubuntu-13-04-with-ubuntu-wubi-installer/)
DO NOT extract ISO files. Instead mount it using ISO mounting program, and run Wubi. I suggest use Wubi only when you using Ubuntu [12.10](/questions/tagged/12.10 "show questions tagged '12.10'") --- If you mean installing it on its own partition, instead use [live-usb](/questions/tagged/live-usb "show questions tagg...
292,887
Recently I downloaded ubuntu 13.04 (iso). Now after extracting the iso file and running wubi - it says downloading required files though I had already downloaded the iso file (794 MB). So what to do now?
2013/05/09
[ "https://askubuntu.com/questions/292887", "https://askubuntu.com", "https://askubuntu.com/users/101535/" ]
Use the ISO that you have downloaded. You can make a boot-able pendrive by using this utility at <http://www.pendrivelinux.com/>. Then you can install ubuntu using this pendrive. PS. : in your boot options just check that USB is higher priority to the hard-drive. Also, Wubi currently is not the best way of installin...
If you're on Windows, or even on Wine you could also try Unetbootin or LinuxLiveUsb. I tried both of those for the first time yesterday, both were remarkably easy to use and did the job perfectly.
292,887
Recently I downloaded ubuntu 13.04 (iso). Now after extracting the iso file and running wubi - it says downloading required files though I had already downloaded the iso file (794 MB). So what to do now?
2013/05/09
[ "https://askubuntu.com/questions/292887", "https://askubuntu.com", "https://askubuntu.com/users/101535/" ]
Use the ISO that you have downloaded. You can make a boot-able pendrive by using this utility at <http://www.pendrivelinux.com/>. Then you can install ubuntu using this pendrive. PS. : in your boot options just check that USB is higher priority to the hard-drive. Also, Wubi currently is not the best way of installin...
DO NOT extract ISO files. Instead mount it using ISO mounting program, and run Wubi. I suggest use Wubi only when you using Ubuntu [12.10](/questions/tagged/12.10 "show questions tagged '12.10'") --- If you mean installing it on its own partition, instead use [live-usb](/questions/tagged/live-usb "show questions tagg...
67,506,376
I am trying to create a Django application where each User has one model attached to them ( a list of Plants ) and that model is composed of individual plants. I already know I can have the plants connected to the plant list through a many-to-one relationship using foreign key as shown down below: ``` class PlantList(...
2021/05/12
[ "https://Stackoverflow.com/questions/67506376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10322369/" ]
``` struct Example { var string: String init(number: Int) { string = String(number) } init(number: Float) { string = String(number) } init(number: Double) { string = String(number) } } ```
You can have a look at how swift does this with its String-initializer: ``` struct Example { init<Number>(number: Number) where Number: BinaryInteger { string = String(number) } } ```
67,506,376
I am trying to create a Django application where each User has one model attached to them ( a list of Plants ) and that model is composed of individual plants. I already know I can have the plants connected to the plant list through a many-to-one relationship using foreign key as shown down below: ``` class PlantList(...
2021/05/12
[ "https://Stackoverflow.com/questions/67506376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10322369/" ]
Use generic structure with Numeric protocol. ``` struct Example<T:Numeric> { var string: String init(number: T) { self.string = "\(number)" } } ```
``` struct Example { var string: String init(number: Int) { string = String(number) } init(number: Float) { string = String(number) } init(number: Double) { string = String(number) } } ```
67,506,376
I am trying to create a Django application where each User has one model attached to them ( a list of Plants ) and that model is composed of individual plants. I already know I can have the plants connected to the plant list through a many-to-one relationship using foreign key as shown down below: ``` class PlantList(...
2021/05/12
[ "https://Stackoverflow.com/questions/67506376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10322369/" ]
Actually if all you want is a string representation of `Int` `Float` `Double` or any other standard numeric type you only need to know that they conform to `CustomStringConvertible` and use `String(describing:)`. Or you can use conformance to [`Numeric`](https://developer.apple.com/documentation/swift/numeric) **and**...
``` struct Example { var string: String init(number: Int) { string = String(number) } init(number: Float) { string = String(number) } init(number: Double) { string = String(number) } } ```
67,506,376
I am trying to create a Django application where each User has one model attached to them ( a list of Plants ) and that model is composed of individual plants. I already know I can have the plants connected to the plant list through a many-to-one relationship using foreign key as shown down below: ``` class PlantList(...
2021/05/12
[ "https://Stackoverflow.com/questions/67506376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10322369/" ]
Use generic structure with Numeric protocol. ``` struct Example<T:Numeric> { var string: String init(number: T) { self.string = "\(number)" } } ```
You can have a look at how swift does this with its String-initializer: ``` struct Example { init<Number>(number: Number) where Number: BinaryInteger { string = String(number) } } ```
67,506,376
I am trying to create a Django application where each User has one model attached to them ( a list of Plants ) and that model is composed of individual plants. I already know I can have the plants connected to the plant list through a many-to-one relationship using foreign key as shown down below: ``` class PlantList(...
2021/05/12
[ "https://Stackoverflow.com/questions/67506376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10322369/" ]
Actually if all you want is a string representation of `Int` `Float` `Double` or any other standard numeric type you only need to know that they conform to `CustomStringConvertible` and use `String(describing:)`. Or you can use conformance to [`Numeric`](https://developer.apple.com/documentation/swift/numeric) **and**...
You can have a look at how swift does this with its String-initializer: ``` struct Example { init<Number>(number: Number) where Number: BinaryInteger { string = String(number) } } ```
67,506,376
I am trying to create a Django application where each User has one model attached to them ( a list of Plants ) and that model is composed of individual plants. I already know I can have the plants connected to the plant list through a many-to-one relationship using foreign key as shown down below: ``` class PlantList(...
2021/05/12
[ "https://Stackoverflow.com/questions/67506376", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10322369/" ]
Actually if all you want is a string representation of `Int` `Float` `Double` or any other standard numeric type you only need to know that they conform to `CustomStringConvertible` and use `String(describing:)`. Or you can use conformance to [`Numeric`](https://developer.apple.com/documentation/swift/numeric) **and**...
Use generic structure with Numeric protocol. ``` struct Example<T:Numeric> { var string: String init(number: T) { self.string = "\(number)" } } ```
44,628,848
I'm trying to create annotations on the MapKit from a `geoJSON` file, but the problem is that the coordinates provided by the `geoJSON` file don't match the coordinate system that `MapKit` uses. **Question** : How do I convert *read* the geoJSON file and *convert* the coordinates from [``](http://spatialreference.org...
2017/06/19
[ "https://Stackoverflow.com/questions/44628848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8171709/" ]
<https://en.m.wikipedia.org/wiki/Transverse_Mercator_projection> Longitude of natural origin 0° 00' 00.000" N 13° 30' 00.000" E Scale factor at natural origin 1 False easting 150000 meters False northing 0 FINAL (Playground) version ``` //: [Previous](@previous) import Foundation extension Double { var rad...
I dont understand what are you looking for exactly but what I would do (since you are using swift) is create an extension of MKPointAnnotation and add a new initialiser that takes the geoJSON, parse it, fetch the coordinates (and whatever data you intend to put in the annotation object) and return a MKPointAnnotation w...
12,220,650
I have a very odd problem related to the Portland Group FORTRAN 90 compiler. I am trying to run a code that *relies* on array overflow to work properly. *I did not write this code!* The originators had to compile it with the flag "-tp=piii" to force the compiler to refrain from optimizations that defeated the array ove...
2012/08/31
[ "https://Stackoverflow.com/questions/12220650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1380285/" ]
I'm no longer familiar with the PGI compiler and don't have its documentation to hand so can't guide you directly to the compiler option you want, but it will be indexed under something like *array bounds* or *bounds checking*. Until Fortran 90 it was common practice to write code which ignored, or was ignorant of, a...
Just in case anyone ever runs into the same problem with the "piii" flag, recent PGI compilers do support this flag .... if you have the 32-bit libraries installed. And, as it turns out, I do not.
4,043
Has anyone created a twitter like app in Sharepoint 2007? Would really like to know about your ideas and suggestions.
2010/07/15
[ "https://sharepoint.stackexchange.com/questions/4043", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/-1/" ]
There are a few options for you. Michael Gannotti has this point on how to do it simply with a content editor web part and some javascript: <http://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=1202> Aidan Garnish has a solution here: <http://aidangarnish.net/blog/post/2009/02/Twitter-SharePoint-web-p...
Check out this [Team Status](http://community.zevenseas.com/Blogs/Daniel/archive/2009/05/09/release-version-of-our-%e2%80%9cassembly-free%e2%80%9d-team-status-template.aspx) solution from Zevenseas.
4,043
Has anyone created a twitter like app in Sharepoint 2007? Would really like to know about your ideas and suggestions.
2010/07/15
[ "https://sharepoint.stackexchange.com/questions/4043", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/-1/" ]
There are a few options for you. Michael Gannotti has this point on how to do it simply with a content editor web part and some javascript: <http://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=1202> Aidan Garnish has a solution here: <http://aidangarnish.net/blog/post/2009/02/Twitter-SharePoint-web-p...
Have a look at [Yammer for SharePoint](http://blog.yammer.com/blog/2010/06/yammer-introduces-microsoft-sharepoint-2007-integration.html).
4,043
Has anyone created a twitter like app in Sharepoint 2007? Would really like to know about your ideas and suggestions.
2010/07/15
[ "https://sharepoint.stackexchange.com/questions/4043", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/-1/" ]
There are a few options for you. Michael Gannotti has this point on how to do it simply with a content editor web part and some javascript: <http://sharepoint.microsoft.com/blogs/mikeg/Lists/Posts/Post.aspx?ID=1202> Aidan Garnish has a solution here: <http://aidangarnish.net/blog/post/2009/02/Twitter-SharePoint-web-p...
Check this <http://tweetpart.codeplex.com/>
14,613,498
See demo: [jsFiddle](http://jsfiddle.net/bVyW5/) * I have a simple form that is being toggled when clicking 'show' / 'cancel' * Everything works fine, but **if you click 'cancel' shortly after the form is revealed, there's a good 2-3 seconds lag before the animation even begins**. * This doesn't happen if you wait a f...
2013/01/30
[ "https://Stackoverflow.com/questions/14613498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/806061/" ]
Make sure to clear the queue when starting a new animation with `stop()`: ``` $("#newResForm").stop().animate({ opacity: 0 }, 100,function() { $("#newResFormWrap").toggle('fast', function (){ $("#addRes").animate({ opacity: 100 }); // ... ``` What's causing the lag is the fact t...
Add `.stop()` before your animate calls: ``` function toggleNewRes() { if ($("#newResFormWrap").css('display') == "none") {//if hidden $("#addRes").stop().animate({ opacity: 0 }, 'fast', function() { /... }); } else { //if visible $("#newResForm").stop().animate({ opacity: ...
14,613,498
See demo: [jsFiddle](http://jsfiddle.net/bVyW5/) * I have a simple form that is being toggled when clicking 'show' / 'cancel' * Everything works fine, but **if you click 'cancel' shortly after the form is revealed, there's a good 2-3 seconds lag before the animation even begins**. * This doesn't happen if you wait a f...
2013/01/30
[ "https://Stackoverflow.com/questions/14613498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/806061/" ]
Make sure to clear the queue when starting a new animation with `stop()`: ``` $("#newResForm").stop().animate({ opacity: 0 }, 100,function() { $("#newResFormWrap").toggle('fast', function (){ $("#addRes").animate({ opacity: 100 }); // ... ``` What's causing the lag is the fact t...
Try to use `stop()` : [Here is jsfiddle.](http://jsfiddle.net/t7mWs/2/) ``` if ($("#newResFormWrap").is(':visible')) {//this way is eaiser to check $("#addRes").stop(true,false).animate({ opacity: 0 }, 'fast', function() { $("#newResFormWrap").toggle('fast', function (){ $("#newResForm").anima...
14,613,498
See demo: [jsFiddle](http://jsfiddle.net/bVyW5/) * I have a simple form that is being toggled when clicking 'show' / 'cancel' * Everything works fine, but **if you click 'cancel' shortly after the form is revealed, there's a good 2-3 seconds lag before the animation even begins**. * This doesn't happen if you wait a f...
2013/01/30
[ "https://Stackoverflow.com/questions/14613498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/806061/" ]
Make sure to clear the queue when starting a new animation with `stop()`: ``` $("#newResForm").stop().animate({ opacity: 0 }, 100,function() { $("#newResFormWrap").toggle('fast', function (){ $("#addRes").animate({ opacity: 100 }); // ... ``` What's causing the lag is the fact t...
Couple of things. First check out this [JSFiddle](http://jsfiddle.net/bVyW5/1/) to see it in action. The problem you have is that your fade in animation takes 2 seconds. So when you close it within 2 seconds you experience a delay. I recalibrated your timings to ensure there are no delay. See if you like them and fee...
1,602,055
Given a set $X$ and a family $\mathcal{S}$ of subsets of $X$, prove that there exists a topology $\mathcal{T}(\mathcal{S})$ on $X$ which contains $\mathcal{S}$ and is the smallest with this property (Hint: use the axioms to see what other subsets of $X$, besides the ones from $\mathcal{S}$, must $\mathcal{T}(\mathcal{S...
2016/01/06
[ "https://math.stackexchange.com/questions/1602055", "https://math.stackexchange.com", "https://math.stackexchange.com/users/294640/" ]
The "smallest" topology $\mathcal{T}(S)$ is the topology such that if $T'$ is any other topology containing the subsets in the collection $S$, then $\mathcal{T}(S) \subseteq T'$. As the other answerers have pointed out, consider taking every topology on the set $X$ which contains all of the sets in $S$, and then take ...
The intersection of an arbitrary non-empty family of topologies containing $\mathcal{S}$ is still a topology. In this case the family is non-empty, indeed it contains the power set of $X$.
20,604,093
I am stuck with a problem installing Qt5 on OSX. The [Qt Requirements for Mac OSX](http://qt-project.org/doc/qt-5.0/qtdoc/requirements-mac.html) are done - Xcode and command line are installed. Then I followed the steps: ``` # mkdir qt5 # cd qt5 # git clone git://gitorious.org/qt/qtbase.git # cd qt5 # ./configur...
2013/12/16
[ "https://Stackoverflow.com/questions/20604093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/194990/" ]
I just encountered this same problem myself, and I worked around it by specifying the argument -no-xcb (instead of -qt-xcb) to the configure script. That allowed the compilation of the Qt libraries to complete (although some of the Qt example programs failed to compile... but it was enough to get me back on track for n...
This is nothing to do with Mavericks. You have MacPorts or something similar in your PATH. The configure script detects X-Windows and therefor tries to configure the xcb backend. Reset your PATH to a minimal one before compile: export PATH=/usr/bin:/bin:/usr/sbin:/sbin That will solve the issue.
30,373
![enter image description here](https://i.stack.imgur.com/PI2Q5.jpg) Plant :Alstonia Appearance:Blisters (gall) on both sides,cutting galls leaves white fluid. After some time holes apppears in the blisters.so it seems some insect laid eggs. What kind of disease is this? It seems to be some kind of blisters on the leav...
2017/01/03
[ "https://gardening.stackexchange.com/questions/30373", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/16473/" ]
Alstonia scholaris (L.) R. Br. is a very beautiful ornamental tree, which is commonly known as pagoda tree because of its pagoda like growing habit. It is commonly infected by the Homopteran, Pauropsylla tuberculata Crawf which leads to unsightly gall formation on the leaves as pictured. The gall is the leaf response ...
I agree, leaf galls. Looks like a Rhododendron regardless, @Atul, need you to take a razor blade and slice through a 'gall' to see if the insect is still there. Take a picture. I would right now cut that infected branch off. This is usually not a death sentence! But before 'trying' any treatment we need to know what th...
25,390,936
Not sure if I should use a regex, and if so which, but I'm using SQL (Sequel Pro) For a particular instance in a table (about 200 columns) I want to remove everything that precedes the year (such as for 3/13/2012 I want to remove 3/13/ ). Some entries only have a year, and some have the month and day preceding the yea...
2014/08/19
[ "https://Stackoverflow.com/questions/25390936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3597867/" ]
Try this: ``` SELECT DATEPART(YEAR,CONVERT(DATE,{Your Column Name Here})) ```
You may try like this in MYSQL ``` SELECT YEAR(STR_TO_DATE(datecolumn, "%m/%d/%Y")) from table ``` and in SQL SERVER ``` SELECT YEAR(datecolumn) AS Date FROM table ```
56,007,622
In this problem, I am trying to understand when an alert should be generated based on 'value'. If previous 5 values are above 10, then an alert is created. The alert continues to stay active till the value goes below 7.5. Now, once the alert is no longer active and it reaches a stage where previous 5 values are above ...
2019/05/06
[ "https://Stackoverflow.com/questions/56007622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11035965/" ]
There's a [chapter on Scheduling in the Airflow documentation](https://airflow.apache.org/scheduler.html#scheduling-triggers), which states: > > Note that if you run a DAG on a schedule\_interval of one day, the run stamped 2016-01-01 will be trigger soon after 2016-01-01T23:59. In other words, the job instance is st...
Airflow schedule a dag at the ending of each interval with execution time as the starting of that interval. So usually **execution\_time=schedule\_time-interval**. For example, in your dag, the last interval was 2019-04-29T14:00:00 to 2019-05-06T14:00:00 and its execution only get scheduled on 2019-05-06T14:00:00 with...
203,266
I need another excuse of "I was very busy" as people became tired of hearing it. So, I thought of expressing the idea of having a very restricted/limited time for all the tasks that I have been assigned to do and therefore I couldn't completely finish this specific one. The thing is I can't get my hands on a suitable p...
2019/03/31
[ "https://ell.stackexchange.com/questions/203266", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/80554/" ]
There are some other good suggestions here. I might also use: > > I got caught up with other work. > > > I got caught up in other work. > > > Either of these means that you were very busy or “tangled up” with other work- like you couldn’t escape the trap of the work, so to speak. EDIT: Sorry, I should have als...
**Get around to** *phrasal verb of get* **deal with (a task) in due course.** **to do something that you have intended to do for a long time** > > I didn't **get around to** putting all the photos in frames. > > > I couldn't **get around to** finishing it on time. > > > I intended to tidy the flat at the weeken...
203,266
I need another excuse of "I was very busy" as people became tired of hearing it. So, I thought of expressing the idea of having a very restricted/limited time for all the tasks that I have been assigned to do and therefore I couldn't completely finish this specific one. The thing is I can't get my hands on a suitable p...
2019/03/31
[ "https://ell.stackexchange.com/questions/203266", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/80554/" ]
There are some other good suggestions here. I might also use: > > I got caught up with other work. > > > I got caught up in other work. > > > Either of these means that you were very busy or “tangled up” with other work- like you couldn’t escape the trap of the work, so to speak. EDIT: Sorry, I should have als...
Suggestions: I wasn't able to do it because I ran out of time. There wasn't enough time to do everything I needed to do. I didn't have sufficient time to do everything.
18,772,414
I am working on open-source project on github, and I cloned a the project by doing `git clone git@gitlab.domain.com:project.git` Now, All works fine, I can run the project and working on it. But this was a master branch, and now someone has created a branch called `user_interface` and added some basic HTML, now I nee...
2013/09/12
[ "https://Stackoverflow.com/questions/18772414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Apparently egrep doesn't support `{m,n}` repeat syntax: ``` $ egrep -i '((\w)\2)((\w)\4)((\w)\6)' words bookkeeper bookkeeping subbookkeeper $ egrep -i '((\w)\2)((\w)\4)((\w)\6)((\w)\8)' words subbookkeeper ``` If you spell out the groups, it works. This is on my Mac.
Your regex is correct and there is not a bug. `/usr/share/dict/words` does not contain the word "subbookkeeper".
18,772,414
I am working on open-source project on github, and I cloned a the project by doing `git clone git@gitlab.domain.com:project.git` Now, All works fine, I can run the project and working on it. But this was a master branch, and now someone has created a branch called `user_interface` and added some basic HTML, now I nee...
2013/09/12
[ "https://Stackoverflow.com/questions/18772414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The problem seems to be that egrep is not resetting captured groups on repeats. Not sure if this is a bug or just ambiguity in what the notation implies. If you manually repeat then it should work: ``` egrep -i "(\w)\1(\w)\2(\w)\3(\w)\4" /usr/share/dict/words ``` However, it is strange that this does not work. This ...
Your regex is correct and there is not a bug. `/usr/share/dict/words` does not contain the word "subbookkeeper".
18,772,414
I am working on open-source project on github, and I cloned a the project by doing `git clone git@gitlab.domain.com:project.git` Now, All works fine, I can run the project and working on it. But this was a master branch, and now someone has created a branch called `user_interface` and added some basic HTML, now I nee...
2013/09/12
[ "https://Stackoverflow.com/questions/18772414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Apparently egrep doesn't support `{m,n}` repeat syntax: ``` $ egrep -i '((\w)\2)((\w)\4)((\w)\6)' words bookkeeper bookkeeping subbookkeeper $ egrep -i '((\w)\2)((\w)\4)((\w)\6)((\w)\8)' words subbookkeeper ``` If you spell out the groups, it works. This is on my Mac.
On my freebsd system it did find match ``` [vaibhavc@freebsd-vai ~]$ cat acb subbookkeeper [vaibhavc@freebsd-vai ~]$ egrep "((\w)\2){4,}" -i acb subbookkeeper ```
18,772,414
I am working on open-source project on github, and I cloned a the project by doing `git clone git@gitlab.domain.com:project.git` Now, All works fine, I can run the project and working on it. But this was a master branch, and now someone has created a branch called `user_interface` and added some basic HTML, now I nee...
2013/09/12
[ "https://Stackoverflow.com/questions/18772414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The problem seems to be that egrep is not resetting captured groups on repeats. Not sure if this is a bug or just ambiguity in what the notation implies. If you manually repeat then it should work: ``` egrep -i "(\w)\1(\w)\2(\w)\3(\w)\4" /usr/share/dict/words ``` However, it is strange that this does not work. This ...
On my freebsd system it did find match ``` [vaibhavc@freebsd-vai ~]$ cat acb subbookkeeper [vaibhavc@freebsd-vai ~]$ egrep "((\w)\2){4,}" -i acb subbookkeeper ```
18,772,414
I am working on open-source project on github, and I cloned a the project by doing `git clone git@gitlab.domain.com:project.git` Now, All works fine, I can run the project and working on it. But this was a master branch, and now someone has created a branch called `user_interface` and added some basic HTML, now I nee...
2013/09/12
[ "https://Stackoverflow.com/questions/18772414", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The problem seems to be that egrep is not resetting captured groups on repeats. Not sure if this is a bug or just ambiguity in what the notation implies. If you manually repeat then it should work: ``` egrep -i "(\w)\1(\w)\2(\w)\3(\w)\4" /usr/share/dict/words ``` However, it is strange that this does not work. This ...
Apparently egrep doesn't support `{m,n}` repeat syntax: ``` $ egrep -i '((\w)\2)((\w)\4)((\w)\6)' words bookkeeper bookkeeping subbookkeeper $ egrep -i '((\w)\2)((\w)\4)((\w)\6)((\w)\8)' words subbookkeeper ``` If you spell out the groups, it works. This is on my Mac.
233,574
I'm moving a couple of servers to a colo and was wondering what you would recommend for a hardware firewall to sit in front of them? Is it fine to just get the cheapest Cisco/Fortigate/Juniper/whatever firewall? I don't need anything fancy, pretty much just port forwarding.
2011/02/09
[ "https://serverfault.com/questions/233574", "https://serverfault.com", "https://serverfault.com/users/546/" ]
Here's an example for some criteria you'll want to consider when selecting a firewall in the scenario you described: 1. Feature set - Make sure it'll perform your immediate and potential future purposes. 2. Performance - Co-location generally provides good network connectivity and throughput. Make sure the device you ...
You are probably looking at "wasting" at least 1U of rack space for this firewall. I would not buy a consumer-grade cheapie firewall. The Juniper Netscreen SSG5 would probably meet your needs, but it is a paperback size format and doesn't come with rack arms (that I recall). The first "rackable" SSG is the SSG140, bu...
233,574
I'm moving a couple of servers to a colo and was wondering what you would recommend for a hardware firewall to sit in front of them? Is it fine to just get the cheapest Cisco/Fortigate/Juniper/whatever firewall? I don't need anything fancy, pretty much just port forwarding.
2011/02/09
[ "https://serverfault.com/questions/233574", "https://serverfault.com", "https://serverfault.com/users/546/" ]
Here's an example for some criteria you'll want to consider when selecting a firewall in the scenario you described: 1. Feature set - Make sure it'll perform your immediate and potential future purposes. 2. Performance - Co-location generally provides good network connectivity and throughput. Make sure the device you ...
Alternatively - get a Mikrotik RB1100 and see how far it lasts (50mbit for smallish packets was on the table by someone running game servers). It is CHEAP and has a TON of features in RouterOS. Uses very little power, too. Then later you can upgrade to something more powerfull if needed. Again, the RB1100 is CHEAP to...