Win a copy of Rust Web Development this week in the Other Languages forum!

Rohit Shaarma

Greenhorn
+ Follow
since Nov 16, 2011
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 Rohit Shaarma

Thanks Jesper, i have posted there too but no help yet...
9 years ago
Hi Guys,

I have a problem with posting updates to facebook through graph API,when i post something to facebook through graph API only like and comment are shown for that update in facebook after a little googling i found out that we should use me/links as connection while posting and that's working great i can see share icon for all the link updates i am making now but the problem is how should i handle the case for normal text updates without any links in them how should i post such updates in order to get share icon in facebook, thanks in advance.






-Regards
Rohit
9 years ago
Currently have implemented using javascript replace function by replacing the special characters with unicode characters, its working great just wondering whether handling on UI side is appropriate or not.
9 years ago
Yeah we can replace string with unicode character but that looks good if we are dealing with a single symbol/emoticon but how should be the design if we want to take care of multiple symbols/emoticons.
would just having a map of all the spl symbols and then checking for their presence in the messages and then replacing them would do??
9 years ago
Hi All,


I am stuck with an issue,i am fetching feeds from different social networking sites and displaying them somewhere while doing this few characters like <3 is converted to a heart symbol there are many other characters like smileys etc, so just wanna know what would be the best approach to handle these conversions in JAVA.





-Regards,
Rohit Sharma
9 years ago
Thanks a lot Jasper i just figured out.
9 years ago
Thank you Matthew for the reply.
I tried doing that but whatever type of of class literal i pass every time it shows on of these compilation errors.

The method executeQuery(String, Class<T>, Parameter...) in the type FacebookClient is not applicable for the arguments (String,
Class<String>, String)

9 years ago
Hi All,

I need to call this below method




but i am not getting how to pass argument for Class<T> parameter, any help is greatly appreciated.



-Regards,
Rohit Sharma
9 years ago
I found a simple solution. I just checked whether either current time or scheduled time were in DST, based on that i added/substracted the DST offset. below is a sample code snippet






Regards,
Rohit Sharma
10 years ago
Thank you Jesper, basically my problem is i have a scheduler which runs every day at 12:15PM and due to DST it is running an hour before i.e, at 11:15PM and since as you said TimeZone doesnt provide any rule it is just providing an usigned offset of 1 hour(3600000 msec) what would be the easiest way to handle this issue according to you.




Regards,
Rohit Sharma
10 years ago
Hi,

I have a problem with day light saving time in java, i am able to get time zone offset (i.e, the amount of time by which the clock is forwarded or reversed) but i am not able to get the condition when the clock is forwarded/reversed.

Any help is greatly appreciated.


Thanks in advance
Rohit Sharma
10 years ago