prince davies

Ranch Hand
+ Follow
since May 08, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by prince davies


It prints alert("fer in js folder");, alert("fer in js folder2");
but it does not print alert("fer in js folder3"); Does that mean, it does not create btn and not able to call function on?

Onselect of value in combobox throws this error.

ISSUE
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS122335; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)
Timestamp: Thu, 20 Dec 2012 06:16:19 UTC


Message: 'null' is null or not an object
Line: 9
Char: 5
Code: 0
URI: http://xxx.xxx.xxx.2xx:7001/lus-refer_os-uge-web/js/ext/from-markup.js





JSP : SearchFields.jsp
Code






Thanks,

Compilation of JSP File '/jsp/addtrunk.jsp' failed:
--------------------------------------------------------------------------------

addtrunk.jsp:1:1: The page failed validation from validator: "org.xml.sax.SAXParseException: Attribute "value" was already specified for element "html:text".".
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
^------------------------------------------------^


web.xml






struts config file






addtrunk.jsp'


9 years ago


weblogic 10.3

I have a war file and I deployed it in weblogic, it threw some error. I wanted to delete it. I deleted by checking

the check box to the application and clicked delete button on the console. It disappeared from the pane. I do not

see any change center as mentinoed in the document to activate the changes. So I go ahead and shut down my server

and restarted. When I restart the server, i notice the same error is being thrown and seen on the console.


question : even if i deleted the war file and shut down server after deleting it. It loads the same war file while

starting the server.How does server find the path and war file to load it?

How do I remove it premanently?

I do not see change center on my console? Do I need that to make it removed?


What is the error mentioned below all about? how do I fix it?


Please note that this application(war) was deployed successfully in weblogic 8.3 previously and I am trying to

deploy it in weblogic 10.3 now. Its throwing this error always.


Change Center
View changes and restarts
Pending Changes
In the table for Pending Changes, i do not see my war file name in that table.It says there are no items to

display.Thats why i am not able to activate may changes. this weblogic 10.3






9 years ago
looping through folders and read file name and cut string of file_id
creat a new CSV file
save this cut value in file_id column of csv file and file name in file_name column


first file
files are located in 2010 -> 03 -->13
sasmm_fsbc_durds_id00020532_t20100313192606.dat

second file
files are located in 2012 -> 09 -->13
sasmm_fsbc_durds_id00020513_t20120913003312.dat

OUTPUT CSV file

file_id | file_name
20532 | sasmm_fsbc_durds_id00020532_t20100313192606.dat
20513 | sasmm_fsbc_durds_id00020513_t20120913003312.dat


9 years ago


My files are located in UNIX Server, i want to extract file_id and file_name from each file and save it in a CSV file. How do I do that?

I have folders in unix environment, for example directory structure is as follows

year folder -> inside 12 months folders -> inside 30/31 days folders I did ls command for 2012 year as follows

2009 2010 2011 2012
$ cd 2012
$ ls
01 02 03 04 05 06 07 08 09
$ cd 09
$ ls
01 02 03 04 05 06 07 08 09 10 11 12 13
$ cd 13
$ ls

there are folders for each year like 2009,2010,2011 and 2012
and folder has 12 folders for each months like 01,02,03,04,05,06,07,08,09,10,11,12
and each month folder has 31 folders for days like 1,2,3, etc... 29,30,31


inside each day folder has files..

the file name is as follows,
sasmm_fsbc_durds_id00020532_t20100313192606.dat.trnsfr.gz
sasmm_fsbc_durds_id00020513_t20120913003312.dat.trnsfr.gz

I want to cut 20532 in a clumn and the whole file name in second column sasmm_fsbc_durds_id00020532_t20100313192606.dat

CSV file will look like

file_id file_name
20532 sasmm_fsbc_durds_id00020532_t20100313192606.dat
20513 sasmm_fsbc_durds_id00020513_t20120913003312.dat



file_id is to be cut from the file name , if you look at the file name closely, you can see; after 000 , file_ids in above file name examples , they are 20532 and 20513.


How do I loop through year 2012 and 12 months folders and 31 days folders inside it and create csv file which has data as shown above?

I am very new unix, please help me out.. If you provide a code , that would be great.. thanks..
9 years ago

Question 1:
How do I fetch 2 million records from database ?


Question 2 :

How do I remove duplicate values in one of the fields? Can I use hashset?

I have a date object , this can be associated with any time zone. How do I convert this date object into a date object which has time zone GMT. The input and output object should be date object. Please do not convert and return a string object. thats not I wanted. I wanted a date object with gmt time zone or remove the time zone portion.

Can anybody help me out to resolve this issue or give me a better solution? I have gone through many websites and forums, evryone gives hlf-cooked answers or wrong answers.

Thanks,
10 years ago

you made the String suffix equal "xml" in the main method of SimpleFileIndexer

later on, this bit:

view plaincopy to clipboardprint?
if (suffix!=null && !f.getName().endsWith(suffix)) {
return;
}



I grab this example from a website. They used lucene as a search engine and its very quick and clean. So I thought of trying it for my requirement.But here the issue is I need to provide file extension or format as suffix. It s a limitation to my requirement. I never worked on lucene search egine. If you have any idea , please let me know
10 years ago


This is the code for lucene search engine where they asking for suffix to be supplied.
10 years ago
Hi Tim,

Ihave another post where i used lucene as a search engine. But there is a catch , i cant search all file formats, i need to provide file format before running that program. You can find my question @

https://coderanch.com/t/573001/Streams/java/search-content-file-file-search
Heading = search content in a file , file search

Can you please help me out to use that program without providing file format?

Thanks in advance
10 years ago

Thanks a lot Tim.. i sincerely appreciate your help....thank you thank you......

10 years ago

Do you understand why my method returns one big string?



Sorry Tim, I really do not understand why your method returs one big string. can you please explain to me.
10 years ago
if thare 100 values in csv and 1000 files in a folder, i need to take each value from csv file and loop through all files in that directory. that means thre will be 100*1000 times.

How is your method fuctioning for search a value in all files? When i DEBUG your method, it concatenate all values into string and see if that concateneated value exists in each file in that directory.Thats not my requirement. The value return from your method is a list and it contains a string like this "PCONCO100PCONN25 PCORPDMP PCPT1 PCPT2 PCPT3 PCPT4 PCPT5 PCPT6" and then search this value in each file in a folder.It does not seem to be correct. My requirement is take first value eg:-PCONCO100 and search it in all flies in a folder. then take next one PCONN25 and search it in each file located in that folder..so on and on.... I hope you understand my requirement.
10 years ago