unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Works in VB.NET but not in C# - byte conversion === So I am migrating some code from VB.NET to C# however it fails when it is doing a byte parse in C#. here is the VB.NET code would works: Dim sModifiedAccountNumber_AsciiHex Dim iByte As Byte = 0 Dim iIdx As Integer = 0 Dim strByte As String = String.Empty sModifiedAccountNumber_AsciiHex = "FC13" For iIdx = 1 To 3 Step 2 iByte = CByte("&H" & Mid$(sModifiedAccountNumber_AsciiHex, iIdx, 2)) If iByte >= 120 And iByte <= 127 Then iByte = iByte Or &H80 strByte = Hex$(iByte) Do While Len(strByte) < 2 strByte = "0" & strByte Loop Mid$(sModifiedAccountNumber_AsciiHex, iIdx, 2) = strByte End If Next The C# version: string modAccountNumberAsciiHex = "FC13"; byte iByte; string strByte = string.Empty; for (int iIdx = 1; iIdx <= 3; iIdx += 2) { iByte = byte.Parse(("&H" + modAccountNumberAsciiHex.Substring((iIdx - 1), 2))); if (iByte >= 120 && iByte <= 127) { iByte = iByte |= 0x80; strByte = BitConverter.ToString(new byte[] { iByte }); while (strByte.Length < 2) { strByte = "0" + strByte; } // TODO: convert the line below to C# // Mid$(sModifiedAccountNumber_AsciiHex, iIdx, 2) = strByte } } so in C# I always get a FormatException when doing the byte.Parse (line straight after the for statement) any thoughts on what this should be in C#? in addition - the C# version in the TODO comment would also be appreciated :-)
0
[ 2, 693, 19, 13, 20468, 9, 2328, 47, 52, 19, 272, 5910, 13, 8, 34, 591, 6263, 800, 3726, 3726, 86, 31, 589, 28749, 109, 1797, 37, 13, 20468, 9, 2328, 20, 272, 5910, 207, 32, 13614, 76, 32, 25, 845, 21, 34, 591, 2017, 870, 19,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 C++ STL Containers in GDB/Nemiver in Linux === I'm using Linux (Ubuntu 11.10) and gdb 7.3 / Nemiver 0.8.2.<br> I'd like to display content of STL containers, but so far I've been not _really_ successful. Is there any other visual debugger (better based on gdb) I should be using to display the STL containers variables?<br> I'm looking for a solution which supports composition of containers (i.e. `std::map<int, std::vector< std::pair< ... > > >`). Cheers
0
[ 2, 184, 20, 3042, 272, 20512, 354, 255, 18988, 19, 489, 9007, 118, 556, 79, 19737, 19, 13024, 800, 3726, 3726, 31, 22, 79, 568, 13024, 13, 5, 4502, 1020, 2473, 547, 9, 1036, 6, 17, 489, 9007, 453, 9, 240, 13, 118, 16714, 19737, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 work for once and stop === <script> $('.alert_success').hide(); $('.alert_error').hide(); $('.trash').click(function(){ var r=confirm("wil delete") if (r==true) { var id = $(this).attr('id'); $.post('ajax/del_art.php',{id:id},function(data){ $("#concon").fadeOut(1000); $('.alert_success').fadeIn(1000); $('.alert_success').html(data); $('.alert_success').delay(5000); $('.alert_success').fadeOut(1000); }); } }); when i click to delete code work for once (id #concon)and stop how can replace #concon with $(this) i want when i press delete item delete and hide
0
[ 2, 1797, 170, 26, 382, 17, 747, 800, 3726, 3726, 13, 1, 8741, 1, 5579, 5, 22, 9, 192, 6767, 1, 29245, 22, 6, 9, 19522, 5, 6, 73, 5579, 5, 22, 9, 192, 6767, 1, 29992, 22, 6, 9, 19522, 5, 6, 73, 5579, 5, 22, 9, 38, 15469...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
2 tcpdumps from a remote host === I need to collect tcpdump from different interfaces from a remote host. Currently I do it in the following way: > ssh remotehost "tcpdump -i iface1 -w - " > iface1_dump.pcap & > ssh remotehost "tcpdump -i iface2 -w - " > iface2_dump.pcap I wonder if there a way to realize it in single ssh connect (maybe some complex shell redirect is a cure) to minimize packets loss while second ssh command is on its way 2 conditions: remote host has really limited disk space, so I can't tcpdump locally on that host **tcpdump -i any** affects Ethernet headers, so I can't use it
0
[ 2, 172, 13, 6668, 9251, 11134, 18, 37, 21, 5388, 2015, 800, 3726, 3726, 31, 376, 20, 5543, 13, 6668, 9251, 11134, 37, 421, 6573, 18, 37, 21, 5388, 2015, 9, 871, 31, 107, 32, 19, 14, 249, 161, 45, 13, 1, 13, 18, 1635, 5388, 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...
Linking errors to the right field in WTForms FieldLists === I am using WTForm to validate a form that I submit directly from a javascript model (filled through knockout). In my form I have a list of bank accounts which can be added/removed dynamically. On the python side I have something like this : class Account(Form): acc_name = TextField('Account', [validators.Length(min=2, max=35)]) class InformationForm(Form): account_list = FieldList(FormField(Account)) The json data that is received for validation is the following : 'account_list': [{'acc_name': 'aaaaa'}, {'acc_name': 'b'}]} The problem is then when I validate I receive something like this: 'account_list': [{'acc_name': [u'Field must be between 2 and 35 characters long.']} How can I do to link the error to the right account ?
0
[ 2, 12585, 11908, 20, 14, 193, 575, 19, 619, 38, 4190, 18, 575, 5739, 18, 800, 3726, 3726, 31, 589, 568, 619, 38, 4190, 20, 7394, 1373, 21, 505, 30, 31, 12298, 1703, 37, 21, 8247, 8741, 1061, 13, 5, 12950, 120, 11676, 6, 9, 19,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
qt QML property binding not updating === I am continuously getting data for my application as it runs, but I am having a bit of trouble displaying the data once I have read it in and stored it in a map. When I try to display the data in the QML, it simply displays zero, despite the fact that I can see it updating in the application output. I access the value in QML using property bindings (I was under the impression that these led headingSensor to be updated whenever carData.headingSensor changed???): property int headingSensor: carData.headingSensor Text { text: "Heading: " + headingSensor } In my data class I have: Q_PROPERTY(int headingSensor READ getHeadingSensor NOTIFY headingSensorChanged) int headingSensor; In the c++ implementation I originally had: int data::getHeadingSensor(){ return data.value(heading)[headingSensorReading]; } Where it returns the value in the map which is being updated with the incoming information. This I realized, probably doesn’t work, because the property is dependent upon the headingSensor variable, which is itself not being updated despite the correct value being returned. So, I thought if I changed it to update the headingSensor value and return that it might work. So in my data aquisition logic I wrote a method to update the variables as well. data.insert(key, value); updateVariables(); } } } void data::updateVariables(){ headingSensor = data.value(heading)[headingSensorReading]; } int data::getHeadingSensor(){ return headingSensor; } While this led to the headingSensor variable being updated in addition to the value in the map, the correct value is still not displayed in the QML display. It simply displays 0 (its default value when it is initially displayed since it has not gotten a value from incoming data yet). So, I am wondering, how can I get the value of sensorHeading displayed in the QML to update as the value of it and/or the value in the map changes in c++? Do I need to do something like Connections { target: carData onSensorHeadingChanged: updateValues } ????
0
[ 2, 2593, 38, 2593, 8184, 1354, 8728, 52, 71, 43, 1880, 800, 3726, 3726, 31, 589, 11738, 1017, 1054, 26, 51, 3010, 28, 32, 1461, 15, 47, 31, 589, 452, 21, 1142, 16, 2572, 17418, 14, 1054, 382, 31, 57, 1302, 32, 19, 17, 8214, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
requestWindowFeature() in External Class by Passing Activity Context === I am trying to make most of the utility functions abstract, so I decided to separate them in a new class called Utils.java (inside the Android app package). However, I am having hard time passing the activity context to this helper class and run some system stuff in its (the helper class' methods). I have this scenario in the main activity's onCreate: Utils u = new Utils(this); u.makeFullscreen(); Utils.java: package mypackagenamehere; import android.content.Context; import android.view.Window; import android.view.WindowManager; public class Utils{ Context context; // Constructor public Utils(Context c) { context = c; } public void makeFullscreen(){ context.requestWindowFeature(Window.FEATURE_NO_TITLE); context.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } } The issue is with the contents of the makeFullscreen() method.
0
[ 2, 3772, 27508, 26956, 5, 6, 19, 4886, 718, 34, 2848, 2358, 4141, 800, 3726, 3726, 31, 589, 749, 20, 233, 127, 16, 14, 10082, 3719, 8502, 15, 86, 31, 868, 20, 1725, 105, 19, 21, 78, 718, 227, 13, 14255, 18, 9, 1004, 1385, 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...
Specifying the HTML page that a jQuery selector refers to? === I'm trying to write jQuery code to count the number of `<img>` elements contained on a site. The site is comprised of 4 separate HTML pages, all in the same folder on the server. Only one of these pages, "pics.html", loads the .js file that needs to perform this function (pics.html is the only page that needs to know how many images are on the site). It's easy to get the `<img>` elements from pics.html, since pics.html is the page that loads the script: var numImgs = $('img').length; ...but I'm confused as to how I would perform this same function in reference to a different page. Is it possible to specify the HTML page that the selector refers to? I tried this, as a wild guess: var numImgs = $('test.html:img').length; Unsurprisingly, it didn't work. I googled for the answer, but couldn't find a solution - or if I did find one, I suppose I didn't understand it well enough to realize that it was the answer. Thanks for any help you can offer!
0
[ 2, 19077, 68, 14, 13, 15895, 2478, 30, 21, 487, 8190, 93, 23946, 3806, 20, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 487, 8190, 93, 1797, 20, 2468, 14, 234, 16, 13, 1, 1660, 263, 1, 2065, 3437, 27, 21, 689, 9, 14, 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...
Processing data in couchdb with hadoop + mapreduce === Ok so this may sound very stupid, I am very new to this stuff. But here is my predicament. I have a very very large quantity of data in couchdb, but I have very recently found out how crippled the mapreduce functions in couch are (no chaining). So I had this idea of running map reduce queries from the couchdb database using hadoop, and hopefully storing the final result in another couchdb database? Is this too crazy? I know I can set up hbase to do this, but I do not want to migrate my data from couchdb to hbase. And I love couch as a data store. Thanks in advance!
0
[ 2, 5511, 1054, 19, 4914, 9007, 29, 41, 21709, 2754, 2942, 99, 16041, 800, 3726, 3726, 5854, 86, 48, 123, 646, 253, 3553, 15, 31, 589, 253, 78, 20, 48, 3217, 9, 47, 235, 25, 51, 28204, 9, 31, 57, 21, 253, 253, 370, 12881, 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...
Receiving messages using a CAN adapter === I'm using a CAN adapter API for visual C++ express. You can find out more about the API at [their website][1]. Click on the USB-CANmodul2 Hardware Manual for the correct pdf I am using. This is useful for any program that uses CAN that needs a good API for it. [My code][2] Attached are some pictures to help describe what it is I am doing. I'm running a CAN bootloader on one compiler and my parsing program is on visual express. The parsing program should read from a text file and send parsed information to the CAN bootloader so it can program it to its memory. I am able to send messages fine. The problem is, when the CAN bootloader receives a message, it is supposed to reply to the other program that everything sent was correct, but I can't figure out how to receive messages in the parsing program with the API. I have done basically everything the their pdf told me. Any ideas of what I am doing wrong? Pictures of the programs in debug mode: The information from the parsing program sent, the bootloader is putting it into a buffer. The bootloader is about to call functions to send a message back saying no error.The parsing program never gets past the polling loop, so it never receives the message. I know the bootloader sending functions worked because I have tested them with the same CAN program the API comes in. Hopefully that is enough information for you guys to kind of understand what I am doing. Edit: I found out I can only submit with two hyperlinks, so I can't send the pictures. Hopefully what I said was enough information. [1]: http://www.phytec.com/products/can/pc-can-interfaces/sysusb2.html [2]: http://pastebin.com/JcipGK8Y
0
[ 2, 3396, 7561, 568, 21, 92, 9924, 106, 800, 3726, 3726, 31, 22, 79, 568, 21, 92, 9924, 106, 21, 2159, 26, 3458, 272, 20512, 2999, 9, 42, 92, 477, 70, 91, 88, 14, 21, 2159, 35, 636, 18073, 2271, 500, 2558, 165, 500, 9, 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...
VB.Net - Microsoft.Office.Interop.Outlook - doesn't work when workstation is locked? === My VB.Net application is designed to work side by side with Outlook to perform the following: 1) Check for new unread emails every 10 seconds (Timer), 2) Capture data from each field (To, From, Date, Subject, Body, etc.) and store within a SQL table, 3) Delete the email from inbox. This application works flawlessly right up until the moment where the workstation locks itself from the screensaver timeout. When the PC is unlocked it resumes normal operation and goes through the backlog of emails. You're probably going to say to just disable the screensaver, however this PC is only accessed by microsoft remote desktop using a shared user account so this isn't possible. This runs under Windows XP SP3 and Outlook 2003. My issue isn't really to find a solution, it's more to just find the cause. But obviously a solution would be nice. Here is a snippet of code from the application, it's basic Microsoft.Office.Interop.Outlook VB.Net code: Public Sub Outlook_GetMail() Dim sFileName As String = "senderexcludedlist.txt" Dim ssenderexcludedlist As String = "" If System.IO.File.Exists(sFileName) = True Then Dim objReader As New System.IO.StreamReader(sFileName) Do While objReader.Peek() <> -1 ssenderexcludedlist = objReader.ReadLine() Loop objReader.Dispose() End If Dim sMessage As String = "" ' Create Outlook application. Dim oApp As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application ' Get Mapi NameSpace. Dim oNS As Microsoft.Office.Interop.Outlook.NameSpace = oApp.GetNamespace("mapi") oNS.Logon("Mailbox", Missing.Value, False, True) ' Get Messages collection of Inbox. Dim oInbox As Microsoft.Office.Interop.Outlook.MAPIFolder = oNS.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox) Dim oItems As Microsoft.Office.Interop.Outlook.Items = oInbox.Items ' Get unread e-mail messages. oItems = oItems.Restrict("[Unread] = true") ' Loop each unread message. Dim oMsg As Microsoft.Office.Interop.Outlook.MailItem Dim i As Integer For i = 1 To oItems.Count On Error Resume Next oMsg = oItems.Item(i) Dim strBody = oMsg.Body() strBody = Replace(strBody, vbNewLine, "<BR>") strBody = Replace(strBody, "'", "´") Dim strSenderEmailAddress As String = oMsg.SenderEmailAddress If InStr(ssenderexcludedlist, strSenderEmailAddress) = 0 And Not oMsg.SenderName.Contains("Leeds Tech Support") Then sMessage = sMessage & oMsg.Subject & vbNewLine sMessage = sMessage & oMsg.SenderName & vbNewLine sMessage = sMessage & strSenderEmailAddress & vbNewLine sMessage = sMessage & oMsg.CC & vbNewLine sMessage = sMessage & oMsg.ReceivedTime & vbNewLine sMessage = sMessage & oMsg.Body & vbNewLine sMessage = sMessage & "---------------------------" & vbNewLine & vbNewLine MsgLog.Text = sMessage & MsgLog.Text 'INSERT SQL HERE End If oMsg.UnRead = False oMsg.Delete() Next ' Log off. oNS.Logoff() ' Clean up. oApp = Nothing oNS = Nothing oItems = Nothing oMsg = Nothing End Sub Many Thanks, Andy
0
[ 2, 13, 20468, 9, 2328, 13, 8, 7099, 9, 17047, 9, 6280, 2594, 9, 1320, 5810, 13, 8, 1437, 22, 38, 170, 76, 170, 10839, 25, 4011, 60, 800, 3726, 3726, 51, 13, 20468, 9, 2328, 3010, 25, 1006, 20, 170, 270, 34, 270, 29, 19837, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 JVM languages bound by the Java Memory Model or just the Java Programming Language? === Is the memory model for Java a feature of the Java Programming Language or a feature of the JVM? Are JVM languages bound by the Java Memory Model or just The Java Programming Language?
0
[ 2, 50, 487, 20147, 2556, 4138, 34, 14, 8247, 1912, 1061, 54, 114, 14, 8247, 3143, 816, 60, 800, 3726, 3726, 25, 14, 1912, 1061, 26, 8247, 21, 1580, 16, 14, 8247, 3143, 816, 54, 21, 1580, 16, 14, 487, 20147, 60, 50, 487, 20147, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0...
i can import objc module in python 2.6 but NOT in python 2.7, i got `no module named objc` === system : mac osx 10.6.8, gcc 4.2 , python 2.7 , xcode 3.2.3 I use python 2.7 and i got error when tried to do : `import objc`, it returns : `ImportError: No module named objc`. it looks like the objc is not there. But actually i have objc module. The snow leopard got pyobjc preinstalleda and i can also checked this using python2.6 ( i have python 2.7 and 2.6 in my mac). So if i invoke `import objc` using python2.6 , i got no error which means the objc is exist and also i can use that module without problem ... but if i import using python 2.7 , i will got error msg `ImportError: No module named objc` Does anyone have any solution ? fyi, the python2.6 is coming with osx while the 2.7 is manually installed. i've been using the 2.7 for couple of months without problem. Thanx
0
[ 2, 31, 92, 9010, 5122, 15864, 12613, 19, 20059, 172, 9, 379, 47, 52, 19, 20059, 172, 9, 465, 15, 31, 330, 13, 1, 251, 12613, 377, 5122, 15864, 1, 800, 3726, 3726, 329, 13, 45, 1572, 13, 759, 396, 332, 9, 379, 9, 457, 15, 489...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 it possible to retrieve an empty string if msgid is not in the domain? === Or is there another way to check whether a msgid is present or not in a specific domain using Boost.Locale library?
0
[ 2, 25, 32, 938, 20, 11917, 40, 2424, 3724, 100, 4235, 2234, 43, 25, 52, 19, 14, 4603, 60, 800, 3726, 3726, 54, 25, 80, 226, 161, 20, 2631, 1472, 21, 4235, 2234, 43, 25, 734, 54, 52, 19, 21, 1903, 4603, 568, 10419, 9, 15580, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
TimThumb not resizing Youtube === I cant get resized image while using timthumb for youtube. http://streamafrica.spyropress.com/wp-content/themes/spyro360/framework/timthumb.php?src=http://img.youtube.com/vi/JZJHySmy08Y/0.jpg&w=140&h=95&zc=1&q=90&a=c Thanks
0
[ 2, 2574, 96, 723, 220, 52, 10719, 3335, 7330, 800, 3726, 3726, 31, 2973, 164, 302, 6560, 1961, 133, 568, 2574, 96, 723, 220, 26, 7330, 9, 7775, 6903, 11260, 25729, 9, 18, 12142, 111, 5890, 9, 960, 118, 13790, 8, 25424, 118, 124, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 automatically attach source code for dependency in Intellij? === I have a project (built with Maven) which has many internal dependencies; some of these dependencies are built with Maven and sources can be deployed along with the binaries (and Javadoc) in the central repository; say these are dependencies A. But some dependencies do not have sources (as jar in repository) and cannot be set to be deployed with sources when built (huge Ant script and no one wants to break it); say these are dependencies B. When debugging with Intellij, I reach classes from these dependencies and I want to see their source code. IDEA lets me choose to download the sources form artifacts repository (this only works for dependencies A) or to attach them from a local folder. I have the folder with the sources for dependencies B and I always set that folder. Can Intellij be set to automatically download all the sources (for dependencies that have sources in repository) or, if not, to attach them from configurable local folder(s) for all the dependencies, when a project is loaded? Or is there a plug-in for this? Or, can this be done in eclipse?
0
[ 2, 184, 20, 7499, 19514, 1267, 1797, 26, 26835, 19, 19, 4213, 9999, 60, 800, 3726, 3726, 31, 57, 21, 669, 13, 5, 8607, 29, 1216, 3124, 6, 56, 63, 151, 3117, 29411, 73, 109, 16, 158, 29411, 50, 392, 29, 1216, 3124, 17, 2662, 92...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
UIButton background VS UIButton imageview.view === What is the difference between UIButton background and UIButton imageview.view I tried `myButton.imageView.image=[UIImage imageNamed:@"image.png"];` then nothing happens, but when I use `[myButton setBackgroundImage:[UIImage imageNamed:@"image.png"] forState:UIControlStateNormal];` button's background changes. Thanks !
0
[ 2, 13, 5661, 811, 444, 2395, 4611, 13, 5661, 811, 444, 1961, 4725, 9, 4725, 800, 3726, 3726, 98, 25, 14, 2841, 128, 13, 5661, 811, 444, 2395, 17, 13, 5661, 811, 444, 1961, 4725, 9, 4725, 31, 794, 13, 1, 915, 811, 444, 9, 22039...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Calling Java methods and classes from perl script === I have a quite huge java class that has several imported packages and libraries ( related to natural language processing ). I want to call some specific methods of my java classes and get results back using a perl script. How should I do this. I guess the Inline java is not suitable for my purpose since the java code is quite large to be incorporated at one place. Thanks.
0
[ 2, 2555, 8247, 3195, 17, 2684, 37, 416, 255, 3884, 800, 3726, 3726, 31, 57, 21, 1450, 2329, 8247, 718, 30, 63, 238, 11808, 16875, 17, 8649, 13, 5, 1597, 20, 1112, 816, 5511, 13, 6, 9, 31, 259, 20, 645, 109, 1903, 3195, 16, 51,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Rails reset single column === I am trying to implement a rake task that will run once a month to reset a single column. I would prefer to reset the column to its default value but I cannot find any methods to help me accomplish this. reset_column_information does not work What is the most efficient way to reset a single column in active record?
0
[ 2, 2240, 18, 23422, 345, 4698, 800, 3726, 3726, 31, 589, 749, 20, 8713, 21, 21009, 3005, 30, 129, 485, 382, 21, 1617, 20, 23422, 21, 345, 4698, 9, 31, 83, 6369, 20, 23422, 14, 4698, 20, 82, 12838, 1923, 47, 31, 1967, 477, 186, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 change the colour of certain words in a JTextArea? === I'm making myself a little messenger just for fun. And I want to make it so that when you see a certain word in there, for example your username it will be blue. for example it will look something like this: <b><span style="font-color:#0000FF">User1: </font></b> Hello how are you?<br/> <span style="font-color:#0000FF">User2: </font> I'm fine thanks, what about you :) (bold = blue, not bold = black) This is how my client looks at the moment: ![The window][1] Anyway.. I hope this information will be enough for you to understand my question/ problem. Thanks :) [1]: http://i.stack.imgur.com/1Xovw.png
0
[ 2, 184, 92, 31, 753, 14, 4609, 16, 1200, 715, 19, 21, 487, 11969, 17760, 60, 800, 3726, 3726, 31, 22, 79, 544, 992, 21, 265, 11187, 114, 26, 2414, 9, 17, 31, 259, 20, 233, 32, 86, 30, 76, 42, 196, 21, 1200, 833, 19, 80, 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...
Restore deleted file from repository === I'm being in a transition from SVN to GIT and got a question for which I cannot find an answer. I'll describe am usual scenario when I work with some open source projects via SVN. 1. make a checkout 2. start messing around with files, make changes, to test how the project works. 3. after p.2 some files are heavily modified and I have no chance to get back to original state. 4. I delete the modified files from disk "rm filename.cpp", run the command "svn update" and voila, all original files are back. All this works fine with GIT as well, except p.4. I try to make "git pull" it says that project is up to date and I don't get the original files even though they are missing from local folder. What is the correct command for p.4 when working with git. Thx
0
[ 2, 8454, 19584, 3893, 37, 24869, 800, 3726, 3726, 31, 22, 79, 142, 19, 21, 4513, 37, 13, 18, 16578, 20, 13, 10404, 17, 330, 21, 1301, 26, 56, 31, 1967, 477, 40, 1623, 9, 31, 22, 211, 4996, 589, 3820, 12705, 76, 31, 170, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a jQuery AJAX call into a function === I have a jQuery AJAX call that I will need to do multiple times so I want to turn it into a function but not sure how. Here's the code. Any ideas? I know it seems trivial but I've looked around and don't know how to properly do this... //This does the ajax call to show the actual creative $('#creative').change(function() { $.ajax({ url: '/app/components/MailingsReport.cfc', //POST method is used type: "POST", //pass the data data: { method: "getCreativeHTML", creativeID: $('#creative').val(), datasource: "shopping_cart" }, dataType: "html", //contentType: "application/text; charset=utf-8", success: function(response){ var obj = $.trim(response); //alert("response"); if (obj == '"0 records"') { $('#preview').html("No creative found."); } else { $('#htmlCode').val( obj ); $('#preview').html( obj ); } } }) //if there was an error, when user clicks into field hightlight-error is removed $('#htmlCode').change(function(){ $('#reloadContent').show(); }); });
0
[ 2, 805, 21, 487, 8190, 93, 20624, 645, 77, 21, 1990, 800, 3726, 3726, 31, 57, 21, 487, 8190, 93, 20624, 645, 30, 31, 129, 376, 20, 107, 1886, 436, 86, 31, 259, 20, 805, 32, 77, 21, 1990, 47, 52, 562, 184, 9, 235, 22, 18, 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...
Prevent never-ending sub documents in NodeJS and MongoDB === In nodeJS, we can get POST data by this: <input type="text" name="doc[a]"/> `var doc = req.body.doc;` When I get 'doc', I insert into MongoDB using native-mongodb collection.insert(doc, ..) I wonder if when doing POST request, I inject this kind of data doc[a][b][c][d][e][f][g][h][i][j][.]... = xxxx doc[b] = yyy doc[e] = zzz I only need doc[a] buy would end up having doc.a.b.c.d.f.g... like this in Node and MongoDB right? What is a good solution to prevent that to happen?
0
[ 2, 2501, 243, 8, 7601, 972, 4374, 19, 15421, 728, 18, 17, 3521, 5474, 220, 800, 3726, 3726, 19, 15421, 728, 18, 15, 95, 92, 164, 678, 1054, 34, 48, 45, 13, 1, 108, 4881, 1001, 3726, 7, 11969, 7, 204, 3726, 7, 13799, 2558, 58, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Regular languages & Proofs (models of computation) === I need help with a couple HW questions I got for my models of computation course. I read the relevant chapters in the text (Michael Sipser's Introduction to the Theory of Computation), but I feel like these HW questions necessitate knowledge the book hasn't given me... The first question is this: (1) Prove that there does not exist a language L such that L* = {a}* {b}* The hint is to use contradiction. Obviously the right side is a regular expression; zero or more a's followed by zero or more b's. This could also be the empty string epsilon. My trouble comes in with the L*. I have _absolutely no clue_ what a * applied to a language does, or how to work with this equation because of the * on the language L. Any help, or resources for this question would be appreciated. ===== The second question is easier, and I feel like I can almost do it. I can justify it to myself, so I guess the problem is writing it formally. The second question is this: (2) Prove that if A and V are languages over the same alphabet (sigma) and A (is a subset of) B, then A* (is a subset of) B*. The hint is to use induction. Now obviously (for example) if sigma = {1, 0} and A = {00, 01, 10, 11} and B = {00, 01, 10, 11, 100, 101, 110, 111} Then anything in A* is closed under B* because B = A + some other things... If someone could help me formalize this into an inductive form I'd appreciate it. Thanks
2
[ 2, 1290, 2556, 279, 6070, 18, 13, 5, 13998, 18, 16, 21683, 6, 800, 3726, 3726, 31, 376, 448, 29, 21, 1335, 746, 499, 2346, 31, 330, 26, 51, 2761, 16, 21683, 674, 9, 31, 1302, 14, 7480, 10722, 19, 14, 1854, 13, 5, 16590, 8616, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 reliable protocol underlying a EASession read/write stream? === I am building an external accessory framework for a device (my company is a member of Apple's MFi program). Does anyone know if the EASession's read and/or write stream sit upon a lower level reliable protocol (in Bluetooth) or am I forced to build one at a higher level (into my protocol)?
0
[ 2, 25, 80, 21, 11398, 8494, 10974, 21, 6378, 18, 5991, 1302, 118, 23716, 3766, 60, 800, 3726, 3726, 31, 589, 353, 40, 4886, 26371, 6596, 26, 21, 3646, 13, 5, 915, 237, 25, 21, 322, 16, 4037, 22, 18, 307, 1707, 625, 6, 9, 630, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Adobe AIR Integration with Good Dynamics SDK? === My company is looking into building applications for the Federal government, and we run across Good Dynamics SDK which provides a security container that is certified by the Fed. While the SDK provides means for developers to write html or native Object-C applications, I wonder how viable that is to make the SDK work with Adobe AIR, particularly if we want to develop applications using Flex. Are there any ANE (Native Extensions) available that would interface with Good SDK?
0
[ 2, 20299, 282, 8078, 29, 254, 12289, 13, 18, 43, 197, 60, 800, 3726, 3726, 51, 237, 25, 699, 77, 353, 3767, 26, 14, 1058, 283, 15, 17, 95, 485, 464, 254, 12289, 13, 18, 43, 197, 56, 1927, 21, 1221, 12147, 30, 25, 6935, 34, 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...
Ajax Call and return error in asp.net mvc3 === i call an action controller in my view and when i set break point and watch the act of ajax function it work correctly on code behind but when back to function it not run '<b>success:function</b>' and return error $.ajax({ type: "POST", url: "/GetListContents", data: { _PageID: PageID, _LangID: LangID, _BoxTypeID: 6, _ListTypeID: 8, _Count: CurPageIndex }, cache: false, dataType: 'html', success: function (html) { $("#dynamicBody").html(html); $("#dynamicFooter").html("Hello"); }, error: function (xhRequest, ErrorText, thrownError) { $("#dynamicBody").html(xhRequest.status); $("#dynamicBody").html(ErrorText); } }); the <b>GetListContents</b> work on code behind but the result is error<br /> tnx for advance<br /> and sorry for poor english<br />
0
[ 2, 20624, 645, 17, 788, 7019, 19, 28, 306, 9, 2328, 307, 8990, 240, 800, 3726, 3726, 31, 645, 40, 1028, 9919, 19, 51, 1418, 17, 76, 31, 309, 1442, 454, 17, 1455, 14, 601, 16, 20624, 1990, 32, 170, 12044, 27, 1797, 439, 47, 76,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 we use flip function in JQuery === <html> <head> function color() { $("#color_change").flip(direction : 'tb'); } </head> <body> <div id="color_change" align="center" value="1"> <div id="contact_closebuttoncontainer" align="right"><a href="new.html"><img src="closebtn.png" alt="Close" title="Close" width="29" height="29" /></a></div> <h3>By Color</h3> <input type="radio" name="group" id="red" value="#990000" onClick="changeColor()" /><label for="red">Red</label> <input type="radio" name="group" id="green" value="#009900" onClick="changeColor()" /><label for="green">Green</label> <input type="radio" name="group" id="yellow" value="#FFFF00" onClick="changeColor()" /><label for="yellow">Yellow</label> </div> <div id="color" onClick="color()">By Color</div> </body> </html> This is my html in this i want to flip **color_change** when i click the **color div** but it is not showing any thing I am new to this what I am using the filp function is right or not I don't know. Please suggest me.
1
[ 2, 184, 92, 95, 275, 8805, 1990, 19, 487, 8190, 93, 800, 3726, 3726, 13, 1, 15895, 1, 13, 1, 1743, 1, 1990, 1665, 5, 6, 13, 1, 5579, 5, 7, 5910, 11282, 1, 16229, 7, 6, 9, 410, 6013, 5, 14706, 872, 13, 45, 13, 22, 11872, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Library not loaded: @executable_path in a webplugin === I am developing a safari plugin with Cocoa and Webkit.the plugin need some dylib,but when running the below message is show: **2012-07-16 13:41:18.770 Safari[3170:a0f] Error loading /Users/apple/turboEdit/safariPlugin/JNetPlayerX/build/Debug/JNetPlayerX.webplugin/Contents/MacOS/JNetPlayerX: dlopen(/Users/apple/turboEdit/safariPlugin/JNetPlayerX/build/Debug/JNetPlayerX.webplugin/Contents/MacOS/JNetPlayerX, 265): Library not loaded: @executable_path/../Frameworks/VxSystem.dylib Referenced from: /Users/apple/turboEdit/safariPlugin/JNetPlayerX/build/Debug/JNetPlayerX.webplugin/Contents/MacOS/JNetPlayerX Reason: image not found** please help me,thanks!
0
[ 2, 1248, 52, 8572, 45, 13, 1, 1706, 17194, 5924, 1, 8353, 19, 21, 2741, 18527, 5831, 800, 3726, 3726, 31, 589, 3561, 21, 25055, 10922, 108, 29, 24507, 17, 2741, 13703, 9, 124, 10922, 108, 376, 109, 9841, 8326, 15, 811, 76, 946, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
OpenGL ES 2.0 Video Frame in not updated === I have a video input to my graphics pipeline and when i am run the program. The video frame which needs to be updated every time the loop run is not being updated. and getting struck after sometime. Can any one suggest me how to go through.....
0
[ 2, 368, 8430, 13, 160, 172, 9, 387, 763, 3523, 19, 52, 6372, 800, 3726, 3726, 31, 57, 21, 763, 6367, 20, 51, 8351, 12250, 17, 76, 31, 589, 485, 14, 625, 9, 14, 763, 3523, 56, 2274, 20, 44, 6372, 352, 85, 14, 5293, 485, 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...
MSVC linker error LNK2019 when reusing a base class in C++ solution === This really beats me and the Visual Studio 2008 is so brainless that it's not helpful with the following errors at all. My C++ solution has several projects in it. One project has the base C++ class CCrashReporter in crashreporter.h and crashreporter.cpp files. I need to derive another class from it that is located in another project in the same solution. So I do: //From CrashReporter2.h #pragma once #include "..\BaseModules\CrashReporter.h" class CCrashReporter2 : public CCrashReporter { public: CCrashReporter2(void); virtual ~CCrashReporter2(void); }; and then: //From crashreporter2.cpp #include "StdAfx.h" #include "CrashReporter2.h" CCrashReporter2::CCrashReporter2(void): CCrashReporter(ENTERY_PARAM_FOR_REPORTER2) { } CCrashReporter2::~CCrashReporter2(void) { } The above code compiled OK, but when the linker runs I get these: 1>CrashReporter2.obj : error LNK2019: unresolved external symbol "public: __thiscall CCrashReporter::CCrashReporter(int) blah-blah 1>CrashReporter2.obj : error LNK2019: unresolved external symbol "public: __thiscall CCrashReporter::~CCrashReporter(void) blah-blah 1>C:\Users\Dev\C++\ProjName123\Debug\Mod123.exe : fatal error LNK1120: 2 unresolved externals
0
[ 2, 4235, 8990, 3508, 106, 7019, 644, 5719, 1323, 1433, 76, 302, 12655, 21, 1000, 718, 19, 272, 20512, 4295, 800, 3726, 3726, 48, 510, 12214, 55, 17, 14, 3458, 1120, 570, 25, 86, 1964, 923, 30, 32, 22, 18, 52, 15600, 29, 14, 249,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Splitting a Multi-Page MS Access report into individual pdf files based on a Customer ID? === I'm looking to split a multi-page access report up into individual pdf files based on a Customer ID and then saving those pdf files based on the Customer Name (or ID). I've looked into 'printing'/'converting' the report into one massive pdf file and splitting it there, but some customer invoices span two+ pages, therefore splitting that one pdf file page-by-page doesn't work. Any help would be greatly appreciated; if anyone needs more clarification on anything, don't hesitate to let me know.
0
[ 2, 17282, 21, 1889, 8, 6486, 4235, 1381, 1330, 77, 1359, 13, 11124, 6488, 432, 27, 21, 7705, 4924, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 2132, 21, 1889, 8, 6486, 1381, 1330, 71, 77, 1359, 13, 11124, 6488, 432, 27, 21, 7705, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 below xaml Programmatically? === I want format Header like in image ( INWARD in First Line, Gross Wt., Pure Wt. & Qty. in Second Line). i can achieve same with following code in XAML, but how can i do with Programmatically? XAML: <dg:DataGridTemplateColumn Width="210"> <dg:DataGridTemplateColumn.HeaderTemplate> <DataTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Text="INWARD" TextAlignment="Center"> </TextBlock> <StackPanel Grid.Row="1" Orientation="Horizontal"> <TextBlock Width="80" Text="Gross Weight" TextAlignment="Right" Margin="0,0,2,0"> </TextBlock> <TextBlock Width="80" Text="Pure Weight" TextAlignment="Right" Margin="0,0,0,0"> </TextBlock> <TextBlock Width="40" Text="Quantity" TextAlignment="Right" Margin="2,0,0,0"> </TextBlock> </StackPanel> </Grid> </DataTemplate> </dg:DataGridTemplateColumn.HeaderTemplate> <dg:DataGridTemplateColumn.CellTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" > <TextBlock Style="{DynamicResource grdCellCurrencyData}" Width="80" Margin="0,0,2,0"> <TextBlock.Text> <MultiBinding Converter="{StaticResource CurrencyConverter}" ConverterParameter="True"> <Binding Path="INGrossWeight" Mode="OneWay" /> <Binding Path="BaseUOMNoofDecimals" Mode="OneWay" /> </MultiBinding> </TextBlock.Text> </TextBlock> <TextBlock Style="{DynamicResource grdCellCurrencyData}" Width="80" Margin="0,0,0 0"> <TextBlock.Text> <MultiBinding Converter="{StaticResource CurrencyConverter}" ConverterParameter="True"> <Binding Path="INPureWeight" Mode="OneWay" /> <Binding Path="BaseUOMNoofDecimals" Mode="OneWay" /> </MultiBinding> </TextBlock.Text> </TextBlock> <TextBlock Style="{DynamicResource grdCellCurrencyData}" Width="40" Text="{Binding Path=INQuantity, Mode=OneWay}" Margin="2,0,0,0"> </TextBlock> </StackPanel> </DataTemplate> </dg:DataGridTemplateColumn.CellTemplate> </dg:DataGridTemplateColumn> </dg:DataGrid> In above code if you see in DataGrid Template Column, I have taken grid inside and split header in two rows. Same way i want to do programmatically from code behind. can anybody help?
0
[ 2, 184, 20, 8406, 1021, 13, 6791, 8184, 625, 6732, 1326, 60, 800, 3726, 3726, 31, 259, 2595, 157, 106, 101, 19, 1961, 13, 5, 19, 2826, 19, 64, 293, 15, 5311, 619, 38, 9, 15, 4267, 619, 38, 9, 279, 2593, 1084, 9, 19, 153, 293...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
In WPF, what is the best way to make buttons that insert special characters into multiple TextBoxes? === If I have multiple TextBoxes and other text insertion controls and I want to create some buttons that insert special characters into whichever TextBox is in focus, what is the best control for this and what properties should be set? Requirements for the buttons: 1. Buttons do not steal focus when clicked. 2. Buttons can insert text (e.g. special characters) into any control that accepts keyboard input. 3. The cursor should move as if the user had entered the text on the keyboard. If #2 is not possible, it will suffice to limit the controls to only TextBoxes. NOTE: I do not want to make the buttons unfocusable, only such that they do not steal focus when clicked.
0
[ 2, 19, 619, 7721, 15, 98, 25, 14, 246, 161, 20, 233, 12861, 30, 14692, 621, 1766, 77, 1886, 1854, 5309, 160, 60, 800, 3726, 3726, 100, 31, 57, 1886, 1854, 5309, 160, 17, 89, 1854, 24245, 8671, 17, 31, 259, 20, 1600, 109, 12861, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 - one controller multiple urls === I'm trying to create two Yii models that are very similar and can share the same database table. One is a 'question' and one is an 'article'. They both share a title, body, and author. 'Question' has an additional field in the table that 'article' does not need to interact with called follow_up. Most methods and validation is the same, but there are some tiny differences that could easily be done with if statements. The main problem I'm seeing is the URL, I want separate URLs like site.com/question and site.com/article but have them both interact with the same model, controller, and views. How can this be done?
0
[ 2, 7679, 49, 13, 8, 53, 9919, 1886, 13, 911, 7532, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 81, 7679, 49, 2761, 30, 50, 253, 835, 17, 92, 1891, 14, 205, 6018, 859, 9, 53, 25, 21, 13, 22, 24652, 22, 17, 53, 25, 40, 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...
Rails and Heroku: remote error, working locally === I've been getting an error in my app on Heroku but not locally. The offending line is: for location in @locations.sort { |a, b| b.plusminus <=> a.plusminus } Heroku's logs tell me that "relation 'locations' does not exist when it seems to me like it does since it works locally. Any advice? Cheers.
0
[ 2, 2240, 18, 17, 36, 9266, 45, 5388, 7019, 15, 638, 6680, 800, 3726, 3726, 31, 22, 195, 74, 1017, 40, 7019, 19, 51, 4865, 27, 36, 9266, 47, 52, 6680, 9, 14, 168, 7601, 293, 25, 45, 26, 1474, 19, 13, 1, 19032, 18, 9, 22843, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
non-consecutive insertion in vectors === Is it possible to inset values in a std::vector in an non-consecutive manner like, std::vector<int> Myvector; //Myvector[0] = 123; //Myvecotr[2] = 456; //Myvector[5] = 789;
0
[ 2, 538, 8, 12124, 17194, 6142, 24245, 19, 7497, 18, 800, 3726, 3726, 25, 32, 938, 20, 19, 3554, 4070, 19, 21, 354, 43, 45, 45, 28033, 19, 40, 538, 8, 12124, 17194, 6142, 3832, 101, 15, 354, 43, 45, 45, 28033, 1, 6391, 1, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 add a view from iphone static library without passing self.view as a a parameter? === I am new to his iphone development.I would like to know whether there is any method to add a view to the self.view without passing it as a parameter.Can any one suggest me a method to do that?
0
[ 2, 184, 20, 3547, 21, 1418, 37, 21024, 12038, 1248, 366, 2848, 1119, 9, 4725, 28, 21, 21, 18906, 60, 800, 3726, 3726, 31, 589, 78, 20, 33, 21024, 522, 9, 49, 83, 101, 20, 143, 1472, 80, 25, 186, 2109, 20, 3547, 21, 1418, 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...
Restrict Asp:TextBox to not allow more than 6 character in it === I want to restrict the user that he cant enter more than 6 characters in a text box.As a user start entering in the text box and reach to the max limit and try entering 7th character, the text box will not allow him to do so and alert him that max size reached.How i achieve this? I had added JavaScript function in my code to do so but not getting that on which event i call this function , currently i am calling on on-blur but i m able to type more than 9 character in the text box and after that when i m clicking on a button then i m getting alert message.i want that while typing in the text box itself if max limit reached the user get prompted.My Current code is as follow:- <asp:TextBox ID="txtVolumeProcessed" runat="server" CssClass="text" MaxLength="999999" onblur="javascript:validate();" ></asp:TextBox> and the Javascript Code is:- function validate() { if (document.getElementById('<%=txtVolumeProcessed.ClientID%>').value.length > 7) { alert("Volume Processed not exceed 999999"); document.getElementById('<%=txtVolumeProcessed.ClientID%>').select(); document.getElementById('<%=txtVolumeProcessed.ClientID%>').focus(); return false; } else { return true; } }
0
[ 2, 15436, 28, 306, 45, 11969, 5309, 20, 52, 1655, 91, 119, 400, 925, 19, 32, 800, 3726, 3726, 31, 259, 20, 15436, 14, 4155, 30, 24, 2973, 2830, 91, 119, 400, 1766, 19, 21, 1854, 1649, 9, 472, 21, 4155, 799, 4604, 19, 14, 1854,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Object Relational Mapping with special requirements (select basis + all child objects, ...) === I have the following PHP class structure: http://bildupload.sro.at/p/398160.html I want to save the objects in a database (MySQL or postgreSQL). My requirements are: 1. list of all electric_devices / all computers / notebooks ... including the objects of the subclasses with all attributes belonging to the object with filter and order possibility (filters for all attributes) 2. select a single record via ID 3. insert new objects in the DB structure (reading is much more important than writing) 4. not too many joins and as little database requests as possible I found some possibilities, but there is no one, that matches all my requirements: 1. Class Table Inheritance: it is very complicated to get all items including the subclasses and I couldn't find a automatic way (so that I have not to define for each subclass a separate join statement) for generating the correct joins 2. Single Table Inheritance: too many distinct attributes --> NULL fields 3. Concrete Table Inheritance: for searching all items you have to do many database requests, since UNION requires same number of columns 4. EAV: if filter is needed 1 join / attribute --> performance would be very bad (is there a possibility for just joining the filter attributes and the rest as rows?) 5. NoSQL database: no provider (server is too expensive and I don't want to care about administration) 6. postgreSQL built-in inheritance: is not working the way I need (from the basis you can list all electric_devices, but just the common attributes) Information: the total number of stored objects will be about 100 Finally for me there is no way, but I think there must be a possibility, other portals do it the same way (for example eBay or any small ad portal), probably I have thought about it so much, that I don't see the easiest way. Thanks for every help (links, keywords, ...) , if something is not clear, just ask.
0
[ 2, 3095, 5827, 192, 13305, 29, 621, 4786, 13, 5, 18, 16964, 2239, 2754, 65, 850, 3916, 15, 13, 9, 9, 9, 6, 800, 3726, 3726, 31, 57, 14, 249, 13, 26120, 718, 1411, 45, 7775, 6903, 9168, 43, 576, 8294, 9, 18, 661, 9, 721, 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...
$_POST does not recognizes form indexes === when i try to retrieve from form it gives me an error that the index doesnt exist! if i put the query after table definition it works but doesng refresh the table until i press refresh button on my browser..plz help me $result= mysql_query("DESCRIBE $tablename"); if (isset($_POST['action']) && $_POST['action']=='submitted') { for ($i=0; $i<mysql_num_fields($result);$i++){ $ivalue[$i] = $_POST[$iname[$i]];} if (isset($_POST['update'])) { $selected = $_POST['selected']; for ($i=0; $i<mysql_num_fields($result);$i++){ $value[$i] = $_POST[$name[$i]]; foreach ($selected as $j) mysql_query ("UPDATE $tablename set $name[$i]='".$value[$i][$j]." 'WHERE $name[0]=".$value[0][$j]);} //header('Location: tables.php'); } else if (isset($_POST['delete'])) { $selected = $_POST['selected']; for ($i=0; $i<mysql_num_fields($result);$i++){ $value[$i] = $_POST[$name[$i]]; foreach ($selected as $j) mysql_query ("DELETE from $tablename WHERE $name[0]=".$value[0][$j]);} //header('Location: tables.php'); } else if (isset($_POST['insert'])) { for ($i=0; $i<mysql_num_fields($result);$i++){ mysql_query("INSERT INTO $tablename ($name[0]) VALUES ('$ivalue[0]')"); for ($i=1; $i<mysql_num_fields($result);$i++){ $query = "UPDATE $tablename set $name[$i]='".$ivalue[$i]." 'WHERE $name[0]=$ivalue[0]"; $result=mysql_query ($query);} header('Location: tables.php'); } } } echo "<form method='post' action=${_SERVER['PHP_SELF']}>\n"; echo "<table border=2>\n"; echo "<tr>"; echo "<td></td>"; $index=0; while($row2 = mysql_fetch_row($result)) { $columncount++; echo"<td><b>$row2[0]</b></td>"; $name[$index]= $row2[0]; $index++; } for ($i=0; $i<$columncount;$i++){ $iname[$i]= 'i'.$name[$i];} echo "</tr>"; $rows= mysql_query("SELECT * from $tablename"); for ($j=0; $j<mysql_numrows($rows); $j++) { echo "<tr>\n"; echo "<td><input name='selected[]' type='checkbox' value='$j'>\n"; for ($i=0; $i<$columncount;$i++){ $value[$i]=mysql_result ($rows, $j, $name[$i]); echo "<td><input name='$name[$i][]' type='text' size='30' value= $value[$i]>\n"; } } echo "<input type='hidden' name='action' value='submitted'>\n"; echo "<tr><td><input type='submit' name='insert' value='Insert'>\n"; for ($i=0; $i<$columncount;$i++){ $iname[$i]= 'i'.$name[$i];} for ($i=0; $i<$columncount;$i++){ echo "<td><input name= '$iname[$i]'; type='text' size='30'>\n"; } echo "</table>\n"; echo "<input type='submit' name='update' value='Update'>\n"; echo "<input type='submit' name='delete' value='Delete'>\n"; echo "</form>\n"; mysql_close (); ?> </body> </html>
1
[ 2, 5579, 1, 6962, 630, 52, 17839, 505, 4348, 160, 800, 3726, 3726, 76, 31, 1131, 20, 11917, 37, 505, 32, 2352, 55, 40, 7019, 30, 14, 4348, 5886, 3182, 187, 100, 31, 442, 14, 25597, 75, 859, 5465, 32, 693, 47, 1437, 263, 24905, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Retrieving notes of a Facebook page with an app access token === I have an app which retrieves events and photos from a facebook page and shows them on a website. Both the facebook page and the website belong to the same company, i.e. they're using their facebook page to manage events and photos they show on their website. Now the client would like the same arrangement for notes: Use the public notes on their facebook page as blog entries on their website. I'm grabbing the photos and events via the PHP SDK with an app access token, but when I try to get the pages' notes I get an error "A user access token is required to request this resource." Is there any way to access the public notes of a page with an app access token or, alternatively, is there an appropriate fql query to get all the public notes of a particular facebook page?
0
[ 2, 13, 6239, 3272, 8397, 2434, 16, 21, 9090, 2478, 29, 40, 4865, 1381, 20, 2853, 800, 3726, 3726, 31, 57, 40, 4865, 56, 11917, 18, 963, 17, 7064, 37, 21, 9090, 2478, 17, 1285, 105, 27, 21, 2271, 9, 156, 14, 9090, 2478, 17, 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...
Get access to created class object from another class === ViewController1.h @interface ViewController : UIViewController @property AVAudioPlayer *audioPlayer; @end ViewController1.m @synthesize audioPlayer; ... audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]; [audioPlayer play]; How can I stop the music from method in class ViewController2?
0
[ 2, 164, 1381, 20, 679, 718, 3095, 37, 226, 718, 800, 3726, 3726, 1418, 12898, 1252, 165, 9, 252, 13, 1, 6280, 6413, 1418, 12898, 1252, 13, 45, 13, 5661, 4725, 12898, 1252, 13, 1, 10890, 106, 1084, 13656, 6785, 111, 14049, 1637, 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...
Access textfield data in UIalertview globally === i have created an alertview with textfield and the details which is inserted in textfield have to be accessed when i select a button.here is my code -(IBAction)addcart:(id)sender{ UIAlertView *customAlertView = [[UIAlertView alloc] initWithTitle:@"Enter Your quantity" message:@"" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:@"Cancel", nil]; txtfield = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 40.0, 260.0, 20.0)]; [txtfield setBackgroundColor:[UIColor whiteColor]]; [txtfield setKeyboardType:UIKeyboardTypeNumberPad]; [customAlertView addSubview:txtfield]; [customAlertView show]; [customAlertView release]; } - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex if (buttonIndex == 0) { NSString* str=txtfield.text; qtystr=str; } -(IBAction)showcontent:(id)sender{ NSLog(@"%@",qtystr); } here qtystr,txtfield i've created property and synthesized it..But i dont know where i'm missing it...
0
[ 2, 1381, 1854, 1109, 1054, 19, 287, 2815, 6767, 4725, 18861, 800, 3726, 3726, 31, 57, 679, 40, 7863, 4725, 29, 1854, 1109, 17, 14, 3289, 56, 25, 14215, 19, 1854, 1109, 57, 20, 44, 12904, 76, 31, 5407, 21, 5167, 9, 6836, 25, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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: search for a value in an array which contains objects === what i am looking for is a fast way to search up anything from these and get all fields back, for example if i search the sample code (given below) for "red" in favcolors, i get back name of the person whose kid's fave color this is, i.e. in this case, return an array containing jhon and homer. if the search term is for people with age = 43 then return homer, and so on...: <?php class person { public $name; public $kidsfavcolors=array(); public $age; } $people['jhon'] = new person; $people['jhon']->name = "jhon"; $people['jhon']->age = 30; $people['jhon']->kidsfavcolors['katherine']= "red"; $people['jhon']->kidsfavcolors['jimmy']= "yellow"; $people['homer'] = new person; $people['homer']->name = "homer"; $people['homer']->age = 43; $people['homer']->kidsfavcolors['bart']= "black"; $people['homer']->kidsfavcolors['lisa']= "red";
0
[ 2, 13, 26120, 45, 2122, 26, 21, 1923, 19, 40, 7718, 56, 1588, 3916, 800, 3726, 3726, 98, 31, 589, 699, 26, 25, 21, 1512, 161, 20, 2122, 71, 602, 37, 158, 17, 164, 65, 2861, 97, 15, 26, 823, 100, 31, 2122, 14, 5717, 1797, 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...
javascript return false not working in image gallery as expected === I'm very new to javascript and have a problem with the following code that is actually part of an exercise in the dom scripting- webdesign with javascript book. I have an image gallery and when the link is clicked the picture should be displayed in a gif named placeholder, however the return false command is not executed and the browser goes about the normal behavior. It works fine with inline, but it doesn't when the inline code is taken out. Here's a link to the script:http://jsfiddle.net/olupo/4HLzu/ Thanks very much in advance!
0
[ 2, 8247, 8741, 788, 4997, 52, 638, 19, 1961, 2246, 28, 1727, 800, 3726, 3726, 31, 22, 79, 253, 78, 20, 8247, 8741, 17, 57, 21, 1448, 29, 14, 249, 1797, 30, 25, 1121, 141, 16, 40, 5935, 19, 14, 11859, 3884, 68, 8, 2741, 19862, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
iOS: tools to create flowchart app === I'm writing an iOS app (for iPad) for drawing flowcharts and different schemes. It should have a feasibility to manipulate with different blocks, to add text and pictures inside them, to draw arrows. Only 2D. I never developed drawing apps for iOS before. What library can you recommend? It's mentioned about four alternatives here [iOS developer documentation][1] - OpenGL, Quartz, UIKit or Core Animation. Moreover, there're many of open source libraries for drawing but with different specificities and for different purposes. [1]: http://developer.apple.com/library/ios/#documentation/2ddrawing/conceptual/drawingprintingios/graphicsdrawingoverview/graphicsdrawingoverview.html
0
[ 2, 13, 7760, 45, 4672, 20, 1600, 3312, 5433, 38, 4865, 800, 3726, 3726, 31, 22, 79, 1174, 40, 13, 7760, 4865, 13, 5, 1106, 31, 8240, 6, 26, 3533, 3312, 5433, 38, 18, 17, 421, 13185, 9, 32, 378, 57, 21, 26022, 20, 18468, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 in building Tesseract-OCR === I try to build tesseract 3.02 on Visual Studio 2010 by this instruction http://tesseract-ocr.googlecode.com/svn/trunk/vs2008/doc/building.html the problem in step 2 when I try to build the static library **LIB_Debug** , I fond this error Error 3 error MSB3073: The command "if not exist ..\..\..\lib md ..\..\..\lib copy "C:\BuildFolder\tesseract-3.02\vs2008\libtesseract\..\LIB_Debug\libtesseract302.lib" ..\..\..\lib :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113 and the same in **LIB_Release** Error 5 error MSB3073: The command "if not exist ..\..\..\lib md ..\..\..\lib copy "C:\BuildFolder\tesseract-3.02\vs2008\libtesseract\..\LIB_Release\libtesseract302.lib" ..\..\..\lib :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 113 any solution ??
0
[ 2, 7019, 19, 353, 13338, 106, 5183, 8, 2499, 139, 800, 3726, 3726, 31, 1131, 20, 1895, 13338, 106, 5183, 203, 9, 3564, 27, 3458, 1120, 498, 34, 48, 7304, 7775, 6903, 3231, 4104, 5183, 8, 2499, 139, 9, 16111, 4875, 9375, 9, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 implement Slide Effect in bxslider for Ajax generated li's content === Hello Coder colleuges, Currently i am implemented a bxslider with ajax generated li's. everything is fine in ajax requests & content is fetching fine. I also added bxslider navigation code in to ajax navigation. My problem is that: While using ajax navigation buttons, slider effect of bxslider is not working. MY bxslider code is here: $(document).ready(function(){myReadyFunction();}); function myReadyFunction(){var slider = $('#moreStories').bxSlider({ mode: 'horizontal', speed:900, controls: true, pager: false, displaySlideQty: 3, moveSlideQty:1, ticker: false, }); $('#go_prev').live("click", function(){ ///alert("prev"); slider.goToPreviousSlide(); return false; }); $('#go_next').live("click", function(){ //alert("next"); top.window.close(); slider.goToNextSlide(); return false; });} And below is my code to access ajax content via jquery: function loadData(page){ loading_show(); $.ajax ({ type: "POST", url: "load_page.php", data: "page="+page, success: function(msg) { $(".ajaxBased").ajaxComplete(function(event, request, settings) { loading_hide(); $(".ajaxBased").html(msg);}); } }); } loadData(1); // For first time page load default results $('.ajaxBased #navigation a.active').live('click',function(){ var page = $(this).attr('p'); loadData(page) }); can any body help me to get out this slider problem, i have also search the forum, but could't find exact solution. Thanks in advance... :)
0
[ 2, 184, 20, 8713, 6464, 1590, 19, 334, 396, 18, 1210, 1157, 26, 20624, 6756, 2093, 22, 18, 2331, 800, 3726, 3726, 10975, 1797, 139, 3313, 14284, 5133, 15, 871, 31, 589, 6807, 21, 334, 396, 18, 1210, 1157, 29, 20624, 6756, 2093, 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...
Mysql select * from tables where primary_key in (1,2,,...) very slow === I am having trouble with one of my queries which is very slow from time to time. select * from table where primary_key in (1,2,...) very slow sometimes even 5s for some 100 entries. Obviously we have index on the primary key. Is there any way to optimize this query. The table is slightly big about 100 million entries. Rajesh
0
[ 2, 51, 18, 22402, 5407, 1637, 37, 7484, 113, 1256, 1, 4237, 19, 13, 5, 15793, 15, 15, 9, 9, 9, 6, 253, 2276, 800, 3726, 3726, 31, 589, 452, 2572, 29, 53, 16, 51, 9386, 2829, 56, 25, 253, 2276, 37, 85, 20, 85, 9, 5407, 1637...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
complete htaccess for parked domain === I have two domain names: - main.com - parked.com Now that I have the new domain, I want to redirect the visits in a subfolder: /park/ So basically, if the following URI would display the exact same page: - http://www.main.com/park - http://www.parked.com/ I have used this htaccess rules: RewriteCond %{HTTP_HOST} ^(www.)?parked\.com$ [NC] RewriteCond %{REQUEST_URI} !^/park/ RewriteRule ^(.*)$ /park/$1 [L] and it did work but when i try browse **`http://www.main.com/park/folder`** using this **`http://www.parked.com/folder`** it doesn't work and shows error page. I want to redirect **`http://www.main.com/park/*anything*`** to **`http://www.parked.com/*anything*`** Please Help! Regards.
0
[ 2, 1279, 13, 9020, 20604, 26, 8951, 4603, 800, 3726, 3726, 31, 57, 81, 4603, 1817, 45, 13, 8, 407, 9, 960, 13, 8, 8951, 9, 960, 130, 30, 31, 57, 14, 78, 4603, 15, 31, 259, 20, 302, 14706, 14, 7659, 19, 21, 972, 8814, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Hide the tablecells in UITableView in Iphone === hi in my application i would like to hide the table cells in uitableview .And i don't want to hide the header of the tableview in iphone. on that table view header i would like to add a button. so if anyone know this how to hide the cells in a tableview without hidding the header in tableview in iphone. thanks in advance.
0
[ 2, 3077, 14, 859, 9725, 18, 19, 13, 11193, 579, 4725, 19, 21024, 800, 3726, 3726, 4148, 19, 51, 3010, 31, 83, 101, 20, 3077, 14, 859, 2934, 19, 13, 11193, 579, 4725, 13, 9, 290, 31, 221, 22, 38, 259, 20, 3077, 14, 157, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Rails 3: Sorting by many strings === I have multiple strings that are all number values. They are all inside the same db table. Is there a way to join them all and sort by the highest number? Something like (pseudo code): :include => :word_one_value, :word_two_value, :word_three_value, :sort_by => "sum ASC"
0
[ 2, 2240, 18, 2635, 2058, 68, 34, 151, 7887, 800, 3726, 3726, 31, 57, 1886, 7887, 30, 50, 65, 234, 4070, 9, 59, 50, 65, 572, 14, 205, 13, 9007, 859, 9, 25, 80, 21, 161, 20, 1865, 105, 65, 17, 2058, 34, 14, 1554, 234, 60, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Regular expression to separate smileys from text === I am trying to create a regular expression in javascript to separate any occurrence of :) from the surrounding text. Given the following: :)This is a line of text :) with several smileys in it :). So there.,:):) I would like to get the resulting 8 groups: 1 :) 2 This is a line of text 3 :) 4 with several smileys in it 5 :) 6 . So there., 7 :) 8 :) At the moment I use ([^:)]+) which only groups the surrounding text without the smileys. What adjustment could I make so that the smileys are also grouped?
0
[ 2, 1290, 1803, 20, 1725, 957, 93, 18, 37, 1854, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 1290, 1803, 19, 8247, 8741, 20, 1725, 186, 12933, 16, 13, 45, 6, 37, 14, 2470, 1854, 9, 504, 14, 249, 45, 13, 45, 6, 1565, 25, 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...
Platform 4.0.3 x86 - How to run the emulator in phone mode at higher resolutions === Any idea how to run the emulator in phone mode for 720x1280 res in 4.0.3 platform?<br/> (without using avd) Running with the parameter: emulator-x86 -skin WXGA720 starts the emulator in tablet mode. (curiously in 4.0.4 it starts in phone mode - hardware.ini and layer files have no difference) <br/> Anybody has the answer?<br/> Thanks, Asi
0
[ 2, 2452, 268, 9, 387, 9, 240, 993, 3274, 13, 8, 184, 20, 485, 14, 3579, 14868, 19, 1132, 3740, 35, 1184, 4302, 18, 800, 3726, 3726, 186, 882, 184, 20, 485, 14, 3579, 14868, 19, 1132, 3740, 26, 13, 20959, 396, 918, 2887, 10719, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Can I use a concatenated var+array_value as a selector in jquery i.e $("#var+array_value") === This might be really obvious, but I'll be honest, I'm not any kind of developer. Just someone trying to get something to work for customers of the company I work for. I've got an array defined in JS, and I'd like to be able to use a for loop to run a section of code on each of the items in the array. If I run the code individually (i.e. not in the loop), I know it works. As soon as try to put it in a loop, it fails. I'm hoping somebody here can tell me what I'm doing wrong, and why it is wrong, and how I can do it right. (I'd like to be able to understand what/why I'm doing things, as its always better to know these things, in my opinion). The JS/JQuery code I've got (that works) is; var a = document.getElementById('roomthumb_2236'); var d = $("#chosenrate_2236").offset(); if ($('#chosenrate_2236').length) { a.style.visibility='visible'; $("#roomthumb_2236").css({ top: d.top -9 + "px", left: d.left + 560 + "px", }) }; This works fine (I know there is a mashup of JS and JQuery, I can standardise it later). I've tried so many variations of the 'for' loop, but it just doesn't seem to want to work. Here is the most up-to-date version of my 'for' code; var rooms_array = [2236, 2235] var reposition = function (){ document.getElementById('hidden_stuff').style.display="none"; for (var i = 0; i < rooms_array.length; i++) { var a = "roomthumb_"+rooms_array[i]; var b = "chosenrate_"+rooms_array[i]; var c = "chosenrate_"+rooms_array[i].offset() if ($(b).length) { $(a).css({ visibility:"visible", top: c.top -9 + "px", left: c.left + 560 + "px", }) }; }; }; What the code should be doing (if its not clear) is; - set the array (this is a dynamically created list of id's from a database) - hide a div "hiddenstuff" (this works fine) - then for each id from the array; - create a variable 'roomthumb_xxxx' (where xxxx is the id from the array) called a - create a variable 'chosenrate_xxxx' (where xxxx is the id from the array) called b - check to see if an element exists with an ID that matches variable b, and if it does then edit the css properties of the element with the ID of variable a The var c should get the position of var b (if I'm right), to allow me to position the element with the ID of var a relative to it... I've no idea why the code fails inside of the loop. I always seem to get null errors or it thinks var b is undefined? My guess is that I can't take a string (chosenrate_), add an array string to it and then use that result as an ID. If I use alert(a) or alert(b) I do get the ID's I need, but I can't work out how to use that in a $("#ID") for example... I think I've explained everything. If I've missed anything I'll try to explain it better.
0
[ 2, 92, 31, 275, 21, 1065, 793, 1316, 1669, 4033, 2430, 8576, 93, 1, 15165, 28, 21, 23946, 19, 487, 8190, 93, 31, 9, 62, 5579, 5, 7, 5910, 3311, 2430, 8576, 93, 1, 15165, 7, 6, 800, 3726, 3726, 48, 530, 44, 510, 4674, 15, 47,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 the Firefox Cache? === With all the big changes with Firefox recently, all the info about their cache location has become outdated. Or has Firefox changed so much that this question is moot? Running mac osx 10.6.8 (Snow Leopard). I need to recover some files that are most likely still in the cache. Thanks!
2
[ 2, 113, 25, 14, 535, 18219, 16522, 60, 800, 3726, 3726, 29, 65, 14, 580, 1693, 29, 535, 18219, 1989, 15, 65, 14, 15404, 88, 66, 16522, 1474, 63, 533, 70, 43, 1669, 9, 54, 63, 535, 18219, 1015, 86, 212, 30, 48, 1301, 25, 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...
Rebuilding Indexes, DB now 10x the size === I have an MS SQL Server database (2008 R2 SP1) that was about 15 gigs. It turns out maintenance hadn't been running in a while, so I created a maintenance plan to rebuild all the indexes, they were very fragmented. The job finished and the fragmentation is gone, but now the database is over 120 gigs! I understand that it would have used extra space to do all the rebuilds, but now that the job is done, I would think all that space would be free space, but the free space only shows as 3 gigs, so 117 gigs is being used even though the index rebuild job is finished. I'm very confused and could use some guidance, I have the get the db back to a reasonable size, we don't have the disk space for this. Thanks in advance!
2
[ 2, 16633, 4348, 160, 15, 13, 9007, 130, 332, 396, 14, 1072, 800, 3726, 3726, 31, 57, 40, 4235, 4444, 255, 8128, 6018, 13, 5, 2753, 761, 135, 3782, 165, 6, 30, 23, 88, 357, 7175, 18, 9, 32, 2844, 70, 5010, 1241, 22, 38, 74, 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...
PHP PEAR Auth: How to change the username === I'm using the Auth package of PHP PEAR. I was wondering if there is an equivalent method to changePassword(), where I can easily change the username. I could write my own method, but I'm not sure how I let Auth know that I changed the username. I might get some errors. Any suggestions?
0
[ 2, 13, 26120, 16619, 10343, 96, 45, 184, 20, 753, 14, 4155, 7259, 800, 3726, 3726, 31, 22, 79, 568, 14, 10343, 96, 6030, 16, 13, 26120, 16619, 9, 31, 23, 5712, 100, 80, 25, 40, 4602, 2109, 20, 753, 6201, 9587, 5, 6, 15, 113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 hide all the div by default in Accordion type on page load? === I have taken this example from this given below site which is not working perfect in IE. I want to hide all the div on page load but still it shows first div open in IE while its working fine in FF and other latest browsers. http://docs.jquery.com/UI/Accordion **collapsible: true** - is not working in **IE** and below is my current site where i am using this example. http://new.cgwealth.com/staff Please help me out in this Thanks in Advance :)
0
[ 2, 184, 20, 3077, 65, 14, 13, 12916, 34, 12838, 19, 20753, 1001, 27, 2478, 6305, 60, 800, 3726, 3726, 31, 57, 658, 48, 823, 37, 48, 504, 1021, 689, 56, 25, 52, 638, 2107, 19, 13, 660, 9, 31, 259, 20, 3077, 65, 14, 13, 12916,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MySQL traffic compression with connection pool === I am trying to implement Connection Pooling using Commons Pool and DBCP. I am able to establish a connection to the database and everything works as expected, except traffic compression. <BR/> This is my configuration:<BR/> - Commons DBCP 1.4<BR/> - Commons Pool 1.6<BR/> - MySQL Connector Java 5.1.21<BR/> - MySQL Server 5.5 on Windows Server 2008<BR/> - Java 1.6<BR/> Please consider this code snippet ti instantiate the connection pool: private void setupDataSource(Hashtable<String, String> data) { try { GenericObjectPool<Connection> pool = new GenericObjectPool<Connection>(); pool.setMinIdle(5); pool.setMaxActive(-1); pool.setTestOnBorrow(true); pool.setTimeBetweenEvictionRunsMillis(5000); pool.setMinEvictableIdleTimeMillis(300000); Properties props = new Properties(); props.setProperty("user", "root"); props.setProperty("password", "password"); props.setProperty("useCompression", "true"); ConnectionFactory cf = new DriverConnectionFactory(new com.mysql.jdbc.Driver(), "jdbc:mysql://" + ip + ":" + port, props); KeyedObjectPoolFactory<String, GenericObjectPool<Connection>> kopf =new GenericKeyedObjectPoolFactory<String, GenericObjectPool<Connection>>(null, 20, GenericObjectPool.WHEN_EXHAUSTED_GROW, 20, true, false); PoolableConnectionFactory pcf = new PoolableConnectionFactory(cf, pool, kopf, "Select 1;", false, true); PoolingDriver pd = new PoolingDriver(); pd.registerPool("MyPool", pool); }catch (Exception ex) { ex.printStackTrace(); } } Then, to obtain a connection i use: Connection conn = java.sql.DriverManager.getConnection("jdbc:apache:commons:dbcp:MyPool"); First, is there another way to check if compression works, except comparing the outgoing network traffic in MSQL Tools? And what needs to be changed in order to enable compression? Thanks for your help klib
0
[ 2, 51, 18, 22402, 2227, 14864, 29, 2760, 3067, 800, 3726, 3726, 31, 589, 749, 20, 8713, 2760, 3067, 68, 568, 8322, 3067, 17, 13, 9007, 7439, 9, 31, 589, 777, 20, 4088, 21, 2760, 20, 14, 6018, 17, 796, 693, 28, 1727, 15, 1613, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 it possible to create jar that includes android functions? === As the topic indicates I would like to create a jar library that uses some android functions (no layouts) and that will be included in an Android project. Is that possible and how? From the research I've made I managed to include a simple jar file that uses pure Java (JAVA SE 1.6), but when I tried creating a jar file I encountered the following exception when I tried to run the Andoid app: <br>FATAL EXCEPTION: main<br> java.lang.NoClassDefFoundError: mylib.pleasework.amen<br><br> I tried including android.jar in my library and removing the java library, so that the jar file is build against android sdk, but it didn't work.<br> I tried including the jar file under a /libs folder as it is said to be the correct way to import jars in android projects from ADT v17 and after, but that didn't work either.<br> The jar I want to create will not use any resources (xml layouts, strings.xml) just Log.d and WifiManager.<br>I am aware of Android Library Project but my library source is sensitive and I am afraid that it won't be safe if exposed in a Android library project. I was thinking of creating a jar and using ProGuard ( http://developer.android.com/tools/help/proguard.html ) obfuscate it. I think I mentioned everything. Any help will be appreciated. Thanks,<br> Thomas
0
[ 2, 25, 32, 938, 20, 1600, 5112, 30, 1103, 13005, 3719, 60, 800, 3726, 3726, 28, 14, 8303, 6475, 31, 83, 101, 20, 1600, 21, 5112, 1248, 30, 2027, 109, 13005, 3719, 13, 5, 251, 9106, 18, 6, 17, 30, 129, 44, 506, 19, 40, 13005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Image Photo Markers === In my app I am using photos from cam and gallary, in device is 2 cams and when I take photo from front-cam my image is turn upside down. How can I distinguish photos? Maybe photos including any tags? I use myself CROP activity, but images come in by path.
0
[ 2, 13005, 1961, 3056, 19482, 800, 3726, 3726, 19, 51, 4865, 31, 589, 568, 7064, 37, 5373, 17, 9163, 1857, 15, 19, 3646, 25, 172, 5373, 18, 17, 76, 31, 247, 3056, 37, 431, 8, 8760, 51, 1961, 25, 805, 17439, 125, 9, 184, 92, 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...
How get size of page for multipage tiff and pdf in unix use ghostscrpt or another solution? === I am need in unix tool, that get info of every page in multipage tiff and pdf. Some solution give pdf_info.ps (i reed answer in [this topic][1]), but it is only for pdf. Help me please. Also how i can dont allow print documents large than A4 format? Thanks! [1]: http://stackoverflow.com/questions/2943281/using-ghostscript-to-get-page-size
0
[ 2, 184, 164, 1072, 16, 2478, 26, 1889, 6486, 13, 38, 6021, 17, 13, 11124, 19, 22540, 275, 13050, 6711, 4417, 54, 226, 4295, 60, 800, 3726, 3726, 31, 589, 376, 19, 22540, 5607, 15, 30, 164, 15404, 16, 352, 2478, 19, 1889, 6486, 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...
CheckBox dead loop listener === I have the following listeners: mListener = new ItemListener() { public void itemStateChanged(ItemEvent e) { if (((JCheckBox) e.getSource()).isSelected()) { setRequired(true); } else { setRequired(false); } getTableSteps().repaint(); } }; myCheckBox.addItemListener(mListener); for (int i = 0; i < mTableSteps.getRowCount(); i++) { ((JCheckBox) mTableSteps.getCellRenderer(i, 0)).addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { myCheckBox.setSelected(false); } }); } As you can see, myCheckBox is the checkbox which if it is modified, modifies some of the checkboxes from the first column of mtablesteps (this is done in the setRequired method). Also, if one of the checkboxes from mtablesteps column 0 are modified they should put myCheckBox to not being selected. Now the problem is when I first select myCheckBox it triggers the listener and selects some checkboxes from mTableSteps. But when these checkboxes are selected, they also trigger their listener and deselect myCheckBox. Thus, myCheckBox always gets deselected. I hope this makes sense. Any suggestions on how to avoid this are appreciated. To be more even more clear, what I'm trying to achieve is have a listener for myCheckBox which when the checkbox is selected it will select some of the checkboxes from the first column of mTableSteps. But also, if I select/deselect a checkbox from the table, it will put myCheckBox to not selected. Thanks a lot.
0
[ 2, 2631, 5309, 828, 5293, 21772, 800, 3726, 3726, 31, 57, 14, 249, 15672, 45, 307, 13891, 106, 800, 78, 9101, 13891, 106, 5, 6, 13, 1, 317, 11364, 9101, 3859, 16229, 43, 5, 2119, 790, 6645, 13, 62, 6, 13, 1, 100, 13, 5, 5, 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...
How do I Get Full Html Field Name for an item in a list on my model at controller level? === *First Post I have a JQuery error handler for my Ajax posts that I must use, it appends an error to the html based on the field name for that element like this $(document).ready(function () { function myHandler(e, error) { var tag = ""; if (error.Success == true) { $('.field-validation-error').remove(); return; } // if success remove old validation and don't continue if (error.Success == false) { $('.field-validation-error').remove(); } // if success remove old validation and continue for (i = 0; i < error.Errors.length; i++) { var t = error.Errors[i]; //get error key and assign it to id tag = t.Key; //clear down any existing json-validation for (j = 0; j < t.Value.length; j++) { //this part assumes that our error key is the same as our inputs name $('<span class="field-validation-error">' + t.Value[j].ErrorMessage + '</span>').insertAfter('input[name="' + tag + '"], textarea[name="' + tag + '"], select[name="' + tag + '"], span[name="' + tag + '"]'); } } } $.subscribe("/******/errors", myHandler); }); This works perfectly out of the box with our fluent validation setup until I try to add a custom modelstate error at controller level like so: foreach (var item in model.Locations) { var cityRepos = new CityRepository(NhSession); var cityItem = cityRepos.GetAll().FirstOrDefault(o => o.Country.Id == item.CountryID && o.Name == item.City); if (cityItem == null) item.City ModelState.AddModelError("City", string.Format(@"The city ""{0}"" was not found, please ensure you have spelt it correctly. TODO: add a mail to link here with city not found subject", item.City)); } the problem is that the modelstate error needs to be attached to the html field name not my magic string "City". The html name property is MVC Generated and looks something like this: name="Locations[0].City" I have encountered this problem in a html helper before and used the method: .GetFullHtmlFieldName( ExpressionHelper.GetExpressionText(propertySelector) ); which resolved my problem in that case. My question is can I use this method on my model property in an MVC post to obtain the html name property it has come from? Thanks in advance
0
[ 2, 184, 107, 31, 164, 503, 13, 15895, 575, 204, 26, 40, 9101, 19, 21, 968, 27, 51, 1061, 35, 9919, 662, 60, 800, 3726, 3726, 1637, 3552, 678, 31, 57, 21, 487, 8190, 93, 7019, 24641, 26, 51, 20624, 9868, 30, 31, 491, 275, 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 Responsive Layout float Animation === I'm looking for something and i do not know what it is called or where i can find the necceracry information. http://ricklancee.com/jquery-layout ^ So what i got now is a website with a wrapper with 100% width (current browser width), within this i have placed an number of elements with a fixed with (240px) and float: left; when i make the window smaller they will position them selfs under each other. What i want them to do when they float under eachother --and back-- is animate to that position. http://masonry.desandro.com/ shows an example when you resize the window the elements will float/animate to the new position. Can anyone tell me how this is done, what this technique is called or where can i find how this is done? I do not which to use an plugin, just script it myself for educational purposes. Thank you very much,
0
[ 2, 487, 8190, 93, 13, 22153, 9106, 11510, 6236, 800, 3726, 3726, 31, 22, 79, 699, 26, 301, 17, 31, 107, 52, 143, 98, 32, 25, 227, 54, 113, 31, 92, 477, 14, 19724, 15869, 14024, 676, 9, 7775, 6903, 4869, 21920, 62, 9, 960, 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...
Filter not found urls === var url_array = Array( 'url1.html', 'url2.html', 'url3.html', 'url4.html', 'url5.html' ); How can i filter invalid/not found/404 urls from the array. there should be a function with takes that url_array and return an array with valid/found urls.
0
[ 2, 11945, 52, 216, 13, 911, 7532, 800, 3726, 3726, 4033, 287, 6362, 1, 8576, 93, 800, 7718, 5, 13, 22, 911, 255, 165, 9, 15895, 22, 15, 13, 22, 911, 255, 135, 9, 15895, 22, 15, 13, 22, 911, 255, 240, 9, 15895, 22, 15, 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...
How to get the series field of the clicked column in a stacked charts? === ExtJS4: I'm creating a stacked column chart as { xtype: 'chart', animate: true, shadow: true, store: this.appScoreStackedStore, axes: [{ type: 'Numeric', position: 'left', fields: ['score5', 'score4', 'score3', 'score2', 'score1'], title: false, grid: false }, { type: 'Category', position: 'bottom', fields: ['applicationType'], title: false }], series: [{ type: 'column', axis: 'left', xField: 'applicationType', yField: ['score5', 'score4', 'score3', 'score2', 'score1'], stacked: true, listeners : { itemmousedown : function(obj) { console.log(obj.storeItem.data['applicationType'] + ' ' + obj.storeItem.data['score5'] + ' ' + obj.storeItem.data['score4'] + ' ' + obj.storeItem.data['score3'] + ' ' + obj.storeItem.data['score2'] + ' ' + obj.storeItem.data['score1']); console.log(obj); } } }] } At the bottom, I have application type. For each application, I have different types of scores (score1, score2, score3, score4, score5). I want to have a click event such that I can get the Application Type (say Risk), Score Type(say Score3) and the Score value(say 23). In the itemmousedown event, I can get Application Type and Score value but Score Type using obj. Please tell me how to get the series column (Score3).
0
[ 2, 184, 20, 164, 14, 231, 575, 16, 14, 15802, 4698, 19, 21, 20054, 5158, 60, 800, 3726, 3726, 1396, 38, 728, 18, 300, 45, 31, 22, 79, 2936, 21, 20054, 4698, 1795, 28, 13, 1, 993, 4474, 45, 13, 22, 5433, 38, 22, 15, 14487, 59...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Tag few words from text === We have a HTML page. Is it possible to select (by mouse) few words of a paragraph, get reference to those selected words and encapsulate them, say, by the `<span>...</span>` tag programatically? We can use jQuery or HTML5/CSS3?
0
[ 2, 3383, 310, 715, 37, 1854, 800, 3726, 3726, 95, 57, 21, 13, 15895, 2478, 9, 25, 32, 938, 20, 5407, 13, 5, 779, 7567, 6, 310, 715, 16, 21, 20599, 15, 164, 2801, 20, 273, 1704, 715, 17, 1957, 4666, 18, 12383, 105, 15, 395, 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 set values for hidden variable using javascript when processing using servlet? === Hi all this is how i set value is hidden variable through java script, function logintosystem(){ document.forms["frmLogon"].funtiontype.value="logon"; document.forms["frmLogon"].submit(); } and this is what is my jsp page : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <%@page contentType="text/html" pageEncoding="UTF-8"%> <% String path = "", userName = "", message = "", userType = ""; path = request.getContextPath(); if(request.getAttribute("message")!=null) message =(String)request.getAttribute("message"); %> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="ACCT"/> <meta name="keywords" content="acct,accesscardcomparision" /> <meta name="author" content="slingmedia" /> <link rel="stylesheet" type="text/css" href="acct.css" title="andreas09" media="screen,projection" /> <title>ACCT</title> <script> function logintosystem(){ document.forms["frmLogon"].funtiontype.value="logon"; document.forms["frmLogon"].submit(); } </script> </head> <body> <div id="container"> <div id="sitename"> <h1>ACCT</h1> <h2>Access Card data comparision with Leave portal</h2> </div> <div id="mainmenu"> <ul> <% if (userName.length() > 0 || !userName.equals(null) || !userName.equals("")) { %> <li><a href="#" class="current" >Welcome <%=userName%></a></li> <%}%> <% if (userName.length() > 0 && userType.length() > 0) { %> <li><a href="#">Tempcard</a></li> <%}%> <% if (userType.equals("HR")) { %> <li><a href="#">Report</a></li> <%}%> <% if (userName.length() > 0 && userType.length() > 0) { %> <li><a href="#">Logout</a></li> <%}%> </ul> </div> <div id="wrap"> <div id="content"> <h1>Please Enter your code</h1> <form name="frmLogon" id="frmLogon" action="LogonServlet" method="post"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr align="center" valign="middle"> <td width="100%" align="center" valign="middle"> <table width="100%" align="left" border="0" cellspacing="0" cellpadding="2" > <tr> <td width="5%" align="left">&nbsp;</td> <td width="35%" align="right">ACCT Code</td> <td width="20%"><input type="text" name="acctcode" id="acctcode" class="inputBoxes" /></td> <td width="15%" align="left"><input type="button" class="submitButton" value="Logon" onclick="logintosystem();"/></td> <td width="15%">&nbsp;</td> <td width="10%" align="center">&nbsp;</td> </tr> <br></br> </table> </td> </tr> </table> <input type="hidden" name="funtiontype" id="funtiontype" value=""/> </form> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFF0"> <tr> <td id="message" align="center"> <b><font color="brown" size="3"><%=message%></font></b> </td> </tr> </table> </td> </tr> </table> </div> <div class="clearingdiv">&nbsp;</div> </div> </div> <div id="footer"> <p>&copy; 2012 <a href="#">slingmedia</a> | ACCT&nbsp;&nbsp;&nbsp;<a href="http://slingmedia.com/"></a></p> </div> </body> </html> and my servlet is : /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.slingmeadia.notifier.servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * * @author anthony.savarimut */ public class LogonServlet extends HttpServlet { /** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { /* * TODO output your page here. You may use following sample code. */ out.println("<html>"); out.println("<head>"); out.println("<title>Servlet LogonServlet</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Servlet LogonServlet at " + request.getContextPath() + "</h1>"); out.println("</body>"); out.println("</html>"); } finally { out.close(); } } // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."> /** * Handles the HTTP * <code>GET</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // processRequest(request, response); String funtiontype = "",acctcode="",pageRedirect=""; if(request.getAttribute("funtiontype")!=null) funtiontype =(String)request.getAttribute("funtiontype"); if(request.getAttribute("acctcode")!=null) acctcode =(String)request.getAttribute("acctcode"); if(funtiontype.equals("logon")){ request.setAttribute("message","Loggedon code is "+acctcode); pageRedirect="notifier/notifier.jsp"; }else{ request.setAttribute("message","loggedout code is "+acctcode); pageRedirect="index.jsp"; } response.sendRedirect(pageRedirect); } /** * Handles the HTTP * <code>POST</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //processRequest(request, response); System.out.println("Called logon"); doGet(request,response); } /** * Returns a short description of the servlet. * * @return a String containing servlet description */ @Override public String getServletInfo() { return "Short description"; }// </editor-fold> } the page is getting submited but the values that i set for hidden variable is not coming in servlet also i have a text box that value also is not coming to servlet when submitting the page. Kindly help me to find out this.
0
[ 2, 184, 20, 309, 4070, 26, 3689, 7612, 568, 8247, 8741, 76, 5511, 568, 13, 10321, 1336, 60, 800, 3726, 3726, 4148, 65, 48, 25, 184, 31, 309, 1923, 25, 3689, 7612, 120, 8247, 3884, 15, 1990, 6738, 108, 262, 10724, 5, 6, 1, 4492, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Change PHP variable values using drop down menu === I wondering if any know way to change values of variable using option drop-down list ?? php script is: <?php $searchBoxfruit = "Red"; require_once('includes/search_box.php'); ?> and option list <option value="Type">Type</option> <option value="Red">Red</option> <option value="Green">Green</option> <option value="Gray">Gray</option> </select> so basicly when user selected green option in drop down menu, $searchBoxfruit values must change to Green.
0
[ 2, 753, 13, 26120, 7612, 4070, 568, 2804, 125, 11379, 800, 3726, 3726, 31, 5712, 100, 186, 143, 161, 20, 753, 4070, 16, 7612, 568, 4255, 2804, 8, 2968, 968, 13, 60, 60, 13, 26120, 3884, 25, 45, 13, 1, 60, 26120, 5579, 25136, 530...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MySQL - Stored Proc creation in code giving syntax error === I'm baffled by the syntax error I keep getting in MYSQL (ver 5.2) when executing CREATE PROC in code. The MySQL Proc code: DELIMITER // CREATE PROCEDURE Delete_BillOfMaterialsDetail (IN InOrderDate DATE, IN InProductCode varchar(40), IN InRawMaterialProductCode varchar(40) ) BEGIN IF EXISTS (SELECT * FROM basf_rawmaterialplanning.BillOfMaterialsDetail WHERE OrderDate = InOrderDate and ProductCode = InProductCode and RawMaterialProductCode = InRawMaterialProductCode) THEN DELETE FROM basf_rawmaterialplanning.BillOfMaterialsDetail WHERE OrderDate = InOrderDate AND ProductCode = InProductCode AND RawMaterialProductCode = InRawMaterialProductCode; END IF; END // DELIMITER ; I build it using a string datatype then execute it against the DB which gives a syntax error. I'm not to sure what I'm doing wrong?
0
[ 2, 51, 18, 22402, 13, 8, 8214, 13, 15617, 2502, 19, 1797, 1438, 22649, 7019, 800, 3726, 3726, 31, 22, 79, 29027, 34, 14, 22649, 7019, 31, 643, 1017, 19, 51, 18, 22402, 13, 5, 2304, 331, 9, 135, 6, 76, 25836, 1600, 13, 15617, 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...
XmppClientConnection Disconnected === I am using agsXMPP Library to connected to Google, Now I can connected google's xmpp server. My question is, How can I disconnected from server, I also found many example code about agsXMPP, and I followed that examples, but still not work!
0
[ 2, 993, 2554, 5779, 18513, 38, 25996, 872, 25730, 800, 3726, 3726, 31, 589, 568, 21, 5447, 396, 79, 3421, 1248, 20, 2587, 20, 8144, 15, 130, 31, 92, 2587, 8144, 22, 18, 993, 79, 3421, 8128, 9, 51, 1301, 25, 15, 184, 92, 31, 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...
Makefile negative wildcard === I use to make use of wildcards in a Makefile in order to select all the files that end with an *.c* suffix in its name. That looks like that `SRCS := $(wildcard *.c)`. In other parts of the Makefile `SRCS` is used. What I need to do now is to prevent a given file to be included in the SRCS variable. The way I found to do is combine the shell directive with some console commands: `SRC :=$(shell find . -name "*.c" | grep -v "file_to_exclude.c" | xargs)` That works fine, but I would like to know whether there is some other more elegant way than that one using only wildcards.
0
[ 2, 233, 16877, 3682, 23003, 800, 3726, 3726, 31, 275, 20, 233, 275, 16, 23003, 18, 19, 21, 233, 16877, 19, 389, 20, 5407, 65, 14, 6488, 30, 241, 29, 40, 1637, 9, 150, 2483, 15447, 19, 82, 204, 9, 30, 1879, 101, 30, 13, 1, 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...
Position Absolute's jQuery-Validation-Engine - Conditional Validation === I am using the jquery form validation engine by Cedric Dugas (Position Absolute) and need to know how to do conditional requirements (i.e. if field x is populated, field y is required). Please help. Here are links to the validation engine: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ https://github.com/posabsolute/jQuery-Validation-Engine
0
[ 2, 649, 7070, 22, 18, 487, 8190, 93, 8, 18506, 43, 857, 8, 16847, 13, 8, 21206, 27999, 800, 3726, 3726, 31, 589, 568, 14, 487, 8190, 93, 505, 27999, 1406, 34, 27601, 6066, 472, 13, 5, 9339, 7070, 6, 17, 376, 20, 143, 184, 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...
Using the "mem" kernel command in GRUB with Fedora 14 (64-bit) === I'm running the 64 bit version of Fedora 14 on a machine with 8GB of RAM. I need to reserve the upper 2GB of RAM for DMA from an FPGA over PCI express. To accomplish this I attempted to add "mem=6G" to the kernel option in GRUB. After adding the mem argument I get the following error: "Error 28: Selected item cannot fit into memory". I also tried combining it with "memmap=2G$6G" but I still get the error. Using "highmem=6G" also results in the same error. If I remove the "mem=6G" option and keep "memmap=2G$6G" the box boots and the amount of RAM available in /proc/meminfo reduces from 8GB to 6GB. The problem is my high_memory point is 0x21e600000 which is 512MB above 8GB. dmesg reports: ~ BIOS-e820: 0000000100000000 - 000000021e600000 (usable) and ~ user: 0x0000000180000000 - 00000021e600000 (usable) How can I get the "mem" argument to actually restrict the amount of RAM the kernel uses to 6GB and force it to ignore the upper 2GB? I need the high_memory point to report 0x180000000. Why is the kernel reporting 512MB of RAM above the actual 8GB installed?
0
[ 2, 568, 14, 13, 7, 790, 79, 7, 17007, 1202, 19, 8961, 220, 29, 26726, 58, 513, 13, 5, 3470, 8, 3326, 6, 800, 3726, 3726, 31, 22, 79, 946, 14, 4384, 1142, 615, 16, 26726, 58, 513, 27, 21, 1940, 29, 469, 11400, 16, 2843, 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 install npm -g on offline server === I need to install a "global" npm applications on an offline server. It is easy to install normal application: npm install and then pack up the resulting files. Either manually or using *npm pack*. However, how can I install global application (that has a install script of some sort) such as *forever* without Internet? npm install -g forever
0
[ 2, 184, 20, 16146, 13, 103, 5576, 13, 8, 263, 27, 168, 1143, 8128, 800, 3726, 3726, 31, 376, 20, 16146, 21, 13, 7, 26763, 7, 13, 103, 5576, 3767, 27, 40, 168, 1143, 8128, 9, 32, 25, 2010, 20, 16146, 1826, 3010, 45, 13, 103, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 to save GAS to be accessed via several spreadsheets? === I have written a script inside spreadsheet, that is triggered on spreadsheet-form-submit. However, since I have several such similar spreadsheet, I would like to place the code at one central location and link/import in each spreadsheet. (That is, I want to maintain one copy of code, where-in if I make improvements, it should auto-magically be reflected in each spreadsheet). Thanks.
0
[ 2, 113, 20, 2079, 1692, 20, 44, 12904, 1197, 238, 1789, 17627, 18, 60, 800, 3726, 3726, 31, 57, 642, 21, 3884, 572, 1789, 17627, 15, 30, 25, 15164, 27, 1789, 17627, 8, 4190, 8, 7563, 5130, 9, 207, 15, 179, 31, 57, 238, 145, 83...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Access denied for user 'ABC'@'srv17.thewebhostserver.com' (using password: YES) === I am using a php website when i go to home page it shows the following Error Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ABC'@'srv17.thewebhostserver.com' (using password: YES) in /home/kingofde/public_html/library/myLibrary.php on line 115 Notice: Could not connect to MYSQL. in /home/kingofde/public_html/library/myLibrary.php on line 121 Where i am using following code private function connection() { if ($this->connection = mysql_connect("www.xyz.com", "ABC", "XYZ")) { if (!mysql_select_db("PQR")) { trigger_error("<br/>Could not select the Database."); exit(); } } else { trigger_error("<br/> Could not connect to MYSQL."); exit(); } } I checked my DB user_name and pass and also DB name they are all correct Please guide me
3
[ 2, 1381, 5265, 26, 4155, 13, 22, 21880, 22, 1, 22, 18, 10359, 1053, 9, 124, 14113, 11694, 10321, 106, 9, 960, 22, 13, 5, 12655, 20884, 45, 1643, 6, 800, 3726, 3726, 31, 589, 568, 21, 13, 26120, 2271, 76, 31, 162, 20, 213, 2478...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Retreive User email using GTM OAuth2 for iOS === I have successfully implemented authentication using GTM OAuth 2 library. But now I want to have the email id of the user. How should I proceed. I know I have to call something in here :- - (void)viewController:(GTMOAuth2ViewControllerTouch *)viewController finishedWithAuth:(GTMOAuth2Authentication *)auth error:(NSError *)error { if (error != nil) { NSLog(@"SIGN IN ERROR : %@", error.description); // Authentication failed } else { // Authentication succeeded } }
0
[ 2, 13, 6239, 99, 1284, 4155, 8517, 568, 9509, 79, 635, 1346, 96, 135, 26, 13, 7760, 800, 3726, 3726, 31, 57, 3673, 6807, 27963, 568, 9509, 79, 635, 1346, 96, 172, 1248, 9, 47, 130, 31, 259, 20, 57, 14, 8517, 4924, 16, 14, 4155...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Translating from ASIHTTPRequest to AFNetworking , on iOS === What i want to do is post a json file to my server. I finally did that using ASIHTTPRequest and my code is : NSURL *url = [NSURL URLWithString:@"http://foo.foo.foo"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setRequestMethod:@"PUT"]; [request addRequestHeader:@"Authorization" value:@"Basic dslfkdsfdsflsdkfslkgflksflksdlfkg"]; [request addRequestHeader:@"Content-Type" value:@"application/json; charset=utf-8"]; [request appendPostData:[jsonString dataUsingEncoding:NSUTF8StringEncoding]]; [request startSynchronous]; NSLog(@"%@", [request responseString]); What i need now is the exact above code translated to AFNetworking. Any ideas?? Thank you for reading my post :)
0
[ 2, 25237, 37, 28, 49, 21127, 99, 10351, 20, 13, 2565, 24106, 68, 13, 15, 27, 13, 7760, 800, 3726, 3726, 98, 31, 259, 20, 107, 25, 678, 21, 487, 528, 3893, 20, 51, 8128, 9, 31, 722, 144, 30, 568, 28, 49, 21127, 99, 10351, 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...
Rails form_for selectbox first entry should be blank === I'm populating my select box using the query shown below: <%=f.select :acoustic, options_for_select(User.includes(:roles).where( :roles => {:description => "Acoustic"}).collect{|u|[[u.name,u.surname].join(" ")]}) %> However I want the default option for the select box to be an empty string. I've tried <%=f.select :acoustic, options_for_select(["", User.includes(:roles).where( :roles => {:description => "Acoustic"}).collect{|u|[[u.name,u.surname].join(" ")]}]) %> But that doesn't seem to work as the box is then populated by the blank space (as desired) but it only picks up the first result from the query and puts it into array brackets. Thanks in advance for any help
0
[ 2, 2240, 18, 505, 1, 1106, 5407, 5309, 64, 2792, 378, 44, 6463, 800, 3726, 3726, 31, 22, 79, 1675, 10038, 51, 5407, 1649, 568, 14, 25597, 1721, 1021, 45, 13, 1, 11881, 3726, 410, 9, 18, 16964, 13, 45, 19969, 15, 6368, 1, 1106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
WSO2 ESB Non-soap TCP messaging === all! A'm in trouble in sending plain text message through TCP transport in WSO2 Esb. My message: INFO - LogMediator To: ,WSAction: urn:mediate,SOAPAction: urn:mediate,MessageID: urn:uuid:658EA86E8A641FEB691341235178930,Direction: request,Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body>plaintext</soapenv:Body></soapenv:Envelope> Error throwed: ERROR - TCPTransportSender Error while sending a TCP request org.apache.axis2.AxisFault: The out message is NULL, nothing to write. at org.apache.axis2.transport.TransportUtils.writeMessage(TransportUtils.java:304) at org.apache.axis2.transport.tcp.TCPTransportSender.sendMessage(TCPTransportSender.java:52) at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112) at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:627) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
0
[ 2, 619, 656, 135, 13, 160, 220, 538, 8, 656, 2552, 13, 38, 7439, 26437, 800, 3726, 3726, 65, 187, 21, 22, 79, 19, 2572, 19, 4907, 3748, 1854, 2802, 120, 13, 38, 7439, 1739, 19, 619, 656, 135, 13, 160, 220, 9, 51, 2802, 45, 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...
Flash to SignalR communication === We have a service communicating back and forth in realtime over SignalR. We have a HTML5 frontend, but I would like to try to make a Flash/Actionscript frontend with AIR that I can compile to a native iOS/Android app. Is there a library available to communicate with the SignalR server hub?
0
[ 2, 4433, 20, 2800, 139, 3291, 800, 3726, 3726, 95, 57, 21, 365, 23284, 97, 17, 5882, 19, 683, 891, 84, 2800, 139, 9, 95, 57, 21, 13, 15895, 264, 431, 2451, 15, 47, 31, 83, 101, 20, 1131, 20, 233, 21, 4433, 118, 8645, 8741, 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...
Apache+Tomcat connector error : Error registering Catalina === I am having strange problem in the Apache-Tomcat connector that we have for our system. It is a huge complex system that we are running on Tomcat 5.0.28 and Apache 2.3 with mod_jk connector. For several complex reasons including legacy code, we can't upgrade Tomcat. The code runs fine, except that often we see these errors in the Tomcat logs - `Jul 10, 2012 2:23:30 AM org.apache.commons.modeler.Registry registerComponent SEVERE: Error registering Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest520 javax.management.InstanceAlreadyExistsException: Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest520 at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871) at org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436) at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:619) Jul 10, 2012 2:23:30 AM org.apache.jk.common.ChannelSocket registerRequest WARNING: Error registering request` I have looked up similar posts and they all suggest soem manual erro while starting another instance of Tomcat, but that is not the case for us. This suggests that there is an error while creating another instance of Tomcat by connector/Apache. And I am really wondering what or who is creating this another instance? We used to see it less frequently earlier, but now it has become more frequent (after memory upgrade) and often resulting in OutOfMemory error crashing our server. Here are the relevant configurations from Tomcat & Apache - **Tomcat** <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <Connector port="8009" enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" maxThreads="150" minSpareThreads="20" maxSpareThreads="50" executor="default" acceptCount="100" connectionTimeout="2000" keepAliveTimeout="20000" /> **Apache** <IfModule worker.c> StartServers 1 MaxClients 150 MinSpareThreads 20 MaxSpareThreads 50 ThreadsPerChild 10 MaxRequestsPerChild 100 </IfModule> Can anyone help me understand what is causing this error so frequently (more than 20/25 times in a single day)? Moreover, how can I fix it? How can one tweak these configurations to handle the load? Besides the huge Tomcat application, our Apache server handles several PHP/Wordpress blogs. Any pointers on this one would be highly appreciated! TIA, - Manish
0
[ 2, 17140, 2430, 6015, 5782, 17991, 7019, 13, 45, 7019, 2243, 68, 24954, 800, 3726, 3726, 31, 589, 452, 2578, 1448, 19, 14, 17140, 8, 6015, 5782, 17991, 30, 95, 57, 26, 318, 329, 9, 32, 25, 21, 2329, 1502, 329, 30, 95, 50, 946, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
SELECT query ordering by substring in Sql Server === I have a column in a SQL Server table that has the following rows: MyColumn : 1 Month, 2 Week, 10 Minutes,2 week,3 month,1 day,2 month,2 day..etc It is a text column that contains Priority strings. Is there a way to make a select return this column ordered as following: 1 Months 2 Months 3 Months 2 Weeks 3 Weeks 1 days 2 days 10 Minutes etc.. thank you
0
[ 2, 5407, 25597, 15775, 34, 972, 11130, 19, 4444, 255, 8128, 800, 3726, 3726, 31, 57, 21, 4698, 19, 21, 4444, 255, 8128, 859, 30, 63, 14, 249, 11295, 45, 51, 716, 4404, 103, 13, 45, 137, 1617, 15, 172, 877, 15, 332, 902, 15, 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...
Posting facebook in new thread with Graph Api === In my project user can post texts. I implemented a feaure "post also facebook" (like twitter) Process is I save user text in my db then try to send it to facebook with graph api.. At the end I return json response. Pseudo code is like ; db->query("insert text on USER_TEXT") facebookApi->status(text); response->json(text); Problem is I get json response so slow because sometimes facebook api is slow. I just want to use facebook api is a back process. So my application return response successfully asap it saved on db. At this point share on facebook is trivial so It can be completed later. Maybe thread based solution works for this but I dont know how it can be implemented in script language like PHP. Maybe another simple way? Thanks.
0
[ 2, 15669, 9090, 19, 78, 9322, 29, 7210, 21, 2159, 800, 3726, 3726, 19, 51, 669, 4155, 92, 678, 6381, 9, 31, 6807, 21, 398, 5954, 99, 13, 7, 6962, 67, 9090, 7, 13, 5, 1403, 10623, 6, 953, 25, 31, 2079, 4155, 1854, 19, 51, 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...
Multiple content_for for specifying classes === I have the following little problem. In layout I yield to **content_for** to set up some classes on my body tag: <body class="<%= yield(:body_classes) %> They I would like to call **content_for** <%= content_for(:body_classes, "one") %> So far so good. I use **content_for** for the second time: <%= content_for(:body_classes, "two") %> In my HTML I get the following: <body class="onetwo"> Is there an elegant way to separate those two classes by space? I can think of couple of hacky solution, but nothing feels right... Many Thanks!
0
[ 2, 1886, 2331, 1, 1106, 26, 19077, 68, 2684, 800, 3726, 3726, 31, 57, 14, 249, 265, 1448, 9, 19, 9106, 31, 11537, 20, 13, 1409, 25424, 1, 1106, 1409, 20, 309, 71, 109, 2684, 27, 51, 358, 3383, 45, 13, 1, 9760, 718, 3726, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Xcode iOS understanding the stack-trace === Is there something wrong with the applicationWillTerminate? Who can tell me how to analysis the trace or more detail about the exception? I tried dwarfdump but it seems no more detail. dwarfdump -arch armv7 MyApp.app.dSYM --lookup 0x000034b3 tell me Line table file: 'main.m' line 14, column 18 with start address 0x00000000000034aa which is int retVal = UIApplicationMain(argc, argv, nil, nil); Here is the stack-trace -[UIApplication applicationWillTerminate:]: unrecognized selector sent to instance 0x27eed0 (null) ( 0 CoreFoundation 0x30df964f __exceptionPreprocess + 114 1 libobjc.A.dylib 0x34914c5d objc_exception_throw + 24 2 CoreFoundation 0x30dfd1bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102 3 CoreFoundation 0x30dfc649 ___forwarding___ + 508 4 CoreFoundation 0x30d73180 _CF_forwarding_prep_0 + 48 5 CommonTools 0x089e441f -[ButtonEventOpt onProcClickEvent:state:frame:viewControl:] + 1662 6 CommonTools 0x089ead37 -[CommonToolsView onClickBtnEvent:] + 366 7 CoreFoundation 0x30d69571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24 8 UIKit 0x30e77ec9 -[UIApplication sendAction:to:from:forEvent:] + 84 9 UIKit 0x30e77e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32 10 UIKit 0x30e77e3b -[UIControl sendAction:to:forEvent:] + 38 11 UIKit 0x30e77b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356 12 UIKit 0x30e78423 -[UIControl touchesEnded:withEvent:] + 342 13 UIKit 0x30e5d535 _UIGestureRecognizerSortAndSendDelayedTouches + 2200 14 UIKit 0x30e5cc01 _UIGestureRecognizerUpdateObserver + 696 15 CoreFoundation 0x30dd0a35 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16 16 CoreFoundation 0x30dd2465 __CFRunLoopDoObservers + 412 17 CoreFoundation 0x30dd375b __CFRunLoopRun + 854 18 CoreFoundation 0x30d63ec3 CFRunLoopRunSpecific + 230 19 CoreFoundation 0x30d63dcb CFRunLoopRunInMode + 58 20 GraphicsServices 0x306e241f GSEventRunModal + 114 21 GraphicsServices 0x306e24cb GSEventRun + 62 22 UIKit 0x30e89d69 -[UIApplication _run] + 404 23 UIKit 0x30e87807 UIApplicationMain + 670 24 MyApp 0x000034b3 MyApp + 9395 25 MyApp 0x0000346c MyApp + 9324 )
0
[ 2, 993, 9375, 13, 7760, 3260, 14, 7566, 8, 38, 7367, 800, 3726, 3726, 25, 80, 301, 1389, 29, 14, 3010, 5580, 3964, 17939, 60, 72, 92, 494, 55, 184, 20, 2495, 14, 5565, 54, 91, 6110, 88, 14, 5391, 60, 31, 794, 9694, 43, 11134, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 re-authenticate NATIVE DESKTOP Facebook app === I'm in the progress of reading all documentation of Facebook related to programming a Native Desktop application for Facebook. I explicitly state Native Desktop app. It will be using Client Side authentication WITHOUT the JAVA SDK. As far as I have read, I know that access_tokens do expire. I've also read that you can re-authenticate. But........... Facebook has very limited documentation about how to do that with a desktop application running on Windows/Mac OSX or Linux using Client Side Authentication without the JAVA SDK. My question is...... Is this possible anyway for such a Facebook desktop app or do I have to ask the user every time the access_token expires, to authorize my application again? IMPORTANT NOTE: Facebook does not support the offline_access permission function/API (what a solution could have been) anymore.
0
[ 2, 184, 20, 302, 8, 1346, 2504, 1786, 1373, 1275, 17404, 9090, 4865, 800, 3726, 3726, 31, 22, 79, 19, 14, 3455, 16, 1876, 65, 13945, 16, 9090, 1597, 20, 3143, 21, 1275, 17404, 3010, 26, 9090, 9, 31, 13108, 146, 1275, 17404, 4865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Webcam in a JavaApplet === I am trying to create a Java Applet that runs the client's webcam and take a picture with a button but I just couldn't find a way to run the webcam in an applet. Does anyone out there know a simple way to achieve this? Thanks.
0
[ 2, 2741, 8760, 19, 21, 8247, 24212, 38, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 8247, 4037, 38, 30, 1461, 14, 6819, 22, 18, 2741, 8760, 17, 247, 21, 2151, 29, 21, 5167, 47, 31, 114, 711, 22, 38, 477, 21, 161, 20, 485, 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...
Related to Multithreading...sync. method vs normal method === i have synchronized method and one normal method in my class, one thread locked my class object and accessing that synchronized method.., My question is does other threads can access the normal method of my class in that time ?
0
[ 2, 1597, 20, 1889, 96, 22883, 9, 9, 9, 9507, 150, 9, 2109, 4611, 1826, 2109, 800, 3726, 3726, 31, 57, 27202, 2109, 17, 53, 1826, 2109, 19, 51, 718, 15, 53, 9322, 4011, 51, 718, 3095, 17, 1381, 68, 30, 27202, 2109, 9, 9, 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...
How to make a reg exp substitution that will substitute only certain occurrences of the same char in Tcl === I want to take an expression in tcl and convert its `_` to `<` and `>` if they are around a number. Some examples: - `bla_bla_4_` -> `bla_bla<4>` - `bla_bla_4` -> `bla_bla_4` - `bla_4_` -> `bla<4>` How do I do it? I couldn't find it in [regsub's manual][1]. [1]:http://www.tcl.tk/man/tcl8.4/TclCmd/regsub.htm
0
[ 2, 184, 20, 233, 21, 7953, 13, 6899, 19910, 30, 129, 6558, 104, 1200, 12933, 18, 16, 14, 205, 4892, 19, 13, 38, 5316, 800, 3726, 3726, 31, 259, 20, 247, 40, 1803, 19, 13, 38, 5316, 17, 8406, 82, 13, 1, 20, 13, 1, 17, 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...
How to link depending on language Zend === The application is in Zend Framework. It is multilingual and menu-buttons get translated in english or dutch using languagefiles. But how can I redirect using the menu buttons to other content using the same link? For example en version links to ../Support and I want the nl version link to ../Help The page in dutch wil have different content (text, images) so I will have a different index.phtml, indexnl.phtml. I didnt find information on this site that actually explained this good for a non-zend-expert. Help appreciated.
0
[ 2, 184, 20, 3508, 4758, 27, 816, 10526, 43, 800, 3726, 3726, 14, 3010, 25, 19, 10526, 43, 6596, 9, 32, 25, 1889, 23427, 17, 11379, 8, 811, 444, 18, 164, 4331, 19, 486, 54, 2117, 568, 816, 16877, 18, 9, 47, 184, 92, 31, 302, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Membership login page just sends members back to homepage === Members of my website are supposed to be sent to a members' directory after successfully entering their login information. However, after hitting the "Login" button, they are all sent back to the homepage of my site. There have been some recent changes in my site, which probably is the cause, but I can't figure out what it could be. I have NOT touched the login coding at all. The login page I'm referring to is http://www.teleworkrecruiting.com/page25.html Any feedback would be so appreciated. Thank you, Pamela
0
[ 2, 4363, 6738, 108, 2478, 114, 11350, 443, 97, 20, 213, 6486, 800, 3726, 3726, 443, 16, 51, 2271, 50, 2293, 20, 44, 795, 20, 21, 443, 22, 16755, 75, 3673, 4604, 66, 6738, 108, 676, 9, 207, 15, 75, 6687, 14, 13, 7, 5567, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MKMapView in SplitViewController master view === I have coded a universal app which (for the iPad storyboard) puts a MKMapView inside the master view of a splitviewcontroller. The code to setup the initial mapView zoom was taken from a contributor on stack overflow and is shown below. The code creates a visibleMapRect that should include all annotations. When the mapView is displayed on the iPhone simulator, pinching to zoom works just fine, and all the annotations are properly shown. But the visibleMapRect does not show correctly in the splitview/master. In addition on the iPad simulator, trying to emulate pinching with the alt+left-click does not work, and does not display the twin dots (emulating the finger touch points). Pinching to zoom does however work on an actual iPad. -(void) updateTopMapView { if (self.topMapView.annotations) [self.topMapView removeAnnotations:self.topMapView.annotations]; if (self.annotations) [self.topMapView addAnnotations:self.annotations]; MKMapRect zoomRect = MKMapRectNull; for (id <MKAnnotation> annotation in self.topMapView.annotations) { MKMapPoint annotationPoint = MKMapPointForCoordinate(annotation.coordinate); MKMapRect pointRect = MKMapRectMake(annotationPoint.x, annotationPoint.y, 0.1, 0.1); if (MKMapRectIsNull(zoomRect)) { zoomRect = pointRect; } else { zoomRect = MKMapRectUnion(zoomRect, pointRect); } } [self.topMapView setVisibleMapRect:zoomRect animated:YES]; self.topMapView.zoomEnabled = YES; } Any ideas why this would not work properly in the master view of a splitviewcontroller?
0
[ 2, 10804, 15022, 4725, 19, 2132, 4725, 12898, 1252, 1129, 1418, 800, 3726, 3726, 31, 57, 13, 22254, 21, 4172, 4865, 56, 13, 5, 1106, 14, 31, 8240, 609, 2806, 6, 11179, 21, 10804, 15022, 4725, 572, 14, 1129, 1418, 16, 21, 2132, 472...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Register/Login user using their Google Account? === I want my users to login with their google accounts. Swiftkey and Catch notes do it with opening a webview in their apps. I don't want to do it. I want to use AccountManager. Tasks Free from Team Tasks use it and it loads your google tasks easily. The official Google Reader app also use it and loads your Google Reader feeds. But I dont want to get any data of user from Google except their Name, email etc.. I only want to register the user and login them back easily. How do I register them with oauth tokens etc? All the examples I have found either uses webview or only load data from Google (not register).
0
[ 2, 2243, 118, 5567, 108, 4155, 568, 66, 8144, 2176, 60, 800, 3726, 3726, 31, 259, 51, 3878, 20, 6738, 108, 29, 66, 8144, 5310, 9, 8060, 4237, 17, 2949, 2434, 107, 32, 29, 1214, 21, 2741, 4725, 19, 66, 4865, 18, 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...
SQL Stairstep Query Help Needed === I need some help producing a query that will match the desired stair-step output. The rows summarize data by one date range (account submission date month), and the columns summarize it by another date range (payment date month) Table 1: **Accounts** tracks accounts placed for collections. CREATE TABLE [dbo].[Accounts]( [AccountID] [nchar](10) NOT NULL, [SubmissionDate] [date] NOT NULL, [Amount] [money] NOT NULL, CONSTRAINT [PK_Accounts] PRIMARY KEY CLUSTERED (AccountID ASC)) INSERT INTO [dbo].[Accounts] VALUES ('1000', '2012-01-01', 1999.00) INSERT INTO [dbo].[Accounts] VALUES ('1001', '2012-01-02', 100.00) INSERT INTO [dbo].[Accounts] VALUES ('1002', '2012-02-05', 350.00) INSERT INTO [dbo].[Accounts] VALUES ('1003', '2012-03-01', 625.00) INSERT INTO [dbo].[Accounts] VALUES ('1004', '2012-03-10', 50.00) INSERT INTO [dbo].[Accounts] VALUES ('1005', '2012-03-10', 10.00) Table 2: **Trans** tracks payments made CREATE TABLE [dbo].[Trans]( [TranID] [int] IDENTITY(1,1) NOT NULL, [AccountID] [nchar](10) NOT NULL, [TranDate] [date] NOT NULL, [TranAmount] [money] NOT NULL, CONSTRAINT [PK_Trans] PRIMARY KEY CLUSTERED (TranID ASC)) INSERT INTO [dbo].[Trans] VALUES (1000, '2012-01-15', 300.00) INSERT INTO [dbo].[Trans] VALUES (1000, '2012-02-15', 300.00) INSERT INTO [dbo].[Trans] VALUES (1000, '2012-03-15', 300.00) INSERT INTO [dbo].[Trans] VALUES (1002, '2012-02-20', 325.00) INSERT INTO [dbo].[Trans] VALUES (1002, '2012-04-20', 25.00) INSERT INTO [dbo].[Trans] VALUES (1003, '2012-03-24', 625.00) INSERT INTO [dbo].[Trans] VALUES (1004, '2012-03-28', 31.00) INSERT INTO [dbo].[Trans] VALUES (1004, '2012-04-12', 5.00) INSERT INTO [dbo].[Trans] VALUES (1005, '2012-04-08', 7.00) INSERT INTO [dbo].[Trans] VALUES (1005, '2012-04-28', 3.00) Here's what the desired output should look like *Total Payments in Each Month* SubmissionYearMonth TotalAmount | 2012-01 2012-02 2012-03 2012-04 -------------------------------------------------------------------- 2012-01 2099.00 | 300.00 300.00 300.00 0.00 2012-02 350.00 | 325.00 0.00 25.00 2012-03 685.00 | 656.00 15.00 The first two columns sum Account.Amount grouping by month. The last 4 columns sum the Tran.TranAmount, by month, for Accounts placed in the given month of the current row. The query I've been working with feel close. I just don't have the lag correct. Here's the query I'm working with thus far: Select SubmissionYearMonth, TotalAmount, pt.[0] AS MonthOld0, pt.[1] AS MonthOld1, pt.[2] AS MonthOld2, pt.[3] AS MonthOld3, pt.[4] AS MonthOld4, pt.[5] AS MonthOld5, pt.[6] AS MonthOld6, pt.[7] AS MonthOld7, pt.[8] AS MonthOld8, pt.[9] AS MonthOld9, pt.[10] AS MonthOld10, pt.[11] AS MonthOld11, pt.[12] AS MonthOld12, pt.[13] AS MonthOld13 From ( SELECT Convert(Char(4),Year(SubmissionDate)) + '-' + Right('00' + Convert(VarChar(2), DatePart(Month, SubmissionDate)),2) AS SubmissionYearMonth, SUM(Amount) AS TotalAmount FROM Accounts GROUP BY Convert(Char(4),Year(SubmissionDate)) + '-' + Right('00' + Convert(VarChar(2), DatePart(Month, SubmissionDate)),2) ) AS AccountSummary OUTER APPLY ( SELECT * FROM ( SELECT CASE WHEN DATEDIFF(Month, SubmissionDate, TranDate) < 13 THEN DATEDIFF(Month, SubmissionDate, TranDate) ELSE 13 END AS PaymentMonthAge, TranAmount FROM Trans INNER JOIN Accounts ON Trans.AccountID = Accounts.AccountID Where Convert(Char(4),Year(TranDate)) + '-' + Right('00' + Convert(VarChar(2), DatePart(Month, TranDate)),2) = AccountSummary.SubmissionYearMonth ) as TransTemp PIVOT (SUM(TranAmount) FOR PaymentMonthAge IN ([0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13])) as TransPivot ) as pt It's producing the following output: SubmissionYearMonth TotalAmount MonthOld0 MonthOld1 MonthOld2 MonthOld3 ... 2012-01 2099.00 300.00 NULL NULL NULL ... 2012-02 350.00 325.00 300.00 NULL NULL ... 2012-03 685.00 656.00 NULL 300.00 NULL ... As for the column date headers. I'm not sure what the best option is here. I could add an additional set of columns and create a calculated value that I could use in the resulting report. Thanks for any assistance.
0
[ 2, 4444, 255, 3676, 38, 3492, 25597, 448, 851, 800, 3726, 3726, 31, 376, 109, 448, 4081, 21, 25597, 30, 129, 730, 14, 9264, 354, 2642, 8, 8375, 5196, 9, 14, 11295, 18074, 139, 2952, 1054, 34, 53, 1231, 978, 13, 5, 29148, 10923, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Wordpress Marketpress forces all links to be https after visiting secure area === I am using Marketpress with Wordpress on my site. Marketpress only protects necessary pages via SSL. If I am on a page that is protected, that is `https://`, and try to access a regular link (ie: `Home` or `About Us` it will try to force https in the URL thus giving me an untrusted error. How can I get rid of this functionality as I don't want my whole site protected ever, and especially after a user has visited a secured area. Visit [www.virginiatkd.com][1], go to Student page, click yellow box, add a product, continue to shopping cart and then try to visit a normal link. NOTE: the certificate was issued for `www.virginiatkd.com` not `virginatkd.com` [1]: http://www.virginiatkd.com
0
[ 2, 833, 5890, 1135, 5890, 879, 65, 6271, 20, 44, 7775, 18, 75, 4803, 4315, 217, 800, 3726, 3726, 31, 589, 568, 1135, 5890, 29, 833, 5890, 27, 51, 689, 9, 1135, 5890, 104, 2196, 18, 2378, 4434, 1197, 13, 18, 18, 255, 9, 100, 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...