Rajita Stambhampelli

Greenhorn
+ Follow
since Mar 08, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajita Stambhampelli

Am trying to figure it out. Once I get some idea il post here.
It might take some time for me.
Let c how good I can understand and do.
Thank you for the support
Il be back with some code.(If I can any )
10 years ago
Thank you for the suggestion..
As am not very pro in Java .. i would need some help to start up.. Hope i will get some help..
Thank you in advance
10 years ago
Please help me start this....

Create a computer program that solves the given cubes puzzles and
prints the solution(s) in ASCII format into a file in unfolded format
as given below as an example.


- The core of the solution should be written without any add-ons to
the core of the programming language. Use only the defined language
standard (e.g. you can use all features that you find in a standard Sun JDK).
This means that you can use external libraries, but your program
should still produce the wanted solutions after removing those
parts. For example, if you would decide to use a logging library
then your program would still work correctly after removing all
parts that use the logging library. You can also use JUnit.
- Optimize for speed of development and quality of development. Do
not optimize for runtime execution speed. The problem is small and
you can afford to waste a few milli seconds. It is better to focus
on getting a working solution faster.
- Deliver your result in the best professional quality you can
produce. Polish your solution. Make a master piece out of it. It
is part of this task to compare what different people consider to
be a professional quality solution.
- You do not need to create a "reader" for the input pieces. Just
encode the input pieces directly into your program in your
programming language of choice.

Have a look at the following link for some background information:
http://www.happycube.com/

Here is an example:
The pieces of the blue cube look as follows:
o o o o o
ooo ooooo oooo
ooooo ooo oooo
ooo ooooo oooo
o o o o o
o o o o o o
oooo ooooo oooo
oooo ooo oooo
oooo ooooo oooo
oo o o o oo oo

One of the solutions in "unfolded form" looks as follows:
o o o o o
ooo ooooo ooo
ooooo ooo ooooo
ooo ooooo ooo
o o oo o
o o
ooooo
ooo
ooooo
o o
o o o
ooooo
ooo
ooooo
o o o
o o
oooo
oooo
oooo
oo o

Additional challenge 1 : All unique solutions :
In the base task you are only required to find one solution and to
print it into a file. The additional challenge 1 is to extend your
program to find all unique solutions. A solution is unique if it
cannot be transformed into another solution by rotating or mirroring
in 3 dimensions.

Additional challenge 2 : How many different cubes exist :
In the file that you got together with this description you can see
the pieces of 4 different cubes. The pieces are such that you can plug
them together in a plane in the order:
1 2 3
4 5 6
And you can create a cube out of them. How many different sets of
pieces that fulfill these two criteria exist? One set is different
from the other if not all pieces in one set have a corresponding
matching piece in the other set. A corresponding matching piece is a
piece into which you can transform your piece at hand by rotating or
mirroring it in two dimensions. No side of a piece must be "flat",
e.g. a piece that looks like this:
ooooo
ooooo
ooooo
ooooo
ooooo
would not be allowed. The piece must be physikal producible, e.g a
piece that has a corner like this is not allowed:
o
oooo
oooo
oooo
oooo
Here the corner would easily break and fall off.
10 years ago
Hello Dear friends..,

Am trying to generate PDF using iText in java . i am facing a problem when am trying to retrive a large tables from database.
when table extended to second (or third) page it is merging with the page header (like table content is printing on page header). i would like print page header and then the rest of the table in each page.
dnt know what to do ?
please assist me on this
thank you in advance
Rajitha
Thankyou Archana
i didnt try this
il try and il let you know. wheather it is working or not .
and one more thing
i would like to skip the first 14 characters while comparing.
any suggestions please

thank you in advance
Thank you for your suggestion,
i have done the same.
Comparing files is ok , but while comparing the files i would like to ignore some lines in both of them for e line 20 in both files contains the rate : 12 343 565 and rate : 36 7838 878 then it shouid not display as the difference.
So i have to ignore the line which starts with rate.
donot know how to achieve this
please help on this

Thank you in advance
Hello Friends,
am trying to compare two log files using java, but in that comparision i would like to ignore some lines which strats with Rate, start, stop....etc.

and i would like to compare them avoiding the first 14 characters (DATE and time format)of the each line.

Dont know how to achieve this please suggest me in this
Thank you in advance
Thanks alot Swastik .
Wil this work for path of the files too ??

Anyways thank you
I will try and let you know the result. i hope it works.

11 years ago

Swastik Dey wrote:Rajitha,

Could you please clarify bit more. By dynamic file name, what exactly do you mean? Is the file name/path entered by the user or is the file name selected based on some condition.



i would like to give the path of the file which is in same machine.
11 years ago

Thank you for the reply

I meant
I have 500 different logfiles and text files , i have to select one file(each time different)from them to search a particular string(this is also dynamic, every time varies) according to the file. and print the results that on which line number i found that string. am confused in how to access file path dynamically through JSP or Html and read line by line and search for the string ? dont know how to start.
please suggest me to start

Thank you in advance
11 years ago
Hello friends

I would like to take file path from the user dynamically from jsp file and i would like search the string in that file (search string also be dynamically given).
i know we can use scanner class for string search, but exactly dont know how to start the program and how to retrive the file path n string dynamically.

please help me in this.

Thank you in advance
11 years ago