Making sure insert happens to multiple tables
Vote count: 0 I have two tables "EnrolledSubjects" and "StudentAccounts" in SqlServer. Obviously the enrolled subjects should go to the former while their fees should go to the latter. I use the simple Insert Statement for both tables but the problem is, how can I be sure that when one of the tables...
I need help for Google Map API
Vote count: 0 yet I have another problem with my android app I developed a pretty basic application that contains a single Activity and displays google maps (I used google maps API). The compilation ends with no errors, I also generate the apk without any problems but when I run my application on di...
HTML block element overflowing its parent
Vote count: 0 I'm encountering a weird (maybe not) behaviour that I want to avoid because the end result is a horrible user experience. To help you understand the problem I put together the code snippet below. var counter; var counterDisplay; var intervalRef; window.onload = function(){ console.log(...
How to sort line on textfile using batch file
Vote count: 0 I have problem with how to sort by line on my text file. For example i have one file the name is a.txt on the a.txt i have 4 line:DATE,EVENT,TYPE,2016-07-01 14:43:17,Communication lost,UPS exte al event2016-07-01 14:38:59,UPS power on immediately,UPS exte al event2016-07-01 14:38:04,AC...
mongoose: findById, select the field, group the array
Vote count: 0 I have the following schema: var userSchema = mongoose.Schema({ localId: String, notes: [{}] }); where notes is an array where each element has filed source. I need to select the document by localId, take the notes, and group the array of notes based on source asked 28 secs agoAlik Let...
Ember.js this.set() not working from inside action
Vote count: 0 Folks, I'm having some begi er problem and would love some assistance. This is in ember 2.6 if it makes any difference. Basically, I'm trying to change some text on the screen when the button is pressed inside a component. Here's the handlebars and component js code: <h2>Stupid Button<...
A for-comprehrension with mixed types and WS calls
Vote count: 0 How do I do a for comprehension (or flatmaps) that mixes Futures and non-futures that retu s a Future result? An example: private def fetchWSResponseBodies(futureSetLongs: Future[Set[Long]]) = { for { setLongs: Set[Long] <- futureSetLongs long: Long <- setLongs // Mulitple longs wsResp...
I'm not sure how to assign the values I want exactly
Vote count: 0 I need cherries, oranges, plumes, bells, melons, or bars to be randomly picked in the case statements and in a way I can then display what was chosen so I can compare them, but I'm not sure how. For example, I was hoping when I printed slot1, slot2, and slot3, I would get the names of ...
multiple modal with same data-target in one page
Vote count: 0 hello i using bootrap modal. i have like five modal, and when i open the first modal, the rest of modal got open too. how to make it specific when i click the modal without to have to create more class or id on data-target? <button class="btn btn-yellow detail" data-toggle="modal" data...
Multiply by two elements of the matrix
Vote count: 0 The program would multiply by two elements of the following matrix: 4 7 8 6 9 1 5 0 3 No strip error, but stumbles when ru ing #include <stdio.h> #include <stdio.h> #include <conio.h> int main(){ int arr_num[3][3]={ {4,7,8},{6,9,1},{5,0,3}}; int i=0,j=0; for (i=0;i<=2; i++) for (j=0;j<...
Use Objectify with Vert.x
Vote count: 0 Is it possible to integrate Objectify in a Vert.x application ? Let me give you some context. I have a REST API exposed by Vert.x (3.3.0) that interacts with Google Cloud Datastore using gcloud-java library. Everything works fine but I want to use a higher level API to make all that co...
How can is solve "Name file is not defined"
Vote count: 0 When i run my Python command I keep seeing this error: Traceback (most recent call last): file "<stdin>", line 1, in <module> NameError: name 'file' is not defined Can someone send my a copy from the following code but then good with a explain. file = raw_input("Enter the file name: ")...
linkText value as a variable in FindBy
Vote count: 0 I want to create a WebElement list from a String List by using Findby. My String array has this value: String [] s1 = {"Sale Condo", "Rent Condo"}; And I am looping this String array to create a list of WebElement by doing this: List<WebElement> allElem=new ArrayList<WebElement>(); for...
Vaadin update combobox values in a grid
Vote count: 0 I have a Vaadin (7.6.7) grid, that shows a combobox when in editor mode. Another action can modify the items of the combobox, but the combobox in the grid does not update itself. grid.getColumn("id").setEditorField(theBox).setConverter(new Converter<String, String>() { @Override public...