Latest Posts

Can someone explain me how can i check if an answer is right from question in files with python. In my files there are questions with three answers and among them one is the right one and the others are wrong. Users have to click on button to answer. Please help me.

How about something to manage Users... logon, password verification, privileges/authorisations, preferences etc
You could have it as a API then optionally layer a GUI on top.

Hey, welcome to DaniWeb. Hope you find the connections and any help you are seeking...

A little light on details but here's a trick I used long ago. To make a service available to just about any language app I set it up as a miniature server or service. You would connect to it via IP, send your query string much like SQL and the answer would come back on the same pipe.

Whether this applies or not is something I can't guess given what has been revealed so far.

I want to develop a piece of software that other developers can use in their projects. It has to be active at runtime however, and perform some standard functionality every time the application runs. It is essentially software that provides extra functionality to the application developer and its users...

I'm not sure how I might do this, and my google-fu has not been strong enough to find a definite answer.

Welcome to Daniweb.

Dear members - I'm Vani Sharma and doing my graduation. Also, I'm learning Python and data science.

In keeping with tradition, Microsoft has released the latest update before resolving a number of outstanding issues. But at least they now provide a more centralized location for getting update information. The home page (dashboard) can be found here and the specific page for the latest update can be found here.


I have a form which consists a dynamic dependent dropdown and I want to maintain the entered data into the fields after the form is saved or edited.

For an example:
<input type="text" name="serial" value="<?php echo $serial;?>">

Similary i need to get the value in my dropdown as well. Hope there is a solution for this. Below is my code.

$(document).ready(function() {
    $("#brand").change(function() {
    var Brand_ID = $(this).val();
    if(Brand_ID != "") {
        success:function(response) {
          var resp = $.trim(response);
    } else {
      $("#model").html("<option value=''>----Select Model----</option>");
    $Connection = mysqli_connect('localhost','root','','sris');

<form class="form-horizontal style-form" action="update.php" method="post">
<div class="form-group">
        <label class="col-sm-2 control-label">Brand</label>
    <div class="col-sm-4">
        <select name="Brand" id="brand" class="form-control" value="<?php echo $Brand; ?>" >
                        <option value=''>----Select Brand----</option>
                                $sql = "select * from brand";
                                    $res = mysqli_query($Connection, $sql);
                                        if(mysqli_num_rows($res) > 0) {
                                    while($row = mysqli_fetch_object($res)) {
                                        echo "<option value='".$row->ID."'>".$row->Name."</option>";

        <label class="col-sm-2 control-label">Model</label>
    <div class="col-sm-4">
        <select name="Model" id="model" class="form-control" value="<?php echo $Model; ?>" >
            <option>----Select Model----</option></select>
                if(isset($_POST['b_id'])) {
                  $sql = "select * from model where Brand_ID =".mysqli_real_escape_string($Connection, $_POST['b_id']);
                  $res = mysqli_query($Connection, $sql);
                  if(mysqli_num_rows($res) > 0) {
                    echo "<option value=''>----Select Model----</option>";
                    while($row = mysqli_fetch_object($res)) {
                      echo "<option value='".$row->ID."'>".$row->Name."</option>";


i am currently working on a python program that remote controlls multiple computers at once, as if they were multiple screens of one computer.

one of the features of this program, is that the server controlling all computers, builds a map from screens, and including its own - server screen.
But when the server controlls its own screen, a recurtion effect starts, because it takes screenshots of the screenshots it show on the screen, and so on..

Here's the rough code of the screen capture i use (With PIL)

def capture_screen(self):
    screen_contents = ImageGrab.grab()
    size = win_width, win_height
    screen_contents = screen_contents.resize(size, Image.ANTIALIAS)
    screen_image = ImageTk.PhotoImage(screen_contents)
    self.screen_displayer.config(image = screen_image)
    self.screen_displayer.image = screen_image
    self.screen_displayer.grid(row = 0, column = 0)
    #update display
    self.master.after(200, self.capture_screen)

Is there a way to make my screen capture ignore the active frontal window, and give a shot of everything except for it?

p.s- I found a discussion about this topic, but couldn't find a solid solution. only theories.
the link -

If anyone could help it'd be greatly appreciated.
Thanks in advance,

cPanel is used by many major hosting companies and it offers the ability to move hosting accounts from one host to another with ease. Also it is very popular and most customers know and understand how to use the control panel. When customers are looking for a new company they don't necessarily want to learn a new control panel. I have been using cPanel for several years now and I can say that they do provide outstanding support when needed. You will not receive such important features from a free control panel.


Yes my thoughts as well

Yep,create your own website and start publishing it.

Usually there won't be any problem with Bluestacks .

rproffitt commented: Yup, there is a problem with Bluestacks. Look up to see where it is. -3


Hi. Im doing a login form with decryption. So i did a modification to my login code for decryption. Before i did the decryption, the login form is functioning well. But after i edit it to insert decryption code it suddenly cannot connect to database. Im still a begginer in so maybe there is something that Im missing because there is no error in the code so I dont know where did I do wrong.

Here i put decryption code(just in case) and my login code
Decryption Code

 Private Function Decrypt(ByVal cipherText As String) As String
        'Firstly the encrypted text i.e. cipher text is converted into bytes and then similar to the encryption process here too we will generate Key and IV using the derived bytes and the symmetric key.
        'Using MemoryStream and CryptoStream the cipher text is decrypted and written to byte array and finally the byte array is converted to Base64String and returned, which is the decrypted original text.
        Dim EncryptionKey As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"
        Dim cipherBytes As Byte() = Convert.FromBase64String(cipherText)
        Using encryptor As Aes = Aes.Create()
            Dim pdb As New Rfc2898DeriveBytes(EncryptionKey, New Byte() {&H49, &H76, &H61, &H6E, &H20, &H4D, _
             &H65, &H64, &H76, &H65, &H64, &H65, _
            encryptor.Key = pdb.GetBytes(32)
            encryptor.IV = pdb.GetBytes(16)
            Using ms As New MemoryStream()
                Using cs As New CryptoStream(ms, encryptor.CreateDecryptor(), CryptoStreamMode.Write)
                    cs.Write(cipherBytes, 0, cipherBytes.Length)
                End Using
                cipherText = Encoding.Unicode.GetString(ms.ToArray())
            End Using
        End Using
        Return cipherText

Login Code**

 Private Sub SubmitButton4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubmitButton4.Click
        'Check ...

I need to check the validity of the URL to different files without opening the link document/image. I used the below code in 4.7.2 in validation attribute. The current code is as follows : (working fine with jpg)

public override bool IsValid(object DocumentURL)
            string urlLink = (string)DocumentURL;
            WebRequest request = WebRequest.Create(urlLink);
            return true;
            return false;

This works for images but failed when I sent a link to xls file. The error message is :

       "The request entity's media type 'text/plain' is not supported for this resource"
No mediaTypeFormatter is available to read an object of type 'W_Document_URL' media type 'text/plain'."

This looks like my function is trying to open the document. I need only to check the existence of the URL document but does not need to open it. Also if I need to restrict the documents to images(jpeg,png,bmp) and pdf, what is the best way to limit that inside this function?

Dani 1,745

Sorry I'm confused by your question.

You created four select boxes: one asking to select state, one district, one city, one town. You want to change the other three each time you change the state select box, is this correct?

I think what you're asking is similar to what we do at where, based on the forum selected, the topic types change. For example, if you select a programming forum, posting a code snippet is an option, but if you select a hardware forum, for example, a code snippet is no longer an option.

Do you have any experience with jQuery? I see you tagged this thread AJAX. Are you needing to retrieve the items from the select box dynamically or can the list of all possible combinations exist in the JS file?

I really need to not post when it's late. My grammar was terrible. Sorry about that.

What I was getting at was while you have the dev kit today and even in a VM, your successor may not. Moving up can be cheap if you can use the Community versions of Visual Studio.

As to legacy apps, even I am stuck with a few VB6 apps that I got the client to pay up for a jump to making them install and run on W10. Using the web I found out how to get VB6's development system up on W10. This was crucial to figure out what else had to change in the app so it would install and run without having to resort to a VM or other tricks. As in natively on W10.

I did encounter a very odd issue that I noted at which is only there so others might not have to work out that bug.

Good luck in your efforts.

NodeJS & MYSQL are the BackEnd part or processing part of the App

white ReactJS provide the Front End or View part to the App. To integrate all these, best way is to create API with NodeJS+MySQL and use it in the ReactJS app

I wront a similar answer at hashnode: where I explained how to use these all together.

You above script is good, but it dones all operations i.e. CRUD at onces. To make it useable from Front end, you need to make API endpoints like /posts, /posts/100, /users, /users/pankaj etc. And then respond as per the request.

Have you set the redirect-url correctly while setting up the payment gateway? as you mentioned 404, that means CCAvenue sent you successful payment response but is not under your control or something not defined.

I would recommend to use

Here in this library;

$ccavenue = new CCAvenueClient( '<merchant_id>', '<working_key>', '<redirect_url>' );

redirect_url should be the URL of your ccAvenueResponseHandler.php

Simplest way to use svg fime in HTML is to use it with img[src] tag likea regular Image.

If you wanna go advanced, you can paste the SVG code as well in the HTML (except the xml namespace part) and style with CSS; as almost all the components of SVG are CSS designable.

The use case with div; you can put the SVG as baackground-image and control the size by background-size and other related CSS properties.

Have you tried Postman, the collections are the cool way to organize API endpoints and provide a testing way.

It can also be your API testing tool


Oh trust me I know. The reason why I'm going back to these days of coding is because we are seeing an uptick in malware written in these languages. Moreso VC++ 6.0, VB5-6. I'm pulling some old malware samples I've written and turning them into learning tools so that I can deliver what others need to pull regarding IOC's

vb5-6 I have a lot of code to fall back on. VC++ 6.0 wasn't my strong suit so that's why I posted the question.

In all actuality I still have my MSDN 6.0 still on my RAID. I have the environment installed in a VM for this purpose. PSC has been a good resource too. -=]

Here's some pseudo-code to point you in the right direction

    get two random numbers 1-6
    sum  them together
while( the sum is not 7 or 11)

Hai Frds,

My question is i have create select box using state,district,city and state box click add option select box change text box add/edit in text box add tha value save in state select box. How do please help me

PS. Smart Phones SHALL NOT let any old Bluetooth connection control the phone natively. If it does either over Bluetooth or USB that is now called a security breach. Just last year this article at brought this up.

Why this matters? Mostly because folk might plug in their phone to some free charger or allow a Bluetooth connection and well, game over.

You've changed the spec. You lead with one goal, changed the goal and still have many missing details.

On top of that, I don't see an API to do what you asked so you might have to write an app for the (unknown) phone that your PC app tells the app on the phone to dial that number.

Sounds like a good project for a new programmer to find out about coding for phone and PC!

Thanks for your reply
Actually i made an application for the school teachers information where i work using VB.NET . So when you search about a wanted teacher a page containing his information will be shown .. one of those fields in the page is a phone number .. i want to put a button once this button clicked it will call that teacher by phone paired with this pc by bluetooth
Thats all

The most common source of this issue is skipping the lessons. Go back through the tutorials since good classes and tutorials build up to the assignment. Skip a chapter and it's like an Ikea kit missing a component.