Update without Internet? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm wondering if its a normal thing and if its possible for Windows 10 to update despite the fact that there is no internet connection?
I am asking since I'm worried that the update may have erased a major portion of my code I was working on before I can save it and commit it to my repository.
Edited:
Blue update screen
What my screen look like currently:

if this PC is connected to a network with other Windows 10 PC and they are all running the Windows Update Delivery Optimization, you might get the updates without direct internet connection.
http://windows.microsoft.com/en-us/windows-10/windows-update-delivery-optimization-faq

No, that's not possible without internet connectivity - there is no magical resource where Windows updates could come from. If you haven't restarted your computer in ages then the update (the update you are experiencing is a regular windows update package, usually [that's the normal setting] downloaded automatically and without you noticing it) might have been downloaded in the past when there was connectivity and Windows now forced your computer to reboot and install the update - that's a important security feature of Windows, since inexperienced users might never reboot their computer and that way never get any security updates.
Normally, these forced reboots are announced (either a couple of minutes or 60 seconds, I'm not entirely sure) before, so you have time to save your work and finish what you are working on. I can only guess you were annoyed by "another popup" and just hit OK or some other means of disposing that notification.
In the future, you can do the following:
save to file/commit (and push) your work frequently (either save to file frequently - If the OS updates, restarts, etc... your personal files will not be affected or deleted or commit to a repository and eventually push the results to a remote like GitHub for example)
Reboot frequently (normally, you would turn your computer off at night), so you are not forced to reboot in the future. Your computer's performance will also benefit from this.
Use an IDE that automaticall saves, like IntelliJ IDEA - every time you stop typing it automatically saves the edited file to disk - you will never lose your work again.
Also, don't panick-post a not constructive question on Stack Overflow. Really, this question is objectively not constructive and you just wanted to make some air for your frustration, don't you? Chill, watch some YouTube or something while the update is installing, check whether anything is lost, and then ask a constructive question, if one results out of your situation.

Related

LWJGL GLFW hangs on native glfwInit call

I originally posted this question on GameDev stackexchange however I'll also ask the question here to try and get more outreach, especially since I wasn't sure my problem was specific to game development since it's a problem with a Java native call.
For the past months I've been working on creating my own game engine for personal use in LWJGL using pieces here and there, especially from developer ThinMatrix's rightfully credited code, to learn as much as I can while building it. Only recently there has been strange behavior happening when I launch the engine from IntelliJ for testing:
After about 6-10 individual times I click run, all subsequent runs suddenly take about 60 seconds for the window to appear.
Whenever I restart my PC this hanging resets and I have another 6-10 runs before it hangs everytime again.
I located the issue to glfwInit, more specifically at the call to the native method:
#NativeType("int")
public static boolean glfwInit() {
long __functionAddress = Functions.Init;
return invokeI(__functionAddress) != 0; // Right here
}
I also noticed that this issue only started when I attempted to implement text support in my engine using the STBTrueType library. It was perfectly fine before that. I tried removing the TrueType code but it didn't fix it.
Here's a list of things I've tried:
Clearing my temp folder in case a buggy or corrupted file was present.
Recompiling and rebuilding the entire LWJGL jars twice.
Building glfw.dll from the GLFW sources and replacing the glfw.dll in the native jars with the former.
Reinstalling Java and actually upgrading JDK versions (from 13.0.2 to 14.0.2)
Switching IDEs even if I suspected it wouldn't work.
Updating my NVIDIA drivers, and reinstalling them.
I'm quite confused as to what it could be, and I'd be more than happy to share code, thread dumps, or debug info if you deem it necessary. Here is the Github repository with the latest, "faulty" code (fault in quotes because I'm not too sure the code is the problem.)
Thank you very much for any guidance.
P.S: Please tell me if this is better asked in StackOverflow instead of here.
So I fixed the issue, it turns out it wasn't even related to anything to do with programming, or STBTrueType, or the library itself. The problem was as pointed out in this StackOverflow post, where this hanging behavior was due to a faulty driver or, in my case, my keyboard USB being plugged in the "wrong" USB port. I moved my computer at the same time I started working on text in my engine, hence why I wrongly linked the issue with the TrueType library. If you're having the same issue, look at the aforementioned post or if that doesn't work, look for a peripheral that might cause interference.

tomcat vulnerabilities discussion [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a web application with Tomcat 7.0.42. I have recently found on my server files I havent uploaded. these hacker files allow anybody to create files on my server.
I'd really like to figure out how they have got access to my server. In my web application I have a form to interact with users, but all fields are restricted with regular expression and I use prepared statements to deal with the database.
Moreover I uploaded a version of my web application which ONLY displayed information, I removed all forms and I didnt let any type of interaction with users. I also changed passwords. But files still appearing
I would like to discuss possibles vulnerabilities and solutions to them:
Remove write permissions on tomcat webapps folder once I have uploaded my war?
May my code be corrupted?
Any help would be so much appreciated, thanks in advance!
As Mark pointed out, the easiest way to get into a Tomcat server it's by accessing the Tomcat Manager with a week or default password.
Make sure it's not publicly available, you have a strong password and check your JSP code for web vulnerabilities.
Once you have been hacked, you could already be backdoored, either at code level or by some rootkit in your server. Check your web logs, what commands had been executed recently, and IMHO a "rm -rf /" to make sure everything is wiped out.
Ignacio.
Try reading the Tomcat security docs http://tomcat.apache.org/tomcat-7.0-doc/security-howto.html
First check to see if the Manager application is present and if you have configured a user with a weak password for that app.
Looking at the access log is usually my next port of call.
As #Grimby rightly pointed out, Tomcat might not be the way they are getting in.

Can I Place a Program Written in the Java Programming Language on the Internet in a Way that Others can Run it for Free Without Security Issues? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I've been going through a very frustrating time trying to distribute my program and I could really use some help.
So it all started a long time ago when I decided to try and teach myself C++. I thought I'd learn by doing by trying to create a text adventure with basic code. I managed to create an executable file that worked and cheerfully submitted it to a website that sometimes hosted content similar to what I created.
My submission was rejected out of hand, as no one wanted to advertise or even open the contents of a link to a file download from an unknown source. I found some information online saying that by using the Java Programming Language, I could run an application from a webpage using something called an "applet" that other people could access.
So I learned a second programming language and some basic html and tried to put my application on a website... Except it turns out that applets are a dying technology that no one trusts and that while it is possible to run a program as an applet (or a java web start application) from a webpage, modern browsers will scream bloody murder at anyone who tries to do so because applets are considered horribly insecure.
This project has now been ongoing in some form or another for over a year at this point, and I am at my wits end. I really, really don't want to have to write my program over again in yet another language just so that I can show it to people without them flipping out and acting like I'm trying to infect them with a virus. Is there any way at all to have people use my Java program for free on the internet in a way that won't give people terrible security messages?
It's not a question of programming language. As long as your goal is to distribute your code (meaning that users have to download your code and run it on their computers) you will face the resistance. I, for one, would not run anything downloaded from internet until I research it and find reputable evidence of it being legit and harmless.
You may want to have it as a web application that runs on your server and gives users options to download results in some acceptable format. PDF is usually considered safe, though it's possible to embed maleware there.
Java EE gives many options for creation of such app, starting with JSP (Java Server Pages) and including more up-to-date ones (JSF and such).

Are there tools that log user actions to help reproduce bugs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
As a test engineer, I often engage in exploratory testing. When I encounter a bug, it is not always immediately clear which steps led to the problem. So, obviously, I have to find the required steps to reproduce the problem. Depending on the situation, this can take a large amount of time.
What would be really helpful is a logging tool that keeps track of mouse and keyboard actions and possibly also stores the properties of components that have been clicked (the AUT is written in Java).
I could simply not find a suitable tool, but maybe my search approach is erroneous.
Could anyone point me to the right direction?
This question lists tools that can be used test web applications. Some of the answers may be useful.
One for example is Selenium - a mozilla plugin that records your actions and can be replayed later.
Log4J is an apache logging tool for Java with many options for outputting logs.
The nice thing about it is that you can insert as many log messages in the code and switch them on and off based on a logging level as you see fit. So for instance, you have debug messages and info messages. if you insert some debug messages and some info messages in your code then you set the logging level to debug, then you find all debug and info messages are logged.
If you set the logging level to info then only info messages are logged. You have other levels too.
EDIT: I re-read the question and realized that I did not answer correctly...sorry. But, you could put logging statements into the actions in the Java code and accomplish the same thing that you want. It does require a recompile though.
if your testing does NOT take a whole lot of time, you can record your actions(including the whole screen) into a video. You could replay the video to see how the application responded during all your exploration.
1) http://camstudio.org/
2) google for "free screen video capture" for more.
BR,
~A
You may want to check out BB Test Assistant. I saw a very early version of this and was impressed. I've also heard good things from people who have used it since then.
In addition to #anjanb suggestion about screen capture, you can run your program under a debugger that records its execution and allows you to step back through the trace.
Omnicore CodeGuide has pretty good implementation of the concept (though you need to postprocess your bytecode). It is a commercial software but it's reasonably priced. Not sure if it's under active development though.
Another (free) product is the Omniscient Debugger which I tested a few years back and found to be inferior to GC (used too much memory, unacceptable slowdowns). Still I see on their webpage that they have made some progress so you might want to check it out.
Check out ReplayDIRECTOR: http://replaysolutions.com/
Very useful for exploratory testing, as it records all the interactions of your Java app with its surrounding environment (user input, system calls, DB responses), and allows later replay of the recorded session, with the application actually running and executing the same path through the code. The recorded inputs will be fed to the application exactly as during the recording.
There's also Session Tester:
http://sessiontester.openqa.org/
Session Tester is an exploratory testing tool for managing and recording Session-Based Testing. Session Tester has a timer so you can keep your test sessions at the desired length, and it provides an easy way to record session notes. Notes are stored in an XML format that can be converted to HTML, or be transformed into whatever form you wish.

How to see Java threads from Remote Desktop Connection Client. Ctrl-break not working [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am connecting to a Windows XP machine via Microsoft's Remote Desktop Connection Client, version 2.0.0 Beta 3, running on a Mac. On the Windows machine there is a Java console running, where I want to send a Ctrl-Break so I can see the Java threads running.
According to the RDC help, Alt/Option-F3 is break, but Ctrl-Opt-F3 and various other combinations do not have an effect.
Any ideas on how to send a Ctrl-Break?
Hit CTRL+ALT+END instead.
I don't know if this help anyone, but i was trying to debug a vba project and had this same problem. That is how i ended up here to begin with. I used the "On-Screen Keyboard" in Accessories->Accessibility
Hope this helps someone.
I tried all the options given above but none worked for me. Eventually managed to access break the VBA code execution with:
fn + Esc
For reference I'm using:
Macbook Air with OS X 10.7.2
Via Microsoft Remote Desktop Connection Client for Mac version 2.1.0
Accessing Windows 7 Enterprise running on VMWARE
Ctrl-Alt-End doesn't work on a macbook: no End key. The "On-Screen Keyboard" did the trick though. Thanks!
Still would like to see a way to send Ctrl-Break from a Mac Book Pro to a Windows machine via RDP for Mac. Trying the default key assignment (Option-F3) doesn't work and re-assigning the key doesn't seem to work either. If anybody has successfully sent a Ctrl-Break using the RDP client on a Mac, I'd love to hear how you did it. Google searches have been fruitless so far.
I needed to send a BREAK (which on my laptop is FN+Page Down) - this was to break VBA code running in Excel. When RDPing from a Mac I used fn+F14 - got this via trial and error.

Categories