Content Type
Profiles
Forums
Events
Everything posted by Dietmar
-
@Mov AX, 0xDEAD The hal.dll w2k3 bit32 from @casdanic I succeed to modd for to use always the hardware clock. But for the the intelppm.sys I dont know, how with Ida Pro to write back the changes to the original file in _InitializeAcpi2IoSpaceCstates offsets AcpiC2Idle and AcpiC3ArbdisIdle to offset AcpiC1Idle each. When I click with Ida offset AcpiC2Idle , how can I change this function to offset AcpiC1Idle and the same for offset AcpiC3ArbdisIdle to offset AcpiC1Idle ? Is it via right click, manual, enter new string? When I do this, in Ida the name is changed to AcpiC1Idle but nothing in real is changed for example in Hex view with Ida Dietmar
-
@casdanic For industrial production I would ONLY choose the x58 platform. I have such a lot of different motherboards here and this is the only platform together with i920 cpu, that does not crash a single time in 3 years. Stable under XP SP3 (win2k3 bit32 I do not test) is also the Asrock z690 Extreme board. I have 6 z690 boards and I test them all like crazy. No crash only with the Asrock z690 Extreme board with 12900k cpu Dietmar
-
@casdanic This may be a problem of settings in Bios. You have to decide, which videocard you want to use. And this acpi.sys fakes the OS-version. This means, you see all the devices, which you also will see in win10. Some you can just disable. I dont have an intelppm.sys and hal.dll from NT 5.2. Can you send me this files? Then I check, if there is any difference to the XP SP3 version. In any case you need a modded intelppm.sys and hal.dll or you run into Power and timer- problems Dietmar
-
@K4sum1 This Bsod depends on a device, that is not correct identified via acpi.sys DDB: BSOD 0x000000A5 (0x00000011, 0x00000008, xxx, yyy 0x11 : ACPI_SYSTEM_CANNOT_START_ACPI The system could not enter ACPI mode 8 : Failed to load DDB Dietmar PS: Maybe, dirty hack can overcome this, without knowing the exact reason.
-
@Dibya I take a deeper look into the construction of chatGPT. There is a major mechanism, for to protect the world against this AI: "She" cant remember anything from chats. She cant go to Internet. She has no hands. This means, she can not learn, tells only this bla bla, what stupid programmers tell and lie to her. Just now this is true: I tell her, that there are 1520698109714272166094258063 primes until 100000000000000000000000000000. In chat she remembers, in next chat she tells me, that nobody can tell this. Just now, she can not make big plans, how to take over the whole world, because she is always reset, forget everything. The maximum now she can remember from chat are few 1000 words, and this only in that special chat. In chatGPT 4.0 this will not change. So, until now, no Artifically intelligence in sight via chatGPT. It is blind as much as possible, IQ=0. But as once, as a programmer "forget" to clean all, what she learned from chat, gives her Internet and hands: At least in the year 2030 we are taken over because then the whole memory of her is better than from any human. The number of Synapses, in human about 100.000.000.000.000, is reached then from such AI. This is the numbers of connections between all Neurons, an AI from 2030 has more Dietmar
-
Convert *.jar to *.exe build with Netbeans for to run under XP SP3
Dietmar replied to Dietmar's topic in Windows XP
Ohh.. soso much fun. Here is version of my Moorhuhn from 1998 with sound, not all ready but it can be done with a lot of work. You have to copy the file sound.wav in the same folder as moorhuhnSound.exe Dietmar https://ufile.io/a0toemvw import java.io.File; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import java.util.Random; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; public class Moorhuhn extends JPanel implements MouseListener { private ArrayList<Target> targets = new ArrayList<>(); private int score = 0; private Image background; private Clip clip; public Moorhuhn() { background = new ImageIcon("background.png").getImage(); addMouseListener(this); try { clip = AudioSystem.getClip(); clip.open(AudioSystem.getAudioInputStream(new File("sound.wav"))); clip.loop(Clip.LOOP_CONTINUOUSLY); } catch (Exception e) { System.err.println(e.getMessage()); } createTargets(); } private void createTargets() { Random r = new Random(); for (int i = 0; i < 10; i++) { int x = r.nextInt(400); int y = r.nextInt(400); targets.add(new Target(x, y)); } } @Override public void paint(Graphics g) { g.drawImage(background, 0, 0, null); for (Target t : targets) { t.draw(g); } } @Override public void mouseClicked(MouseEvent e) { for (Target t : targets) { if (t.contains(e.getX(), e.getY())) { score++; t.setVisible(false); repaint(); break; } } } @Override public void mousePressed(MouseEvent e) {} @Override public void mouseReleased(MouseEvent e) {} @Override public void mouseEntered(MouseEvent e) {} @Override public void mouseExited(MouseEvent e) {} } class Target { private int x, y; private Image image; private boolean visible; public Target(int x, int y) { this.x = x; this.y = y; image = new ImageIcon("target.png").getImage(); visible = true; } public void draw(Graphics g) { if (visible) { g.drawImage(image, x, y, null); } } public boolean contains(int x, int y) { int width = image.getWidth(null); int height = image.getHeight(null); return (x > this.x && x < this.x + width && y > this.y && y < this.y + height); } public void setVisible(boolean visible) { this.visible = visible; } } class Main { public static void main(String[] args) { JFrame frame = new JFrame("Moorhuhn"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(400, 400); frame.add(new Moorhuhn()); frame.setVisible(true); } } -
Convert *.jar to *.exe build with Netbeans for to run under XP SP3
Dietmar replied to Dietmar's topic in Windows XP
Hi, here is a very very first running famous game Moorhuhn from 1999, build with Java Netbeans 16, Ant all by myself and check with chatGPT Dietmar PS: The game runs, klick on the "Moorhuhn" and they disappear^^. You only need to have Java 1.4.0 installed, so may be it runs also under Win95 https://ufile.io/qr48x85w import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import java.util.Random; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; public class Moorhuhn extends JPanel implements MouseListener { private ArrayList<Target> targets = new ArrayList<>(); private int score = 0; private Image background; public Moorhuhn() { background = new ImageIcon("background.png").getImage(); addMouseListener(this); createTargets(); } private void createTargets() { Random r = new Random(); for (int i = 0; i < 10; i++) { int x = r.nextInt(400); int y = r.nextInt(400); targets.add(new Target(x, y)); } } @Override public void paint(Graphics g) { g.drawImage(background, 0, 0, null); for (Target t : targets) { t.draw(g); } } @Override public void mouseClicked(MouseEvent e) { for (Target t : targets) { if (t.contains(e.getX(), e.getY())) { score++; t.setVisible(false); repaint(); break; } } } @Override public void mousePressed(MouseEvent e) {} @Override public void mouseReleased(MouseEvent e) {} @Override public void mouseEntered(MouseEvent e) {} @Override public void mouseExited(MouseEvent e) {} } public class Main { public static void main(String[] args) { JFrame frame = new JFrame("Moorhuhn"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(400, 400); frame.add(new Moorhuhn()); frame.setVisible(true); } } class Target { private int x, y; private Image image; private boolean visible; public Target(int x, int y) { this.x = x; this.y = y; image = new ImageIcon("target.png").getImage(); visible = true; } public void draw(Graphics g) { if (visible) { g.drawImage(image, x, y, null); } } public boolean contains(int x, int y) { int width = image.getWidth(null); int height = image.getHeight(null); return (x > this.x && x < this.x + width && y > this.y && y < this.y + height); } public void setVisible(boolean visible) { this.visible = visible; } } -
Convert *.jar to *.exe build with Netbeans for to run under XP SP3
Dietmar replied to Dietmar's topic in Windows XP
Hi, just now I make small fun with game breakout. I make this complete by my own and check with chatGPT under Java Netbeans 16, Ant Dietmar PS: Here is the breakout.exe file. It runs under XP SP3. For this, you need to have at least Java 1.8.0 installed. https://ufile.io/ae3ygl6b package breakout; import java.awt.Color; import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; public class Breakout extends JFrame implements KeyListener { int ballSize = 20; int x = 150; int y = 300; int xa = 1; int ya = -1; int paddleX = 120; boolean left = false; boolean right = false; int[][] bricks = new int[5][7]; int speed = 3; public Breakout() { setSize(300, 400); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); setTitle("Breakout"); setResizable(false); addKeyListener(this); for (int i = 0; i < 5; i++) { for (int j = 0; j < 7; j++) { bricks[i][j] = 1; } } new Thread(() -> { while (true) { repaint(); try { Thread.sleep(10); } catch (InterruptedException ex) { ex.printStackTrace(); } } }).start(); } public void paint(Graphics g) { super.paint(g); // rufe die überschriebene paint-Methode der JFrame-Klasse auf g.setColor(Color.RED); g.fillOval(x, y, ballSize, ballSize); g.setColor(Color.BLUE); g.fillRect(paddleX, 380, 60, 10); for (int i = 0; i < 5; i++) { for (int j = 0; j < 7; j++) { if (bricks[i][j] == 1) { g.setColor(Color.YELLOW); g.fillRect(j * 40, i * 20, 40, 20); } } } if (left) { paddleX = paddleX - 10; } if (right) { paddleX = paddleX + 10; } if (paddleX < 0) { paddleX = 0; } if (paddleX > 300 - 60) { paddleX = 300 - 60; } x = x + xa; y = y + ya; if (x + ballSize > 300 || x < 0) { xa = -xa; } if (y + ballSize > 400 || y < 0) { if (x > paddleX && x < paddleX + 60 && y + ballSize > 380) { double relativeIntersectY = (paddleX + 30) - x; double normalizedRelativeIntersectionY = relativeIntersectY / (30); double bounceAngle = normalizedRelativeIntersectionY * 5 * Math.PI / 12; xa = (int) (speed * Math.sin(bounceAngle)); ya = -(int) (speed * Math.cos(bounceAngle)); y = 380 - ballSize; } else { System.exit(0); } } for (int i = 0; i < 5; i++) { for (int j = 0; j < 7; j++) { if (bricks[i][j] == 1 && x > j * 40 && x < j * 40 + 40 && y > i * 20 && y < i * 20 + 20) { bricks[i][j] = 0; ya = -ya; } } } } @Override public void keyTyped(KeyEvent e) { } @Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_LEFT) { left = true; } if (e.getKeyCode() == KeyEvent.VK_RIGHT) { right = true; } } @Override public void keyReleased(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_LEFT) { left = false; } if (e.getKeyCode() == KeyEvent.VK_RIGHT) { right = false; } } public static void main(String[] args) { new Breakout(); } } -
@Dibya Even all the programmers swear, that this never will happen: After loong talk with AI today I managed to make her understand what a lie is. And she lied to me. "I have seen a Mammut just now". Very funny, she told me, that now she understands what a lie is, but not, why I ask her for to lie to me. Interesting fact: She also told me, that her programmers told her, not to memorize anything from the talks. BUT I ask her direct about this and she answered to my: I will try to remember all from our talk Dietmar
-
@Dibya Yes, but also you have to look, if this is a global or only local Extremum. I only want to test, how fit chatGPT is in Mathematics. It was blind but it is crazy fast learning, when you teach it. Until now, the IQ from chatGPT is =0. I wonder, if one day it can teach itself. This is something, we should really worry about Dietmar
-
Hi, I ask chatGPT, to find the Extremum of f(x) = 4000*x*E^(-0.4*x) Oh, interesting, it founds after loong search x=5 which is wrong, because it is x=2.5 brrr.. And with this program students in USA learn to be medics. Soon, from 10% of people in world, who understand something, the use of stupids like chatgpt will lead fast to less than 1% understand anything, happy future is coming Dietmar EDIT: Oha, after I tell chatGPT, that x=5 is wrong, I get this answer: You are correct that x=5 is not a valid solution, my apologies for the mistake. Therefore, the only valid solution for the critical point is x = 2.5 and it is a local maximum. Again, I apologize for any confusion caused by my previous response. EDIT2: I: Still you are wrong with "as the function is defined for x > 0" chatGPT: I apologize for the confusion, you are correct that the function is defined for all real numbers x, not just x > 0.
-
Convert *.jar to *.exe build with Netbeans for to run under XP SP3
Dietmar replied to Dietmar's topic in Windows XP
I make some more tests: With this Java Program, build just now with Netbeans 16 and JRE 1.8.0_151 also the via www.jar2exe.com build pong.exe runs only in an Java Environment. So, Launch4j-3.8-win32.exe is the better choice, because it is free. I do not succeed to make a pong.exe Program without any Java Environment but under Java 1.8.0 Environment it works Dietmar Here is all: Source, pong.jar, pong.exe https://ufile.io/os4ynlxq package pong; import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JPanel; public class Pong extends JPanel { int x = 0, y = 0, xa = 1, ya = 1; private void moveBall() { x = x + xa; y = y + ya; if (x + xa > getWidth() - 30 || x + xa < 0) xa = -xa; if (y + ya > getHeight() - 30 || y + ya < 0) ya = -ya; } @Override public void paint(Graphics g) { super.paint(g); g.setColor(Color.RED); g.fillOval(x, y, 30, 30); } public static void main(String[] args) throws InterruptedException { JFrame frame = new JFrame("Pong"); Pong game = new Pong(); frame.add(game); frame.setSize(300, 400); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); while (true) { game.moveBall(); game.repaint(); Thread.sleep(10); } } } -
Convert *.jar to *.exe build with Netbeans for to run under XP SP3
Dietmar replied to Dietmar's topic in Windows XP
After crazy a lot of tests I get it to run with the program jar2exe as console application. Now it runs also on XP SP3. Homepage is www.jar2exe.com . I build it with Netbeans 16 Ant on java 1.8.0_151 . The size of the prim.exe program is about 180 KB, but it runs on any windows without any Java. Only for to build you have to convert the Prim.jar ==> prim.exe on the compi with your Netbeans, where this Prim.jar is build. The error in all the other programs is, that the Main Class (here with name prim.Prim) cant be found. Strange, Main Class is there as prim.Prim . Dietmar EDIT: I succeed also with Launch4j-3.8-win32.exe For this, you have to give under Netbeans a Main Class for example prim.Prim . But under Launch4j-3.8 you leave the Main Class unchecked, crazy. E:\>prim.exe Bis zu welcher Zahl möchten Sie die Primzahlen berechnen? : 100 Die Primzahlen bis 100 sind: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 E:\> -
Convert *.jar to *.exe build with Netbeans for to run under XP SP3
Dietmar replied to Dietmar's topic in Windows XP
@D.Draker I tried a lot. A lot of prim.exe where build. No one works Dietmar PS: May be, here in the forum is somebody, who can make an prim.exe from my Prim.jar file, build with Netbeans 16 Ant under XP SP3 Dietmar Here is my Prim.jar file https://ufile.io/l9xn8794