199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lk123456

Hi, WebSQL has been deprecated but it is still useful for some applications at this time. How would I update a row of data saved into WebSQL, when using a foreach KnockoutJS binding? <table class='producttable'> 2. <tr> 3. <th>Name</th> 4. <th>Description</th> 5. <th>Price</th> 6. </tr> 7. <tbody data-bind="foreach: products"> 8. …

Member Avatar for lk123456
1
829
Member Avatar for lk123456

Hi, How would I save the data inputted into a list into WebSQL, when using a foreach knockoutjs binding? <table class='producttable'> <tr> <th>Name</th> <th>Description</th> <th>Price</th> </tr> <tbody data-bind="foreach: products"> <tr> <td> <input data-bind='value: name' /> </td> <td><input data-bind='value: description' /></td> <td><input data-bind='value: price' /> </td> </tr> </tbody> </table>

Member Avatar for lk123456
1
385
Member Avatar for Pablo149

Hey there everyone, I have been a computer programming instructor for several years now. I like helping my students, but every year, they are the same age, and have generally the same skill set. So yes, I'm getting bored: it just feels like doing the same thing year in year …

Member Avatar for Hiroshe
1
233
Member Avatar for ddanbe

I you ever would have the need to do this conversion you probably would use `string myStr = Convert.ToString(myInt,2);` which does the job. Here is presented another way to do this with some simple formatting included. Some highlights for newbies and not so newbies: Line 9: Custom enum type Line …

1
292
Member Avatar for Tycellent

Hey Guys, Was wondering if anyone could help me with this sort function for a vector of struct type. What i'm aiming to do is to make a score board being based on a player's score and print out the scores (along with the name) in descending order. I've looked …

Member Avatar for Tycellent
1
452
Member Avatar for surya55

Hi everyone, consider below code: interface i{ void test(); } class A implements i{ void test(){//code goes here} } class B implements i{ void test(){//code goes here} } here,we can implement method straightaway in class itself, without using interface like, class A{ void test(){//code goes here} } why we want …

Member Avatar for ~s.o.s~
1
230
Member Avatar for niccid76

I am new to Java programming and I am struggling and I need help understanding how to write this code for writing a statement public method called calculate interest that accepts account balance and interest rate as arguments. This method should calculate and return the interest by multiplying the two …

Member Avatar for Taywin
1
218
Member Avatar for dickersonka

A common question that routinely comes up is how to share data between forms. I have outlined two common ways to pass data between forms, among many others. I have used a public property on the output form to accept a value and update the display. I also have a …

Member Avatar for jamespello
1
2K
Member Avatar for Katangka

Hello! I've seen a thousand dicsussion about how to make an .exe file from your .cpp source code, but none of it seems to help me: since I have the .exe file, I just can't run it on any other computer. Can anybody help me out, what libraries should I …

Member Avatar for misi
1
10K
Member Avatar for kalidas.rajendran.1

i am lookng for some sample c coding for fuzzy logic, can anyone help me in developig fuzzy logic in c,.. i had developed my fuzzy rules in matlab, now i hav to develop the c coding for the developed model, can anyoe help me in developing the c code, …

Member Avatar for nelsonfaboan.rios
1
2K
Member Avatar for rafaelbelliard

This simple but extremely useful trick explains how to hande a radiobutton within an ASP.NET gridview, without having to fiddle around with the sometimes cumbersome beast that javascript is. To avoid postbacks, we'll be using ASP.NET AJAX's updatepanel. Basically, the logic is grabbing the sender (ie, the radiobutton checked), disabling …

Member Avatar for h4ng4r18
1
591
Member Avatar for accra

Hey guys, i found this piece of code that is suppose to read a port on my server and write to a .txt file the gps data it get gets. am receiving nothing, am not not sure what the problem is, also am new to gps and php socket programming... …

Member Avatar for accra
1
915
Member Avatar for fariba123

i have a form with multiple checkbox. how to get the values that are checked. pls give a quick reaply. thanks

Member Avatar for bhagyashree.bhatt2
1
1K
Member Avatar for anuradha71

THIS IS MY CODE.... bUt i am not getting the data between the given dates IN THE DATAGRID VIEW Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ConnString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= C:\Users\Anand\Documents\db.accdb" Dim dfrom As DateTime = DateTimePicker2.Value Dim dto …

Member Avatar for pritaeas
1
264
Member Avatar for safi.najjar1

Hello Guys I want to insert into two tables with one query in mysql the first table contains a primary key and other stuff the second table contains a foreign key and other stuff I'm wondering how this would happen ? and if so how would be the query of …

Member Avatar for catalinetu
1
270
Member Avatar for Vagabond

The user is asked to input a number in either Hex, Octal or Decimal, which is then converted to Hex, Octal & Decimal. The user can exit the program from the MAIN MENU or by the Escape key after each convertion. Compiler : Borland Turbo C++ v4.5.

Member Avatar for pritaeas
1
1K
Member Avatar for thegreymatter

Hi recently while trying to solve a core Java algorithm question I got trapped into a problem. Let me explain the puzzle. > There is a series of numbers. where difference between any consecutive > numbers is either a or b. The 1st number of the series is 0. Our …

Member Avatar for JeffGrigg
1
1K
Member Avatar for mcdczzz

can anyone help me?..i trying to make a very flexible report according to a search Results...i use vb6 and ms access as database...

Member Avatar for Hiroshe
1
227
Member Avatar for Gribouillis

This snippet defines a function [icode]mousepos()[/icode] which gets the mouse position on the screen. The package python-xlib is required.

Member Avatar for woooee
1
6K
Member Avatar for happygeek

Bugs are, and always have been, a fact of life for the software developer. However, if Microsoft researcher Andrew Begel has his way, they could be a thing of the past. Last month a paper entitled '[Using Psycho-Physiological Measures to Assess Task Difficulty in Software Development](http://research.microsoft.com/apps/pubs/default.aspx?id=209878)' was published which Begel …

Member Avatar for Hiroshe
1
299
Member Avatar for ivan3510

Hi! So, I made this code #include<iostream> #include<cstdlib> #include<pthread.h> using namespace std; const int m=6; const int n=5; const int s=5; const int r=8; const int num_thrd=3; class data{ public: int* A; int* B; int* C; int start; }; void* multiply(void* pod) { data* P=(data*)pod; for(int i=P->start;i<m;i+=num_thrd) { for(int j=0;j<r;j++) …

Member Avatar for ivan3510
1
214
Member Avatar for vegaseat

The Fibonacci series of numbers was used by Leonardo of Pisa, a.k.a. Fibonacci (around the year 1200), to describe the growth of a rabbit population. The series has been noted to appear in biological settings, such as the branching patterns of leaves in grasses and flowers. We take a look …

Member Avatar for Stefan_3
1
2K
Member Avatar for vegaseat

Because of their demand only nature, generators are ideal for finding the combinations of larger sequences. This code applies a Python generator to find the combinations of the sequence. Since permutations are a special case of combinations for all the items in a sequence, I have expanded the result to …

Member Avatar for Stefan_3
1
439
Member Avatar for iamthwee

In this tutorial I am going to go over a brief history of artificial intelligence. Let's begin. **The Beautiful Equation** ![a0ac936120a8fa20eba9c2f4891766f5](/attachments/large/0/a0ac936120a8fa20eba9c2f4891766f5.png "a0ac936120a8fa20eba9c2f4891766f5") OK I agree, it's a bit heavy to begin with but towards the end we will see why the above equation is, in my opinion, of great importance …

Member Avatar for mike_2000_17
1
412
Member Avatar for deceptikon

I love barcodes. In my line of work (image processing and document imaging), barcodes play an integral part in high quality automation. As such, I've developed code from the lowest level of encoding and decoding barcodes up to using a number of libraries for working with barcodes. The biggest problem …

Member Avatar for deceptikon
1
2K
Member Avatar for mgold

I love the idea of dependency injection. I started doing psuedo dependency injection on my own before I knew about DI because I was frustrated programming without it. I then discovered Guice. From a program design point of view, I like it a lot. Everything is much more decoupled and …

Member Avatar for JeffGrigg
1
295
Member Avatar for Zsolt Szücs

I have basic experience in the topic, enough for smaller projects but I would like to improve my knowledge. I would highly appriciate any source about good practices (I have hard time to decide whether a solution belongs in the "good practice" or just in the "good enough to use" …

1
144
Member Avatar for philosopher779

This is my first post on Daniweb so forgive me if I make any mistakes. Introduction: I recently graduated from Dev Bootcamp. It is an accelerated 9-12 week camp which teaches Ruby and Rails. A traditional computer science degree will teach students algorithms, data structures etc before moving onto higher …

Member Avatar for Dani
1
385
Member Avatar for Kellypyz

hello everyone, i have a datagridview filled with a dataset and i want to store all the records it has to new table in database. i added a new column,("pos") to a dataset that fills the datagridview through a query so that it ranks records based on a field (total).my …

Member Avatar for cgeier
1
254
Member Avatar for iConqueror

Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster: #include <algorithm> #include <ctime> #include <iostream> int main() { // Generate data const unsigned arraySize = 32768; int data[arraySize]; for (unsigned c = 0; …

Member Avatar for ~s.o.s~
1
371
Member Avatar for iConqueror

I have a home project that I am working on that manipulates the network cards state ie on or off. I have already completed this usinng WFA, it runs with batch scripts that takes the adapters name and sets its state. However doing it through batch scripts, If I wanted …

Member Avatar for pritaeas
1
282
Member Avatar for Bharadwajcvrg

Hi Team, I am trying to enable only the upcoming 2weeks i.e from current week friday to the second week thursday. For example: today's date is 25th so the upcoming friday will be 27th. So I would like to enable the date from 27th Friday June to July 10th Thursay. …

Member Avatar for DJBirdi
1
240
Member Avatar for ultmt.punisher

I am wondering how can I multiply an element value by selecting from `<option>` tag? for example I have a `<input type='text' value='9'> text tag` or `<span>9</span> tag` and I want to multiply its value by selecting option tag likewise <select name="" id=""> <option value="1/month">1/month</option> <option value="2/month">2/month</option> <option value="3/month">3/month</option> <option …

Member Avatar for ultmt.punisher
1
1K
Member Avatar for iConqueror

1. What is the common language to write for a handheld gps? 2. How are they written to communicate with satellites? Generally speaking, in IT most devices are programmed to communicate with ground devices (on earth) but what methods are used to be able to communicate with satellites?

Member Avatar for Hiroshe
1
171
Member Avatar for msnathan72

Ok so I have an Algorithim Verification assignment I need helpfiguring out this is my first time to daniweb and I have heard nothing but great feedback from my peers! I have to have in by Friday 12/5 Answer the following questions about the information in Appendix J: o What …

Member Avatar for rubberman
1
124
Member Avatar for Raymond_4
Member Avatar for iConqueror
1
185
Member Avatar for guideseeq

What is the difference in: Set<Object> linksSet = new LinkedHashSet<Object>(); LinkedHashSet<Object> linksSet = new LinkedHashSet<Object>(); Actually, I want to create a Set, that would hold the objects in the same order, I insert into it. Many thanks for the help, in advance.

Member Avatar for guideseeq
1
243
Member Avatar for iamthwee

I have a doubt with my codeigniter .htaccess file. I was hoping there was something I was missing. My question is I need a different .htaccess file for my live server and one for localhost. Locally, I'm using macos and linux, on my live server I am using centos with …

Member Avatar for veedeoo
1
2K
Member Avatar for Mushy-pea

Hi. I've developed a bit of an interest in encryption as well as programming in Haskell since I last used this forum. So I decided to build a symmetric block cipher and test its properties to gain more of an understanding of such things. This is for research purposes as …

Member Avatar for Mushy-pea
1
304
Member Avatar for himanshu.1691

i tried to mimic the code of a tutorial for a live updatable table....dat is connected to the MYSQL server .... i copied it and edited it a bit...but its not working... i was not able to understand the code so dont knw where the problem is here is the …

Member Avatar for nikkitata
1
1K
Member Avatar for Reverend Jim

In true Microsoft fashion they have made the download process so counterintuitive that your chances of getting what you want is near impossible. Fortunately someone has created a "simple" [12 step process](http://www.istartedsomething.com/20140616/the-12-step-process-to-download-microsoft-sql-server-express-2014/). For yuks, see also [here](http://www.istartedsomething.com/20121216/downloading-sql-express-2012-from-microsoft-com/). And to see how little things have improved see [Bill Gates Chews Out …

Member Avatar for Reverend Jim
1
520
Member Avatar for jKidz

Hi All, As usual I here with a PHP & MySQL problem. Most of you know, I am developing Music Download system. Today I have created Widget to display last 5 songs. <?php include('datab.php'); $get = "SELECT * FROM `songs` ORDER BY `id` DESC"; $getres = mysql_query($get) or die(mysql_error()); if(mysql_num_rows($getres)> …

Member Avatar for hericles
1
190
Member Avatar for imchivaa

Hi there, I searched a lot and all the thread i viewed isn't solving my problem. I don't what's wrong with my code. First of all, i am kinda new to android programming as i just recently move from web programming to android programming. I have a listview and it's …

Member Avatar for imchivaa
1
1K
Member Avatar for Reverend Jim

Sometimes you want to add a little functionality to an existing class but you don't want to go to the trouble of sub-classing. A technique that you can use is known as **Extending**. For example, I frequently use regular expressions when working with strings. Wouldn't it be nice if strings …

Member Avatar for ddanbe
1
381
Member Avatar for BogdanCov

Hello, guys, I encountered a big problem. There is a genereted matrix of buttons: private void Single_Load(object sender, EventArgs e) { //code here for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { //a lot of working code here b[i, …

Member Avatar for BogdanCov
1
221
Member Avatar for arunkumars

Hi all, We are using TortoiseHg(Mercurial) as a sub version control in our project currently, we are now planning to migrate the sub version control to TFS 2013. 1. is this possible without the loss of any revisions that are exisitng. 2. is this possible without the loss of any …

Member Avatar for pritaeas
1
136
Member Avatar for slyme

Hi Everybody, I hope someone can help with this, it's taken so long to get this close but I just can't figure out the last small (but show stopping) detail. I start with a string of text and a font-face entered/selected via a form. I am using imagettfbbox to determine …

Member Avatar for diafol
1
1K
Member Avatar for hwoarang69

# What I am using: # I am using java & libgdx to create a game in desktop & android. # Error: # Could not find class 'com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator', referenced from method com.aa.GameStates.MainMenu.init so on desktop version, everthing work fine and no errors. Problem is when I run it on android. …

1
185
Member Avatar for laguardian

Hey guys! So I'm writing a code that takes 10 numbers from the user which is stored in a array. The user then inputs the problem number (1 or 2) depending on what they want to do to the array. Unfortunately, I'm getting and error on line `array[i].prob1(); `.. Here's …

Member Avatar for laguardian
1
242
Member Avatar for Brent_1

Microsoft ASP.NET MVC is arguably one of the most flexible frameworks for building modern web applications. One of the things that I've noticed over the last couple of years is that with many AJAX applications using Restful web service, many MVC controllers are now almost redundant. Using the default MVC …

1
218

The End.