Vote count: 0 I came across a scenario, where I need to use the argument expansion with format command. With Tcl8.5, I am using {*} and it works like charm. But, with Tcl8.4, i have tried eval. But, no luck. % set x "This is stackoverflow" This is stackoverflow % format "%10s %5s %20s" {*}$x This is stackoverflow % eval format "%10s %5s %20s" $x %5s % eval list format "%10s %5s %20s" $x format %10s %5s %20s This is stackoverflow % eval [list format "%10s %5s %20s" $x] not enough arguments for all format specifiers % eval format "%10s %5s %20s" [list $x] %5s % eval format "%10s %5s %20s" [concat $x] %5s What is my mistake here ? asked 36 secs agoDinesh This entry passed through the Full-Text ...
ادامه مطلبVote count: 0 Ok, I have an issue with my forms and I think I'm missing something simple here but just am not seeing it. I'm working in VB.NET, VS2012, Entity 6+, SQL database. I have 2 forms. Main form and Child form. I am not using MDIParent/Child properties. What I am doing is on the main form...i have a panel, and i add a control(new child form to that panel). So when i minimize the Main form, it minimizes the child form. I read some places that the mdiParent/child thing was not a good option because it wasn't supported by microsoft anymore. So this panel with the child form was my next option...which works well, everything loads correctly except one thing. On the initial load of my form...
ادامه مطلبVote count: 0 I have used "Date, MM/DD/CCYY" under the column in the RTF, when used in SQL developer I get proper output where CC is replaced with century(e.g. 03/07/2016 as per the format "MM/DD/CCYY" will be 03/07/2116 [21st century]) but in RTF I get the output as 03/07/CC16. I also tried TO_CHAR(FIELD,’MM/DD/CCYY’) but its not working. Can you please let me know the issue, why the format is not working in RTF. Thanks in advance. asked 4 mins agoKushal This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 Some basic information, I currently work on an inteal system which uses jars made by other teams within the company. I'm currently adding some unit testing to our product, however I'm seeing problems when I'm mocking classes provided by the other teams. It appears that their jars are signed and when I try to mock I get these exceptions: Caused by: java.lang.SecurityException: class "com.example.MyClass$$FastClassByCGLIB$$730dfe4e"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:895) at java.lang.ClassLoader.preDefineClass(ClassLoader.java:665) at java.lang.ClassLoader.defineClass(Cl...
ادامه مطلبVote count: 0 I am having troubles formatting columns in a chart to match a specific font, colour, alignment etc. This code, while focused on column A:A, it applies to every single cell in the worksheet. I only want it to affect Column A: Sub PGMNumber() ' ' PGMNumber Macro ' ' Range("A:A").Select With Selection.Font .Name = "Arial" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .Color = -16776961 .TintAndShade = 0 .ThemeFont = xlThemeFontNone End With With Selection.Font .Name = "Arial" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = Fals...
ادامه مطلبVote count: 0 I am trying to get information about files in a folder using https://apis.live.net/v5.0/folderid/files? This particular folder of mine has around 5200 files. So I am getting a readtimeout when I make the above mentioned request. Is there any restriction on the number of files that I can make the request. Note : I am able to successfully retrieve the file information from folder if I restrict the file count to 500 say https://apis.live.net/v5.0/folderid/files?limit=500 asked 5 mins agoMarshiya This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publ...
ادامه مطلبVote count: 0 I have trying to make ajax call with two parameters - number + date. Currently the error that I got is Waing: date_format() expects parameter 1 to be DateTimeInterface, boolean given in... This is the html part Them this is the ajax part $(document).ready(function(){ function showLoader(){ $('.search-background').fadeIn(200); } function hideLoader(){ $('#sub_cont').fadeIn(1500); $('.search-background').fadeOut(200); }; $(".searchBtn").click(function(){ showLoader(); $('#sub_cont').fadeIn(1500); $("#content #sub_cont ").load("getData.php?q=" + $("#date").val() + "&val=" + $("#search").val(), hideLoader()); }); and this is the getData.php include 'db.co.php'; $pdo = Database::coe...
ادامه مطلبVote count: 0 Profile Sharing Server-Side Integration (PayPal-iOS-SDK) Retrieve Customer Information Using a Valid Access Token. but it is not working (customer Information not fetch what is issue in my code. if any idea and code please help me ) $access_token = "A103.9RZJFEa4fW5sQOX6DFsfTTH1tCPV_Om-icjqwrzzi2e1n7Jd_iFYBkrCCK_2ENsg.W5-JERJfcL6VphiZEbjeOLA-IAe"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.paypal.com/v1/identity/openidcoect/userinfo/?schema=openid"); curl_setopt($ch, CURLOPT_HEADER, "Content-Type:application/json"); curl_setopt($ch, CURLOPT_HEADER, "Authorization: Bearer ".$access_token); $result1 = curl_exec($ch); curl_close($ch); print_r($result1);die; aske...
ادامه مطلبVote count: -1 i want to build a simple form html and a simple c++ app can get information from form? Just for study and help me can know clearly how an app get information from html webpage! asked 1 min agoĐức Hợp Trần This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: -1 I want to write a program that can take 5 words as input from user. and convert those 5 words into plural. i need to use function plural() only to perform this task and using the following heuristics: if the word ends in 'y', then remove the 'y' and add 'ies' if the word ends in 'o','ch', 's', 'sh', 'x', or 'z' then add 'es' otherwise, just add 's' i am little bit confuse here. asked 1 min agoSiddhesh Palav This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 What do the values within the curly brackets do in this example? { double price = 1234.56 Console.WriteLine("TV{0:F0} is {1:C}" , 2, price); Console.Read(); } Thank you for all help in advance! asked 1 min agoSean Martin This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I want to know what time format has the user chosen in his computer say in his Windows time setting like 12 hr or 24 hour format. I want to detect that and use that as the time format in my Java application. Note: I am aware of the SimpleDateFormat API but that is something I will use only after I can detect what user has selected in Windows time setting. Any help is appreciated. Krishna asked 3 mins agoKrishna Murthy Mirajkar This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 Error Log cat:retrofit.RetrofitError: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $ code : void addSeatPaymnet(@Query("api.key")String key, @Query("userid")String userid, @Query("gender")String gender, @Query("FirmaNo")String FirmaNo, @Query("hatNo")String hatNo, @Query("departure_city")String departure, @Query("seatNo[]")String seatNo, @Query("seferTakipNo")String seferTakipNo, @Query("tarih")String tarih, @Query("price")String price, @Query("destination_city")String destination_city, @Query("No_of_passenger")String No_of_passenger, @Query("credit_card_holder_name")String credit_card_holder_n...
ادامه مطلبVote count: 0 I am using date picker in my applicationWhen i click button it take selected date from date picker and set it to text field set.addEventListener('click',function(e){ textfield.setValue(picker.value); }); It set date as 2016-02-29 18:30:00 +0000 but i want it as 24-02-2016 How can i change date format? asked 37 secs agoDivyesh Savaliya This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 So my program asks the user to input two integers then if the user inputs a string it will display an error message "Invalid! Please input an integer". But after the error message shows up it displays an error. This is the error but I managed to convert the JTextField to String then to Integer Exception in thread "main" java.lang.NumberFormatException: For input string: "a" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at SimpleCalculator1.main(SimpleCalculator1.java:52) And this is my code import javax.swing.*; public class SimpleCalculator1 { publ...
ادامه مطلبVote count: 0 I am trying to use constraint based loading in informatica to load data from more than one source to target on the basis of parent child relation. How can i use more than one source files to achieve the same ? asked 5 mins agosims.2990 This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I've read blog posts about using a Core Data incremental store to implement an object access to/from an Inteet database. I've read that CD stores can also be implemented for a classic file formats (instead of the Apple flavored XML, Binary, or SQLite files). Are there any examples of the latter? (I've been thinking of an atomic store for a file type A, which is usually a few KB, and an incremental store for file type B, which is a list of type A, but can be GB in size. I would need to read type A from either a file directly or as an element of type B.) asked 1 min agoCTMacUser This entry passed through the Full-Text RSS service - if this is your content and you're reading it on...
ادامه مطلبVote count: 0 I am trying to use the Python Interpolation %s for my parameter variable. My variable is name and the value in this variable I would like to insert it where I have put %s My code snippet is: def select_dataset(self, name): # Params name: The name of the dataset e.g. CRM name_element = self.get_element(By.XPATH, '//table[@id="data_configuration_datasets_ct_fields_body"]/tbody/tr/td/div/span[@title="%s" and contains(text(), "%s")]/preceding::input[1]' % name % name).click() The error is: Traceback (most recent call last): File "C:WebdriverClearCore Regression TestClearCore - Regression TestTestCasesDatasetsPage_TestCase.py", line 146, in test_a2_edit_datasets ds.select_dataset("E...
ادامه مطلبVote count: 0 Here i am fetching data using php code.But i want the same code to be convert into json format.I am not getting the way to do it. I have tried it in this way. my code while ($rows = mysql_fetch_array($filter)) { $result['name'] = $rows['name']; $result['id'] = $rows['id']; } $res = json_encode($result); print_r($res); getting result {"name":["sradha","nicky","demo","testing"],"id":["1","2","3","4"]} Here i want it in this below json format [{id:1, name:'sradha'}, {id:2, name:'nicky'}, {id:3, name:'demo'}, {id:3, name:'testing'}]; Please suggest me. Any suggestion will highly appreciate. Thank you in advance. asked 1 min agosradha 1 Answer Vote count: 0 Try this $result = array(...
ادامه مطلبVote count: 0 I want to create a custom decimal format field in sharepoint with structure XXXXX.XXXXX. Example: If you enter 1.05 this field will retu 00001.05000 asked 53 secs agoTuanHV This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلب