Member Avatar

I'm new to vb.net I wan to to make a retrieval of image into picturebox. This is my code: *All declaration has been initialize* Cmd= New sqlcommand ("select * from tblretrieveimages", con) dt= New DataTable sda = New sqlDataAdaptar(cmd) sda.fill(dt) Texbox1id = dt.rows(0)(0).tostring Texbox1name = dt.rows(0)(1).tostring Texbox1des = dt.rows(0)(2).tostring Dim img() as byte img()=dt.rows(0)(3) Dim ms as New system.IO.Memorystream() Picturebox1.image = image.FromStream(ms) But whenever i make query, I'm still getting error, indicating the "Parameter is not Valid"!!!

Member Avatar
+0 forum 1
Member Avatar

hi good day guys, i'm having a trouble with fetching the data i have a list of folder outside like in the picture below ![p1.png](/attachments/large/4/c49da0c2676b0f2d0f5d9acb7afc68bd.png) when i click the first folder the picture below shows the output it has duplicates ![p2.png](/attachments/large/4/9e1c201e5a2edfed6e83663b41116db6.png) i want to know what's the problem with my code why it duplicates the folders. can someone help me out. please... thank you in advance here's my code ![c2.png](/attachments/large/4/5bdfa3d4496764c67c4a61192d59de0d.png) ![c1.png](/attachments/large/4/6d5667c4f98cdcdd9487afb945c6278d.png)

+1 forum 0
Member Avatar

I need to make a custom adapter extending the baseadapter class. Does the code for extending the Baseadapter go inside of the oncreate method? Because no matter where I put it I'm getting errors and don't have any other code in my MainActivity yet.

+0 forum 0
Member Avatar

I have been 2 player programming othello. The program checks for possible areas to place piece "O" and flips pieces. I have got the code for "X" ready too but I can't get the program to switch to player2 "X" and execute code associated to it. Can someone help? class Grid { private int p1numberofmoves = 0; private int p2numberofmoves = 0; private const int BOARDSIZE = 9; private const string White_piece = "X"; // computer piece private const string Black_piece = "O"; // player piece private const string Player2 = "X"; private const string Player1 = "O"; private const …

+0 forum 0
Member Avatar

hello everybody im trying to compute the log(n) while n in the first time =10 and second time =100 , third =1000 and fourth = 10000 but an error still happenening the error is math domain error can anybody help in this code and error import math import logging n = 0 while n <= 10: print(math.log(n)) n = n + 1

Member Avatar
+0 forum 2
Member Avatar

I am still learning PHP and was wondering so don't shoot me down and was wondering why I would get the following error message? 2020-02-01 16:11:14 Error: [InvalidArgumentException] Invalid data type, must be an array or \ArrayAccess instance. Request URL: /auth/signin Referer URL: https://urlsize.com/auth/signup Which then returns "Error: An Internal Error Has Occurred." to the user. The code which I believe is at fault is: public function signin() { if ($this->Auth->user('id')) { return $this->redirect('/'); } $user = $this->Users->newEntity(); $this->set('user', $user); if ($this->request->is('post') || $this->request->query('provider')) { $user = $this->Auth->identify(); if ($user) { $this->Auth->setUser($user); $_SESSION['Auth']['domains_auth'] = 'none'; $multi_domains = get_all_multi_domains_list(); $main_domain = …

Member Avatar
+0 forum 3
Member Avatar

Hi. Google Search Console inform us like this: Referenced AMP URL is not an AMP We do not know what that information is. Can please anyone help? My website is https://adventurejourney.vn/ Thank you in advance for your help! Adventure Journey Team!

Member Avatar
+0 forum 1
Member Avatar

# Class 1 # import java.awt.Canvas; import java.awt.Color; import java.awt.image.BufferStrategy; import java.awt.Graphics; import java.lang.Runnable; import java.lang.Thread; import javax.swing.JFrame; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; public class Game extends JFrame implements Runnable{ private Canvas canvas = new Canvas(); private RenderHandler renderer; private BufferedImage testImage; private Rectangle testRectangle = new Rectangle(30, 90, 100, 100); public Game() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(0,0, 1000, 800); setLocationRelativeTo(null); add(canvas); setVisible(true); canvas.createBufferStrategy(3); renderer = new RenderHandler(getWidth(), getHeight()); BufferedImage testImage = loadImage("Grass.jpg"); testRectangle.generateGraphics(12234); } private BufferedImage loadImage(String path){ try{ BufferedImage loadedImage = ImageIO.read(Game.class.getResource(path)); BufferedImage formattedImage = new BufferedImage(loadedImage.getWidth(), loadedImage.getHeight(), BufferedImage.TYPE_INT_RGB); formattedImage.getGraphics().drawImage(loadedImage, 0, 0, null); return formattedImage; } catch(IOException exception){ exception.printStackTrace(); …

Member Avatar
+0 forum 3
Member Avatar

hi, In my android studio build gradle is failed i dont know how so then i check the log and i saw this error Error:Could not find method compile() for arguments [com.android.support:recyclerview-v7:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Please install the Android Support Repository from the Android SDK Manager. Open Android SDK Manager then i check it but android support respository is already installed version 47.0.0 i restart android studio but it shows same error how i solve this error from android studio please help me to solve this problem?

Member Avatar
+0 forum 2
Member Avatar

Help i need to have 3 login attempts then the program will lock down but the message box shows up 3 times consecutively, it will close then pops out it will do this for 3 times then it closes ... help pleassseee :( Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim un, pw As String Dim counter As Integer = 0 un = txtUsername.Text pw = txtPassword.Text Do If un = "student" And pw = "21217" Then Me.Hide() CourseStudy.Show() Else counter = counter + 1 MsgBox("Try again", MsgBoxStyle.Critical, "Acess Denied") txtPassword.Text = "" txtUsername.Text = …

Member Avatar
+0 forum 1
Member Avatar

Hello everybody I'm creating a Windows Desktop App using vb.net, I'm not very knowledgeble and I can say that I'm still a beginner. So I have this project where I'm trying to create a report form using ReportViewer where as after putting the ReportViewer control to my form and select the rdlc file and datasource this error suddenly pops up: *"Could not load file or assembly 'MySql.Data, Version=8.0.17.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"* This only shows whenever I try to add a reportviewer …

Member Avatar
+0 forum 1
Member Avatar

package de.extrema.java; import java.util.Scanner; public class Pogramm { public static void main(String arrg[]) { try (Scanner scanner = new Scanner(System.in)) { double a , b , r , A , h; int number2; int number; System.out.println("Körper: "); System.out.println("Deine Wahl: "); number = scanner.nextInt(); number2 = scanner.nextInt(); switch(number) { case 1:{ switch(number) { System.out.println("Viereck: 1 Kreis: 2 Dreieck: 3 Trapez: 4 "); case 1:{ System.out.println("a: "); a = scanner.nextDouble(); System.out.println("b(a): "); b = scanner.nextDouble(); A = a * b; System.out.println("Fläche des Vierecks= " + A); break; } case 2:{ System.out.println("r: "); r = scanner.nextDouble(); A = Math.PI * r * r; …

Member Avatar
+0 forum 5
Member Avatar

hi, In my android studio build gradle is failed i dont know how so then i check the log and i saw this error Error:Could not find method compile() for arguments [com.android.support:recyclerview-v7:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Please install the Android Support Repository from the Android SDK Manager. Open Android SDK Manager then i check it but android support respository is already installed version 47.0.0 i restart android studio but it shows same error how i solve this error from android studio please help me to solve this problem?

Member Avatar
+0 forum 1
Member Avatar

Hi everyone, I'm new to parallel programming, and my project is the two-dimensional matrix vector multiplication using mpi in C programming language. I have this multiplication function, but I don't know exactly how to run it with mpi. Can you help me, please? I write these commands, $ mpicc -g -Wall -o matrix2d matrix2d.c -lm -c $ mpiexec ./matrix2d.c But I get some errors. `mpiexec was unable to launch the specified application as it could not access or execute an executable: Executable: ./matrix2d Node: ubuntu while attempting to start process rank 0.` 2D Matrix-Vector Multiplication Function is below: #include <stdio.h> …

Member Avatar
+0 forum 1
Member Avatar

can you help me add a write and read function to the program below #include <iostream> #include <conio.h> #include <windows.h> #include <stdio.h> #include <fstream> using namespace std; struct daerah { char kel[50]; char kec[50]; char kota[50]; }; struct data { int nomor; char nama[50]; char tinggi[20]; char status[20]; char pekerjaan[20]; char tempat[20]; char tanggal[20]; char almt[20]; char jenis[50]; daerah alamat; }; main() { int menu; int no_sim=-1,i,j; int pilih; int namedit; data sim[20]; char get[1]; bool ketemu; menuutama: system("cls"); cout<<" ---------------- Aplikasi Data Pelanggaran Lalu Lintas ---------------"; cout <<" \nMENU UTAMA :\n\n"; cout<<" 1.Menambah Data Pelanggaran\n\n"; cout<<" 2.Mencari Data Pelanggaran\n\n"; …

Member Avatar
+0 forum 1
Member Avatar

I have a lecture is there anyone who can help me to change the source coding below to OOP C ++ I / O which uses #include <fstream> so that when the file is written can be saved and when the program is closed then we can still write the data back #include <iostream> #include <conio.h> #include <windows.h> #include<stdio.h> using namespace std; struct daerah { char kel[50]; char kec[50]; char kota[50]; }; struct data { int nomor; char nama[50]; char tinggi[20]; char status[20]; char pekerjaan[20]; char tempat[20]; char tanggal[20]; char almt[20]; char jenis[50]; daerah alamat; }; main() { int menu; …

Member Avatar
+0 forum 2
Member Avatar

Hi, while I was looking at a program in my textbook, i encountered this *program to reverse a string using recursive procedure*- #include <stdio.h> int main(void) { void rev(); printf("Enter a line of text:\n"); rev(); } void rev() { char c[20]; if((c==getchar())!='\n') rev(); putchar(c); } I couldn't quite understand the logic the author used, so I went to check the program on my pc which gave the error- > Runtime error(Exit status:139(Invalid memory reference)) What's this error about? and Is the program in textbook wrong?

Member Avatar
+0 forum 2
Member Avatar

My site use to work fine. But today for some reason pages with mysqli_num_rows takes a very long time to load. I can visit the page but it takes a long time to load. When it loads there are no errors but the error file in the root directory have the following error: Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given There is no problem with my internet connection because other pages load fast and do not send reports to the error file. This is my first time encountring this problem. Here is the code for the error …

Member Avatar
+0 forum 1
Member Avatar

# Class 1 # import java.awt.Canvas; import java.awt.Color; import java.awt.image.BufferStrategy; import java.awt.Graphics; import java.lang.Runnable; import java.lang.Thread; import javax.swing.JFrame; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; public class Game extends JFrame implements Runnable{ private Canvas canvas = new Canvas(); private RenderHandler renderer; private BufferedImage testImage; private Rectangle testRectangle = new Rectangle(30, 90, 100, 100); public Game() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(0,0, 1000, 800); setLocationRelativeTo(null); add(canvas); setVisible(true); canvas.createBufferStrategy(3); renderer = new RenderHandler(getWidth(), getHeight()); BufferedImage testImage = loadImage("Grass.jpg"); testRectangle.generateGraphics(12234); } private BufferedImage loadImage(String path){ try{ BufferedImage loadedImage = ImageIO.read(Game.class.getResource(path)); BufferedImage formattedImage = new BufferedImage(loadedImage.getWidth(), loadedImage.getHeight(), BufferedImage.TYPE_INT_RGB); formattedImage.getGraphics().drawImage(loadedImage, 0, 0, null); return formattedImage; } catch(IOException exception){ exception.printStackTrace(); …

Member Avatar
+0 forum 1
Member Avatar

Hi, I am new to this community and would be grateful for any guidance you can give. I am constantly receiving a PHP warning whenever I create a post on my wordpress site. Below is a sample of the warning. **PHP WARNING ** html/thegeelongeditioncom/wp-content/plugins/df_social_media/df-social-media-oauth.php on line 533 [11-Dec-2019 02:16:53 UTC] PHP Warning: file_get_contents(https://plusone.google.com/u/0/_/+1/fastbutton?url=https%3A%2F%2Fthegeelongedition.com.au%2Ftag%2Fpeople-home%2F): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found This is on every single post. I can see the URL is missing but it is automatically generated so unsure how to fix the problem. Below is a snippet of the code containing line 533 as …

Member Avatar
+0 forum 2
Member Avatar

It's not showing the image in the terminal window or the jframe. import java.awt.Canvas; import java.awt.Color; import java.awt.image.BufferStrategy; import java.awt.Graphics; import java.lang.Runnable; import java.lang.Thread; import javax.swing.JFrame; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import java.io.IOException; public class Game extends JFrame implements Runnable{ import java.awt.Graphics; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; public class RenderHandler{ private BufferedImage view; private Rectangle camera; private int[] pixels; public RenderHandler(int width, int height) { //Create a BufferedImage that will represent our view. view = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); camera = new Rectangle(0, 0, width, height); camera.x = -100; camera.y = -30; //Create an array for pixels pixels = ((DataBufferInt) view.getRaster().getDataBuffer()).getData(); } …

Member Avatar
+0 forum 1
Member Avatar

I made this game equivalent to tictactoe but with a slight twist called find the X between two players using socket programming with Java. Don't know where I went wrong in trying to find the X but for some odd reason my count variable never updates allowing the victory message to never pop up. Basically the game is as follows, the dealer starts by placing the X then the spotter has to guess where it is by placing the O. Still quite new to Java and socket programming, I followed a few Java socket programming examples which is what led …

Member Avatar
+0 forum 5
Member Avatar

Website is redirects on other spam website? How can i comeout. Is my website hacked by someone?

Member Avatar
+0 forum 1
Member Avatar

#include<stdio.h> int main(void) { char a; a="?"; } Error i'm recieving: warning: assignment makes integer from pointer without a cast a="?";

Member Avatar
+0 forum 2
Member Avatar

There can various actions that take us to the cause of Data Loss, **Intentional Action** *Intentional deletion of a file or program* **Unintentional Action** *Accidental deletion of a file or program Misplacement of CDs or Memory sticks Administration errors Inability to read unknown file format* I really found this Wiki Content useful: https://en.wikipedia.org/wiki/Data_loss

Member Avatar
+0 forum 2
Member Avatar

This is the error im am recieving: "assignment makes integer from pointer without a cast"

Member Avatar
+0 forum 3
Member Avatar

Hi, I want to know what is wrong in this code for reading and printing an array, because it gives "the program stopped working" when I run it. #include<stdio.h> int main(void) { int arr[2][3]; readmat(arr,2,3); printmat(arr,2,3); } int readmat(int **mat,int m,int n) { int i,j; for(i=0;i<m;++i) for(j=0;j<n;++j) scanf("%d",&mat[i][j]); } int printmat(int **mat,int m,int n) { int i,j; for(i=0;i<m;++i) { for(j=0;j<n;++j) printf("%d\t",mat[i][j]); puts("\n"); } }

Member Avatar
+0 forum 2
Member Avatar

My quiz has a textbox, mcq and checkbox. At first, the checkAnswer() worked when I did not input the show() function to my javascript. It showed my overall score. But after I input that show() function to display 1 question at a time, my score is always 5/7 or less. Please do tell what is wrong with my code and if you have any recommendations. Please do tell. Here is the demo. [Click Here](https://codepen.io/huha2511/pen/zYYEaxY?editors=0010) <body> <div id="container" > <div id="start" > <div id="ready"> <button onclick="show('q1')"><h1>START NOW</h1></button> </div> </div> <div id="quiz"> <form name="quizForm" > <div id="q1" style="display:none;" > <!--QUESTION 1--> <div …

Member Avatar
+1 forum 1
Member Avatar

Hi, I've been having issues with my program where I make the rocket do what its supposed to do when it comes to outputting a filled and hollow rocket body depending on either a odd or even value. The only problem I am currently having is duplicating the body length also known as adding stages of how long I want the boyd to be. Here's my code: [code] //Draw a Rocket with a filled or hollow body with stages #include <iostream> using namespace std; void drawOddBox(/* in*/ int, /* in */ int); //Function prototype with two value parameters void getDimensions(/* …

Member Avatar
+1 forum 1
Member Avatar

Hi, I was learning insertion sort in C. But I need help to clear up my confusion in the following code: int i,j,n; puts("Enter the number of elements: "); scanf("%d",&n); int A[n]; readarr(A,n); int sortedA[n]; sortedA[0]=A[0]; for(i=1;i<n;++i) { j=i-1; while(j>=0 && sortedA[j]>A[i]) { sortedA[j+1]=sortedA[j]; /*marked line 1*/ --j; } sortedA[j+1]=A[i]; /*marked line 2*/ } In the marked line 1, you see that value at position [j] has been moved down in the list to [j+1], so that the position [j] is now vacant. Right? Then, in marked line 2, why has A[i] been assigned to position [j+1]? Because, according to …

Member Avatar
+0 forum 1

The End.