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
1,050,187
I have a HP ProBook with Windows 10. My keyboard just started acting super strange. When I press certain keys (shift, arrow keys, etc.), it acts weird; however, all the letter and number keys work fine. I went to a laptop repair shop today and they said it seems to be a software problem. They advised me to install W...
2016/03/08
[ "https://superuser.com/questions/1050187", "https://superuser.com", "https://superuser.com/users/393183/" ]
Try a USB keyboard and also try whether the issue is reproducible. If the issue is not reproducible, disable the laptop keyboard and use the USB. If the issue is also happening on the USB keyboard check that: 1. The Windows Speech Recognition is turned off 2. Sticky Keys is turned off
Happen on both my laptop and desktop. When it happens I click "alt + tab" then click on a program that seems to fix it.
1,050,187
I have a HP ProBook with Windows 10. My keyboard just started acting super strange. When I press certain keys (shift, arrow keys, etc.), it acts weird; however, all the letter and number keys work fine. I went to a laptop repair shop today and they said it seems to be a software problem. They advised me to install W...
2016/03/08
[ "https://superuser.com/questions/1050187", "https://superuser.com", "https://superuser.com/users/393183/" ]
Try a USB keyboard and also try whether the issue is reproducible. If the issue is not reproducible, disable the laptop keyboard and use the USB. If the issue is also happening on the USB keyboard check that: 1. The Windows Speech Recognition is turned off 2. Sticky Keys is turned off
maybe its a little late, I started having this issues too. It was a Windows update that was causing this. Uninstalled it and everything back to normal. Hope it helps.
1,050,187
I have a HP ProBook with Windows 10. My keyboard just started acting super strange. When I press certain keys (shift, arrow keys, etc.), it acts weird; however, all the letter and number keys work fine. I went to a laptop repair shop today and they said it seems to be a software problem. They advised me to install W...
2016/03/08
[ "https://superuser.com/questions/1050187", "https://superuser.com", "https://superuser.com/users/393183/" ]
@Jamgreen: ok I got it it's the graphic driver hotkey enabled. disable the same. If its intel Graphics, right click-> graphics options-> hot key -> disable. same kind of Steps for other graphics driver.
I'm seeing this on two different Win10 boxes. I think it's related (somehow) to the April 2018 Windows update. On one machine whenever you type the letter "d" into an Excel cell, Excel exits (!). This was fixed by reverting to the previous version of Windows. On another machine, whenever I type "We" into the first l...
1,050,187
I have a HP ProBook with Windows 10. My keyboard just started acting super strange. When I press certain keys (shift, arrow keys, etc.), it acts weird; however, all the letter and number keys work fine. I went to a laptop repair shop today and they said it seems to be a software problem. They advised me to install W...
2016/03/08
[ "https://superuser.com/questions/1050187", "https://superuser.com", "https://superuser.com/users/393183/" ]
I'm seeing this on two different Win10 boxes. I think it's related (somehow) to the April 2018 Windows update. On one machine whenever you type the letter "d" into an Excel cell, Excel exits (!). This was fixed by reverting to the previous version of Windows. On another machine, whenever I type "We" into the first l...
maybe its a little late, I started having this issues too. It was a Windows update that was causing this. Uninstalled it and everything back to normal. Hope it helps.
1,050,187
I have a HP ProBook with Windows 10. My keyboard just started acting super strange. When I press certain keys (shift, arrow keys, etc.), it acts weird; however, all the letter and number keys work fine. I went to a laptop repair shop today and they said it seems to be a software problem. They advised me to install W...
2016/03/08
[ "https://superuser.com/questions/1050187", "https://superuser.com", "https://superuser.com/users/393183/" ]
@Jamgreen: ok I got it it's the graphic driver hotkey enabled. disable the same. If its intel Graphics, right click-> graphics options-> hot key -> disable. same kind of Steps for other graphics driver.
Try to install a new language. In my case, for example, the problem didn't get solved until I installed English (United Kingdom) Language although English (United States) was already installed.
1,050,187
I have a HP ProBook with Windows 10. My keyboard just started acting super strange. When I press certain keys (shift, arrow keys, etc.), it acts weird; however, all the letter and number keys work fine. I went to a laptop repair shop today and they said it seems to be a software problem. They advised me to install W...
2016/03/08
[ "https://superuser.com/questions/1050187", "https://superuser.com", "https://superuser.com/users/393183/" ]
@Jamgreen: ok I got it it's the graphic driver hotkey enabled. disable the same. If its intel Graphics, right click-> graphics options-> hot key -> disable. same kind of Steps for other graphics driver.
Happen on both my laptop and desktop. When it happens I click "alt + tab" then click on a program that seems to fix it.
55,892,495
I am building an app that has to be able to take an order and send it to a specific WhatsApp number. What exactly am I supposed to do? I can open WhatsApp but I can't figure out how to send a message when opening it. ``` title: new Text("WhatsApp"), trailing: new Icon(Icons.message), onTap: (...
2019/04/28
[ "https://Stackoverflow.com/questions/55892495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10284755/" ]
Use the plugin. > > [url\_launcher](https://pub.dev/packages/url_launcher) > > > Using the following link : <https://api.whatsapp.com/send?phone=XXXXXXXXXXX> (In place of the Xs type the phone number of the person you want to contact, including the country code, but without the + sign.) > > > ``` > RaisedButto...
Try flutter\_open\_whatsapp plugin.You Directly Send Message to Number ``` FlutterOpenWhatsapp.sendSingleMessage("918179015345", "Hello"); ``` Link [Open in WhatsApp](https://pub.dev/packages/flutter_open_whatsapp)
55,892,495
I am building an app that has to be able to take an order and send it to a specific WhatsApp number. What exactly am I supposed to do? I can open WhatsApp but I can't figure out how to send a message when opening it. ``` title: new Text("WhatsApp"), trailing: new Icon(Icons.message), onTap: (...
2019/04/28
[ "https://Stackoverflow.com/questions/55892495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10284755/" ]
Use the plugin. > > [url\_launcher](https://pub.dev/packages/url_launcher) > > > Using the following link : <https://api.whatsapp.com/send?phone=XXXXXXXXXXX> (In place of the Xs type the phone number of the person you want to contact, including the country code, but without the + sign.) > > > ``` > RaisedButto...
You can do it like this. ``` onPressed: () async { for (var msg in msgList) { if (msg["phone"] != null) { var url = "${baseURL}91${msg['phone']}&text=${msg['messages']}"; print(url); AndroidIntent intent = AndroidIntent( action:...
55,892,495
I am building an app that has to be able to take an order and send it to a specific WhatsApp number. What exactly am I supposed to do? I can open WhatsApp but I can't figure out how to send a message when opening it. ``` title: new Text("WhatsApp"), trailing: new Icon(Icons.message), onTap: (...
2019/04/28
[ "https://Stackoverflow.com/questions/55892495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10284755/" ]
Use the plugin. > > [url\_launcher](https://pub.dev/packages/url_launcher) > > > Using the following link : <https://api.whatsapp.com/send?phone=XXXXXXXXXXX> (In place of the Xs type the phone number of the person you want to contact, including the country code, but without the + sign.) > > > ``` > RaisedButto...
Use [whatsapp\_share](https://pub.dev/packages/whatsapp_share) package This launches whatsApp with respective number and prefills the text field. * for text and link ``` Future<void> share() async { await WhatsappShare.share( text: 'Whatsapp share text', linkUrl: 'https://flutter.dev/', phone:...
55,892,495
I am building an app that has to be able to take an order and send it to a specific WhatsApp number. What exactly am I supposed to do? I can open WhatsApp but I can't figure out how to send a message when opening it. ``` title: new Text("WhatsApp"), trailing: new Icon(Icons.message), onTap: (...
2019/04/28
[ "https://Stackoverflow.com/questions/55892495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10284755/" ]
Try flutter\_open\_whatsapp plugin.You Directly Send Message to Number ``` FlutterOpenWhatsapp.sendSingleMessage("918179015345", "Hello"); ``` Link [Open in WhatsApp](https://pub.dev/packages/flutter_open_whatsapp)
You can do it like this. ``` onPressed: () async { for (var msg in msgList) { if (msg["phone"] != null) { var url = "${baseURL}91${msg['phone']}&text=${msg['messages']}"; print(url); AndroidIntent intent = AndroidIntent( action:...
55,892,495
I am building an app that has to be able to take an order and send it to a specific WhatsApp number. What exactly am I supposed to do? I can open WhatsApp but I can't figure out how to send a message when opening it. ``` title: new Text("WhatsApp"), trailing: new Icon(Icons.message), onTap: (...
2019/04/28
[ "https://Stackoverflow.com/questions/55892495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10284755/" ]
Try flutter\_open\_whatsapp plugin.You Directly Send Message to Number ``` FlutterOpenWhatsapp.sendSingleMessage("918179015345", "Hello"); ``` Link [Open in WhatsApp](https://pub.dev/packages/flutter_open_whatsapp)
Use [whatsapp\_share](https://pub.dev/packages/whatsapp_share) package This launches whatsApp with respective number and prefills the text field. * for text and link ``` Future<void> share() async { await WhatsappShare.share( text: 'Whatsapp share text', linkUrl: 'https://flutter.dev/', phone:...
36,669,194
I'm using the `PreferenceFragmentCompat` and I'm not able to find a method to override when a value (in my case from a `ListPreference`) is edited. I just want to react to a chosen value immediately. Thanks for help!
2016/04/16
[ "https://Stackoverflow.com/questions/36669194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6214138/" ]
I found another way to subscribe to all changes of all preferences: [SharedPreferences.OnSharedPreferencesChangeListener](http://developer.android.com/reference/android/content/SharedPreferences.OnSharedPreferenceChangeListener.html). The code with the two alternatives looks like this: ``` import android.content.Share...
I believe you are looking for the Interface definition for a callback to be invoked when a Preference is clicked: [Preference.OnPreferenceClickListener](http://developer.android.com/reference/android/support/v7/preference/Preference.OnPreferenceClickListener.html) ======================================================...
27,236,046
I'm trying to implement a cluster marker on my map, and it is behaving a little strange, first, it shows me the cluster marker but also shows me the point markers, that shouldn't be happening, and when I zoom in the cluster marker still showing, i'll add some images to explain it better. ![enter image description here...
2014/12/01
[ "https://Stackoverflow.com/questions/27236046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4301001/" ]
Firstly, you need to define, when your `ClusterManager` should clusterize, so there is a method in `MyClusterRenderer` you should override: ``` @Override protected boolean shouldRenderAsCluster(Cluster<MyItem> cluster) { return cluster.getSize() > 3; // when count of markers is more than 3, render as cluster } ``...
I know that this is an old post, but today I had the same issue. After spend hour trying to solve, I finally got what happen with my application: The thing is that the cluster manager is working correctly, the problem is that my method which populates the map was being called twice. To solve this issue just add `mMap...
27,236,046
I'm trying to implement a cluster marker on my map, and it is behaving a little strange, first, it shows me the cluster marker but also shows me the point markers, that shouldn't be happening, and when I zoom in the cluster marker still showing, i'll add some images to explain it better. ![enter image description here...
2014/12/01
[ "https://Stackoverflow.com/questions/27236046", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4301001/" ]
Firstly, you need to define, when your `ClusterManager` should clusterize, so there is a method in `MyClusterRenderer` you should override: ``` @Override protected boolean shouldRenderAsCluster(Cluster<MyItem> cluster) { return cluster.getSize() > 3; // when count of markers is more than 3, render as cluster } ``...
I had this issue and solved it by making sure that the ClusterManager was only being created and assigned once to the map, try putting and if statement in your create method. Most likely when you are initialising the map again in onResume that is causing the issue. ``` public void onMapReady(GoogleMap googleMap) ...
13,007,733
I have a development environment running on a Solaris 10 box. The vcs used is currently SCCS. It is planned to move this environment to a new box running Solaris 11. I was thinking of using this as an opportunity to move to a new vcs system, most likely Git. I was wondering is it a case that we would have to just star...
2012/10/22
[ "https://Stackoverflow.com/questions/13007733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/523098/" ]
You *could* try and execute a script like **[sccs2git](http://cpansearch.perl.org/src/HMBRAND/VCS-SCCS-0.24/examples/sccs2git-r)**, trying to import the full history into a new Git repo. However, it is best to check if the content of that legacy repo wouldn't be best managed in *several* Git repos (split), and if you ...
The need to do this must be increasingly rare, but I needed to do it today, for a curses-based program from 1986. (Surprisingly, it needed very little tweaking to make it run on a modern system.) I came here looking for an answer, but neither of the two previous ones worked for me, mostly because the scripts and utili...
13,007,733
I have a development environment running on a Solaris 10 box. The vcs used is currently SCCS. It is planned to move this environment to a new box running Solaris 11. I was thinking of using this as an opportunity to move to a new vcs system, most likely Git. I was wondering is it a case that we would have to just star...
2012/10/22
[ "https://Stackoverflow.com/questions/13007733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/523098/" ]
There seems to be a “SCCS2Git” script, mentioned [here](http://search.cpan.org/~hmbrand/VCS-SCCS-0.24/SCCS.pm#TODO). It’s in the TODO section, so one can only guess its status, but the sourcecode is available and it was “recently” (in 2015) [moved to GitHub](https://github.com/Tux/VCS-SCCS) where it’s somewhat actively...
The need to do this must be increasingly rare, but I needed to do it today, for a curses-based program from 1986. (Surprisingly, it needed very little tweaking to make it run on a modern system.) I came here looking for an answer, but neither of the two previous ones worked for me, mostly because the scripts and utili...
9,153,029
I have one web application and virtual application in Azure. They are separate projects in VS2010 and I have added them to one solution with one Azure deployment project. I have created multiple web.configs to control parameters, ie web.debug.config etc. When I publish to azure I specify debug which works for the mai...
2012/02/05
[ "https://Stackoverflow.com/questions/9153029", "https://Stackoverflow.com", "https://Stackoverflow.com/users/909301/" ]
First I would suggest you move your move all your onclick code into a function and then call that function on click, like this: ``` window.foo = function(e) { stop2(); document.getElementById('frame').innerHTML='<iframe src="paul-on-paul.html" width="100%" height="600%" scrolling="no" frameborder="no"></iframe...
It seems like iOS is choking on your `stop2()` call. You might want to try detecting if the browser is an iOS device (one simple and not-so-good way of doing that might be with the user-agent string) or (better) check to see if the browser supports that functionality using [Modernizr](http://www.modernizr.com/). Then, ...
5,707,238
I know how to pass a vector to a function, but how do I pass a vector index to a function, or at least specify which index the function is modifying. For example, I'm working on a Car class and it has a vector if wheel pointers and in order to remove one of the wheels my function looks like this: ``` Wheel& remove() {...
2011/04/18
[ "https://Stackoverflow.com/questions/5707238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/713941/" ]
You can achive this like this: ``` <Label Height="25" Margin="26,27,116,0" Name="label1" VerticalAlignment="Top"> <Hyperlink Click="Hyperlink_Click">Click Me</Hyperlink> </Label> ``` and handle it like this: ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { Window2 form2 = new Window2(); ...
You could just handle the click event: ``` <Hyperlink Click="Hyperlink_Click">Link</Hyperlink> ``` ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { Dialogue diag = new Dialogue(); diag.Show(); } ``` --- You could also go crazy with XAML: ``` <Hyperlink> <Hyperlink.Style> <...
5,707,238
I know how to pass a vector to a function, but how do I pass a vector index to a function, or at least specify which index the function is modifying. For example, I'm working on a Car class and it has a vector if wheel pointers and in order to remove one of the wheels my function looks like this: ``` Wheel& remove() {...
2011/04/18
[ "https://Stackoverflow.com/questions/5707238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/713941/" ]
You could just handle the click event: ``` <Hyperlink Click="Hyperlink_Click">Link</Hyperlink> ``` ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { Dialogue diag = new Dialogue(); diag.Show(); } ``` --- You could also go crazy with XAML: ``` <Hyperlink> <Hyperlink.Style> <...
XAML : ``` <TextBlock Height="23" HorizontalAlignment="Left" Margin="254,130,0,0" Name="textBlock1" VerticalAlignment="Top"> <Hyperlink Click="Hyperlink_Click">Clique Aqui</Hyperlink> </TextBlock> ``` CodeBehind : ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { ...
5,707,238
I know how to pass a vector to a function, but how do I pass a vector index to a function, or at least specify which index the function is modifying. For example, I'm working on a Car class and it has a vector if wheel pointers and in order to remove one of the wheels my function looks like this: ``` Wheel& remove() {...
2011/04/18
[ "https://Stackoverflow.com/questions/5707238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/713941/" ]
You could just handle the click event: ``` <Hyperlink Click="Hyperlink_Click">Link</Hyperlink> ``` ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { Dialogue diag = new Dialogue(); diag.Show(); } ``` --- You could also go crazy with XAML: ``` <Hyperlink> <Hyperlink.Style> <...
And using MVVM you can do in your View ``` <Hyperlink NavigateUri="{Binding MyUri}" Command="{Binding OpenHyperlinkCommand}">Link text </Hyperlink> ``` and in your ViewModel ``` private ICommand _openHyperlinkCommand; public ICommand OpenHyperlinkCommand { get { if (_openHyperlinkCommand...
5,707,238
I know how to pass a vector to a function, but how do I pass a vector index to a function, or at least specify which index the function is modifying. For example, I'm working on a Car class and it has a vector if wheel pointers and in order to remove one of the wheels my function looks like this: ``` Wheel& remove() {...
2011/04/18
[ "https://Stackoverflow.com/questions/5707238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/713941/" ]
You can achive this like this: ``` <Label Height="25" Margin="26,27,116,0" Name="label1" VerticalAlignment="Top"> <Hyperlink Click="Hyperlink_Click">Click Me</Hyperlink> </Label> ``` and handle it like this: ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { Window2 form2 = new Window2(); ...
XAML : ``` <TextBlock Height="23" HorizontalAlignment="Left" Margin="254,130,0,0" Name="textBlock1" VerticalAlignment="Top"> <Hyperlink Click="Hyperlink_Click">Clique Aqui</Hyperlink> </TextBlock> ``` CodeBehind : ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { ...
5,707,238
I know how to pass a vector to a function, but how do I pass a vector index to a function, or at least specify which index the function is modifying. For example, I'm working on a Car class and it has a vector if wheel pointers and in order to remove one of the wheels my function looks like this: ``` Wheel& remove() {...
2011/04/18
[ "https://Stackoverflow.com/questions/5707238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/713941/" ]
You can achive this like this: ``` <Label Height="25" Margin="26,27,116,0" Name="label1" VerticalAlignment="Top"> <Hyperlink Click="Hyperlink_Click">Click Me</Hyperlink> </Label> ``` and handle it like this: ``` private void Hyperlink_Click(object sender, RoutedEventArgs e) { Window2 form2 = new Window2(); ...
And using MVVM you can do in your View ``` <Hyperlink NavigateUri="{Binding MyUri}" Command="{Binding OpenHyperlinkCommand}">Link text </Hyperlink> ``` and in your ViewModel ``` private ICommand _openHyperlinkCommand; public ICommand OpenHyperlinkCommand { get { if (_openHyperlinkCommand...
13,855,988
Okay, Now I am able to parse space which was my previous problem. Now my parser is almost ready but has a defect which I am unable to figure out. I am able to retrieve Data after segments(see code) and data in between pipes. What I am not able to get to is a level up and retrieve data which is contained between pipes ...
2012/12/13
[ "https://Stackoverflow.com/questions/13855988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839624/" ]
Use method `Sting.split()`. Think about all your delimiters and put they all as an argument to split. Be aware that split works with regex, so special characters like `|` must be escaped. For example line: `String[] tokens = str.split("[\\s+\\|]");` should create expected tokens from your input.
Scanner() by default has space as delimeter. So if you do scanner.next() again then you will get the remaining input part, '4'. You can set your own delimeter by using `usedelimeter(String pattern)` api of Scanner class.
13,855,988
Okay, Now I am able to parse space which was my previous problem. Now my parser is almost ready but has a defect which I am unable to figure out. I am able to retrieve Data after segments(see code) and data in between pipes. What I am not able to get to is a level up and retrieve data which is contained between pipes ...
2012/12/13
[ "https://Stackoverflow.com/questions/13855988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839624/" ]
This will transform your input to your desired output (save the classes in two different files) > > Parser.java > > > ``` public class Parser { public static final String ELEMENT_DELIM_REGEX = "\\|"; public static void main(String[] args) { String input = "A|1|2|3^4|"; String[] tokens = ...
Use method `Sting.split()`. Think about all your delimiters and put they all as an argument to split. Be aware that split works with regex, so special characters like `|` must be escaped. For example line: `String[] tokens = str.split("[\\s+\\|]");` should create expected tokens from your input.
13,855,988
Okay, Now I am able to parse space which was my previous problem. Now my parser is almost ready but has a defect which I am unable to figure out. I am able to retrieve Data after segments(see code) and data in between pipes. What I am not able to get to is a level up and retrieve data which is contained between pipes ...
2012/12/13
[ "https://Stackoverflow.com/questions/13855988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839624/" ]
This will transform your input to your desired output (save the classes in two different files) > > Parser.java > > > ``` public class Parser { public static final String ELEMENT_DELIM_REGEX = "\\|"; public static void main(String[] args) { String input = "A|1|2|3^4|"; String[] tokens = ...
Scanner() by default has space as delimeter. So if you do scanner.next() again then you will get the remaining input part, '4'. You can set your own delimeter by using `usedelimeter(String pattern)` api of Scanner class.
71,179,754
I am seeing typescript error with following code even though i mentioned as Record<"abc", string> ? ``` interface IFoo { key ?: | string | Record<"abc", string> | boolean | string[] } const test: IFoo = {key: {abc: "Hi"}} console.log(test?.key?.abc); Property 'abc' does not exist on type 'string | R...
2022/02/18
[ "https://Stackoverflow.com/questions/71179754", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6406266/" ]
Since `test?.key` can be something else other than Record<"abc", string>, you can't access the property `abc`. You could use a type coercion or type guards instead: ``` const key = test?.key; if (isAbcRecord(key)) console.log(key.abc); function isAbcRecord(v: unknown): v is Record<"abc", string> { return v && t...
I would go for restricted generics: ``` interface IFoo <T extends string | Record<"abc", string> | boolean | string[]>{ key ?:T } const test: IFoo<Record<"abc",string>> = {key: {abc: "Hi"}} console.log(test?.key?.abc); ```
16,437,761
When we are making images for android app, I wanted to know which way is correct for making **XHDPI**, **HDPI**, **MDPI**, **LDPI**. (both may be wrong) **The first way** is get the original image, open in photoshop, change the DPI to 320 (the original has 326 DPI) then save the image as XHDPI, then change the DPI to ...
2013/05/08
[ "https://Stackoverflow.com/questions/16437761", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2361731/" ]
Sorry, i'm a little bit late but this can help other people too. I use the free plugin ["Cut&Slice me"](http://www.cutandslice.me/). It's very easy to use. Just click on the layer you want to export and the plugin automatically create folders (drawable-xhdpi, drawable-hdpi...) and put them on. I hope this can help y...
I guess you can use the [asset studio](http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html) webapp instead. It's really convenient. Choose the option you need depending on the use you are going to give to the icons (it's not the same a notification icon than a launcher icon, for instance).
431,606
I recently updated my system via `sudo pacman -Syu`. Afterwards, I proceeded to open Google Chrome, but it failed. When I tried to start it via the terminal I got the error. > > /usr/bin/google-chrome: error while loading shared libraries: libudev.so.0: cannot open > shared object file: No such file or directory > ...
2012/06/01
[ "https://superuser.com/questions/431606", "https://superuser.com", "https://superuser.com/users/-1/" ]
If you installed it from AUR, reinstall (`yaourt -S`) and then it will work again. A link to `/usr/lib/libudev.so.1.0.1` will be created in the `google-chrome` folder.
The reason for this error is because of the transition from `udev` to `systemd-tools`. During this update `/usr/lib/libudev.so.0` is renamed `/usr/lib/libudev.so.1.0.1`. A nasty, dirty hack which just happens to work is to create a symbolic link from the later to the former. Like so. ``` # ln -sf /usr/lib/libudev.so....
15,059,140
I have been advised to use this in my script ``` curl -X POST https://api.twilio.com/2010-04-01/Accounts/HIDDEN/SMS/Messages.json \ -u HIDDEN\ -d "From=+442033228389" \ -d "To=hidden" \ -d 'Body=test' ``` But a simple cut and paste does not do the trick? How would I go about ...
2013/02/25
[ "https://Stackoverflow.com/questions/15059140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1968541/" ]
You need to rebuild the view. Use this in your program document or console command: ``` load updall yourdb.nsf -T yourview -R ``` According to help -R means "Rebuilds all used views." so -T option may not work. But if you run this only once a month it's OK (and even a good thing) to rebuild all views.
Actually before updall event,you usually should: ``` load fixup yourdb.nsf ``` The program documents is a good way.
15,059,140
I have been advised to use this in my script ``` curl -X POST https://api.twilio.com/2010-04-01/Accounts/HIDDEN/SMS/Messages.json \ -u HIDDEN\ -d "From=+442033228389" \ -d "To=hidden" \ -d 'Body=test' ``` But a simple cut and paste does not do the trick? How would I go about ...
2013/02/25
[ "https://Stackoverflow.com/questions/15059140", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1968541/" ]
You can refresh a single view in script: ``` ... dim vw as notesView Set vw = db.GetView("All") Call vw.Refresh ... ``` This will refresh the back-end view index and not update any views displayed in UI, but should work as expected in a scheduled agent.
Actually before updall event,you usually should: ``` load fixup yourdb.nsf ``` The program documents is a good way.
930
The following stanza is from Robert Frost's *Into My Own*: > > One of my wishes is that those dark trees, > > So old and firm they scarcely show the breeze, > > Were not, as ’twere, the merest mask of gloom, > > But stretched away unto the **edge of doom**. > > > (Emphasis mine.) I am guessing that t...
2017/01/25
[ "https://literature.stackexchange.com/questions/930", "https://literature.stackexchange.com", "https://literature.stackexchange.com/users/286/" ]
Your reading of the poem makes sense. It might help to know that the dark trees are symbolizing the future in this poem. The second line tells us that these trees rarely show a breeze. This means that we cannot predict the future. In the fourth line, Frost expresses his wish that those dark trees in the first line we...
The author could be alluding to Shakespeare's [*Macbeth* (Act IV, Scene 1, with the witches)](http://www.gutenberg.org/cache/epub/2264/pg2264.html) : > > A shew of eight Kings, and Banquo last, with a glasse in his hand. > > > Macb. Thou art too like the Spirit of Banquo: Down: > > > Thy Crowne do's seare mine Ey...
930
The following stanza is from Robert Frost's *Into My Own*: > > One of my wishes is that those dark trees, > > So old and firm they scarcely show the breeze, > > Were not, as ’twere, the merest mask of gloom, > > But stretched away unto the **edge of doom**. > > > (Emphasis mine.) I am guessing that t...
2017/01/25
[ "https://literature.stackexchange.com/questions/930", "https://literature.stackexchange.com", "https://literature.stackexchange.com/users/286/" ]
Your reading of the poem makes sense. It might help to know that the dark trees are symbolizing the future in this poem. The second line tells us that these trees rarely show a breeze. This means that we cannot predict the future. In the fourth line, Frost expresses his wish that those dark trees in the first line we...
In Sonnet 116 of Shakespeare, we also find the phrase "the edge of doom": > > Love's not Time's fool, though rosy lips and cheeks > > Within his bending sickle's compass come; > > Love alters not with his brief hours and weeks, > > But bears it out even to **the edge of doom**. > > > Indeed, it sugges...
930
The following stanza is from Robert Frost's *Into My Own*: > > One of my wishes is that those dark trees, > > So old and firm they scarcely show the breeze, > > Were not, as ’twere, the merest mask of gloom, > > But stretched away unto the **edge of doom**. > > > (Emphasis mine.) I am guessing that t...
2017/01/25
[ "https://literature.stackexchange.com/questions/930", "https://literature.stackexchange.com", "https://literature.stackexchange.com/users/286/" ]
Your reading of the poem makes sense. It might help to know that the dark trees are symbolizing the future in this poem. The second line tells us that these trees rarely show a breeze. This means that we cannot predict the future. In the fourth line, Frost expresses his wish that those dark trees in the first line we...
The phrase “the edge of doom” comes from Shakespeare’s [sonnet 116](https://archive.org/details/shakespearesson01shakgoog/page/n108/mode/2up): > > Loue alters not with his breefe houres and weekes, > > But beares it out euen to the edge of doome > > > “Doom” means “fate” or “judgement” and here it is being use...
930
The following stanza is from Robert Frost's *Into My Own*: > > One of my wishes is that those dark trees, > > So old and firm they scarcely show the breeze, > > Were not, as ’twere, the merest mask of gloom, > > But stretched away unto the **edge of doom**. > > > (Emphasis mine.) I am guessing that t...
2017/01/25
[ "https://literature.stackexchange.com/questions/930", "https://literature.stackexchange.com", "https://literature.stackexchange.com/users/286/" ]
The author could be alluding to Shakespeare's [*Macbeth* (Act IV, Scene 1, with the witches)](http://www.gutenberg.org/cache/epub/2264/pg2264.html) : > > A shew of eight Kings, and Banquo last, with a glasse in his hand. > > > Macb. Thou art too like the Spirit of Banquo: Down: > > > Thy Crowne do's seare mine Ey...
The phrase “the edge of doom” comes from Shakespeare’s [sonnet 116](https://archive.org/details/shakespearesson01shakgoog/page/n108/mode/2up): > > Loue alters not with his breefe houres and weekes, > > But beares it out euen to the edge of doome > > > “Doom” means “fate” or “judgement” and here it is being use...
930
The following stanza is from Robert Frost's *Into My Own*: > > One of my wishes is that those dark trees, > > So old and firm they scarcely show the breeze, > > Were not, as ’twere, the merest mask of gloom, > > But stretched away unto the **edge of doom**. > > > (Emphasis mine.) I am guessing that t...
2017/01/25
[ "https://literature.stackexchange.com/questions/930", "https://literature.stackexchange.com", "https://literature.stackexchange.com/users/286/" ]
In Sonnet 116 of Shakespeare, we also find the phrase "the edge of doom": > > Love's not Time's fool, though rosy lips and cheeks > > Within his bending sickle's compass come; > > Love alters not with his brief hours and weeks, > > But bears it out even to **the edge of doom**. > > > Indeed, it sugges...
The phrase “the edge of doom” comes from Shakespeare’s [sonnet 116](https://archive.org/details/shakespearesson01shakgoog/page/n108/mode/2up): > > Loue alters not with his breefe houres and weekes, > > But beares it out euen to the edge of doome > > > “Doom” means “fate” or “judgement” and here it is being use...
43,674,977
I get different results when I use a subquery or a JOIN. The query are these: ```sql SELECT COUNT(*) FROM table2 WHERE table2.id NOT IN ( SELECT fkfield FROM table1 ) ``` and ```sql SELECT COUNT(*) FROM table2 LEFT JOIN table1 ON table1.fkfield = table2.id WHERE table1.id IS NUL...
2017/04/28
[ "https://Stackoverflow.com/questions/43674977", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4151290/" ]
Well to answer your questions and clarify things here: > > I thought `g()` should return `1` but it was `2`. > > > No `g()` doesn't return anything, it don't have a `return` statement, so it won't return `1` nor `2`. > > And why `x` return `undefined` after I invoked `g()`? > > > And `x` is local to `f` fu...
As you can see : ``` g = function () { x = 2; }; ``` Doesn't have a return statement ~~AND is declared within `f`'s scope (therefore not accessible through the global scope)~~ ; therefore it'll not return any value (hints the undefined). For `f` : ``` var f = function () { var x = 1; g = functi...
18,333,402
I have: ``` Row 114005: Requester Name: "RETAIL\S2343W01$" Issued Common Name: "S2343W01.retail.fakename.com" User Principal Name: "S2343W01.retail.fakename.com" Serial Number: "4c22be0100010002d317" Certificate Template: Client Authentication - Retail Desktops Certificate Effective Date: 12/1/2011 10:38 AM Certificat...
2013/08/20
[ "https://Stackoverflow.com/questions/18333402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The way sockets work in node.js is quite a bit different from the way normal requests work. There is no routing, so rather than listening to a url, you have to listen to all sockets. The default behavior of `socket.io` is to close any socket connections that it doesn't recognize. To fix this, you'll need to add the fla...
Ok solution is simple (unfortunately half day of debugging and now it's simple :)). There is an option 'destroy upgrade' for upgrade requests coming from non-socketio clients. Since Websocket (module 'ws') is using the same requests some of them might be for 'ws' not for 'socket.io'. So this option should be disabled...
18,333,402
I have: ``` Row 114005: Requester Name: "RETAIL\S2343W01$" Issued Common Name: "S2343W01.retail.fakename.com" User Principal Name: "S2343W01.retail.fakename.com" Serial Number: "4c22be0100010002d317" Certificate Template: Client Authentication - Retail Desktops Certificate Effective Date: 12/1/2011 10:38 AM Certificat...
2013/08/20
[ "https://Stackoverflow.com/questions/18333402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
The way sockets work in node.js is quite a bit different from the way normal requests work. There is no routing, so rather than listening to a url, you have to listen to all sockets. The default behavior of `socket.io` is to close any socket connections that it doesn't recognize. To fix this, you'll need to add the fla...
Update for 2016: ``` io.disable('destroy upgrade'); ``` seems not to be available anymore. But I succeeded by assigning the websocket module ws a path (using Express): ``` var wss = new WebSocketServer({ server: server, path: '/ws' }); //do not interfere with socket.io ``` Of course the client has the same path ...
11,040,874
I have example values in column like this: ``` values ------- 89 65 56 78 74 73 45 23 5 654 643 543 345 255 233 109 43 23 2 ``` The values are rising up and then fa...
2012/06/14
[ "https://Stackoverflow.com/questions/11040874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1457132/" ]
Okay, here is my try. However, you need to add an Identity field (which I called "AddSequence") that starts with 1 for the first value ("2") and increments by one for every other value. ``` SELECT SUM(C.Diff) FROM ( SELECT CASE WHEN (A.[Value] - (SELECT [Value] FROM [TestValue] AS B WHERE B.[AddSequence]= A.[AddSeque...
I think you are looking for something like: ``` SELECT SUM(a - b)) as sum_of_differences FROM ... ```
11,040,874
I have example values in column like this: ``` values ------- 89 65 56 78 74 73 45 23 5 654 643 543 345 255 233 109 43 23 2 ``` The values are rising up and then fa...
2012/06/14
[ "https://Stackoverflow.com/questions/11040874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1457132/" ]
Okay, here is my try. However, you need to add an Identity field (which I called "AddSequence") that starts with 1 for the first value ("2") and increments by one for every other value. ``` SELECT SUM(C.Diff) FROM ( SELECT CASE WHEN (A.[Value] - (SELECT [Value] FROM [TestValue] AS B WHERE B.[AddSequence]= A.[AddSeque...
**EDITED - BASED OFF OF YOUR QUESTION EDIT** (T-SQL) I don't know how you can do this without adding an Id. If you ad an Id - this gives the exact output you had posted before your edit. There's probably a better way, but this is quick and dirty - for a one time shot. Using a `SELF JOIN`. Differences was the name of y...
11,040,874
I have example values in column like this: ``` values ------- 89 65 56 78 74 73 45 23 5 654 643 543 345 255 233 109 43 23 2 ``` The values are rising up and then fa...
2012/06/14
[ "https://Stackoverflow.com/questions/11040874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1457132/" ]
Okay, here is my try. However, you need to add an Identity field (which I called "AddSequence") that starts with 1 for the first value ("2") and increments by one for every other value. ``` SELECT SUM(C.Diff) FROM ( SELECT CASE WHEN (A.[Value] - (SELECT [Value] FROM [TestValue] AS B WHERE B.[AddSequence]= A.[AddSeque...
I think you want this for the differences, I've tested it in sqlite ``` SELECT CASE WHEN (v.value - val) < 0 THEN 0 ELSE (v.value - val) END AS differences FROM v, (SELECT rowid, value AS val FROM v WHERE rowid > 1) as next_val WHERE v.rowid = next_val.rowid - 1 ``` as for the sums ``` SELECT SUM(differences) FROM ...
33,486,460
I'm noticing that when changing my SeekBar's progressBackgroundTint attribute, it gets completely ignored and has no effect. It doesn't matter what color I set it to; it always shows as gray on my device. Is this a bug with Android, or am I doing something wrong? When I switch the preview in Android Studio to v22, it g...
2015/11/02
[ "https://Stackoverflow.com/questions/33486460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2163245/" ]
Try this library. It works great simple <https://github.com/ahmedrizwan/SeekBarCompat>
try using android:progressTint along with android:progressBackgroundTint ``` <ProgressBar android:progress="100" android:progressBackgroundTint="@color/buttonPrimary" android:progressTint="@color/buttonPrimary" android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal" ...
33,486,460
I'm noticing that when changing my SeekBar's progressBackgroundTint attribute, it gets completely ignored and has no effect. It doesn't matter what color I set it to; it always shows as gray on my device. Is this a bug with Android, or am I doing something wrong? When I switch the preview in Android Studio to v22, it g...
2015/11/02
[ "https://Stackoverflow.com/questions/33486460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2163245/" ]
Try this library. It works great simple <https://github.com/ahmedrizwan/SeekBarCompat>
I just discovered this issue and then found out that the material components provide a `Slider` that works pretty much the same way and doesn't have this issue. Check out details here <https://developer.android.com/reference/com/google/android/material/slider/Slider>
42,995,684
I am working on **two different** projects, Both uses different maven `.settings.xml` files. When I switch between the projects, it re downloads all the maven dependencies in repository folder removing previous projects' dependencies. Is there any way I can use two `settings` and it maintains different repository...
2017/03/24
[ "https://Stackoverflow.com/questions/42995684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3925764/" ]
You can try to separate the two projects in different workspaces and you can configure each workspace with eclipse, it is possible because eclipse saves the configuration within each workspace, so you can specify the different repositories with their maven settings.xml files. For to do that, launch **eclipse > go to p...
You can create 2 separate workspaces in Eclipse. In each workspaces, you can provide respective settings.xml file
62,093,042
How can I join two tables together that have dissimilar fields and require different rules to JOIN? An example: ```none tb_references tb_parts ================== ==================== f_type | f_item f_partID | f_partnumber ------------------ -------------------- YY | ...
2020/05/29
[ "https://Stackoverflow.com/questions/62093042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/561488/" ]
You can use a CASE statement. Could be a pain performance wise, though: ``` SELECT * FROM tb_references JOIN tb_parts ON CASE WHEN f_type='yy' THEN 'zz' ELSE f_type END + f_item = f_partnumber ```
If the prefix for f\_partnumber is always 2 in length then you can just replace those with an empty character in the join. ``` SELECT DISTINCT * FROM tb_references r JOIN tb_parts p ON r.f_item = REPLACE(f_partnumber, LEFT(p.f_partnumber, 2), '') ```
22,992,467
``` import time,random,math,sys from random import * Choice = ["1","2","3","4","5","6","7"] PlayerList = [] str1 = 0 str2 = 0 ski1 = 0 ski2 = 0 diffstr = 0 diffski = 0 strmod = 0 skimod = 0 name1 = "" name2 = "" Roll1 = 0 Roll2 = 0 death1 = False death2 = False name1modstr = 0 name2modstr = 0 name1modski = 0 name2mods...
2014/04/10
[ "https://Stackoverflow.com/questions/22992467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3120346/" ]
I think the problem in `NULL`, use this codes ``` SET @body1 = 'Name: ' + isnull(@firstname,'') + ' ' + isnull(@lastname,'') + CHAR(13) + 'Phone number: ' + isnull(@phonenumber,'') + CHAR(13) + 'Description: ' + isnull(@rdesc,'') + CHAR(13); ``` In sql when you concact a string wi...
I have not tested it, but this should work for multiple inserts. ``` CREATE TRIGGER [dbo].[SendEmail_WebContact] ON [dbo].[WebContact] AFTER INSERT AS BEGIN SET NOCOUNT ON; -- Get results into a temp table 1st CREATE TABLE #Mail_Temp ( ID INT IDENTITY(1,1), FirstName VARCHAR(50), LastName VARC...
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
Assign a unique, incrementing ID to each request, and only show them in incrementing order. Something like this: ``` var counter = 0, lastCounter = 0; function doAjax() { ++counter; jQuery.ajax(url, function (result) { if (counter < lastCounter) return; lastCounter = counter; processResult(result...
You should only start the search when the user hasn't typed anything for a while (500ms or so). This would prevent the problem you're having. An excellent jQuery plugin which does just that is **delayedObserver**: <http://code.google.com/p/jquery-utils/wiki/DelayedObserver>
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
Assign a unique, incrementing ID to each request, and only show them in incrementing order. Something like this: ``` var counter = 0, lastCounter = 0; function doAjax() { ++counter; jQuery.ajax(url, function (result) { if (counter < lastCounter) return; lastCounter = counter; processResult(result...
Make it so each cancels the last. That might be too much cancellation, but when typing slows, it will trigger.
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
Assign a unique, incrementing ID to each request, and only show them in incrementing order. Something like this: ``` var counter = 0, lastCounter = 0; function doAjax() { ++counter; jQuery.ajax(url, function (result) { if (counter < lastCounter) return; lastCounter = counter; processResult(result...
That seems like an intense amount of traffic to send an ajax request for every KeyUp event. You should wait for the user to stop typing - presumably that they are done, for at least a few 100 milliseconds. What I would do is this: ``` var ajaxTimeout; function doAjax() { //Your actual ajax request code } funct...
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
Assign a unique, incrementing ID to each request, and only show them in incrementing order. Something like this: ``` var counter = 0, lastCounter = 0; function doAjax() { ++counter; jQuery.ajax(url, function (result) { if (counter < lastCounter) return; lastCounter = counter; processResult(result...
You will want some kind of an ajax queue such as: <http://plugins.jquery.com/project/ajaxqueue> or <http://www.protofunc.com/scripts/jquery/ajaxManager/> EDIT:Another option, study the Autocomplete plug-in code and emulate that.(there are several Autocomplete as well as the one in jquery UI OR just implement the Aut...
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
You can store and [`.abort()`](http://www.w3schools.com/dom/dom_http.asp) the last request when starting a new one, like this: ``` var curSearch; $("#myInput").keyup(function() { if(curSearch) curSearch.abort(); //cancel previous search curSearch = $.ajax({ ...ajax options... }); //start a new one, save a referenc...
Assign a unique, incrementing ID to each request, and only show them in incrementing order. Something like this: ``` var counter = 0, lastCounter = 0; function doAjax() { ++counter; jQuery.ajax(url, function (result) { if (counter < lastCounter) return; lastCounter = counter; processResult(result...
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
You can store and [`.abort()`](http://www.w3schools.com/dom/dom_http.asp) the last request when starting a new one, like this: ``` var curSearch; $("#myInput").keyup(function() { if(curSearch) curSearch.abort(); //cancel previous search curSearch = $.ajax({ ...ajax options... }); //start a new one, save a referenc...
You should only start the search when the user hasn't typed anything for a while (500ms or so). This would prevent the problem you're having. An excellent jQuery plugin which does just that is **delayedObserver**: <http://code.google.com/p/jquery-utils/wiki/DelayedObserver>
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
You can store and [`.abort()`](http://www.w3schools.com/dom/dom_http.asp) the last request when starting a new one, like this: ``` var curSearch; $("#myInput").keyup(function() { if(curSearch) curSearch.abort(); //cancel previous search curSearch = $.ajax({ ...ajax options... }); //start a new one, save a referenc...
Make it so each cancels the last. That might be too much cancellation, but when typing slows, it will trigger.
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
You can store and [`.abort()`](http://www.w3schools.com/dom/dom_http.asp) the last request when starting a new one, like this: ``` var curSearch; $("#myInput").keyup(function() { if(curSearch) curSearch.abort(); //cancel previous search curSearch = $.ajax({ ...ajax options... }); //start a new one, save a referenc...
That seems like an intense amount of traffic to send an ajax request for every KeyUp event. You should wait for the user to stop typing - presumably that they are done, for at least a few 100 milliseconds. What I would do is this: ``` var ajaxTimeout; function doAjax() { //Your actual ajax request code } funct...
3,047,672
I've build a livesearch with the jQuery.ajax() method. On every keyup events it receives new result data from the server. The problem is, when I'm typing very fast, e.g. "foobar" and the GET request of "fooba" requires more time than the "foobar" request, the results of "fooba" are shown. To handle this with the time...
2010/06/15
[ "https://Stackoverflow.com/questions/3047672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/367552/" ]
You can store and [`.abort()`](http://www.w3schools.com/dom/dom_http.asp) the last request when starting a new one, like this: ``` var curSearch; $("#myInput").keyup(function() { if(curSearch) curSearch.abort(); //cancel previous search curSearch = $.ajax({ ...ajax options... }); //start a new one, save a referenc...
You will want some kind of an ajax queue such as: <http://plugins.jquery.com/project/ajaxqueue> or <http://www.protofunc.com/scripts/jquery/ajaxManager/> EDIT:Another option, study the Autocomplete plug-in code and emulate that.(there are several Autocomplete as well as the one in jquery UI OR just implement the Aut...
43,931,077
I have a string format of `MID: ABC-123212-2 - SID: 21354` in a column. Expected result: `ABC-123212-2` and `21354`. Have tried ``` SELECT REGEXP_SUBSTR('MID: ABC-123212-2 - SID: 21354', '\d[0-9-]*', 1, 1) FROM DUAL; SELECT REGEXP_SUBSTR('MID: ABC-123212-2 - SID: 21354', '\d[0-9-]*', 1, 2) FROM DUAL; ``` But the ...
2017/05/12
[ "https://Stackoverflow.com/questions/43931077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/661951/" ]
This will give you what you want and it can handle any white spaces in between fields and separators. **To see how this regex works, see [regex101 Demo](https://regex101.com/r/33JcHm/1)** To see how this query works, see [dbfiddle demo](http://dbfiddle.uk/?rdbms=oracle_11.2&fiddle=85eb069ca97977053dab56929db5aa32) ...
You don't need `REGEXP_SUBSTR()` for this, you can just use basic string functions: ``` SELECT SUBSTR(col, 6, INSTR(col, '- SID:') - 7) AS term1, SUBSTR(col, INSTR(col, 'SID:') + 5) AS term2 FROM yourTable ``` In most cases, I would expect a solution involving the base string functions to outperform a r...
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
change the line: ``` if not "tom" in line: ``` to: ``` if "tom" != line.strip(): ```
That's because ``` if not "tom" in line ``` checks, whether `tom` is not a substring of the current `line`. But in `tom1`, `tom` *is* a substring. Thus, it is deleted. You probably could want one of the following: ``` if not "tom\n"==line # checks for complete (un)identity if "tom\n" != line # checks for complete ...
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
That's because ``` if not "tom" in line ``` checks, whether `tom` is not a substring of the current `line`. But in `tom1`, `tom` *is* a substring. Thus, it is deleted. You probably could want one of the following: ``` if not "tom\n"==line # checks for complete (un)identity if "tom\n" != line # checks for complete ...
You can use regex. ``` import re if not re.match("^tom$", line): output.append(line) ``` The `$` means the end of the string.
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
That's because ``` if not "tom" in line ``` checks, whether `tom` is not a substring of the current `line`. But in `tom1`, `tom` *is* a substring. Thus, it is deleted. You probably could want one of the following: ``` if not "tom\n"==line # checks for complete (un)identity if "tom\n" != line # checks for complete ...
I'm new in programing and python (a few months)... this is my solution: ``` import fileinput c = 0 # counter for line in fileinput.input("korrer.csv", inplace=True, mode="rb"): # the line I want to delete if c == 3: c += 1 pass else: line = line.replace("\n", "") print lin...
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
change the line: ``` if not "tom" in line: ``` to: ``` if "tom" != line.strip(): ```
Just for fun, here's a two-liner to do it. ``` lines = filter(lambda x:x[0:-1]!="tom", open("names.txt", "r")) open("names.txt", "w").write("".join(lines)) ``` Challenge: someone post a one-liner for this. You could also use the fileinput module to get arguably the most readable result: ``` import fileinput for l ...
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
change the line: ``` if not "tom" in line: ``` to: ``` if "tom" != line.strip(): ```
You can use regex. ``` import re if not re.match("^tom$", line): output.append(line) ``` The `$` means the end of the string.
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
change the line: ``` if not "tom" in line: ``` to: ``` if "tom" != line.strip(): ```
I'm new in programing and python (a few months)... this is my solution: ``` import fileinput c = 0 # counter for line in fileinput.input("korrer.csv", inplace=True, mode="rb"): # the line I want to delete if c == 3: c += 1 pass else: line = line.replace("\n", "") print lin...
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
Just for fun, here's a two-liner to do it. ``` lines = filter(lambda x:x[0:-1]!="tom", open("names.txt", "r")) open("names.txt", "w").write("".join(lines)) ``` Challenge: someone post a one-liner for this. You could also use the fileinput module to get arguably the most readable result: ``` import fileinput for l ...
You can use regex. ``` import re if not re.match("^tom$", line): output.append(line) ``` The `$` means the end of the string.
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
Just for fun, here's a two-liner to do it. ``` lines = filter(lambda x:x[0:-1]!="tom", open("names.txt", "r")) open("names.txt", "w").write("".join(lines)) ``` Challenge: someone post a one-liner for this. You could also use the fileinput module to get arguably the most readable result: ``` import fileinput for l ...
I'm new in programing and python (a few months)... this is my solution: ``` import fileinput c = 0 # counter for line in fileinput.input("korrer.csv", inplace=True, mode="rb"): # the line I want to delete if c == 3: c += 1 pass else: line = line.replace("\n", "") print lin...
5,947,833
I'm trying to delete a specific line that contains a specific string. I've a file called **numbers.txt** with the following content: > > peter > > tom > > tom1 > > yan > > > > What I want to delete is that **tom** from the file, so I made this function: ``` def deleteLine(): fn = 'numbers.txt' f ...
2011/05/10
[ "https://Stackoverflow.com/questions/5947833", "https://Stackoverflow.com", "https://Stackoverflow.com/users/746516/" ]
You can use regex. ``` import re if not re.match("^tom$", line): output.append(line) ``` The `$` means the end of the string.
I'm new in programing and python (a few months)... this is my solution: ``` import fileinput c = 0 # counter for line in fileinput.input("korrer.csv", inplace=True, mode="rb"): # the line I want to delete if c == 3: c += 1 pass else: line = line.replace("\n", "") print lin...
244,397
I want to add dynamic rows with a dropdown field.how to add into the catalog product insert area thanks in a advance. [![enter image description here](https://i.stack.imgur.com/0zc3B.png)](https://i.stack.imgur.com/0zc3B.png)
2018/09/29
[ "https://magento.stackexchange.com/questions/244397", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/63275/" ]
Missing di.xml `preference` issue. --- > > app/etc/di.xml > > > ``` <preference for="Magento\Framework\Search\Request\IndexScopeResolverInterface" type="Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver"/> ```
Had this issue as well. It got fixed in 2.2.6 release. [![enter image description here](https://i.stack.imgur.com/AkXsa.png)](https://i.stack.imgur.com/AkXsa.png)
28,194,518
How to add images to JQuery autocomplete which also fills hidden data inputs?
2015/01/28
[ "https://Stackoverflow.com/questions/28194518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4503244/" ]
I would suggest checking out [Sameer's answer to this for Swift 2.0, just a few months back.](https://stackoverflow.com/a/33228074/4851799) Works perfectly with Swift 2.0. ``` let sess = AVAudioSession.sharedInstance() if sess.otherAudioPlaying { _ = try? sess.setCategory(AVAudioSessionCategoryAmbient, withOptions...
Since the default is AVAudioSessionCategorySoloAmbient, you need to set the proper category for your app and activate it. You could use AVAudioSessionCategoryAmbient for mixing audio. Add this in your AppDelegate.swift: ``` func applicationDidBecomeActive(application: UIApplication) { AVAudioSession.sharedInstance(...
28,194,518
How to add images to JQuery autocomplete which also fills hidden data inputs?
2015/01/28
[ "https://Stackoverflow.com/questions/28194518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4503244/" ]
Since the default is AVAudioSessionCategorySoloAmbient, you need to set the proper category for your app and activate it. You could use AVAudioSessionCategoryAmbient for mixing audio. Add this in your AppDelegate.swift: ``` func applicationDidBecomeActive(application: UIApplication) { AVAudioSession.sharedInstance(...
Xcode 10.3 Swift 4.2 Tested in iPhoneX (12.2), iPhone5s(11.0.3) Functionality -> Play audio in silent mode + with other application audio. Here is the code, ``` private func setupAudioSession() { //enable other applications music to play while quizView let options = AVAudioSession.CategoryOptio...
28,194,518
How to add images to JQuery autocomplete which also fills hidden data inputs?
2015/01/28
[ "https://Stackoverflow.com/questions/28194518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4503244/" ]
I would suggest checking out [Sameer's answer to this for Swift 2.0, just a few months back.](https://stackoverflow.com/a/33228074/4851799) Works perfectly with Swift 2.0. ``` let sess = AVAudioSession.sharedInstance() if sess.otherAudioPlaying { _ = try? sess.setCategory(AVAudioSessionCategoryAmbient, withOptions...
Defer `AVAudioSession.sharedInstance().setActive(true, error: nil)` till when you need to start playing audio. Starting the session immediately after the app launches stops playback on other apps. More details: <https://developer.apple.com/documentation/avfoundation/avaudiosession>
28,194,518
How to add images to JQuery autocomplete which also fills hidden data inputs?
2015/01/28
[ "https://Stackoverflow.com/questions/28194518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4503244/" ]
I would suggest checking out [Sameer's answer to this for Swift 2.0, just a few months back.](https://stackoverflow.com/a/33228074/4851799) Works perfectly with Swift 2.0. ``` let sess = AVAudioSession.sharedInstance() if sess.otherAudioPlaying { _ = try? sess.setCategory(AVAudioSessionCategoryAmbient, withOptions...
Xcode 10.3 Swift 4.2 Tested in iPhoneX (12.2), iPhone5s(11.0.3) Functionality -> Play audio in silent mode + with other application audio. Here is the code, ``` private func setupAudioSession() { //enable other applications music to play while quizView let options = AVAudioSession.CategoryOptio...
28,194,518
How to add images to JQuery autocomplete which also fills hidden data inputs?
2015/01/28
[ "https://Stackoverflow.com/questions/28194518", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4503244/" ]
Defer `AVAudioSession.sharedInstance().setActive(true, error: nil)` till when you need to start playing audio. Starting the session immediately after the app launches stops playback on other apps. More details: <https://developer.apple.com/documentation/avfoundation/avaudiosession>
Xcode 10.3 Swift 4.2 Tested in iPhoneX (12.2), iPhone5s(11.0.3) Functionality -> Play audio in silent mode + with other application audio. Here is the code, ``` private func setupAudioSession() { //enable other applications music to play while quizView let options = AVAudioSession.CategoryOptio...
2,153,790
I'm attempting to use the System.Net.Mail.SmtpClient class to relay an email through my company's email server. All SMTP connections to the mail server have to be SSL and it uses a self signed certificate. That's fine for Outlook where you can just click ok on the warning dialogue but does anyone know a way to get Smtp...
2010/01/28
[ "https://Stackoverflow.com/questions/2153790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/75658/" ]
You may take a look at the [ServerCertificateValidationCallback](http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.servercertificatevalidationcallback.aspx) property: ``` ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true; ``` It ...
If you want to be more secure, you might want to look at doing the following: ```cs theClient.EnableSsl = true; ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { if (sender == theClient) { return true; } else { // y...
2,153,790
I'm attempting to use the System.Net.Mail.SmtpClient class to relay an email through my company's email server. All SMTP connections to the mail server have to be SSL and it uses a self signed certificate. That's fine for Outlook where you can just click ok on the warning dialogue but does anyone know a way to get Smtp...
2010/01/28
[ "https://Stackoverflow.com/questions/2153790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/75658/" ]
My issue ended up being that the .Net SmtpClient class apparently doesn't support the use of port 465 for SMTP SSL connections. Using port 25 with a self signed SSL certificate worked correctly. MSDN System.Net forum question [Can SmtpClient be configured to work with a self signed certificate?](http://social.msdn.mic...
If you want to be more secure, you might want to look at doing the following: ```cs theClient.EnableSsl = true; ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => { if (sender == theClient) { return true; } else { // y...
3,496,505
I am studying Terence Tao's *Analysis I*, 3rd ed., on my own. I am trying to prove the following lemma: > > **Lemma 2.2.10**. Let $a$ be a positive number. Then there exists exactly one natural number $b$ such that $b\mathrm{++} = a$. > > > Relevant definitions: * A positive number is a natural number ($\mathbb...
2020/01/03
[ "https://math.stackexchange.com/questions/3496505", "https://math.stackexchange.com", "https://math.stackexchange.com/users/81560/" ]
Let $P(a)$ be the claim $$P(a): \forall a \text{ positive } \exists b \in \mathbb{N} \text{ with } b\mathrm{++} = a\text{.}$$ Consider $P(0)$. By definition $0$ is not positive, so the proof is vacuously true. Suppose $P(0)$ is true. By definition, $1 = 0\mathrm{++}$, and $0 \in \mathbb{N}$, so there is a $b \in \math...
We can tidy it up as thus: to prove each natural $n$ is either $0$ or a successor, we note the base step is trivial and the inductive step works because, regardless of the properties of $k$, $k++$ is a successor.
3,496,505
I am studying Terence Tao's *Analysis I*, 3rd ed., on my own. I am trying to prove the following lemma: > > **Lemma 2.2.10**. Let $a$ be a positive number. Then there exists exactly one natural number $b$ such that $b\mathrm{++} = a$. > > > Relevant definitions: * A positive number is a natural number ($\mathbb...
2020/01/03
[ "https://math.stackexchange.com/questions/3496505", "https://math.stackexchange.com", "https://math.stackexchange.com/users/81560/" ]
Axiom $5$ says that if there is a $b$ so that $b++ = k$ then $b$ is unique. (If $b++ = k$ and $c++ = k$ then $b++ =c++$ and $b = c$). SInce you base case was not for a positive natural number but a natural number that if it were positive (but wasn't) the prop *would* be true, you can't assume that such a natural numbe...
We can tidy it up as thus: to prove each natural $n$ is either $0$ or a successor, we note the base step is trivial and the inductive step works because, regardless of the properties of $k$, $k++$ is a successor.
3,496,505
I am studying Terence Tao's *Analysis I*, 3rd ed., on my own. I am trying to prove the following lemma: > > **Lemma 2.2.10**. Let $a$ be a positive number. Then there exists exactly one natural number $b$ such that $b\mathrm{++} = a$. > > > Relevant definitions: * A positive number is a natural number ($\mathbb...
2020/01/03
[ "https://math.stackexchange.com/questions/3496505", "https://math.stackexchange.com", "https://math.stackexchange.com/users/81560/" ]
Let $P(a)$ be the claim $$P(a): \forall a \text{ positive } \exists b \in \mathbb{N} \text{ with } b\mathrm{++} = a\text{.}$$ Consider $P(0)$. By definition $0$ is not positive, so the proof is vacuously true. Suppose $P(0)$ is true. By definition, $1 = 0\mathrm{++}$, and $0 \in \mathbb{N}$, so there is a $b \in \math...
Axiom $5$ says that if there is a $b$ so that $b++ = k$ then $b$ is unique. (If $b++ = k$ and $c++ = k$ then $b++ =c++$ and $b = c$). SInce you base case was not for a positive natural number but a natural number that if it were positive (but wasn't) the prop *would* be true, you can't assume that such a natural numbe...
11,554
In the Shalya Parva of the Mahabharata, right before Bhima's famous mace battle with Duryodhana, Krishna tells Arjuna that Bhima should fight unfairly, as that's the only way to defeat Duryodhana. He [tells](http://www.sacred-texts.com/hin/m09/m09058.htm) Arjuna that even the gods have resorted to deception in fighting...
2016/04/21
[ "https://hinduism.stackexchange.com/questions/11554", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/36/" ]
I found the answer to my question in [this chapter](http://www.hinduscriptures.in/Content/Articles/PDFs/25345/44f_chapter_18_3.pdf) of the Kedara Kanda of the Skanda Purana. Virochana, like his future son Mahabali, is extremely generous, so Indra approaches him in the form of an old Brahmana beggar and asks him for a g...
From what I remember from seeing on Vishnu Puran teleserial, Virochana knows about the threat to his life by Indra. He is advised to pray to Lord Surya for a crown that grants immortality to anyone who wears it. He obtains it after penance and Indra becomes even more insecure of this. Perhaps either on a pilgrimage or ...
225,324
Why do they (e.g. characters in american movies) say "he's with the FBI" or "she's with O.I.A" instead of for instance "he's from the FBI" or simply "he works for the FBI"? Is the expression "be with " used in any other contexts?
2015/02/03
[ "https://english.stackexchange.com/questions/225324", "https://english.stackexchange.com", "https://english.stackexchange.com/users/77154/" ]
Because it sounds scarier. If someone's from the FBI, the FBI is somewhere else and I'm talking to an employee who's been sent here. But if someone's *with* the FBI, the FBI are *here*! They're talking to me right now!
The FBI is a force to be reckoned with. They are rarely alone, and where there is one, there are usually several more very close nearby. Each operation is backed by the force as a whole. That is probably why the term is "with the FBI" and not "from the FBI".
225,324
Why do they (e.g. characters in american movies) say "he's with the FBI" or "she's with O.I.A" instead of for instance "he's from the FBI" or simply "he works for the FBI"? Is the expression "be with " used in any other contexts?
2015/02/03
[ "https://english.stackexchange.com/questions/225324", "https://english.stackexchange.com", "https://english.stackexchange.com/users/77154/" ]
The word "with" carries connotations of unity, whereas "works for" implies a subordinate position. The word "of" carries only the connotation of "part of" (or sometimes "from") and does not imply authority; neither does "works for." Thus, use of the word "with" implies all the authority of the object. In context, we c...
Because it sounds scarier. If someone's from the FBI, the FBI is somewhere else and I'm talking to an employee who's been sent here. But if someone's *with* the FBI, the FBI are *here*! They're talking to me right now!
225,324
Why do they (e.g. characters in american movies) say "he's with the FBI" or "she's with O.I.A" instead of for instance "he's from the FBI" or simply "he works for the FBI"? Is the expression "be with " used in any other contexts?
2015/02/03
[ "https://english.stackexchange.com/questions/225324", "https://english.stackexchange.com", "https://english.stackexchange.com/users/77154/" ]
The word "with" carries connotations of unity, whereas "works for" implies a subordinate position. The word "of" carries only the connotation of "part of" (or sometimes "from") and does not imply authority; neither does "works for." Thus, use of the word "with" implies all the authority of the object. In context, we c...
The FBI is a force to be reckoned with. They are rarely alone, and where there is one, there are usually several more very close nearby. Each operation is backed by the force as a whole. That is probably why the term is "with the FBI" and not "from the FBI".
220,708
In chrome (chromium running on Ubuntu 10.04 specifically) is there a way to open all bookmarks in a bookmark folder, each in their own new window? I realize that I could just open them all in tabs, then drag each to its own window, but I'd rather not do that extra step for each window. Is this possible? **Update:** N...
2010/12/10
[ "https://superuser.com/questions/220708", "https://superuser.com", "https://superuser.com/users/16133/" ]
This isn't the most streamlined way and it's a bit sloppy, but it mostly works. You can edit the URL part of the bookmark with some javascript. 1. Right click on the bookmarks folder and choose bookmark manager 2. Right click on each of your bookmarks and choose edit 3. In the URL section put this code: `javascript:wi...
Right click on one of the folders in your bookmark bar. You will notice 3 options: Open all bookmarks Open all bookmarks in new window Open all bookmarks in incognito window
220,708
In chrome (chromium running on Ubuntu 10.04 specifically) is there a way to open all bookmarks in a bookmark folder, each in their own new window? I realize that I could just open them all in tabs, then drag each to its own window, but I'd rather not do that extra step for each window. Is this possible? **Update:** N...
2010/12/10
[ "https://superuser.com/questions/220708", "https://superuser.com", "https://superuser.com/users/16133/" ]
1. Just install the extension [New Tab, New Window](https://chrome.google.com/webstore/detail/new-tab-new-window/dndlcbaomdoggooaficldplkcmkfpgff) *(opens all new tabs as new windows)*, 2. Then middle click the bookmark folder *(to open all contained bookmarks)*. -- Leave the extension disabled for normal tab behavio...
Right click on one of the folders in your bookmark bar. You will notice 3 options: Open all bookmarks Open all bookmarks in new window Open all bookmarks in incognito window
39,010,994
I have a CSV with invoice data - e.g.: •Invoice # •PO Ref •Customer Code •Customer Name •Document Date •Product Code •Product Name This CSV will have varying amounts of lines per invoice, which relate to invoice produt lines, which may span multiple invoice numbers. I need to be able to run a ba...
2016/08/18
[ "https://Stackoverflow.com/questions/39010994", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6729257/" ]
actually, that's quite easy with batch: ``` @echo off set file=full.csv REM get header: <full.csv set /p header= REM process file line by line (ignore header): for /f "skip=1 tokens=1,* delims=," %%a in (%file%) do ( if not exist "%%a.csv" echo %header%>"%%a.csv" echo %%a,%%b>>"%%a.csv" ) ``` Split each line i...
Parsing CSV data correctly is not that trivial in batch scripting, so I decided I provide a solution, although you did not show any own research nor share any efforts. Supposing that your CSV file does not contain any global wild-card characters `?` and `*`, the following code snippet might work for you (provide the C...
44,377,495
I see a table that has both db-level and code-level validations in Rails. ``` CREATE UNIQUE INDEX some_index_name ON joined_table_name USING btree (user_id, restriction_id); ``` and code level: ``` class SomeJoinTable validates_uniqueness_of :restriction_id, :scope => :user_id end ``` What's the benefit of having...
2017/06/05
[ "https://Stackoverflow.com/questions/44377495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2714301/" ]
To quote an [excellent article by thoughtbot](https://robots.thoughtbot.com/the-perils-of-uniqueness-validations): > > When you persist a user instance, Rails will validate your model by running a SELECT query to see if any user records already exist with the provided email. Assuming the record proves to be valid, Ra...
> > What's the benefit of having both? > > > Apart from the obvious "Extra security" aspect, having the `validates_uniqueness_of` adds a quality gate on your app side to check before trying to commit. **Without validates\_uniqueness\_of**, it will attempt to query the database to create, so the error returns from...
44,377,495
I see a table that has both db-level and code-level validations in Rails. ``` CREATE UNIQUE INDEX some_index_name ON joined_table_name USING btree (user_id, restriction_id); ``` and code level: ``` class SomeJoinTable validates_uniqueness_of :restriction_id, :scope => :user_id end ``` What's the benefit of having...
2017/06/05
[ "https://Stackoverflow.com/questions/44377495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2714301/" ]
To quote an [excellent article by thoughtbot](https://robots.thoughtbot.com/the-perils-of-uniqueness-validations): > > When you persist a user instance, Rails will validate your model by running a SELECT query to see if any user records already exist with the provided email. Assuming the record proves to be valid, Ra...
> > What's the benefit of having both? > > > The db-level guard is the ultimate protection. It is what keeps your data consistent. The app-level guard, while also doing some checks, can't be relied on to keep your data consistent. Its purpose is to **power ActiveRecord validations** (populate errors array so you ...
54,843,413
I have quite a complicated problem that I need help figuring out. To begin, I have a dataframe: ``` one two three four Date comedy a asad 123 2013-01-18 10:00:00 romantic b fas 563 2015-01-28 12:00:00 comedy c ewf 134 2014-01-22 09:...
2019/02/23
[ "https://Stackoverflow.com/questions/54843413", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Use: ``` #changed data sample for better verify output print (df) one two three four Date 0 comedy a asad 123 2013-01-18 10:00:00 1 romantic b fas 563 2013-01-28 12:00:00 2 comedy c ewf 134 2013-01-22 09:00:00 3 action a qef 561 2013-02-18 18:00:00 4 act...
You could try this: ``` df = pd.DataFrame({'one': [random.choice(['comedy', 'action', 'romantic']) for i in range(1000)], 'Date': pd.date_range(start = '2013-01-01', periods = 1000)}) df.head() one Date 0 romantic 2013-01-01 1 romantic 2013-01-02 2 romantic 2013-01-03 3 ...
90,380
Bats and Whales, and some monsters like the Hook Horror, have blindsight based on hearing. You can tell it's based on hearing because they also have the Echolocation trait that says their blindsight does not work if they are deafened. For the purpose of this discussion, please assume a totally dark environment. Beyond...
2016/11/14
[ "https://rpg.stackexchange.com/questions/90380", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/32368/" ]
RAW, Keen Hearing and Blindsight do not in any way work together or "stack". They are both used completely independently of each other. It does not require there to be "a completely dark room" to interpret the rules: * Within the range of the blindsight the creature can use blindsight to "see" and and can use wis(per)...
**Within the Blindsight**: They act as normal, as if they see the target. If the target is blinded (by the darkness) they get advantage on their attacks. **Outside the Blindsight**: They are Blinded. > > * A blinded creature can't see and automatically fails any ability > check that requires sight. > * Attack roll...
90,380
Bats and Whales, and some monsters like the Hook Horror, have blindsight based on hearing. You can tell it's based on hearing because they also have the Echolocation trait that says their blindsight does not work if they are deafened. For the purpose of this discussion, please assume a totally dark environment. Beyond...
2016/11/14
[ "https://rpg.stackexchange.com/questions/90380", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/32368/" ]
**Within the Blindsight**: They act as normal, as if they see the target. If the target is blinded (by the darkness) they get advantage on their attacks. **Outside the Blindsight**: They are Blinded. > > * A blinded creature can't see and automatically fails any ability > check that requires sight. > * Attack roll...
If the creature they want to target is outside their blindsight range and *not* hidden, they can target them with disadvantage from being blinded. This is not something particular to Keen Hearing, anyone can do this. You appear to be making a mistake in thinking that if a creature cannot be seen then the default state...
90,380
Bats and Whales, and some monsters like the Hook Horror, have blindsight based on hearing. You can tell it's based on hearing because they also have the Echolocation trait that says their blindsight does not work if they are deafened. For the purpose of this discussion, please assume a totally dark environment. Beyond...
2016/11/14
[ "https://rpg.stackexchange.com/questions/90380", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/32368/" ]
RAW, Keen Hearing and Blindsight do not in any way work together or "stack". They are both used completely independently of each other. It does not require there to be "a completely dark room" to interpret the rules: * Within the range of the blindsight the creature can use blindsight to "see" and and can use wis(per)...
If the creature they want to target is outside their blindsight range and *not* hidden, they can target them with disadvantage from being blinded. This is not something particular to Keen Hearing, anyone can do this. You appear to be making a mistake in thinking that if a creature cannot be seen then the default state...
106,335
Rather than show a confirmation dialogue when someone wants to archive a project (each row in the animation is a 'project'), I've decided to immediately archive, with the option to undo. My question is, should this row disappear after a certain time? Or should it persist until the user visits another screen? [![Archi...
2017/03/27
[ "https://ux.stackexchange.com/questions/106335", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/98975/" ]
I would lean towards suggesting that it should remain until the user leaves the page, or refreshes. It feels like it doesn't detract by having it there after the user performs the 'archive' action. I'm making the assumption that the user wants to archive the project, rather than 'clean up' the list of projects - if th...
I suggest you keep the item in the list, with a notice it is archived and a button to Undo, but occupying the same height it has right now and modifying the item rather than adding an extra line. This way the user can: * archive several projects * decide to Undo any of those without having to change multiple times of ...
106,335
Rather than show a confirmation dialogue when someone wants to archive a project (each row in the animation is a 'project'), I've decided to immediately archive, with the option to undo. My question is, should this row disappear after a certain time? Or should it persist until the user visits another screen? [![Archi...
2017/03/27
[ "https://ux.stackexchange.com/questions/106335", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/98975/" ]
I would lean towards suggesting that it should remain until the user leaves the page, or refreshes. It feels like it doesn't detract by having it there after the user performs the 'archive' action. I'm making the assumption that the user wants to archive the project, rather than 'clean up' the list of projects - if th...
Based on the following : * **Consistency**. Keep the message always in the same possition. Also, this kind of modelles feedback is usually located on the top (see gmail). * **Relevancy**. The message should be visible only for as long it is relevant, otherwise it is noise to the user. It will not be relevant when the ...
106,335
Rather than show a confirmation dialogue when someone wants to archive a project (each row in the animation is a 'project'), I've decided to immediately archive, with the option to undo. My question is, should this row disappear after a certain time? Or should it persist until the user visits another screen? [![Archi...
2017/03/27
[ "https://ux.stackexchange.com/questions/106335", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/98975/" ]
I would lean towards suggesting that it should remain until the user leaves the page, or refreshes. It feels like it doesn't detract by having it there after the user performs the 'archive' action. I'm making the assumption that the user wants to archive the project, rather than 'clean up' the list of projects - if th...
I think that choosing when to remove a deleted item from view depends heavily on four things: * **Impactfulness** - Is the impact of the action high or low - are the consequences significant or trivial? * **Immediacy** - if it's *impactful*, is a user likely to *realise* they've made a mistake in taking this action st...
106,335
Rather than show a confirmation dialogue when someone wants to archive a project (each row in the animation is a 'project'), I've decided to immediately archive, with the option to undo. My question is, should this row disappear after a certain time? Or should it persist until the user visits another screen? [![Archi...
2017/03/27
[ "https://ux.stackexchange.com/questions/106335", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/98975/" ]
I suggest you keep the item in the list, with a notice it is archived and a button to Undo, but occupying the same height it has right now and modifying the item rather than adding an extra line. This way the user can: * archive several projects * decide to Undo any of those without having to change multiple times of ...
Based on the following : * **Consistency**. Keep the message always in the same possition. Also, this kind of modelles feedback is usually located on the top (see gmail). * **Relevancy**. The message should be visible only for as long it is relevant, otherwise it is noise to the user. It will not be relevant when the ...
106,335
Rather than show a confirmation dialogue when someone wants to archive a project (each row in the animation is a 'project'), I've decided to immediately archive, with the option to undo. My question is, should this row disappear after a certain time? Or should it persist until the user visits another screen? [![Archi...
2017/03/27
[ "https://ux.stackexchange.com/questions/106335", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/98975/" ]
I think that choosing when to remove a deleted item from view depends heavily on four things: * **Impactfulness** - Is the impact of the action high or low - are the consequences significant or trivial? * **Immediacy** - if it's *impactful*, is a user likely to *realise* they've made a mistake in taking this action st...
I suggest you keep the item in the list, with a notice it is archived and a button to Undo, but occupying the same height it has right now and modifying the item rather than adding an extra line. This way the user can: * archive several projects * decide to Undo any of those without having to change multiple times of ...
106,335
Rather than show a confirmation dialogue when someone wants to archive a project (each row in the animation is a 'project'), I've decided to immediately archive, with the option to undo. My question is, should this row disappear after a certain time? Or should it persist until the user visits another screen? [![Archi...
2017/03/27
[ "https://ux.stackexchange.com/questions/106335", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/98975/" ]
I think that choosing when to remove a deleted item from view depends heavily on four things: * **Impactfulness** - Is the impact of the action high or low - are the consequences significant or trivial? * **Immediacy** - if it's *impactful*, is a user likely to *realise* they've made a mistake in taking this action st...
Based on the following : * **Consistency**. Keep the message always in the same possition. Also, this kind of modelles feedback is usually located on the top (see gmail). * **Relevancy**. The message should be visible only for as long it is relevant, otherwise it is noise to the user. It will not be relevant when the ...
49,566,156
Next example in VS2017 reported error: Property 'keys' does not exist on type 'any []' ``` [].keys() ``` Why error? Version of Visual Studio 2017 - 15.6.4 Version of TypeScript tools - 15.6.20202.3 Version of TypeScript - 2.8
2018/03/29
[ "https://Stackoverflow.com/questions/49566156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1034136/" ]
The problem fixed after tsconfig.json changing. tsconfig.json ``` "compilerOptions": { .. "lib":["es2015"] .. } ```
"esnext" works for me when used in tsconfig.json. Using VS Code
30,011,045
I want to add a div at the bottom of the wordpress wp\_nav\_menu so it will look like this: ``` <ul> <li>...</li> <li>...</li> <li>...</li> <div class="my-div"></div> </ul> ``` I can't seem to find a way to do it in the function document on wordpress, can anyone please help?
2015/05/03
[ "https://Stackoverflow.com/questions/30011045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2126255/" ]
Try this code: ``` wp_nav_menu( array( 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s <div class="my-div"></div></ul>' ) ); ```
Just Replace **`items_wrap`** with below line ``` wp_nav_menu(array( 'items_wrap' => '<ul>%3$s <div class="my-div"></div></ul>', )); ```
30,011,045
I want to add a div at the bottom of the wordpress wp\_nav\_menu so it will look like this: ``` <ul> <li>...</li> <li>...</li> <li>...</li> <div class="my-div"></div> </ul> ``` I can't seem to find a way to do it in the function document on wordpress, can anyone please help?
2015/05/03
[ "https://Stackoverflow.com/questions/30011045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2126255/" ]
Try this code: ``` wp_nav_menu( array( 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s <div class="my-div"></div></ul>' ) ); ```
Try this : ```html wp_nav_menu(array('items_wrap' => '<ul>%3$s <div class="my-div"></div></ul>',)); ```
30,011,045
I want to add a div at the bottom of the wordpress wp\_nav\_menu so it will look like this: ``` <ul> <li>...</li> <li>...</li> <li>...</li> <div class="my-div"></div> </ul> ``` I can't seem to find a way to do it in the function document on wordpress, can anyone please help?
2015/05/03
[ "https://Stackoverflow.com/questions/30011045", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2126255/" ]
Try this : ```html wp_nav_menu(array('items_wrap' => '<ul>%3$s <div class="my-div"></div></ul>',)); ```
Just Replace **`items_wrap`** with below line ``` wp_nav_menu(array( 'items_wrap' => '<ul>%3$s <div class="my-div"></div></ul>', )); ```
46,133,067
How do you make Django admin site to strictly sort by values alphabetically when column headers are clicked? column2 below is a foreignkey. ``` MyAdmin(admin.ModelAdmin): list_display = ('column1', 'column2') ``` Here column2 header when clicked should sort the change list alphabetically but is not? ``` column2...
2017/09/09
[ "https://Stackoverflow.com/questions/46133067", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8512899/" ]
The information you provided (up to this moment) is not enough to give you a straight answer. However based on what you say, I suspect the problem you are facing is the following: Django Admin sorts the "Strings" alphabetically (`asc` or `desc` depending of the current state), but when the column is a foreign-key it s...
This should be the default behaviour. Perhaps you have clicked on another column header before and then it adds `column2` as the second ordering parameter? You can check the admin URL and see what ordering parameters are given (and if you don't know how to make sense of the URL, you can paste it here as well). The ot...