qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
2,975,824
In googling I can't seem to find an example of intercepting event on a proxied type and it doesn't seem to be working for me. Is there a way I can do this (ie. use an IInterceptor when an event is invoked)?
2010/06/04
[ "https://Stackoverflow.com/questions/2975824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/326518/" ]
I've used this in a Universal app to determine if the code is running on an iPad ``` if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // Do iPad only stuff here } ```
Look at `UIDevice` and it's properties. There is a `systemVersion` string that will work for what you want.
181,774
I need help with connect a macbook to the hitachi cp-x400 projector. there are only a few ports on the macbook; 2 usb, one firewire/printer type usb (not sure if it is firewire or what it is exactly, but it definitely is the printer sized usb), ethernet, and thats about it. Please help. PC usually work when i plug it i...
2010/08/28
[ "https://superuser.com/questions/181774", "https://superuser.com", "https://superuser.com/users/47844/" ]
The script that you referenced isn't a greasemonkey script per se, it's a script that is part of greasemonkey. It's the thingy that runs in the background until you right click on the greasemonkey monkey in the status bar and open up the greasemonkey preferences or script manager.
Try updating/reinstalling Greasemonkey and Firefox. Preferably alternating between both a few times.
181,774
I need help with connect a macbook to the hitachi cp-x400 projector. there are only a few ports on the macbook; 2 usb, one firewire/printer type usb (not sure if it is firewire or what it is exactly, but it definitely is the printer sized usb), ethernet, and thats about it. Please help. PC usually work when i plug it i...
2010/08/28
[ "https://superuser.com/questions/181774", "https://superuser.com", "https://superuser.com/users/47844/" ]
The script that you referenced isn't a greasemonkey script per se, it's a script that is part of greasemonkey. It's the thingy that runs in the background until you right click on the greasemonkey monkey in the status bar and open up the greasemonkey preferences or script manager.
Okay, you can easily uninstall Greasemonkey and install everything again. If Firefox hangs at start, follow these steps: Go to Start -> All Programs -> Mozilla Firefox -> Mozilla Firefox (Safe Mode) But don't click that. Hold down Shift first. When you hold the key and click it, a dialog will appear. Uncheck the stu...
181,774
I need help with connect a macbook to the hitachi cp-x400 projector. there are only a few ports on the macbook; 2 usb, one firewire/printer type usb (not sure if it is firewire or what it is exactly, but it definitely is the printer sized usb), ethernet, and thats about it. Please help. PC usually work when i plug it i...
2010/08/28
[ "https://superuser.com/questions/181774", "https://superuser.com", "https://superuser.com/users/47844/" ]
The script that you referenced isn't a greasemonkey script per se, it's a script that is part of greasemonkey. It's the thingy that runs in the background until you right click on the greasemonkey monkey in the status bar and open up the greasemonkey preferences or script manager.
I did nothing. It just suddenly cleared up. I have no scripts running so I have no idea why it should have given me that message. EDIT: I up-voted a couple of answers here as they make sense, but my basic question is unanswered. Anyone else?
11,107
What is the difference in meaning between these two words and how does their usage differ?
2015/11/02
[ "https://russian.stackexchange.com/questions/11107", "https://russian.stackexchange.com", "https://russian.stackexchange.com/users/5201/" ]
**Чересчур** is one of those words that don't *sound* bookish, and yet you're radically less likely to hear it in everyday speech compared to **слишком**. **Чересчур** just isn't the word you'd immediately think of when seeking to express the idea of excess. But when you do hear it, it sounds perfectly natural and plai...
Well, the difference is in negative form: For example, *Он не слишком умён* means *He's silly*. Yet negative *не чересчур* is almost never used except questions: *А не чересчур ли он умён?* etc. Also *с лишком* literally means *with excess*, so if written as a whole *слишком* is an adverb, but separate *с лишком* is ...
11,107
What is the difference in meaning between these two words and how does their usage differ?
2015/11/02
[ "https://russian.stackexchange.com/questions/11107", "https://russian.stackexchange.com", "https://russian.stackexchange.com/users/5201/" ]
Well, the difference is in negative form: For example, *Он не слишком умён* means *He's silly*. Yet negative *не чересчур* is almost never used except questions: *А не чересчур ли он умён?* etc. Also *с лишком* literally means *with excess*, so if written as a whole *слишком* is an adverb, but separate *с лишком* is ...
Слишком is too serious while чересчур is only slighly disapproving as if you were approving it in essense or in the deep of your mind or it is generally a good property, just here it is unusually excessive. Like in the case of playing children: > > Вы слишком шумите! - You are producing too much noise, reduce it! > ...
11,107
What is the difference in meaning between these two words and how does their usage differ?
2015/11/02
[ "https://russian.stackexchange.com/questions/11107", "https://russian.stackexchange.com", "https://russian.stackexchange.com/users/5201/" ]
**Чересчур** is one of those words that don't *sound* bookish, and yet you're radically less likely to hear it in everyday speech compared to **слишком**. **Чересчур** just isn't the word you'd immediately think of when seeking to express the idea of excess. But when you do hear it, it sounds perfectly natural and plai...
If I tried to compare translations, I'd say that '*слишком*' is '*too*' and '*чересчур*' is like '*too much*' or '*more than enough*'. For instance: '*Он слишком умный*' = '*He is too smart*' and '*Он чересчур умный*' is 'He is smart more than enough'. Btw, with '*smart*' expressions above sound a bit depreciatingly.
11,107
What is the difference in meaning between these two words and how does their usage differ?
2015/11/02
[ "https://russian.stackexchange.com/questions/11107", "https://russian.stackexchange.com", "https://russian.stackexchange.com/users/5201/" ]
**Чересчур** is one of those words that don't *sound* bookish, and yet you're radically less likely to hear it in everyday speech compared to **слишком**. **Чересчур** just isn't the word you'd immediately think of when seeking to express the idea of excess. But when you do hear it, it sounds perfectly natural and plai...
Слишком is too serious while чересчур is only slighly disapproving as if you were approving it in essense or in the deep of your mind or it is generally a good property, just here it is unusually excessive. Like in the case of playing children: > > Вы слишком шумите! - You are producing too much noise, reduce it! > ...
11,107
What is the difference in meaning between these two words and how does their usage differ?
2015/11/02
[ "https://russian.stackexchange.com/questions/11107", "https://russian.stackexchange.com", "https://russian.stackexchange.com/users/5201/" ]
If I tried to compare translations, I'd say that '*слишком*' is '*too*' and '*чересчур*' is like '*too much*' or '*more than enough*'. For instance: '*Он слишком умный*' = '*He is too smart*' and '*Он чересчур умный*' is 'He is smart more than enough'. Btw, with '*smart*' expressions above sound a bit depreciatingly.
Слишком is too serious while чересчур is only slighly disapproving as if you were approving it in essense or in the deep of your mind or it is generally a good property, just here it is unusually excessive. Like in the case of playing children: > > Вы слишком шумите! - You are producing too much noise, reduce it! > ...
4,478,028
i'm working in a project to recognize a bit code from an image like this, where black rectangle represents 0 bit, and white (white space, not visible) 1 bit. [![image](https://i.stack.imgur.com/HHJqr.png)](https://i.stack.imgur.com/HHJqr.png) Somebody have any idea to process the image in order to extract this inform...
2010/12/18
[ "https://Stackoverflow.com/questions/4478028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/546981/" ]
This is recognising good old **OMR (optical mark recognition)**. The solution varies depending on the quality and consistency of the data you get, so noise is important. Using an image processing library will clearly help. **Simple case: No skew in the image and no stretch or shrinkage** Create a horizontal and ver...
I am not familiar with Java, but in Python, you can use the imaging library to open the image. Then load the height and the widths, and segment the image into a grid accordingly, by Height/Rows and Width/Cols. Then, just look for black pixels in those regions, or whatever color PIL registers that black to be. This obvi...
4,478,028
i'm working in a project to recognize a bit code from an image like this, where black rectangle represents 0 bit, and white (white space, not visible) 1 bit. [![image](https://i.stack.imgur.com/HHJqr.png)](https://i.stack.imgur.com/HHJqr.png) Somebody have any idea to process the image in order to extract this inform...
2010/12/18
[ "https://Stackoverflow.com/questions/4478028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/546981/" ]
This is recognising good old **OMR (optical mark recognition)**. The solution varies depending on the quality and consistency of the data you get, so noise is important. Using an image processing library will clearly help. **Simple case: No skew in the image and no stretch or shrinkage** Create a horizontal and ver...
Aliostad has made some good comments. This is OMR and you will find it much easier to get good consistent results with a good image processing library. www.leptonica.com is a free open source 'C' library that would be a very good place to start. It could process the skew and thresholding tasks for you. Thresholding to...
851,336
i m having trouble in uploading multiple files with same input name: ``` <input type=file name="file"> <input type=file name="file"> <input type=file name="file"> ``` at django side ``` print request.FILES : <MultiValueDict: {u'file': [ <TemporaryUploadedFile: captcha_bg.jpg (image/jpeg)>, <TemporaryUploadedFile:...
2009/05/12
[ "https://Stackoverflow.com/questions/851336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/105169/" ]
``` for f in request.FILES.getlist('file'): # do something with the file f... ``` EDIT: I know this was an old answer, but I came across it just now and have edited the answer to actually be correct. It was previously suggesting that you could iterate directly over `request.FILES['file']`. To access all items in ...
I dont think all three files will be under the single `request.FILES['file']` object. `request.FILES['file']` is likely to have either the 1st file or the last file from that list. You need to uniquely name the input elements like so: ``` <input type=file name="file1"> <input type=file name="file2"> <input type=file ...
851,336
i m having trouble in uploading multiple files with same input name: ``` <input type=file name="file"> <input type=file name="file"> <input type=file name="file"> ``` at django side ``` print request.FILES : <MultiValueDict: {u'file': [ <TemporaryUploadedFile: captcha_bg.jpg (image/jpeg)>, <TemporaryUploadedFile:...
2009/05/12
[ "https://Stackoverflow.com/questions/851336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/105169/" ]
Given your url points to *envia* you could manage multiple files like this: ``` #!/usr/bin/env python # -*- coding: UTF-8 -*- from django.http import HttpResponseRedirect def envia(request): for f in request.FILES.getlist('file'): handle_uploaded_file(f) return HttpResponseRedirect('/bulk/') def hand...
I dont think all three files will be under the single `request.FILES['file']` object. `request.FILES['file']` is likely to have either the 1st file or the last file from that list. You need to uniquely name the input elements like so: ``` <input type=file name="file1"> <input type=file name="file2"> <input type=file ...
851,336
i m having trouble in uploading multiple files with same input name: ``` <input type=file name="file"> <input type=file name="file"> <input type=file name="file"> ``` at django side ``` print request.FILES : <MultiValueDict: {u'file': [ <TemporaryUploadedFile: captcha_bg.jpg (image/jpeg)>, <TemporaryUploadedFile:...
2009/05/12
[ "https://Stackoverflow.com/questions/851336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/105169/" ]
I dont think all three files will be under the single `request.FILES['file']` object. `request.FILES['file']` is likely to have either the 1st file or the last file from that list. You need to uniquely name the input elements like so: ``` <input type=file name="file1"> <input type=file name="file2"> <input type=file ...
This code is the example ``` for f in request.FILES.getlist('myfile[]'): if request.method == 'POST' and f: myfile = f filesystem = FileSystemStorage() filename = filesystem.save(myfile.name, myfile) ```
851,336
i m having trouble in uploading multiple files with same input name: ``` <input type=file name="file"> <input type=file name="file"> <input type=file name="file"> ``` at django side ``` print request.FILES : <MultiValueDict: {u'file': [ <TemporaryUploadedFile: captcha_bg.jpg (image/jpeg)>, <TemporaryUploadedFile:...
2009/05/12
[ "https://Stackoverflow.com/questions/851336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/105169/" ]
``` for f in request.FILES.getlist('file'): # do something with the file f... ``` EDIT: I know this was an old answer, but I came across it just now and have edited the answer to actually be correct. It was previously suggesting that you could iterate directly over `request.FILES['file']`. To access all items in ...
Given your url points to *envia* you could manage multiple files like this: ``` #!/usr/bin/env python # -*- coding: UTF-8 -*- from django.http import HttpResponseRedirect def envia(request): for f in request.FILES.getlist('file'): handle_uploaded_file(f) return HttpResponseRedirect('/bulk/') def hand...
851,336
i m having trouble in uploading multiple files with same input name: ``` <input type=file name="file"> <input type=file name="file"> <input type=file name="file"> ``` at django side ``` print request.FILES : <MultiValueDict: {u'file': [ <TemporaryUploadedFile: captcha_bg.jpg (image/jpeg)>, <TemporaryUploadedFile:...
2009/05/12
[ "https://Stackoverflow.com/questions/851336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/105169/" ]
``` for f in request.FILES.getlist('file'): # do something with the file f... ``` EDIT: I know this was an old answer, but I came across it just now and have edited the answer to actually be correct. It was previously suggesting that you could iterate directly over `request.FILES['file']`. To access all items in ...
This code is the example ``` for f in request.FILES.getlist('myfile[]'): if request.method == 'POST' and f: myfile = f filesystem = FileSystemStorage() filename = filesystem.save(myfile.name, myfile) ```
851,336
i m having trouble in uploading multiple files with same input name: ``` <input type=file name="file"> <input type=file name="file"> <input type=file name="file"> ``` at django side ``` print request.FILES : <MultiValueDict: {u'file': [ <TemporaryUploadedFile: captcha_bg.jpg (image/jpeg)>, <TemporaryUploadedFile:...
2009/05/12
[ "https://Stackoverflow.com/questions/851336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/105169/" ]
Given your url points to *envia* you could manage multiple files like this: ``` #!/usr/bin/env python # -*- coding: UTF-8 -*- from django.http import HttpResponseRedirect def envia(request): for f in request.FILES.getlist('file'): handle_uploaded_file(f) return HttpResponseRedirect('/bulk/') def hand...
This code is the example ``` for f in request.FILES.getlist('myfile[]'): if request.method == 'POST' and f: myfile = f filesystem = FileSystemStorage() filename = filesystem.save(myfile.name, myfile) ```
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
For New I would use a boolean, an enum in this case would be overkill.
eBay has New, and New Other, to distinguish between merchandise sold in its original packaging and merchandise sold in different packaging or no packaging. I'd go for the enum for its extensibility, what you called "future proof".
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
> > `enum` is more future proof > > > Not really. You have no idea what the future will bring. If you need to change it later, then change it. So, [KISS](http://en.wikipedia.org/wiki/KISS_principle). Go with: ``` public bool IsNew { get; set; } ``` Boom, done. Move on, add value elsewhere.
For New I would use a boolean, an enum in this case would be overkill.
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
> > `enum` is more future proof > > > Not really. You have no idea what the future will bring. If you need to change it later, then change it. So, [KISS](http://en.wikipedia.org/wiki/KISS_principle). Go with: ``` public bool IsNew { get; set; } ``` Boom, done. Move on, add value elsewhere.
eBay has New, and New Other, to distinguish between merchandise sold in its original packaging and merchandise sold in different packaging or no packaging. I'd go for the enum for its extensibility, what you called "future proof".
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
You mentioned in a comment "I allready [sic] have a Condition - it refers to a condition when something is Y"Used" (e.g. used vehicle/book can be in "fair", "like new", "mint" condition) ;)" So with that piece of information, I'd definitely go with a `bool`. You already have an extensible way of establishing the cond...
For New I would use a boolean, an enum in this case would be overkill.
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
You mentioned in a comment "I allready [sic] have a Condition - it refers to a condition when something is Y"Used" (e.g. used vehicle/book can be in "fair", "like new", "mint" condition) ;)" So with that piece of information, I'd definitely go with a `bool`. You already have an extensible way of establishing the cond...
I would go with the enum, if I found myself constantly translating the boolean value into the value "new" or "used". If I were more interested in this value as an indicator (such as doing `if(something.isNew)`), I'd use a boolean.
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
I would go with the enum, if I found myself constantly translating the boolean value into the value "new" or "used". If I were more interested in this value as an indicator (such as doing `if(something.isNew)`), I'd use a boolean.
I'm generally opposed to over-engineering, so my first instinct was using a boolean. But conceptually it doesn't feel like a logical boolean value. It feels like an enumeration which happens to have two values at the moment. I typically think about the conditions as `new` and `used` and not as `new` and `not new` in m...
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
> > `enum` is more future proof > > > Not really. You have no idea what the future will bring. If you need to change it later, then change it. So, [KISS](http://en.wikipedia.org/wiki/KISS_principle). Go with: ``` public bool IsNew { get; set; } ``` Boom, done. Move on, add value elsewhere.
I would go with the enum, if I found myself constantly translating the boolean value into the value "new" or "used". If I were more interested in this value as an indicator (such as doing `if(something.isNew)`), I'd use a boolean.
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
Use an enum. I would call it `Condition`. You don't need a `None` value. You can just make it nullable.
eBay has New, and New Other, to distinguish between merchandise sold in its original packaging and merchandise sold in different packaging or no packaging. I'd go for the enum for its extensibility, what you called "future proof".
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
For New I would use a boolean, an enum in this case would be overkill.
I'm generally opposed to over-engineering, so my first instinct was using a boolean. But conceptually it doesn't feel like a logical boolean value. It feels like an enumeration which happens to have two values at the moment. I typically think about the conditions as `new` and `used` and not as `new` and `not new` in m...
6,335,408
I have a perhaps silly question... I am trying to determine what is the best approach for typing a property whose value will be either "New" or "Used". Do I use an `enum` or should I just go with a `boolean` (e.g. IsNew)? If I go with `enum`, what should I call this type and property name? (public NewOrUsed NewOrUsed {...
2011/06/13
[ "https://Stackoverflow.com/questions/6335408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481904/" ]
I would go with the enum, if I found myself constantly translating the boolean value into the value "new" or "used". If I were more interested in this value as an indicator (such as doing `if(something.isNew)`), I'd use a boolean.
eBay has New, and New Other, to distinguish between merchandise sold in its original packaging and merchandise sold in different packaging or no packaging. I'd go for the enum for its extensibility, what you called "future proof".
64,589,801
I'm trying to Filter the `id` of Connections by `name` e.g. return the `id` of connection, where the `name` is Equal to *12345678*. I'm able to get all of records and also the values of `id` & `name` as well. But, I Just want to Filer it e.g. How could I only get the record's `id`, where the `name` is equal to *12345...
2020/10/29
[ "https://Stackoverflow.com/questions/64589801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
use LINQ ``` using System.Linq; ... var list = obj.connections.Where(c => c.alias.name == "xyz").ToList(); ```
In your case assuming you want to get 1 record, I'd suggest you use LINQ ``` using System.Linq; //Rest of your code var recId = obj.connections.Where(c => c.alias.name == "1234567").FirstOrDefault(); ```
47,644,655
Trying to do a few things ran into a snag. Trying to center the form where it asks for email and there is the 'lets talk' button. It should be centered right underneath the title "Lets get in touch" I also want to give it a drop shadow however what i have is not working. It should look like this in the end [![enter ...
2017/12/05
[ "https://Stackoverflow.com/questions/47644655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9041386/" ]
Check out this updated fiddle: <https://jsfiddle.net/vcx4vm39/2/> Added the class `.email-form` to the form and added the following CSS: ``` .email-form { width: 400px; } .email-form input { border: 0; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); } ```
Removed, most of the not necessary code from the fiddle. And you can see it's in the center now. **EDIT**: Credit for the box-shadow, goes to the second answer. ```css @import url('https://fonts.googleapis.com/css?family=Roboto'); @import url('https://fonts.googleapis.com/css?family=Roboto:bold'); @import url('http...
1,015,113
I tried using dig and I got the error in the title. My /etc/resolv.conf is this ``` nameserver 67.207.67.2 nameserver 67.207.67.3 nameserver ns1.name.com nameserver ns2.name.com nameserver ns3.name.com nameserver ns4.name.com ``` The first two are the default digital ocean dns, the other are for my domain registra...
2020/05/01
[ "https://serverfault.com/questions/1015113", "https://serverfault.com", "https://serverfault.com/users/572649/" ]
Not sure why you are trying to do it, but putting your registrar's servers in your resolv.conf is almost certainly the wrong thing to do. Likewise, putting in the DNS names into a resolv.conf is the wrong thing to do. The resolv.conf is used to define servers that translate names to IP. If you commented out the other ...
You can't use domain names. Name servers need to be IP addresses. You can convert the name servers into IP addresses and list those, but frankly I'm not sure what you are trying to do and expect that while this will not error it won't work as you expect.
4,236,874
After searching the API and no luck, mybe anyone know how could I retrieve the SIM ID of the device? thanks, ray.
2010/11/21
[ "https://Stackoverflow.com/questions/4236874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/260511/" ]
Here is the code to get International Mobile Subscriber Identity (IMSI No.) id and phone id (IMEI No.) and Sim No. programmatically Before doing this also set the user permission in the manifest file "android.permission.READ\_PHONE\_STATE" ``` TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(C...
To retrieve the IMSI (subscriber ID in the SIM), Use the [getSubscriberId method in the TelephonyManager API](http://developer.android.com/reference/android/telephony/TelephonyManager.html#getSubscriberId%28%29).
4,236,874
After searching the API and no luck, mybe anyone know how could I retrieve the SIM ID of the device? thanks, ray.
2010/11/21
[ "https://Stackoverflow.com/questions/4236874", "https://Stackoverflow.com", "https://Stackoverflow.com/users/260511/" ]
Here is the code to get International Mobile Subscriber Identity (IMSI No.) id and phone id (IMEI No.) and Sim No. programmatically Before doing this also set the user permission in the manifest file "android.permission.READ\_PHONE\_STATE" ``` TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(C...
Frrom [wikiPedia](http://en.wikipedia.org/wiki/Subscriber_Identity_Module#Issuer_identification_number_.28IIN.29) > > The Id = **Issuer identification number** > (IIN) Maximum of seven digits: Major > industry identifier (MII), 2 digits, > 89 for telecommunication purposes. > Country code, 1-3 digits, as defined...
10,226
I'm trying to get the cdf from a pdf, which, according to [this MIT open courseware video](https://www.youtube.com/watch?v=wQ6Q9W3Y1ZE), is as simple as getting integral from -$\infty$ to $\infty$. Like this: $$ F\_z(z) = \int\_{-\infty}^\infty f\_z(z)dz\, = 1 $$ And that works for functions like this: $f\_x(X)$ But...
2016/01/15
[ "https://economics.stackexchange.com/questions/10226", "https://economics.stackexchange.com", "https://economics.stackexchange.com/users/-1/" ]
CDF = integral of PDF from $-\infty$ to $x$, or: $F\left(x\right) = \int\_{-\infty}^{x} f\left(u\right) du$. Functions like $f\left(x;\beta\right)$ take $\beta$ as the parameters, the $\beta$ index *different* probability density functions. You don't need to integrate over them to get the CDF. $F\left(x;\beta\right)...
In addition to what John said (I would have commented on his answer, but don't have enough reputation). And this is not conditional, conditional would be $f(X|\beta)$ $$ F\_X(x;\beta) = P(X \leq x; \beta=\theta) = \int\_{-\infty}^{x} f\_X(x;\beta) dx $$ We fix $x=u$ and $\beta=\theta$ $$ P(X \leq u; \theta)=\int\_{-...
61,144
I'm a Stack Overflow n00b, but I believe it's an invaluable resource, and really has been so far to my deving on different projects. Anyway, I have seen users write inline code. In other words, they are in a comment or something like that, and they want to write some code such as $(document).ready(function(){}); Exc...
2010/08/16
[ "https://meta.stackexchange.com/questions/61144", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/150095/" ]
What my somewhat pedantic friend meant to say was "use backticks" (~ key) in line `this is my code this is my code` in line. update: Since not everyone has an English keyboard layout and the backtick key may be missing, a good alternative is `ALT+96` (from numeric keypad) or just copy and paste this: `
See <https://meta.stackoverflow.com/editing-help> , which is linked from … * the little `[?]` icon above the edit area * in the editing sidebar where it says `full reference »` The specific section you want is the one that says **Code Spans**
19,659,467
What is the difference between a view and a volatile table in Teradata? As far as I know, a volatile table is removed with the end of the session. Also it is only me who can see the volatile table as opposed to the view. Are there any other significant differences?
2013/10/29
[ "https://Stackoverflow.com/questions/19659467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2917375/" ]
A volatile table stores the data physically. You can access that data multiple times during your session. With a View the data is collected every time you access it. To help speed up queries on views, you can use Join Indexes on Teradata. They physically store the results of a certain select and maintain it when the ...
Also the volatile table holds the data in it for the session. If the data in the source-table changes, it does not automatically change it in the volatile table. View would automatically include the changes as it simply re-runs the SQL on the source-tables.
19,659,467
What is the difference between a view and a volatile table in Teradata? As far as I know, a volatile table is removed with the end of the session. Also it is only me who can see the volatile table as opposed to the view. Are there any other significant differences?
2013/10/29
[ "https://Stackoverflow.com/questions/19659467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2917375/" ]
A volatile table is a temporary table that is only held until the end of session. This is created by default in your "personal schema" and consumes your spool space to maintain. A view is an object that is permanent across sessions, generates from tables existing in the environment you are in, and does not consume sp...
Also the volatile table holds the data in it for the session. If the data in the source-table changes, it does not automatically change it in the volatile table. View would automatically include the changes as it simply re-runs the SQL on the source-tables.
57,655,660
I'm trying to get a chart from the [charts\_flutter package](https://pub.dev/packages/charts_flutter) to expand to fill available space, when it is inside a Row which is inside a Column. I've spent a couple of hours trying to do this but I must be missing something! This is visually what I'm trying to achieve: [![ente...
2019/08/26
[ "https://Stackoverflow.com/questions/57655660", "https://Stackoverflow.com", "https://Stackoverflow.com/users/40952/" ]
\*\*see why at Step 8 - scroll down \*\* Problem ------- > > I'm trying to get a chart from the charts\_flutter package to expand to fill available space > > > Error Evidence -------------- > > object was given an infinite size during layout > > > Solution -------- Wrap the Row with Expanded ``` Column(c...
Just wrap your `Row` in an `Expanded` widget and that's it. ``` Column( children: <Widget>[ Container(height: 200, color: Colors.orange), Expanded( child: Row( textDirection: TextDirection.ltr, children: <Widget>[ Container(width: 200,color: Colors.orange), ...
54,801,132
Why is the label not bold with this setting? ``` <form class="input-group"> <div class="btn-section-operation" id="btn-container-table"> <label for="radio-selection-range-rows" class="radio-custom-label"><input class="radio-custom input-group-field" id="radio-selection-range-rows" name="radio-selection" type...
2019/02/21
[ "https://Stackoverflow.com/questions/54801132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9425549/" ]
You should not use `label:checked`, but `input:checked` for a checked checkbox. Furthermore you use the sibling selector, but the element you want to style is the parent (label is the parent of input). There is no parent selector in CSS, so my solution would be to use a `span` around the text. ``` <label for="radio-se...
Check updated snippet below... ```css label input:checked + span { border-color: red; font-weight: bold; } .btn-section-operation { display: grid; } ``` ```html <form class="input-group"> <div class="btn-section-operation" id="btn-container-table"> <label for="radio-selection-range-rows" class="r...
29,585,967
I want to show program that 3 button in bottom that if we click red button, the panel change color become red, etc. ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton ("Red"); private JButton buttonGreen...
2015/04/12
[ "https://Stackoverflow.com/questions/29585967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3414583/" ]
This example adds a second panel (`ui`) to which each action sets the background. See comments in code for further tips. ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = ne...
``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton("Red"); private JButton buttonGreen = new JButton("Green"); private JButton buttonBlue = new JButton("Blue"); JPanel panel = new JPanel()...
29,585,967
I want to show program that 3 button in bottom that if we click red button, the panel change color become red, etc. ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton ("Red"); private JButton buttonGreen...
2015/04/12
[ "https://Stackoverflow.com/questions/29585967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3414583/" ]
``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton("Red"); private JButton buttonGreen = new JButton("Green"); private JButton buttonBlue = new JButton("Blue"); JPanel panel = new JPanel()...
In more simple way, we can do it as: (after seeing your requirements) ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton("Red"); private JButton buttonGreen = new JButton("Green"); private JB...
29,585,967
I want to show program that 3 button in bottom that if we click red button, the panel change color become red, etc. ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton ("Red"); private JButton buttonGreen...
2015/04/12
[ "https://Stackoverflow.com/questions/29585967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3414583/" ]
This example adds a second panel (`ui`) to which each action sets the background. See comments in code for further tips. ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.image.BufferedImage; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = ne...
In more simple way, we can do it as: (after seeing your requirements) ``` import javax.swing.*; import java.awt.*; import java.awt.event.*; public class LatihanEvent2 implements ActionListener { private JButton buttonRed = new JButton("Red"); private JButton buttonGreen = new JButton("Green"); private JB...
113,104
Consider the sentence > > E-books are on the rise, but they haven't suppressed paper books though. > > > This usage seems to be quite common, but when I learned English I was taught to use "however" where I now read "though". My questions on this use of "though" are: Is this a new trend? Is it restricte...
2013/05/03
[ "https://english.stackexchange.com/questions/113104", "https://english.stackexchange.com", "https://english.stackexchange.com/users/8345/" ]
I thought it might be sensible to list the various acceptable alternatives: > > E-books are on the rise, but they haven't yet totally eliminated the > demand for paper books. > > > (Al)though E-books are on the rise, they haven't yet totally > eliminated the demand for paper books. > > > E-books are on the rise, ...
The only reasonable answer to this question is that you must **DELETE** \**though*\* because it doesn't belong there: it duplicates the function of **but**. *However* would be equally ungrammatical in the sentence: > > E-books are on the rise, **but** they haven't suppressed paper books, **however**. > > > This ...
113,104
Consider the sentence > > E-books are on the rise, but they haven't suppressed paper books though. > > > This usage seems to be quite common, but when I learned English I was taught to use "however" where I now read "though". My questions on this use of "though" are: Is this a new trend? Is it restricte...
2013/05/03
[ "https://english.stackexchange.com/questions/113104", "https://english.stackexchange.com", "https://english.stackexchange.com/users/8345/" ]
You probably shouldn't use both *but* and *though* together like that, because you're saying the same thing twice; both words mark the clause as antithetical to what came before. So you should **remove one or the other**. If you decide to use *though*, you **need a comma** before it. --- I don't know whether it is n...
The only reasonable answer to this question is that you must **DELETE** \**though*\* because it doesn't belong there: it duplicates the function of **but**. *However* would be equally ungrammatical in the sentence: > > E-books are on the rise, **but** they haven't suppressed paper books, **however**. > > > This ...
113,104
Consider the sentence > > E-books are on the rise, but they haven't suppressed paper books though. > > > This usage seems to be quite common, but when I learned English I was taught to use "however" where I now read "though". My questions on this use of "though" are: Is this a new trend? Is it restricte...
2013/05/03
[ "https://english.stackexchange.com/questions/113104", "https://english.stackexchange.com", "https://english.stackexchange.com/users/8345/" ]
You probably shouldn't use both *but* and *though* together like that, because you're saying the same thing twice; both words mark the clause as antithetical to what came before. So you should **remove one or the other**. If you decide to use *though*, you **need a comma** before it. --- I don't know whether it is n...
I thought it might be sensible to list the various acceptable alternatives: > > E-books are on the rise, but they haven't yet totally eliminated the > demand for paper books. > > > (Al)though E-books are on the rise, they haven't yet totally > eliminated the demand for paper books. > > > E-books are on the rise, ...
49,849,266
How to add background image on top layout the one who has back button . ive tried adding imageview on it using the drag and drop but image is hiding on the back. Anyone has an idea? Thanks [![image kindly view](https://i.stack.imgur.com/xMNeP.png)](https://i.stack.imgur.com/xMNeP.png)
2018/04/16
[ "https://Stackoverflow.com/questions/49849266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
If you cannot set the `editor.formatOnPaste` to `true`. Then use the following key combination to manually format/ indent `Alt+Shift+F`
I know you said this didnt worked for you, but it did work for me and it may help others i think it worth mentioning: This worked for me: Go to VS Code Settings -> from the User Settings tab -> Text Editor -> Formatting -> Untick the first option 'Format On Paste'
49,849,266
How to add background image on top layout the one who has back button . ive tried adding imageview on it using the drag and drop but image is hiding on the back. Anyone has an idea? Thanks [![image kindly view](https://i.stack.imgur.com/xMNeP.png)](https://i.stack.imgur.com/xMNeP.png)
2018/04/16
[ "https://Stackoverflow.com/questions/49849266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
If you cannot set the `editor.formatOnPaste` to `true`. Then use the following key combination to manually format/ indent `Alt+Shift+F`
Since your settings aren't working as desired, one good way to handle this behavior is to highlight the text and press `tab`. This will increase indentation on all lines. You can repeat to get to your desired indentation level.
49,849,266
How to add background image on top layout the one who has back button . ive tried adding imageview on it using the drag and drop but image is hiding on the back. Anyone has an idea? Thanks [![image kindly view](https://i.stack.imgur.com/xMNeP.png)](https://i.stack.imgur.com/xMNeP.png)
2018/04/16
[ "https://Stackoverflow.com/questions/49849266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
I know you said this didnt worked for you, but it did work for me and it may help others i think it worth mentioning: This worked for me: Go to VS Code Settings -> from the User Settings tab -> Text Editor -> Formatting -> Untick the first option 'Format On Paste'
Since your settings aren't working as desired, one good way to handle this behavior is to highlight the text and press `tab`. This will increase indentation on all lines. You can repeat to get to your desired indentation level.
1,266,279
So recently I've been tweaking my computer's registry for its Memory Management. I know its a bad thing to do to edit your registry without knowing what it may cause to your system but i've only touched a specific registry value which is the `SecondLevelDataCache` in `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control...
2017/11/07
[ "https://superuser.com/questions/1266279", "https://superuser.com", "https://superuser.com/users/812816/" ]
According to [canonical source](https://technet.microsoft.com/en-us/library/cc938581.aspx), the `SecondLevelDataCache` entry has no effect on performance. As a computer science bachelor I'm aware that modern CPU caches are invisible (transparent) to operating systems, optimizing RAM access automatically. You may never...
Windows will use the value here IF it cannot resolve the L2 cache size from the HAL (Hardware Abstraction Layer). Windows CAN get this value through HAL 99.9% of the time. If it can't, the default value of 0 will result in Windows thinking the L2 cache is only 256K. IF Task Manager (performance tab) shows L2 as "0", TH...
86,694
The Scottish Claim of Right makes clear that the people of Scotland are Sovereign, not Westminster. However, under the rest of UK law, Westminster/Parliament is Sovereign. Given the Supreme Court has ruled that the Scottish Parliament can't hold a referrendum on Scottish Independence without Westminster's permission,...
2022/11/28
[ "https://law.stackexchange.com/questions/86694", "https://law.stackexchange.com", "https://law.stackexchange.com/users/21707/" ]
> > The Scottish Claim of Right makes clear that the people of Scotland are Sovereign, not Westminster. > > > Not so much. It establishes principles of parliamentary monarchy... (for example) > > That the chargeing of the leidges with lawborrowes at the Kings instance and the imposeing of bonds without the autho...
The 1989 Claim of Right cannot be used by the Scottish Government to hold another referendum on independence for the same reasons that the Scottish Government cannot do so under the Scotland Act 1998: they (and by extension, the Scottish Parliament) lack the competence to do so. This was decided by the UK Supreme Cour...
14,492,225
I wrote the following codes in order to make element which has id=sample grayscale(0.6) and blur(5px). But it turns out that the latter -webkit-filter property substitutes for the previous one instead of appending to it. I can only add one -webkit-filter property every time. Is it possible to append the blur to graysca...
2013/01/24
[ "https://Stackoverflow.com/questions/14492225", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1605763/" ]
`master`, like `origin` or `upstream`, is a convention, not a requirement. Since you have no commits in `master`, you have no refs for it either. `HEAD` is pointing to a ref that does not yet exist. When you run `git checkout -b branch`, you ask git to: 1. Duplicate the ref your `HEAD` points to. 2. Point your `HEAD` ...
It didn't work for me initially... ``` durrantm.../play$ mkdir ggg durrantm.../play$ cd ggg durrantm.../ggg$ git init Initialized empty Git repository in /home/durrantm/play/ggg/.git/ durrantm.../ggg$ git checkout -b newy fatal: You are on a branch yet to be born ``` ...until yes, I did an initial commit on master: ...
35,345,808
Below command only gives channel list . ``` 127.0.0.1:6379> PUBSUB CHANNELS 1) "mychannel" 2) "mychanne2" ``` **How to LIST subscribers subscribed on channel1 OR channel2 .?** also i din't found redis command to list all subscribers Of a particular channel
2016/02/11
[ "https://Stackoverflow.com/questions/35345808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3523101/" ]
You can use `PUBSUB NUMSUB channel1` OR `PUBSUB NUMSUB channel2` and get reply about the number of subscribers for the specified channel.
I can achieve this with something like: ``` redis_client.multi().client(['list']).exec(function(err, results) { var pairs = results[0].split(' '); pairs.forEach(function(pair){ var kv = pair.split('='); if (kv[0] == 'name' && kv[1] == constants.REDIS_SUBSCRIBER_NAME) found = true; }); if (found) ...
40,136,198
I am trying to make a heat map of the US, the code "works" but the data won't populate into a US map - only the names of the states show up - which I also want to populate, but the actual map of the US is most important. Here's my code: #read in my data rawdata\_path <- c("~/R/heatdata.xlsx") ``` # Import the data ...
2016/10/19
[ "https://Stackoverflow.com/questions/40136198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7043147/" ]
If you are trying to produce a choropleth map with this data, it is pretty easy with `choroplethr`. First you need to rename your states column as "region" and count column as "value" So input data looks like: ``` df <- structure(list(region = structure(c(1L, 2L, 5L, 6L, 9L, 12L, 15L, 19L, 20L, 21L, 22L, 23L, 11L, 8...
The following code will load and plot a map of the United States with the coordinates and text from 'rawdata': ``` # Load the data rawdata_path <- 'C:/data.xlsx' rawdata <- readxl::read_excel(rawdata_path, sheet = 1, col_names = TRUE) #clean up the data rawdata$Lattitude <- as.numeric(rawdata$Lattitude) rawdata$Longi...
700
I was looking into the factorial function in an R package called gregmisc and came across the implementation of the gamma function, instead of a recursive or iterative process as I was expecting. The gamma function is defined as: $$ \Gamma(z)=\int\_{0}^{\infty}e^{-t}t^{z-1}dt $$ A brief history of the function points...
2011/03/12
[ "https://quant.stackexchange.com/questions/700", "https://quant.stackexchange.com", "https://quant.stackexchange.com/users/291/" ]
In certain cases some stochastic differential equations(SDE's) have closed form(deterministic) solutions in the form of well known ordinary differential equations (ODE's), partial differential equations(PDE's), and special functions like the gamma function. Here's an example from a paper where an SDE has a closed form...
Gamma distributions are being used to model the default rate of credit portfolios by CreditRisk.
700
I was looking into the factorial function in an R package called gregmisc and came across the implementation of the gamma function, instead of a recursive or iterative process as I was expecting. The gamma function is defined as: $$ \Gamma(z)=\int\_{0}^{\infty}e^{-t}t^{z-1}dt $$ A brief history of the function points...
2011/03/12
[ "https://quant.stackexchange.com/questions/700", "https://quant.stackexchange.com", "https://quant.stackexchange.com/users/291/" ]
It shows up in Bayes Analysis where a binomial distribution is involved (integer values apply): $$ \Gamma(k + 1) = k! $$ That allows the following integral to be evaluated in closed form: $$ \int\_{0}^{1}p^{j-1}(1-p)^{k-1}dp = \frac{\Gamma(k)\Gamma(j)}{\Gamma(j+k)} $$ That integral can easily show up in the numerat...
In certain cases some stochastic differential equations(SDE's) have closed form(deterministic) solutions in the form of well known ordinary differential equations (ODE's), partial differential equations(PDE's), and special functions like the gamma function. Here's an example from a paper where an SDE has a closed form...
700
I was looking into the factorial function in an R package called gregmisc and came across the implementation of the gamma function, instead of a recursive or iterative process as I was expecting. The gamma function is defined as: $$ \Gamma(z)=\int\_{0}^{\infty}e^{-t}t^{z-1}dt $$ A brief history of the function points...
2011/03/12
[ "https://quant.stackexchange.com/questions/700", "https://quant.stackexchange.com", "https://quant.stackexchange.com/users/291/" ]
It shows up in Bayes Analysis where a binomial distribution is involved (integer values apply): $$ \Gamma(k + 1) = k! $$ That allows the following integral to be evaluated in closed form: $$ \int\_{0}^{1}p^{j-1}(1-p)^{k-1}dp = \frac{\Gamma(k)\Gamma(j)}{\Gamma(j+k)} $$ That integral can easily show up in the numerat...
Gamma distributions are being used to model the default rate of credit portfolios by CreditRisk.
67,501,505
I am trying this code provided and accepted here: <https://stackoverflow.com/a/55369170/14307622> but I am getting this error. Any ideas why ? I am new here so if I am breaking some rules for this question, then please let me know but if possible, please suggest some solutions to the problem first. ``` import keyboard...
2021/05/12
[ "https://Stackoverflow.com/questions/67501505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14307622/" ]
It seems `on_press_key()` works only with single key like `q` but not with combination `alt+q`. Or maybe it is problem only on some systems. At least it doesn't work on my Linux. Or maybe they change code in module. Answer in [Checking for keyboard inputs uses too much cpu usage, Is there something wrong with my code?...
This is how I solved my issue. I ditched the keyboard module since it was not working the way I wanted it to and then I used the [Python Global-Hotkeys Module](https://pypi.org/project/global-hotkeys/). The code was pretty much the same but now everything just clicked in place. Hope this helps someone in the future.
73,652,254
have problem with IDEA? I create new Spring Boot project, with dependency Spring Web, Spring Security, Spring JPA and others Create two simple class 1. main class 2. Controller Class @Controller public class { ``` @GetMapping("") public String Home() { return "homes"; } ``` } And simple templates "homes.htm...
2022/09/08
[ "https://Stackoverflow.com/questions/73652254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18583088/" ]
You have added spring security dependency in your pom.xml and that is the reason spring is securing all the endpoints by default. Either remove the dependency or configure it to allow access to wanted endpoints.
I think this happens because of Adding the dependencies of Spring Security to you pom.xml, which automatically securing the endpoints by default. try removing this dependency or configure it to allow access to the endpoint you want.
17,171,967
I'm new to vb.net. I'm used to do things the old school way (VB6). Is there a way to manually populate a datagridview? In the old way (VB6) I populate a listview by adding columns manually and loop to a recordset to add the rows. For example what if I have this command (storedproc). `"Select OrderID, ProductName, Q...
2013/06/18
[ "https://Stackoverflow.com/questions/17171967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2059064/" ]
To add column to DataTable ``` Dim MyTable as New DataTable Dim dc As DataColumn dc = New DataColumn dc.DataType = System.Type.GetType("System.String") dc.ColumnName = "OrderID" MyTable.Columns.Add(dc) dc = New DataColumn dc.DataType = System.Type.GetType("System.String") dc.ColumnName = "ProductName" MyTable.Column...
I have the strange solution. If your query will never changes (i.e first column is forever "OrderID", second is "ProductName" etc.) you could hide unwanted columns. ``` DataGridView1.Columns(2).Visible = False 'hiding 3rd column DataGridView1.Columns(4).Visible = False 'hiding 5th column ```
17,171,967
I'm new to vb.net. I'm used to do things the old school way (VB6). Is there a way to manually populate a datagridview? In the old way (VB6) I populate a listview by adding columns manually and loop to a recordset to add the rows. For example what if I have this command (storedproc). `"Select OrderID, ProductName, Q...
2013/06/18
[ "https://Stackoverflow.com/questions/17171967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2059064/" ]
To add column to DataTable ``` Dim MyTable as New DataTable Dim dc As DataColumn dc = New DataColumn dc.DataType = System.Type.GetType("System.String") dc.ColumnName = "OrderID" MyTable.Columns.Add(dc) dc = New DataColumn dc.DataType = System.Type.GetType("System.String") dc.ColumnName = "ProductName" MyTable.Column...
I got this code from a book. This code is close enough. At least I can configure the format and alignment of a Column. ``` Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class Form1 Dim objConnection As New SqlConnection(ConfigurationManager.Connection...
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
This is what worked for me ``` locationManager.addTestProvider(mocLocationProvider, false, false, false, false, true, true, true, 0, 5); locationManager.setTestProviderEnabled(mocLocationProvider, true); ``` . ``` Location mockLocation = new Location(mocLocationProvider); // a string mockLocati...
I ran into a similar problem. Regardless of what I tried, I could never get onLocationChanged() to be automatically called. Eventually, I gave up and created a method that both set the location with setTestProviderLocation() and directly called onLocationChanged(). It's not a perfect solution, but it worked for my need...
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
This is what worked for me ``` locationManager.addTestProvider(mocLocationProvider, false, false, false, false, true, true, true, 0, 5); locationManager.setTestProviderEnabled(mocLocationProvider, true); ``` . ``` Location mockLocation = new Location(mocLocationProvider); // a string mockLocati...
I have the same problem with this issue, I think the problem is TestProvider, so I set `String mocLocationProvider= LocationManager.NETWORK_PROVIDER;` and then it can call `onLocationChanged()`.
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
I had the same problem. Couldn't resolve it and finally I gave up and added a call to `onLocationChanged( location)` after `locationManager.setTestProviderEnabled( PROVIDER, location)` manually. It's not pretty but works.
I ran into a similar problem. Regardless of what I tried, I could never get onLocationChanged() to be automatically called. Eventually, I gave up and created a method that both set the location with setTestProviderLocation() and directly called onLocationChanged(). It's not a perfect solution, but it worked for my need...
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
After adding and enabling your Provider just use this line to get the updates : `locationManager.requestLocationUpdates(MOCK_PROVIDER, 0, 0, this);` I recommend to use a method like this on activity start-up : ```java private void enableProvider() { try { locationManager.addTestProvider( ...
I have the same problem with this issue, I think the problem is TestProvider, so I set `String mocLocationProvider= LocationManager.NETWORK_PROVIDER;` and then it can call `onLocationChanged()`.
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
I had the same issue and could get it to work. I'll share it here in case it can help anyone else. The thing to consider is that any call to `setTestProviderLocation` will invoke any listener registered on the mock providers at the time of the invocation. So if you call `setTestProviderLocation` and right after that c...
I had the same problem. Couldn't resolve it and finally I gave up and added a call to `onLocationChanged( location)` after `locationManager.setTestProviderEnabled( PROVIDER, location)` manually. It's not pretty but works.
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
This is what worked for me ``` locationManager.addTestProvider(mocLocationProvider, false, false, false, false, true, true, true, 0, 5); locationManager.setTestProviderEnabled(mocLocationProvider, true); ``` . ``` Location mockLocation = new Location(mocLocationProvider); // a string mockLocati...
I had the same problem. Couldn't resolve it and finally I gave up and added a call to `onLocationChanged( location)` after `locationManager.setTestProviderEnabled( PROVIDER, location)` manually. It's not pretty but works.
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
I ran into a similar problem. Regardless of what I tried, I could never get onLocationChanged() to be automatically called. Eventually, I gave up and created a method that both set the location with setTestProviderLocation() and directly called onLocationChanged(). It's not a perfect solution, but it worked for my need...
I have the same problem with this issue, I think the problem is TestProvider, so I set `String mocLocationProvider= LocationManager.NETWORK_PROVIDER;` and then it can call `onLocationChanged()`.
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
I had the same issue and could get it to work. I'll share it here in case it can help anyone else. The thing to consider is that any call to `setTestProviderLocation` will invoke any listener registered on the mock providers at the time of the invocation. So if you call `setTestProviderLocation` and right after that c...
I have the same problem with this issue, I think the problem is TestProvider, so I set `String mocLocationProvider= LocationManager.NETWORK_PROVIDER;` and then it can call `onLocationChanged()`.
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
This is what worked for me ``` locationManager.addTestProvider(mocLocationProvider, false, false, false, false, true, true, true, 0, 5); locationManager.setTestProviderEnabled(mocLocationProvider, true); ``` . ``` Location mockLocation = new Location(mocLocationProvider); // a string mockLocati...
I had the same issue and could get it to work. I'll share it here in case it can help anyone else. The thing to consider is that any call to `setTestProviderLocation` will invoke any listener registered on the mock providers at the time of the invocation. So if you call `setTestProviderLocation` and right after that c...
6,015,172
I'm trying to get this bit of code to work: [Testing GPS in Android](https://stackoverflow.com/questions/1972895/testing-gps-in-android/3940877#3940877) The problem is, when I run the test, onLocationChanged() is never called: ``` public class LocationTest0 extends AndroidTestCase implements LocationListener { priva...
2011/05/16
[ "https://Stackoverflow.com/questions/6015172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/708436/" ]
I had the same problem. Couldn't resolve it and finally I gave up and added a call to `onLocationChanged( location)` after `locationManager.setTestProviderEnabled( PROVIDER, location)` manually. It's not pretty but works.
After adding and enabling your Provider just use this line to get the updates : `locationManager.requestLocationUpdates(MOCK_PROVIDER, 0, 0, this);` I recommend to use a method like this on activity start-up : ```java private void enableProvider() { try { locationManager.addTestProvider( ...
1,291,367
Simplifying $$\Big[\dfrac{5-\sqrt{a}}{5+\sqrt a}-\dfrac{\sqrt a+5}{\sqrt a-5}+2\Big]^{-2}$$ When I try, the numerator cancels out to $0$, yet the answer sheet says $(25-a)^2/10000$. Where am I going wrong & how is getting $10 000$ there even possible?
2015/05/20
[ "https://math.stackexchange.com/questions/1291367", "https://math.stackexchange.com", "https://math.stackexchange.com/users/242166/" ]
Note that the expression in the brackets can be adapted by changing the sign of the second term and the signs in the denominator. Simplify to $$\frac {5-\sqrt a}{5+\sqrt a}+\frac {5+\sqrt a}{5-\sqrt a}+2=\frac {(5-\sqrt a)^2+(5+\sqrt a)^2+2(25-a)}{25-a}=\frac {100}{25-a}$$
Let $s = \sqrt{a}$: $$ \frac{5-s}{5+s}-\frac{s+5}{s-5} = \frac{-(s-5)^2 - (s+5)^2} {(5+s)(5-s)} = \frac{(s-5)^2 + (s+5)^2} {s^2-5^2} = \frac{2s^2 + 2 \cdot 5^2}{s^2-5^2} = \frac{2(a + 25)}{a-25} $$ Can you finish the problem?
1,291,367
Simplifying $$\Big[\dfrac{5-\sqrt{a}}{5+\sqrt a}-\dfrac{\sqrt a+5}{\sqrt a-5}+2\Big]^{-2}$$ When I try, the numerator cancels out to $0$, yet the answer sheet says $(25-a)^2/10000$. Where am I going wrong & how is getting $10 000$ there even possible?
2015/05/20
[ "https://math.stackexchange.com/questions/1291367", "https://math.stackexchange.com", "https://math.stackexchange.com/users/242166/" ]
Let $s = \sqrt{a}$: $$ \frac{5-s}{5+s}-\frac{s+5}{s-5} = \frac{-(s-5)^2 - (s+5)^2} {(5+s)(5-s)} = \frac{(s-5)^2 + (s+5)^2} {s^2-5^2} = \frac{2s^2 + 2 \cdot 5^2}{s^2-5^2} = \frac{2(a + 25)}{a-25} $$ Can you finish the problem?
$$\dfrac{\bar w}w + \dfrac{w}{\bar w}+2\, =\, \dfrac{(\bar w+ w)^2}{\bar w w}\, =\, \dfrac{10^2}{25-a}\ \ \ {\rm for}\ \ \ \begin{align}w\, =\, 5+\sqrt a\\ \bar w \,=\, 5-\sqrt a\end{align}$$
1,291,367
Simplifying $$\Big[\dfrac{5-\sqrt{a}}{5+\sqrt a}-\dfrac{\sqrt a+5}{\sqrt a-5}+2\Big]^{-2}$$ When I try, the numerator cancels out to $0$, yet the answer sheet says $(25-a)^2/10000$. Where am I going wrong & how is getting $10 000$ there even possible?
2015/05/20
[ "https://math.stackexchange.com/questions/1291367", "https://math.stackexchange.com", "https://math.stackexchange.com/users/242166/" ]
Note that the expression in the brackets can be adapted by changing the sign of the second term and the signs in the denominator. Simplify to $$\frac {5-\sqrt a}{5+\sqrt a}+\frac {5+\sqrt a}{5-\sqrt a}+2=\frac {(5-\sqrt a)^2+(5+\sqrt a)^2+2(25-a)}{25-a}=\frac {100}{25-a}$$
$$\dfrac{\bar w}w + \dfrac{w}{\bar w}+2\, =\, \dfrac{(\bar w+ w)^2}{\bar w w}\, =\, \dfrac{10^2}{25-a}\ \ \ {\rm for}\ \ \ \begin{align}w\, =\, 5+\sqrt a\\ \bar w \,=\, 5-\sqrt a\end{align}$$
11,129,696
I want to capitalize the first letter of sentences, and also the first letter after commas if possible. I want to add the code in here: ```css .qcont { width: 550px; height: auto; float: right; overflow: hidden; position: relative; } ```
2012/06/20
[ "https://Stackoverflow.com/questions/11129696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1448744/" ]
This cannot be done in CSS. The `text-transform` property makes no distinction according to the placement of a word inside the content, and there is no pseudo-element for selecting the first word of a sentence. You would need to have real elements, in markup, for each sentence. But if you can do that, then you could pr...
`text-transform:capitalize;` ~~will capitalize the first letter of a sentence~~, but if you want to also do it for commas you will have to write some javascript. I agree with @BoltClock, though. Why on earth would you want to capitalize after a comma? **Edit:** For the sake of readers: `text-transform:capitalize;` wil...
11,129,696
I want to capitalize the first letter of sentences, and also the first letter after commas if possible. I want to add the code in here: ```css .qcont { width: 550px; height: auto; float: right; overflow: hidden; position: relative; } ```
2012/06/20
[ "https://Stackoverflow.com/questions/11129696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1448744/" ]
You can capitalize the first letter of the `.qcont` element by using the pseudo-element `:first-letter`. ``` .qcont:first-letter{ text-transform: capitalize } ``` This is the closest you're gonna get using only css. You could use javascript (in combination with jQuery) to wrap each letter which comes after a perio...
`text-transform:capitalize;` ~~will capitalize the first letter of a sentence~~, but if you want to also do it for commas you will have to write some javascript. I agree with @BoltClock, though. Why on earth would you want to capitalize after a comma? **Edit:** For the sake of readers: `text-transform:capitalize;` wil...
11,129,696
I want to capitalize the first letter of sentences, and also the first letter after commas if possible. I want to add the code in here: ```css .qcont { width: 550px; height: auto; float: right; overflow: hidden; position: relative; } ```
2012/06/20
[ "https://Stackoverflow.com/questions/11129696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1448744/" ]
If you need to capitalize the first letter in contenteditable container you can't use the css property ``` #myContentEditableDiv:first-letter { text-transform: capitalize; } ``` because when you try to delete a letter automatically you will delete all the text contained in the contenteditable. Try instead the ...
`text-transform:capitalize;` ~~will capitalize the first letter of a sentence~~, but if you want to also do it for commas you will have to write some javascript. I agree with @BoltClock, though. Why on earth would you want to capitalize after a comma? **Edit:** For the sake of readers: `text-transform:capitalize;` wil...
11,129,696
I want to capitalize the first letter of sentences, and also the first letter after commas if possible. I want to add the code in here: ```css .qcont { width: 550px; height: auto; float: right; overflow: hidden; position: relative; } ```
2012/06/20
[ "https://Stackoverflow.com/questions/11129696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1448744/" ]
You can capitalize the first letter of the `.qcont` element by using the pseudo-element `:first-letter`. ``` .qcont:first-letter{ text-transform: capitalize } ``` This is the closest you're gonna get using only css. You could use javascript (in combination with jQuery) to wrap each letter which comes after a perio...
This cannot be done in CSS. The `text-transform` property makes no distinction according to the placement of a word inside the content, and there is no pseudo-element for selecting the first word of a sentence. You would need to have real elements, in markup, for each sentence. But if you can do that, then you could pr...
11,129,696
I want to capitalize the first letter of sentences, and also the first letter after commas if possible. I want to add the code in here: ```css .qcont { width: 550px; height: auto; float: right; overflow: hidden; position: relative; } ```
2012/06/20
[ "https://Stackoverflow.com/questions/11129696", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1448744/" ]
You can capitalize the first letter of the `.qcont` element by using the pseudo-element `:first-letter`. ``` .qcont:first-letter{ text-transform: capitalize } ``` This is the closest you're gonna get using only css. You could use javascript (in combination with jQuery) to wrap each letter which comes after a perio...
If you need to capitalize the first letter in contenteditable container you can't use the css property ``` #myContentEditableDiv:first-letter { text-transform: capitalize; } ``` because when you try to delete a letter automatically you will delete all the text contained in the contenteditable. Try instead the ...
74,025,190
My requirement is simple, I need to write my spark DataFrame to S3 as a single csv file of a specified name Write now I am using .coalesce(1) which puts all the data in a single CSV but still creates a folder with some additional files and the name of the main csv file is some id. [I'm using java/scala] ``` dataFrame....
2022/10/11
[ "https://Stackoverflow.com/questions/74025190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11907366/" ]
You are treating the paginator like the Resource client which it is not. You need to be more low level like this example: <https://github.com/aws-samples/aws-dynamodb-examples/blob/master/DynamoDB-SDK-Examples/python/WorkingWithScans/scan_with_paginator.py>
Two possible solutions identified that I will leave here for anyone attempting to filter / search on paginated DynamoDB responses as the Boto3 documentation is frankly useless. Option 1: Drill down into the response object using JMES on the dynamodb specific response object: ``` response object = { "Items":[ ...
46,974
Is there a difference between [Google Keyboard](https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin), which was recently release on the Play Store, and the Android Keyboard (AOSP) in the open source project? Update: I need the difference from a feature prospective
2013/06/10
[ "https://android.stackexchange.com/questions/46974", "https://android.stackexchange.com", "https://android.stackexchange.com/users/592/" ]
The Samsung Galaxy S2 does have dual microphones. However, if using Gingerbread (2.3), the device only records mono audio. Using Ice Cream Sandwich (4.0) though, the device can record stereo audio at about 130 Kbps with a sampling rate of 48KHz. Source: [GSM Arena](http://www.gsmarena.com/samsung_galaxy_s_ii_ics_vs_...
It does have a dedicated 2nd microphone for active noise cancellation according to [GSMArena](http://www.gsmarena.com/samsung_i9100_galaxy_s_ii-3621.php).
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
I don't know of a tool that does exactly what you are looking for, but I have played around with [MusicIP](http://www.amplifindmusicservices.com/what/downloads.php). Used the linux / java version - it takes a long time to completely analyze a music library, but it really does work. You can find songs that are similar...
I found another tool for tagging MP3 files with the correct BPM value. It's called [BPMDetect](http://sourceforge.net/projects/bpmdetect/). Open-source. QT libs so works fine under Gnome. Comes with a GUI but can be compiled as a console only version (run "scons console=1" as stated in the readme.txt). Otherwise, in ...
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
This is a command-line tool to detect the BPM and put it in the FLAC file tags: <http://www.pogo.org.uk/~mark/bpm-tools/>
I don't know of a tool that does exactly what you are looking for, but I have played around with [MusicIP](http://www.amplifindmusicservices.com/what/downloads.php). Used the linux / java version - it takes a long time to completely analyze a music library, but it really does work. You can find songs that are similar...
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
This is a command-line tool to detect the BPM and put it in the FLAC file tags: <http://www.pogo.org.uk/~mark/bpm-tools/>
It's not Linux but may well work in Wine - I use [MixMeister BPM Analyzer](http://www.mixmeister.com/bpmanalyzer/bpmanalyzer.asp)
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
I used kolypto's original script using `bpmcount` and rewrote it for `bpm-tag` (utility of `bpm-tools`) which I had better luck with installing. I also made some improvements of my own. You can find it on GitHub <https://github.com/meridius/bpmwrap>
There is another tool recommended in [this question](https://stackoverflow.com/questions/477944/bpm-audio-detection-library) on stackoverflow: [aubio](http://dev.aubio.org/wiki/Features), which comes along with python modules. I haven't tried it because I was kinda busy taking care of compiling **BpmDj**. Just in cas...
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
At the site DaveParillo suggested I've found [BpmDj](http://bpmdj.yellowcouch.org/measuring-tempo.html) project. It has a `bpmcount` executable that calculates the bpm very nice: it handles mp3 as well as flac: ``` 161.135 Metallica/2008 - Death Magnetic/01-That Was Just Your Life.flac 63.5645 Doom3.mp3 ``` The only...
I used kolypto's original script using `bpmcount` and rewrote it for `bpm-tag` (utility of `bpm-tools`) which I had better luck with installing. I also made some improvements of my own. You can find it on GitHub <https://github.com/meridius/bpmwrap>
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
At the site DaveParillo suggested I've found [BpmDj](http://bpmdj.yellowcouch.org/measuring-tempo.html) project. It has a `bpmcount` executable that calculates the bpm very nice: it handles mp3 as well as flac: ``` 161.135 Metallica/2008 - Death Magnetic/01-That Was Just Your Life.flac 63.5645 Doom3.mp3 ``` The only...
This is a command-line tool to detect the BPM and put it in the FLAC file tags: <http://www.pogo.org.uk/~mark/bpm-tools/>
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
This is a command-line tool to detect the BPM and put it in the FLAC file tags: <http://www.pogo.org.uk/~mark/bpm-tools/>
I found another tool for tagging MP3 files with the correct BPM value. It's called [BPMDetect](http://sourceforge.net/projects/bpmdetect/). Open-source. QT libs so works fine under Gnome. Comes with a GUI but can be compiled as a console only version (run "scons console=1" as stated in the readme.txt). Otherwise, in ...
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
At the site DaveParillo suggested I've found [BpmDj](http://bpmdj.yellowcouch.org/measuring-tempo.html) project. It has a `bpmcount` executable that calculates the bpm very nice: it handles mp3 as well as flac: ``` 161.135 Metallica/2008 - Death Magnetic/01-That Was Just Your Life.flac 63.5645 Doom3.mp3 ``` The only...
To get @meridius' solution working on my Mac I had to do a bit of extra legwork and modify the script a bit: ``` # Let's install bpm-tools git clone http://www.pogo.org.uk/~mark/bpm-tools.git cd bpm-tools make && make install # There will be errors, but they did not affect the result # The following three lines could...
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
At the site DaveParillo suggested I've found [BpmDj](http://bpmdj.yellowcouch.org/measuring-tempo.html) project. It has a `bpmcount` executable that calculates the bpm very nice: it handles mp3 as well as flac: ``` 161.135 Metallica/2008 - Death Magnetic/01-That Was Just Your Life.flac 63.5645 Doom3.mp3 ``` The only...
It's not Linux but may well work in Wine - I use [MixMeister BPM Analyzer](http://www.mixmeister.com/bpmanalyzer/bpmanalyzer.asp)
129,041
Amarok 2 can search through music collection using ID3v2 tag's 'bpm' field. That would be *very* nice to retag the entire music collection so I can find the 'mood' of the track I like. However I've not found any beat-detection software that could have helped me. Have you ever used one? CLI, preferably. Also I'm intere...
2010/04/09
[ "https://superuser.com/questions/129041", "https://superuser.com", "https://superuser.com/users/8382/" ]
At the site DaveParillo suggested I've found [BpmDj](http://bpmdj.yellowcouch.org/measuring-tempo.html) project. It has a `bpmcount` executable that calculates the bpm very nice: it handles mp3 as well as flac: ``` 161.135 Metallica/2008 - Death Magnetic/01-That Was Just Your Life.flac 63.5645 Doom3.mp3 ``` The only...
While it is not just a tool like you say you are looking for, [Banshee media player](http://banshee-project.org/ "Banshee website") can detect bpm. I use Banshee for all my music playing, organisation and synchronizing to portable players. I'm not affiliated, but I like the program the best of all that I've tried. It ...
17,441,695
I'm trying to send some data to a servlet and then to get back a `.xls` file from it. In order to do this, I'm using jquery, but I'm facing some strange issues. Let me explain. Here is how I'm sending the data to the servlet and how I'm supposed to get the generated file back: ``` jQuery.download = function(url, data...
2013/07/03
[ "https://Stackoverflow.com/questions/17441695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1773265/" ]
> > Now i create dao of b, since b has all the data. But the table B has only created with data, A is never created. Kindly could some one help? > > > Right. You need to create the `A` items using: ``` for (A a : b.aees) { aDao.create(a); } ``` ORMLite does not automatically create those for you. You might ...
You have to override the DAO of the B class, so when an object B is created or updated, the objects in the collection to be also updated. Take a look at this question: [Collections in ORMLite](https://stackoverflow.com/questions/5524503/collections-in-ormlite).
17,441,695
I'm trying to send some data to a servlet and then to get back a `.xls` file from it. In order to do this, I'm using jquery, but I'm facing some strange issues. Let me explain. Here is how I'm sending the data to the servlet and how I'm supposed to get the generated file back: ``` jQuery.download = function(url, data...
2013/07/03
[ "https://Stackoverflow.com/questions/17441695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1773265/" ]
You have to override the DAO of the B class, so when an object B is created or updated, the objects in the collection to be also updated. Take a look at this question: [Collections in ORMLite](https://stackoverflow.com/questions/5524503/collections-in-ormlite).
i was facing the same problem. My json was like: ``` { "parent":{ "name":"ABC", "children":[ {"childName":"1"}, {"childName":"2"}, {"childName":"3"} ] } } ``` i resolved the is...
17,441,695
I'm trying to send some data to a servlet and then to get back a `.xls` file from it. In order to do this, I'm using jquery, but I'm facing some strange issues. Let me explain. Here is how I'm sending the data to the servlet and how I'm supposed to get the generated file back: ``` jQuery.download = function(url, data...
2013/07/03
[ "https://Stackoverflow.com/questions/17441695", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1773265/" ]
> > Now i create dao of b, since b has all the data. But the table B has only created with data, A is never created. Kindly could some one help? > > > Right. You need to create the `A` items using: ``` for (A a : b.aees) { aDao.create(a); } ``` ORMLite does not automatically create those for you. You might ...
i was facing the same problem. My json was like: ``` { "parent":{ "name":"ABC", "children":[ {"childName":"1"}, {"childName":"2"}, {"childName":"3"} ] } } ``` i resolved the is...
48,680,733
I created a for-loop to form a linear model with features and remove one feature every one cycle of the for-loop. Using this for loop, I want to take-out pvalues of each features. Below is my fake data and the for loop. ``` #fake data z <- c(0.91629, 1.32580, -1.09940, 0.33601, 0.28795, 1.59050, 0.68193, -1.5944, ...
2018/02/08
[ "https://Stackoverflow.com/questions/48680733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7472392/" ]
Is this what you want? ``` Remove <- c("P1", "P5", "P2", "P8", "P9", "P4", "P3", "P6", "P7", "P10") b <- matrix(rep(NA, 100), nrow = 10) for (i in 1:length(Remove)){ fit3 <- lm(as.formula(paste('SysResponse~',paste(Remove, collapse="+"))), data=L) b[i,] <- if(length(summary(fit3)$coefficients[,4]) == 10){summary(...
Try this code: ``` pvalue3d <- NULL for (i in 1:length(Remove)){ fit3 <- lm(as.formula(paste('SysResponse~',paste(Remove, collapse="+"))), data=train2); b <- summary(fit3)$coefficients[,4]; # p-value pvalue3d <- rbind(pvalue3d, b); Remove = Remove[-1]; } ``` PS: in your example train2 is not defined
11,863
When cooking spaghetti carbonara, I mix the pasta, bacon, cheese and egg yolks together with a scoop. This technique frequently results in mashed spaghetti as well as bacon clustering. What could I do different?
2011/02/06
[ "https://cooking.stackexchange.com/questions/11863", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/-1/" ]
In addition to the tips from Joe's great grandmother, you might want to try and rinse the pasta thoroughly with some lukewarm water after cooking it al dente. That way you rinse off the remaining starch and you prevent the pasta from cooking any further. Rinsing results in firmer pasta that is silky smooth and doesn't ...
Here's how I learned from my great grandmother: * cook the bacon/salt pork/home/whatever 'til crispy * beat the eggs (she used whole eggs) with a little black pepper * drain the cooked pasta, and immediately mix the pasta with the eggs; if it's too dry, add some of the pasta water. * Add fried pork product and mix a l...
11,863
When cooking spaghetti carbonara, I mix the pasta, bacon, cheese and egg yolks together with a scoop. This technique frequently results in mashed spaghetti as well as bacon clustering. What could I do different?
2011/02/06
[ "https://cooking.stackexchange.com/questions/11863", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/-1/" ]
Here's how I learned from my great grandmother: * cook the bacon/salt pork/home/whatever 'til crispy * beat the eggs (she used whole eggs) with a little black pepper * drain the cooked pasta, and immediately mix the pasta with the eggs; if it's too dry, add some of the pasta water. * Add fried pork product and mix a l...
You could try replacing spaghetti with rigatoni pasta. In this way it is a lot easier to mix and you'll end up with a dish much closer to the authentic Italian carbonara recipe.
11,863
When cooking spaghetti carbonara, I mix the pasta, bacon, cheese and egg yolks together with a scoop. This technique frequently results in mashed spaghetti as well as bacon clustering. What could I do different?
2011/02/06
[ "https://cooking.stackexchange.com/questions/11863", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/-1/" ]
Here's how I learned from my great grandmother: * cook the bacon/salt pork/home/whatever 'til crispy * beat the eggs (she used whole eggs) with a little black pepper * drain the cooked pasta, and immediately mix the pasta with the eggs; if it's too dry, add some of the pasta water. * Add fried pork product and mix a l...
The key is water. Use the pasta water for the best flavor. This dish is mostly about timing. Do not ever rinse the pasta with water! Also, if you are making Carbonara with anything other than Guanciale (pork cheek)--Shame on you! <http://www.italianfoodnet.com/eng/ricette/spaghetti-carbonara-spaghetti-alla-carbonara>...
11,863
When cooking spaghetti carbonara, I mix the pasta, bacon, cheese and egg yolks together with a scoop. This technique frequently results in mashed spaghetti as well as bacon clustering. What could I do different?
2011/02/06
[ "https://cooking.stackexchange.com/questions/11863", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/-1/" ]
In addition to the tips from Joe's great grandmother, you might want to try and rinse the pasta thoroughly with some lukewarm water after cooking it al dente. That way you rinse off the remaining starch and you prevent the pasta from cooking any further. Rinsing results in firmer pasta that is silky smooth and doesn't ...
You could try replacing spaghetti with rigatoni pasta. In this way it is a lot easier to mix and you'll end up with a dish much closer to the authentic Italian carbonara recipe.
11,863
When cooking spaghetti carbonara, I mix the pasta, bacon, cheese and egg yolks together with a scoop. This technique frequently results in mashed spaghetti as well as bacon clustering. What could I do different?
2011/02/06
[ "https://cooking.stackexchange.com/questions/11863", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/-1/" ]
In addition to the tips from Joe's great grandmother, you might want to try and rinse the pasta thoroughly with some lukewarm water after cooking it al dente. That way you rinse off the remaining starch and you prevent the pasta from cooking any further. Rinsing results in firmer pasta that is silky smooth and doesn't ...
The key is water. Use the pasta water for the best flavor. This dish is mostly about timing. Do not ever rinse the pasta with water! Also, if you are making Carbonara with anything other than Guanciale (pork cheek)--Shame on you! <http://www.italianfoodnet.com/eng/ricette/spaghetti-carbonara-spaghetti-alla-carbonara>...
11,863
When cooking spaghetti carbonara, I mix the pasta, bacon, cheese and egg yolks together with a scoop. This technique frequently results in mashed spaghetti as well as bacon clustering. What could I do different?
2011/02/06
[ "https://cooking.stackexchange.com/questions/11863", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/-1/" ]
The key is water. Use the pasta water for the best flavor. This dish is mostly about timing. Do not ever rinse the pasta with water! Also, if you are making Carbonara with anything other than Guanciale (pork cheek)--Shame on you! <http://www.italianfoodnet.com/eng/ricette/spaghetti-carbonara-spaghetti-alla-carbonara>...
You could try replacing spaghetti with rigatoni pasta. In this way it is a lot easier to mix and you'll end up with a dish much closer to the authentic Italian carbonara recipe.
26,205,066
I have a large JSON formatted file (254MB) which I am trying to import into MongoDB in Cloud9 IDE using mongoimport. Json file consists of mongodb documents each on its own row using newline character. The file looks like this: ``` ... {"t":"1358836264","p":"1.33470"} {"t":"1358836265","p":"1.33475"} {"t":"1358836271"...
2014/10/05
[ "https://Stackoverflow.com/questions/26205066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1312286/" ]
According to the message: ``` Sun Oct 5 16:52:03.088 Progress: 25548600/26345472 96% Sun Oct 5 16:52:03.088 774200 15180/second Sun Oct 5 16:52:04.644 exception:BSON representation of supplied JSON is too large: code FailedToParse: FailedToParse: Expecting ':': offset:2...
Change your command from `mongoimport -d woption -c eurusd eurusddata.json --jsonArray` to `mongoimport -d woption -c eurusd --file eurusddata.json --jsonArray` and this will work. Hope this helps. Update if this doesn't work.