Latest Posts

Its a link building technique for manipulation natural search results of Google and other search engines.

I do not think that directory submission makes any great impact on ranking unless it is of high-quality.

Your customers will naturally move towards your competitors if your web content is not attractive and perfectly optimized for search engines.

Yes, you are ought to continue SEO. It is a long term process.

I think you are close to the answer. My thought is to use your SELECT and a LIMIT 1 with the ORDER BY date with the DESC or ASC keyword as you see fit. Light reading at https://www.1keydata.com/sql/sqlorderby.html

Yes, your client has to parse the server's JSON to extract the relevant info (name of class to instantiate, values for its members)
The idea behind the JSON format is that it should be easy to parse (especially in JavaScript, for what that's worth). If you look closely you'll see that curly brackets indicate depth of nesting, and the contents are name and value with a colon between. You might want to see how Customer with list of Products is encoded to see fully how it works. Parsing is just a load of split and substring calls, with recursion for objects inside objects.
Once you have those values there's an interesting question: do you hard code the pasing and creating each class of object (easy but a lot of work with many large classes, and a maintenance nightmare) or do you use a generalised parser and reflection to build a generalised method to create any JavaBean from name:value pairs (not so easy, but you just do it once).

Yes, there's a lot of boring bits involved in the client encoding a request that server then has to decode, then the server converting a nice object structure into a text file, only for the client to have to do a lot of boring stuff to re-build the objects from the text. That's the downside of having a lowest-common-denominator data request/transfer format for general client/server apps that may be in any mixture of languages, maybe not even object oriented.

Hi sorry for the long delay, but sadly it might be like that for a little while.
So, I have a couple of questions following your last post.
OK about what you said, will try to do it just with plain java and no json object, that's fine and I will create the objects using the empty constructors and use the set methods, that's fine
However, in the client I have either the encoded request (restRequest) which looks like this:

Customer+1
Product+2

As they are a combination of the class name and the ID or the fully generated response (generateJsonResponse) which looks like this

{"Customer":{"id":1,"name":Customer_1}}
{"Product":{"id":2,"name":Product_2}}

The server is doing all the substringing, string splitting but it returns the fully generated response already.
Now, for me to create the Customer and Product object in the client I will need to know what type of object I need to create, the name and the id which I need to extract from either the encoded request or from the fully generated response, so does it mean that I will have to "parse" the server response string again and extract all the relevant info? The thing is, how do I split a resonse string like {"Product":{"id":2,"name":Product_2}} to get the bits I need?

Hello!

I have a question and I don’t know whether the title is actually descriptive.

For some background on the matter, we use Sage 50 as our merchandise information system and for our reporting and controlling tools we run Access queries. Since our database had been reset at some point I am missing some history data. I need to find the creation date for each article. But the only query covering the whole period since the beginning will return a table like that:

PK | ART | DATE
3262 | 000 | 17.05.2013
3262 | 000 | 23.01.2019
3150 | 0003 | 03.06.2013
3150 | 0003 | 23.01.2018
3150 | 0003 | 43.05.2019
(where PK is the article’s primary key, ART its article number and DATE the date of the last update)

The query looks like this:

SELECT *
FROM (SELECT sg_auf_artikel_history.SG_AUF_ARTIKEL_PK AS PK, sg_auf_artikel.ARTNR AS ART, sg_auf_artikel_history.AKTDAT AS DAT
FROM sg_auf_artikel_history INNER JOIN sg_auf_artikel ON sg_auf_artikel_history.SG_AUF_ARTIKEL_PK = sg_auf_artikel.SG_AUF_ARTIKEL_PK
GROUP BY sg_auf_artikel_history.SG_AUF_ARTIKEL_PK, sg_auf_artikel.ARTNR, sg_auf_artikel_history.AKTDAT)
ORDER BY ART, DAT;

How can I get the following result:

PK | ART | DATE
3262 | 000 | 17.05.2013
3150 | 0003 | 03.06.2013

That is, I only want for each article the oldest entry.

I’d appreciate your solutions!

Thanks in advance!

Holger

Hello,

I wanted to ask about web hosting. I am new here and I want to know what is the best virtual server for it?

What is the difference between Google Adwords and Google Adsense?

In this case I display values into datagridview from Projects table which it has only 2 columns:

PROJECT_NAME VARCHAR
ID INT // Which is hidden in datagridview, and as AUTOINCREMENT

I have already done with editing values in this table and it works fine:

`private void dataGridView4_CellEndEdit(object sender, DataGridViewCellEventArgs e)

               {
                   string name_project = dataGridView4.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();    

           string id = dataGridView4.Rows[e.RowIndex].Cells[0].Value.ToString();

       MySqlConnection connection = new MySqlConnection("datasource = localhost; port = 3306; username = root; password = ");
       MySqlCommand cmd = new MySqlCommand("UPDATE projekt1.projects SET PROJECTS_NAME = @PROJECTS_NAME WHERE ID = @ID", connection);

       cmd.Parameters.Add("@ID", MySqlDbType.Int64).Value = int.Parse(id);
       cmd.Parameters.Add("@PROJECTS_NAME", MySqlDbType.VarChar).Value = name_project;

       try
       {
           connection.Open();
           cmd.ExecuteNonQuery();
           connection.Close();
       }
       catch (Exception ex)
       {
           MessageBox.Show(ex.Message);
       }
   }`

But i have a problem with inserting new row and saving automatically in database.

What i've tried?

1) I've tried with RowValidated Event:

private void dataGridView4_RowValidated(object sender, DataGridViewCellEventArgs e)
     {
         string name_project = dataGridView4.Rows[e.RowIndex].Cells[1].Value.ToString();

     string id = dataGridView4.Rows[e.RowIndex].Cells[0].Value.ToString();

     MySqlConnection connection = new MySqlConnection("datasource = localhost; port = 3306; username = root; password = ");
     MySqlCommand cmd = new MySqlCommand("INSERT INTO projekt1.projects(PROJECT_NAME) VALUES(@NPROJECT_NAME);", connection);

     cmd.Parameters.Add("@ID", MySqlDbType.Int64).Value = int.Parse(id);
     cmd.Parameters.Add("@PROJECT_NAME", MySqlDbType.VarChar).Value = name_project;

     try
     {
         connection.Open();
         cmd.ExecuteNonQuery();
         connection.Close();

         MessageBox.Show("ok");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }

     try
     {
         connection.Open();
         cmd.ExecuteNonQuery();
         connection.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }

     `Inline Code Example Here`

But it didn't work because of

System.FormatException: "Invalid input string format."

2) I've tried that UserAddedRow event too(which will be in code snippet).
but then have that exception in below:

System.NullReferenceException: The object reference has not been ...

I see the short answer but this would be after a few chapters in a book or later in your school coursework. No book or class has you write this without building up to this assignment. So tell more about how you arrived at having to do this without the precedind work or chapters.

The short answer is to learn C++. You'll likely get a longer answer if you put more effort into doing it yourself first. In the mean time, read the Daniweb Posting Rules and Suggestions For Posting Questions.

How can I write a C++ program that lists all students whose CUMMULATIVE SCORE is K or higher?

def is_prime(k):
    for u in range(2, (k // 2) + 1):
        if k % u == 0:
            return False
    return True

Are you an excited and motivated back-end or front-end developer making your first steps, but you can’t find an opportunity to gather experience hone your skills or try out new, innovative technologies and tools? Do you want your code to make a difference and help millions of people around the world to interact better with ecommerce? Then join our project and start coding along with the most delightful and visionary tech startup!

Who we are:

We are a team of university students who see a problem in people’s online purchases process and want to provide a solution. Our vision is to change the way customers interact with ecommerce and make online choices much easier and trustworthy.

The way we’re doing that is through a platform that uses our unique, innovative algorithm to transform users’ needs to meaningful and helpful outcome. The users don’t need to have any specific knowledge about the product’s mechanics or tech specs; WE take care of that.

What you’ll be doing with us:

If you decide to join our awesome team, you will become part of a entrepreneurial fellowship where each and every one of us support and help one another. We’ll give you access to all the tools and technologies we’re using and help you on every step along the way.

Your main tasks will be vital to our product’s improvement. Here are some day-to-day examples:

  • Database refactoring
  • Data validation & enrichment
  • API creation and maintenance
  • Webpage ...

You have four lists. One is the master list and the others are specialty lists. There is no guarantee that a person will be added to anything but the master list, and may be added to only one of the specialty lists. However, when you do a create_assignment, you remove the person from every specialty list. I suggest you either test to see if the person is in a list before doing the remove, or put each remove into a try/except block. Probably more concise if you just do the test.

if micleft_assign in mic_list:
    mic_list.remove(micright_assign)

To add to my reply about a team. There are teams that you don't hire. Look here and DANIWEB has folk that team up to help out.

The story of software apps and games where there is a team that is unpaid repeats quite often.

As to myself, I've been on both types of development and can share my preference for a solid team. Doesn't matter if they are paid at first or not, it's the people and skills of the team that can really make it work.

That said, I've also seen the lone developer struggle, not add anyone to their team and years later still struggling.

Dani 1,760

Hiring a team from the beginning is a horrible and excruciating expensive business strategy. First find product-market fit. This means creating a minimally viable product and proving that there is interest in using it. If you don’t have the skills to go it alone, outsource to a small dev team or consulting firm. But, please, do not hire a team. Your business is too immature to know exactly what aspects will be most time consuming, the difficulty level of each component, who the first hire should be, or even what skills to look for. Otherwise you may find yourself hiring a bookkeeper only to find out months later that invoicing and accounts receivable only takes an hour a week.

To me that's team building. You need people to join your endeavor that have background in those areas or a "product manager" that sources what you need. If you go it alone, you may take longer as you learn how to develop products. Teams make it possible to reduce that time. And if you don't want to be a product manager then you get one of those too.

Dani 1,760

He’s not asking for an app to be written for him or for us to do all the work. He has an idea and wants some advice on what next steps could be.

I’m on my phone so I’ll follow up with you a bit later. In the meantime, letting us know your level of experience in programming would be helpful to helping me to fine tune a response for you.

This is your third post asking us to do all the work for you. Please read the Daniweb Posting Rules and Suggestions For Posting Questions before posting again.

Howie Mandel in his early stand-up comedy days.

  1. OK. Now we're going to do some improv.
  2. Give me an occupation.
  3. Give me a place.
  4. Give me a location.
  5. Now give me some funy things to say.

If you want help with something specific then post a specific question. Don't ask us to do all the work for you.

Good Morning All, I am looking to develope a new product and I am needing software, hardware and an app developed. I have no idea where to start and I thought I would reach out for advice.

Reverend Jim commented: Lazy. -3
Member Avatar
Antika2165

Write a shell script to create a directory called “page1” and ask the user if he/she wants to copy a file to TESTING directory.
You should find out that the file has read, write and execute permission. If the file has write permission then copy the file to the directory; denied otherwise.

Suppose we have a file called ‘WelcomeHome’ with 100 lines of hotel names, each name on a line. Write a script to print the hotel names from line number 20 to line number 30 inclusive. Store the results in a file called ‘ListNumbers’. Sort the file in alphabetical order.

Reverend Jim commented: Lazy AND rude. -3

Hello. So I had to make this program that:

  1. User enters a value (say, ID number) in a textbox, presses search, then the program searches for that particular item on a table and then copies all the row data where that ID number is.
  2. Then pastes those copied data on another table in Access, then displays it on a datagrid

Thanks. Im new so I haven't made up code yet :(

So I have this for a sound crew to select jobs for workers based on the training they have recieved. My code allows you to add workers to the list and set what jobs they are allowed to do through use of inputs. The second Function then randomly creates job assignments for people based on the parameters in the first function. I would like to be able to have people selected, with no repeats, and preferably without permanently deleting people from the lists, so that the lists can be saved permanently.
With the current code i get the error ValueError: list.remove(x): x not in list.

What do you think I am missing guys? Thanks for all input!

import random

my_list = []
stage_list = []
mic_list = []
sound_list = []

def addto_list():
    addto = input()
    stage = input("Can he do stage?(y/n): ")
    if stage == "y":
        stage_list.append(addto)

    mic = input("Can he do mic?(y/n): ")
        if mic == "y":
        mic_list.append(addto)

    sound = input("Can he do sound?(y/n): ")
        if sound == "y":
        sound_list.append(addto)

    my_list.append(addto)

def create_assignment():
    stage_assign = random.choice(stage_list)
    stage_list.remove(stage_assign)
    mic_list.remove(stage_assign)
    sound_list.remove(stage_assign)
    print("Stage: " + stage_assign)

    micleft_assign = random.choice(mic_list)
    mic_list.remove(micleft_assign)
    stage_list.remove(micleft_assign)
    sound_list.remove(micleft_assign)
    print("Left Mic: " + micleft_assign)

    micright_assign = random.choice(mic_list)
    mic_list.remove(micright_assign)
    stage_list.remove(micright_assign)
    sound_list.remove(micright_assign)
    print("Right Mic: " + micright_assign)

    sound_assign = random.choice(sound_list)
    print("Sound: " + sound_assign)

While you would need an attorney to weigh in I think https://github.com/PhilJay/MPAndroidChart/blob/master/LICENSE covers the licensed use very well as it looks to be the bog standard Apache 2.0 license.

Lines 123 to 128 are interesting as it may impact what you write in your own license agreement. Remember that I did not read all 201 lines but you should.

PS. As to your top question I could spend a day going over that question but given no one can code it all, you should use code and content so you can build your apps. Imagine trying to start over from say a single board computer, assembly language to OS to apps written all by you. While I applaud such efforts, at some point we have to move beyond "I wrote every line of code."

@James, is there a way we can know whether the license allow us continue to use?

My thought is one leaves space in the form and the other does not.