Program that finds all servers on the net 76-lines
Hi Guys and Birds,
Here's a small program written by the dear brothers Asger (hjerl.dk) and Morten (www.mycgiserver.com/~game) which finds all servers on the net in a couple of hours. Good luck
package com.hjerl;
import javax.swing.*;
import java.io.*;
import java.net.*;
import java.awt.*;
import java.util.*;
public class Browser extends JFrame {
int counterwww = 0;
ArrayList visitedUrls = new ArrayList();
ArrayList links = new ArrayList();
public static void main(String[] args) {
Browser b = new Browser();
public Browser() {
fetchLinesInPageAsArrayList("www.jp.dk");
System.out.println("Number of links found: " + counterwww);
private void fetchLinesInPageAsArrayList(String str) {
ArrayList al = new ArrayList();
try {
URL url = new URL("http://"+str);
URLConnection uc = url.openConnection();
uc.connect();
InputStream is = uc.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
int c = 0;
while (br.ready()) {
al.add(br.readLine());
findLinksFromLineArrayList(al);
catch(Exception ex) {
ex.printStackTrace();
private void findLinksFromLineArrayList(ArrayList al) {
for (int c = 0; c < al.size(); c++) {
String s = ((String) al.get(c)).toLowerCase();
//int a = s.indexOf("http://");
int b = s.indexOf("www.");
int d = s.indexOf("/", b+4);
if (b == -1 | d == -1)
continue;
String link = s.substring(b,d);
//fjerner evt.""
int e = link.indexOf("\"");
if (e != -1) {
link = link.substring(0, e);
if (links.contains(link) == false)
System.out.println("New link found: " + link);
links.add(link);
counterwww++;
fetchLinesInPageAsArrayList(link);
else
System.out.println(" Old link found: " + link);
}
Well, apart from the "finds all servers" bit and the "in a couple of hours" bit, that sounds quite plausible...
Similar Messages
-
Is there a query or program to find all the unreferenced images or assets?
I am looking for a query or a simple program to find all the unreferneced images or assets within DAM. This will help us clean out the images that are no longer required.
Please check the blog post http://www.wemblog.com/2012/12/how-to-remove-non-referenced-node-from.html
There's already a similar discussion : http://forums.adobe.com/message/4928021 -
We have a user that is being removed from IT (more like being forcefully demoted) and our owner still finds him valuable in other departments. My challenge is to find all servers that he may be using his account locally on (as a service or added to a local
admin group). It hasn't happened yet, but we need to be prepared to say we know all the servers his account is on when the owner demotes him.
I'm hoping someone has an approach to this that doesn't include going through tons of Event Viewer Security logs. We do have System Center Configuration Manager and Operations Manager 2012 w/ SP1, but the guy that is responsible for those is the guy we are removing
and none of us are aware on how to use the possible tools that those have. If you feel that those would do the trick then please point me to a "how to" and I'll try to learn on the fly. Otherwise I'll take any other suggestions.
~RickHi Rick,
Based on my research, you can filter events logs based on user name and event ID:
Advanced XML filtering in the Windows Event Viewer
http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx
Best Regards,
Amy -
I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files. I then installed a purchased product from Adobe disc using the serial number on the case. But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial. It asks for the serial number and says that my trial has expired. It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product". It thinks that I still have the expired Trial Version installed. How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????
Let me know how it goes. Go into your Adobe account and register your serial number asap.
https://www.adobe.com/account/my-products-services.html
That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
There are too may sad stories here, where people forgot and the box is buried or lost.
Gene -
I would like to make a poker program that can be played over the internet
I would like to create a java poker program that can be plyed over the internet. I would post the code on a website and everyone that goes should be able to play. Someone told me to use a socket but i dont no how. Also i dont know how to make a program that many people can use at once. PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!! So i want to make a holdem poker program in black and white that like 6 people can play by going to a web site. Thanks
I would like to create a java poker program that can
be plyed over the internet. I would post the code on
a website and everyone that goes should be able to
play. Someone told me to use a socket but i dont no
how. Also i dont know how to make a program that
many people can use at once. PLEASE HELP
ME!!!!!!!!!!!!!!!!!!!!!!!!! So i want to make a
holdem poker program in black and white that like 6
people can play by going to a web site. ThanksIf you want to use a socket, you're on the wrong board. What does your webhoster support? J2EE? Root access so you can install your own server? -
How do you disable the shortcut key in Mail that deletes all mail in the trash folder
Is there a way to disable the shortcut key in Mail in Mountain Lion that deletes all mail in the Trash folder in all accounts: <shift><command><delete> ?
I did it once by mistake and it deleted all my trash - it is very difficult to restore when there are thousands of messages in various emaiil accounts.
ThanksWhile you can't (so far as I know) remove it - you can assign a different (& less likely to be used accidentally) one via System Preferences - Keyboard - Shortcuts.
Go there, create a new one (or 2) for Mail only, and give it the exact name(s) if the menu item(s) in question, capitalisation & ... included.
Below is on 10.6, but the idea's the same -
How to create a program that accepts 5 digits from the user between 0 and 9
how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..
You can use a scanner to get user input from the command line.
import java.util.*;
public class Test {
private List<Integer> list;
private Scanner in;
public static void main (String... args) {
new Test ();
public Test () {
list = new LinkedList<Integer> ();
in = new Scanner (System.in);
for (int i = 0; i < 5; i ++) {
System.out.format ("Please enter a number (%d more): ", (5 - i));
list.add (in.nextInt ());
Collections.sort(list, new Comparator<Integer> () {
public int compare (Integer i1, Integer i2) {
return i2 - i1;
System.out.println (list);
} -
I need to find all XML elements and add a line break to the text of each of them
I need to find all XML elements and add a line break to the text of each of them.
Is this possible with a script?I need to go from this ...
to this...
but looking for the XML elements (not paragraphs) and then adding text ...
Thanks for your attention !!! -
Program to find all active services in SICF
Hi all,
Anyone can help me out in finding all the active services in SICF.Is there any program or transaction available for that?
Thanks
Senthili guess this table has it
icfservice
Regards
Raja -
Local Groups Membership on All Servers in the Network
Hi,
I have about 150 servers running Windows Server 2008 R2. Most of them are domain members but some are standalone (workgroup). There is only one Forest and one Domain.
I need to generate a list/report with users names and group names that are member of local "Administrators" and "Remote Desktop Users" groups on every server in the network.
I certainly don't want to log into each server one-by-one to generate reports. I might have to do that on Standalone servers, but at least I want to generate this remotely on all domain joined servers.
Any ideas how it can be done? Windows PowerShell (I would need the script), some other built-in tool, or third-party tool.You can use net localgroup <group> command to get local group membership. To run this remotely, you can use
psexec. You can mainly create a script that gets the list of domain-joined servers from AD and then runs
psexec against them for data extraction.
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
How to find to which table the net payment is posted....
Hi all
i am making payment to a vendor for 3 different invoices in a single payment run (F-58) with cash discount.Now i could like to know that in which tabe the net amount for the all the 3 invoices were posted .
eg:
Invoice No Amt Cash discount Net Amt
8753 12000 1200 10800
9878 27000 2700 24300
10098 21000 2100 18900
Total 60000 6000 54000
Net Amt payable (F-58) 54000
When i m checking it in FBL1N the system is displaying the total payment amt and in a sperate col. the Discount amt.
I want to know in which table the net amt (i.e. Invoice amt - Dicount) will get updated ,so that i can pull the amt from that table for my development.......
Its urgent
Revert
Regards
PraveenHI
Check the TAble BSAK for vendor cleared items or PAYR table
Hope this helps. Assign points if helpful
Regards,
radhika -
ADFS server in NLB cluster unable to reach all servers in the same subnet
I have 2 ADFS (3.0) virtual servers (server 2012 R2 on VMware) in an NLB cluster (setup for Office 365 initially) and want to be able to use the SAML to connect to a couple of Linux servers in the same network to allow SSO to the Linux boxes.
It was working then stopped and now the primary FS server (FS1) cannot ping either Linux box or one of our WS08R2 file and print servers. It can ping all other servers in the same network.
I tried to get a packet capture with MS NetMon 3.4 but it only picked up the successful ping requests.
Firewall is disabled but that made no difference.
NLB cluster configured in Unicast mode as I found Office 365 and another outside service didn't want to work using Multicast or IGMP Multicast.
The really bizarre thing is the secondary FS vm can ping the other boxes even with "ping server -S clusteraddress"
Any suggestions as to where to look to track this down will be most welcome.
Cheers
David
Cheers, DavidHi,
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thanks for your understanding and support.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Rename SAP username - Find all references in the system
Hi all,
we want to rename (copy and create new sap user id) in our SAP system.
Now we have to find all objects and relationships where the old users are specified.
Is there a way how to find all program where the users are specified?
Z-Programs where users are specified?
Z-Customizing tables where users are specified?
Customizing settings where users are specified?
Any ideas?
regards>
CC_BC Team wrote:
> we want to rename (copy and create new sap user id) in our SAP system.
> Is there a way how to find all program where the users are specified?
> Z-Programs where users are specified?
> Z-Customizing tables where users are specified?
> Customizing settings where users are specified?
> Any ideas?
> regards
Last time one of our user changed her last name we create new user id for her and then locked and deleted old account.
I don't think its possible to change username from all documents/objects/change documents which users has created under his/her id. The best, and the only way I think is to create new user id and delete/lock old one.
Regards,
Pawan.
PS: profile parameters and favourites can be copied from old user id to new or any other user id.
Edited by: Pawan Kesari on Aug 17, 2010 8:21 PM -
I am trying to uninstall an older version of bonjour from my older pc but I keep getting a message "the installation package bonjour.msi cannot be found ina folder from which I can install the program." I tried to reinstall ITunes hoping to be able to download the newest version -- which may remove the older version---, but it will not finish the installation without those old Bonjour files being removed. Any help out there to get these files removed?
(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
I have a program that is ran using the command line in windows and the terminal window on Mac or LInux. Is it possible to create an app for the iPad that could run this program. This program does require admin rights.
No.
Maybe you are looking for
-
How do I download Mavericks to a new HDD
I'm just about to rebuild my old MacPro (2008) with a new WD VelociRaptor Hdd, just not sure about how to download the OS x to the drive and get it up and running as the bootable drive? Thanks
-
I verified my email but ipod touch says not verified, I go to redo and its says already verified but Itunes still shows it needs to be verified. I was in the process of creating a new Apple ID for my touch.
-
Print PDF without embedded fonts (for USPTO)
I need to print PDFs that can be uploaded to the US PTO, and for them to be compatible they must not have any embedded fonts. I am using the Acrobat XI Distiller with the configuration file downloaded directly from the PTO website http://www.uspto.go
-
Having trouble with third party upload script...
I have installed a third party upload java app for use in a PHP application I am making (the java app is called Postlet, see:: http://www.postlet.com/ (for the build)). Initially, when I was testing the java, everything worked fine (see: http://www.k
-
Airport Snow compatability with new MacBook Pro?
Hi I was given an old Airport (one of the originals) "Snow" model and was wondering if there is an imcompatability issue with the new MacBook Pro laptops and their modern Airport Extreme Cards with the older basic Airports? Anyone know if this is the