unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Browser font size changes web layout === My website layout changes if the user increases or decreases the browser's (any browser) font size. Would someone kindly look at my website (www.heathersoos.ca) and suggest (simple explanation please) how I can control this with css. I would gladly include any coding from my site to help resolve this issue. Your help would be greatly appreciated - Thanks.
1
[ 2, 16495, 9978, 1072, 1693, 2741, 9106, 800, 3726, 3726, 51, 2271, 9106, 1693, 100, 14, 4155, 7104, 54, 20241, 14, 16495, 22, 18, 13, 5, 6001, 16495, 6, 9978, 1072, 9, 83, 737, 22215, 361, 35, 51, 2271, 13, 5, 6483, 9, 21857, 44...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I detect errors in an HTML document fragment with Ruby? === I'm collecting some HTML formatted content from a web form. Before saving this HTML content, I'd like to do a quick sanity check on it to make sure it looks well-formed (no unclosed tags, no invalid markup). **Using Ruby and/or with any popular gems, can I check an HTML fragment string like:** <p>foo</p><h1>Unclosed H1<p>bar</p> **and discover things like the unclosed h1 tag?** I thought Nokogiri would come to my rescue here, but no. >> Nokogiri::HTML::DocumentFragment.parse("<p>foo</p><h1>Unclosed H1<p>bar</p>").errors => []
0
[ 2, 184, 92, 31, 9092, 11908, 19, 40, 13, 15895, 4492, 14847, 29, 10811, 60, 800, 3726, 3726, 31, 22, 79, 10079, 109, 13, 15895, 13, 29850, 2331, 37, 21, 2741, 505, 9, 115, 7599, 48, 13, 15895, 2331, 15, 31, 22, 43, 101, 20, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP: convert .dict to array === how can i convert entries from a .dict file like: > aveu > acknowledgement, admission to an php array like > $array['aveu'] = array( 1 => 'acknowledgement', 2 => 'admission'); thanks for any help!
0
[ 2, 13, 26120, 45, 8406, 13, 9, 16315, 20, 7718, 800, 3726, 3726, 184, 92, 31, 8406, 11399, 37, 21, 13, 9, 16315, 3893, 101, 45, 13, 1, 21, 195, 291, 13, 1, 27878, 15, 8050, 20, 40, 13, 26120, 7718, 101, 13, 1, 5579, 8576, 93...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to send SOAP request using python === My googling and reading examples not help me and I decided to ask my question here. So, I want to send SOAP request using python to http://secret_ip/RSNetGain/RicoServer/InventorySoap.asmx?WSDL I have arguments that need to input in the xml form. Here they are (27 args): 0,2,'city',0,'Blaga',1,'street','Chudinovski','50','','13','',0,2,'city',0,'Blaga',1,'street','Chudinovski','52','','15','',0,0,1 And here xml form where instead of INT and STRING must stay my 27 args: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <CheckAvailability xmlns="http://ukrtelecom.net/webservices/Integration/BillingInventory"> <requests> <AvailabilityRequest> <departmentId>int</departmentId> <address> <settlementType>int</settlementType> <settlementTypeName>string</settlementTypeName> <settlementId>int</settlementId> <settlementName>string</settlementName> <streetType>int</streetType> <streetTypeName>string</streetTypeName> <streetName>string</streetName> <buildingNo>string</buildingNo> <auxilaryNo>string</auxilaryNo> <apartmentNo>string</apartmentNo> <auxilaryInfo>string</auxilaryInfo> </address> </AvailabilityRequest> <AvailabilityRequest> <departmentId>int</departmentId> <address> <settlementType>int</settlementType> <settlementTypeName>string</settlementTypeName> <settlementId>int</settlementId> <settlementName>string</settlementName> <streetType>int</streetType> <streetTypeName>string</streetTypeName> <streetName>string</streetName> <buildingNo>string</buildingNo> <auxilaryNo>string</auxilaryNo> <apartmentNo>string</apartmentNo> <auxilaryInfo>string</auxilaryInfo> </address> </AvailabilityRequest> </requests> <connectionType>int</connectionType> <equipmentType>int</equipmentType> <activityType>int</activityType> </CheckAvailability> </soap:Body> </soap:Envelope> Show me, please, example of SOAP request with my xml form and args.
0
[ 2, 184, 20, 2660, 6447, 3772, 568, 20059, 800, 3726, 3726, 51, 162, 5598, 802, 17, 1876, 3770, 52, 448, 55, 17, 31, 868, 20, 1349, 51, 1301, 235, 9, 86, 15, 31, 259, 20, 2660, 6447, 3772, 568, 20059, 20, 7775, 6903, 17902, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
possible to launch android app via NFC with passing parameters === I wonder is it possible to not just simply launch an Android app (which we plan to develop ourselves allowing for that purpose) by having the NFC signal include some parameters and pass such parameters to the Android app via NFC so that, dependent on the parameter passed, e.g. a certain part of the app is accessed and/or the opening app automatically reads and saved the chips serial number? Are such a more advanced features possible using NFC is is it limited just to "launch that app" and that's it? THANKS A MILLION
0
[ 2, 938, 20, 3394, 13005, 4865, 1197, 25161, 29, 2848, 12905, 800, 3726, 3726, 31, 2666, 25, 32, 938, 20, 52, 114, 1659, 3394, 40, 13005, 4865, 13, 5, 2140, 95, 944, 20, 2803, 10021, 2719, 26, 30, 2131, 6, 34, 452, 14, 25161, 280...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Basic Java - Can one inner class access another? === This is, what I think is a basic java question here: This is for an Android project. I have this setup: public class MyFragmentActivity extends FragmentActivity implements ActionBar.TabListener { // lots of code edited out public static class RateFragment extends Fragment { // lots of code edited out class InsertTask extends AsyncTask<String, String, Void> { protected void onPostExecute(Void v) { { // I need to access ReviewTask here new ReviewTask().execute(); } } } public static class RateFragment extendsListFragment { class ReviewTask extends AsyncTask<String, String, Void> { // code } } } I am really asking a basic Java question. I know its not the best method in Android. If you must know what I am doing: (If this is confusing, this information is low priority, just for some context) I call InsertTask when a button is pressed in RateFragment and inserts data into a MySQL database. This is what I want to do in the above code: In InsertTask, at the end, call ReviewTask in the other inner class. This will update the listview (which is in the other tab). Can ReviewTask be reached from InsertTask?
0
[ 2, 2125, 8247, 13, 8, 92, 53, 3754, 718, 1381, 226, 60, 800, 3726, 3726, 48, 25, 15, 98, 31, 277, 25, 21, 2125, 8247, 1301, 235, 45, 48, 25, 26, 40, 13005, 669, 9, 31, 57, 48, 18161, 45, 317, 718, 51, 22133, 1130, 19348, 907...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Facebook - Make a like button inside the iframe of a page tab === So Im making an page tab that changes its content depeding on the visitor has liked the facebook page (or not) where the page tab is installed. In present the like button is top right of the page, outside the iframe. MY question is: Is is possible to make such button inside the IFRAME of the page tab? How? Thanks
0
[ 2, 9090, 13, 8, 233, 21, 101, 5167, 572, 14, 31, 8361, 16, 21, 2478, 6523, 800, 3726, 3726, 86, 797, 544, 40, 2478, 6523, 30, 1693, 82, 2331, 121, 3631, 68, 27, 14, 10875, 63, 3345, 14, 9090, 2478, 13, 5, 248, 52, 6, 113, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code folding (#pragma region) in Qt creator === Is there something similar to explicit code regions for folding in Qt Creator: #pragma region Region_1 void Test() {} void Test2() {} void Test3() {} #pragma endregion Region_1 I can see [folding for logical][1] code blocks, but do not know how to explicitly set such a block. [1]: http://www.freeimagehosting.net/9a5a7
0
[ 2, 1797, 14516, 13, 5, 5910, 7310, 14336, 632, 6, 19, 2593, 38, 9247, 800, 3726, 3726, 25, 80, 301, 835, 20, 14990, 1797, 3332, 26, 14516, 19, 2593, 38, 9247, 45, 6926, 7310, 14336, 632, 632, 1, 165, 11364, 1289, 5, 6, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Turn multiple repetitive MySQL queries into one? === UPDATE some_table set rank=1 WHERE id=25 UPDATE some_table set rank=2 WHERE id=15 UPDATE some_table set rank=3 WHERE id=10 UPDATE some_table set rank=4 WHERE id=12 UPDATE some_table set rank=5 WHERE id=13 UPDATE some_table set rank=6 WHERE id=14 UPDATE some_table set rank=7 WHERE id=11 How can I turn this into a single query because I couldn't think of one? These values of `id` are in sequence. Think of a photo gallery that has images and the user can opt to re-arrange the sequence of these images. The back-end will assign the ranks based from the user-defined sequence and will be used in the ORDER BY clause.
0
[ 2, 805, 1886, 24935, 51, 18, 22402, 9386, 2829, 77, 53, 60, 800, 3726, 3726, 11100, 109, 1, 5924, 309, 2839, 3726, 165, 113, 4924, 3726, 1811, 11100, 109, 1, 5924, 309, 2839, 3726, 135, 113, 4924, 3726, 1193, 11100, 109, 1, 5924, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are time comparisons using Matlab implementations of algorithms questionable? === I have developed a feature extraction algorithm for images. In order to evaluate the algorithm extraction time, I runned the developed method and its competitors using as input a set of images. All extraction algorithms were implemented in Matlab. It was pointed out to me, however, that time comparison using Matlab implementations are questionable. Is there any basis for this claim?
0
[ 2, 50, 85, 6050, 18, 568, 4277, 9086, 6123, 18, 16, 15935, 23436, 60, 800, 3726, 3726, 31, 57, 885, 21, 1580, 16748, 9083, 26, 3502, 9, 19, 389, 20, 13, 15599, 14, 9083, 16748, 85, 15, 31, 485, 3725, 14, 885, 2109, 17, 82, 105...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Link to remote with <i> tag sending direct request instead of ajax === I have a strange problem . I am using twitter bootstrap btn, btn-primary along with custom defined icon class just like their gliphicon. Sample Code is below <a href="send/path" class="btn btn-primary" data-loading-text="Sending..." data-remote="true" style="float:none;"><i class="icon-send margin-right-5"></i>Send</a> When i click exactly on the text (ie Send) in the button it sends ajax request. But when i click on the icon in the button it sends direct request. If the same button is loaded via ajax . both works fine. I dont know why the browser sending a direct request overriding the data-remote function which the jquery rails javascript defines.
0
[ 2, 3508, 20, 5388, 29, 13, 1, 49, 1, 3383, 4907, 1744, 3772, 700, 16, 20624, 800, 3726, 3726, 31, 57, 21, 2578, 1448, 13, 9, 31, 589, 568, 10623, 5894, 16514, 334, 38, 103, 15, 334, 38, 103, 8, 29584, 303, 29, 5816, 2811, 9801...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
App script with google drive api === I am making a Google drive integrated web app with Drive Api. The api service of Google App script looks very nice. However, is it possible to use Google App script as an external library to integrated with the local html? Or you have to build the App script in the Google script editor? If so, how to link it with the Drive Api?
0
[ 2, 4865, 3884, 29, 8144, 1493, 21, 2159, 800, 3726, 3726, 31, 589, 544, 21, 8144, 1493, 5547, 2741, 4865, 29, 1493, 21, 2159, 9, 14, 21, 2159, 365, 16, 8144, 4865, 3884, 1879, 253, 2210, 9, 207, 15, 25, 32, 938, 20, 275, 8144, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Zend Google Docs API insertEntry results in blank document === Im trying to simply create a new document using the Zend Google Docs API's insertEntry() function, but even though I am correctly setting the content, it always results in a blank document being added to my Google docs account. I have followed the documentation found here http://framework.zend.com/manual/en/zend.gdata.introduction.html#zend.gdata.introduction.post (it might help to take a look at that the "Posting Entries to Google Servers" code example). And I am using this code which is called within my class: public function insertData() { $gData = new Zend_Gdata($this->client); $gCategory = new Zend_Gdata_App_Extension_Category('http://schemas.google.com/docs/2007#document', Zend_Gdata_Docs::DOCUMENTS_CATEGORY_SCHEMA); $newEntry = $gData->newEntry(); $newEntry->category = (array($gCategory)); $newTitle = $gData->newTitle('Test'); $newContent = $gData->newContent('Testing new entry'); $newContent->setType('text'); $newEntry->title = $newTitle; $newEntry->content = $newContent; return $gData->insertEntry($newEntry, Zend_Gdata_Docs::DOCUMENTS_LIST_FEED_URI); } The title is correctly set, and shows correctly as "Test" in Google Docs, however the content is always blank. I have tryed everything.. anyone have any ideas where the problem is? Thanks.
0
[ 2, 10526, 43, 8144, 9765, 18, 21, 2159, 14692, 18195, 1736, 19, 6463, 4492, 800, 3726, 3726, 797, 749, 20, 1659, 1600, 21, 78, 4492, 568, 14, 10526, 43, 8144, 9765, 18, 21, 2159, 22, 18, 14692, 18195, 5, 6, 1990, 15, 47, 166, 36...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Safari 6 images colored incorrectly === I wish I could have a more helpful title for this question, but honestly I have no idea whats going on. After upgrading to safari 6, some of the images on my site now appear to be lighter shades? This is a weird problem to explain, so I took some screenshots that will hopefully explain the problem better. http://i.imgur.com/TAgH6.png On the left is the screenshot from my site, with the two images by themselves (also in safari). As you can see, they are noticeably lighter on the site vs by themselves. Now I'm sure you're thinking this has something to do with the images being partially transparent or something, but heres a screenshot from chrome (which looks identical to safari 5.2) http://i.imgur.com/Eyo4K.png Absolutely no difference in color. These are all standard png-24 images, and like I said everything looked perfectly normal in safari 5.2 and continues to look fine in all other major browsers. ADDITIONALLY, if I draw these images on a canvas as opposed to using IMG tags, the color difference disappears. I don't have any kind of styling that would do anything to IMG tags, not to mention that the repeated background image for the menu does not share this problem, nor does the background tile. If you have safari 6 and want to go look at things yourself, my site is impiety.net
0
[ 2, 25055, 400, 3502, 10133, 22870, 800, 3726, 3726, 31, 2536, 31, 110, 57, 21, 91, 15600, 581, 26, 48, 1301, 15, 47, 10971, 31, 57, 90, 882, 98, 18, 228, 27, 9, 75, 26939, 20, 25055, 400, 15, 109, 16, 14, 3502, 27, 51, 689, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
image corrupt or truncated in firefox === my code below (as well as here: http://jsbin.com/oseruc/1) flips through the given images on each mouse click. It works fine in all browsers that I could test it on, except for the latest Firefox. Firefox displays errors such as: <code><pre> Image corrupt or truncated: http://upload.wikimedia.org/wikipedia/commons/0/0c/St.\_Cristopher-D%C3%BCrer.jpg Image corrupt or truncated: http://upload.wikimedia.org/wikipedia/commons/0/0c/St.\_Cristopher-D%C3%BCrer.jpg Image corrupt or truncated: http://upload.wikimedia.org/wikipedia/commons/b/b9/D%C3%BCrer_-_Rhinoceros.jpg Image corrupt or truncated: http://upload.wikimedia.org/wikipedia/commons/0/0c/St.\_Cristopher-D%C3%BCrer.jpg Image corrupt or truncated: http://upload.wikimedia.org/wikipedia/commons/b/b9/D%C3%BCrer_-_Rhinoceros.jpg </pre></code> This happens if I click too fast. And yes, have seen this bug report: http://code.google.com/p/fbug/issues/detail?id=4291 Any ideas why this is happening and how to fix that? Because I cannot just ignore these errors. They interfere with my functionality. My code: <code><pre> &lt;!DOCTYPE html> &lt;html> &lt;head> &lt;meta charset="utf-8" /> &lt;script type="text/javascript"> (function (window) { var frames = [ "http://upload.wikimedia.org/wikipedia/commons/6/65/Duerer_%28Marter_der_zehntausend_Christen%29.jpg", "http://upload.wikimedia.org/wikipedia/commons/0/0c/St.\_Cristopher-D%C3%BCrer.jpg", "http://upload.wikimedia.org/wikipedia/commons/b/b9/D%C3%BCrer_-_Rhinoceros.jpg" ];<br> window.onload = function () { var frame_num = 0; var image = document.getElementById("image");<br> image.onclick = function () { frame_num = (frame_num + 1) % frames.length; image.src = frames[frame_num]; return false; }; }; })(window); &lt;/script> &lt;/head> &lt;body> &lt;img id="image" src="http://upload.wikimedia.org/wikipedia/commons/6/65/Duerer_%28Marter_der_zehntausend_Christen%29.jpg" style="position:relative"> &lt;/body> &lt;/html> </pre></code>
0
[ 2, 1961, 11305, 54, 22328, 69, 19, 535, 18219, 800, 3726, 3726, 51, 1797, 1021, 13, 5, 472, 134, 28, 235, 45, 7775, 6903, 728, 18, 4772, 9, 960, 118, 759, 106, 6335, 11698, 6, 8805, 18, 120, 14, 504, 3502, 27, 206, 7567, 10840, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Error running MySQL Daemon === I'm getting a bizarre error running my mysql daemon as the user 'mysql' here is what the command spews out, now I've checked and the instance isn't running already :S So, I have no idea why it's displaying this output: 120729 18:54:28 [Note] Plugin 'FEDERATED' is disabled. 120729 18:54:28 InnoDB: The InnoDB memory heap is disabled 120729 18:54:28 InnoDB: Mutexes and rw_locks use GCC atomic builtins 120729 18:54:28 InnoDB: Compressed tables use zlib 1.2.5 120729 18:54:28 InnoDB: Using Linux native AIO 120729 18:54:28 InnoDB: Initializing buffer pool, size = 128.0M 120729 18:54:28 InnoDB: Completed initialization of buffer pool 120729 18:54:28 InnoDB: highest supported file format is Barracuda. 120729 18:54:28 InnoDB: Waiting for the background threads to start 120729 18:54:29 InnoDB: 1.1.8 started; log sequence number 2929794 120729 18:54:29 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 120729 18:54:29 [Note] - '0.0.0.0' resolves to '0.0.0.0'; 120729 18:54:29 [Note] Server socket created on IP: '0.0.0.0'. 120729 18:54:29 [ERROR] Can't start server : Bind on unix socket: No such file or directory 120729 18:54:29 [ERROR] Do you already have another mysqld server running on socket: /var/mysql/mysql.sock ? 120729 18:54:29 [ERROR] Aborting 120729 18:54:29 InnoDB: Starting shutdown... 120729 18:54:30 InnoDB: Shutdown completed; log sequence number 2929794 120729 18:54:30 [Note] mysqld: Shutdown complete Any help is greatly appreciated, thanks guys!
0
[ 2, 7019, 946, 51, 18, 22402, 13127, 800, 3726, 3726, 31, 22, 79, 1017, 21, 15701, 7019, 946, 51, 51, 18, 22402, 13127, 28, 14, 4155, 13, 22, 915, 18, 22402, 22, 235, 25, 98, 14, 1202, 9882, 10268, 70, 15, 130, 31, 22, 195, 650...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
postInsert not triggered using Doctrine2 when inserting new lines to the database === I'm trying to write a simple EventListener for logging the atributes of my entities. The postUpdate event is working but the postInsert event is not triggered. The @HasLifecycleCallbacks of my entity is set.Below is the code: At the controller: $evm = $entityManager->getEventManager(); $aux = new Application\Log\Logger($evm); Application\Log\Logger <?php namespace Application\Log; use Doctrine\ORM\Event\LifecycleEventArgs; class Logger { const postInsert = 'postInsert'; const postDelete = 'postDelete'; const postUpdate = 'postUpdate'; private $_evm; public function __construct($evm) { $evm->addEventListener(array(self::postInsert, self::postDelete, self::postUpdate), $this); } public function postInsert(LifecycleEventArgs $event) { echo 'inserting a record ...'; } public function postUpdate(LifecycleEventArgs $event) { //$invoker = $event->getInvoker(); echo $event->getName(); echo $event->getQuery(); print_r($event->getParams()); } public function postDelete(LifecycleEventArgs $event) { echo 'deleting a record...'; } } Does anybody knows what i am doing wrong?? tks
0
[ 2, 678, 108, 18, 6767, 52, 15164, 568, 7521, 135, 76, 14692, 68, 78, 1560, 20, 14, 6018, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 1935, 807, 13891, 106, 26, 13, 13919, 14, 21, 14755, 18, 16, 51, 12549, 9, 14, 678, 576, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ .h & .cpp file - prototype error === I get some error that I never face before, how do i resolve it. Is there some form of wrong declaration that I did . Thanks for all help!! At the currency.h file public: currencyConverter(); void stringToUpper(string); My Function in currency.cpp file void currencyConverter::stringToUpper(string &s) { for(unsigned int l = 0; l < s.length(); l++) { s[l] = toupper(s[l]); } } Error Message: CLEAN SUCCESSFUL (total time: 132ms) g++ -c -g -Wall -I/opt/local/include main.cpp -o main.o g++ -c -g -Wall -I/opt/local/include currencyConverter.cpp -o currencyConverter.o currencyConverter.cpp:25:6: error: prototype for ‘void currencyConverter::stringToUpper(std::string&)’ does not match any in class ‘currencyConverter’ currencyConverter.h:25:9: error: candidate is: void currencyConverter::stringToUpper(std::string) make: *** [currencyConverter.o] Error 1 Question Solved: Solution is to at .h file void stringToUpper(string&); instead of void stringToUpper(string);
0
[ 2, 272, 20512, 13, 9, 252, 279, 13, 9, 150, 3421, 3893, 13, 8, 7063, 7019, 800, 3726, 3726, 31, 164, 109, 7019, 30, 31, 243, 276, 115, 15, 184, 107, 31, 9854, 32, 9, 25, 80, 109, 505, 16, 1389, 7098, 30, 31, 144, 13, 9, 36...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ajax request fails to process $_SESSION variable === I have a java script file that processes an ajax request. This request processes a php file (which works fine). But when I want to call in this very php file my $_SESSION variable (or any static variable that are implemented in my classes on other php files), it isn't recognized (I 'echo' it, and I have a 500 error). Does someone have an idea ? Best, Newben
0
[ 2, 20624, 3772, 13614, 20, 953, 5579, 1, 7202, 5991, 7612, 800, 3726, 3726, 31, 57, 21, 8247, 3884, 3893, 30, 5102, 40, 20624, 3772, 9, 48, 3772, 5102, 21, 13, 26120, 3893, 13, 5, 2140, 693, 1123, 6, 9, 47, 76, 31, 259, 20, 64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Error: 'row" undeclared UI Picker === Im having difficulty in understanding how the `pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)rowinComponent:(NSInteger)component` works Ive set up my picker ok, got my NSArray to populate it, what im trying to do is display an image from a selected row. I tried: - (void)viewDidLoad { ////arrays & objects arrStatus = [[NSArray alloc] initWithObjects:@"Appstorelogo",@"app",nil]; //number of colums and rows etc of picker } -(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView { //One column return 1; } -(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent: (NSInteger)component { //set number of rows return arrStatus.count; } -(NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row f orComponent:(NSInteger)component { //set item per row return [arrStatus objectAtIndex:row]; } - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)rowinComponent: (NSInteger)component { [imageview setImage:[arrStatus objectAtIndex:row]]; } but i get an error telling me "row" is undeclared? here: `[imageview setImage:[arrStatus objectAtIndex:row]];`
0
[ 2, 7019, 45, 13, 22, 5417, 7, 13, 12239, 12078, 69, 13, 5661, 2036, 106, 800, 3726, 3726, 797, 452, 6967, 19, 3260, 184, 14, 13, 1, 16855, 106, 4725, 45, 5, 5661, 16855, 106, 4725, 1637, 6, 16855, 106, 4725, 144, 18, 25538, 499,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do an Action after WebView Fully Loads === Is there any way for me to run some code when the WebView fully loads the page? This is the code I'm using to open the web page in the view if this helps. //Load URL Into WebView NSString *urlAddress = @"http://example.com"; NSURL *url = [NSURL URLWithString:urlAddress]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; [[_listenupwebkit mainFrame] loadRequest:requestObj];
0
[ 2, 107, 40, 1028, 75, 2741, 4725, 2337, 19069, 800, 3726, 3726, 25, 80, 186, 161, 26, 55, 20, 485, 109, 1797, 76, 14, 2741, 4725, 2337, 19069, 14, 2478, 60, 48, 25, 14, 1797, 31, 22, 79, 568, 20, 368, 14, 2741, 2478, 19, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Update from MPLAB C32 v1.12 to v2.02, post incrememnt throws an exception === I am working on updating to the newer XC32 Compiler v2.02 from C32 v1.12 in the MPLABX ide but the program always throws an exception. I have pin pointed the exact line and I have no idea what would be causing the exception. I have tried many different types of the same sort of line but they do not cause an exception. The code builds and runs perfectly in v1.12. A very rough example of the code structure follows. struct Cbuffers { UINT16 tx_fill_ptr; }; #define MAXPORT 6 #define MAXBUF 256 UINT8 TXbuffer[MAXPORT][MAXBUF]; struct Cbuffers bufdata[MAXPORT]; f() { UINT16 b=0,id=2; bufdata[id].tx_fill_ptr=0; bufdata[id].tx_fill_ptr=b; bufdata[id].tx_fill_ptr=b++; bufdata[id].tx_fill_ptr=++b; b=bufdata[id].tx_fill_ptr; bufdata[id].tx_fill_ptr=bufdata[id].tx_fill_ptr+1; bufdata[id].tx_fill_ptr++; b=bufdata[id].tx_fill_ptr++; //Throws an exception } The general exception handler cause is "Address error exception (store)" and the address points to this assembly line; 9D014000 A4A20000 SH V0, 0(A1) The microcontroller is a PIC32MX575F512L If you (SO community) have any idea I would be incredibly grateful, I am happy to provide any other information within my ability. The actual line in the code I am using is: TXbuffer[id][bufdata[id].tx_fill_ptr++] = string[i++];
0
[ 2, 11100, 37, 4628, 9086, 272, 3125, 566, 165, 9, 918, 20, 566, 135, 9, 3564, 15, 678, 19, 6037, 790, 79, 2877, 13566, 40, 5391, 800, 3726, 3726, 31, 589, 638, 27, 71, 43, 1880, 20, 14, 12372, 13, 21550, 3125, 21486, 566, 135, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Changing field identifiers without changing field names === User sends to my server data like `XYZ_LOGIN=myname&XYZ_PASSWORD=mydata`. I can't change this format. I can create such form: class MyForm(forms.Form): XYZ_LOGIN = forms.CharField() XYZ_PASSWORD = forms.CharField() But this is very ugly. I want something like this: class MyForm(forms.Form): login = forms.CharField() password = forms.CharField() How can i set beauty fields identifiers without breaking functionality?
0
[ 2, 4226, 575, 25570, 18, 366, 4226, 575, 1817, 800, 3726, 3726, 4155, 11350, 20, 51, 8128, 1054, 101, 13, 1, 15161, 380, 1, 5567, 108, 3726, 915, 7259, 1569, 15161, 380, 1, 6201, 9587, 3726, 915, 18768, 1, 9, 31, 92, 22, 38, 753...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Javascript Pagination for dynamic content in fixed dimension === Im having a big html content, containing all kind of HTML tags, including H1, images, divs. I want to display this content in a fixed width and height div with next previous button. Is it possible to achieve in Java script or Jquery? Thanks.
1
[ 2, 8247, 8741, 19006, 108, 857, 26, 7782, 2331, 19, 3535, 9547, 800, 3726, 3726, 797, 452, 21, 580, 13, 15895, 2331, 15, 3503, 65, 825, 16, 13, 15895, 3383, 18, 15, 215, 746, 165, 15, 3502, 15, 13, 12916, 18, 9, 31, 259, 20, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where can I find Mac OS Software Glossaries? === A few years ago, Apple released software glossaries (bilingual files) for each of the localizations available for Leopard. These older glossaries can be found here: https://developer.apple.com/internationalization/downloads/ or on the free download section of developer.apsic.com. This is a valuable reference for anyone localizing applications for the Mac OS platform, so that they are consistent with the terminology in the platform. Since Leopard, more languages were added to Mac OS, and obviously more UI changes and additions have take place. Is Apple providing newer glossaries (Lion level) to the development community via is $99 Mac OS Developer program or some other channel?
0
[ 2, 113, 92, 31, 477, 1572, 13, 759, 2306, 13, 12456, 11301, 60, 800, 3726, 3726, 21, 310, 122, 1464, 15, 4037, 261, 2306, 13, 12456, 11301, 13, 5, 2161, 23427, 6488, 6, 26, 206, 16, 14, 375, 1829, 18, 904, 26, 15446, 9, 158, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which is the fastest way to return the number of different rows in a matrix A ? [C++] === If a have the following matrix A: A = {1,2,3} {7,9,1} {5,3,2} how i can easily return the number of different rows in the Matrix? In this case the output must be : "3" i tried to make a function "**rows**": void riga (int a[N][N], int row[N], int x){ for (int i=0;i<N;i++){ row[i]=a[x][i]; } } then, with the function "**check**" i tried to check if the rows are different: int righe_distinte ( int a[N][N]) { int riga1[N]; int riga2[N]; int j=0; riga(a,riga1,j); riga(a,riga2,j+1); int count = 0; for ( int i=0; i<N; i++){ for ( int j=0; j<N; j++){ if ( riga1[i] != riga2[j]){ count++; } } } return count; } but return the wrong number , any suggestions ?
0
[ 2, 56, 25, 14, 7518, 161, 20, 788, 14, 234, 16, 421, 11295, 19, 21, 8187, 21, 13, 60, 636, 150, 20512, 500, 800, 3726, 3726, 100, 21, 57, 14, 249, 8187, 21, 45, 21, 800, 13, 1, 15793, 15, 240, 1, 13, 1, 465, 15, 518, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
RCU Installation issues === I am trying to install Obiee11g on my windows machine. While running through various tutorials in the web, many of them have suggested to use RCU to create MDS and BIplatform. However when I downloaded RCU and extracted the same. While I am running the rcu.bat in the running directory, it is just opening my OBIEE_HOME folder. I am not able to see the RCU window. Please Help! Cheers, Dwarak
0
[ 2, 761, 3987, 7758, 1549, 800, 3726, 3726, 31, 589, 749, 20, 16146, 13, 14398, 2851, 1306, 263, 27, 51, 1936, 1940, 9, 133, 946, 120, 617, 29724, 18, 19, 14, 2741, 15, 151, 16, 105, 57, 2347, 20, 275, 761, 3987, 20, 1600, 8138, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Javascript variable declaration : what is "var myVariable = {}"? === I'm pretty new to plain old JavaScript and to JavaScript frameworks (such as Backbone.js, RequireJS, ...). As I was reading and trying to understand some JavaScript files that I got from a project at work (based on JQuery, Backbone and Require), I've encountered some variable declarations such as: var myVariable = {}, itemList; Could someone explain to me what the "{}" is? PS: might be a silly question but it's definitely not that easy Googling for "{}" as keyword... Thanks in advance.
0
[ 2, 8247, 8741, 7612, 7098, 13, 45, 98, 25, 13, 7, 3311, 51, 8220, 579, 800, 13, 1, 7, 60, 800, 3726, 3726, 31, 22, 79, 1772, 78, 20, 3748, 315, 8247, 8741, 17, 20, 8247, 8741, 6596, 18, 13, 5, 4289, 28, 24036, 9, 728, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
AIR HTMLLoader, loaded swf full screen no interactive === When I load webpage into AIR's mx:HTML component, and webpage contains flash with full screen option, after going full screen nothing happens no interaction with object. The most strange thing is if I load swf with simple 'full screen app' with 1 or 2 objects on stage, it works perfect, but if loaded something like game app, it does not...
0
[ 2, 282, 13, 15895, 8294, 106, 15, 8572, 13, 18, 15263, 503, 2324, 90, 9194, 800, 3726, 3726, 76, 31, 6305, 2741, 6486, 77, 282, 22, 18, 307, 396, 45, 15895, 5912, 15, 17, 2741, 6486, 1588, 4433, 29, 503, 2324, 4255, 15, 75, 228,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What event exist to datagrid === What event exist to datagrid, that works when you change any data on datagrid? in wpf
1
[ 2, 98, 807, 3182, 20, 1054, 16375, 800, 3726, 3726, 98, 807, 3182, 20, 1054, 16375, 15, 30, 693, 76, 42, 753, 186, 1054, 27, 1054, 16375, 60, 19, 619, 7721, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How can I accept arbitrary JSON objects in my REST WCF service? === I want to implement a service method like this: [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json)] public void MakeShape(string shape, string color, IDictionary<string, object> moreArgs) { if (shape == "circle") { MakeCircle(color, moreArgs); } } My clients POST objects like: { "shape":"circle", "color": "blue", "radius": 42, "filled":true, "annotation": {"date":"1/1/2012", "owner":"George"} } At the call to MakeCircle, moreArgs would have 3 entries ("radius", "filled", and a dictionary named "annotation" which contains 2 key-value pairs.) ----------------- The best I've got so far is: //Step 1: get the raw JSON by accepting a Stream with BodyStyle=WebMessageBodyStyle.Bare [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle=WebMessageBodyStyle.Bare)] public void MakeShape(Stream jsonStream) { //Step 2: parse it into a Dictionary with JavaScriptSerializer or JSON.net StreamReader reader = new StreamReader(jsonStream); JavaScriptSerializer jsSerializer = new JavaScriptSerializer(); Dictionary<string, object> args = jsSerializer.Deserialize<Dictionary<string,object>>(reader.ReadToEnd()); //Step 3: manually lookup and cast the "standard" arguments, and remove them from the Dictionary string shape = (string)args["shape"]; string color = (string)args["color"]; //Step 4: make the original call, passing the remaining Dictionary as moreArgs MakeShape(shape,color,args); } I could live with a solution like this except step 3 will be a pain to keep in sync across dozens of methods. Obviously _something_ has to open the dictionary and use the extra arguments but I'd rather keep that code out of my communications layer. IMO it goes inside the business logic that knows about the arguments (in this case represented by MakeCircle). I really like WCF's automatic binding because it eliminates these error-prone manual translations. I wish there were a way to use it for _almost_ everything, except specify a little extra logic for the arguments it doesn't know how to map. Perhaps there's some sort of service behavior that says "pass them to [this code] and I'll deal with it"? --------------- I've considered the "round-tripping" support offered by IExtensibleDataObject, but it doesn't seem to give my code access to the unknown properties - they're wrapped up for the sole purpose of sending back to the client. http://msdn.microsoft.com/en-us/library/ms731083.aspx ------------------ Another option would be to use a custom class that contains a IDictionary<string,object>, and somehow take over the deserialization myself. So the service method would be: [OperationContract] [WebInvoke(RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)] public void MakeShape(string shape, string color, MoreArgs moreArgs) And I'd have to force clients into a stricter structure: { "shape":"circle", "color": "blue", "moreArgs":{ "radius": 42, "filled":true "annotation": {"date":"1/1/2012", "owner":"George"} } } That's not ideal, but I could live with it. The question becomes how to define MoreArgs and get one populated properly. My next try: [DataContract] public class MoreArgs : ISerializable { public Dictionary<string, object> Properties; public MoreArgs(SerializationInfo info, StreamingContext context) { Properties = new Dictionary<string, object>(); foreach (var entry in info) { Properties.Add(entry.Name, entry.Value); } } public void GetObjectData(SerializationInfo info, StreamingContext context) { foreach (string key in Properties.Keys) { info.AddValue(key, Properties[key]); } } } This throws an InvalidDataContractException on service start (... MoreArgs' cannot be ISerializable and have DataContractAttribute attribute.) Removing the [DataContract] attribute throws the InvalidDataContractException I expect (...MoreArgs' cannot be serialized. Consider marking it with the DataContractAttribute attribute...). Also as expected, removing the ISerializable inheritance clears the exception, but results in moreArgs.Properties being null at the call to MakeCircle. ------------------------ I also wonder if there's some hybrid solution I can use? Perhaps: - Accept a stream and construct the argument dictionary as in my first attempt - Define the method with a MoreArgs argument like my later attempt - Populate a MoreArgs object from the dictionary pulled from the stream - Somehow re-call WCF, saying "invoke the method that would be called if you had these arguments" (specifying the original argument dictionary, plus the new properly-populated MoreArgs). MoreArgs would then contain the original arguments too, but that's probably not a disaster. I think I could probably make the call I need using reflection, but that feels silly when WCF must have this function internally, debugged and optimized to boot.
0
[ 2, 184, 92, 31, 3440, 17237, 487, 528, 3916, 19, 51, 760, 11801, 410, 365, 60, 800, 3726, 3726, 31, 259, 20, 8713, 21, 365, 2109, 101, 48, 45, 636, 11377, 23311, 500, 636, 14113, 108, 2625, 1048, 5, 99, 10351, 23588, 800, 2741, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Obama-style fly-out menu - preserving text width === I'm trying to build a responsive nav menu like the one on [http://www.barackobama.com][1]. (See my JSFiddle [http://jsfiddle.net/andfinally/VvWWh][2]/.) On smaller screen widths, when the user clicks the "Menu" link, the main page content slides away to the right, out of the viewport, revealing the nav menu below. I'm doing this by applying the class .show-nav to the html element on this event, which repositions the content in #main. #main has a 1 second transition CSS rule to make the movement smoother. This seems to work OK so far in Chrome when you open the nav. But when you collapse it again, the text in the content area rearranges itself. Can anyone explain how the Obama guys managed to prevent this happening? I'd like the content to slide off and on like one static object. [1]: http://www.barackobama.com [2]: http://jsfiddle.net/andfinally/VvWWh
0
[ 2, 7677, 8, 4381, 2855, 8, 1320, 11379, 13, 8, 17936, 1854, 9456, 800, 3726, 3726, 31, 22, 79, 749, 20, 1895, 21, 13, 22153, 16048, 11379, 101, 14, 53, 27, 636, 21127, 6903, 6483, 9, 969, 13135, 10595, 540, 9, 960, 500, 2558, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
std::thread detect main thread === is thre any relieable way in c++11 to detect if the current thread is the main thread? Or would I have to manually save the main threads thread id with `std::this_thread::get_id()` and then have a routine like this: bool isMainThread() { return theMainThreadIdISavedOnProgramStart == std::this_thread::get_id(); } Is there a common way to do this? Would the above solution work? Thanks
0
[ 2, 354, 43, 45, 45, 96, 10647, 9092, 407, 9322, 800, 3726, 3726, 25, 13, 96, 99, 186, 302, 3844, 579, 161, 19, 272, 20512, 1306, 20, 9092, 100, 14, 866, 9322, 25, 14, 407, 9322, 60, 54, 83, 31, 57, 20, 23671, 2079, 14, 407, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery selector stored in variable: How to Select specific elements by attribute value? === I know that I get an element(s) by attribute via, e.g. $('.js_aBunchOfElements span[data-stuff="special"]'); Yet once I store the selector in a variable: var bunch = $('.js_aBunchOfElements span'); I am confused how to search within `bunch` for my elements with the attribute `data-stuff="special"`.
0
[ 2, 487, 8190, 93, 23946, 8214, 19, 7612, 45, 184, 20, 5407, 1903, 2065, 34, 35, 14755, 1923, 60, 800, 3726, 3726, 31, 143, 30, 31, 164, 40, 4520, 5, 18, 6, 34, 35, 14755, 1197, 15, 13, 62, 9, 263, 9, 5579, 5, 22, 9, 728, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Captured image is not stored in the specific folder in android === I have created a program to capture the image and that is getting stored into sdcard/dcim/camera folder. Now I am trying to save the captured image in my own directory created in sdCard, say "/somedir". I am able to make the directory programmatically but the image file is not getting stored in it. Can anybody tell me where I am doing wrong here?? Here is the code.... File folder = new File(Environment.getExternalStorageDirectory() + "/abc"); Bitmap mybitmap1; //mybitmap1 contain image. So plz dont consider that I don't have image in mybitmap1; if(!folder.exists()) { success = folder.mkdir(); Log.i("Log", "folder created"); } else { Log.i("Log", "Folder already present here!!"); } String fname = date +".jpg"; file = new File( folder,fname); if (file.exists ()) file.delete (); capturedImageUri = Uri.fromFile(file); FileOutputStream out; byte[] byteArray = stream.toByteArray(); try { out = new FileOutputStream(file); mybitmap1.compress(Bitmap.CompressFormat.JPEG, 100, out); out.flush(); out.close(); MediaStore.Images.Media.insertImage(getContentResolver(), mybitmap1, file.getName(), file.getName()); //MediaStore.Images.Media.insertImage(getContentResolver(),file.getAbsolutePath(),file.getName(),file.getName()); } catch (Exception e) { e.printStackTrace(); }
0
[ 2, 2411, 1961, 25, 52, 8214, 19, 14, 1903, 19294, 19, 13005, 800, 3726, 3726, 31, 57, 679, 21, 625, 20, 3683, 14, 1961, 17, 30, 25, 1017, 8214, 77, 13, 18, 43, 6648, 118, 7201, 1660, 118, 24636, 19294, 9, 130, 31, 589, 749, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Draggable in Jquery UI add constarint to target to div === I have page with few draggable(1,2) and few dropable(A,B). How can I specify that user can drop only into dropable "A" from draggable 1? P.S, One of dropable is actualy sortable.
0
[ 2, 5501, 263, 579, 19, 487, 8190, 93, 13, 5661, 3547, 1065, 2265, 6391, 20, 2935, 20, 13, 12916, 800, 3726, 3726, 31, 57, 2478, 29, 310, 5501, 263, 579, 5, 15793, 6, 17, 310, 2804, 579, 5, 58, 15, 220, 6, 9, 184, 92, 31, 190...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
“[JavaScriptApplication] ReferenceError: myExtension is not defined” === It keeps on coming up, using Mozilla Firefox, and uninstalled JAVA. How do I fix?
0
[ 2, 13, 1, 2558, 1004, 1385, 8741, 2552, 20669, 500, 2801, 29992, 45, 51, 1706, 25573, 25, 52, 2811, 1, 800, 3726, 3726, 32, 8968, 27, 880, 71, 15, 568, 13, 18057, 3247, 535, 18219, 15, 17, 367, 108, 21300, 69, 8247, 9, 184, 107,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
is DOMDocument::loadHTMLFile() secure? === Can someone inject some malicious code into my script through this method? and if someone might, what is the best practice? I am trying to create a similar to reddit way of suggesting title.
0
[ 2, 25, 11859, 28132, 45, 45, 8294, 15895, 16877, 5, 6, 4315, 60, 800, 3726, 3726, 92, 737, 20316, 109, 24231, 1797, 77, 51, 3884, 120, 48, 2109, 60, 17, 100, 737, 530, 15, 98, 25, 14, 246, 1345, 60, 31, 589, 749, 20, 1600, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
401 error (noob) === Ok, I know this has probably been answered loads of times but I am a real noob in over his head and cannot understand half the terms under other threads: Basically, I set up a website for a comapny about a year ago. Today I get told that when they got to view their website an authentication box comes up, something to do with a 401 error What does this mean and how do I fix it? (laymans terms please) My neck is on the block here. Thanks in advance
2
[ 2, 13, 20658, 7019, 13, 5, 251, 4995, 6, 800, 3726, 3726, 5854, 15, 31, 143, 48, 63, 910, 74, 3094, 19069, 16, 436, 47, 31, 589, 21, 683, 90, 4995, 19, 84, 33, 157, 17, 1967, 1369, 519, 14, 1663, 131, 89, 20396, 45, 11374, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to force redraw flash window created be Wine on Mac OS? === I'm trying to run FlashDevelop on Mac OS using WineSkin wrapper (v2.5.5) and engine WS9Wine(1.5.4). FlashDevelop works fine except running SWF. It's create flash player window, but this window don't redraw automaticly. I need to move flash player window to outwards screen and back to redraw. What can I do to fix this problem? Best regards, Artem.
0
[ 2, 184, 20, 558, 402, 12404, 4433, 1463, 679, 44, 2667, 27, 1572, 13, 759, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 485, 4433, 26051, 27, 1572, 13, 759, 568, 18476, 1767, 28051, 13, 5, 710, 135, 9, 264, 9, 264, 6, 17, 1406, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento Update to 1.7.0.1 causes pricing to display as 0.0 === I updated my website, and as you can see in the link below... http://dokha.co/index.php/dokha-medwakh-tobacco/sample-bag-of-dokha.html No matter what option you pick, the price displays as 0.00 I cant figure this out. Any ideas? Thank you for looking!
0
[ 2, 4723, 17050, 11100, 20, 137, 9, 465, 9, 387, 9, 165, 4047, 24318, 20, 3042, 28, 713, 9, 387, 800, 3726, 3726, 31, 6372, 51, 2271, 15, 17, 28, 42, 92, 196, 19, 14, 3508, 1021, 9, 9, 9, 7775, 6903, 537, 5846, 9, 716, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Accepting bitcoins payments on website, and providing automated bitcoin transfers between users (with automatic transaction charge)? === I have a website that I would like to enable bitcoin transactions between users. I would like if possible for these transactions to be automated, and I would like the site to receive a percentage per transaction. Could someone provide a top-level outline of the technologies involved, and how they might need to interact to provide this service. If it's relevant my website is written in Rudy/Rails.
0
[ 2, 10894, 1142, 716, 108, 18, 11161, 27, 2271, 15, 17, 2674, 14904, 1142, 716, 108, 2617, 18, 128, 3878, 13, 5, 1410, 6715, 12799, 1906, 6, 60, 800, 3726, 3726, 31, 57, 21, 2271, 30, 31, 83, 101, 20, 9240, 1142, 716, 108, 13147,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
rackup mounting apps vs rails mounting for sinatra apps === I was wondering which could be a better way of mounting different apps for ruby . I have 2 sinatra apps and one rails app . One way is to use rails as base and mount the sinatra apps using the `routes.rb` (within rails) RailsApp::Application.routes.draw do mount SinatraApp1, :at => "/url1" mount SinatraApp2, :at => "/url2" # rest of the rail routes end This way both the sinatra apps are in rails. Other way is to use rackup to mount all three using `config.ru` (all three apps in parallel) map "/" do run RailsApp::Application end map "/url1" do run SinatraApp1 end map "/url2" do run SinatraApp2 end I am not able to find the advantages of one over the other or which method is better for what reason.
0
[ 2, 10257, 576, 17022, 4865, 18, 4611, 2240, 18, 17022, 26, 21491, 4865, 18, 800, 3726, 3726, 31, 23, 5712, 56, 110, 44, 21, 574, 161, 16, 17022, 421, 4865, 18, 26, 10811, 13, 9, 31, 57, 172, 21491, 4865, 18, 17, 53, 2240, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP Sql Adding New Articles === Need Help With Some PHP And MySQL I CANT find were i went wrong.. Trying To Add New Blog Article Using a Function call. I Know All Other Code Is Correct Because IF I manually add entry into Database Sql it shows on blog. When Adding A New Entry To Database Sql it never adds into the database.. any one notice anything wrong ? I Have Functions For Time and Date Of Post And They All Work. If I Can Figure Out This Part I can Fix The Tags Too. If any one would like to see in a txt file just let me know its hard to post straight code to here... <code>function eb_admin_newarticle()<br> { global $lang; $output="\t\t".ucwords($lang['new_article'])."\r\n";;<br> //To add new article post<br> if(!empty($_POST['text']))<br> <br>{<br> foreach($_POST as $key=>$value) $_POST[$key]=str_replace("Acirc;","",$value);<br> $sql="INSERT INTO eb_articles SET article_flag=".$_POST['sticky'].",article_date=\"".time()."\",author_id=\"".$_SESSION['user_id-'.$_SERVER['SERVER_NAME']]."\", article_title=\"".str_replace("\"","&quot;",$_POST['title'])."\",article_body=\"".$_POST['text']."\",article_comments=".$_POST['comments'];<br> <code><br> mysql_query($sql);<br> <code>$article_id=mysql_insert_id();<br> //input tags on article<br> if(strlen($_POST['tags'])>1)<br> {<br> <code>$tags=explode(",",$_POST['tags']);<br> <code>foreach($tags as $tag)<br> {<br> <code>$sql="INSERT INTO eb_tags SET tag_name=\"".$tag."\"";<br> mysql_query($sql);<br> if(mysql_affected_rows()==1) $tag_ids[]=mysql_insert_id();<br> else $tag_ids[]=mysql_result(mysql_query("SELECT tag_id FROM eb_tags WHERE tag_name=\"".$tag."\""),0);<br> <br>}<br> foreach($tag_ids as $tag_id) mysql_query("INSERT INTO eb_tags_links SET tag_id=".$tag_id.",article_id=".$article_id);<br> <br>}<br> header('Location: news.php?id='.$article_id);<br> <br>}<br> else <br>{<br> $output.="\t\t<form action=\"admin.php?id=newarticle\" method=\"post\">\r\n";<br> $output.="\t\t\t<p><b>".ucwords($lang['title'])."</b><br /><input class=\"inputtext\" type=\"text\" name=\"title\" /></p>\r\n";<br> $output.="\t\t\t<textarea id=\"text\" name=\"text\"></textarea>\r\n";<br> $output.="\t\t\t<p><b>".ucwords($lang['tags'])."</b><br />".$lang['tag_seperate']."<br /><input type=\"text\" class=\"inputtext\" name=\"tags\" /></p>\r\n";<br> $output.="\t\t\t<p><b>".ucwords($lang['sticky'])."</b><br /><input type=\"radio\" name=\"sticky\" value=\"1\" checked=\"checked\" /> ".ucwords($lang['no'])."<br /><input type=\"radio\" name=\"sticky\" value=\"2\" /> ".ucwords($lang['yes'])."</p>\r\n"; $output.="\t\t\t<p><b>".ucwords($lang['comments'])."</b><br /><input type=\"radio\" name=\"comments\" value=\"0\" /> ".ucwords($lang['no'])."<br /><input type=\"radio\" name=\"comments\" value=\"1\" checked=\"checked\" /> ".ucwords($lang['yes'])."</p>\r\n";<br> $output.="\t\t\t<p><input type=\"submit\" name=\"submit\" value=\"".ucwords($lang['save'])."\" /></p>\r\n";<br> $output.="\t\t</form>\r\n";<br> return $output;<br> <br>}<br> <br>}<br>
0
[ 2, 13, 26120, 4444, 255, 4721, 78, 3376, 800, 3726, 3726, 376, 448, 29, 109, 13, 26120, 17, 51, 18, 22402, 31, 2973, 477, 46, 31, 296, 1389, 9, 9, 749, 20, 3547, 78, 8146, 2002, 568, 21, 1990, 645, 9, 31, 143, 65, 89, 1797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Passing textBox's text to another form in C#? === i have tried this to pass the information: textBox1.Text = ((TextBox)frm1.Controls["textBox1"]).Text; This is in the form load of the form getting the information. How do i fix this?
0
[ 2, 2848, 1854, 5309, 22, 18, 1854, 20, 226, 505, 19, 272, 5910, 60, 800, 3726, 3726, 31, 57, 794, 48, 20, 1477, 14, 676, 45, 1854, 5309, 165, 9, 11969, 800, 13, 5, 5, 11969, 5309, 6, 6177, 79, 165, 9, 12898, 18, 2558, 7, 119...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The Android App works on Emulator and installs on Android Device but when I Open it, it shows blank screen and then Force Close === I have created a small app and when I run it on Emulator, it runs perfect. When I install on Device, it gets installed but when when I start, it shows Blank/Black Screen and then it stops saying The Application TOH(process my.own) has stopped unexpectedly. Not sure where I am going wrong.. Please advice.. enter code here <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="my.own" android:versionCode="2" android:versionName="2.3.4" > <uses-sdk android:minSdkVersion="10" /> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" /> <application android:icon="@drawable/background2" android:label="@string/app_name" > <activity android:name=".TOH" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Startgame" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter> </activity> <activity android:name=".scoretell" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter> </activity> <activity android:name=".details" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter> </activity> <activity android:name=".ShowPopUp" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter> </activity> </application> </manifest>
0
[ 2, 14, 13005, 4865, 693, 27, 3579, 14868, 17, 16146, 18, 27, 13005, 3646, 47, 76, 31, 368, 32, 15, 32, 1285, 6463, 2324, 17, 94, 558, 543, 800, 3726, 3726, 31, 57, 679, 21, 284, 4865, 17, 76, 31, 485, 32, 27, 3579, 14868, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Checked conditions of radio buttons are not working === I have this code: if(ratingRB.isChecked() == true) { Toast.makeText(hotelSearch.this, "Please enter the rating as a word. (Ex. Five)", Toast.LENGTH_SHORT).show(); } else if(showAllRB.isChecked() == true) { nearest.setEnabled(true); } but when I check any of the 2 radio buttons(ratingRB, showAllRB) nothing happens, "nearest" is a checkbox that is disabled from the beginning and I want when the user selects "showAllRB" the checkbox is enabled.. what's wrong? and what should I do?
0
[ 2, 6505, 2039, 16, 603, 12861, 50, 52, 638, 800, 3726, 3726, 31, 57, 48, 1797, 45, 100, 5, 15073, 7549, 9, 403, 12542, 69, 5, 6, 800, 3726, 1151, 6, 13, 1, 13865, 9, 11115, 11969, 5, 7010, 532, 25136, 9, 1565, 15, 13, 7, 674...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating, writing to, and reading from a new file type === Hello I have a WinForm app that generates a ton of data. Currently I have this savable and open-able in an Excel .xls file format. However I'd like to move away from this so that the user can't open the file up in Excel and modify the contents freely. The solution I've come up with is encoding this as a new file type, example as an ".por" file. However I also don't want this to be a simple rename of the extension so that a user could rename back to .xls and being editing. How can I do this? Furthermore I'm programmitically taking a `DataTable` and row by row writing this out to the Excel file. Would it help to save the `DataTable` contents using a different method (not SQL)?
0
[ 2, 2936, 15, 1174, 20, 15, 17, 1876, 37, 21, 78, 3893, 1001, 800, 3726, 3726, 10975, 31, 57, 21, 628, 4190, 4865, 30, 7920, 18, 21, 13, 444, 16, 1054, 9, 871, 31, 57, 48, 13220, 579, 17, 368, 8, 579, 19, 40, 20700, 13, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
java : how to handle the design when template methods throw exception when overrided method not throw === when coding. try to solve the puzzle: how to design the class/methods when InputStreamDigestComputor throw IOException? It seems we can't use this degisn structure due to the template method throw exception but overrided method not throw it. but if change the overrided method to throw it, will cause other subclass both throw it. So can any good suggestion for this case? abstract class DigestComputor{ String compute(DigestAlgorithm algorithm){ MessageDigest instance; try { instance = MessageDigest.getInstance(algorithm.toString()); updateMessageDigest(instance); return hex(instance.digest()); } catch (NoSuchAlgorithmException e) { LOG.error(e.getMessage(), e); throw new UnsupportedOperationException(e.getMessage(), e); } } abstract void updateMessageDigest(MessageDigest instance); } class ByteBufferDigestComputor extends DigestComputor{ private final ByteBuffer byteBuffer; public ByteBufferDigestComputor(ByteBuffer byteBuffer) { super(); this.byteBuffer = byteBuffer; } @Override void updateMessageDigest(MessageDigest instance) { instance.update(byteBuffer); } } class InputStreamDigestComputor extends DigestComputor{ // this place has error. due to exception. if I change the overrided method to throw it. evey caller will handle the exception. but @Override void updateMessageDigest(MessageDigest instance) { throw new IOException(); } }
0
[ 2, 8247, 13, 45, 184, 20, 3053, 14, 704, 76, 22894, 3195, 3814, 5391, 76, 84, 5175, 69, 2109, 52, 3814, 800, 3726, 3726, 76, 13, 15458, 9, 1131, 20, 8402, 14, 9164, 45, 184, 20, 704, 14, 718, 118, 5909, 1807, 43, 18, 76, 6367,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CATransform3D not being applied when a UIImage is made from the CALayer applied === I have a few little transformations that manipulate an icon and apply a perspective on it. The result looks like this when I take the layer and directly call [self.layer addSublayer:imageLayer]; to add it to my view and get something like this: ![enter image description here][1] if i try converting it to a UIimage like so UIImage* myImage = [imageLayer imageFromLayer]; UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 256, 256)]; imgView.image = myImage; [self addSubview:imgView]; ..i get this instead: ![enter image description here][2] Why would the CAtransform3D not "stick" when making a UIimage out of a CALayer? And more importantly, how can i fix it :) [1]: http://i.stack.imgur.com/7Ghfw.png [2]: http://i.stack.imgur.com/0w58n.png
0
[ 2, 1658, 7028, 4190, 240, 43, 52, 142, 2435, 76, 21, 13, 5661, 22039, 25, 117, 37, 14, 1658, 15187, 2435, 800, 3726, 3726, 31, 57, 21, 310, 265, 6978, 18, 30, 18468, 40, 9801, 17, 5645, 21, 6531, 27, 32, 9, 14, 829, 1879, 101,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simple gradient issue with OpenGL on iphone simulator === i was following the tutorial from raywenderlich [website][1], the gradient seems not to work perfectly, is it only because of the iphone simulator, or is it something else? I can't try myself with an iphone. Here is the image : ![enter image description here][2] And the code : -(CCSprite *)spriteWithColor:(ccColor4F)bgColor textureSize:(float)textureSize { // 1: Create new CCRenderTexture CCRenderTexture *rt = [CCRenderTexture renderTextureWithWidth:textureSize height:screenSize.height]; // 2: Call CCRenderTexture:begin [rt beginWithClear:bgColor.r g:bgColor.g b:bgColor.b a:bgColor.a]; // 3: Draw into the texture glDisable(GL_TEXTURE_2D); glDisableClientState(GL_TEXTURE_COORD_ARRAY); float gradientAlpha = 0.5; CGPoint vertices[4]; ccColor4F colors[4]; int nVertices = 0; vertices[nVertices] = CGPointMake(0, 0); colors[nVertices++] = (ccColor4F){0, 0, 0, 0}; vertices[nVertices] = CGPointMake(textureSize, 0); colors[nVertices++] = (ccColor4F){0, 0, 0, gradientAlpha}; vertices[nVertices] = CGPointMake(0, screenSize.height); colors[nVertices++] = (ccColor4F){0, 0, 0, 0}; vertices[nVertices] = CGPointMake(textureSize, screenSize.height); colors[nVertices++] = (ccColor4F){0, 0, 0, gradientAlpha}; glVertexPointer(2, GL_FLOAT, 0, vertices); glColorPointer(4, GL_FLOAT, 0, colors); glDrawArrays(GL_TRIANGLE_STRIP, 0, (GLsizei)nVertices); glEnableClientState(GL_TEXTURE_COORD_ARRAY); glEnable(GL_TEXTURE_2D); // 4: Call CCRenderTexture:end [rt end]; // 5: Create a new Sprite from the texture return [CCSprite spriteWithTexture:rt.sprite.texture]; } [1]: http://www.raywenderlich.com/3888/how-to-create-a-game-like-tiny-wings-part-1 [2]: http://i.stack.imgur.com/yGg9L.png Thanks
0
[ 2, 1935, 17442, 1513, 29, 368, 8430, 27, 21024, 24565, 800, 3726, 3726, 31, 23, 249, 14, 29724, 37, 2375, 5036, 1157, 8945, 636, 14113, 9097, 500, 2558, 165, 500, 15, 14, 17442, 2206, 52, 20, 170, 5759, 15, 25, 32, 104, 185, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JRuby Closing an AWT frame === I decided to check out JRuby and JOGL to see if I could get some graphics sim stuff running. I've got the classpath set up and the OpenGL things included properly. Following some tutorials, they suggest using an AWT frame instead of a Swing one, as Swing won't support graphics acceleration (which is really what I'm looking for). I can't figure out how to *close* the AWT frame from Ruby, however. I have a WindowAdapter that fires a `Kernel.exit` event when the close button on the frame is clicked. It looks like this: class Controller < WindowAdapter def windowClosing(event) Kernel.exit end end The Frame adds this with `add_window_listener(Controller.new)`. The event successfully fires when I click the close button, but it spits out the following error: `Exception in thread "AWT-EventQueue-0" org.jruby.exceptions.RaiseException: (SystemExit) exit` Calling Kernel.exit from the Frame's initialize successfully exits the program. So I'm not sure why calling it from the listener fails. I know in java you can define an anonymous WindowAdapter inline, but I have no idea what the syntax for that would be in Ruby.
0
[ 2, 2000, 291, 779, 4239, 40, 13, 3885, 38, 3523, 800, 3726, 3726, 31, 868, 20, 2631, 70, 2000, 291, 779, 17, 21160, 255, 20, 196, 100, 31, 110, 164, 109, 8351, 4861, 3217, 946, 9, 31, 22, 195, 330, 14, 718, 8353, 309, 71, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where is Facebook's signed request going? google app engine python === I am really confused, because the documentation states that when a user registers from my website, using a facebook registration form, I am supposed to receive a signed request. I do not know where to look for it. Any replies would be appreciated. I am using Python in Google App Engine and I simply want to know where the signed request is sent.
0
[ 2, 113, 25, 9090, 22, 18, 908, 3772, 228, 60, 8144, 4865, 1406, 20059, 800, 3726, 3726, 31, 589, 510, 4230, 15, 185, 14, 13945, 202, 30, 76, 21, 4155, 2243, 18, 37, 51, 2271, 15, 568, 21, 9090, 8587, 505, 15, 31, 589, 2293, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to add constructors using Groovy 2.0 Extensions === In the older (1.x.x) versions of Groovy you can add constructors using metaClass.constructor Example.metaClass.constructor << { String arg0 -> new Example(arg0, "") } Is there a way to register constructors using the new Groovy 2.0 extension modules?
0
[ 2, 25, 80, 21, 161, 20, 3547, 6960, 248, 18, 568, 3452, 2026, 93, 172, 9, 387, 17529, 800, 3726, 3726, 19, 14, 1234, 13, 5, 165, 9, 396, 9, 396, 6, 3281, 16, 3452, 2026, 93, 42, 92, 3547, 6960, 248, 18, 568, 7618, 1898, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Util or Swing any kind of Java timer is making my whole system hang, freeze, how to protect system crash? === System get hang/freeze when i use util or swing Timer. How can i get ride of this? Other user interface i am calling this Task as below, after retrying, the whole system get frozen. TimerTask t = new Task("Local",a); java.util.Timer timer = new java.util.Timer(); timer.scheduleAtFixedRate(t, 0, 10000); Try 3: FAIL import java.util.Timer; import java.util.TimerTask; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Date; import java.util.logging.Level; import java.util.logging.Logger; public final class Task extends TimerTask { private static Timer timer; //private static ui.V v; private static int input; private static String sinput; public static void main (String... arguments ) { TimerTask f = new Task("Local:",20); timer = new Timer(); timer.scheduleAtFixedRate(f, 0, 10000); } public Task(String sinput, int input) { this.input = input; this.sinput = sinput; } public void run() { System.out.println("Will freeze, dont freeze....."); //v = new ui.V(sinput); loading a user interface //v.up(input); show the value try { Thread.sleep(4000); // wait 4 seconds } catch (InterruptedException ex) { Logger.getLogger(Task.class.getName()).log(Level.SEVERE, null, ex); } //v.killme(); // kill the display timer.cancel(); } } I have also tried following method's but all same result system get freezed, and manually i have to power off and on the PC. Try 0: FAIL t = new java.util.Timer(); t.schedule(new TimerTask() { @Override public void run() { // same } }, 0, 10000); Try 1: FAIL t = new javax.swing.Timer(10000, new ActionListener() { public void actionPerformed(ActionEvent ae) { // same } }); t.start(); Try 2: FAIL new Thread(new Runnable() { public void run() { t = new javax.swing.Timer(10000, new ActionListener() { public void actionPerformed(ActionEvent ae) { // same } }); t.start(); } }).start();
0
[ 2, 13, 14255, 54, 5587, 186, 825, 16, 8247, 85, 139, 25, 544, 51, 979, 329, 4546, 15, 11551, 15, 184, 20, 2196, 329, 4597, 60, 800, 3726, 3726, 329, 164, 4546, 118, 4639, 1734, 76, 31, 275, 13, 14255, 54, 5587, 85, 139, 9, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ How to pass interface to Class Method using const === In native C++ using Visual Studio 2008 how do I pass an interface to a class member using const? Doing the following caused this error: error C2662: 'IMyInterface::PublicMember1' cannot convert 'this' pointer from 'const IMyInterface' to 'IMyInterface &' class IMyInterface { virtual std::wstring PublicMember1() = 0; virtual int PublicMember2() = 0; virtual void Update(const IMyInterface & myObject) = 0; } class MyClass : public IMyInterface { private: std::wstring privateMember1; int privateMember2; public: virtual std::wstring PublicMember1() { return privateMember1; } virtual int PublicMember2() { return privateMember2; } virtual void Update(const IMyInterface & myObject); } void MyClass::Update(const IMyInterface& myObject) { privateMember1 = myObject.PublicMember1(); privateMember2 = myObject.PublicMember2(); }
0
[ 2, 272, 20512, 184, 20, 1477, 6573, 20, 718, 2109, 568, 11608, 38, 800, 3726, 3726, 19, 1275, 272, 20512, 568, 3458, 1120, 570, 184, 107, 31, 1477, 40, 6573, 20, 21, 718, 322, 568, 11608, 38, 60, 845, 14, 249, 1497, 48, 7019, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android account Google getauthtoken value null === My code: Account[] accts = mgr.getAccountsByType("com.google"); Account acct = accts[0]; System.out.println("account:" + acct); AccountManagerFuture<Bundle> acc=mgr.getAuthToken(acct, OAUTH2_SCOPE, null, null, null, null); Bundle authTokenBundle = acc.getResult(); String authToken = authTokenBundle.get(AccountManager.KEY_AUTHTOKEN).toString(); System.out.println("authtoken:"+authToken); The code works after every 1 day. The authentication token comes today but it wont come tomorrow and it works again the day after that. A very weird problem. my OAUTH2_SCOPE = "oauth2:https://www.googleapis.com/auth/userinfo.profile" the getauthtoken function returns null value.
0
[ 2, 13005, 2176, 8144, 164, 1346, 96, 262, 2853, 1923, 16203, 800, 3726, 3726, 51, 1797, 45, 2176, 2558, 500, 7602, 38, 18, 800, 11791, 139, 9, 3060, 29148, 18, 779, 4474, 5, 7, 960, 9, 16111, 4875, 7, 6, 73, 2176, 7602, 38, 800,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
configChanges="orientation" doesn't trigger on Galaxy Nexus === Hello I have a strange bug, when I want to trigger the orientation change on the Galaxy Nexus(4.0.4), it simply doesn't jump into the **onConfigurationChanged(Configuration)** function. On the HTC Desire(4.0.4) it works without any issues with the same code. And even on an Emulator with 720p it works. I tried to update to Android 4.1, but still the same problem. Does anyone have the same problems or any solutions? Thank you
0
[ 2, 13, 14093, 2816, 16229, 18, 3726, 7, 9712, 857, 7, 1437, 22, 38, 7286, 27, 9358, 28674, 800, 3726, 3726, 10975, 31, 57, 21, 2578, 6256, 15, 76, 31, 259, 20, 7286, 14, 10245, 753, 27, 14, 9358, 28674, 5, 300, 9, 387, 9, 300,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting Environment Variables in Rails 3 (Devise + Omniauth) === I've been trying to figure out how Ryan Bates, in his [Facebook Authentication screencast][1], is setting the following "FACEBOOK_APP_ID" and "FACEBOOK_SECRET" environment variables. provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_SECRET'] There seen similar-ish questions around, but no answers that I've been able to get to work on Rails 3.2.1. [1]: http://railscasts.com/episodes/360-facebook-authentication
0
[ 2, 2697, 2307, 12157, 19, 2240, 18, 203, 13, 5, 14438, 2628, 2754, 14677, 1346, 96, 6, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 1465, 70, 184, 2959, 11441, 15, 19, 33, 636, 6413, 5199, 27963, 2324, 6146, 500, 2558, 165, 500, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ SDL "Native' has exited with code -1073741701 (0xc000007b)" === #include "SDL.h" #include <iostream> #undef main int main ( void ) { SDL_Init( SDL_INIT_EVERYTHING ); SDL_Quit( ); return 0; } I followed LazyFoo's tut, but I still needed to modify my settings even to build the solution. Now, every time I debug it I get this: The program '[11228] xxx.exe: Native' has exited with code -1073741701 (0xc000007b). Can you help me please?:\
0
[ 2, 272, 20512, 13, 18, 8643, 13, 7, 21525, 22, 63, 16974, 29, 1797, 13, 8, 18565, 3555, 22463, 3026, 13, 5, 387, 21550, 21903, 2984, 220, 6, 7, 800, 3726, 3726, 6926, 22640, 13, 7, 18, 8643, 9, 252, 7, 6926, 22640, 13, 1, 1963...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Add precision by one to the BigDecimal number? === I have a requirement as below. I have a number of BigDecimal type : 100 i need a method which will take input(100 here) and gives output as 100.1 if 100.1 is passed it should return 100.2 if 100.2 is passed it should return 100.3....etc Is there any simplest solution? Thanks!
0
[ 2, 3547, 13133, 34, 53, 20, 14, 580, 9522, 49, 3482, 234, 60, 800, 3726, 3726, 31, 57, 21, 8981, 28, 1021, 9, 31, 57, 21, 234, 16, 580, 9522, 49, 3482, 1001, 13, 45, 808, 31, 376, 21, 2109, 56, 129, 247, 6367, 5, 4031, 235, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery library files overwrite === I'm working on a website, I have created jquery image slider and overlay dialog box which opens on loading of page. Both uses different jQuery library files namely "jquery.min" and "jquery.tools.min" respectively. Image slider is not working when Overlay dialog box is working and vice versa. Since the js files are overwrite each other. I found out by removing one js file at a time and execting. Please help me in solving this issue. I want both Slider and overlay dialog box. Thanks in advance.
1
[ 2, 487, 8190, 93, 1248, 6488, 84, 23716, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 2271, 15, 31, 57, 679, 487, 8190, 93, 1961, 3295, 106, 17, 84, 4414, 28223, 1649, 56, 8965, 27, 12797, 16, 2478, 9, 156, 2027, 421, 487, 8190, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CUDA SDK examples throw various errors in multi-gpu system === I have a Dell Precision Rack running Ubuntu Precise and featuring two Tesla C2075 plus a Quadro 600 which is the display device. I have recently finished some tests on my desktop-computer and now tried to port stuff to the workstation. Since CUDA was not present I installed it according to [this guide][1] and adapted the SDK Makefiles according to [this suggestions][2]. What I am now facing is that not a single sample (I did test like 10 different ones) is running. Those are the errors I am getting: ---------- [deviceQuery] starting... ./deviceQuery Starting... CUDA Device Query (Runtime API) version (CUDART static linking) cudaGetDeviceCount returned 10 -> invalid device ordinal [deviceQuery] test results... FAILED > exiting in 3 seconds: 3...2...1...done! ---------- [MonteCarloMultiGPU] starting... CUDA error at MonteCarloMultiGPU.cpp:235 code=23510 (cudaErrorInvalidDevice) "cudaGetDeviceCount(&GPU_N)"MonteCarloMultiGPU ================== Parallelization method = threaded Problem scaling = weak Number of GPUs = 0 Total number of options = 0 Number of paths = 262144 main(): generating input data... main(): starting 0 host threads... Floating point exception (core dumped) ---------- [reduction] starting... reduction.cpp(124) : cudaSafeCallNoSync() Runtime API error 10 : invalid device ordinal. ---------- [simplePrintf] starting... simplePrintf.cu(193) : CUDA Runtime API error 10: invalid device ordinal. ---------- As you can see most of the errors are pointing towards a problem with the cudaGetDeviceCount call which return error code 10. According to the manual the problem is: ***cudaErrorInvalidDevice** This indicates that the device ordinal supplied by the user does not correspond to a valid CUDA device.* Unfortunately, the only solution I was able to find suggested to check the devices power plugs. I did that and there was nothing wrong with it. Restarting the workstation does not help either. I'd be happy to supply more details on my configuration. Just leave a comment! [1]: http://sn0v.wordpress.com/2012/05/11/installing-cuda-on-ubuntu-12-04/ [2]: http://laurencedawson.com/upgrading-to-cuda-4.0
0
[ 2, 272, 5729, 13, 18, 43, 197, 3770, 3814, 617, 11908, 19, 1889, 8, 263, 4201, 329, 800, 3726, 3726, 31, 57, 21, 13, 5491, 13133, 10257, 946, 287, 12968, 2473, 11114, 17, 2340, 81, 26190, 272, 1323, 3283, 3123, 21, 13559, 661, 731...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to convert into NSString? === I am new to iPhone sdk.I am struck with utf-8 to nsstring. I am getting this data from web service : `{ Description = "&#28450;&#23383;&#20206;&#21517;&#20132;&#12376;&#12426;&#25991;"; Images = ( { imageName = "0_25_07_2012_10_32_54_1343212374.jpg"; } ); Time = "11:00 am"; actId = 290; actTitle = "&#28450;&#23383;&#20206;&#21517;&#20132;&#12376;&#12426;&#25991;";` Now how can i convert &#21517; this kind of code to nsstring?please help me.thanking you...
0
[ 2, 184, 20, 8406, 77, 13, 2172, 11130, 60, 800, 3726, 3726, 31, 589, 78, 20, 21024, 13, 18, 43, 197, 9, 49, 589, 3395, 29, 287, 11720, 8, 457, 20, 13, 2172, 11130, 9, 31, 589, 1017, 48, 1054, 37, 2741, 365, 13, 45, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C#: How to log an event as Critical using WriteEvent === I am trying to set an event level as Critical using the below method: WriteEvent(id, categoryName, EventSeverity.ErrorCritical, entry); But in the event log it only show event level as Error instead of Critical. Is there any other configuration and parameter I need to set? Many Thanks!
0
[ 2, 272, 5910, 45, 184, 20, 6738, 40, 807, 28, 2507, 568, 2757, 4943, 38, 800, 3726, 3726, 31, 589, 749, 20, 309, 40, 807, 662, 28, 2507, 568, 14, 1021, 2109, 45, 2757, 4943, 38, 5, 1340, 15, 3230, 7259, 15, 963, 5221, 856, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get scrolling transitions in OSX terminal? === How can I get the terminal (or Visor/TotalTerminal) to smoothly scroll when it prints out text. So that I don't completely lose my sense of location when for instance showing git diffs. Or, when navigaiting long diffs in vim-mode using CTRL-D and CTRL-U. I don't want the terminal to "jump" to a new place, but rather smoothly flow to it. (I'm using osx snow leopard)
0
[ 2, 184, 20, 164, 13, 28166, 4513, 18, 19, 13, 759, 396, 3855, 60, 800, 3726, 3726, 184, 92, 31, 164, 14, 3855, 13, 5, 248, 9060, 248, 118, 20148, 20907, 6, 20, 17532, 12159, 76, 32, 12202, 70, 1854, 9, 86, 30, 31, 221, 22, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
hmac-sha256 support === From linux when execute ssh -c 3des -m hmac-sha256, error message 'unknown mac type-hmac256' is thrown. can someone please suggest me how to use hmac256 algorithm? Any ssh client which supports hmac-sha256?
0
[ 2, 746, 6893, 8, 3162, 16910, 555, 800, 3726, 3726, 37, 13024, 76, 15644, 13, 18, 1635, 13, 8, 150, 203, 3196, 13, 8, 79, 746, 6893, 8, 3162, 16910, 15, 7019, 2802, 13, 22, 1020, 2929, 1572, 1001, 8, 252, 6893, 16910, 22, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Not getting the countdown feature in my webpage === I am making a contest platform ..For it I need a countdown timer ..The problem is that I donno JS ..So I googled up and got this script for the timer..But It is not working in the webpage...Please help me out.. Here is the code for the timer...I am getting the box for the div tag but not the timer in it...Please help me coz I am complete new bie in JS.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CoBo:Contest</title> <link href="css/master.css" rel="stylesheet" type="text/css" /> <script> function start(myD, myH, myMins, mySecs, myL) { var d=new Date(); // Returns the Day (number) so we can set it to default currentDay = d.getDate(); var month = 0; // '*' for next month, '0' for this month or 1 through 12 for the month var day = myD; // Offset for day of month day or + day var hour = myH; // 0 through 23 for the hours of the day var minutes = myMins; // Minutes of the hour to End on var seconds = mySecs; // Seconds of the minute to End on var tz = -7; // Offset for your timezone in hours from UTC var lab = myL; // The id of the page entry where the timezone countdown is to show displayTZCountDown(setTZCountDown(month,day,hour,minutes,seconds,tz),lab); } function setTZCountDown(month,day,hour,minutes,seconds,tz) { var toDate = new Date(); if (month == '*')toDate.setMonth(toDate.getMonth() + 1); else if (month > 0) { if (month <= toDate.getMonth())toDate.setYear(toDate.getYear() + 1); toDate.setMonth(month-1); } if (day.substr(0,1) == '+') {var day1 = parseInt(day.substr(1)); toDate.setDate(toDate.getDate()+day1); } else{toDate.setDate(day); } toDate.setHours(hour); toDate.setMinutes(minutes-(tz*60)); toDate.setSeconds(seconds); var fromDate = new Date(); fromDate.setMinutes(fromDate.getMinutes() + fromDate.getTimezoneOffset()); var diffDate = new Date(0); diffDate.setMilliseconds(toDate - fromDate); return Math.floor(diffDate.valueOf()/1000); } function displayTZCountDown(countdown,tzcd) { if (countdown < 0) document.getElementById(tzcd).innerHTML = "<b>Ended</b>"; else {var secs = countdown % 60; if (secs < 10) secs = '0'+secs; var countdown1 = (countdown - secs) / 60; var mins = countdown1 % 60; if (mins < 10) mins = '0'+mins; countdown1 = (countdown1 - mins) / 60; var hours = countdown1 % 24; var days = (countdown1 - hours) / 24; if (hours < 10) { var hours = "0" + hours; } document.write(hours+":"+mins+":"+secs); document.getElementById(tzcd).innerHTML = hours + ':' + mins + ':' + secs; setTimeout('displayTZCountDown('+(countdown-1)+',\''+tzcd+'\');',999); } </script> </head> <body> <div id="sidebar-top"> <div id="inner"> <script> start('9','25','12','00','00','myTimerID'); </script> </div></div> </body> </html>
0
[ 2, 52, 1017, 14, 22566, 1580, 19, 51, 2741, 6486, 800, 3726, 3726, 31, 589, 544, 21, 3013, 2452, 13, 9, 9, 1106, 32, 31, 376, 21, 22566, 85, 139, 13, 9, 9, 124, 1448, 25, 30, 31, 221, 251, 487, 18, 13, 9, 9, 656, 31, 8144,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to start rails seriver === I update my rails version 3.2.3 to 3.2.6 after running the server getting following error. => Booting WEBrick => Rails 3.2.6 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `instance' for #<Class:0x9844050> (NoMethodError) from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:86:in `instantiate_observer' from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:59:in `block in instantiate_observers' from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:59:in `each' from /usr/local/lib/ruby/gems/1.9.1/gems/activemodel-3.2.6/lib/active_model/observing.rb:59:in `instantiate_observers' from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/railtie.rb:117:in `block (2 levels) in <class:Railtie>' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:25:in `each' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:25:in `on_load' from /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/railtie.rb:116:in `block in <class:Railtie>' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:34:in `call' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing' from /home/prasanna/Projects/Petcare/config/environment.rb:5:in `<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' from /home/prasanna/Projects/Petcare/config.ru:4:in `block in <main>' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' from /home/prasanna/Projects/Petcare/config.ru:1:in `new' from /home/prasanna/Projects/Petcare/config.ru:1:in `<main>' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>'
0
[ 2, 2343, 20, 799, 2240, 18, 1353, 14258, 800, 3726, 3726, 31, 11100, 51, 2240, 18, 615, 203, 9, 135, 9, 240, 20, 203, 9, 135, 9, 379, 75, 946, 14, 8128, 1017, 249, 7019, 9, 800, 1, 6801, 68, 95, 21406, 800, 1, 2240, 18, 203,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Show a PopOver always portrait with different interface orientations? === I have blocked interface orientation by this code. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; if (orientation == UIDeviceOrientationPortrait) { NSLog(@"portrait"); }else{ NSLog(@"landsape"); } return NO; } i am using a popover to point to a button upward direction. [popoverController presentPopoverFromRect:[button bounds] inView:button permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; It is is correct for portait mode. My question is How to Show the popover always upward with respect to portait mode of screen? If anyone have any idea please help...Thanks in advance.
0
[ 2, 184, 20, 298, 21, 1675, 2549, 550, 5548, 29, 421, 6573, 10245, 18, 60, 800, 3726, 3726, 31, 57, 8388, 6573, 10245, 34, 48, 1797, 9, 13, 8, 13, 5, 1192, 1823, 6, 14941, 18042, 11699, 1373, 262, 6280, 6413, 9712, 857, 45, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Log user out of facebook without app === I have a site with an `<fb:fan>` tag for liking a page. I am using this deprecated tag for the purpose of being able to use a custom css. This website is not a facebook app. All it does is lets a user like a Facebook page by clicking on the button within the iframe, which logs the user in in Facebook is he isn't logged in yet. I need to be able to log the user out of facebook though, so the next user could log in. How do I log the user out of Facebook and get redirected back to my site?
0
[ 2, 6738, 4155, 70, 16, 9090, 366, 4865, 800, 3726, 3726, 31, 57, 21, 689, 29, 40, 13, 1, 13478, 45, 7491, 1, 3383, 26, 19007, 21, 2478, 9, 31, 589, 568, 48, 121, 3515, 150, 1669, 3383, 26, 14, 2131, 16, 142, 777, 20, 275, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to display div from a.php file using iframe? === How to display div #b(only) from a.php file using iframe? a.php <html> <head></head> <body> <div id="a"> Nice day! </div> <div id="b"> Nice night! </div> </body> </html> b.php <IFRAME width=1200" height="1500" scrolling=no frameborder=0 src="a.php"; marginWidth=0 marginHeight=0></IFRAME>
0
[ 2, 184, 20, 3042, 13, 12916, 37, 21, 9, 26120, 3893, 568, 31, 8361, 60, 800, 3726, 3726, 184, 20, 3042, 13, 12916, 6926, 220, 5, 4965, 6, 37, 21, 9, 26120, 3893, 568, 31, 8361, 60, 21, 9, 26120, 13, 1, 15895, 1, 13, 1, 1743,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
javascript forloop doesn't run all code === So I do have this loop, but it stops when it come to function after effect , also when I remove that code from loop and define x by me, it does work correctly. What is stopping that function after effect? Also when I've tryed without fadeTo and removed that function that is after effect and just putted it behind comma (`$('#item' + x + ' p').html(obchody[window.obchod][x]['doby_a_kontakty']`) it worked too (but with some error and stopped after first loop). for (var x in obchody[window.obchod]) { $('#item' + x + ' p').fadeTo(350, 0, function () { $('#item' + x + ' p').html(obchody[window.obchod][x]['doby_a_kontakty']).fadeTo(350, 1); }); }
0
[ 2, 8247, 8741, 26, 18786, 1437, 22, 38, 485, 65, 1797, 800, 3726, 3726, 86, 31, 107, 57, 48, 5293, 15, 47, 32, 6604, 76, 32, 340, 20, 1990, 75, 1590, 13, 15, 67, 76, 31, 4681, 30, 1797, 37, 5293, 17, 9267, 993, 34, 55, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery slide need content to stay open on hover === Im having trouble with my jquery slide. $(document).ready(function() { $(".events").hover(function() { $(this).next().slideToggle(400); }, function() { $(this).next().slideToggle(400); }); }); When i hover over my image, the hiden content slides out and when im not hovered it slides in, thats great but i need to minipulate it so that the hidden content will stay open when i hover over the content and not just the image. can anyone help me, im new to web desighn and have been stuck on this for some time. Thanks in advance.
0
[ 2, 487, 8190, 93, 6464, 376, 2331, 20, 1179, 368, 27, 21350, 800, 3726, 3726, 797, 452, 2572, 29, 51, 487, 8190, 93, 6464, 9, 5579, 5, 28132, 6, 9, 15193, 5, 22359, 5, 6, 13, 1, 5579, 5, 7, 9, 4943, 38, 18, 7, 6, 9, 252, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Log ActionMailer mails in files === Is there a way to save ActionMailer mails to files as a way of logging the sent mails upon delivery? I have a lot of e-mails that go missing and would like to log the sent mails in files (i.e., I want my web site admin to look through the e-mails, so storing them in files besides having them in my general log file would be helpful in implementing a user-friendly solution). If I can access the contents and addressees of a sent mail, then I can save them to files, but I cannot find a clear way to access the contents of an e-mail from within ActionMailer. There was a [similar question][1] but the only answer there doesn't help me to solve this problem, some pointers or actual code to implement this would be really helpful. Thank you. [1]: http://stackoverflow.com/questions/5696627/best-way-to-log-actionmailer-sent-emails-in-a-database
0
[ 2, 6738, 1028, 8079, 106, 4216, 18, 19, 6488, 800, 3726, 3726, 25, 80, 21, 161, 20, 2079, 1028, 8079, 106, 4216, 18, 20, 6488, 28, 21, 161, 16, 13, 13919, 14, 795, 4216, 18, 685, 6010, 60, 31, 57, 21, 865, 16, 13, 62, 8, 807...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Client Sorter - Possible? === So what I wonder is if it's possible to make a client sorter that would make clients overlapping eachother. For instance if I have 5 browsers opened and I want to make them overlap each other, is it possible to make a program like this? I want to use it for a game where I usually may have up to 10 clients opened and therefore it would be nice to have a program sorting them up quickly. If this is possible. Can the program be written in Java or what language should it be written in?
0
[ 2, 6819, 2058, 106, 13, 8, 938, 60, 800, 3726, 3726, 86, 98, 31, 2666, 25, 100, 32, 22, 18, 938, 20, 233, 21, 6819, 2058, 106, 30, 83, 233, 7421, 23854, 206, 9539, 9, 26, 4851, 100, 31, 57, 331, 16495, 18, 520, 17, 31, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get Stream from ImageSource object for saving in Pictures Library? (Windows Phone 7, C#) === I have an `ImageSource` object (or possibly a `BitmapImage` object). I want to save this to the Pictures Library, using the `SavePicture` method of `MediaLibrary` class (XNA framework). How can I achieve this? Thanks in advance.
0
[ 2, 184, 20, 164, 3766, 37, 1961, 12097, 3095, 26, 7599, 19, 3104, 1248, 60, 13, 5, 27508, 18, 1132, 453, 15, 272, 5910, 6, 800, 3726, 3726, 31, 57, 40, 13, 1, 22039, 12097, 1, 3095, 13, 5, 248, 2879, 21, 13, 1, 3326, 15022, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to include only certain Java classes when executing "gradle test" === I have JUnit test classes in both the default Java package and my specific package. My Gradle build-file contains test { include 'edu/ucar/unidata/sruth/' } in order to exclude the JUnit test classes in the default Java package. It's not working: a `gradle test` always executes the default Java package tests as well as the package-specific tests (according to the contents of `build/reports/test`). How do I execute only the package-specific tests? I'm using Gradle 1.0.
0
[ 2, 184, 20, 468, 104, 1200, 8247, 2684, 76, 25836, 13, 7, 7691, 413, 1289, 7, 800, 3726, 3726, 31, 57, 7446, 242, 1289, 2684, 19, 156, 14, 12838, 8247, 6030, 17, 51, 1903, 6030, 9, 51, 13, 7691, 413, 1895, 8, 16877, 1588, 1289, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Copy to another folder and add date stamp === I have been all over forums and cant seem to find what i need and as i am total newbe to a writing batch files I cant really modify the ones I have found. I need a file that will copy all files with extension .dwg (or all files in the folder) to another folder with added date stamp at the beginning. the point is to keep only one set of files in the main directory and to make a copy in the archive folder. Thanks in advance Janko
0
[ 2, 4344, 20, 226, 19294, 17, 3547, 1231, 10151, 800, 3726, 3726, 31, 57, 74, 65, 84, 5691, 18, 17, 2973, 2260, 20, 477, 98, 31, 376, 17, 28, 31, 589, 600, 78, 863, 20, 21, 1174, 13064, 6488, 31, 2973, 510, 17579, 14, 53, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android Layout Not Laying Out Custom View as Expected === I am making an Android application using custom views. I have done this many times before but this time I seem to have encountered a weird issue. When attempting to make the layout, either through XML or the layout editor, my custom view does not layout as expected. When I place one of my views to the right of an existing one, it appears to align to the left. I have attached an image to show what I mean ![Layout Issue][1] [1]: http://i.stack.imgur.com/IiMqH.png I'm not certain what is causing this, it doesn't appear to happen with any other view, and has never happened before with previous applications despite me using similar code for the custom view. Has anyone encountered an issue like this before? If so, any suggestions? I can put up the code for the view and other potentially relevant code if requested.
0
[ 2, 13005, 9106, 52, 11514, 70, 5816, 1418, 28, 1727, 800, 3726, 3726, 31, 589, 544, 40, 13005, 3010, 568, 5816, 4146, 9, 31, 57, 677, 48, 151, 436, 115, 47, 48, 85, 31, 2260, 20, 57, 8208, 21, 5455, 1513, 9, 76, 6314, 20, 233,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to push the forked repository which has submodule? === There is a `A` project and the A project has a submodule `S` A |-S |-B |-C >A repo: git@github.com:**benjamin**/*A*.git S repo: git@github.com:**owner**/*S*.git To contribute some bug fix, I forked the `A` repository and cloned it. `$ git clone git@github.com:benjamin/A.git` and then to download a `submodule S` I commanded `$ git submodule init` `$ git submodule update` Okay, the code tree are made well, and I fixed the bug at a file in `A` and a file in `S`. To commit and push the two files, $ cd S $ git add modified_file $ git commit -a -m 'submodule commit' $ git push But the push is not work. >ERROR: Permission to owner/S.git denied to benjamin. fatal: The remote end hung up unexpectedly Should I also fork `S` repository either? How do you do in this case?
0
[ 2, 184, 20, 3250, 14, 26, 4616, 24869, 56, 63, 972, 19673, 62, 60, 800, 3726, 3726, 80, 25, 21, 13, 1, 58, 1, 669, 17, 14, 21, 669, 63, 21, 972, 19673, 62, 13, 1, 18, 1, 21, 13, 1, 8, 18, 13, 1, 8, 220, 13, 1, 8, 150...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where are the aggregates of the built-in news.reads action? === I have a Facebook application that wants to publish document reads to a users OpenGraph. Since `read` is a reserved, built-in action, my `object`s have to have the type `article`. The publishing of reads to the user's graph works fine and the last read is also shown on the user's timeline. Additionally, I have set up some aggregators that would show the last 5 reads, the most popular authors etc. The problem is that I can not find those aggregators anywhere in my timeline/profile or in the App section of my user. ![See the set up objects, actions and aggregators here][1] **Is it not possible to control/show the aggregators for built-in actions and objects?** I have a feeling it should be, since I can set them up and e.g. Spotifiy also uses the built-in `music.song` objects. [1]: http://i.stack.imgur.com/UUb8A.png
0
[ 2, 113, 50, 14, 8544, 18, 16, 14, 392, 8, 108, 996, 9, 10647, 18, 1028, 60, 800, 3726, 3726, 31, 57, 21, 9090, 3010, 30, 2846, 20, 10824, 4492, 11137, 20, 21, 3878, 368, 9614, 9, 179, 13, 1, 10647, 1, 25, 21, 9430, 15, 392, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Yii CListView Pagination customising === is there a way to customise the Yii CListView Pagination object to show previous 1 of n pages next rather then previous 1,2,3 next ? thanks
0
[ 2, 7679, 49, 272, 5739, 4725, 19006, 108, 857, 5816, 7552, 800, 3726, 3726, 25, 80, 21, 161, 20, 5816, 2628, 14, 7679, 49, 272, 5739, 4725, 19006, 108, 857, 3095, 20, 298, 1158, 137, 16, 13, 103, 4434, 328, 864, 94, 1158, 13, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Try...catch vs if...else for exceptions - Java === What if I want to take user input from the `args[0]` array, but just in case I (the user) forgot to define it, I wanted a prompt to come up - is it better to use an `if` block to determine whether the array item(s) is empty or not, or to catch the exception? So, is this public class Stuff { static Scanner input = new Scanner(System.in); public static void main(String[] args) { String foo; if(args[0] != null) { foo = args[0]; } else { foo = getString("Input? "); } } public static String getString(String prompt) { System.out.print(prompt + " "); String answer = input.nextLine(); return answer; } } better or worse than public class Stuff { static Scanner input = new Scanner(System.in); public static void main(String[] args) { String foo; try { foo = args[0]; } catch(ArrayIndexOutOfBoundsException e) { foo = getString("Input? "); } } public static String getString(String prompt) { System.out.print(prompt + " "); String answer = input.nextLine(); return answer; } }
0
[ 2, 1131, 9, 9, 9, 18208, 4611, 100, 9, 9, 9, 6798, 62, 26, 13392, 13, 8, 8247, 800, 3726, 3726, 98, 100, 31, 259, 20, 247, 4155, 6367, 37, 14, 13, 1, 10663, 18, 2558, 387, 500, 1, 7718, 15, 47, 114, 19, 610, 31, 13, 5, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"./postinstall" failed with return code [Timeout] === when i run 'dotcloud push traing'... running postinstall script take a long time and get error below. I created a new account. cd to project and run command: 'dotcloud create training' and 'dotcloud push training' but nothing change.<br /> anyone can help me?plz Running postinstall script... ERROR: deployment aborted due to unexpected command result: "./postinstall" failed with return code [Timeout] postinstall #!/bin/sh #python createdb.py python training/manage.py syncdb --noinput python mkadmin.py mkdir -p /home/dotcloud/data/media /home/dotcloud/volatile/static python training/manage.py collectstatic --noinput requirements.txt Django==1.4 PIL==1.1.7
0
[ 2, 13, 7, 9, 118, 6962, 108, 21300, 7, 1702, 29, 788, 1797, 636, 891, 1320, 500, 800, 3726, 3726, 76, 31, 485, 13, 22, 12527, 19174, 3250, 1528, 263, 22, 9, 9, 9, 946, 678, 108, 21300, 3884, 247, 21, 175, 85, 17, 164, 7019, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
cannot display jpeg images === >I am writing some web pages using XAMPP but cannot display jpeg images. Maybe I have to change some configuration files,can someone show me how to fix this.
0
[ 2, 1967, 3042, 487, 20427, 3502, 800, 3726, 3726, 13, 1, 49, 589, 1174, 109, 2741, 4434, 568, 993, 765, 3421, 47, 1967, 3042, 487, 20427, 3502, 9, 913, 31, 57, 20, 753, 109, 8091, 6488, 15, 1245, 737, 298, 55, 184, 20, 6098, 48,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Transliteration for my language (Urdu) in Java === I want to design a java application (non commercial use) which can do the same as google transliteration done in different languages. I don't want to use the prepared API of google for some web etc. I just need a simple desktop application to be able to transliterate english alphabets into URDU (As google does). All i need is a good idea that click me to start over it, I am a little confuse about how to get started over that, thanks
1
[ 2, 26949, 106, 857, 26, 51, 816, 13, 5, 13018, 6, 19, 8247, 800, 3726, 3726, 31, 259, 20, 704, 21, 8247, 3010, 13, 5, 3951, 1439, 275, 6, 56, 92, 107, 14, 205, 28, 8144, 26949, 106, 857, 677, 19, 421, 2556, 9, 31, 221, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to send message from service to activite === I build an AsyncTask that create a service and now I want to sent from service to AsyncTask message. my code on the AsyncTask is: class ResponseHandler extends Handler { public void handleMessage(Message message) { // Toast.makeText(this, "message from service",Toast.LENGTH_SHORT).show(); } hope that it will handle the message from service correct my if I wrong. and from service tried to do this Message message = Message.obtain(null, MyService.ADD_RESPONSE_HANDLER); message.replyTo = messenger; try { myService.send(message); catch (RemoteException e) { e.printStackTrace(); } but my errors are cannot find symbol in lines: MyService.ADD_RESPONSE_HANDLER message.replyTo = messenger; try { myService.send(message); what I need to add please give me a code that will do the work. thanks a lot.
0
[ 2, 184, 20, 2660, 2802, 37, 365, 20, 13, 19516, 2119, 800, 3726, 3726, 31, 1895, 40, 21, 9507, 20255, 3656, 30, 1600, 21, 365, 17, 130, 31, 259, 20, 795, 37, 365, 20, 21, 9507, 20255, 3656, 2802, 9, 51, 1797, 27, 14, 21, 9507,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
BASH: How to activate FULL $var completion === under Debians BASH I can do the following: foo=/path/to/some/file cat $f[TAB] As you can see, I can autocomplete the variable $foo by pressing TAB. Under Ubuntu (11) the behaviour is not the same (I've activated '/etc/bash_completion' in my bashrc). This is working: echo $f[TAB] This one is not working: cat $f[TAB] Can anyone give me a hint, how to get the last one working? Thanks in advance.
0
[ 2, 13158, 45, 184, 20, 18163, 503, 5579, 3311, 5392, 800, 3726, 3726, 131, 12406, 4857, 13158, 31, 92, 107, 14, 249, 45, 4310, 111, 3726, 118, 8353, 118, 262, 118, 3220, 118, 16877, 2008, 5579, 410, 2558, 15783, 500, 28, 42, 92, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Add logo to video === I have a video streaming websites. And I have many videos on my website. I want to add my logo to all videos. How can I process all my videos using ruby *if feasible* to add my logo and add video intro at the video start?
0
[ 2, 3547, 6449, 20, 763, 800, 3726, 3726, 31, 57, 21, 763, 11920, 13931, 9, 17, 31, 57, 151, 6610, 27, 51, 2271, 9, 31, 259, 20, 3547, 51, 6449, 20, 65, 6610, 9, 184, 92, 31, 953, 65, 51, 6610, 568, 10811, 1637, 821, 13, 2370...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
libxml2 and libxml2-dev on OSX === When trying to build the Unix QuickFIX engine, I get the following error after ./bootstrap warning:macro 'AM_PATH_XML2' not found in library As I understand, libxml2 already comes with XCode OS X Mountain Lion. An answer I found suggested to download libxml2-dev, although I could not find the package using HomeBrew. I'm relatively new to programming on OS X and Xcode and porting Unix applications, so I'm not sure exactly what I have yet.
0
[ 2, 13, 8326, 396, 8184, 135, 17, 13, 8326, 396, 8184, 135, 8, 14438, 27, 13, 759, 396, 800, 3726, 3726, 76, 749, 20, 1895, 14, 22540, 2231, 18594, 1406, 15, 31, 164, 14, 249, 7019, 75, 13, 9, 118, 10858, 38, 18, 16514, 3590, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Progress bar using Drawables === I need to create a simple progress bar using two drawable images. One is the background of course. The other I need to scale according to a percentage float. Is it possible using Java code only? I tried the setBounds() method with no avail... :( thanks
0
[ 2, 3455, 748, 568, 2003, 579, 18, 800, 3726, 3726, 31, 376, 20, 1600, 21, 1935, 3455, 748, 568, 81, 2003, 579, 3502, 9, 53, 25, 14, 2395, 16, 674, 9, 14, 89, 31, 376, 20, 3464, 496, 20, 21, 5780, 11510, 9, 25, 32, 938, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
uploading files to google appengine === I have deployed my application to google appengine.I have no idea how can I upload files to google appengine. Earlier I had been using _apachecommonns_ library to upload files.Though not exactly clear why I can't use the same library to upload files here to google app server,I want to know how I can upload files to google app engine using _Java_ ?
0
[ 2, 71, 16866, 6488, 20, 8144, 4865, 16847, 800, 3726, 3726, 31, 57, 6698, 51, 3010, 20, 8144, 4865, 16847, 9, 49, 57, 90, 882, 184, 92, 31, 71, 8294, 6488, 20, 8144, 4865, 16847, 9, 1201, 31, 41, 74, 568, 13, 1, 7738, 2569, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Appcelerator: how to set background color of window on Android? === I'm trying to set background color of my window on Android and... no use.. Any help will be appreciated. var self = Ti.UI.createWindow({ backgroundColor : 'red', fullscreen : true, navBarHidden : true, exitOnClose : false }); above does not work :/ I've tried with '#ff0000' instead of 'red' and still no go.
0
[ 2, 4865, 1105, 1252, 3457, 45, 184, 20, 309, 2395, 1665, 16, 1463, 27, 13005, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 2395, 1665, 16, 51, 1463, 27, 13005, 17, 9, 9, 9, 90, 275, 9, 9, 186, 448, 129, 44, 13746, 9, 4033,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are there any drawbacks to using cascading "else if" statements? === This question pertains to pretty much all C-like "curly bracket" programming languages. I'm talking about using the following: <!-- language-all: lang-c --> if(condition) meh(); else if(condition1) bleh(); else if(condition2) moo(); else foo(); Are there any caveats to be aware of when using this idiom in code? I'm looking for things like performance penalties, compiler limits, etc. What would a typical compiler do with something like this? I ask because even though it looks nice and flat to the human eye, it would actually be strictly parsed as equivalent to the following, with the braces added: if(condition) { meh(); } else { if(condition1) { bleh(); } else { //... } } i.e. the `else if` is not really a delimiter; instead each `if` would be nested inside the preceding `else`. It would be like parsing x+y+z+... as x+(y+(z+...)). Do compilers actually treat it this way, or would they treat `else if` as a special case? If the former, what caveats would I have to be aware of? (This is my first question on StackOverflow.)
0
[ 2, 50, 80, 186, 2003, 1958, 18, 20, 568, 7167, 13489, 68, 13, 7, 6798, 62, 100, 7, 9015, 60, 800, 3726, 3726, 48, 1301, 416, 5851, 18, 20, 1772, 212, 65, 272, 8, 1403, 13, 7, 4734, 102, 19543, 7, 3143, 2556, 9, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
randomly choosing and filling datatype === So I have 2 data types for simplicity say one holds an int and one holds a string. So let's say I have data ranData = randInt Int | randString String How can I make a function that will either choose one of these and then give it a random value. I have some ideas, but they are rather inelegant
0
[ 2, 21324, 10883, 17, 7702, 1054, 4474, 800, 3726, 3726, 86, 31, 57, 172, 1054, 2551, 26, 20595, 395, 53, 2763, 40, 19, 38, 17, 53, 2763, 21, 3724, 9, 86, 408, 22, 18, 395, 31, 57, 1054, 717, 18768, 800, 11310, 6391, 19, 38, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery Selection Out Of Multiple Elements === there's a php scripts which create multiple `<p>text</p>` elements due to user's query. I'd like to create an option that every time user clicks on a certain element , the text in this elements will appear in a text box. The intuitive way to do such task is: <p class="c1"> textA...</p> <p class="c2"> textB...</p> <p class="c3"> textC...</p> <p class="c4"> textD...</p> and the jQuery code will be : $("p.c1").click(function(){ code... } $("p.c2").click(function(){ code... } etc ... Is there any elegant method of implementing this functionality ? Any suggestion will be helpful, Thanks in advance
0
[ 2, 487, 8190, 93, 3155, 70, 16, 1886, 2065, 800, 3726, 3726, 80, 22, 18, 21, 13, 26120, 17505, 56, 1600, 1886, 13, 1, 306, 1, 11969, 1, 118, 306, 1, 2065, 397, 20, 4155, 22, 18, 25597, 9, 31, 22, 43, 101, 20, 1600, 40, 4255,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I add dynamic html to a server control? === I am creating a server control that will sit in a `aspx` page. When the user selects a menu option, html controls (selects, inputs, etc) will have be added dynamically. I can do it using a user control, but I'm not sure how to go about it in a server control. Can anyone tell me how I can add dynamic html into the control after it's already sitting in a page?
0
[ 2, 184, 92, 31, 3547, 7782, 13, 15895, 20, 21, 8128, 569, 60, 800, 3726, 3726, 31, 589, 2936, 21, 8128, 569, 30, 129, 2066, 19, 21, 13, 1, 472, 306, 396, 1, 2478, 9, 76, 14, 4155, 5407, 18, 21, 11379, 4255, 15, 13, 15895, 86...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
uiimagepickercontroller shows under tab bar === I have tab bar app with two items. So in first item i have view with navigation controller. In one of the views inside og navigation controller i call uiimagepickercontroller [self presentModalViewController:modal animated:Yes]; but modalViewController shows under tabbar. I want modalviewcontroller to show above tabbar also after i call uiimagepickercontroller and worked with it all my views in navigation controllers shows themself on 44 pixels under navigation tool bar. where is the trouble? thank you very much!!!
0
[ 2, 13, 5661, 22039, 16855, 106, 12898, 1252, 1285, 131, 6523, 748, 800, 3726, 3726, 31, 57, 6523, 748, 4865, 29, 81, 3755, 9, 86, 19, 64, 9101, 31, 57, 1418, 29, 8368, 9919, 9, 19, 53, 16, 14, 4146, 572, 7096, 8368, 9919, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery Mobile Back Button Not Working with Chrome on FB === So I'm creating this sample application using JQuery Mobile on Facebook. The problem I am running into is with the back button on chrome. http://www.facebook.com/pages/ProdigyView/214942945205059?sk=app_397015110360498 Using firefox or safari, I can use the back button and go the 'page' I was previously on after clicking a link. Using Chrome, when I click the back button, it A) First Click doesn't go anywhere B) Second click takes you back to the page you were on, if you came from another site Doing some research, this is very similar to this problem last year: http://blog.duc.as/2011/07/13/back-button-broken-for-url-hashes-in-ie-on-wp7-mango/ Anyone know what the problem is and a possible fix?
0
[ 2, 487, 8190, 93, 3241, 97, 5167, 52, 638, 29, 13, 12985, 27, 13, 13478, 800, 3726, 3726, 86, 31, 22, 79, 2936, 48, 5717, 3010, 568, 487, 8190, 93, 3241, 27, 9090, 9, 14, 1448, 31, 589, 946, 77, 25, 29, 14, 97, 5167, 27, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...