 |
|
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-fou
|
| Sign In·View Thread·PermaLink | 5.00/5 (4 votes) |
|
|
|
 |
|
 |
I'm working on a program... jumping ahead a bit:
The most intuitive way I see to traverse an LDAP tree is to recursively search by each objects' 'member' attribute. Indeed almost every object of class 'Group' has a 'member' attribute, but not all of them it seems...
Is this a quirk of javax.naming ? Clearly there is the means to find the children of a OU, since both the AD snap-in in Windows, and Softerra's LDAPBrowser can both do it. I can't. I'm able to pull a very full list of attributes for each object, but not the one I need.
Is there another way to move about a directory structure without looking for the 'member' attribute? A different attribute ? A different understanding of how to navigate an LDAP directory ?
I put this in the Java forums because the C#/.net/VBScript guys seem to have no trouble with this. I'm guessing the functionality is better integrated in to Microsoft products ?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello Java Friends(just changed from c++ to java) As I m new to java but I know the basics . Now the Problem is I am having some java file creating a viewer With Package name test. Now,let me tell first what I did to create a jar file: I copied my test folder in C:\java\ folder. then Created class files here in test folder. then i created a manifest file with contents "main-file:test.testinit" as testinit is my main class.
Now I create jar file like this c:\java\test> jar cvf test.jar MANIFEST.MF *.class jar file is created But when I run jar file it shows error that "Failed to load main-class manifest attribute from c:\java\test\test.jar"
Please suggest me some solution.
Thanks & Regards Yogesh
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Can you post your complete manifest file here? I have just tried a similar test and it works fine, so I suspect a possible error in the manifest.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
yogeshs wrote: then i created a manifest file with contents "main-file:test.testinit"
I don't normally create my own manifests, I let an IDE do it for me and rarely bother checking what's in there so I confess I don't remember the details off the top of my head. Looking at one generated by NetBeans now, it has Main-Class specified, not main-file.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi can anyone please help me out with any idea regarding resolving dashboard issue with web logic 10 ?
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
 |
Try throwing us a bone here Buba. We're good ninja programmers but, and it's a big but [we're talking J-Lo BIG BUT], we kind of need to know what the problem is. So post the problem, maybe a snipet of code [more than 23 lines and the hamster's cry], and we'll do our damnest to help.
Or maybe we'll just eat BLT's all day; you can never tell.
Panic, Chaos, Destruction. My work here is done.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi. thanks for your prompt reply. Basically My project manager hasn't given me code but he has explained some overview of the problem we facing. but once I know the code, I will surely come to you. and hope you'd help me out.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
jazy_smith wrote: but once I know the code, I will surely come to you.
Actually you need to write the code, then you can ask for help. Your question tells us nothing useful about your problem.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
All you Technically smart guys.. I have decide to work on a project of Search Engine on any one of 2 platform..JSP or PHP.. I have worked on various projects related to this theme earlier, but this time i want it to be working on Web. The problem for me is "Crawl the Web".. Could anyone please help that how can i Access the all websites URL.. OK let me explain: In my previous projects i have already developed the concept of ranking a particular URL stored in my table according to frequency of keywords and little more concept.. So now i just wanted to ask two more things.. 1)Could any one please tell me, will it be Possible for me to Crawl The Web i.e i want the all URL available on internet and not just few that are stored in my tables... 2)a little more concept on ranking of webpages like frquency...and now avoiding those fake keyword in webpages and various other good concepts that i can implement...
I will be very thankful for any kind of related help... Please reply soon
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
You have no idea how over your head this subject is. It's a case of if you need to ask, you don't want to know...
May I suggest you read everything on the subject you can find; wikipedia has a lot of information. Next you'll need to build a spider, it must be able to read eight pages at a time that's why we call them spiders, to go and read the web for you. Buy some really big storage devices, you're going to need something in the region of 843 petabytes [1] to store the indexes alone. The easy part is take the HTML from the spiders doing the crawling and get the keywords and any links. How you rank the page is upto you, personally I would +1 for every reference to bunnies and -1 for cats.
[1] figures are +/- 10 orders of magnitude.
Panic, Chaos, Destruction. My work here is done.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Well thanks for Information. Please tell me isn't it possible to use some available spider code or i have to start from scratch. And the thing that you mention about large storage, how can that be avoided by using Html from spider..as you mention.. please reply...
I just wanted to develop a working frame work..but not an actual Search Engine as compared to Google. [not even (20%) in comparison]
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This reply shows your total lack of understanding. The spider [plenty of crawlers available - try searching] retrieves the data for you. You then need to index the data. Search engines DO NOT look at every web-site when performing a search, instead they use a keyword ind...
...why am I bothering? Really, why?
Panic, Chaos, Destruction. My work here is done.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Thanks for understanding my lack of knowledge.. Respected sir.. I have 6 months to develop it and i just need maximum 2 weeks to understand the whole concept of CRAWLING. Today here i just wanted to now -- What problem/consequences/difficulties will be faced by me when i will be having proper knowledge of this Concept almost like yours..
so just please tell me what concepts to LEARN and what will be difficult for me at that time... Hope you get why you are Helping me?? Please reply..
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Go back to my original answer. Look on wikipedia and READ the articles. There is a lot of information there so start reading. - you need to be able to retrieve and index pages. - as you index each page pull out the links. - retrieve and index those.
The likes of google or bing are continuously crawling, looking for new or changed pages. The concept is simple, the practice is hard due to the sheer volume.
Start a crawler going on your / your college's home page and index ONLY that domain; see how big it gets.
Panic, Chaos, Destruction. My work here is done.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Nagy Vilmos wrote: ...why am I bothering? Really, why?
Probably because you are a nice guy, who is motivated by a desire to help others. And every so often you get the sort of feedback that makes it all worthwhile. 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
You should change that for a sarcasm icon!
I am only cuddly in the way that lions are cuddly. Hear me growl "gerr - row - well", scared now?
Panic, Chaos, Destruction. My work here is done.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I am currently in a Distributed Systems Implementation class. My group has created a project, which is a food ordering system. It is coded in Java and uses Microsoft Access to make tables for the users, orders, and items. In this class, we are required to connect our program to two servers, one primary and another back-up. Our professor expects the back-up server to be readily available on another computer if the primary server fails on the first computer. Can anyone explain to me how I would link my java coded proram with access to two servers?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Rather unclear here. Do you mean to start the windows calc program? If yes, then have a look at launching external processes from java; check using this site[^].
Panic, Chaos, Destruction. My work here is done.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi everybody
i'm trying to write a program that uses "brute force" to decrypt an encrypted message (using AES), where I only have the first 96-bits of the 128-bit secret key when i complie i got this exception:
Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded
my code:
public static byte[] encrypt (byte[] plainText , SecretKeySpec spc) throws NoSuchAlgorithmException,GeneralSecurityException { Cipher cipher = Cipher.getInstance("AES"); cipher.init(Cipher.ENCRYPT_MODE,spc); byte[] cipherText = cipher.doFinal( plainText); return cipherText ; }
public static byte[] decrypt (byte[] cipherText , SecretKeySpec spec) throws NoSuchAlgorithmException,GeneralSecurityException { Cipher cipher = Cipher.getInstance("AES"); cipher.init(Cipher.DECRYPT_MODE, spec); byte[] plainText = cipher.doFinal(cipherText); return plainText ; }
public static void readfile(RandomAccessFile file, byte[] bytes) throws Exception { file.seek(0); int offset = 0; int numRead = 0; while (offset < bytes.length && (numRead=file.read(bytes, offset, bytes.length-offset)) >= 0) { offset += numRead; } }
public static void main(String[] args) throws Exception { try { RandomAccessFile cipherfile = new RandomAccessFile( "ciphertext2.dat", "r" );
byte[] bytes = new byte[(int)cipherfile.length()]; readfile(cipherfile,bytes);
RandomAccessFile file = new RandomAccessFile( "partial-key.dat", "r" ); byte[] keybytes = new byte[(int)file.length()+4]; readfile(file,keybytes); for(int i=0;i<256;i++) { keybytes[12]=(byte)i; for(int j=0;j<256;j++) { keybytes[13]=(byte)j; for(int k=0;k<265;k++) { keybytes[14]=(byte)k; for(int l=0;l<265;l++) { keybytes[15]=(byte)l; SecretKeySpec key = new SecretKeySpec(keybytes, "AES"); byte[] plain=new byte[(int)cipherfile.length()]; plain=decrypt (bytes,key); for (int y=0;y<=plain.length;y++) System.out.print((char)plain[y]); } } } }
file.close();
cipherfile.close(); } catch ( FileNotFoundException e) { System.out.println(e); } catch ( IOException e) { System.out.println(e); } }
thanks in advance
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
mesho wrote: sorry, it was a typing error
Are you still getting the same error after correcting this? It looks like your encrypted data may be incorrect.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |