[Solved] What’s the difference between real device and simulator/emulator? [closed]

Recently in QCon, Gerard Meszaros said that we should run automation tests only on simulators to improve efficiency. This was odd advice, if that is really what Mr. Meszaros said. Running tests on the emulator is fine, but “only” is an excessive recommendation. There is no harm in running automated tests on devices, and you … Read more

[Solved] How to upload any type of and any size of file in table of Oracle using C#? [closed]

//Here First you need to upload file on application server then convert into File Stream. string auditReportUploadDocLocation = ConfigurationManager.AppSettings[“AuditReportUploadDocLocation”].ToString(); string filelocation = Path.Combine(Server.MapPath(auditReportUploadDocLocation), fuUploadDoc.FileName); fuUploadDoc.PostedFile.SaveAs(filelocation); fileName = Path.GetFileName(fuUploadDoc.PostedFile.FileName); using (FileStream fs = new FileStream(filelocation, FileMode.Open, FileAccess.Read)) { objAudAuditReportMaster = objAudAuditReportBAL.UploadAuditReportDoc(fileName, fs, Session[“AudLoginID”].ToString(), audProcessName); } //Delete the file from application server. if (File.Exists(filelocation)) File.Delete(filelocation); //After that … Read more

[Solved] Number picker in custom listview changing number by itself

Custom_row.java : holder.numberPicker.setOnValueChangedListener(new NumberPicker.OnValueChangeListener() { @Override public void onValueChange(NumberPicker picker, int oldVal, int newVal) { View parentRow = (View)picker.getParent(); ListView mListView =(ListView)parentRow.getParent(); final int position = mListView.getPositionForView(parentRow); setPickerNumber(position,newVal); if(newVal > oldVal){ newValcount = newValcount + newVal – oldVal; } if(oldVal > newVal){ newValcount = newValcount + newVal – oldVal; } if(newValcount>0) { ProPay.setVisibility(View.VISIBLE); } else{ … Read more

[Solved] Bank Account iOS App Structure

The problem you’re facing is that you’re creating a new bank account every time instead of maintaining a single account and adding to it. In your original program you created an array of accounts acc that persisted during the lifetime of the user input. Since you’ve moved from a procedural program to a UI program … Read more

[Solved] Is there a way to combine Java8 Optional returning a value with printing a message on null?

Use orElseGet: Optional<String> startingOptional = getMyOptional(); String finishingValue = startingOptional.orElseGet(() -> { System.out.println(“value not found”); return “”; }); Using .map(value -> value) is useless: transforming a value into itself doesn’t change anything. solved Is there a way to combine Java8 Optional returning a value with printing a message on null?

[Solved] PHP Insert Table Data Code not Inserting Data into MSSQL Table [closed]

MSSQL doesn’t have a direct md5 function (you can convert it as demonstrated here). You need to use it through PHP like so: $sqla = “INSERT INTO users (username, password) VALUES (‘rob_dewar01’, ‘” . md5(‘KingDozer’) . “‘)”; Also, md5 is not secure. Look into using prepared statements. See the Secure hash and salt for PHP … Read more

[Solved] PHP/SQL Delete button for each row [closed]

You should use mysqli or pdo You have missed 3 points: fix your query: 1) make sure you have selected all required fields. $filme_cart = mysql_query(“SELECT * FROM cart_test GROUP BY name”); 2) Try using: mysql_fetch_assoc <?php while($film_cart=mysql_fetch_assoc($filme_cart)) { echo “<tr>”; echo “<td align=’left’>”; echo $film_cart[‘name’]; echo “</td>”; echo “<td class=”cart-product-setting”>”; echo $film_cart[‘price’]; echo “<a … Read more

[Solved] Android Eclipse not able to see older emulator in Android device chooser [closed]

Restart ADB (you can do this in the ‘DDMS Perspective’, or from the command-line). Command line to restart: adb kill-server adb start-server If the device is configured correctly (USB Debugging enabled, and the computers drivers installed) – it should show up. There are no issues I have encountered with the new tools where devices don’t … Read more

[Solved] why doesn’t my sorted code work in c? [closed]

#include <stdio.h> #include <stdlib.h> struct node { int data; struct node *nextPtr; }; struct node *firstPtr = NULL; void insertioon (int d){ struct node *np, *temp, *prev = NULL; int found; np=malloc(sizeof(struct node)); np->data = d; np->nextPtr = NULL; temp=firstPtr; found=0; while ((temp != NULL) && !found) { if (temp->data <d) { prev = temp; … Read more