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
1,061,785
So, this may sound stupid but I don't really get it. When I visited <http://www.themidnightcoders.com> and download WebOrb for .NET. After I finished product setup progress, I realize that the product that I just downloaded and setup in my machine was "Enterprise Edition in Development mode" Because when I go into the...
2009/06/30
[ "https://Stackoverflow.com/questions/1061785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Here's Joel's article on Function Design documents. <http://www.joelonsoftware.com/articles/fog0000000036.html>
Joel Spolsky posted the functional spec to his CoPilot application along with a brief blog post about it. <http://www.joelonsoftware.com/articles/AardvarkSpec.html>
1,061,785
So, this may sound stupid but I don't really get it. When I visited <http://www.themidnightcoders.com> and download WebOrb for .NET. After I finished product setup progress, I realize that the product that I just downloaded and setup in my machine was "Enterprise Edition in Development mode" Because when I go into the...
2009/06/30
[ "https://Stackoverflow.com/questions/1061785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Here's Joel's article on Function Design documents. <http://www.joelonsoftware.com/articles/fog0000000036.html>
If you are looking for books, I can recommend two right now, and in fact, I ordered a third because it looked good. The two I can recommend fully are: * [Software Requirements (2nd Edition)](https://rads.stackoverflow.com/amzn/click/com/0735618798) * [More about Software Requirements](https://rads.stackoverflow.com/a...
21,541,839
I am new bie to hibernate and i am facing one issue. I have fetched the record from database and displayed the values on Jsp form. I want to update some of the values i have displayed I made the ID of the entity hidden form field. When i click on submit the values which are not on form are set to be null. Everytim...
2014/02/04
[ "https://Stackoverflow.com/questions/21541839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2613233/" ]
Strings in Java are *immutable*. Every time you use the concatenation operator (`+`) you're actually creating a new `String` object. Because you're starting with your `String` being `null` ... the conversion during the concatenation results in the word "null" in the result (this is specified in the JLS when using str...
In java you have to give default value to local variables. Local variables are those variables which are defined within methods. So you need to initialize your local variable with default value. You have defined with Null. So when you concatenate with this. It will add "Null" + your other values. To avoid this you can ...
1,952,019
Say I have two process p1,p2 runnning as a part of my application. Say p1 is running initially executing function f1() and then f1() calls f2().With the invocation of f2() process p2 starts excuting What I want to confirm is it that :- 1)Do we have seperate stack for different process? 2)Do we have seperate heap for...
2009/12/23
[ "https://Stackoverflow.com/questions/1952019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/232782/" ]
1) Yes, each process gets its own stack. 2) Yes, each process gets its own heap. 3) I don't think you get the whole 4GB. Some of it is reserved for kernel stuff.
* The virtual memory for a process will be different from other process. * Every process will get 4GB of virtual address space ( in 32 bit windows machine) and out of which you can use 2GB of user space ( remaining is for kernel). For stack, heap, static data storage and even loading the DLLs. (This is 3GB if you use l...
1,952,019
Say I have two process p1,p2 runnning as a part of my application. Say p1 is running initially executing function f1() and then f1() calls f2().With the invocation of f2() process p2 starts excuting What I want to confirm is it that :- 1)Do we have seperate stack for different process? 2)Do we have seperate heap for...
2009/12/23
[ "https://Stackoverflow.com/questions/1952019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/232782/" ]
* The virtual memory for a process will be different from other process. * Every process will get 4GB of virtual address space ( in 32 bit windows machine) and out of which you can use 2GB of user space ( remaining is for kernel). For stack, heap, static data storage and even loading the DLLs. (This is 3GB if you use l...
There are other limitations to consider in Java too, such as only being able to address arrays using Integer.MAX\_VALUE at most. This limits you to about 2GB in a lot of areas relating to memory.
1,952,019
Say I have two process p1,p2 runnning as a part of my application. Say p1 is running initially executing function f1() and then f1() calls f2().With the invocation of f2() process p2 starts excuting What I want to confirm is it that :- 1)Do we have seperate stack for different process? 2)Do we have seperate heap for...
2009/12/23
[ "https://Stackoverflow.com/questions/1952019", "https://Stackoverflow.com", "https://Stackoverflow.com/users/232782/" ]
1) Yes, each process gets its own stack. 2) Yes, each process gets its own heap. 3) I don't think you get the whole 4GB. Some of it is reserved for kernel stuff.
There are other limitations to consider in Java too, such as only being able to address arrays using Integer.MAX\_VALUE at most. This limits you to about 2GB in a lot of areas relating to memory.
20,148,727
If I wanted to loop through a list of nested directories and run a set commands, how would I do that? My directory structure is like this: * videos + folder1 -> VTS\_01\_1.mp4 + folder2 -> VTS\_01\_1.mp4 + folder3 -> VTS\_01\_1.mp4 .... and so on I need to loop through each folder and run the script below.. A...
2013/11/22
[ "https://Stackoverflow.com/questions/20148727", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1791709/" ]
You can't. If you lost your private key (part of the p12) you will need to create a profile certificate.
**You have to create new distribution certificates and provisioning profile** Go to developer portal, Revoke your current distribution certificate *(whose p12/private key lost)* It won't affect existing live app, Now wait a few seconds and refresh the page and you should see a button "Request Certificate". You'll have...
17,061,740
I have an actor which creates a child actor to perform some lengthy computations. The problem is that the initialization of the child actor takes a few seconds and all messages that the parent actor sends to the child between it is created and gets fully initialized are dropped. This is the logic of the code that I ...
2013/06/12
[ "https://Stackoverflow.com/questions/17061740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/962628/" ]
Don't initialize the `tagger` in the constructor, but in the `preStart` hook, this way the messages will be collected in the message box and delivered, when the actor is ready. **edit**: You should do the same for the actor creation in your `ParentActor` class, because you would have the same problem, if the `ChildAc...
I would suggest to send a "ready" message from the child actor to the parent and start sending messages to the child actor only after this message will be received. You can do it just in `receive()` method for simple use cases or you can use `become` or `FSM` to change parent actor behavior after the child will be init...
17,061,740
I have an actor which creates a child actor to perform some lengthy computations. The problem is that the initialization of the child actor takes a few seconds and all messages that the parent actor sends to the child between it is created and gets fully initialized are dropped. This is the logic of the code that I ...
2013/06/12
[ "https://Stackoverflow.com/questions/17061740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/962628/" ]
Don't initialize the `tagger` in the constructor, but in the `preStart` hook, this way the messages will be collected in the message box and delivered, when the actor is ready. **edit**: You should do the same for the actor creation in your `ParentActor` class, because you would have the same problem, if the `ChildAc...
I think what you might be looking for is the combo of `Stash` and `become`. The idea will be that the child actor will set it's initial state to uninitialized, and while in this state, it will stash all incoming messages until it is fully initialized. When it's fully initialized, you can unstash all of the messages bef...
17,061,740
I have an actor which creates a child actor to perform some lengthy computations. The problem is that the initialization of the child actor takes a few seconds and all messages that the parent actor sends to the child between it is created and gets fully initialized are dropped. This is the logic of the code that I ...
2013/06/12
[ "https://Stackoverflow.com/questions/17061740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/962628/" ]
I think what you might be looking for is the combo of `Stash` and `become`. The idea will be that the child actor will set it's initial state to uninitialized, and while in this state, it will stash all incoming messages until it is fully initialized. When it's fully initialized, you can unstash all of the messages bef...
I would suggest to send a "ready" message from the child actor to the parent and start sending messages to the child actor only after this message will be received. You can do it just in `receive()` method for simple use cases or you can use `become` or `FSM` to change parent actor behavior after the child will be init...
30,398,511
I'd like to replace a cell's text in case a condition is fullfilled, but the data is in another file. How can I do it? I used something like this: ``` Sub test() Dim customerBook As Workbook Dim filter As String Dim caption As String Dim customerFilename As String Dim customerWorkbook As Workbook Dim targetWorkbook As...
2015/05/22
[ "https://Stackoverflow.com/questions/30398511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929283/" ]
You need to: * test **Q19** and **BL23** separately * use **.Value** rather than **.Text** since **.Text** is read-only **EDIT#1:** Here is the reason I suggest testing the cells separately. Consider: ``` Sub qwerty() MsgBox Range("C3,A1") = "X" End Sub ``` On an empty worksheet, we get **False** If we set *...
Try adding ``` customerWorkbook.Close customerWorkbook.Saved = True ``` before your `End Sub` statement. That should fix it.
30,398,511
I'd like to replace a cell's text in case a condition is fullfilled, but the data is in another file. How can I do it? I used something like this: ``` Sub test() Dim customerBook As Workbook Dim filter As String Dim caption As String Dim customerFilename As String Dim customerWorkbook As Workbook Dim targetWorkbook As...
2015/05/22
[ "https://Stackoverflow.com/questions/30398511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929283/" ]
You need to: * test **Q19** and **BL23** separately * use **.Value** rather than **.Text** since **.Text** is read-only **EDIT#1:** Here is the reason I suggest testing the cells separately. Consider: ``` Sub qwerty() MsgBox Range("C3,A1") = "X" End Sub ``` On an empty worksheet, we get **False** If we set *...
Got it! Thanks for the support ``` Sub test() Dim customerBook As Workbook Dim filter As String Dim caption As String Dim customerFilename As String Dim customerWorkbook As Workbook Dim targetWorkbook As Workbook Set targetWorkbook = Application.ActiveWorkbook filter = "Text files (*.xlsx),*.xlsx" caption = "Please ...
30,398,511
I'd like to replace a cell's text in case a condition is fullfilled, but the data is in another file. How can I do it? I used something like this: ``` Sub test() Dim customerBook As Workbook Dim filter As String Dim caption As String Dim customerFilename As String Dim customerWorkbook As Workbook Dim targetWorkbook As...
2015/05/22
[ "https://Stackoverflow.com/questions/30398511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929283/" ]
here an example how you can achieve replacement by condition ``` ''''' If targetSheet.[Q19, BL23].text= "ok" Then sourceSheet.Cells.Replace what:="Search string", replacement:="Replacement String" End If ''''' ``` > > the cell's content doesn't change to "Agreed" > > > here your updated code, but this is no...
Try adding ``` customerWorkbook.Close customerWorkbook.Saved = True ``` before your `End Sub` statement. That should fix it.
30,398,511
I'd like to replace a cell's text in case a condition is fullfilled, but the data is in another file. How can I do it? I used something like this: ``` Sub test() Dim customerBook As Workbook Dim filter As String Dim caption As String Dim customerFilename As String Dim customerWorkbook As Workbook Dim targetWorkbook As...
2015/05/22
[ "https://Stackoverflow.com/questions/30398511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4929283/" ]
here an example how you can achieve replacement by condition ``` ''''' If targetSheet.[Q19, BL23].text= "ok" Then sourceSheet.Cells.Replace what:="Search string", replacement:="Replacement String" End If ''''' ``` > > the cell's content doesn't change to "Agreed" > > > here your updated code, but this is no...
Got it! Thanks for the support ``` Sub test() Dim customerBook As Workbook Dim filter As String Dim caption As String Dim customerFilename As String Dim customerWorkbook As Workbook Dim targetWorkbook As Workbook Set targetWorkbook = Application.ActiveWorkbook filter = "Text files (*.xlsx),*.xlsx" caption = "Please ...
19,985,610
I've got a String that I need to cycle through and create every possible substring. For example, if I had "HelloWorld", "rld" should be one of the possibilities. The String method, substring(int i, int k) is exclusive of k, so if ``` |H|e|l|l|o|W|o|r|l|d| 0 1 2 3 4 5 6 7 8 9 ``` then substring(7,9) returns "rl" H...
2013/11/14
[ "https://Stackoverflow.com/questions/19985610", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2853338/" ]
Try changing the display value of `.navbar-nav` to inline-block and then applying `text-align` on its parent to control alignment. If you need to change the mobile view alignment you can re-apply `text-align` at that breakpoint. ``` .navbar-nav { display: inline-block; } .navbar-default { text-align: center...
use bootstrap class="justify-content-center"
24,025,913
Mysql process is using up 100% cpu. show processlist shows that mysql seems to have a system lock because of "INTERNAL DDL LOG RECOVER IN PROGRESS". Searching for this doesn't return meaningful results so: what is this lock all about? How to fix this? Mysql version 5.6.14-log
2014/06/03
[ "https://Stackoverflow.com/questions/24025913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/43671/" ]
It seems like you may have some in the tables MySQL uses to store database definitions. Your best option is to let MySQL try an recover. Check disk space and ensure you have enough free space for MySQL to work normally - this is a common cause of this problem. An unexpected shutdown may also have been the cause. On...
See related: [Server stuck in INTERNAL DDL LOG RECOVERY IN PROGRESS](https://stackoverflow.com/questions/28476094/server-stuck-in-internal-ddl-log-recovery-in-progress) This is a known bug in MySQL: <http://bugs.mysql.com/bug.php?id=74517> The server does not clear this message when done, causing confusion. The bug ...
35,248,973
I'm trying to code a program where I can: 1. Load a file 2. Input a start and beginning offset addresses where to scan data from 3. Scan that offset range in search of specific sequence of bytes (such as "05805A6C") 4. Retrieve the offset of every match and write them to a .txt file i66.tinypic.com/2zelef5.png As th...
2016/02/07
[ "https://Stackoverflow.com/questions/35248973", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4980228/" ]
Here's a bomb-proof1 way to search for a sequence of bytes in a byte array: ``` public boolean find(byte[] buffer, byte[] key) { for (int i = 0; i <= buffer.length - key.length; i++) { int j = 0; while (j < key.length && buffer[i + j] == key[j]) { j++; } if (j == key.len...
**EDIT** It seems the charset from system to system is different so you may get different results so I approach it with another method: ``` String x = HexBin.encode(model); String b = new String("058a5a6c"); int index = 0; while((index = x.indexOf(b,index)) != -1 ) { System.out.println("0x"+Integer.toHexString(in...
20,170,503
I have a header.php file that will redirect the user to the homepage on any page if they are not logged in. I'm running into an issue in that the homepage also includes the header and can't have a header to itself. What is the best way to prevent this? I'm thinking a flag I set before my include in the homepage but tha...
2013/11/24
[ "https://Stackoverflow.com/questions/20170503", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1710704/" ]
Your code overflows the buffers for `old` and `new` because they do not contain enough space for a 1 character string. In C strings needs to be null terminated, so a `char` array must always be one element longer than the maximum number of characters it must contain. For example your `word` array can only hold a 49 cha...
Your loops are unnecessary and incorrect. You can print the values directly without specifying the index. In your post you're trying to loop through each index and print a character at a time. Here's what you should do: ``` int main (){ int i, j, k; char word[50], old[2], new[2]; printf("Enter a word: "); gets(word)...
37,187,340
The first block is the input file that is used in this program (simply just a .txt file). In the 'SearchByTitle' function, it is correctly picking up on if the target is in the list, as well as printing it out successfully, however, it will only print out the actual target word. Is there a way to get it to print out t...
2016/05/12
[ "https://Stackoverflow.com/questions/37187340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6265965/" ]
I would imagine your problem is cause by this line of code: ``` .run(["$rootScope", "$state", function($rootScope, $state) { $rootScope.$on("$stateChangeError", function(event, toState, toParams, fromState, fromParams, error) { // We can catch the error thrown when the $requireAuth promise is rejected // and red...
When you have a syntax error in a javascript file, the whole file isn't parsed so your module end up not exists for the other javascript file of your application. So the very 1st message is the true important one : the SyntaxError I counted roughly and end up there : ``` return auth.ref.$requireAuth(); ``` the w...
17,956,008
To turn on JPA logging as per the link [here](http://openjpa.apache.org/builds/1.0.3/apache-openjpa-1.0.3/docs/manual/ref_guide_logging_openjpa.html) This needs to be done where? in persistence.xml? ``` <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/> ```
2013/07/30
[ "https://Stackoverflow.com/questions/17956008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454671/" ]
Your first issue which is masking the many other issues pointed out by other answers is this: ``` <script src="http://code.jquery.com/jquery-1.10.1.min.js"> // YOU HAVE CODE HERE </script> ``` If your script tag has a `src` attribute, then the contents of the tag (your code) will be ignored. Because of this, your...
by using a `setTimeout` function. this will delay your animations ``` $(function(){ // DOM ready shorthand setTimeout(function(){ $(".img-fade").animate({left:200, opacity:1}, 1500); }, 2000 ); // wait 2s before animating }); ``` Theremore you cannot have a **dot** in your `class` : `<div class...
17,956,008
To turn on JPA logging as per the link [here](http://openjpa.apache.org/builds/1.0.3/apache-openjpa-1.0.3/docs/manual/ref_guide_logging_openjpa.html) This needs to be done where? in persistence.xml? ``` <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/> ```
2013/07/30
[ "https://Stackoverflow.com/questions/17956008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454671/" ]
Your first issue which is masking the many other issues pointed out by other answers is this: ``` <script src="http://code.jquery.com/jquery-1.10.1.min.js"> // YOU HAVE CODE HERE </script> ``` If your script tag has a `src` attribute, then the contents of the tag (your code) will be ignored. Because of this, your...
Your `<div class=".img-fade">` div shouldn't have a "." at the beginning of the name. It should look like this: `<div class="img-fade">` - Everything else looks good. Your jQuery wasn't finding any elements matching "img-fade," because the actual name was ".img-fade".
17,956,008
To turn on JPA logging as per the link [here](http://openjpa.apache.org/builds/1.0.3/apache-openjpa-1.0.3/docs/manual/ref_guide_logging_openjpa.html) This needs to be done where? in persistence.xml? ``` <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/> ```
2013/07/30
[ "https://Stackoverflow.com/questions/17956008", "https://Stackoverflow.com", "https://Stackoverflow.com/users/454671/" ]
Your first issue which is masking the many other issues pointed out by other answers is this: ``` <script src="http://code.jquery.com/jquery-1.10.1.min.js"> // YOU HAVE CODE HERE </script> ``` If your script tag has a `src` attribute, then the contents of the tag (your code) will be ignored. Because of this, your...
``` $(document).ready(function(2000,slow){ //syntax error ``` you can't pass parameter within function() it is a syntax error > > Uncaught SyntaxError: Unexpected number . > > > Try this ``` $(document).ready(function () { $(".img-fade").animate({ left: 200, opacity: "show...
38,106
I want to know if "**she likes high school**" should be *elle aime lycée* or *elle aime **le** lycée*? As well as, I'd like to know about "**I listen to music**". Should that be *j’écoute **la** musique* or *j’écoute musique*?
2019/08/21
[ "https://french.stackexchange.com/questions/38106", "https://french.stackexchange.com", "https://french.stackexchange.com/users/21551/" ]
French nouns almost always require an article in French so that would be: > > *Elle aime **le** lycée.* > > > This sentence is perfectly idiomatic. *Le lycée* is likely here the high-school she studies in, work at, or just refer too but might also be high-school in general compared to something else. Note also t...
**I** You wouldn't say in French "Elle aime le lycée."; it is not idiomatic; what you'd say instead would be something like "Elle aime la vie de lycée.", or "Elle aime aller à l'école au lycée.". That is a generic use of "le". Here, you are taking "high school" as you do "school" meaning (uncountable, used without *th...
38,106
I want to know if "**she likes high school**" should be *elle aime lycée* or *elle aime **le** lycée*? As well as, I'd like to know about "**I listen to music**". Should that be *j’écoute **la** musique* or *j’écoute musique*?
2019/08/21
[ "https://french.stackexchange.com/questions/38106", "https://french.stackexchange.com", "https://french.stackexchange.com/users/21551/" ]
French nouns almost always require an article in French so that would be: > > *Elle aime **le** lycée.* > > > This sentence is perfectly idiomatic. *Le lycée* is likely here the high-school she studies in, work at, or just refer too but might also be high-school in general compared to something else. Note also t...
I understand in English, the language learner may ask when to use an article, when to use "the", etc. When "the" is used, it answers the question "which one?". In French, the question is not so much when **to use** articles, rather when **not to use** them. As I would be tempted to say **always**. However, there are ...
38,106
I want to know if "**she likes high school**" should be *elle aime lycée* or *elle aime **le** lycée*? As well as, I'd like to know about "**I listen to music**". Should that be *j’écoute **la** musique* or *j’écoute musique*?
2019/08/21
[ "https://french.stackexchange.com/questions/38106", "https://french.stackexchange.com", "https://french.stackexchange.com/users/21551/" ]
I understand in English, the language learner may ask when to use an article, when to use "the", etc. When "the" is used, it answers the question "which one?". In French, the question is not so much when **to use** articles, rather when **not to use** them. As I would be tempted to say **always**. However, there are ...
**I** You wouldn't say in French "Elle aime le lycée."; it is not idiomatic; what you'd say instead would be something like "Elle aime la vie de lycée.", or "Elle aime aller à l'école au lycée.". That is a generic use of "le". Here, you are taking "high school" as you do "school" meaning (uncountable, used without *th...
11,612,010
I'm inserting the event into Google calendar and I can't find the way I can specify that description is not a plain text but the HTML markup: ``` request = WebRequest.Create("https://www.googleapis.com/calendar/v3/calendars/" + calendarID + "/events?pp=1&key=" + ClientID) as HttpWebRequest; request.Headers.Add("Accept...
2012/07/23
[ "https://Stackoverflow.com/questions/11612010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882162/" ]
There is only plain text available for Google Calendar Event description field. :-(
If you go to the [documentation here](https://developers.google.com/google-apps/calendar/v1/developers_guide_php#CreatingWebContent), it speaks of setting the type (MIME). This means you probably just have to set the type to HTML.
11,612,010
I'm inserting the event into Google calendar and I can't find the way I can specify that description is not a plain text but the HTML markup: ``` request = WebRequest.Create("https://www.googleapis.com/calendar/v3/calendars/" + calendarID + "/events?pp=1&key=" + ClientID) as HttpWebRequest; request.Headers.Add("Accept...
2012/07/23
[ "https://Stackoverflow.com/questions/11612010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882162/" ]
put description in a variable like this: ``` $variable = [ "<span>Text here</span> <br/> <b>Text here</> ... " ]; ```
If you go to the [documentation here](https://developers.google.com/google-apps/calendar/v1/developers_guide_php#CreatingWebContent), it speaks of setting the type (MIME). This means you probably just have to set the type to HTML.
11,612,010
I'm inserting the event into Google calendar and I can't find the way I can specify that description is not a plain text but the HTML markup: ``` request = WebRequest.Create("https://www.googleapis.com/calendar/v3/calendars/" + calendarID + "/events?pp=1&key=" + ClientID) as HttpWebRequest; request.Headers.Add("Accept...
2012/07/23
[ "https://Stackoverflow.com/questions/11612010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882162/" ]
There is only plain text available for Google Calendar Event description field. :-(
after fighting with this for 48 hours, Renato's answer worked for me, and to include a url link, I coded it like this ``` <a href=https://www.myweb.com/page.pdf>Page Description</a><br/> ```
11,612,010
I'm inserting the event into Google calendar and I can't find the way I can specify that description is not a plain text but the HTML markup: ``` request = WebRequest.Create("https://www.googleapis.com/calendar/v3/calendars/" + calendarID + "/events?pp=1&key=" + ClientID) as HttpWebRequest; request.Headers.Add("Accept...
2012/07/23
[ "https://Stackoverflow.com/questions/11612010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/882162/" ]
put description in a variable like this: ``` $variable = [ "<span>Text here</span> <br/> <b>Text here</> ... " ]; ```
after fighting with this for 48 hours, Renato's answer worked for me, and to include a url link, I coded it like this ``` <a href=https://www.myweb.com/page.pdf>Page Description</a><br/> ```
29,954,090
Here is the MySQL code I have tried: ``` "INSERT INTO wpcustom_productmeta.wpc_productmeta(brand,model,country,carrier) VALUES (SELECT meta_value FROM wordpress.wp_postmeta WHERE meta_key='brand'), (SELECT meta_value FROM wordpress.wp_postmeta WHERE meta_key='model'), (SELECT meta_value FROM wordpres...
2015/04/29
[ "https://Stackoverflow.com/questions/29954090", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3662518/" ]
> > Is there any reason inherent to the design of the VHDL language, why the following can not be done? > > > ``` process (clk) variable b : std_logic_vector(15 downto 0); -- This would be nice, but is not permitted: signal c : std_logic_vector(15 downto 0); begin ``` (Declare a signal in a proce...
Yes you should be able to do it and no you cannot and I don't believe VHDL2008 is fixing it (but a lot of awesome things are being fixed/added in VHDL2008). You can use always true generate statements (as already mentioned in a comment). Although if your using always true generate statements your module is probably to ...
60,071,355
I am trying to select the values `LIKE '%Pro%'`, but ultimately I always want `'%PRO333%'` to be the last selected. This is my data: ``` userid: text: 1 PRO11 1 PRO23 1 PRO333 1 PRO2000 ``` This is my query: ``` select * from table1 where userid=1 and text LIKE '%PRO%' --no...
2020/02/05
[ "https://Stackoverflow.com/questions/60071355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9130240/" ]
You can include a comparison between the value of `text` and `PRO333` into your `ORDER BY` clause to sort that value last. For example: ``` SELECT * FROM table1 WHERE userid = 1 AND text LIKE '%PRO%' ORDER BY CASE WHEN text = 'PRO333' THEN 1 ELSE 0 END ``` Output: ``` userid text 1 PRO11 1 PRO23 1 ...
First way: ``` DECLARE @TABLE TABLE( userid int, [text] nvarchar(100) ) INSERT INTO @TABLE(userid,text) VALUES (1,'PRO11'), (1,'PRO23'), (1,'PRO333'), (1,'PRO2000') SELECT * FROM @TABLE WHERE text LIKE '%PRO%' ORDER BY IIF(text='PRO333',1,0) ``` Second way.I used ROW\_NUMBER. ``` DECLARE @TABLE TABLE( ...
4,883,845
I Want iAd And AdMob In My Application Is it possible to provide Add By Both Of This way in My One application ? Or I Want Alternate Add From this Both Add Network what Are the Possibilities for to give the Add By BOth WAy ? Thank You In Advance
2011/02/03
[ "https://Stackoverflow.com/questions/4883845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730776/" ]
Adwhirl is great for doing this. Check it out: <https://www.adwhirl.com/home/dev> Or when you want to do some crazy stuff you could even use a random number do decide which adview is shown, either iAd or AdMob ^^
You can use something like AdWhirl to control multiple ad networks. That way you can allocate percentage of fill to each network. Please note AdWhirl is not bad but we've had lots of problems/crashes when integrating it which we've had to sort out ourselves. There are other similar tools but I ve not tried them.
4,883,845
I Want iAd And AdMob In My Application Is it possible to provide Add By Both Of This way in My One application ? Or I Want Alternate Add From this Both Add Network what Are the Possibilities for to give the Add By BOth WAy ? Thank You In Advance
2011/02/03
[ "https://Stackoverflow.com/questions/4883845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/730776/" ]
Adwhirl is great for doing this. Check it out: <https://www.adwhirl.com/home/dev> Or when you want to do some crazy stuff you could even use a random number do decide which adview is shown, either iAd or AdMob ^^
Use these controls to add iAd as well as adMob both, ``` https://github.com/pjcook/iAdPlusAdMob https://github.com/chrisjp/CJPAdController ```
7,936,119
I have a jQuery Mobile webpage which currently has a `width=device-width` but my form elements (textfields and the submit button) stretch to the width of the browser when viewed on a desktop computer. Is there any way to set a maximum width so that these elements (or the whole content div) display properly on mobile d...
2011/10/29
[ "https://Stackoverflow.com/questions/7936119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343486/" ]
``` <style type='text/css'> <!-- html { background-color: #333; } @media only screen and (min-width: 600px){ .ui-page { width: 600px !important; margin: 0 auto !important; position: relative !important; border-right: 5px...
You can use `document.getElementById("id").style.width="200px";` [jsFiddle Example](http://jsfiddle.net/Naning/VkyAv/7/)
7,936,119
I have a jQuery Mobile webpage which currently has a `width=device-width` but my form elements (textfields and the submit button) stretch to the width of the browser when viewed on a desktop computer. Is there any way to set a maximum width so that these elements (or the whole content div) display properly on mobile d...
2011/10/29
[ "https://Stackoverflow.com/questions/7936119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343486/" ]
``` @media only screen and (min-width: 800px){ body { background:transparent !important; overflow:hidden !important; } html { background: #fff; background-attachment: fixed; overflow:hidden !important; } .ui-...
You can use `document.getElementById("id").style.width="200px";` [jsFiddle Example](http://jsfiddle.net/Naning/VkyAv/7/)
7,936,119
I have a jQuery Mobile webpage which currently has a `width=device-width` but my form elements (textfields and the submit button) stretch to the width of the browser when viewed on a desktop computer. Is there any way to set a maximum width so that these elements (or the whole content div) display properly on mobile d...
2011/10/29
[ "https://Stackoverflow.com/questions/7936119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343486/" ]
``` .ui-page { max-width: 320px !important;/*or 640 */ margin: 0 auto !important; position: relative !important; } ``` Design and test for 320 px or 640 px. in case of 640 px in desktop(bigger resolution) it will take a width of 640 px and on mobile it will be width of mobile. give border if needed ``` ...
You can use `document.getElementById("id").style.width="200px";` [jsFiddle Example](http://jsfiddle.net/Naning/VkyAv/7/)
7,936,119
I have a jQuery Mobile webpage which currently has a `width=device-width` but my form elements (textfields and the submit button) stretch to the width of the browser when viewed on a desktop computer. Is there any way to set a maximum width so that these elements (or the whole content div) display properly on mobile d...
2011/10/29
[ "https://Stackoverflow.com/questions/7936119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343486/" ]
``` <style type='text/css'> <!-- html { background-color: #333; } @media only screen and (min-width: 600px){ .ui-page { width: 600px !important; margin: 0 auto !important; position: relative !important; border-right: 5px...
``` @media only screen and (min-width: 800px){ body { background:transparent !important; overflow:hidden !important; } html { background: #fff; background-attachment: fixed; overflow:hidden !important; } .ui-...
7,936,119
I have a jQuery Mobile webpage which currently has a `width=device-width` but my form elements (textfields and the submit button) stretch to the width of the browser when viewed on a desktop computer. Is there any way to set a maximum width so that these elements (or the whole content div) display properly on mobile d...
2011/10/29
[ "https://Stackoverflow.com/questions/7936119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343486/" ]
``` <style type='text/css'> <!-- html { background-color: #333; } @media only screen and (min-width: 600px){ .ui-page { width: 600px !important; margin: 0 auto !important; position: relative !important; border-right: 5px...
``` .ui-page { max-width: 320px !important;/*or 640 */ margin: 0 auto !important; position: relative !important; } ``` Design and test for 320 px or 640 px. in case of 640 px in desktop(bigger resolution) it will take a width of 640 px and on mobile it will be width of mobile. give border if needed ``` ...
7,936,119
I have a jQuery Mobile webpage which currently has a `width=device-width` but my form elements (textfields and the submit button) stretch to the width of the browser when viewed on a desktop computer. Is there any way to set a maximum width so that these elements (or the whole content div) display properly on mobile d...
2011/10/29
[ "https://Stackoverflow.com/questions/7936119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343486/" ]
``` @media only screen and (min-width: 800px){ body { background:transparent !important; overflow:hidden !important; } html { background: #fff; background-attachment: fixed; overflow:hidden !important; } .ui-...
``` .ui-page { max-width: 320px !important;/*or 640 */ margin: 0 auto !important; position: relative !important; } ``` Design and test for 320 px or 640 px. in case of 640 px in desktop(bigger resolution) it will take a width of 640 px and on mobile it will be width of mobile. give border if needed ``` ...
12,385,444
I'm using Vitamio plugin to play live streaming. It works well. But I cannot custom its VideoPlayer. Anybody can show me how to : 1/ auto play when streaming is loaded. I'm using this code but it is not efficient ``` mVideoView.setOnPreparedListener(new OnPreparedListener() { @Override public void onPrepared(...
2012/09/12
[ "https://Stackoverflow.com/questions/12385444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1244326/" ]
1) Their example uses ``` mVideoView.setOnPreparedListener(new OnPreparedListener() { @Override public void onPrepared(MediaPlayer arg0) { if (loadingDialog.isShowing()) { loadingDialog.dismiss(); mVideoView.start(); } } }); ``` 2) Are you using Vitamio Bundle as a...
``` mVideoView.setMediaController() ``` sets the MediaController widget to be displayed. Just create your own from scratch.
26,223,356
I have an MDI application where I'm trying to get a list of open windows for a `ComponentOne` Ribbon Menu. Using VB .NET. I have this sub for instantiating a new child form within the MDI container: ``` Private Sub newButton_Click(sender As Object, e As EventArgs) Handles newButton.Click ' Create a new instance of...
2014/10/06
[ "https://Stackoverflow.com/questions/26223356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3830488/" ]
You want to look at a [while](https://wiki.python.org/moin/WhileLoop) loop eg: ``` # Set the target value target = 50 # Initialize the running total to 0 total = 0 run the indented code while target != total while total != target: # ask the user for a number choice = input("Number? ") # add choice to tota...
``` import random def amountGame(): coin=[25,5,1] target=random.randint(1,99) print(f'Your Amount is {target}') total=0 while target!=total: x=int(input('Enter pic of amount :')) if x in coin and (target-total)>=x: total+=x else: print('Envalid Entry') print(...
9,278,172
I have following ajax call: ``` $("#container").html("loading..."); $.ajax({ url: "somedoc.php", type: "POST", dataType: "html", success: function(response){ if(response != ''){ $("#container").html(response); } } }); ``` Response look like this: ``` <ul> <l...
2012/02/14
[ "https://Stackoverflow.com/questions/9278172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/262460/" ]
[Large-Scale C++ Software Design](https://rads.stackoverflow.com/amzn/click/com/0201633620), by John Lakos.
Frankly, it doesn't matter much which language you're using in the end. Good software design is good software design. I don't think you'll ever learn it from a single book - and most books that talk about that kind of thing are referring to designing large frameworks which I doubt you're doing. Identify sub-components...
9,278,172
I have following ajax call: ``` $("#container").html("loading..."); $.ajax({ url: "somedoc.php", type: "POST", dataType: "html", success: function(response){ if(response != ''){ $("#container").html(response); } } }); ``` Response look like this: ``` <ul> <l...
2012/02/14
[ "https://Stackoverflow.com/questions/9278172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/262460/" ]
[Large-Scale C++ Software Design](https://rads.stackoverflow.com/amzn/click/com/0201633620), by John Lakos.
Good design is a key on large projects and it is doesn't matter which language do you use if you follow the OO concept. But for some best practices in c++ you could read this book: <http://www.gotw.ca/publications/c++cs.htm>
9,278,172
I have following ajax call: ``` $("#container").html("loading..."); $.ajax({ url: "somedoc.php", type: "POST", dataType: "html", success: function(response){ if(response != ''){ $("#container").html(response); } } }); ``` Response look like this: ``` <ul> <l...
2012/02/14
[ "https://Stackoverflow.com/questions/9278172", "https://Stackoverflow.com", "https://Stackoverflow.com/users/262460/" ]
Frankly, it doesn't matter much which language you're using in the end. Good software design is good software design. I don't think you'll ever learn it from a single book - and most books that talk about that kind of thing are referring to designing large frameworks which I doubt you're doing. Identify sub-components...
Good design is a key on large projects and it is doesn't matter which language do you use if you follow the OO concept. But for some best practices in c++ you could read this book: <http://www.gotw.ca/publications/c++cs.htm>
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
The simplest way is with `rails runner` because you don't need to modify your script. `runner` runs Ruby code in the context of Rails non-interactively. <https://guides.rubyonrails.org/command_line.html#bin-rails-runner> Just say `rails runner script.rb`
Simply require `environment.rb` in your script. If your script is located in the `script` directory of your Rails app do ``` require File.expand_path('../../config/environment', __FILE__) ``` You can control the environment used (development/test/production) by setting the `RAILS_ENV` environment variable when runni...
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
Simply require `environment.rb` in your script. If your script is located in the `script` directory of your Rails app do ``` require File.expand_path('../../config/environment', __FILE__) ``` You can control the environment used (development/test/production) by setting the `RAILS_ENV` environment variable when runni...
This is an old question, but in my opinion I often find it helpful to create a rake task... and it's actually very easy. In `lib/tasks/example.rake`: ``` namespace :example do desc "Sample description you'd see if you ran: 'rake --tasks' in the terminal" task create_user: :environment do User.create! first_name:...
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
Simply require `environment.rb` in your script. If your script is located in the `script` directory of your Rails app do ``` require File.expand_path('../../config/environment', __FILE__) ``` You can control the environment used (development/test/production) by setting the `RAILS_ENV` environment variable when runni...
You just need: ``` bundle exec rails r ~/my_script.rb ```
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
The simplest way is with `rails runner` because you don't need to modify your script. `runner` runs Ruby code in the context of Rails non-interactively. <https://guides.rubyonrails.org/command_line.html#bin-rails-runner> Just say `rails runner script.rb`
[Runner](http://guides.rubyonrails.org/command_line.html#rails-runner) runs Ruby code in the context of Rails non-interactively. From `rails runner` command: ``` Usage: runner [options] ('Some.ruby(code)' or a filename) -e, --environment=name Specifies the environment for the runner to operate under (t...
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
The simplest way is with `rails runner` because you don't need to modify your script. `runner` runs Ruby code in the context of Rails non-interactively. <https://guides.rubyonrails.org/command_line.html#bin-rails-runner> Just say `rails runner script.rb`
This is an old question, but in my opinion I often find it helpful to create a rake task... and it's actually very easy. In `lib/tasks/example.rake`: ``` namespace :example do desc "Sample description you'd see if you ran: 'rake --tasks' in the terminal" task create_user: :environment do User.create! first_name:...
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
The simplest way is with `rails runner` because you don't need to modify your script. `runner` runs Ruby code in the context of Rails non-interactively. <https://guides.rubyonrails.org/command_line.html#bin-rails-runner> Just say `rails runner script.rb`
You just need: ``` bundle exec rails r ~/my_script.rb ```
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
[Runner](http://guides.rubyonrails.org/command_line.html#rails-runner) runs Ruby code in the context of Rails non-interactively. From `rails runner` command: ``` Usage: runner [options] ('Some.ruby(code)' or a filename) -e, --environment=name Specifies the environment for the runner to operate under (t...
This is an old question, but in my opinion I often find it helpful to create a rake task... and it's actually very easy. In `lib/tasks/example.rake`: ``` namespace :example do desc "Sample description you'd see if you ran: 'rake --tasks' in the terminal" task create_user: :environment do User.create! first_name:...
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
[Runner](http://guides.rubyonrails.org/command_line.html#rails-runner) runs Ruby code in the context of Rails non-interactively. From `rails runner` command: ``` Usage: runner [options] ('Some.ruby(code)' or a filename) -e, --environment=name Specifies the environment for the runner to operate under (t...
You just need: ``` bundle exec rails r ~/my_script.rb ```
9,757,261
I want to run a Ruby file in the context of a Rails environment. rails runner almost does what I want to do, but I'd like to just give it the file name and arguments. I'm pretty sure this is possible since I've done it before. Can someone remind me how to do this?
2012/03/18
[ "https://Stackoverflow.com/questions/9757261", "https://Stackoverflow.com", "https://Stackoverflow.com/users/66702/" ]
This is an old question, but in my opinion I often find it helpful to create a rake task... and it's actually very easy. In `lib/tasks/example.rake`: ``` namespace :example do desc "Sample description you'd see if you ran: 'rake --tasks' in the terminal" task create_user: :environment do User.create! first_name:...
You just need: ``` bundle exec rails r ~/my_script.rb ```
21,663,570
Reading C11 Standard, when speaking about `main()` I read: > > 5.1.2.2.1 "...[main] shall be defined with a return type of int". > > 5.1.2.2.3 "...If the return type is not compatible with int,..." > > > The latter suggest that I can define `main()` to return a non integer value. How is it possible if ma...
2014/02/09
[ "https://Stackoverflow.com/questions/21663570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2431763/" ]
The full quote says `If the return type is not compatible with int, the termination status returned to the host environment is unspecified.` That means it's undefined behavior. When `main()` exits, the program is essentially terminating, and the return value of main will be used as the exit status of the program. Sin...
> > The implementation declares no prototype for this function. > > > That is, there's no existing prototype; whether you define it as `int main(void)`, `int main (int argc, char *argv[])`, or in "some other implementation-defined manner", you won't be conflicting with some implicit prototype. > > or in some oth...
21,663,570
Reading C11 Standard, when speaking about `main()` I read: > > 5.1.2.2.1 "...[main] shall be defined with a return type of int". > > 5.1.2.2.3 "...If the return type is not compatible with int,..." > > > The latter suggest that I can define `main()` to return a non integer value. How is it possible if ma...
2014/02/09
[ "https://Stackoverflow.com/questions/21663570", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2431763/" ]
I have the impression that the sentence > > or in some other implementation-defined manner. > > > leads to confusion here. *implementation-defined* is the C standard jargon for *defined and documented* by the compiler provider. This doesn't mean that the programmer is free to chose an arbitrary prototype for `mai...
> > The implementation declares no prototype for this function. > > > That is, there's no existing prototype; whether you define it as `int main(void)`, `int main (int argc, char *argv[])`, or in "some other implementation-defined manner", you won't be conflicting with some implicit prototype. > > or in some oth...
6,707,062
I am trying to assign a delegate's method to a UIButton using `addTarget:action:forControlEvents:`. Everything compiles without warnings, the IBOutlet is connected to the button in Interface Bulder (XCode 4). If I moves the delegate's method to the controller, it works fine. (All code worked fine, but I refactored to u...
2011/07/15
[ "https://Stackoverflow.com/questions/6707062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/539662/" ]
I think you should write ``` [self.quitBtn addTarget:delegate action:@selector(receiveQuitRequest:) forControlEvents:UIControlEventTouchUpInside]; ``` I am not sure, but this may work in your case
I have a couple of minor suggestions: 1. Try disconnecting and re-connecting the delegate for the button in IB. I've noticed that sometimes this seems to reset it properly. 2. Clean and rebuild. Again, this helps to reset things that didn't get set properly.
6,707,062
I am trying to assign a delegate's method to a UIButton using `addTarget:action:forControlEvents:`. Everything compiles without warnings, the IBOutlet is connected to the button in Interface Bulder (XCode 4). If I moves the delegate's method to the controller, it works fine. (All code worked fine, but I refactored to u...
2011/07/15
[ "https://Stackoverflow.com/questions/6707062", "https://Stackoverflow.com", "https://Stackoverflow.com/users/539662/" ]
I think you should write ``` [self.quitBtn addTarget:delegate action:@selector(receiveQuitRequest:) forControlEvents:UIControlEventTouchUpInside]; ``` I am not sure, but this may work in your case
If I've understood everything correctly, the UIButton does not include a `receiveQuitRequest:` selector, so there is nothing to be executed when the user touches the button.
46,547,137
I have a project in my C++ class - we're supposed to make a "simple student management system" comprised of a class for the student attribute variables, and a main function with a branch statement that lets the user input names and IDs for the students. I know that I need to use an array to make "slots" for the student...
2017/10/03
[ "https://Stackoverflow.com/questions/46547137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8712278/" ]
Perhaps this will work for you ``` ans <- apply(M, 2, function(i) toString(unlist(i))) ans[1] # Genes # "PARP, BRCA1, BRCA2, PARP-1/2, BRCA" ```
using do.call,bind\_rows did the job!Thank you for your answers!
46,547,137
I have a project in my C++ class - we're supposed to make a "simple student management system" comprised of a class for the student attribute variables, and a main function with a branch statement that lets the user input names and IDs for the students. I know that I need to use an array to make "slots" for the student...
2017/10/03
[ "https://Stackoverflow.com/questions/46547137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8712278/" ]
Your data is matrix. That is why you are seeing in form of a list. You can access it using matrix index or you can convert it into data frame then access using its column as below: ``` ##Your Data: M1 <- structure(list(c("PARP", "BRCA1", "BRCA2", "PARP-1/2", "BRCA" ), c("ovarian, fallopian tube", "peritoneal cancer",...
using do.call,bind\_rows did the job!Thank you for your answers!
19,707,674
I am trying to run the following code to access a DBF file in folder. the name of the file if RF10.dbf: ``` foxpro = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\xxxxxx\\xxxxx\\xxxxx\\;Extended Properties=dBASE IV;User ID=ADMIN;Password=;"); try ...
2013/10/31
[ "https://Stackoverflow.com/questions/19707674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1451836/" ]
IIRC you don't include the extension in the query: ``` fpcmd.CommandText = "SELECT * FROM RF10 WHERE SRNO='RDDFT000108'"; ```
It might be your access rights to the folder or file. Have you checked that?
19,707,674
I am trying to run the following code to access a DBF file in folder. the name of the file if RF10.dbf: ``` foxpro = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\xxxxxx\\xxxxx\\xxxxx\\;Extended Properties=dBASE IV;User ID=ADMIN;Password=;"); try ...
2013/10/31
[ "https://Stackoverflow.com/questions/19707674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1451836/" ]
IIRC you don't include the extension in the query: ``` fpcmd.CommandText = "SELECT * FROM RF10 WHERE SRNO='RDDFT000108'"; ```
Try to use the full file path: ``` fpcmd.CommandText = "SELECT * FROM 'D:\some_folder\RF10.DBF' WHERE SRNO='RDDFT000108'"; ```
58,014,868
I have a script that looks for duplicates. I want to know how now to delete those duplicates. ``` Select LastName, FirstName, DateOfBirth, Count (*) As Duplicates From PatientDemographics2 Group by FirstName, LastName, DateOfBirth Having count (*) >1 Order by LastName, FirstName Asc ```
2019/09/19
[ "https://Stackoverflow.com/questions/58014868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6391005/" ]
You can `ROW_NUMBER()` to detect duplicate ``` WITH cte AS ( SELECT LastName, FirstName, DateOfBirth , ROW_NUMBER() OVER(PARTITION BY LastName, FirstName, DateOfBirth ORDER BY LastName) AS rn FROM PatientDemographic2 ) DELETE FROM cte WHERE rn > 1 ```
Or simply: ``` DELETE FROM PatientDemographics2 WHERE id NOT IN ( SELECT MIN(id) i1 FROM PatientDemographics2 GROUP BY FirstName, LastName, DateOfBirth ) ``` demo: <https://rextester.com/KOZI16883>
31,445,899
a piece of code in an enum (deck of cards, they should have a 'status' either true or false) ``` enum Card:Int { case zero = 0, one, two, three, four, five, six, seven, eight, nine init() { self = .zero } init?(digit: Int) { switch digit { case 0: self = .zero case 1: self = .one case 2: self = .tw...
2015/07/16
[ "https://Stackoverflow.com/questions/31445899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5101499/" ]
**create a structure called Cards** which has **two stored properties** one of **Card enum** type and another of **Bool type to keep track of status** here you can declare a function swap() which changes the status value: ``` struct Cards { let card:Card? //This property stores an instance of Card enum var st...
In case you do not want to use structs, another approach could be returning a new instance of the enum ``` func swap(status: Bool) -> Card { var card = Card() switch status { case true: card.status = false case false: card.status = true } return card } ```
61,526,378
This should be pretty simple, but after 3 hours of googling around, I apparently don't have the right wording to find the answer. I have and XML return that I need to format for a page. I have no control of the return as it is coming from UPS's databases. I have it formatted fine, but now I need to increase the retur...
2020/04/30
[ "https://Stackoverflow.com/questions/61526378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6692956/" ]
you need to append the protocol at the start of the url or the browser will take it as a relative url to your document. ```html <form id="searchWikipedia" action="" onsubmit="searchWikipedia()"> <input id="search" name="search" type="text" /> <select id="lang" name="language"> <option value="en">English</optio...
Add Submit input tag, to perform action ```html <form id="searchWikipedia" action="" onsubmit="searchWikipedia(event)"> <input id="search" name="search" type="text" /> <select id="lang" name="language"> <option value="en">English</option> <option value="fr">French</option> </select> <...
28,626,064
I have an app where I want to execute a jQuery `equalize()` function on some `DIV` boxes every time my "pages" change. At the moment I have the code inside my main layout's `render()` function but it is executed only once the user reloads the whole page. I tried to use `autorun` but this didn't work out either. Meteor...
2015/02/20
[ "https://Stackoverflow.com/questions/28626064", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3481734/" ]
If you are using [iron-router](https://github.com/iron-meteor/iron-router/blob/devel/Guide.md), then try this: ``` Router.onAfterAction( function(){ // select divs and apply equalize }, { only: ['admin'] // or except: ['routeOne', 'routeTwo'] } ); ```
Take a look at [hooks](https://github.com/iron-meteor/iron-router/blob/devel/Guide.md#hooks) in IronRouter. Add an `onBeforeAction` hook to your router configuration to apply it to all routes. ``` Router.onBeforeAction(function () { //dostuff }) ```
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
One is your basic division operation: ``` 10/5 => 2 10/4 => 2.5 ``` The other is the modulo operator, which will give you the integer remainder of the division operation. ``` 10%5 => 0 10%4 => 2 ```
10 / 5 is 10 divided by 5, or [basic division](https://en.wikipedia.org/wiki/Division_(mathematics)). 10 % 5 is 10 modulo 5, or [the remainder of a division operation](https://en.wikipedia.org/wiki/Modulo_operation).
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
``` 10/5 = 2 10%5 = 0 ``` `%` is modulo
<http://www.w3schools.com/js/js_operators.asp> 10 / 5 is 2. 10 % 5 is 0.
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
``` 10/5 = 2 10%5 = 0 ``` `%` is modulo
% is the modulus operator: it gives you the remainder of the division.
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
``` 10/5 = 2 10%5 = 0 ``` `%` is modulo
In pretty much every language % is a modulus not a divide symbol. It does divide but it gives you just the remainder rather than the divided number.
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
``` 10/5 = 2 10%5 = 0 ``` `%` is modulo
One is your basic division operation: ``` 10/5 => 2 10/4 => 2.5 ``` The other is the modulo operator, which will give you the integer remainder of the division operation. ``` 10%5 => 0 10%4 => 2 ```
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
One is your basic division operation: ``` 10/5 => 2 10/4 => 2.5 ``` The other is the modulo operator, which will give you the integer remainder of the division operation. ``` 10%5 => 0 10%4 => 2 ```
% is the modulus operator: it gives you the remainder of the division.
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
10/5 is division operation and depending on the data type storing the result in might not give you the result expected. if storing in a int you will loose the remainder. 10%2 is a modulus operation. it will return the remainder from the division and is commonly used to determine if a number is odd or even. take any gi...
10/5 divides 10/5 = 2 10%5 divides 5 and returns the remainder, 0, so 10%5 = 0
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
``` 10/5 = 2 10%5 = 0 ``` `%` is modulo
10/5 divides 10/5 = 2 10%5 divides 5 and returns the remainder, 0, so 10%5 = 0
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
10/5 divides 10/5 = 2 10%5 divides 5 and returns the remainder, 0, so 10%5 = 0
In pretty much every language % is a modulus not a divide symbol. It does divide but it gives you just the remainder rather than the divided number.
6,833,511
I have a textbox that the user can input into. Right now the user can enter in anything, but I would like to limit the user. * I first need to only allow **numbers** from the user that are **negative or positive, and/or decimal (up to 3 digits)**. In the RichTextBox the data looks like this: ``` 227.905 227.905 242....
2011/07/26
[ "https://Stackoverflow.com/questions/6833511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/864197/" ]
``` 10/5 = 2 10%5 = 0 ``` `%` is modulo
10 / 5 is 10 divided by 5, or [basic division](https://en.wikipedia.org/wiki/Division_(mathematics)). 10 % 5 is 10 modulo 5, or [the remainder of a division operation](https://en.wikipedia.org/wiki/Modulo_operation).
48,191,584
I'm attempting to write a MVC/Web API page, and am stuck on the Web API post portion when doing more than just base types. I cannot seem to find an answer why the Roles object keeps getting set to null even though it's posting from the client side (and it's passing the ModelState.IsValid portion?) If I take all the c...
2018/01/10
[ "https://Stackoverflow.com/questions/48191584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4714723/" ]
As rowNumber seems to be a field of your object I assume that it's also a column in your table. In that case you can just add "ORDER BY rowNumber" to your HQL query and don't use Collections.sort
You need a Comparator which can sort by your desired criteria: ``` Comparator<? super TestFlow> comparator = new Comparator<TestFlow>() { @Override public int compare(TestFlow o1, TestFlow o2) { return o1.getRowNumber().compareTo(o2.getRowNumber()); } }; testFlow.sort(comparator); ``` And if you'...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
I'm guessing it has something to do with the default scroll behavior of trying to show the full item whenever it gets selected. Try disabling the scrolling, and wrap it in another ScrollViewer: ``` <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True" Height="250"> <ListBox ScrollViewer.Vertica...
The effect is reproducible if you click into the TextBox of the last visible row. If that row isn't fully scrolled into the view the listbox automatically scrolls that line into view to be fully visible. That in turn means all rows scroll up one row which makes you feel the jumping effect. To my knowledge you cannot ch...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
Here is another answer. It works with a simple WPF. However, my real situation had an Infragistics control and Rachel's answer worked. However, I want to post this for completeness. I'm pasting the code from this url: <http://social.msdn.microsoft.com/Forums/vstudio/en-US/a3532b1f-d76e-4955-b3da-84c98d6d435c/annoyi...
The effect is reproducible if you click into the TextBox of the last visible row. If that row isn't fully scrolled into the view the listbox automatically scrolls that line into view to be fully visible. That in turn means all rows scroll up one row which makes you feel the jumping effect. To my knowledge you cannot ch...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
I'm guessing it has something to do with the default scroll behavior of trying to show the full item whenever it gets selected. Try disabling the scrolling, and wrap it in another ScrollViewer: ``` <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True" Height="250"> <ListBox ScrollViewer.Vertica...
When a command like SetFocus runs on a child of the scrollviewer, it triggers a ReqestBringInto view on the scrrollviewer but the act of scrolling to the child controls is implemented under the covers by the scrollviewer's ScrollInfo object. I think the key here is to create a class which implements IScrollInfo. I imp...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
I'm guessing it has something to do with the default scroll behavior of trying to show the full item whenever it gets selected. Try disabling the scrolling, and wrap it in another ScrollViewer: ``` <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True" Height="250"> <ListBox ScrollViewer.Vertica...
Here is another answer. It works with a simple WPF. However, my real situation had an Infragistics control and Rachel's answer worked. However, I want to post this for completeness. I'm pasting the code from this url: <http://social.msdn.microsoft.com/Forums/vstudio/en-US/a3532b1f-d76e-4955-b3da-84c98d6d435c/annoyi...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
I'm guessing it has something to do with the default scroll behavior of trying to show the full item whenever it gets selected. Try disabling the scrolling, and wrap it in another ScrollViewer: ``` <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True" Height="250"> <ListBox ScrollViewer.Vertica...
Use this: ``` <ListBox ScrollViewer.PanningMode="None"> ```
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
I'm guessing it has something to do with the default scroll behavior of trying to show the full item whenever it gets selected. Try disabling the scrolling, and wrap it in another ScrollViewer: ``` <ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="True" Height="250"> <ListBox ScrollViewer.Vertica...
This issue is caused when a child item within the `ScrollVewier` receives focus and is subsequently scrolled into view (in this case the child element is the ListBoxItem). If the element receiving focus does not need to be navigaable via the tab key, then a simple solution is to make the element unfocusable via `Focus...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
Here is another answer. It works with a simple WPF. However, my real situation had an Infragistics control and Rachel's answer worked. However, I want to post this for completeness. I'm pasting the code from this url: <http://social.msdn.microsoft.com/Forums/vstudio/en-US/a3532b1f-d76e-4955-b3da-84c98d6d435c/annoyi...
When a command like SetFocus runs on a child of the scrollviewer, it triggers a ReqestBringInto view on the scrrollviewer but the act of scrolling to the child controls is implemented under the covers by the scrollviewer's ScrollInfo object. I think the key here is to create a class which implements IScrollInfo. I imp...
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
Here is another answer. It works with a simple WPF. However, my real situation had an Infragistics control and Rachel's answer worked. However, I want to post this for completeness. I'm pasting the code from this url: <http://social.msdn.microsoft.com/Forums/vstudio/en-US/a3532b1f-d76e-4955-b3da-84c98d6d435c/annoyi...
Use this: ``` <ListBox ScrollViewer.PanningMode="None"> ```
20,842,630
I have a StackPanel that contains a TextBox and a Combobox. When I set the focus inside a textbox (not the first one), the Contents of the StackPanel "jumps" and goes to the top. Below is the code. I have researched this and post the one I found and tried (but did not worK). I want to prevent the "jumping". So run ...
2013/12/30
[ "https://Stackoverflow.com/questions/20842630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/214977/" ]
Here is another answer. It works with a simple WPF. However, my real situation had an Infragistics control and Rachel's answer worked. However, I want to post this for completeness. I'm pasting the code from this url: <http://social.msdn.microsoft.com/Forums/vstudio/en-US/a3532b1f-d76e-4955-b3da-84c98d6d435c/annoyi...
This issue is caused when a child item within the `ScrollVewier` receives focus and is subsequently scrolled into view (in this case the child element is the ListBoxItem). If the element receiving focus does not need to be navigaable via the tab key, then a simple solution is to make the element unfocusable via `Focus...
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
This is unacceptable. If this is a reputable journal, then you can make the point that they made you wait and the research results become stale, and that you have every right to expect them to honour their approval for publication. They simply cannot retroactively change whether the paper fits into aim/scope of the j...
This is pretty disturbing. You should immediately contact the editorial board of the journal and explain the situation. I would also doubt the quality of the mentioned journal by looking at the series of events.
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
This is unacceptable. If this is a reputable journal, then you can make the point that they made you wait and the research results become stale, and that you have every right to expect them to honour their approval for publication. They simply cannot retroactively change whether the paper fits into aim/scope of the j...
You should contact the editor in chief and make your complaints clear, that is awful behavior on behalf of the journal. If I were you I would do it as fast as I could and I would take it as far as I could. I wish you good luck and I hope it was a simple mix up.
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
This is unacceptable. If this is a reputable journal, then you can make the point that they made you wait and the research results become stale, and that you have every right to expect them to honour their approval for publication. They simply cannot retroactively change whether the paper fits into aim/scope of the j...
Yes, of course you should complain, and the editor and chief does owe you an explanation. That being said, total devil's advocate (just because the other answers seemed to all have pitchforks ready)... If there has been a change in the editorial team it is somewhat their choice what direction they take the journal. T...
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
**Check with the journal**. Especially do this if the rejection email you received looks like an auto-generated email. No rational journal would act in such a way, so my gut feeling says there was a mistake somewhere, most likely human error. It is possible that, e.g., the final status of your manuscript was accidental...
This is pretty disturbing. You should immediately contact the editorial board of the journal and explain the situation. I would also doubt the quality of the mentioned journal by looking at the series of events.
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
This is pretty disturbing. You should immediately contact the editorial board of the journal and explain the situation. I would also doubt the quality of the mentioned journal by looking at the series of events.
You should contact the editor in chief and make your complaints clear, that is awful behavior on behalf of the journal. If I were you I would do it as fast as I could and I would take it as far as I could. I wish you good luck and I hope it was a simple mix up.
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
This is pretty disturbing. You should immediately contact the editorial board of the journal and explain the situation. I would also doubt the quality of the mentioned journal by looking at the series of events.
Yes, of course you should complain, and the editor and chief does owe you an explanation. That being said, total devil's advocate (just because the other answers seemed to all have pitchforks ready)... If there has been a change in the editorial team it is somewhat their choice what direction they take the journal. T...
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
**Check with the journal**. Especially do this if the rejection email you received looks like an auto-generated email. No rational journal would act in such a way, so my gut feeling says there was a mistake somewhere, most likely human error. It is possible that, e.g., the final status of your manuscript was accidental...
You should contact the editor in chief and make your complaints clear, that is awful behavior on behalf of the journal. If I were you I would do it as fast as I could and I would take it as far as I could. I wish you good luck and I hope it was a simple mix up.
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
**Check with the journal**. Especially do this if the rejection email you received looks like an auto-generated email. No rational journal would act in such a way, so my gut feeling says there was a mistake somewhere, most likely human error. It is possible that, e.g., the final status of your manuscript was accidental...
Yes, of course you should complain, and the editor and chief does owe you an explanation. That being said, total devil's advocate (just because the other answers seemed to all have pitchforks ready)... If there has been a change in the editorial team it is somewhat their choice what direction they take the journal. T...
105,065
My paper was accepted for publication in a journal. I have also received an acceptance letter and even I have filled out the copyright form. The corresponding editor first told me "Your paper is published in one of the volumes of 2017" and next time said that my paper is "published in 2018", but now I have received an ...
2018/03/07
[ "https://academia.stackexchange.com/questions/105065", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/88580/" ]
You should contact the editor in chief and make your complaints clear, that is awful behavior on behalf of the journal. If I were you I would do it as fast as I could and I would take it as far as I could. I wish you good luck and I hope it was a simple mix up.
Yes, of course you should complain, and the editor and chief does owe you an explanation. That being said, total devil's advocate (just because the other answers seemed to all have pitchforks ready)... If there has been a change in the editorial team it is somewhat their choice what direction they take the journal. T...
732,283
I have a OpenVPN server ruining on Unbuntu 14.04 server. Everything works fine, the client connects to the server and can ping the VPN server. I want the client use my internet as it were his internet but I also want to block the client to access my Home LAN. Below is my setup: ``` Home LAN: 192.168.1.0/24 Router: 192...
2015/10/28
[ "https://serverfault.com/questions/732283", "https://serverfault.com", "https://serverfault.com/users/242235/" ]
I'd do it with iptables. ``` iptables -A INPUT -s 10.8.0.0/24 -d 192.168.1.0/24 -j DROP ```
I think by default, there's no route to your Home LAN. You can ping the IP address on the OpenVPN server sitting on 192.168.1.0/24 but nothing else. Because when I set mine up, I had to push the route out on the server.conf file and also add a static route on my router for it to allow access to the 192.168.1.0/24 netwo...
39,449,770
I have a Table with Orders ``` +----+-------------+--------+ | ID | OrderNumber | CartId | +----+-------------+--------+ |1 | ABDE45677 | 1 | |2 | ABFRTG456 | 2 | +----+-------------+--------+ ``` One with cart items for each cart (which belongs to an order) ``` +----+--------+-----------+ | ID | ...
2016/09/12
[ "https://Stackoverflow.com/questions/39449770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4075164/" ]
You never want synchronous code when you can avoid it. In this case I would recommend to use Promises in order to manage the seven requests to redis. The [Bluebird promise library](http://bluebirdjs.com/docs/) can make most APIs promise-compatible in one line of code (read about [promisification](http://bluebirdjs.co...
If multiple redis ops are involved, generally I prefer to write lua script and then call it through my nodejs program. This is an unrelated example, but it shows how you can use lua through nodejs. example: get\_state.lua ``` local jobId = KEYS[1] local jobExists = redis.pcall('exists', jobId) if jobExists == 0 or jo...
10,813,592
> > **Possible Duplicate:** > > [What is the For attribute for in an HTML tag?](https://stackoverflow.com/questions/3681601/what-is-the-for-attribute-for-in-an-html-tag) > > > I have been trying to find this out. What is the reason for using the "for=" when you use a label in HTML? ``` <form> <label for="ma...
2012/05/30
[ "https://Stackoverflow.com/questions/10813592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1422604/" ]
It makes a click on the label focus the input element it is `for`. In the example you posted, you simply click on the word `Male` *or* the radio button in order for it to get selected. Without this, you have a much smaller target to click... > > If it's needed then is there some equivalent in HTML 5 or is it the sam...
For binds the `<label>` and the `<input>` field together. `for` should point to the `id` of the `<input>`. It is not actually needed, but it is useful for example on radio buttons, where the user can click the label to check the radio button, thus creating a larger click area and a better user experience. You use `for...
10,813,592
> > **Possible Duplicate:** > > [What is the For attribute for in an HTML tag?](https://stackoverflow.com/questions/3681601/what-is-the-for-attribute-for-in-an-html-tag) > > > I have been trying to find this out. What is the reason for using the "for=" when you use a label in HTML? ``` <form> <label for="ma...
2012/05/30
[ "https://Stackoverflow.com/questions/10813592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1422604/" ]
For binds the `<label>` and the `<input>` field together. `for` should point to the `id` of the `<input>`. It is not actually needed, but it is useful for example on radio buttons, where the user can click the label to check the radio button, thus creating a larger click area and a better user experience. You use `for...
If you use the `for` attribute of the label, and set its value to the `id` of a related `input` element, most browsers will focus the input element when the label is clicked on. This is especially useful for small elements like checkboxes and radio buttons.
10,813,592
> > **Possible Duplicate:** > > [What is the For attribute for in an HTML tag?](https://stackoverflow.com/questions/3681601/what-is-the-for-attribute-for-in-an-html-tag) > > > I have been trying to find this out. What is the reason for using the "for=" when you use a label in HTML? ``` <form> <label for="ma...
2012/05/30
[ "https://Stackoverflow.com/questions/10813592", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1422604/" ]
It makes a click on the label focus the input element it is `for`. In the example you posted, you simply click on the word `Male` *or* the radio button in order for it to get selected. Without this, you have a much smaller target to click... > > If it's needed then is there some equivalent in HTML 5 or is it the sam...
If you use the `for` attribute of the label, and set its value to the `id` of a related `input` element, most browsers will focus the input element when the label is clicked on. This is especially useful for small elements like checkboxes and radio buttons.
647,156
Can the following integral be computed? ![enter image description here](https://i.stack.imgur.com/M2UBx.jpg)
2014/01/22
[ "https://math.stackexchange.com/questions/647156", "https://math.stackexchange.com", "https://math.stackexchange.com/users/121418/" ]
Hint: consider $$A\_n=\int\_{1/(n+1)}^{1/n}\{1/x\}^{4}dx$$. This can be computed. Does the series $\sum\_{i=1}^\infty A\_i$ converges?
First, let's prove that it converges: $$\int\_0^1\bigg\{\frac1x\bigg\}^4dx=\int\_1^\infty\frac{\{t\}^4}{t^2}dt\color{red}<\int\_1^\infty\frac{1^4}{t^2}dt=\bigg[-\frac1t\bigg]\_1^\infty=1,\qquad\text{since }0\le\{t\}<1.$$ --- $$\int\_0^1\bigg\{\frac1x\bigg\}^4dx=\int\_1^\infty\frac{\{t\}^4}{t^2}dt=\sum\_1^\infty\int\...