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
49,168,774
I have created a table with cells in Angular/html/css and my cells have to be able to hold a lot of text. My Problem os just that the text will overflow the cell and i need it to just fit inside so it looks nice. [![enter image description here](https://i.stack.imgur.com/nR5dJ.png)](https://i.stack.imgur.com/nR5dJ.png...
2018/03/08
[ "https://Stackoverflow.com/questions/49168774", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7117532/" ]
Try to use `[word-wrap: break-word]` in your `td` ``` td { word-wrap: break-word width: 200px; } ```
The problem is you have long words without even having a space. Use `word-break:break-all` for your `td` element. It will break the long text words which does not having spaces. ``` .theTable td { word-break:break-all; } ``` Also when you write CSS, don't target the element directly like `td` or `tr`. Because that...
55,531,924
I am trying to dismiss a viewController to rootViewController while signOut. But the problem is that the viewController is not getting dismissed, It still remains in the same page itself. Below I have mentioned the code that I have used. ``` let AppDel = UIApplication.shared.delegate as! AppDelegate let mainSt...
2019/04/05
[ "https://Stackoverflow.com/questions/55531924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8399124/" ]
in the App delegate type a function that takes the new view controller and set it as root. than dismisses the old one. ``` func updateRootViewController(with viewController: UIViewController) { guard let oldViewController = self.window?.rootViewController else { return } UIView.transition(from: oldView...
* Why have you dismissed your navigation controller before calling **popToRootViewController** ? > > AppDel.window?.rootViewController?.dismiss(animated: true, completion: > nil) > > > * Check if you are calling this from the main thread. Add your code inside this block: ``` DispatchQueue.main.async { // ...
55,531,924
I am trying to dismiss a viewController to rootViewController while signOut. But the problem is that the viewController is not getting dismissed, It still remains in the same page itself. Below I have mentioned the code that I have used. ``` let AppDel = UIApplication.shared.delegate as! AppDelegate let mainSt...
2019/04/05
[ "https://Stackoverflow.com/questions/55531924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8399124/" ]
Earlier, I have faced the same issue. I was fixed issue by performing all other operation after dismissing controller successfully. Please refer below sample code. I am sure it will work for you. ``` AppDel.window?.rootViewController?.dismiss(animated: true, completion: { (AppDel.window?.rootViewControlle...
* Why have you dismissed your navigation controller before calling **popToRootViewController** ? > > AppDel.window?.rootViewController?.dismiss(animated: true, completion: > nil) > > > * Check if you are calling this from the main thread. Add your code inside this block: ``` DispatchQueue.main.async { // ...
55,531,924
I am trying to dismiss a viewController to rootViewController while signOut. But the problem is that the viewController is not getting dismissed, It still remains in the same page itself. Below I have mentioned the code that I have used. ``` let AppDel = UIApplication.shared.delegate as! AppDelegate let mainSt...
2019/04/05
[ "https://Stackoverflow.com/questions/55531924", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8399124/" ]
Earlier, I have faced the same issue. I was fixed issue by performing all other operation after dismissing controller successfully. Please refer below sample code. I am sure it will work for you. ``` AppDel.window?.rootViewController?.dismiss(animated: true, completion: { (AppDel.window?.rootViewControlle...
in the App delegate type a function that takes the new view controller and set it as root. than dismisses the old one. ``` func updateRootViewController(with viewController: UIViewController) { guard let oldViewController = self.window?.rootViewController else { return } UIView.transition(from: oldView...
3,517
Is there a situation or question where the phrase *will have been going to go* is the best, most natural, or clearest response (or included in said response)? I'm asking this probably somewhat silly question just for fun. It comes from my past musings on English's complexity and my observation of how difficult it must...
2010/09/28
[ "https://english.stackexchange.com/questions/3517", "https://english.stackexchange.com", "https://english.stackexchange.com/users/1421/" ]
The reason the phrase is never used is because "will have been going to go" invariably includes "am going to go". But in theory, if your travel insurance company asked when you took the decision about your holiday, you could reply *"By the time this letter arrives, I will have been going to go* (to Acapulco) *for fourt...
Well, I can't think of an example for your exact phrase, but I can think of one with similar construction, and circumstances in which I might use it. Example: I'm on holiday, writing a postcard to someone who I know is also going on holiday in the near future and in all likelihood won't be reading my missive until the...
2,084
See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it just something dumb like checkboxes use a different method? ``` elem = self.web.find_element_by_css_selector("input[nam...
2011/11/01
[ "https://sqa.stackexchange.com/questions/2084", "https://sqa.stackexchange.com", "https://sqa.stackexchange.com/users/2714/" ]
We sometimes have problems like this. I have found the easiest way to solve this is to use a wait function. I imagine that when the page is loaded the button is hidden and there is javascript to make it visible. Often times the driver will run faster than the javascript. EDIT: ``` elem = self.web.find_element_by_id('...
I'm having a similar problem, however with a button that starts off being hidden, then I use a piece of javascript to unhide it when one of the other buttons is clicked - it definitely has something to do with the javascript, is it possible that selenium builds a list of visible elements when the page loads and then do...
2,084
See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it just something dumb like checkboxes use a different method? ``` elem = self.web.find_element_by_css_selector("input[nam...
2011/11/01
[ "https://sqa.stackexchange.com/questions/2084", "https://sqa.stackexchange.com", "https://sqa.stackexchange.com/users/2714/" ]
It's a bit unorthodox, but you could inject javascript into the webdriver to make the element visible. Assuming there's some js function in the page called "makeItVisible", you could do this: mydriver.ExecuteScript("makeItVisible();"); It's a bit hacky, and remarkably white-box-y, but it may solve your problem.
I'm having a similar problem, however with a button that starts off being hidden, then I use a piece of javascript to unhide it when one of the other buttons is clicked - it definitely has something to do with the javascript, is it possible that selenium builds a list of visible elements when the page loads and then do...
2,084
See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it just something dumb like checkboxes use a different method? ``` elem = self.web.find_element_by_css_selector("input[nam...
2011/11/01
[ "https://sqa.stackexchange.com/questions/2084", "https://sqa.stackexchange.com", "https://sqa.stackexchange.com/users/2714/" ]
We sometimes have problems like this. I have found the easiest way to solve this is to use a wait function. I imagine that when the page is loaded the button is hidden and there is javascript to make it visible. Often times the driver will run faster than the javascript. EDIT: ``` elem = self.web.find_element_by_id('...
It's a bit unorthodox, but you could inject javascript into the webdriver to make the element visible. Assuming there's some js function in the page called "makeItVisible", you could do this: mydriver.ExecuteScript("makeItVisible();"); It's a bit hacky, and remarkably white-box-y, but it may solve your problem.
561,701
I'd like to reduce the sentence "The product is used by a wide variety of people, such as jugglers, priests, and businessmen" in length. Thus, I'm looking for a word that would replace "a wide range of". The first thing I thought of was "various", but it doesn't seem to convey the same meaning when I say "used by vari...
2021/03/02
[ "https://english.stackexchange.com/questions/561701", "https://english.stackexchange.com", "https://english.stackexchange.com/users/404694/" ]
***[Diverse](https://www.merriam-webster.com/dictionary/diverse)*** conveys a meaning close to what you are looking for: > > composed of distinct or unlike elements or qualities: > *a diverse population* > > > (M-W)
'This **all-encompassing** product is used by jugglers, priests and businessmen, **amongst others** 'This **all-encompassing** product is used by jugglers, priests and businessmen **alike**. All-encompassing: including or covering everything or everyone; comprehensive. <https://www.google.com/search?client=firefox-b...
561,701
I'd like to reduce the sentence "The product is used by a wide variety of people, such as jugglers, priests, and businessmen" in length. Thus, I'm looking for a word that would replace "a wide range of". The first thing I thought of was "various", but it doesn't seem to convey the same meaning when I say "used by vari...
2021/03/02
[ "https://english.stackexchange.com/questions/561701", "https://english.stackexchange.com", "https://english.stackexchange.com/users/404694/" ]
***[Diverse](https://www.merriam-webster.com/dictionary/diverse)*** conveys a meaning close to what you are looking for: > > composed of distinct or unlike elements or qualities: > *a diverse population* > > > (M-W)
[Various](https://dictionary.cambridge.org/dictionary/english/various) *is* a valid possibility. The online Cambridge dictionary defines "various" as > > many different > > > with examples: > > We had various problems on our journey, including a flat tyre. > The author gave various reasons for having written th...
561,701
I'd like to reduce the sentence "The product is used by a wide variety of people, such as jugglers, priests, and businessmen" in length. Thus, I'm looking for a word that would replace "a wide range of". The first thing I thought of was "various", but it doesn't seem to convey the same meaning when I say "used by vari...
2021/03/02
[ "https://english.stackexchange.com/questions/561701", "https://english.stackexchange.com", "https://english.stackexchange.com/users/404694/" ]
[Various](https://dictionary.cambridge.org/dictionary/english/various) *is* a valid possibility. The online Cambridge dictionary defines "various" as > > many different > > > with examples: > > We had various problems on our journey, including a flat tyre. > The author gave various reasons for having written th...
'This **all-encompassing** product is used by jugglers, priests and businessmen, **amongst others** 'This **all-encompassing** product is used by jugglers, priests and businessmen **alike**. All-encompassing: including or covering everything or everyone; comprehensive. <https://www.google.com/search?client=firefox-b...
51,377
I have encountered issues a few times when a process of mine performs a bulk load to a temp table we use for pre-processing purposes. The Bulk load fails for one reason or another (this we are looking into and addressing separately), and then the table that we were bulk loading to gets locked up. Quiesce/Unquiesce and ...
2013/10/11
[ "https://dba.stackexchange.com/questions/51377", "https://dba.stackexchange.com", "https://dba.stackexchange.com/users/21189/" ]
Your `LOAD` was interrupted so the table was placed into a `LOAD PENDING` state. To take it out of the `LOAD PENDING` state you will need to issue one of the following: * `LOAD TERMINATE` to roll back the operation * `LOAD REPLACE` to reload the entire table * `LOAD RESTART` Also, do not take a backup before you take...
Try below command in db2 command line ``` db2 REORG TABLE [SCHEMA_NAME.TABLE_NAME] ```
27,611,026
I have a multithreaded program that includes data structures like `ConcurrentHashMap` and `ConcurrentLinkedList`, however I also need every thread to access a shared integer value. The threads themselves are custom thread classes I've made that extend class `Thread`. My two concerns here are: * How can I make each thr...
2014/12/22
[ "https://Stackoverflow.com/questions/27611026", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4263855/" ]
You should use an [`AtomicInteger`](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicInteger.html). I would however consider `AtomicInteger` as a fairly low level primitive. I would question the design. Have you considered using `ExecutorService`, `Callable`, `Futures`, `Semaphore`, `CountDo...
You can use [AtomicInteger](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicInteger.html) . It supports many atomic operation. For e.g. `addAndGet`, `decrementAndGet`, etc. AtomicInteger does extend Number , so you can pass it to methods that operate on numerically based classes.
27,611,026
I have a multithreaded program that includes data structures like `ConcurrentHashMap` and `ConcurrentLinkedList`, however I also need every thread to access a shared integer value. The threads themselves are custom thread classes I've made that extend class `Thread`. My two concerns here are: * How can I make each thr...
2014/12/22
[ "https://Stackoverflow.com/questions/27611026", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4263855/" ]
You should use an [`AtomicInteger`](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicInteger.html). I would however consider `AtomicInteger` as a fairly low level primitive. I would question the design. Have you considered using `ExecutorService`, `Callable`, `Futures`, `Semaphore`, `CountDo...
Use an `AtomicInteger`. I suggest you to make it final and then use operations on the AtomicInteger such as `incrementAndGet`
28,242,741
I have tried this code but it does not work in the chrome ``` var myApp = new ActiveXObject("Excel.Application"); myApp.workbooks.open("test.xls"); ```
2015/01/30
[ "https://Stackoverflow.com/questions/28242741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3370649/" ]
> > telnet www.ilovebears.com 389 and i get an empty screen with a blinking cursor > > > That's exactly what you should get. LDAP doesn't speak Telnet. All you can accomplish with a Telnet client is to establish that the server can be connected to. If you want to exercise the server *as an LDAP server* you have t...
Your directory server was definitely listening on port 389 at www.ilovebears.com; however, it is no longer. Do you really need/want to have your server listening on an open port on the Internet?
28,242,741
I have tried this code but it does not work in the chrome ``` var myApp = new ActiveXObject("Excel.Application"); myApp.workbooks.open("test.xls"); ```
2015/01/30
[ "https://Stackoverflow.com/questions/28242741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3370649/" ]
> > telnet www.ilovebears.com 389 and i get an empty screen with a blinking cursor > > > That's exactly what you should get. LDAP doesn't speak Telnet. All you can accomplish with a Telnet client is to establish that the server can be connected to. If you want to exercise the server *as an LDAP server* you have t...
Maybe a little bit late, but [here](http://www.adamretter.org.uk/blog/entries/LDAPTest.java) you may find a very basic implementation of a java based LDAP client, very useful for debugging. Hint : you may use ldaps://x.x.x.x:y for the LDAP over SSL as well...
25,893,048
I'm already half way done with a project in Symfony2. I need to install a couple of new vendor bundles using composer. I already have everything (minus logs, cache and parameters.yml) in version control (including the vendor folder). Problem is when using composer update, it deletes the .svn folders in the vendor fo...
2014/09/17
[ "https://Stackoverflow.com/questions/25893048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4050732/" ]
Regarding to vendor versioning the best way is not version vendors at all. The only things you need to version are `composer.json` and `composer.lock`. This may cause a problem with vendors which doesn't have stable versions or with that for which you need not stable one (eg. master with particular commit). As a sol...
I was in similar situation two years ago. The hard lesson I learned was **never** to edit files within vendor. At first I totally rejected using `composer` and manually cloned everything I needed. Later on, I decided to fork projects I needed to edit and referenced my forks instead. Composer supports private GitHub r...
25,893,048
I'm already half way done with a project in Symfony2. I need to install a couple of new vendor bundles using composer. I already have everything (minus logs, cache and parameters.yml) in version control (including the vendor folder). Problem is when using composer update, it deletes the .svn folders in the vendor fo...
2014/09/17
[ "https://Stackoverflow.com/questions/25893048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4050732/" ]
Regarding to vendor versioning the best way is not version vendors at all. The only things you need to version are `composer.json` and `composer.lock`. This may cause a problem with vendors which doesn't have stable versions or with that for which you need not stable one (eg. master with particular commit). As a sol...
You should not keep your `vendor` directory in your version control. This is how it is done in [Symfony Standard Edition](https://github.com/apnet/symfony-standard-edition/blob/master/.gitignore) and you should follow this. Running `composer install` command should be a part of your deployment process
25,893,048
I'm already half way done with a project in Symfony2. I need to install a couple of new vendor bundles using composer. I already have everything (minus logs, cache and parameters.yml) in version control (including the vendor folder). Problem is when using composer update, it deletes the .svn folders in the vendor fo...
2014/09/17
[ "https://Stackoverflow.com/questions/25893048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4050732/" ]
Regarding to vendor versioning the best way is not version vendors at all. The only things you need to version are `composer.json` and `composer.lock`. This may cause a problem with vendors which doesn't have stable versions or with that for which you need not stable one (eg. master with particular commit). As a sol...
Including vendor packages in your codebase is not recommended, so if you need to maintain the same version of the packages you use on your local machine, the best way is to keep **composer.lock** in the VCS and running only *composer install* on other environments. Additionally, if you want the prod deployment to be i...
5,799
I want to go around the exterior of my windows, etc with some caulking. I have some now that I used in the bathroom but it doesn't spread that easy or lay a decent bead. I know when I was growing up and helping my dad build houses we had stuff that would lay a good bead and I could push it into the joints without makin...
2011/04/20
[ "https://diy.stackexchange.com/questions/5799", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/2137/" ]
[Mitsubishi Mr. Slim](http://www.mitsubishicomfort.com/) is the most common example of such a system. I have seen them in several places out west, but not so much in the eastern US. They are very popular in Japan, and other Pacific countries (notice the band names of most of the systems), but they are just starting to ...
We've installed dozens of these and similar systems. I even have one in my own home. You can up to 4 heads, all of various sizes according to the rooms demands.Efficiencies vary greatly between brands and models. DIY??? No. Unless you have a vacuum pump ($800), micron gauge ($150), nitrogen tank ($400) and purging ga...
37,834,395
I am learning CodeIgniter and I got stuck on this error. `$categories` is fine, but when I want to see `$nationality` I have an error > > Message: Undefined variable: nationality > > > Filename: pages/add\_recipe.php > > > add\_recipes.php ``` <?print_r($categories);?> <?print_r($nationality);?> ``` My cont...
2016/06/15
[ "https://Stackoverflow.com/questions/37834395", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6469292/" ]
You can do this by: ``` x = 100 for i in range(150): line = str(i+1) + '.) ' + str(x) print(line) x = 1.1*x ```
You don't need a `y` variable, you can simply reasign the new value to x at every iteration of the loop. ``` x = 100 for i in xrange(150): print x x = x * 1.1 ```
138,333
OK. So I used VeraCrypt to encrypt the system partition and now Windows boots its automated repair only. After the repair in what I think is Windows Recovery Environment I can choose to boot off USB and THERE I can choose to boot the VeraCrypt loader. I used BOOTICE (latest version) to modify the UEFI boot entries to ...
2016/09/30
[ "https://security.stackexchange.com/questions/138333", "https://security.stackexchange.com", "https://security.stackexchange.com/users/126042/" ]
OK, I came up with a solution and it works even after I switch off the computer. In BOOTICE I modified the Windows Boot Manager to load "\EFI\VERACRYPT\DCSBOOT.EFI" (the VeraCrypt loader) instead of the original Windows loader (\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI) and saved it. I only modified "Media file:" text field in ...
[ **THIS POST IS OBSOLETE. FOR HISTORICAL PURPOSES ONLY AS EXAMPLE OF THE DIFFICULTY GETTING EARLY VERSIONS OF VC TO RUN**] 2On an InsydeH20 V5.0 UEFI "BIOS" running on Acer E5-575: Install all latest Win10 updates Boot to UEFI, press F2 on Acer machines at 2x sec during boot [![UEFI Trust Table Editor](https://i.s...
138,333
OK. So I used VeraCrypt to encrypt the system partition and now Windows boots its automated repair only. After the repair in what I think is Windows Recovery Environment I can choose to boot off USB and THERE I can choose to boot the VeraCrypt loader. I used BOOTICE (latest version) to modify the UEFI boot entries to ...
2016/09/30
[ "https://security.stackexchange.com/questions/138333", "https://security.stackexchange.com", "https://security.stackexchange.com/users/126042/" ]
OK, I came up with a solution and it works even after I switch off the computer. In BOOTICE I modified the Windows Boot Manager to load "\EFI\VERACRYPT\DCSBOOT.EFI" (the VeraCrypt loader) instead of the original Windows loader (\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI) and saved it. I only modified "Media file:" text field in ...
My description no longer works for Windows 1709. There are better results with: <https://github.com/th-wilde/veracrypt-w10-patcher> Note, as future Win10 update can bypass the patch, including major security patches that alter the firmware, there is no guarantee the machine will always work, such as with the way True...
138,333
OK. So I used VeraCrypt to encrypt the system partition and now Windows boots its automated repair only. After the repair in what I think is Windows Recovery Environment I can choose to boot off USB and THERE I can choose to boot the VeraCrypt loader. I used BOOTICE (latest version) to modify the UEFI boot entries to ...
2016/09/30
[ "https://security.stackexchange.com/questions/138333", "https://security.stackexchange.com", "https://security.stackexchange.com/users/126042/" ]
OK, I came up with a solution and it works even after I switch off the computer. In BOOTICE I modified the Windows Boot Manager to load "\EFI\VERACRYPT\DCSBOOT.EFI" (the VeraCrypt loader) instead of the original Windows loader (\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI) and saved it. I only modified "Media file:" text field in ...
"VeraCrypt Setup 1.23-Hotfix-2.exe" works reliably with Windows 10 Home, after 6 months of testing which includes: * weekly security updates * two major feature updates, 1809 and 1903 No customization of the UEFI needed. Just follow the Veracrypt install instructions. Has worked under normal Win10 Home and available ...
138,333
OK. So I used VeraCrypt to encrypt the system partition and now Windows boots its automated repair only. After the repair in what I think is Windows Recovery Environment I can choose to boot off USB and THERE I can choose to boot the VeraCrypt loader. I used BOOTICE (latest version) to modify the UEFI boot entries to ...
2016/09/30
[ "https://security.stackexchange.com/questions/138333", "https://security.stackexchange.com", "https://security.stackexchange.com/users/126042/" ]
My description no longer works for Windows 1709. There are better results with: <https://github.com/th-wilde/veracrypt-w10-patcher> Note, as future Win10 update can bypass the patch, including major security patches that alter the firmware, there is no guarantee the machine will always work, such as with the way True...
[ **THIS POST IS OBSOLETE. FOR HISTORICAL PURPOSES ONLY AS EXAMPLE OF THE DIFFICULTY GETTING EARLY VERSIONS OF VC TO RUN**] 2On an InsydeH20 V5.0 UEFI "BIOS" running on Acer E5-575: Install all latest Win10 updates Boot to UEFI, press F2 on Acer machines at 2x sec during boot [![UEFI Trust Table Editor](https://i.s...
138,333
OK. So I used VeraCrypt to encrypt the system partition and now Windows boots its automated repair only. After the repair in what I think is Windows Recovery Environment I can choose to boot off USB and THERE I can choose to boot the VeraCrypt loader. I used BOOTICE (latest version) to modify the UEFI boot entries to ...
2016/09/30
[ "https://security.stackexchange.com/questions/138333", "https://security.stackexchange.com", "https://security.stackexchange.com/users/126042/" ]
My description no longer works for Windows 1709. There are better results with: <https://github.com/th-wilde/veracrypt-w10-patcher> Note, as future Win10 update can bypass the patch, including major security patches that alter the firmware, there is no guarantee the machine will always work, such as with the way True...
"VeraCrypt Setup 1.23-Hotfix-2.exe" works reliably with Windows 10 Home, after 6 months of testing which includes: * weekly security updates * two major feature updates, 1809 and 1903 No customization of the UEFI needed. Just follow the Veracrypt install instructions. Has worked under normal Win10 Home and available ...
20,907,980
is it possible to add a class to the anchor in the code below? because i have a conflict with other anchors... ``` function SelectText(element) { var doc = document; var text = doc.getElementById(element); if (doc.body.createTextRange) { var range = document.body.createTextRange(); range.moveToElemen...
2014/01/03
[ "https://Stackoverflow.com/questions/20907980", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Use `$(this).addClass()`. That is the element being clicked. ``` $(document).ready(function() { $('a').click(function() { $(this).addClass('selectable'); } } ``` <http://api.jquery.com/addclass/> Or if you are talking about using the `click` handler only for `a` tags with the class `selectable` you ...
You'll need to add an ID to the anchor you want to add a class to, then with jquery, you can use `.addClass()` - <http://api.jquery.com/addclass/> I.E. ``` $( "#yourAnchorID" ).addClass( "myClass yourClass" ); ```
8,891
In Russian there is a verb "*победить*" (*vincere*) which doesn't have future singular 1st person form. It is impossible to say "*io vincerò (in questo gioco, in questa partita)*" in Russian using this verb. Are there any verbs in Italian which do not have some grammatical form?
2017/12/30
[ "https://italian.stackexchange.com/questions/8891", "https://italian.stackexchange.com", "https://italian.stackexchange.com/users/4166/" ]
Some verbs, such as *competere*, *concernere*, *dirimere*, *divergere*, *esimere*, *incombere*, *inerire*, *soccombere*, *splendere*, *suggere*, and *transigere* don’t have a past participle. [(source)](http://archive.is/MKufN#selection-1981.0-2053.2)
It appears that *solere* does not have future, conditional and imperative tenses (as they'd sound weird or nonsensical, e.g. *io sorrò, lui sorrebbe*). A common category of impersonal verbs (to rain *piovere*, to hail *grandinare*) don't conjugate except for 3rd-person. This rule also applies to Italian. Some older u...
8,891
In Russian there is a verb "*победить*" (*vincere*) which doesn't have future singular 1st person form. It is impossible to say "*io vincerò (in questo gioco, in questa partita)*" in Russian using this verb. Are there any verbs in Italian which do not have some grammatical form?
2017/12/30
[ "https://italian.stackexchange.com/questions/8891", "https://italian.stackexchange.com", "https://italian.stackexchange.com/users/4166/" ]
Some verbs, such as *competere*, *concernere*, *dirimere*, *divergere*, *esimere*, *incombere*, *inerire*, *soccombere*, *splendere*, *suggere*, and *transigere* don’t have a past participle. [(source)](http://archive.is/MKufN#selection-1981.0-2053.2)
You should always look up the verb in a good Italian dictionary or a verb reference like those, in order to find out missing or obsolete verb forms: * Fabrizio Berloco's [*The Big Book of Italian Verbs: 900 Fully Conjugated Verbs in all Tenses. With IPA Transcription (2018)*](https://books.google.com/books?id=DYynDwAA...
8,891
In Russian there is a verb "*победить*" (*vincere*) which doesn't have future singular 1st person form. It is impossible to say "*io vincerò (in questo gioco, in questa partita)*" in Russian using this verb. Are there any verbs in Italian which do not have some grammatical form?
2017/12/30
[ "https://italian.stackexchange.com/questions/8891", "https://italian.stackexchange.com", "https://italian.stackexchange.com/users/4166/" ]
It appears that *solere* does not have future, conditional and imperative tenses (as they'd sound weird or nonsensical, e.g. *io sorrò, lui sorrebbe*). A common category of impersonal verbs (to rain *piovere*, to hail *grandinare*) don't conjugate except for 3rd-person. This rule also applies to Italian. Some older u...
You should always look up the verb in a good Italian dictionary or a verb reference like those, in order to find out missing or obsolete verb forms: * Fabrizio Berloco's [*The Big Book of Italian Verbs: 900 Fully Conjugated Verbs in all Tenses. With IPA Transcription (2018)*](https://books.google.com/books?id=DYynDwAA...
2,982,423
I want to liste these images in 3 columns( see under). What is the HTML cod for this? [IMAGE] [IMAGE] [IMAGE] ``` <div class="rparticle "> <div class="articleEntry Normal"><a href="[LINK]">[IMAGE]</a></div> <div><a href="[LINK]">[TITLE]</a></div> </div> .rparticle { display:inline; clear: both; ...
2010/06/05
[ "https://Stackoverflow.com/questions/2982423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/265767/" ]
Let 'em to float to right or left. ``` ... <head> <style> .rparticle{ float: left; width: 33%; text-align: center; margin-bottom : 25px; } .clear{ clear: both; } </style> </head> <body> <div class="rparticle"> <...
That's only possible if the container and the children have a `width` and the children are `float`ed `left`. Here's a copy'n'paste'n'runnable [SSCCE](http://sscce.org) which demonstrates it. ``` <!doctype html> <html lang="en"> <head> <title>SO question 2982423</title> <style> #containe...
60,278,394
I have been trying to use a custom shape map in Power BI and I can not get it to work. The idea behind all this is to start from a .shp file, .dbf file and a .prj file and export it to a TopoJson file that actually works in Power BI in order to show the difference between County through color saturation. I have been u...
2020/02/18
[ "https://Stackoverflow.com/questions/60278394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12916065/" ]
If you want to customize the tooltip then you can use a callback function for formatter property and access all the related data. I have created a demo for you, please let me know if you face any issue. ```js // 基于准备好的dom,初始化echarts实例 var myChart = echarts.init(document.getElementById('main')); option = { toolti...
We can use Formatter callback inside tooltip, legend, label options in ECharts, and changes their values accordingly. For your convenience, I have created a Nice Pie Chart Using Echats you can follow it. [enter image description here](https://i.stack.imgur.com/CrWs0.png) Options Field Code-: ``` option = { toolti...
60,278,394
I have been trying to use a custom shape map in Power BI and I can not get it to work. The idea behind all this is to start from a .shp file, .dbf file and a .prj file and export it to a TopoJson file that actually works in Power BI in order to show the difference between County through color saturation. I have been u...
2020/02/18
[ "https://Stackoverflow.com/questions/60278394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12916065/" ]
If you want to customize the tooltip then you can use a callback function for formatter property and access all the related data. I have created a demo for you, please let me know if you face any issue. ```js // 基于准备好的dom,初始化echarts实例 var myChart = echarts.init(document.getElementById('main')); option = { toolti...
You can pass the data you want to the series object and access it from the tooltip callback func at the data key
60,278,394
I have been trying to use a custom shape map in Power BI and I can not get it to work. The idea behind all this is to start from a .shp file, .dbf file and a .prj file and export it to a TopoJson file that actually works in Power BI in order to show the difference between County through color saturation. I have been u...
2020/02/18
[ "https://Stackoverflow.com/questions/60278394", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12916065/" ]
We can use Formatter callback inside tooltip, legend, label options in ECharts, and changes their values accordingly. For your convenience, I have created a Nice Pie Chart Using Echats you can follow it. [enter image description here](https://i.stack.imgur.com/CrWs0.png) Options Field Code-: ``` option = { toolti...
You can pass the data you want to the series object and access it from the tooltip callback func at the data key
9,688,509
**Premise A** When talking about "Column Major" matrices in linear memory, columns are specified one after another, such that the first 4 entries in memory correspond to the first column in the matrix. "Row Major" matrices, on the other hand, are understood to specify rows one after another, such that the first 4 ent...
2012/03/13
[ "https://Stackoverflow.com/questions/9688509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/538308/" ]
The declaration is a bit confusing, but the matrix is in column major order. The four rows in the struct represent the columns in the matrix, with m0\* being column 0 and m3\* being column 3. This is easy to verify, just create a translation matrix and check values m30, m31 and m32 for the translation components. I a...
The problem in **Premise B** is that you assume that *A "row" in a GLKMatrix4 is a set of 4 floats declared horizontally ([m00, m01, m02, m03] would be the first "row").* We can verify that simply by checking the value of `column` in the following code: ``` GLKMatrix3 matrix = {1, 2, 3, 4, 5, 6, 7, 8, 9}; GLKVector3 ...
9,688,509
**Premise A** When talking about "Column Major" matrices in linear memory, columns are specified one after another, such that the first 4 entries in memory correspond to the first column in the matrix. "Row Major" matrices, on the other hand, are understood to specify rows one after another, such that the first 4 ent...
2012/03/13
[ "https://Stackoverflow.com/questions/9688509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/538308/" ]
The declaration is a bit confusing, but the matrix is in column major order. The four rows in the struct represent the columns in the matrix, with m0\* being column 0 and m3\* being column 3. This is easy to verify, just create a translation matrix and check values m30, m31 and m32 for the translation components. I a...
This comes from the OpenGL specification -- ![column major](https://i.stack.imgur.com/WimuM.png) The point of confusion is exactly this: as others have noted, we index a column major matrix *with the first index indicating the column, not the row*: * `m00` refers to *column=0, row=0*, * `m01` refers to *column=0, ro...
9,688,509
**Premise A** When talking about "Column Major" matrices in linear memory, columns are specified one after another, such that the first 4 entries in memory correspond to the first column in the matrix. "Row Major" matrices, on the other hand, are understood to specify rows one after another, such that the first 4 ent...
2012/03/13
[ "https://Stackoverflow.com/questions/9688509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/538308/" ]
This comes from the OpenGL specification -- ![column major](https://i.stack.imgur.com/WimuM.png) The point of confusion is exactly this: as others have noted, we index a column major matrix *with the first index indicating the column, not the row*: * `m00` refers to *column=0, row=0*, * `m01` refers to *column=0, ro...
The problem in **Premise B** is that you assume that *A "row" in a GLKMatrix4 is a set of 4 floats declared horizontally ([m00, m01, m02, m03] would be the first "row").* We can verify that simply by checking the value of `column` in the following code: ``` GLKMatrix3 matrix = {1, 2, 3, 4, 5, 6, 7, 8, 9}; GLKVector3 ...
15,040,906
The three modifier keys are Control, Alt and Shift. In the keys enumeration, there are Control and ControlKey, Shift and ShiftKey and Alt, but AltKey is missing. Keys.ControlKey refers to the actual Ctrl key while Keys.Control refers to the control modification. Similarly,Keys.ShiftKey refers to the actual Shift k...
2013/02/23
[ "https://Stackoverflow.com/questions/15040906", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2102327/" ]
Actually, the real key (not modifier) enumeration value for Alt key is `Keys.Menu` with the value of `18`. That's just a naming convention. They decided to use the `Alt` name just for the modifer, and `Menu` for the non-modifier. Interestingly, the documentation for the `Keys.Menu` says "**The ALT key**". We also have ...
At a guess I'd say that the lack of the Alt key is due to the fact that in WinForms development, the paradigm used for setting shortcut keys is to prefix a letter with the `&` character, e.g., `E&xit`. When the application is run, this is automatically set up as a shortcut command Alt+X. Most windows shortcut keys are ...
38,572,860
I want festival tts to read a bit slower, can anyone help me with that? I use python 2.7 and I run the code in gnome-terminal.
2016/07/25
[ "https://Stackoverflow.com/questions/38572860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6626104/" ]
If you are okay with writing a wrapper around, you can use sable and the RATE tag. For reference, here is an example project I made: <http://www.cs.cmu.edu/~srallaba/Audio_Rendering_of_STEM/> in which technique 2 has rate variations. Alternatively, you can use flite - festival lite. While festival was designed to ena...
I had exactly the same problem and AFAIK, it is not possible to do that (I also hope to be wrong, so please correct me). It is also not possible to e.g. shift the frequency range of the voice. That is, without tinkering with the voice files (did not check this as it seems more than what I'd like to do). Personally, I ...
38,572,860
I want festival tts to read a bit slower, can anyone help me with that? I use python 2.7 and I run the code in gnome-terminal.
2016/07/25
[ "https://Stackoverflow.com/questions/38572860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6626104/" ]
What does your `~/.festivalrc` look like? To use festival with ALSA, I have: ``` (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "aplay -Dplug:default -f S16_LE -r 15000 $FILE") ``` Using aplay, the rate of playback is determined by the value after the `-r` flag, which you can increase to ...
I had exactly the same problem and AFAIK, it is not possible to do that (I also hope to be wrong, so please correct me). It is also not possible to e.g. shift the frequency range of the voice. That is, without tinkering with the voice files (did not check this as it seems more than what I'd like to do). Personally, I ...
38,572,860
I want festival tts to read a bit slower, can anyone help me with that? I use python 2.7 and I run the code in gnome-terminal.
2016/07/25
[ "https://Stackoverflow.com/questions/38572860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6626104/" ]
If you are okay with writing a wrapper around, you can use sable and the RATE tag. For reference, here is an example project I made: <http://www.cs.cmu.edu/~srallaba/Audio_Rendering_of_STEM/> in which technique 2 has rate variations. Alternatively, you can use flite - festival lite. While festival was designed to ena...
Consider using the Festival utility `text2wave` to write the audio as a file, then play the file using `sox` with the speed and pitch effects. To slow the audio down you will need a speed value less than one, and compensate for the effect on pitch with a positive value in pitch.
38,572,860
I want festival tts to read a bit slower, can anyone help me with that? I use python 2.7 and I run the code in gnome-terminal.
2016/07/25
[ "https://Stackoverflow.com/questions/38572860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6626104/" ]
What does your `~/.festivalrc` look like? To use festival with ALSA, I have: ``` (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "aplay -Dplug:default -f S16_LE -r 15000 $FILE") ``` Using aplay, the rate of playback is determined by the value after the `-r` flag, which you can increase to ...
If you are okay with writing a wrapper around, you can use sable and the RATE tag. For reference, here is an example project I made: <http://www.cs.cmu.edu/~srallaba/Audio_Rendering_of_STEM/> in which technique 2 has rate variations. Alternatively, you can use flite - festival lite. While festival was designed to ena...
38,572,860
I want festival tts to read a bit slower, can anyone help me with that? I use python 2.7 and I run the code in gnome-terminal.
2016/07/25
[ "https://Stackoverflow.com/questions/38572860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6626104/" ]
What does your `~/.festivalrc` look like? To use festival with ALSA, I have: ``` (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "aplay -Dplug:default -f S16_LE -r 15000 $FILE") ``` Using aplay, the rate of playback is determined by the value after the `-r` flag, which you can increase to ...
Consider using the Festival utility `text2wave` to write the audio as a file, then play the file using `sox` with the speed and pitch effects. To slow the audio down you will need a speed value less than one, and compensate for the effect on pitch with a positive value in pitch.
5,457,852
I am new to python and am trying to pass an xml document (filled with documents for a solr instance) into a python dictionary. I am having trouble trying to actually accomplish this. I have tried using ElementTree and minidom but I can't seem to get the right results. Here is my XML Structure: ``` <add> <doc> ...
2011/03/28
[ "https://Stackoverflow.com/questions/5457852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/499086/" ]
``` import xml.etree.cElementTree as etree from pprint import pprint root = etree.fromstring(xmlstr) # or etree.parse(filename_or_file).getroot() docs = [{f.attrib['name']: f.text for f in doc.iterfind('field[@name]')} for doc in root.iterfind('doc')] pprint(docs) ``` ### Output ``` [{'carOfficeHoursEnd': ...
A possible solution using ElementTree, with output pretty formatted for sake of example: ``` >>> import xml.etree.ElementTree as etree >>> root = etree.parse(document).getroot() >>> docs = [] >>> for doc in root.findall('doc'): ... fields = {} ... for field in doc: ... fields[field.attrib['name']] = field.text...
5,457,852
I am new to python and am trying to pass an xml document (filled with documents for a solr instance) into a python dictionary. I am having trouble trying to actually accomplish this. I have tried using ElementTree and minidom but I can't seem to get the right results. Here is my XML Structure: ``` <add> <doc> ...
2011/03/28
[ "https://Stackoverflow.com/questions/5457852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/499086/" ]
Solr can return a Python dictionary if you add `wt=python` to the request parameters. To convert this text response into a Python object, use [`ast.literal_eval(text_response)`](http://docs.python.org/2/library/ast.html#ast.literal_eval). This is much simpler than parsing the XML.
A possible solution using ElementTree, with output pretty formatted for sake of example: ``` >>> import xml.etree.ElementTree as etree >>> root = etree.parse(document).getroot() >>> docs = [] >>> for doc in root.findall('doc'): ... fields = {} ... for field in doc: ... fields[field.attrib['name']] = field.text...
5,457,852
I am new to python and am trying to pass an xml document (filled with documents for a solr instance) into a python dictionary. I am having trouble trying to actually accomplish this. I have tried using ElementTree and minidom but I can't seem to get the right results. Here is my XML Structure: ``` <add> <doc> ...
2011/03/28
[ "https://Stackoverflow.com/questions/5457852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/499086/" ]
A possible solution using ElementTree, with output pretty formatted for sake of example: ``` >>> import xml.etree.ElementTree as etree >>> root = etree.parse(document).getroot() >>> docs = [] >>> for doc in root.findall('doc'): ... fields = {} ... for field in doc: ... fields[field.attrib['name']] = field.text...
It's risky to eval any string that comes from the outside directly into python. Who knows what's in there. I'd suggest using the json interface. Something like: ``` import json import urllib2 response_dict = json.loads(urllib2.urlopen('http://localhost:8080/solr/combined/select?wt=json&q=*&rows=1').read()) #to view...
5,457,852
I am new to python and am trying to pass an xml document (filled with documents for a solr instance) into a python dictionary. I am having trouble trying to actually accomplish this. I have tried using ElementTree and minidom but I can't seem to get the right results. Here is my XML Structure: ``` <add> <doc> ...
2011/03/28
[ "https://Stackoverflow.com/questions/5457852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/499086/" ]
``` import xml.etree.cElementTree as etree from pprint import pprint root = etree.fromstring(xmlstr) # or etree.parse(filename_or_file).getroot() docs = [{f.attrib['name']: f.text for f in doc.iterfind('field[@name]')} for doc in root.iterfind('doc')] pprint(docs) ``` ### Output ``` [{'carOfficeHoursEnd': ...
It's risky to eval any string that comes from the outside directly into python. Who knows what's in there. I'd suggest using the json interface. Something like: ``` import json import urllib2 response_dict = json.loads(urllib2.urlopen('http://localhost:8080/solr/combined/select?wt=json&q=*&rows=1').read()) #to view...
5,457,852
I am new to python and am trying to pass an xml document (filled with documents for a solr instance) into a python dictionary. I am having trouble trying to actually accomplish this. I have tried using ElementTree and minidom but I can't seem to get the right results. Here is my XML Structure: ``` <add> <doc> ...
2011/03/28
[ "https://Stackoverflow.com/questions/5457852", "https://Stackoverflow.com", "https://Stackoverflow.com/users/499086/" ]
Solr can return a Python dictionary if you add `wt=python` to the request parameters. To convert this text response into a Python object, use [`ast.literal_eval(text_response)`](http://docs.python.org/2/library/ast.html#ast.literal_eval). This is much simpler than parsing the XML.
It's risky to eval any string that comes from the outside directly into python. Who knows what's in there. I'd suggest using the json interface. Something like: ``` import json import urllib2 response_dict = json.loads(urllib2.urlopen('http://localhost:8080/solr/combined/select?wt=json&q=*&rows=1').read()) #to view...
36,806,814
``` <?php $db_name=“a7614252_booked”; $mysql_user="a7614252_booked”; $mysql_pass=“booked”; $server_name="server38.000webhost.com”; //t_string error here. $con=mysqli_connect($server_name,$mysql_user,$mysql_pass,$db_name)or die(‘Connection Error’.mysqli_connect_error()); ?> ``` i have checked other responses on ...
2016/04/23
[ "https://Stackoverflow.com/questions/36806814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6243392/" ]
*(Put this code in your chid theme function.php file)* Not shure, but you can try to use `remove_filters` first: ``` remove_filters("pmpro_required_billing_fields", $pmpro_required_billing_fields); remove_filters("pmpro_required_billing_fields", $pmpro_required_user_fields); ``` Then you can clone those arrays, cu...
If somebody still needs this - In this case, best practice would be to use `pmpro_required_user_fields` or `pmpro_required_billing_fields` filters, depending on which fields you want to make required - user or billing fields. So, for example, if you need a billing phone (`bphone`) field to be required, this would do ...
36,806,814
``` <?php $db_name=“a7614252_booked”; $mysql_user="a7614252_booked”; $mysql_pass=“booked”; $server_name="server38.000webhost.com”; //t_string error here. $con=mysqli_connect($server_name,$mysql_user,$mysql_pass,$db_name)or die(‘Connection Error’.mysqli_connect_error()); ?> ``` i have checked other responses on ...
2016/04/23
[ "https://Stackoverflow.com/questions/36806814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6243392/" ]
I found a bit of code that worked perfectly ``` //make sure address fields are required function my_pmpro_required_user_fields($fields) { global $bfirstname, $blastname, $baddress1, $bcity, $bstate, $bzipcode, $bcountry, $bphone, $bemail; $fields["bfirstname"] = $bfirstname; $fields["blastname"] = $blastna...
If somebody still needs this - In this case, best practice would be to use `pmpro_required_user_fields` or `pmpro_required_billing_fields` filters, depending on which fields you want to make required - user or billing fields. So, for example, if you need a billing phone (`bphone`) field to be required, this would do ...
14,972,334
I'm trying to connect my program to our main server but it doesn't work. when I login, this the error that happen, ``` Connection error: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException:For input string:...
2013/02/20
[ "https://Stackoverflow.com/questions/14972334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1758111/" ]
IP address means =192.168.10.105 after the `:` you have to mention the port number on which the server is there by default it is on 3306, update the port number with your actual one and then try Change this line ``` String host = "jdbc:mysql://192.168.10.105:3306/eqod-log"; ```
In this string : ``` "jdbc:mysql://ipAddress:192.168.10.105/eqod-log" ``` in URLs, the part before the colon (ipAddress) should be the IP address or the host name. Here the parser things it is a hostname "ipAddress". The part after the colon should be the port, and therefore an integer. So the parser tries to parse ...
14,972,334
I'm trying to connect my program to our main server but it doesn't work. when I login, this the error that happen, ``` Connection error: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException:For input string:...
2013/02/20
[ "https://Stackoverflow.com/questions/14972334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1758111/" ]
``` String host = "jdbc:mysql://192.168.10.105:3306/eqod-log"; //3306 is port ``` Use this string as connection url. For more details [JDBC URL Format](http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html)
IP address means =192.168.10.105 after the `:` you have to mention the port number on which the server is there by default it is on 3306, update the port number with your actual one and then try Change this line ``` String host = "jdbc:mysql://192.168.10.105:3306/eqod-log"; ```
14,972,334
I'm trying to connect my program to our main server but it doesn't work. when I login, this the error that happen, ``` Connection error: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException:For input string:...
2013/02/20
[ "https://Stackoverflow.com/questions/14972334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1758111/" ]
``` String host = "jdbc:mysql://192.168.10.105:3306/eqod-log"; //3306 is port ``` Use this string as connection url. For more details [JDBC URL Format](http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html)
In this string : ``` "jdbc:mysql://ipAddress:192.168.10.105/eqod-log" ``` in URLs, the part before the colon (ipAddress) should be the IP address or the host name. Here the parser things it is a hostname "ipAddress". The part after the colon should be the port, and therefore an integer. So the parser tries to parse ...
62,413,260
is there any way to sort 5 numbers in ascending or descending order without using list, tuples and dictionaries? The 5 numbers are given by the user. i'm new at programming, if someone could give me some help it would be great. Thanks in advance
2020/06/16
[ "https://Stackoverflow.com/questions/62413260", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13757448/" ]
You need to use `abstract class` instead of normal class and in `HelloWorld` class you need to replace the regular methods with `abstract` methods without implementation and in the `Filha` class replace `extends` with `implements` and you will successfuly be able to `@Override` the functions Note: static methods canno...
with your code ``` class HelloWorld { public static void imprimir() { System.out.println("Oie"); }// public static void imprime(int a) { System.out.println("27"); }// }// public class Filha extends HelloWorld { public static void main(String[] args) { imprimir(); ...
17,538,791
I need to create a sidebar menu like this <http://wrapbootstrap.com/preview/WB07061TJ>, but I can't find the image asset of the current item (a white arrow). How can I do this?
2013/07/09
[ "https://Stackoverflow.com/questions/17538791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1184708/" ]
I had to run Qt5.1.0 for Desktop (MinGW4.8 32bit) prompt. cd `C:\path\to\project.pro` and then type `mingw32-make clean`
In my case there was a copy of the auto generated "ui\_xyz" file in my working directory(source files) so the compiler wasn't referring to new one in the build directory.
5,697,675
I´m using JPA Hibernate and Spring MVC. I haved implemented repository pattern. I get a PageRepository that simply gets a Page object from the db. Then in the controller I'm trying to access pageObject.getWidgets() (defined lazy) and I get an exception saying that the session is closed. Just to be clear, here is the c...
2011/04/18
[ "https://Stackoverflow.com/questions/5697675", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698972/" ]
Have not used pure JPA but JPA via Hibernate and to get the lazy loading to work you need to add @Transactional annotation on your method. This will cause the connection to remain open during the lifetime of the method. Controller methods don't get called externally and therefore are not subject to proxying that @Tra...
Thanks to all. I solved the problem writing the code inside a component or a service. So, i can use @Transactional without problems. here is the code the method controller ``` @RequestMapping(value = "/pages/get",method=RequestMethod.GET) public @ResponseBody String getPage(@RequestParam Long id){ return...
185,530
I'm running CentOS 6.6 32bit as a firewall box using iptables. I want to be able to use the ULOG target to store dropped packets in a MySQL database for statistical analysis. After much Googling I can't really see how this is achieved or if it's even possible. I tried seeing if my kernel will support it `grep ULOG /...
2015/02/18
[ "https://unix.stackexchange.com/questions/185530", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/90367/" ]
[See here](http://www.stearns.org/doc/iptables-ulog.v0.1.html). You need a `ulogd` utility, available at least in Debian as the `ulogd` package; you can also install `ulogd-mysql` for logging into MySQL.
Based on [this answer](https://unix.stackexchange.com/a/404099/42520), ULOG target is obsolete and it was replaced by target NFLOG. You should try an iptables rule like the following: `IPTABLES -A OUTPUT -j NFLOG`
48,569,015
Is there a way to get a `Subscription` from an already connected device using RxAndroidBle? I can't seem to find a way aside from disconnecting and connecting again.
2018/02/01
[ "https://Stackoverflow.com/questions/48569015", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1422222/" ]
You are probably not interested in getting the `Subscription` from an already connected device but rather to get an instance of the emitted `RxBleConnection`. It is more of an `RxJava` question then: You can get this kind of behaviour (an `Observable<RxBleConnection>` that will emit `RxBleConnection` to any next subs...
No, you need to maintain the `rxbleconnection` subscription and instance yourself. The library is stateless.
73,785,066
I came across a number like this in a project : [![Number](https://i.stack.imgur.com/0T4oP.png)](https://i.stack.imgur.com/0T4oP.png) I was wondering whats the case for rounding up this kind of number in real world project and how to round the number when it has lots of zeros like this : ``` {item.size - item.fille...
2022/09/20
[ "https://Stackoverflow.com/questions/73785066", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13628101/" ]
Here I wrote an answer to format all sort of rounding... Possible duplicate with "I'd like to round at most two decimal places, but only if necessary"... [https://stackoverflow.com/questions/11832914/how-to-round-to-at-most-2-decimal-places-if-necessary/73831129#73831129](https://stackoverflow.com/questions/11832914/...
I am always displaying two decimals, your number is a Javascript problem. I use this function to round it: ``` export const roundNumberToTwoDecimals = (number) => Math.round(number * 100 + Number.EPSILON) / 100; ```
3,681,724
We currently use PDForm to grab a blank pdf file (no values, just form fields and text) and list the form fields. We then query our database for the values which match those field names and create a pdf file with the newly populated data which the user can download from our site. The thing is PDForm is about $5,000 per...
2010/09/10
[ "https://Stackoverflow.com/questions/3681724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/442695/" ]
[TCPDF](http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) seems to have the most robust feature set that I have seen so far.
I don't know if another product whose license costs range from $1k -> $3k could be considered "cost effective", but [PDFlib](http://www.pdflib.com/products/pdflib-family/pps/) work quite nicely. And if you don't need the PPS functionality, it does get cheaper.
3,681,724
We currently use PDForm to grab a blank pdf file (no values, just form fields and text) and list the form fields. We then query our database for the values which match those field names and create a pdf file with the newly populated data which the user can download from our site. The thing is PDForm is about $5,000 per...
2010/09/10
[ "https://Stackoverflow.com/questions/3681724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/442695/" ]
Thanks, d2burke, for the tip on TCPDF. I'm not trying to do quite as much as the OP, but the software packages available to accomplish any kind of pdf generation are in the $2k to $3k range. TCPDF is php based, open source and the guy developing it is very supportive. Always donate to these guys! Where in the world w...
I don't know if another product whose license costs range from $1k -> $3k could be considered "cost effective", but [PDFlib](http://www.pdflib.com/products/pdflib-family/pps/) work quite nicely. And if you don't need the PPS functionality, it does get cheaper.
3,681,724
We currently use PDForm to grab a blank pdf file (no values, just form fields and text) and list the form fields. We then query our database for the values which match those field names and create a pdf file with the newly populated data which the user can download from our site. The thing is PDForm is about $5,000 per...
2010/09/10
[ "https://Stackoverflow.com/questions/3681724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/442695/" ]
So since none of the above solutions would work since TCPDF doesn't work with forms the way we are wanting and since PDFlib converts the form fields to blocks we decided to create a command line wrapper for iText which will grab the form field names from the PDF and then populate them based on the database values.
I don't know if another product whose license costs range from $1k -> $3k could be considered "cost effective", but [PDFlib](http://www.pdflib.com/products/pdflib-family/pps/) work quite nicely. And if you don't need the PPS functionality, it does get cheaper.
3,681,724
We currently use PDForm to grab a blank pdf file (no values, just form fields and text) and list the form fields. We then query our database for the values which match those field names and create a pdf file with the newly populated data which the user can download from our site. The thing is PDForm is about $5,000 per...
2010/09/10
[ "https://Stackoverflow.com/questions/3681724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/442695/" ]
So since none of the above solutions would work since TCPDF doesn't work with forms the way we are wanting and since PDFlib converts the form fields to blocks we decided to create a command line wrapper for iText which will grab the form field names from the PDF and then populate them based on the database values.
[TCPDF](http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) seems to have the most robust feature set that I have seen so far.
3,681,724
We currently use PDForm to grab a blank pdf file (no values, just form fields and text) and list the form fields. We then query our database for the values which match those field names and create a pdf file with the newly populated data which the user can download from our site. The thing is PDForm is about $5,000 per...
2010/09/10
[ "https://Stackoverflow.com/questions/3681724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/442695/" ]
So since none of the above solutions would work since TCPDF doesn't work with forms the way we are wanting and since PDFlib converts the form fields to blocks we decided to create a command line wrapper for iText which will grab the form field names from the PDF and then populate them based on the database values.
Thanks, d2burke, for the tip on TCPDF. I'm not trying to do quite as much as the OP, but the software packages available to accomplish any kind of pdf generation are in the $2k to $3k range. TCPDF is php based, open source and the guy developing it is very supportive. Always donate to these guys! Where in the world w...
497,644
The Bertotti-Robinson metric is a very nice exact solution to the Einstein-Maxwell field equations in vacuum. It is usually stated into these equivalent versions (where $r = \sqrt{x^2 + y^2}$ and $\bar{r} = \sqrt{\bar{x}^2 + \bar{y}^2 + \bar{z}^2}$ and $R$ is just a constant): \begin{gather} ds^2 = dt^2 - \frac{1}{(1 +...
2019/08/19
[ "https://physics.stackexchange.com/questions/497644", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/98263/" ]
If one applies the [standard coordinate transformation](https://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates) from 3D Cartesian coordinates $(\bar{x},\, \bar{y},\, \bar{z})$ in (4) to spherical coordinates $(r,\theta,\phi)$, then the metric (4) becomes: $$ ds^2= \frac{R^2}{\xi^2}(d\eta^2-d \...
I found a solution to my question. I consider A.V.S.'s answer (thanks dude!): (4) can be written this way, using spherical coordinates, with $\bar{r} = \sqrt{\bar{x}^2 + \bar{y}^2 + \bar{z}^2}$: \begin{align} ds^2 &= \frac{R^2}{\bar{r}^2} \, d\eta^2 - \frac{R^2}{\bar{r}^2} \, \big( \, d\bar{r}^2 + \bar{r}^2 \, (d\vart...
358,443
Let $f (x) ∈ Z\_7 [x]$ be the polynomial $x^2 + [3]x + [3]$ and let $I$ denote the principal ideal generated by $f (x).$ Find a zero divisor in $Z\_7 [x]/I.$
2013/04/11
[ "https://math.stackexchange.com/questions/358443", "https://math.stackexchange.com", "https://math.stackexchange.com/users/64919/" ]
Hint: Try to factor $x^2 + 3x+3 \in \mathbb{F}\_7[x]$ using the usual formula for quadratic polynomials (which works over *every* field of characteristic $\neq 2,3$).
**Hint** $\ $ Clearly $\rm\: x = 1\:$ is root in $\rm\:\Bbb Z\_7,\:$ so $\rm\: f = gh\:$ is reducible, therefore, modulo $\rm\:f = gh\:$ we have $\rm\: gh \equiv 0\:$ but $\rm\:g,h\not\equiv 0,\:$ yielding the sought zero-divisor. **Remark** $\ $ Generally $\rm\: R/I\:$ has no zero-divisors (i.e. is a domain) iff $\rm...
27,245,866
I need to get the max value of a member property to use in another `MDX` expression. As an example from Adventure Works I'm using the following ``` WITH MEMBER DoFP AS [Customer].[Customer].Properties("Date of First Purchase") MEMBER MaxDoFP AS Tail ( NonEmpty ( [Date].[Date...
2014/12/02
[ "https://Stackoverflow.com/questions/27245866", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2999794/" ]
Call below dialog as per your requirement: ``` private void showAlertDialog() { PackageManager pm = getPackageManager(); AlertDialog.Builder builder = new AlertDialog.Builder(this); GridView gridView = new GridView(this); email.putExtra(Intent.EXTRA_EMAIL, new String[] ...
I don't think that you can do that out of the box. So you need to create your own share dialog with grid. Here some example <https://github.com/xinanadu/CustomShare/blob/master/app/src/main/java/info/zhegui/share/MainActivity.java>
61,606,433
I am trying do sonarqube setup for SAP hybris, we use azure devops for Build and uses ant build to SAP hybris. sonarqube is located in a seperate server backed by SQL DB and i confirmed it's working. I want the ant build to communicate to sonarqube server. In config--> local.properties i added the following sonarqube ...
2020/05/05
[ "https://Stackoverflow.com/questions/61606433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13102906/" ]
You need to reshape the output data after **avgpool**: ```py def copy_data(m, i, o): my_embedding.copy_(o.data.reshape(o.data.size(1))) ```
Alternatively, you may replace the hook function with the following, just so you don't have to deal with adjusting the output shape: ``` # step 3 and 4 my_embedding = None def my_hook(module_, input_, output_): nonlocal my_output my_embedding = output_ ``` then simply call the following ``` # step 5 h = lay...
25,355,682
I need to check the returned type from a method to invoke different methods. This is the code: ``` class X ... class Y ... ... def getType(input:String) : Option[Class[_]] = { if ... return Some(classOf[X]) if ... return Some(classOf[Y]) ... } getType(input) match { case Some(classOf[X]) => ... // ERROR c...
2014/08/18
[ "https://Stackoverflow.com/questions/25355682", "https://Stackoverflow.com", "https://Stackoverflow.com/users/260127/" ]
I think you can't use `classOf` inside the structural match. Instead you can add a condition which checks for that. ``` val opt: Option[Class[_]] = Some(classOf[Int]) opt match { case Some(c) if c == classOf[String] => "String" case Some(c) if c == classOf[Int] => "Int" case None => "No Class" case _ => "Some...
You can do the following: ``` getType(input) match { case Some(x: Class[X]) => ... case Some(y: Class[Y]) => ... case None => ... } ```
56,899,808
My scenario, I am trying to implement Google Firebase CoreML for text detection. Here, I installed a list of pods into my project but I still get `Use of undeclared type 'VisionTextDetector'`. How to fix this? ``` pod 'Firebase/Core' pod 'Firebase/MLVision' pod 'Firebase/MLVisionTextModel' pod 'Firebase/MLVisionFaceMo...
2019/07/05
[ "https://Stackoverflow.com/questions/56899808", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11658199/" ]
Use a regular expression with a back-reference to match the repeating terms: **Oracle Setup**: ```sql CREATE TABLE test_data ( value ) AS SELECT '9999999(12345) 9999999(12345) 9999999(12345) 9999999(12345)' FROM DUAL; ``` **Query**: ```sql SELECT REGEXP_REPLACE( value, '([^ ]+)( \1)+', '\1' ) AS replaced_value FRO...
Oracle allows for recursive subquery factoring that can be harnessed to apply regexp based substitutions repeatedly: ``` CREATE TABLE test_data ( value ) AS SELECT '9999999(12345) 9999999(12345) 9999999(12345) 9999999(12345)' FROM DUAL; WITH rep(n,s,n_maxrep) AS ( SELECT 1 , value , 1 + LENGTH(R...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
There is an analog here, I think in focusing on *anxiety to achieve specific external goals* -- a high test score, a high GPA, a high SAT score, admittance to a prestigious university, etc. Pressure might (or might not..) make children anxious in working towards these goals. How would that anxiety affect them? > > 1...
"Your daughter isn't sick; she's a dancer." (TED Talk by Ken Robinson: [Do schools kill creativity?](http://www.ted.com/talks/ken_robinson_says_schools_kill_creativity.html)) Yes, kids needs a good general education, but nurturing who they really are and the creative paths they gravitate to on their own may be the gre...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
There is an analog here, I think in focusing on *anxiety to achieve specific external goals* -- a high test score, a high GPA, a high SAT score, admittance to a prestigious university, etc. Pressure might (or might not..) make children anxious in working towards these goals. How would that anxiety affect them? > > 1...
Others have posted some good info on anxiety vs. school performance, so I won't repeat that here. I *would* like to offer some thoughts on reframing the question you just asked... "...[H]ow much pressure is too much, and how little pressure is too little?" is a hard question to answer, because it's abstracting a bunch...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
There is an analog here, I think in focusing on *anxiety to achieve specific external goals* -- a high test score, a high GPA, a high SAT score, admittance to a prestigious university, etc. Pressure might (or might not..) make children anxious in working towards these goals. How would that anxiety affect them? > > 1...
Hedge Mage, as usual, [sums things up pretty nicely](https://parenting.stackexchange.com/a/1125/4054), but she left out a factor I think is also key in creating or lessening pressure in regard to activities in which a child is involved (even activities the child initially chose themselves): how you compliment as well a...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
There is an analog here, I think in focusing on *anxiety to achieve specific external goals* -- a high test score, a high GPA, a high SAT score, admittance to a prestigious university, etc. Pressure might (or might not..) make children anxious in working towards these goals. How would that anxiety affect them? > > 1...
My daughter and I read Battle Hymn at the same time when she was in fifth grade. Both of us really enjoyed it, though probably for different reasons. I'm an English teacher, and this year I've started having my 10th grade boys read it. (I'm American, and I teach in Abu Dhabi at a school whose students are mostly UAE na...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
"Your daughter isn't sick; she's a dancer." (TED Talk by Ken Robinson: [Do schools kill creativity?](http://www.ted.com/talks/ken_robinson_says_schools_kill_creativity.html)) Yes, kids needs a good general education, but nurturing who they really are and the creative paths they gravitate to on their own may be the gre...
Hedge Mage, as usual, [sums things up pretty nicely](https://parenting.stackexchange.com/a/1125/4054), but she left out a factor I think is also key in creating or lessening pressure in regard to activities in which a child is involved (even activities the child initially chose themselves): how you compliment as well a...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
"Your daughter isn't sick; she's a dancer." (TED Talk by Ken Robinson: [Do schools kill creativity?](http://www.ted.com/talks/ken_robinson_says_schools_kill_creativity.html)) Yes, kids needs a good general education, but nurturing who they really are and the creative paths they gravitate to on their own may be the gre...
My daughter and I read Battle Hymn at the same time when she was in fifth grade. Both of us really enjoyed it, though probably for different reasons. I'm an English teacher, and this year I've started having my 10th grade boys read it. (I'm American, and I teach in Abu Dhabi at a school whose students are mostly UAE na...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
Others have posted some good info on anxiety vs. school performance, so I won't repeat that here. I *would* like to offer some thoughts on reframing the question you just asked... "...[H]ow much pressure is too much, and how little pressure is too little?" is a hard question to answer, because it's abstracting a bunch...
Hedge Mage, as usual, [sums things up pretty nicely](https://parenting.stackexchange.com/a/1125/4054), but she left out a factor I think is also key in creating or lessening pressure in regard to activities in which a child is involved (even activities the child initially chose themselves): how you compliment as well a...
1,051
My wife just started reading "Battle Hymn of the Tiger Mother", a book written by a Chinese mother who talks about the pros and cons of the high-pressure and rigid parenting style of some Chinese parents. In discussing the book with my wife, I started thinking about high-pressure vs. low-pressure parenting. One of th...
2011/04/24
[ "https://parenting.stackexchange.com/questions/1051", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/96/" ]
Others have posted some good info on anxiety vs. school performance, so I won't repeat that here. I *would* like to offer some thoughts on reframing the question you just asked... "...[H]ow much pressure is too much, and how little pressure is too little?" is a hard question to answer, because it's abstracting a bunch...
My daughter and I read Battle Hymn at the same time when she was in fifth grade. Both of us really enjoyed it, though probably for different reasons. I'm an English teacher, and this year I've started having my 10th grade boys read it. (I'm American, and I teach in Abu Dhabi at a school whose students are mostly UAE na...
58,715,185
***Note*** I have read the large number of SO answers that appear to be similar, but I am already doing what they suggested, so I don't know if there is some difference with WPF (they all seem to relate to ASP.NET). Also, most answers relate to run-time errors, not ones when adding migrations. I'm trying to set up a ....
2019/11/05
[ "https://Stackoverflow.com/questions/58715185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/706346/" ]
It's actually quite simple with .Net Core 3.1 and EF Core Version 5, Entity Framework will look at the entry point class for the static function `CreateHostBuilder`, in my case that would be the `App` class in app.xaml.cs. Not entirely sure the convention required prior to .Net Core 3.1. From my experience it had some...
You need to implement `IDesignTimeDbContextFactory`. There is a lot of hidden plumbing in an ASP.NET Core app that deals with wiring up the apps service provider so it can be found by the `dotnet ef` tooling, but no such plumbing exists in WPF. In addition the ef tools know nothing about WPF events so your `OnStartup` ...
169,258
We are using standalone payment terminals (Ingenico ICT220) over IP and our payment processor (heartland) insists we don't need to do any PCI SAQ or get scanning, they insist they will indemnify us if there's a breach. I can't find any instance of this, it looks to me like I should be doing SAQ B-IP in this instance an...
2017/09/12
[ "https://security.stackexchange.com/questions/169258", "https://security.stackexchange.com", "https://security.stackexchange.com/users/158814/" ]
I'm not familiar with this particular setup from Heartland, but it *sounds* like a "P2PE" solution. In that setup, the payment terminals have special Heartland-specific encryption keys loaded into them before they're shipped, and they encrypt all card data such that Heartland is the only one who can decrypt it. Since t...
As Heartland (they are your acquirer and so responsible for the card schemes for your compliance) say they don't require anything from you and will indemnify you in the event of a card scheme penalty you should do no more -- as long as they have put this in writing. Only a QSA audit gives you safe harbor from card sche...
54,855,299
I have an excel file. Now I need to save data of excel file in database. What is the simplest way to do that using c# with simple example? Thank in advance
2019/02/24
[ "https://Stackoverflow.com/questions/54855299", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10904355/" ]
To fully go from the string `ffffff` to base64 of the hex value, you need to run it through some encoding and decoding, using the `codecs` module: ``` import codecs # Convert string to hex hex = codecs.decode('ffffff', 'hex') # Encode as base64 (bytes) codecs.encode(hex, 'base64') ``` For an odd-length string like `...
Here's an alternative to using codecs. This one is a bit less readable, but works great and hopefully teaches you how codecs, hex and integers work. *(word of caution, works on odd lengths, but will ignore the odd byte-string-representation)* ``` import struct s = 'ffffff' b''.join([struct.pack('B', int(''.join(x),...
1,153,927
![enter image description here](https://i.stack.imgur.com/WcIPk.png) Why can we pick "any of the two vectors" in R^2 to span the image? Aren't all of them linearly independent, and therefore all of them have to span the image?
2015/02/18
[ "https://math.stackexchange.com/questions/1153927", "https://math.stackexchange.com", "https://math.stackexchange.com/users/217255/" ]
No, they are not all linearly independent. $\mathbb R^2$ has dimension $2$, which means it has a basis consisting of two vectors, and so (by a theorem you should learn) no set of more than two vectors in $\mathbb R^2$ can be linearly independent.
Not any $2$ vectors in $R^2$ span the image. It is true for $2$ non-parallel vectors, and the reason being that the determinant of the $2\times 2$ matrix so formed is non-zero.
17,183,670
The time delay given in `setTimeout()` works differently for Windows and Ubuntu? Why is that? Is there a better way?
2013/06/19
[ "https://Stackoverflow.com/questions/17183670", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2477007/" ]
The time given in setTimeout() is not guaranteed. There are several reasons for that: * The eventQueue system of JavaScript * Timer accuracy depending on the OS and/or browser (is between 1ms and 20ms) I wrote a blog post about time in JavaScript at <http://www.codebullets.com/is-time-relative-in-javascript-1365> ...
`requestAnimationFrame` *will* trigger for each monitor VBLANK gap if requested before the next VBLANK. That way it is a very accurate timer. However, it triggers up to 60 times per seconds and it won't be very accurate if you spend more than the 16.7ms time-budget you get before you need to call it again. If your fu...
12,814,282
I've been banging on this all day and it's time to get some help. I am trying to call a .net MVC WebAPI application from some .net code. I am receiving a status code of 500 from the WebAPI with no real information even after upping the error detail policy to always. So I popped open Fiddler and now I can at least see a...
2012/10/10
[ "https://Stackoverflow.com/questions/12814282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1513169/" ]
The problem comes from the fact that you haven't specified a correct location for the source directory. This source directory should somehow point to "/root/.jenkins/jobs/Example\_4.9/workspace/dev/statsvc/". With the Sonar Jenkins Plugin, this means that you should specify "sonar.sources" to something like "dev/stats...
I'm having the same error in a maven build that used to work. I guess the cause is that we renamed the artifacts and this is somehow driving sonar crazy, but I really don't know. The source dir is set up automatically by the maven plugin, the compilation is allright. The error just don't make sense... We are stopping u...
12,814,282
I've been banging on this all day and it's time to get some help. I am trying to call a .net MVC WebAPI application from some .net code. I am receiving a status code of 500 from the WebAPI with no real information even after upping the error detail policy to always. So I popped open Fiddler and now I can at least see a...
2012/10/10
[ "https://Stackoverflow.com/questions/12814282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1513169/" ]
The problem comes from the fact that you haven't specified a correct location for the source directory. This source directory should somehow point to "/root/.jenkins/jobs/Example\_4.9/workspace/dev/statsvc/". With the Sonar Jenkins Plugin, this means that you should specify "sonar.sources" to something like "dev/stats...
It just happened that I was using a different version of maven sonar plugin and my sonar qube version was different. Tried to use the same version and it worked for me. (3.2)
54,336,534
I need to add a second navigation menu below the main Nav Bar to the following wordpress site <http://josema.dicosoftwareprojects.com/>. This menu will not be sticky, only the main one will remain sticky. I tried adding the following code to functions.php ``` function register_my_menu() { register_nav_menu('new-...
2019/01/23
[ "https://Stackoverflow.com/questions/54336534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6042806/" ]
You have to add this second menu yourself to the header.php, it doesn't magically appear where you want it. this is the most basic way to output a menu (there are other commands for menu-retrieval): ``` $args = array( 'menu' => $menuid, ); wp_nav_menu($args); ``` It will output your menu with ID and Class attr...
You can register multiple menus under one [`register_nav_menu()`](https://codex.wordpress.org/Function_Reference/register_nav_menu) function. ``` function register_my_menu() { register_nav_menus( array( 'primary' => 'Primary menu', 'secondary' => 'Secondary menu', 'tertiary' => 'Tertiary me...
114,656
I'd like some reality check advices about the following village set in a fantasy world vaguely resembling early-to-middle medieval Europe in our world. Note the phrase "vaguely resembling": I'm consciously making this a much more liberal, friendlier and safer world. Let's call the village Brillam. Brillam is a small v...
2018/06/09
[ "https://worldbuilding.stackexchange.com/questions/114656", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/46097/" ]
So, Brillam would be basically a Roman-like luxury resort. Stop & Rest for a while, enjoy the convenience of mineral baths, mudbaths, and even warmth during winter. You should enrich the setting by placing the villages in a cold-climate area. Everyone would stop in Brillam and commerce would benefit from this hotpoint...
**Holy site!** <https://hallamnews.com/2017-diocesan-pilgrimage-to-lourdes/> [![pilgrimage to Lourdes](https://i.stack.imgur.com/uXyYh.jpg)](https://i.stack.imgur.com/uXyYh.jpg) Someone has a vision at the pool. Someone was healed! Word gets around. They will come. <https://en.wikipedia.org/wiki/Our_Lady_of_Lourdes...
63,456,069
In this code, I want to select a word and save it in a separate variable. Same with all the words in a file. I have given the option (which I commented) to select any word from the file and when a user will select that word, it should be stored in a variable. How to do this? ``` #include <stdio.h> #include <stdlib.h> ...
2020/08/17
[ "https://Stackoverflow.com/questions/63456069", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13629515/" ]
I don't see the use of this as the user inputs the same word. But here you go. Using `scanf()` for user input of word to look for. Using `fgets()` to get row from file into string. Using `strtok()` to step through string using the delimiters given in `#define DELIMITERS`. The word scanned from the file is stored in `...
I am not sure I understand what you wrote Maybe you can read a word from the user and "extract" it from the file, a search. For an user to be able to select a word from the file such word must be read into a variable. And for the program to be able to compare the words in the file against a word in a variable you mus...
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
And continuing the combinations and permutations: > > Q&A on travel and destinations: we've been there! > > >
Inspired by [Kate Gregory's answer](https://travel.meta.stackexchange.com/a/1083/140): * We've been there! * Travel Q&A from people who've been there. * Travel questions answered by people who've been there. * We can help because we've been there. (I'm sure there's a really sweet variation of this idea that we can al...
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
Got here a bit late to the party, but: > > Sharing the trail with experienced travellers > > > Gives more of a feeling of being guided - being part of the journey
The original: > > Q&A site for Road warriors and seasoned travellers > > >
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
Q&A for here, there, and getting from here to there
One more suggestion : `"I came, I saw, I answered"`
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
Q&A for here, there, and getting from here to there
"Q&A for Seasoned Travellers" (closer to the original but may scare off newbies?)
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
> > On the road with experienced travellers > > >
"Answer site for Seasoned Travellers"
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
> > On the road with experienced travellers > > >
Explore the world with experienced travelers
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
Travel Q&A - ask us - we've been there!
"Answer site for Seasoned Travellers"
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
And continuing the combinations and permutations: > > Q&A on travel and destinations: we've been there! > > >
Travel Q&A - ask us - we've been there!
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
Travel.SE makes traveling easier!
The original: > > Q&A site for Road warriors and seasoned travellers > > >
1,073
Jin is looking at launching the site soon and [wanted to know](http://chat.stackexchange.com/transcript/message/7702292#7702292) what tag-line we use. The line from the [Area 51 Proposal](http://area51.stackexchange.com/proposals/6591) was: > > Q&A site for road warriors and seasoned travelers. > > > Personally ...
2013/01/16
[ "https://travel.meta.stackexchange.com/questions/1073", "https://travel.meta.stackexchange.com", "https://travel.meta.stackexchange.com/users/101/" ]
And continuing the combinations and permutations: > > Q&A on travel and destinations: we've been there! > > >
I want to avoid the word traveller because some people spell it traveler and whichever you pick, the rest of the world will think you got it wrong or they'll be offended. (Notice the mix and match throughout the rest of the answers to this question). Ditto travelling. > > Q & A on travel and destinations: anywhere, a...
18,092,952
I need to extract three columns of data from an xml column in postgres, such that the xml is expanded into it's appropriate columns. One of these columns needs to be an attribute of one nesting level of the xml, and the other columns are attributes of the nest one level down. The data from the higher level should be re...
2013/08/07
[ "https://Stackoverflow.com/questions/18092952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1481331/" ]
I appeciate this question is a couple of years old, but I came here with a similar problem and believe I found an answer. ``` with x as (select '<catalog catalog-id="manufacturer-catalog-id"> <category-assignment category-id="category1" product-id="product1"/> <category-assignment category-id="category1" produ...
I think you are going to have to do it in multiple stages. Here is as far as I got. You could then extract the elements here and tie them back to the parent: ``` with x as (select '<catalog catalog-id="manufacturer-catalog-id"> <category-assignment category-id="category1" product-id="product1"/> <category-assi...
64,464,186
I have data like this, but sometimes I have wrong mileage. Mileage should increase, but sometimes there is wrong number - too low or too high. Is possible to clean that data in R? Do you have any ideas? For this mistakes I can use average from below and above record but how to catch the error in than sequence? ``` Car...
2020/10/21
[ "https://Stackoverflow.com/questions/64464186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14492726/" ]
If you want to identify where the mistakes occur, here might be option using `ave` + `cummax` + `cummin` with base R ``` within( df, err <- ave( Mileage, CarID, FUN = function(x) replace(cummax(x) == rev(cummax(rev(x))), length(x), 0) + replace(cummin(x) == rev(cummin(rev(x))), 1, 0) ) ) ``` which ...
Maybe you can try removing outliers? ``` Q <- quantile(dataframe$Mileage, probs=c(.25, .75), na.rm = FALSE) eliminated<- subset(dataframe, dataframe$Mileage > (Q[1] - 1.5*iqr) & dataframe$Mileage < (Q[2]+1.5*iqr)) ```