ilteris kaplan

Ranch Hand
+ Follow
since Jan 21, 2006
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ilteris kaplan

Hello Folks,

I am working on an academic project which I try to scrape some RSS and having a hard time getting something I need. Basically I am trying to get below:

<item><title>This is the string that I want to get</title>

My code is like below: I am able to get <title>This is the string that I want to get but not only the string itself. I think I am so close.

I would highly appreciate any help.

best,
ilteris


15 years ago
thanks!!
working like a charm.
15 years ago
Hello, I am using regex to check some links on my code and basically I I want to know whether they have certain words in those urls.

The way I am checking this is below:


apparently matches tries to match for the whole newurl to google. I tested it by changing the newurl = "google" and it returned me true. so can someone address me what I am doing wrong here?

thanks a lot.
15 years ago
okay figured out I must compile it outside of the package. lesson is learned.
15 years ago
Hello,

In eclipse I can run my progam just fine but when I try to compile it on the Terminal I get this error:

ilteris:a2z ilteris$ javac Crawling.java
Crawling.java:21: cannot find symbol
symbol : class Crawler
location: class a2z.Crawling
Crawler crawler = new Crawler();
^
Crawling.java:21: cannot find symbol
symbol : class Crawler
location: class a2z.Crawling
Crawler crawler = new Crawler();
^
2 errors

*******************

this is my code. What am I doing wrong?

15 years ago
Hey Stevi,

Thanks a lot for your time. I realized I am dumb once again. Never ends I guess

it's working fine here.

thanks again,
ilteris
15 years ago
Hello All,
Basically I am reading an url and ideally looking for "/comments-all" string. This unfortunately didn't work at all. I tried a very simple "comments" string but it didn't work either. Here's the code below, I think I am missing very simple thing here.

15 years ago
Hello Folks,

I am having an interesting problem here which I couldnt' quite figure out. I am basically trying to use REST service of technorati and I am using java to parse the text. The problem is I couldn't figure out how to go two levels deep with getting child nodes. I was trying this getChildNodes().getChildNodes() but of course it didn't work. Can you tell me what I am doing wrong?

16 years ago
Hi List,

I have a multidimensional array as a field in my class which I declare at the runtime and get its elements values from a php file through parsePHP method that I have.

also calling parsePHP function is running by a thread every 5 seconds,so what I am trying to do is to keep the previous array in an another field called prevArr.

so this is my class and when I trace the prevArr in the getDifference method it gives me the same values as the curArr. I think I am missing something here.

I would appreciate any help.
17 years ago
oh that's so sweet indeed!!

Thanks alot guys.
17 years ago
Hello, so in my code I have three PFont object which I am trying to wrap into an array and pass into another object through a constructor and here is what I got.



what I am wondering is there a nicer way to declare those fonts[] elements other than hardcoding like above. I have tried a for loop but it didn't work out since I coulnd't find a way to reference font1, font2, font3 in a generic way.

What would you guys use instead of this? Thanks alot.
17 years ago
Thanks for the quick response, yep your code made aa lot more sense, and here is what I came up with!



right now the problem is when I try to declare the arrays here:
int metArray[i][] = new int[strs.length];

since I don't have a second indexer, what should I be using here instead?
Am I on the right track?

thanks a lot
17 years ago
Hello,

I am trying to retrieve some information from a php file and the way I am getting the results is just like this:

432
333 99
17 19 22 31 85 76 51 32
9 17 16 5 13 12 14 13


so what I am doing in processing is call String lines[] = p.loadStrings(url); which gives me every line as an element of lines[] array. now what I should do is to use split function to put each element in every line in an array in order to use them later. so something along this way:

// before constructor
int totalPressed[];
int locationPressed[];
int areaOne[];
int areaTwo[];

// I am not even sure if I can do this.
int [][] metArray = {totalPressed, locationPressed, areaOne, areaTwo};




public void parsePHP(String url) {
String lines[] = p.loadStrings(url);
for (int i=0; i < lines.length; i++) {
// I need to find a way to
// push those values into those arrays.
// trying to declare below which doesn't work.
metArray[i][] = int(PApplet.split(lines[i]));
}
}


OF course this is not working
can you tell me what I am missing here?

thanks!
ilteris.
17 years ago
thank you for your kind explanation yuriy.

now back to work!

best
ilteris
17 years ago
oh I thought every class needs a constructor that has a super call in that constructor only. returning to my example then I don't necessarily need that first constructor there right?

instead of that, I can just go ahead and have this constructor below:



and this will work if I have 2 fields that are amplitude and phase in my muscle class.

am I right now?

thanks!!!
[ April 21, 2006: Message edited by: ilteris kaplan ]
17 years ago