Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Rahul Ba

Ranch Hand
+ Follow
since Oct 01, 2008
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 Rahul Ba

I am trying to implement CSRF implementation through EXTJs. I can see below are the steps. That's it. There is no need for CSRF token validation code. I assume Spring automatically takes care of it.
Is there anything need to done further?


2. We need add below dependency


3. Get the values in Html page



4. Send the requests in all requests

1 year ago
We are using Spring MVC Architecture with Ext JS as UI. We are using multiple Asynch. requests in application. We want to implement CSRF token. Now, we can not use new CSRF token with each requests, because Asych. requests can failed. Now, another option is to keep same CSRF token per user session. Now, When we transmit CSRF token from server to UI via (HTTPRequestHeader or cookie) there is possibility that hacker can forge the requests and get CSRF token. Now, hacker can use token to send forge requests. so, how to improve CSRF implementation here.
1 year ago


I want to call a URL in background to update flag in DB. In that view, is there any way with PdfAction(new url), I can accomplish that.
The Idea behind that to see how many times PDF got opened.
1 year ago
I wanted to load image from server when user opens an email. This is because I want to track users who reads an email.
Now, my query here is how to load image from server and and send some parameters.
1 year ago
We sent email with attachment. Attachment can be in pdf, xls, csv, txt formats. We want know how many user opened the file.so need some mechanism.
1 year ago
We have an application which sends reports by email. These reports are in the formats pdf, csv, xls, xlsx. A few of the reports are generated by our application and a few of them are generated by a third party engine like BO.

Now, we want add feature where whenever a user opens a report (i.e. the actual file) we should get a notifcation. Therefore we can find out how many actual users open the report
1 year ago
Hello, I have 600 MB of the XML file. Need to read that update the xml file. Is there any way we can do it with fast performance.
Thanks !
3 years ago
Thanks Heena, It make sense !
4 years ago
I have task for Purging the data from database. This data is from Audit table, hence it does not have any relationship with the other tables. There are around 40 audit tables and it has timestamp. I want to derive best strategy to purge the data. I have idea as below, please let me know your opinion.

My Strategy:
1. I will write a Store procedure which will delete data from all 40 tables which are more than 1 months old.
2. I will write a java program to call SP and inturn Java program will be called by scheduler.
3. The Schedule will trigger at 15 of each month.

What is your opinion on the same, is my steps can be improved in tuns of performance.

Thank you !
4 years ago
My answer is as follows please correct me If I am wrong




6 years ago

How many object are created in each of the following statements.



Please explain me. I know in line 1 only one object is created. What about Line 2 and Line 3?
6 years ago
No, It was only interview question. Thanks for help.
Can you tell me how the code snippet of the following problem look like....

"You have thread T1, T2 and T3, how will you ensure that thread T2 run after T1 and thread T3 run after T2?"

I have given try to code this...Please tell me whether this is correct or not?


I was thinking because, each thread keeps copy variable which is not shared to any other thread. i.e
When multiple threads using the same variable, each thread will have its own copy of the local cache for that variable. So, when it's updating the value, it is actually updated in the local cache not in the main variable memory.
6 years ago


The output is:

Thread 1 :
Test Value : 10
Thread 2 :
Test Value : 10

but I was expecting output as:


Thread 1 :
Test Value : 10
Thread 2 :
Test Value : 0


why I am wrong?
6 years ago