Click here to Skip to main content

Predrag Tomasevic - Professional Profile

Summary

62,854
Author
575
Authority
1,444
Debator
40
Editor
2
Enquirer
147
Organiser
1,023
Participant
http://www.linkedin.com/in/ptomasevic
Member since Wednesday, June 27, 2007 (5 years, 11 months)

Contributions

Articles 9 (Legend)
Tech Blogs 0
Messages 338 (Regular)
Q&A Questions 0
Q&A Answers 1
Tips/Tricks 0
Comments 0

Links

Reputation

For more information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege, and the given member types also gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilverAdmin
Store personal files in your account areaplatinumplatinumSitebuilder, Subeditor, Supporter, Editor, Staff
Have live hyperlinks in your biographybronzebronzebronzebronzebronzebronzesilverSubeditor, Protector, Editor, Staff, Admin
Edit a Question in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Edit an Answer in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Delete a Question in Q&AYesSubeditor, Protector, Editor, Admin
Delete an Answer in Q&AYesSubeditor, Protector, Editor, Admin
Report an Articlesilversilversilversilver
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubeditor, Mentor, Protector, Editor, Staff, Admin
Edit other members' articlesSubeditor, Protector, Editor, Admin
Create an article without requiring moderationplatinumSubeditor, Mentor, Protector, Editor, Staff, Admin
Report a forum messagesilversilverbronzeProtector, Editor, Admin
Create a new tagsilversilversilversilverAdmin
Modify a tagsilversilversilversilverAdmin

Actions with a green tick can be performed by this member.


 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130619.1 | Last Updated 20 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid

You must Sign In to use this message board.
Search this forum  
GeneralC# .NET List of timezones for TimeZoneInfo.FindSystemTimeZoneById Pin
Monday, April 25, 2011 9:54am by Predrag Tomasevic
    /*
Morocco Standard Time           (GMT) Casablanca
GMT Standard Time               (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
Greenwich Standard Time         (GMT) Monrovia, Reykjavik
W. Europe Standard Time         (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Central Europe Standard Time    (GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
Romance Standard Time           (GMT+01:00) Brussels, Copenhagen, Madrid, Paris
Central European Standard Time  (GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb
W. Central Africa Standard Time (GMT+01:00) West Central Africa
Jordan Standard Time            (GMT+02:00) Amman
GTB Standard Time               (GMT+02:00) Athens, Bucharest, Istanbul
Middle East Standard Time       (GMT+02:00) Beirut
Egypt Standard Time             (GMT+02:00) Cairo
South Africa Standard Time      (GMT+02:00) Harare, Pretoria
FLE Standard Time               (GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius
Israel Standard Time            (GMT+02:00) Jerusalem
E. Europe Standard Time         (GMT+02:00) Minsk
Namibia Standard Time           (GMT+02:00) Windhoek
Arabic Standard Time            (GMT+03:00) Baghdad
Arab Standard Time              (GMT+03:00) Kuwait, Riyadh
Russian Standard Time           (GMT+03:00) Moscow, St. Petersburg, Volgograd
E. Africa Standard Time         (GMT+03:00) Nairobi
Georgian Standard Time          (GMT+03:00) Tbilisi
Iran Standard Time              (GMT+03:30) Tehran
Arabian Standard Time           (GMT+04:00) Abu Dhabi, Muscat
Azerbaijan Standard Time        (GMT+04:00) Baku
Mauritius Standard Time         (GMT+04:00) Port Louis
Caucasus Standard Time          (GMT+04:00) Yerevan
Afghanistan Standard Time       (GMT+04:30) Kabul
Ekaterinburg Standard Time      (GMT+05:00) Ekaterinburg
Pakistan Standard Time          (GMT+05:00) Islamabad, Karachi
West Asia Standard Time         (GMT+05:00) Tashkent
India Standard Time             (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi
Sri Lanka Standard Time         (GMT+05:30) Sri Jayawardenepura
Nepal Standard Time             (GMT+05:45) Kathmandu
N. Central Asia Standard Time   (GMT+06:00) Almaty, Novosibirsk
Central Asia Standard Time      (GMT+06:00) Astana, Dhaka
Myanmar Standard Time           (GMT+06:30) Yangon (Rangoon)
SE Asia Standard Time           (GMT+07:00) Bangkok, Hanoi, Jakarta
North Asia Standard Time        (GMT+07:00) Krasnoyarsk
China Standard Time             (GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi
North Asia East Standard Time   (GMT+08:00) Irkutsk, Ulaan Bataar
Singapore Standard Time         (GMT+08:00) Kuala Lumpur, Singapore
W. Australia Standard Time      (GMT+08:00) Perth
Taipei Standard Time            (GMT+08:00) Taipei
Tokyo Standard Time             (GMT+09:00) Osaka, Sapporo, Tokyo
Korea Standard Time             (GMT+09:00) Seoul
Yakutsk Standard Time           (GMT+09:00) Yakutsk
Cen. Australia Standard Time    (GMT+09:30) Adelaide
AUS Central Standard Time       (GMT+09:30) Darwin
E. Australia Standard Time      (GMT+10:00) Brisbane
AUS Eastern Standard Time       (GMT+10:00) Canberra, Melbourne, Sydney
West Pacific Standard Time      (GMT+10:00) Guam, Port Moresby
Tasmania Standard Time          (GMT+10:00) Hobart
Vladivostok Standard Time       (GMT+10:00) Vladivostok
Central Pacific Standard Time   (GMT+11:00) Magadan, Solomon Is., New Caledonia
New Zealand Standard Time       (GMT+12:00) Auckland, Wellington
Fiji Standard Time              (GMT+12:00) Fiji, Kamchatka, Marshall Is.
Tonga Standard Time             (GMT+13:00) Nuku'alofa
Azores Standard Time            (GMT-01:00) Azores
Cape Verde Standard Time        (GMT-01:00) Cape Verde Is.
Mid-Atlantic Standard Time      (GMT-02:00) Mid-Atlantic
E. South America Standard Time  (GMT-03:00) Brasilia
Argentina Standard Time         (GMT-03:00) Buenos Aires
SA Eastern Standard Time        (GMT-03:00) Georgetown
Greenland Standard Time         (GMT-03:00) Greenland
Montevideo Standard Time        (GMT-03:00) Montevideo
Newfoundland Standard Time      (GMT-03:30) Newfoundland
Atlantic Standard Time          (GMT-04:00) Atlantic Time (Canada)
SA Western Standard Time        (GMT-04:00) La Paz
Central Brazilian Standard Time (GMT-04:00) Manaus
Pacific SA Standard Time        (GMT-04:00) Santiago
Venezuela Standard Time         (GMT-04:30) Caracas
SA Pacific Standard Time        (GMT-05:00) Bogota, Lima, Quito, Rio Branco
Eastern Standard Time           (GMT-05:00) Eastern Time (US & Canada)
US Eastern Standard Time        (GMT-05:00) Indiana (East)
Central America Standard Time   (GMT-06:00) Central America
Central Standard Time           (GMT-06:00) Central Time (US & Canada)
Central Standard Time (Mexico)  (GMT-06:00) Guadalajara, Mexico City, Monterrey
Canada Central Standard Time    (GMT-06:00) Saskatchewan
US Mountain Standard Time       (GMT-07:00) Arizona
Mountain Standard Time (Mexico) (GMT-07:00) Chihuahua, La Paz, Mazatlan
Mountain Standard Time          (GMT-07:00) Mountain Time (US & Canada)
Pacific Standard Time           (GMT-08:00) Pacific Time (US & Canada)
Pacific Standard Time (Mexico)  (GMT-08:00) Tijuana, Baja California
Alaskan Standard Time           (GMT-09:00) Alaska
Hawaiian Standard Time          (GMT-10:00) Hawaii
Samoa Standard Time             (GMT-11:00) Midway Island, Samoa
Dateline Standard Time          (GMT-12:00) International Date Line West
     */

 
GeneralWord AutoSaver Pin
Wednesday, January 5, 2011 4:13pm by Predrag Tomasevic
Prerequisite: .NET Framework 2.0, you can download it from Microsoft's site
 

1. Download binary from this link and unpack it anywhere on your disk (.exe and .config file must remain together)
2. Double click on WordAutoSaver.exe to start the program
3. Select monitor directory - directory where you save your word files. DO NOT select root directory (C:\\ or D:\\ or any other) but rather go deeper into structure (C:\\Documents is OK)
4. Select archive directory - where your files will be archived. Again - DO NOT select root directory
5. 'Save files from last x minutes' setting allows you to influence how often backup process will be triggered. If you select 10 minutes, than your file will be backed-up every 10 minutes
6. 'Send (CTRL+S)', your file will not be backed up if it hasn't changed in that, previously mentioned, 10 minute period. If you are one of those persons that forgets to Save their document, check this box and WordAutoSaver will send CTRL+S for you every time before starting the backup of file (kinda like AutoSave).
7. 'Delete files older than x minutes', you of course do not wish to keep backup files in archives for too long (after all you are saving them in your normal directory) which can be influenced with this setting - default is 2 days (2 * 24 * 60).
 
Couple settings that are not exposed in UI (they are embedded in config file):
-MonitorFilter1: filter used for finding files to backup in MonitorDir
-MonitorFilter2: another field if you wish another file type
-MonitorProcessName: name of process (in your TaskManager) that you want to target for sending CTRL+S
(You can change these settings to MonitorFilter1: *.xls, MonitorProcessName: EXCEL, in order to have same AutoSave functionality for Excel)
 
-StartMinimized: if you want to have WordAutoSaver start with Windows (by coping shortcut to it into Start Menu -> Startup), you'll probably want to start it minimized (replace False with True)
 

That's it. Leave comments/contact me if you run into any kind of problems.
 

*Utility is dedicated to my friend Stephen Vizinczey -> http://stephenvizinczey.com/
 
GeneraliPhone NSString initWithFormat options / NSLog format specifiers Pin
Tuesday, November 9, 2010 9:51am by Predrag Tomasevic
%@ Object
%d, %i signed int
%u unsigned int
%f float/double
 
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
 
%lld long long
%llu unsigned long long
%Lf long double
 
http://www.cocoadev.com/index.pl?NSLog
 
GeneralAdding custom headers to Silverlight's WCF calls Pin
Sunday, February 28, 2010 1:00pm by Predrag Tomasevic
Bah... this proved tougher than I originally thought, because all I could find were bunch of smart-ass comments that contained no code. You'll hopefully evade that path by following these steps:
 
1. Download Solution from -> http://www.sendspace.com/file/465sb6[^]
2. Open .sln, press F5 -> press Button -> you should get dialog with bunch of variables showing that server is aware of calling client's credentials and culture
3. Open SilverlightWcf/Page.xaml.cs to see how calls are initialized - note that you only set culture/username/password during proxy's creation.
 
How to import this into your solution? Easy:
 
1. Copy Util.CustomHeader.Silverlight & Util.CustomHeader.WcfService projects into your solution's folder
2. Reference Util.CustomHeaders.Silverlight from your Silverlight project, Util.CustomHeaders.WcfService from your WCF project
3. Decorate your WCF service with [CustomHeadersBehaviorAttribute] attribute (alternatively you can set this in config by using CustomHeadersBehavior, see ref #3 for more details)
4. Add reference to your WCF service from Silverlight project and after proxy class generation is finished you'll use code like this to initialize your service:
 
public Page()
{
    InitializeComponent();
 
    ClientChannelBinding binding = new ClientChannelBinding();
    ClientChannelBinding.Culture = "sr-Latn-CS";
    ClientChannelBinding.Username = "username";
    ClientChannelBinding.Password = "password";
 
    EndpointAddress endpoint = new EndpointAddress(
        "http://localhost:1654/SilverlightWcf.Web/Services/Service1.svc");
 
    client = new SilverlightWcf.ServiceReference1.Service1Client(binding, endpoint);
    client.GetDataCompleted += client_GetDataCompleted;
}
 
private ServiceReference1.Service1Client client;
 
Of course, I recommend that you create some kind of WebServiceFactory.cs in your Silverlight project that will create services for you and do this initialization... while also exposing that web service URI in some config.
 
For those interested in details of how this works:
 
#1 - http://fluffyidentity.blogspot.com/2008/08/custom-wcf-channel-in-silverlight.html[^]
#2 - http://geekswithblogs.net/SunnyCoder/archive/2009/03/15/username-password-amp-ws-security-with-silverlight.aspx[^]
#3 - http://weblogs.asp.net/paolopia/archive/2007/08/23/writing-a-wcf-message-inspector.aspx[^]
 
GeneralAzure Blackjack! Pin
Sunday, December 20, 2009 2:44pm by Predrag Tomasevic
If you have any comments on Azure Blackjack, be free to share them! Wink | ;)
GeneralRe: Azure Blackjack! PinmemberDrew Stainton21-Dec-09 8:22 
GeneralRe: Azure Blackjack! [modified] PinmemberPredrag Tomasevic21-Dec-09 8:34 
GeneralRe: Azure Blackjack! PinmemberDrew Stainton21-Dec-09 8:45 
GeneralRe: Azure Blackjack! PinmemberDrew Stainton21-Dec-09 11:23 
GeneralRe: Azure Blackjack! PinmemberPredrag Tomasevic21-Dec-09 11:33 
GeneralRe: Azure Blackjack! PinmemberDrew Stainton21-Dec-09 11:41 
GeneralRe: Azure Blackjack! PinmemberPredrag Tomasevic21-Dec-09 11:50 
GeneralRe: Azure Blackjack! PinmemberDrew Stainton21-Dec-09 12:07 
Ya, you can count and have an advantage. It's a lot tougher in real-life, though, because of all the distractions and other players at the table. I've heard that most online blackjack games reshuffle after each hand, so counting doesn't work on them.
 
Fun to learn, though. I went through all that back in the late 80's before a trip to Vegas where I got to try everything I learned. I won some money that time, but probably more due to luck than my counting ability.
 
Cheers,
Drew.
GeneralRe: Azure Blackjack! PinmemberPredrag Tomasevic21-Dec-09 12:18 
GeneralRe: Azure Blackjack! PinmemberDrew Stainton21-Dec-09 12:22