unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Cassandra ruby fail to update counter === I've installed gem cassandra that is supposed to support counter from cassandra 0.8 however when I try to use it client.add(:testcounter , "1" , 10 , 'counter1') I get CassandraThrift::InvalidRequestException: CassandraThrift::InvalidRequestException from /home/richard/.rvm/gems/ruby-1.9.3-p194/gems/cassandra-0.12.1/vendor/0.8/gen-rb/cassandra.rb:201:in `recv_add' from /home/richard/.rvm/gems/ruby-1.9.3-p194/gems/cassandra-0.12.1/vendor/0.8/gen-rb/cassandra.rb:192:in `add' from /home/richard/.rvm/gems/ruby-1.9.3-p194/gems/thrift_client-0.7.2/lib/thrift_client/abstract_thrift_client.rb:150:in `handled_proxy' from /home/richard/.rvm/gems/ruby-1.9.3-p194/gems/thrift_client-0.7.2/lib/thrift_client/abstract_thrift_client.rb:60:in `add' from /home/richard/.rvm/gems/ruby-1.9.3-p194/gems/cassandra-0.12.1/lib/cassandra/0.8/protocol.rb:20:in `_add' from /home/richard/.rvm/gems/ruby-1.9.3-p194/gems/cassandra-0.12.1/lib/cassandra/0.8/cassandra.rb:8:in `add' from (irb):3 from /home/richard/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>' I think there is a sort of version problem regarding thrift version but not sure I've compiled the version 0.7.2 of the thrift_client and installed this gem version. Cassandra is 1.1 version Any help will save me (as usual!!) Thanks
0
[ 2, 17825, 10811, 7476, 20, 11100, 2105, 800, 3726, 3726, 31, 22, 195, 4066, 8551, 17825, 30, 25, 2293, 20, 555, 2105, 37, 17825, 713, 9, 457, 207, 76, 31, 1131, 20, 275, 32, 6819, 9, 14854, 5, 45, 10543, 24416, 13, 15, 13, 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...
Java difference in size when serializing to disk and sending across network === I am trying to measure the amount of bandwidth used by my program to send Java objects across the network. I thought I could simply serialise the objects to disk and use the file size as an indication, but this seems to not be the case. What I did was serialise the objects to a file while capturing the network usage with tcpdump: sudo tcpdump -l -i lo port 54544 | tee test_112_512 Then to determine the total traffic used I used the following command: cat test_112_512 | grep '54544 >' | awk '{N = N + $NF + 20} END {print N}' The 20 bytes is to account for the TCP headers (~250 packets) which tcpdump does not account for when reporting the length. The grep part is to ignore any traffic coming back since I am not interested in that. Using this method I find that the total network traffic is up to 10% less than the file size on disk. And since the file on disk has no TCP headers this is an unexpected result. Am I doing something wrong?
0
[ 2, 8247, 2841, 19, 1072, 76, 5956, 3335, 20, 8582, 17, 4907, 464, 982, 800, 3726, 3726, 31, 589, 749, 20, 4058, 14, 2006, 16, 23392, 147, 34, 51, 625, 20, 2660, 8247, 3916, 464, 14, 982, 9, 31, 289, 31, 110, 1659, 5956, 2628, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
IntelliJ and M2 repo === I have configured Maven in IntelliJ, and the paths are correct to the M2 repo. How do I tell IntelliJ to look at that repo when it needs a dependency in my project?
0
[ 2, 19, 4213, 9999, 17, 307, 135, 302, 1638, 800, 3726, 3726, 31, 57, 28895, 1216, 3124, 19, 19, 4213, 9999, 15, 17, 14, 12074, 50, 4456, 20, 14, 307, 135, 302, 1638, 9, 184, 107, 31, 494, 19, 4213, 9999, 20, 361, 35, 30, 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, 0, 0, 0, 0, 0, 0, 0...
"Exception handling" in shell scripts === I know that you can use the shortcutting boolean operators in shell scripts to do some sort of exception handling like so: my_first_command && my_second_command && my_third_command But this quickly becomes unreadable and unmaintainable as the number of commands you want to chain grows. If I'm writing a script (or a shell function), is there a good way to have execution of the script or function halt on the first nonzero return code, without writing on one big line? (I use `zsh`, so if there are answers that only work in `zsh` that's fine by me.)
0
[ 2, 13, 7, 10066, 872, 7988, 7, 19, 3593, 17505, 800, 3726, 3726, 31, 143, 30, 42, 92, 275, 14, 502, 26156, 9827, 413, 210, 9475, 19, 3593, 17505, 20, 107, 109, 2058, 16, 5391, 7988, 101, 86, 45, 51, 1, 3552, 1, 16239, 279, 156...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
XMLReader Skips Every Alternate Node === I have this very simple peace of code and a simple XML file . I am reading each node and writing it to another file , And really strage that xml reader skips every alternate record node . It writes 1 and 3 rd node from following file ! Any help appreciated . Dim reader As XmlTextReader = New XmlTextReader("1.xml") Dim writer As XmlTextWriter = New XmlTextWriter("2.xml", Nothing) reader.WhitespaceHandling = WhitespaceHandling.None Do While (reader.Read()) If (reader.NodeType = XmlNodeType.Element And (reader.LocalName = "record" Or reader.LocalName = "record1")) Then writer.WriteNode(reader, True) writer.Flush() End If Loop <?xml version="1.0" encoding="UTF-8"?> <records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="world-check.xsd"> <record> <foo> <bar>wtf</bar> <bar>wtf2</bar> </foo> </record> <record> <foo> <bar>wtf3</bar> <bar>wtf4</bar> </foo> </record> <record> <foo> <bar>wtf4</bar> <bar>wtf5</bar> </foo> </record> </records>
0
[ 2, 23504, 10647, 106, 12532, 18, 352, 4912, 15421, 800, 3726, 3726, 31, 57, 48, 253, 1935, 1728, 16, 1797, 17, 21, 1935, 23504, 3893, 13, 9, 31, 589, 1876, 206, 15421, 17, 1174, 32, 20, 226, 3893, 13, 15, 17, 510, 5428, 834, 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...
State of SVG Performance on iOS and other Tablets? === Having decided to go with D3.js and SVG for visualizations it now looks like SVG will work fine in a desktop browser or native shell but I'm really perplexed by the drop in performance speed on the iOS mobile platform. According to the following tests it now looks like SVG performance is getting better and not that far behind Canvas speeds, this is the good news: * http://bl.ocks.org/2647924 * http://bl.ocks.org/2647922 The bad news is that if you run these tests in the Safari browser on the new iPad the speeds drop a lot for both SVG and Canvas. The terrible news is that if you run these tests in the new Chrome browser for the iPad the speeds drop much more. I've read that Google is forced to use the UIWebview that is not accelerated by Apple's Nitro JavaScript engine. I've also read that Apple is pushing HTML5 but the demos only run in their own Safari browser. What is the problem here anyways? The best target for my app is mobile yet even with great API's like D3.js and HTML5 standards like SVG performance is being pinched, is this just because Apple wants to hold up progress for their own agenda? Thats how it looks to me anyways. I'm not sure what these tests look like on Android? It would be great to know. If the tests would be positive maybe I will get rid of the iPad and just go with Android already. The bottom line is that I'm just not sure if it is feasible to make my app using HTML5 technology due to these speed issues? I also have not interest in learning Objective-C as the future is going to HTML5. I believe in the web and its standards but it looks like they are being blocked. I'm very interested in knowing solutions to this dilemma.
0
[ 2, 146, 16, 13, 18, 22955, 956, 27, 13, 7760, 17, 89, 20175, 60, 800, 3726, 3726, 452, 868, 20, 162, 29, 13, 43, 240, 9, 728, 18, 17, 13, 18, 22955, 26, 28873, 18, 32, 130, 1879, 101, 13, 18, 22955, 129, 170, 1123, 19, 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...
Multiple Collada Loading Three.js === Im working on a CAD system based on Kinetic.js and Three.js, basically it renders every node (which is associated with a collada) from a kinetic.js layer into a scene in Three.js. The colladas are loading fine but I'm having trouble with the render order, basically it renders some of the collada in place of other colladas. This is the collada loader function (very very messy, I know). for(nn in layerobj.children){ loader = 'loader'; window[loader + nn] = new THREE.ColladaLoader(); collada = new Object(); pn = 0; window[loader + nn].load( '/models/'+layerobj.children[nn].sku+'/m/'+layerobj.children[nn].sku+'.dae', function(collada) { window['dae' + pn] = collada.scene; window['dae' +pn].scale.y = window['dae' + pn].scale.z = window['dae' + pn].scale.x = layerobj.children[pn].scale*0.1; window['dae' + pn].rotation.x = -Math.PI/2; pos_dae = layerobj.children[pn].getPosition(); window['dae' + pn].position.x = pos_dae.x + 10; window['dae' + pn].position.z = pos_dae.y + 10; window['dae' + pn].rotation.z = -(layerobj.children[pn].getRotation()); window['dae' + pn].recieveShadow = true; window['dae' + pn].updateMatrix(); scene.add(window['dae' + pn]); renderer.render(scene, camera3d); pn = pn + 1; }) } Im completly lost on how to fix it. Any help would be aprecciated You can see it happen in here (messy proyect) http://dev.chorrillana.com/index.php?i=proyecto&n=10
0
[ 2, 1886, 9470, 4405, 12797, 132, 9, 728, 18, 800, 3726, 3726, 797, 638, 27, 21, 8762, 329, 432, 27, 13, 16905, 9, 728, 18, 17, 132, 9, 728, 18, 15, 11374, 32, 16535, 18, 352, 15421, 13, 5, 2140, 25, 1598, 29, 21, 9470, 4405, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Unioning in parallel... will SQL Server do it? === If I want to union data from multiple tables located on different drives, will SQL pull the data in parallel? Are there any related setting or hints I should know about?
0
[ 2, 667, 68, 19, 3821, 9, 9, 9, 129, 4444, 255, 8128, 107, 32, 60, 800, 3726, 3726, 100, 31, 259, 20, 667, 1054, 37, 1886, 7484, 335, 27, 421, 10396, 15, 129, 4444, 255, 2201, 14, 1054, 19, 3821, 60, 50, 80, 186, 1597, 2697, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to stop appending the id of assembly build to context root in maven-assembly-plugin? === I have a maven build that uses the [maven-assembly-plugin][1] to create a war for deployment. Using the maven-assembly-plugin adds the [assembly ID][2] to the context root of my war though, which I don't want. I've tried: <appendAssemblyId>false</appendAssemblyId> in the `<configuration>` block of the plugin, but that only excludes the id from being appended to the final name (the output file), it doesn't affect the context root. Is there a way to stop the maven-assembly-plugin from appending the ID to the war's context root parameters? [1]: http://maven.apache.org/plugins/maven-assembly-plugin/ [2]: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html
0
[ 2, 184, 20, 747, 4865, 7601, 14, 4924, 16, 1475, 1895, 20, 4141, 5900, 19, 1216, 3124, 8, 29432, 8, 18527, 5831, 60, 800, 3726, 3726, 31, 57, 21, 1216, 3124, 1895, 30, 2027, 14, 636, 540, 3124, 8, 29432, 8, 18527, 5831, 500, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Text iteration, Assembly versus C++ === I am making a program in which is is frequently reading chunks of text received from the web looking for specific characters and parsing the data accordingly. I am becoming fairly skilled with C++, and have made it work well, however, is Assembly going to be faster than a for(size_t len = 0;len != tstring.length();len++) { if(tstring[len] == ',') stuff(); } Would an inline-assembly routine using cmp and jz/jnz be faster? I don't want to waste my time working with asm for the fact being able to say I used it, but for true speed purposes. Thank you,
0
[ 2, 1854, 23534, 15, 1475, 5706, 272, 20512, 800, 3726, 3726, 31, 589, 544, 21, 625, 19, 56, 25, 25, 3086, 1876, 15009, 18, 16, 1854, 420, 37, 14, 2741, 699, 26, 1903, 1766, 17, 2017, 18, 68, 14, 1054, 12932, 9, 31, 589, 1535, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 onKeyDown not catching Dpad center and enter key presses === Doing a simple override in my base activity of onKeyDown, I'm able to capture all key presses except those of the enter and dpad center buttons (as determined via breakpoint). I've no clue as to why - can anyone shed some light on the situation?
0
[ 2, 13005, 27, 4237, 2968, 52, 9436, 13, 43, 8240, 459, 17, 2830, 1246, 16527, 800, 3726, 3726, 845, 21, 1935, 84, 11891, 19, 51, 1000, 2358, 16, 27, 4237, 2968, 15, 31, 22, 79, 777, 20, 3683, 65, 1246, 16527, 1613, 273, 16, 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...
How to add button to Visual studio that kill process === I have to kill frequently few processes(services) on my developer machine to release memory used by it. And I cannot turn them off. At this moment I'm doing that manually in ProcessExplorer, but I think that there should be more automatic way. I think that the best way is to add tool button to Visual Studio (I've added already such button that recycle IIS). How to add tool button that will kill few processes by name (for example owstimer.exe and w3wp.exe). Or maybe you know an addin that could help me?
0
[ 2, 184, 20, 3547, 5167, 20, 3458, 1120, 30, 1177, 953, 800, 3726, 3726, 31, 57, 20, 1177, 3086, 310, 5102, 5, 11449, 18, 6, 27, 51, 10058, 1940, 20, 830, 1912, 147, 34, 32, 9, 17, 31, 1967, 805, 105, 168, 9, 35, 48, 688, 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...
Corruption When Taking Sybase DB Dump === Is it possible to have a corruption when taking a db dump from a sybase server when users are using the db at the same time? Suppose i issued dump database MyDB to "compress::MyDB.dmp" The db size is large, therefore the dump may take several minutes to complete. During the dump a user issued: insert data into table X insert data into table Y So table X may already be dumped when new data is inserted in tables X and Y. Therefore the dump may contain the previous table X and the new table Y which is the corruption. is this a possible scenario?
0
[ 2, 7858, 76, 741, 10315, 8436, 13, 9007, 11424, 800, 3726, 3726, 25, 32, 938, 20, 57, 21, 7858, 76, 741, 21, 13, 9007, 11424, 37, 21, 10315, 8436, 8128, 76, 3878, 50, 568, 14, 13, 9007, 35, 14, 205, 85, 60, 5787, 31, 2212, 114...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 should I put the public key in a standalone application === I wrote an C# WPF application that signs a license xml file using the standard .Net SignedXml class. I am able to extract the public and private key as xml strings. I can safely tuck away my private key locally for the signing application, but what about the public key needed in the remote sign check application (library)? Options considered: - KeyContainer: no good, because signing and checking happens in 2 separate environments - Hardcoded: hardcode the public key as xml string in my checking library. I know the public key is not secret, but how can I prevent hackers from replacing the key with their own? I can sign the library, but then they could tamper with the application using the library....
0
[ 2, 113, 378, 31, 442, 14, 317, 1246, 19, 21, 26986, 3010, 800, 3726, 3726, 31, 738, 40, 272, 5910, 619, 7721, 3010, 30, 4832, 21, 3962, 23504, 3893, 568, 14, 1236, 13, 9, 2328, 908, 396, 8184, 718, 9, 31, 589, 777, 20, 10962, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 one row from multiple row in sql depands on condition === I have a table in sql 2008 named tblEmployeeAttendance like ![enter image description here][1] Here some dummy data for a employee's one days attendance like ![enter image description here][2] Here AI refers AttendanceIn,AO refers AttendanceOut,BO refers BreakIn and BI refers BreakOut.There can multiple row in a day for a employee.First row should be AI,last row should be AO and others rows will be BreakIn,BreakOut Sequentially(that means BreakIn-BreakOut-BreakIn.....). My expected output would be like that ![enter image description here][3] I need a sql query that will be return one row per date and return data will must be contain AttendanceIn and AttendanceOut Time depands on strRemark(AI & AO).Please help me. [1]: http://i.stack.imgur.com/cw9SU.jpg [2]: http://i.stack.imgur.com/P6puo.jpg [3]: http://i.stack.imgur.com/SfrKP.jpg
0
[ 2, 5407, 53, 3131, 37, 1886, 3131, 19, 4444, 255, 13, 17309, 290, 18, 27, 2874, 800, 3726, 3726, 31, 57, 21, 859, 19, 4444, 255, 570, 377, 13, 38, 2854, 2554, 10892, 2851, 721, 1316, 11855, 101, 13, 187, 2558, 13679, 1961, 5318, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
DCPs - missing component === Don't ask me how but I'm in a situation where I have DCPs published that have component ids that no longer exists in Tridion! I know the GUI will stop you deleting a component if its published but somehow (perhaps unpublishing failed but the CM still deleted the component???), they've been removed from the CM and now I've a load of DCPs in broker I can't get rid off! Anyone ever experienced this? Anyway to rectify other than manually updating db? This is Tridion 2011 setup, single deployer, single broker db.
0
[ 2, 4752, 1919, 13, 8, 2863, 5912, 800, 3726, 3726, 221, 22, 38, 1349, 55, 184, 47, 31, 22, 79, 19, 21, 1858, 113, 31, 57, 4752, 1919, 467, 30, 57, 5912, 13, 9178, 30, 90, 1045, 5636, 19, 2286, 43, 872, 187, 31, 143, 14, 9457...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Source of phpinfo fields === Is there a way to know where is set a given PHP config property? When I run `phpinfo()` I get a list of properties with values, example: <table border="1"> <tr> <td width="200">max_input_time</td> <td width="100">60</td> <td>120</td> </tr> </table> Here I know that the actual value of **max_input_time** is 120. Is there a way to know where this values was set? global php.ini? local php.ini? hardcoded?
0
[ 2, 1267, 16, 4145, 3489, 4120, 2861, 800, 3726, 3726, 25, 80, 21, 161, 20, 143, 113, 25, 309, 21, 504, 13, 26120, 13, 14093, 2816, 1354, 60, 76, 31, 485, 13, 1, 26120, 108, 4120, 5, 6, 1, 31, 164, 21, 968, 16, 3704, 29, 4070...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Stop YouTube video from playing when div is closed === How do I stop the YouTube video from playing when the div is closed? Demo: [http://defroster.99k.org/layers.php][1] THANKS [1]: http://defroster.99k.org/layers.php
0
[ 2, 747, 7330, 763, 37, 791, 76, 13, 12916, 25, 827, 800, 3726, 3726, 184, 107, 31, 747, 14, 7330, 763, 37, 791, 76, 14, 13, 12916, 25, 827, 60, 8376, 45, 636, 21127, 6903, 546, 28963, 106, 9, 3483, 197, 9, 5583, 118, 15187, 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...
Which Patterns, best practise in big native build app === My point being, I now have _alot_ of $(document).on and _alot_ of eventlisteners. Doing different things. for each .jsp page, due to phonegap, jquerymobile, and other ajax stuff. Atm. I split up my project like each .jsp has its own .js file which has a good amount of these listeners, is this the standard pattern, or is there some golden rule that i have overlooked. Or should I group all my eventhandlers into 1 js file which I load, and then load the methods attached to each of them as we progress through the .jsp pages. Or what is the standard in this field?
0
[ 2, 56, 6282, 15, 246, 27954, 19, 580, 1275, 1895, 4865, 800, 3726, 3726, 51, 454, 142, 15, 31, 130, 57, 13, 1, 9053, 38, 1, 16, 5579, 5, 28132, 6, 9, 218, 17, 13, 1, 9053, 38, 1, 16, 807, 13891, 445, 9, 845, 421, 564, 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...
Custom Panel in C# === I am using C# and winform application .net Version 3.5 and Vs 2008<br> How Would i Can create A custom Panel with the rounded edges ?<br> How Can we use that Control in Different Project ?<br> Plz Help Me I Am new in this Field..<br> Thks in advance.
0
[ 2, 5816, 4113, 19, 272, 5910, 800, 3726, 3726, 31, 589, 568, 272, 5910, 17, 628, 4190, 3010, 13, 9, 2328, 615, 203, 9, 264, 17, 4611, 570, 1, 5145, 1, 184, 83, 31, 92, 1600, 21, 5816, 4113, 29, 14, 8472, 7840, 13, 60, 1, 514...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 dynamically update a specific overlayitem === I am developing an location based android app which deals with lot of overlay items. **Background:** There are quite a few entities that I want to display over a map. The co-ordinates of the entities change in real time as their location change. Corresponding to the updated location, the entities shall be updated on the map. The entities can grow to a large number. **The Implementation** I have two overlays. One for MyLocationOverlay to display the user location and the other, an ItemizedOverlay subclass with all entities that I need to display on map. **The Problem** Whenever the location of an entity is changed, the corresponding overlayitem needs to be updated. The problem is that I'm not sure which is the best way to accomplish this. I have these choices 1. As I receive a location of a particular entity, I remove all the overlays from the map and re-add the overlays. One of the overlayitems is now created with updated location. List<Overlay> overlays = map.getOverlays(); overlays.removeAll(overlays); overlays.add(new MyOverlay(marker,this)); 2. I create an Overlay for each entity. Meaning I will create 500 overlays, each containing just one overlay item. I create a sub class of Overlay class and add my own properties to distinctly identify the entity and create one for each. When I reach the location update of a particular entity, I iterate and get the specific overlay item, remove it and add a new one with updated location. I don't know which is the best one to use performance wise. I feel removing all and re-adding all overlays for every single location update (which can be quite often) of every single entity becomes quite an overhead when the number of entities become more than 500 or 1000. At the same time, iterating through the same number of entities can be equal overhead too. Any advice on which one to choose from or a better way to implement this would be appreciated. /andy
0
[ 2, 184, 20, 7782, 1326, 11100, 21, 1903, 84, 4414, 2119, 79, 800, 3726, 3726, 31, 589, 3561, 40, 1474, 432, 13005, 4865, 56, 10342, 29, 865, 16, 84, 4414, 3755, 9, 13, 1409, 1958, 8810, 45, 1409, 80, 50, 1450, 21, 310, 12549, 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...
Restrict inputtext to Y or N in primefaces === I would like to restrict the input in a inputText to Y or N. Following is what I thought of. Is this correct way or any better way is possible ? <p:inputText value="#{myBean.field}" id="myID" title="Enter Y or N" onkeypress ="if(!(event.keyCode == 89 || event.keyCode == 78)) event.keyCode=null;" /> <p:tooltip for="myID" showEvent="focus" hideEvent="blur" /> validateRegex can be used but I want to restrict the input as the user input the value and not on submit.
0
[ 2, 15436, 6367, 11969, 20, 13, 93, 54, 13, 103, 19, 1621, 6413, 18, 800, 3726, 3726, 31, 83, 101, 20, 15436, 14, 6367, 19, 21, 6367, 11969, 20, 13, 93, 54, 13, 103, 9, 249, 25, 98, 31, 289, 16, 9, 25, 48, 4456, 161, 54, 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...
How to center an icon in a extjs button? === I have a simple button, but I can't make the icon to be centered on it. { xtype: 'button', width: 150, height: 150, cls: 'startbutton' } css: .startbutton { background-image: url(Camera.png) !important; } This image is 72x72 pixels.
0
[ 2, 184, 20, 459, 40, 9801, 19, 21, 1396, 38, 728, 18, 5167, 60, 800, 3726, 3726, 31, 57, 21, 1935, 5167, 15, 47, 31, 92, 22, 38, 233, 14, 9801, 20, 44, 10583, 27, 32, 9, 13, 1, 993, 4474, 45, 13, 22, 811, 444, 22, 15, 94...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Reloading array from appDelegate === in my app delegate: I store my array: self.images = [NSMutableArray array]; for(int i = 0; i <= 30; i++) { ….. } then in my `viewController` I load them in `viewDidLoad` for my `carousel`: [carousel reloadData]; self.images = ((RootViewAppDelegate *)[[UIApplication sharedApplication] delegate]).images; I use this process so that when I delete items, it will still be retained, but what I need is when it will EXIT then RETURN to the View it should be retained anymore. In my case it still is retained, how to reload my array in my case? Thanks
0
[ 2, 27339, 68, 7718, 37, 4865, 24249, 3322, 800, 3726, 3726, 19, 51, 4865, 11300, 45, 31, 1718, 51, 7718, 45, 1119, 9, 22039, 18, 800, 636, 2172, 7903, 579, 8576, 93, 7718, 12660, 26, 5, 6391, 31, 800, 713, 73, 31, 13, 1, 3726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 test wash_out controller with Rspec === I have implemented a Rails controller with the [wash_out](https://github.com/roundlake/wash_out) gem. My controller look like this: class TestController < ApplicationController include WashOut::SOAP soap_action "int_to_string", :args => :integer, :return => :string def int_to_string render :soap => params[:value].to_s end end routes.rb: MyApp::Application.routes.draw do wash_out :test end I am not sure how I can test this controller with Rspec. Any ideas?
0
[ 2, 184, 20, 1289, 9983, 1, 1320, 9919, 29, 13, 1224, 12610, 800, 3726, 3726, 31, 57, 6807, 21, 2240, 18, 9919, 29, 14, 636, 10903, 1, 1320, 500, 5, 21127, 18, 6903, 10404, 20926, 9, 960, 118, 5000, 11082, 118, 10903, 1, 1320, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
htaccess rewrite rule to redirect specific page on specific domain to another url === I'm hosting 2 sites on the same server with different domains. I'd like to set up a redirect for a specific page on domain 1 and have it go to another external url. Have searched and searched and experimented but can't get it work. The nearest I've got is RewriteRule ^oldpagename$ http://externalsite/page [R=301,L] but the problem with this is that it catches that url on the other domain as well. How can I restrict it to a specific domain? thanks
0
[ 2, 13, 9020, 20604, 27891, 1828, 20, 302, 14706, 1903, 2478, 27, 1903, 4603, 20, 226, 287, 6362, 800, 3726, 3726, 31, 22, 79, 10637, 172, 3259, 27, 14, 205, 8128, 29, 421, 15544, 9, 31, 22, 43, 101, 20, 309, 71, 21, 302, 14706, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
calculate time difference like facebook messaging system === I need to find time difference like in facebook messaging time of post in php . like--- 2 weeks ago, 2 hr 30 mins ago, one second ago like that my time format is "Y-m-d H:i:s" Can Anyone help me with it
0
[ 2, 18469, 85, 2841, 101, 9090, 26437, 329, 800, 3726, 3726, 31, 376, 20, 477, 85, 2841, 101, 19, 9090, 26437, 85, 16, 678, 19, 13, 26120, 13, 9, 101, 8, 8, 8, 172, 1342, 1464, 15, 172, 13, 3112, 712, 4232, 18, 1464, 15, 53, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
session management in vb.net === I am looking for session management on my windows based application using vb.net. I google it, and found the similar result everywhere, and i got same error. [Session Management in VB.NET][1] [Session Management][2] This is what i was trying to do Session("UserId") = admin Here `admin` is the variable, But, i got error in the above line, says Session is not declare. Need Help Thanks in advance !! [1]: http://www.codeproject.com/Questions/343007/session-in-windows-applcation-using-vb-net [2]: http://www.velocityreviews.com/forums/t61549-session-variables.html
0
[ 2, 3723, 1097, 19, 13, 20468, 9, 2328, 800, 3726, 3726, 31, 589, 699, 26, 3723, 1097, 27, 51, 1936, 432, 3010, 568, 13, 20468, 9, 2328, 9, 31, 8144, 32, 15, 17, 216, 14, 835, 829, 6417, 15, 17, 31, 330, 205, 7019, 9, 636, 72...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Cassandra without jvm === I have a question: can install database Cassandra without java virtual machine? Or you must have virtual machine to run Cassandra? Thanks.
0
[ 2, 17825, 366, 487, 20147, 800, 3726, 3726, 31, 57, 21, 1301, 45, 92, 16146, 6018, 17825, 366, 8247, 6599, 1940, 60, 54, 42, 491, 57, 6599, 1940, 20, 485, 17825, 60, 3669, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why does JSON.parse() throw Uncaught SyntaxError: Unexpected token when trying to parse a simple json object? === The following two lines of javascript code cause the Uncaught SyntaxError: var testObj = JSON.parse('{ testFunc: function () { console.log("whoa there"); }}'); testObj["testFunc"](); I don't understand what is invalid about my json string.
0
[ 2, 483, 630, 487, 528, 9, 3574, 870, 5, 6, 3814, 16061, 12647, 22649, 29992, 45, 9380, 20, 2853, 76, 749, 20, 2017, 870, 21, 1935, 487, 528, 3095, 60, 800, 3726, 3726, 14, 249, 81, 1560, 16, 8247, 8741, 1797, 1679, 14, 16061, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 retry a job where it failed in SQL Server? === I have a job which takes a full backup. Is it possible to retry the job if it fails, and then to begin with the database where it failed? For example you have 6 Databases on server X. When the job begins it completes database 1, 2, and 3, but fails at some point while on database 4. Can I retry the job at database 4 and then continue with 5 and 6?
0
[ 2, 25, 32, 938, 20, 302, 5840, 21, 1205, 113, 32, 1702, 19, 4444, 255, 8128, 60, 800, 3726, 3726, 31, 57, 21, 1205, 56, 1384, 21, 503, 10119, 9, 25, 32, 938, 20, 302, 5840, 14, 1205, 100, 32, 13614, 15, 17, 94, 20, 2348, 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...
Cannot edit bash_profile on Mac OsX === I am using MacOSX Snow Leopard 10.6.8.... I am the only user on this machine and I should be admin. I trying to edit my bash_profile to give it this simple alias: `alias server=' open http://localhost:8000 && python -m SimpleHTTPServer'` however when I use the terminal and type: `vim ~/. bash_profile` and paste in this alias I get message saying I cant save due to permissions. So then I show all hidden files and go to fix the permissions on this file but the file is all grayed out.... I cant change anything. What can I do??
2
[ 2, 1967, 9392, 13158, 1, 14503, 27, 1572, 13, 759, 396, 800, 3726, 3726, 31, 589, 568, 1572, 759, 396, 2224, 15446, 332, 9, 379, 9, 457, 9, 9, 9, 9, 31, 589, 14, 104, 4155, 27, 48, 1940, 17, 31, 378, 44, 21, 43, 2160, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Display Rete Module in Drupal 7 Template === In Drupal 6 if I want to display the RATE module, I can use the code ( <?php print $node->rate_rate['#value'];?> What is the code to display it in Drupal 7 template? Thank you!
0
[ 2, 3042, 302, 591, 12613, 19, 15708, 6720, 453, 22894, 800, 3726, 3726, 19, 15708, 6720, 400, 100, 31, 259, 20, 3042, 14, 1684, 12613, 15, 31, 92, 275, 14, 1797, 13, 5, 13, 1, 60, 26120, 4793, 5579, 251, 546, 8, 1, 5487, 1, 54...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 2 dimension array === I have 3 arrays var city = [ ['Kaunas', 54.896872,23.892426], ['Vilnius', 54.711136,25.280685], ['Klaipeda', 55.720149,21.131401], ['Utena', 55.536403,25.59494], ]; var lake = [ ['Ezeras Bijote', 55.785092,23.062956], ['Ezeras Druksiai', 55.627996,26.565228], ['Ezeras Sartai', 55.804368,25.832863], ['Ezeras Metelys', 54.300299,23.767004], ]; var shop = [ ['Kauno Akropolis', 54.891665,23.917744], ['Panorama', 54.709549,25.257454], ['Europa', 54.687514,25.262886], ['Ozas', 54.638628,25.135685], ]; I want add this 3 arrays to 1 array ut don't know how to do this, will very nice if i can call form alements like this `bigArr[city][1]`, `bigArr[shop][1]`,`bigArr[lake][1]`
0
[ 2, 8247, 8741, 172, 9547, 7718, 800, 3726, 3726, 31, 57, 203, 7718, 18, 4033, 136, 800, 636, 636, 22, 657, 4140, 18, 22, 15, 5896, 9, 3877, 4279, 4009, 15, 2001, 9, 3877, 1996, 2409, 500, 15, 636, 22, 9638, 15659, 22, 15, 5896, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Regualr expression - extract mailto: mail address === example: mailto:info@info.com?subjectsomething or mailto:info@info.com I would like to get only the email address with no subject (if any) This expression is not enought and I can't make it work: mailto:(.*) Thanks
0
[ 2, 7953, 6948, 139, 1803, 13, 8, 10962, 4216, 262, 45, 4216, 3218, 800, 3726, 3726, 823, 45, 4216, 262, 45, 108, 4120, 1, 108, 4120, 9, 960, 60, 28743, 9099, 54, 4216, 262, 45, 108, 4120, 1, 108, 4120, 9, 960, 31, 83, 101, 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...
Install Perl module WWW::Mechanize on Mac === I fail to install perl module with CPAN on MAC. Do you have any idea or link for my reference? Thank you.
0
[ 2, 16146, 416, 255, 12613, 13, 6483, 45, 45, 790, 3606, 2952, 27, 1572, 800, 3726, 3726, 31, 7476, 20, 16146, 416, 255, 12613, 29, 272, 3206, 27, 1572, 9, 107, 42, 57, 186, 882, 54, 3508, 26, 51, 2801, 60, 3531, 42, 9, 3, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
how to limit number of selections in optiontransferselect in struts2 === <s:optiontransferselect name="comp1" list="getCompulsoryList()" label="Select any 2 Compulsory Subjects" leftTitle="All Compulsory Subjects" rightTitle="Selected Compulsory Subjects" multiple="true" doubleName="comp" doubleMultiple="true" doubleList="" doubleSize="2" /> I am trying to restrict number of selections to 2 only. Help me please.
0
[ 2, 184, 20, 4496, 234, 16, 3155, 18, 19, 4255, 7028, 2407, 18, 16964, 19, 18316, 18, 135, 800, 3726, 3726, 13, 1, 18, 45, 2594, 3309, 7028, 2407, 18, 16964, 204, 3726, 7, 11103, 165, 7, 968, 3726, 7, 3060, 11103, 1287, 18, 7159,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 the publishing date of web page === Hi in google when search I can see the publishing date of any url can I do something in adnroid , I have list of urls, I want to get the publishhing date of those URL any idea
0
[ 2, 164, 14, 3107, 1231, 16, 2741, 2478, 800, 3726, 3726, 4148, 19, 8144, 76, 2122, 31, 92, 196, 14, 3107, 1231, 16, 186, 287, 6362, 92, 31, 107, 301, 19, 21, 43, 103, 18524, 13, 15, 31, 57, 968, 16, 13, 911, 7532, 15, 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, 0, 0, 0...
Dynamic ModelChoiceField queryset with an inline model formset === I have two models, roughly along the lines of the following: <!-- language-all: lang-py --> class Portfolio(models.Model): name = models.CharField(... ... class Purchase(models.Model): client = models.ForeignKey(Client) portfolio = models.ForeignKey(Portfolio) amount = models.IntegerField() sale_date = models.DateField(auto_now_add=True) ... class Client(models.Model): available_portfolios = models.ManyToManyField(Portfolio) portfolios = models.ManyToManyField(Portfolio, through=Purchase) ... I want a "portfolio assignment" view, which allows users to view, manage and add a Client's `portfolios` property. This seems like a perfect task for [the `inlineformset_factory` method](https://docs.djangoproject.com/en/1.1/topics/forms/modelforms/#inline-formsets), so I've got (in `forms.py`) PurchaseFormSet = inlineformset_factory(Client, Purchase, can_delete=False) This is fine, except the available portfolios for each `Purchase` should be dictated by the client's `available_portfolios` option (it's a business requirement that clients only have access to a sub-set of `Portfolio` objects). What I would ordinarily do is use a custom form, setting the field's `queryset` property during `__init__()`: class PurchaseForm(forms.ModelForm): class Meta: model = Purchase def __init__(self, available_portfolios, *args, **kwargs): super(PurchaseForm, self).__init__(*args, **kwargs) self.fields['portfolio'].queryset = available_portfolios and then pass it the client's `available_portfolios` when instantiating the form: purchase_form = PurchaseForm(request.POST, client.available_portfolios) Using `inlineformset_factory`, however, I'm obviously not creating the individual forms myself, and can't (it seems) pass them any extra data. The ["Creating forms from models" documentation](https://docs.djangoproject.com/en/1.1/topics/forms/modelforms/#inline-formsets) doesn't explain how to override any of the default behaviour. I imagine I need to specify a custom inline formset to `inlineformset_factory`, but I'm not sure how, or what it would look like. I'm using Django 1.1. I would *really* prefer answers that don't require upgrading to a newer version. *(Apologies if this question is a duplicate; I searched extensively on SO but there seems to be a problem with terminology when talking about Django forms)* Thanks in advance.
0
[ 2, 7782, 1061, 23714, 1109, 25597, 3554, 29, 40, 19, 1143, 1061, 505, 3554, 800, 3726, 3726, 31, 57, 81, 2761, 15, 4457, 303, 14, 1560, 16, 14, 249, 45, 13, 1, 187, 8, 8, 816, 8, 1233, 45, 4544, 8, 6448, 13, 8, 8, 1, 718, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Unity vs Ninject generic parameters === In ninject i can do this: kernel.Bind(typeof(IRepository<>)).To(typeof(Repository<,>)); but in unity container i get this error The supplied type IRepository1 does not have the same number of generic arguments as the target type Repository2. Parameter name: sourceType container.RegisterType(typeof(IRepository<>), typeof(Repository<,>));
1
[ 2, 8385, 4611, 13, 5703, 17759, 12733, 12905, 800, 3726, 3726, 19, 13, 5703, 17759, 31, 92, 107, 48, 45, 17007, 9, 4772, 43, 5, 4474, 1041, 5, 7735, 14882, 14599, 1, 6, 6, 9, 262, 5, 4474, 1041, 5, 99, 14882, 14599, 1, 15, 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 properly generate nested routes for models with ancestry === I've been pounding my head at the wall with this one for a long while now. I have a Category model, which has ancestry enabled so that I have a nice tree structure of categories and sub-categories. Category has_and_belongs_to_many Products Now on my page I would like to have routes to similar to /shop/:category_name/products /shop/:category_name/:sub_category_name/products /shop/:category_name/products/:page /shop/:category_name/:sub_category_name/products/:page I know that I could just do a few match rules, but I was hoping for something less manual. Any ideas?
0
[ 2, 184, 20, 7428, 7920, 5618, 69, 5050, 26, 2761, 29, 12140, 800, 3726, 3726, 31, 22, 195, 74, 10267, 51, 157, 35, 14, 769, 29, 48, 53, 26, 21, 175, 133, 130, 9, 31, 57, 21, 3230, 1061, 15, 56, 63, 12140, 9338, 86, 30, 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...
Receive email in TFS when I have a new task === Is there a way to receive an alert (email) in TFS whenever I have a new task?
0
[ 2, 2588, 8517, 19, 13, 11720, 18, 76, 31, 57, 21, 78, 3005, 800, 3726, 3726, 25, 80, 21, 161, 20, 2588, 40, 7863, 13, 5, 62, 8079, 6, 19, 13, 11720, 18, 6634, 31, 57, 21, 78, 3005, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
block all directorys but one file? === i'm using Apache and i have the following folders in the root folder /images/ /pages/ /storage/ how can i block access to any files in those folders, also blocking access to the directorys above but allow access to only the index.html file that is located in the root folder? how is this done in the config file AND .htaccess file?
0
[ 2, 1921, 65, 16755, 18, 47, 53, 3893, 60, 800, 3726, 3726, 31, 22, 79, 568, 17140, 17, 31, 57, 14, 249, 19294, 18, 19, 14, 5900, 19294, 13, 118, 22039, 18, 118, 13, 118, 6486, 18, 118, 13, 118, 18, 2153, 1303, 118, 184, 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...
how to access javascript querystring in codebehind? === im sending a value from one page in aspx to another page as shown below. window.location="test1.aspx?+id=1" how to access this value in codebehind or global.asax?
0
[ 2, 184, 20, 1381, 8247, 8741, 25597, 11130, 19, 1797, 24878, 60, 800, 3726, 3726, 797, 4907, 21, 1923, 37, 53, 2478, 19, 28, 306, 396, 20, 226, 2478, 28, 1721, 1021, 9, 1463, 9, 19032, 3726, 7, 10543, 165, 9, 472, 306, 396, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Running `mklink` in ProcessStartInfo === I am working on a c# program that needs to be compatible with Windows and Linux (Mono). I am trying to create a symbolic link in both platforms and I am using ProcessStartInfo in order for this to work. I haven't tried this on Linux yet but on Windows I am using the following code ProcessStartInfo process = new ProcessStartInfo(); process.CreateNoWindow = true; process.UseShellExecute = false; process.FileName = "mklink"; process.WindowStyle = ProcessWindowStyle.Hidden; process.Arguments = "/D " + webFolder + "MyFolder" + webFolder + "MyFolder_" + version; Process.Start(process); When I run the above code I get > System.ComponentModel.Win32Exception: The system cannot find the file > specified If I run mklink in command prompt it works fine. I've had a look on Google and it says about doing a [DllImport("kernel32.dll")] but this isn't going to work on Linux. Thanks for any help you can provide.
0
[ 2, 946, 13, 1, 79, 197, 6258, 1, 19, 953, 13680, 108, 4120, 800, 3726, 3726, 31, 589, 638, 27, 21, 272, 5910, 625, 30, 2274, 20, 44, 14961, 29, 1936, 17, 13024, 13, 5, 20027, 6, 9, 31, 589, 749, 20, 1600, 21, 12882, 3508, 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...
Create a link with multiple parameters CHTML::link === I would like to link to a different controller, passing in multiple parameters.
0
[ 2, 1600, 21, 3508, 29, 1886, 12905, 272, 15895, 45, 45, 6258, 800, 3726, 3726, 31, 83, 101, 20, 3508, 20, 21, 421, 9919, 15, 2848, 19, 1886, 12905, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Keep Uploaded Files in Sync Across Multiple Servers - PHP Linux === I have a website right now that is currently utilizing 2 servers, a application server and a database server, however the load on the application server is increasing so we are going to add a second application server. The problem I have is that the website has users upload files to the server. How do I get the uploaded files on both of the servers? I do not want to store images directly in a database as our application is database intensive already. Is there a way to sync the servers across each other or is there something else I can do? Any help would be appreciated. Thanks
0
[ 2, 643, 23782, 6488, 19, 6063, 150, 464, 1886, 17595, 13, 8, 13, 26120, 13024, 800, 3726, 3726, 31, 57, 21, 2271, 193, 130, 30, 25, 871, 19894, 172, 17595, 15, 21, 3010, 8128, 17, 21, 6018, 8128, 15, 207, 14, 6305, 27, 14, 3010,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 run javascript with other target? === I have a facebook app that I authenticate using a general-purpose authentification. Like this: // Fixar oAuth jso_configure({ "facebook": { client_id: "393963983989013", redirect_uri: "http://resihop.herokuapp.com/", authorization: "https://www.facebook.com/dialog/oauth", presenttoken: "qs" } }); // Make sure that you have jso_ensureTokens({ "facebook": [""] }); // This dumps all cached tokens to console, for easyer debugging. //jso_dump(); jso_ensureTokens({ "facebook": [""] }); It's tirggered on document.ready. Because it's a facebook app I can't run the authentification in the iFrame. Facebook denies this using X-Frame-Options. The solution, if you authenticate with a link is to use target="_top". How do i Achieve the same effect in javascript? Maybe I need to edit one of the funcitons (though ideally not, as they are part of a library) in that case please point me in the right dierection.
0
[ 2, 25, 32, 938, 20, 485, 8247, 8741, 29, 89, 2935, 60, 800, 3726, 3726, 31, 57, 21, 9090, 4865, 30, 31, 14351, 1373, 568, 21, 297, 8, 12060, 10343, 2504, 38, 4634, 9, 101, 48, 45, 12894, 6098, 512, 635, 1346, 96, 487, 656, 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...
Check endianness programmatically === ) I know that the most common method to test endianity programmatically is to cast to char* like this: short temp = 0x1234; char* tempChar = (char*)&temp; But can it be done by casting to short* like this: unsigned char test[2] = {1,0}; if ( *(short *)test == 1) //Little-Endian else //Big-Endian Am I right that the "test" buffer will be saved (on x86 platforms) in the memory using Little-Endian convention (from right-to-left: "0" at lower address, "1" at higher) just like in case with the "temp" var? And more generally if I have a string: char tab[] = "abcdef"; How would it be stored in the memory? Will it be reversed like: "fedcba"? Thx. in advance:-) PS. Is there any way to see how exactly the data of a program look like in the system memory?. I would like to see that byte-swap in Little-Endian in "real life".
0
[ 2, 2631, 241, 806, 720, 625, 6732, 1326, 800, 3726, 3726, 13, 6, 31, 143, 30, 14, 127, 757, 2109, 20, 1289, 241, 806, 856, 625, 6732, 1326, 25, 20, 1325, 20, 4892, 2483, 101, 48, 45, 502, 13, 9577, 800, 713, 396, 918, 3965, 73...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento pagamento digital error === I'm trying to install Pagamento Digital module in my Magento 1.6.2.0 but there are some error log that I can't figure out what to do... I've been searching for 3 days until now and if someone could light my path would be blessed !!! Module URL: http://www.magentocommerce.com/magento-connect/buscape-pagamento-digital-4971.html Error Log: 1. a:5:{i:0;s:87:"Mage registry key "_singleton/pagamentodigital/source_specificcountries" already exists";i:1;s:1647:"#0 /home/wwwmirom/public_html/app/Mage.php(192): Mage::throwException('Mage registry k...') #1 /home/wwwmirom/public_html/app/Mage.php(446): Mage::register('_singleton/paga...', false) #2 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(407): Mage::getSingleton('pagamentodigita...') #3 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(210): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element)) #4 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm() #5 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(102): Mage_Adminhtml_Block_System_Config_Edit->initForm() #6 /home/wwwmirom/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_System_ConfigController->editAction() #7 /home/wwwmirom/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit') #8 /home/wwwmirom/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #9 /home/wwwmirom/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() #10 /home/wwwmirom/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array) #11 /home/wwwmirom/public_html/index.php(80): Mage::run('', 'store') #12 {main}";s:3:"url";s:99:"/~wwwmirom/index.php/admin/system_config/edit/section/payment/key/e94bbab2478ea8f5cf8dc57068597e1b/";s:11:"script_name";s:20:"/~wwwmirom/index.php";s:4:"skin";s:5:"admin";}
0
[ 2, 4723, 17050, 19006, 28570, 1888, 7019, 800, 3726, 3726, 31, 22, 79, 749, 20, 16146, 19006, 28570, 1888, 12613, 19, 51, 4723, 17050, 137, 9, 379, 9, 135, 9, 387, 47, 80, 50, 109, 7019, 6738, 30, 31, 92, 22, 38, 1465, 70, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
why the binary representationof -127>>1 is 11000000? === I know the binary representation of -127 is 10000001 (complement). Can any body tell me why I right shift it by 1 digit, then I get 11000000 ? > (-127)2 = 10000001 > > (-127>>1) = 11000000 ??? Thanks.
0
[ 2, 483, 14, 14171, 5442, 1041, 13, 8, 11595, 1, 165, 25, 24692, 21903, 60, 800, 3726, 3726, 31, 143, 14, 14171, 5442, 16, 13, 8, 11595, 25, 6150, 3993, 165, 13, 5, 960, 5106, 1130, 6, 9, 92, 186, 358, 494, 55, 483, 31, 193, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 scroll on div === I'm trying to set up a simple chat system with `jQuery` / `Ajax`, but I'm having a strange behaviour with the scroll part. When I post something, or when I receive something, the scroll goes up instead of going down as requestes. Here's the code : $('form[name="iview-messages-chat"]').submit(function(e) { e.preventDefault(); var data = {}; data.msg = $('textarea', this).val(); data.time = $('#iview-messages-pane .iview-messages-item:last').attr('data-time'); data.uid = $('input[name="uid"]', this).val(); $.ajax({ type: 'POST', url: 'index.php?page=messages&action=send', data: data, dataType: 'json', }).done(function(data) { $.each(data, function(index,value) { var nm = '<div class="clearfix iview-messages-item" style="height:auto;min-height:60px;width:730px;margin:0;" data-cid="'+value.id+'" data-time="'+value.time+'">'; nm += '<img style="margin-top: 5px;" src="'+value.picture+'" />'; nm += '<div class="iview-messages-item-info" style="width:630px;">'; nm += '<div class="iview-messages-item-info-row" style="width:inherit;">'; nm += '<a href="'+value.profile+'">'+value.first_name+' '+value.last_name+'</a>'; nm += '<span style="float:right;font-size:11px;">'+value.elapsed_time+'</span>'; nm += '</div>'; nm += '<div class="iview-messages-item-info-row">'; nm += '<span>'+value.content+'</span>'; nm += '</div>'; nm += '</div>'; nm += '</div>'; $('#iview-messages-pane').append(nm); }); $('form[name="iview-messages-chat"] textarea').val(''); if (!$.isEmptyObject(data)) { $('#iview-messages-pane').animate({scrollTop: $('#iview-messages-pane').height()}, 800); } }).fail(function() { console.log('error'); }); return false; }); Any tips?
0
[ 2, 487, 8190, 93, 12159, 27, 13, 12916, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 71, 21, 1935, 6615, 329, 29, 13, 1, 728, 8190, 93, 1, 13, 118, 13, 1, 6881, 7522, 1, 15, 47, 31, 22, 79, 452, 21, 2578, 7727, 29, 14, 12159...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
eBay API - how to tell when the listing was ended by the seller? === I see in http://developer.ebay.com/devzone/xml/docs/Reference/eBay/GetItem.html that `Item.SellingStatus .ListingStatus ` I can see the status of the listing, but I can't find any information about how to tell when the item was ended by the seller?
0
[ 2, 13, 62, 7011, 21, 2159, 13, 8, 184, 20, 494, 76, 14, 9554, 23, 1272, 34, 14, 3344, 106, 60, 800, 3726, 3726, 31, 196, 19, 7775, 6903, 26051, 106, 9, 62, 7011, 9, 960, 118, 14438, 11661, 118, 396, 8184, 118, 13799, 18, 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...
Git mergetool vs difftool === I've read the man pages for [mergetool](http://www.kernel.org/pub/software/scm/git/docs/git-mergetool.html) and [difftool](http://www.kernel.org/pub/software/scm/git/docs/git-difftool.html) but I guess I'm still not clear on the general differences between the two. They both call up a merge tool of some sort, right? The point of running a diff is to merge, right? *What's the layman's descriptions for each of these directives?*
0
[ 2, 13, 10404, 12666, 20799, 4611, 20811, 20799, 800, 3726, 3726, 31, 22, 195, 1302, 14, 169, 4434, 26, 636, 1263, 834, 20799, 500, 5, 21127, 6903, 6483, 9, 2429, 7440, 9, 5583, 118, 17848, 118, 12980, 5011, 118, 18, 9095, 118, 10404...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Apply CSS to Anchor Tag of <ul> <il> === Hi i am new to CSS so plz bear with me. I have existing CSS as a:active { outline: none; } a:focus { -moz-outline-style: none; } which works fine i want to restrict the application only to those anchor items which are part of an `<ul><li>` item under a div with class="`tabs_container`" so this is what i did only to fail ! #tabs_container ul li a:active { outline: none; } #tabs_container ul li a:focus { -moz-outline-style: none; } am i doing it wrong ? thanks in advance
0
[ 2, 5645, 272, 18, 18, 20, 6265, 3383, 16, 13, 1, 1287, 1, 13, 1, 947, 1, 800, 3726, 3726, 4148, 31, 589, 78, 20, 272, 18, 18, 86, 12443, 380, 2746, 29, 55, 9, 31, 57, 3149, 272, 18, 18, 28, 21, 45, 7889, 13, 1, 11160, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C comparison of array of pointers === I'm attempting to write a function to compare two arrays of pointers to see if they are the same. I'd like to use the function on any array of pointers, i.e. regardless of what the pointers point to - I'm just interested in equality of the pointers themselves I've written this: /** * Return true if arrays (of type ptr to ptr) are equal */ bool ptr_array_eq(const void **x, const void **y, size_t n) { size_t i; for (i=0; i<n; i++) { if (x[i] != y[i]) { return false; } } return true; } but when i compile i get the following warnings (not errors): test_utility.c: In function ‘testPTR_ARRAY_EQ’: test_utility.c:648:5: warning: passing argument 1 of ‘ptr_array_eq’ from incompatible pointer type [enabled by default] ../src/glamdring2.h:327:6: note: expected ‘const void **’ but argument is of type ‘struct Mode **’ with the compiler complaining that in my unit-test the types I'm using don't match the function prototype But I'm not really interested in the underlying type, only the pointer to it. Should I: - a) just ignore the warnings - b) rewrite the function in a way to make the compiler not issue warnings - c) do some cast of the incoming pointers - d) accept that C doesn't like the idea of not knowing the underlying type and re-write the function for each type of pointer I might encounter
0
[ 2, 272, 6050, 16, 7718, 16, 454, 445, 800, 3726, 3726, 31, 22, 79, 6314, 20, 2757, 21, 1990, 20, 11590, 81, 7718, 18, 16, 454, 445, 20, 196, 100, 59, 50, 14, 205, 9, 31, 22, 43, 101, 20, 275, 14, 1990, 27, 186, 7718, 16, 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...
Visual Studio 2010 doesn't honor _APS_NEXT_RESOURCE_VALUE in Resource.h, causing collisions === I migrated an old project from VC6 to VS2010. In my Resource.h I have // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 1007 #define _APS_NEXT_COMMAND_VALUE 2000 #define _APS_NEXT_CONTROL_VALUE 3011 #define _APS_NEXT_SYMED_VALUE 4000 #endif #endif but VS2010 doesn't take it into account. I need this because I often add resource IDs by hand, and I don't want to have any collisions. But now VS2010 always adds new IDs to values **that are already used for another resource ID**. I don't want any 2 resource IDs to be defined as the same number. Is there any way to force VS2010 to use only a certain range for new resource IDs it creates, so I can use the rest for resource IDs I add manually?
0
[ 2, 3458, 1120, 498, 1437, 22, 38, 1853, 13, 1, 2552, 18, 1, 20021, 1, 99, 12097, 1, 15165, 19, 6577, 9, 252, 15, 3242, 11319, 18, 800, 3726, 3726, 31, 14204, 40, 315, 669, 37, 13, 8990, 379, 20, 4611, 2751, 9, 19, 51, 6577, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
trying to get Qt4 example to run on ubuntu 10.10 with Qt Creator 4 installed === #include "framecapture.h" #include <iostream> #include <QtWidget> int main(int argc, char * argv[]) { if (argc != 3) { std::cout << "Capture a web page and save its internal frames in different images" << std::endl << std::endl; std::cout << " framecapture <url> <outputfile>" << std::endl; std::cout << std::endl; std::cout << "Notes:" << std::endl; std::cout << " 'url' is the URL of the web page to be captured" << std::endl; std::cout << " 'outputfile' is the prefix of the image files to be generated" << std::endl; std::cout << std::endl; std::cout << "Example: " << std::endl; std::cout << " framecapture qt.nokia.com trolltech.png" << std::endl; std::cout << std::endl; std::cout << "Result:" << std::endl; std::cout << " trolltech.png (full page)" << std::endl; std::cout << " trolltech_frame1.png (...) trolltech_frameN.png ('N' number of internal frames)" << std::endl; return 0; } QUrl url = QUrl::fromUserInput(QString::fromLatin1(argv[1])); QString fileName = QString::fromLatin1(argv[2]); QApplication a(argc, argv); FrameCapture capture; QObject::connect(&capture, SIGNAL(finished()), QApplication::instance(), SLOT(quit())); capture.load(url, fileName); return a.exec(); } I get QtWidget file or directory not found. When I use QWidget, it will say > /home/me/qtwebkit-examples-and-demos/examples/webkit/framecapture-build-desktop/../framecapture/main.cpp:68: > error: variable ‘QApplication a’ has initializer but incomplete type > > /home/me/qtwebkit-examples-and-demos/examples/webkit/framecapture-build-desktop/../framecapture/main.cpp:70: > error: incomplete type ‘QApplication’ used in nested name specifier I don't know why none of the examples from **git://gitorious.org/+qt-developers/qt/qtwebkit-examples-and-demos-staging.git** is working. It always seems to complain about the #includes not finding the required components.
0
[ 2, 749, 20, 164, 2593, 38, 300, 823, 20, 485, 27, 287, 12968, 2473, 332, 9, 1036, 29, 2593, 38, 9247, 268, 4066, 800, 3726, 3726, 6926, 22640, 13, 7, 8361, 4666, 6418, 9, 252, 7, 6926, 22640, 13, 1, 1963, 11260, 1, 6926, 22640, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Perl loop not working === i'm working on a simple loop but it's not working. I have 2 files which i compare based on a common id. It sort of works because it outputs the first result and the first result only! so it's not looping through the rest of the files (or last file because the output contains all the lines from the first file). It outputs all the lines from the first file but it only appends the first result from the second file into the outfile. Here is my code to clarify: use strict; use warnings; my $inputfile1 = shift || die "Give input & output!\n"; my $inputfile2 = shift || die "Give input & output!\n"; my $outputfile = shift || die "Give input!\n"; open my $INFILE1, '<', $inputfile1 or die "In use / Not found :$!\n"; open my $INFILE2, '<', $inputfile2 or die "In use / Not found :$!\n"; open my $OUTFILE, '>', $outputfile or die "In use / Not found :$!\n"; while (<$INFILE1>) { s/"//g; my @elements = split /;/, $_; while (<$INFILE2>) { s/"//g; my @loopelements = split /;/, $_; if ($elements[11] eq $loopelements[0]){ $elements[12] = $loopelements[1]; $elements[13] = $loopelements[2]; } } my $output_line = join(";", @elements); print $OUTFILE $output_line; #print "\n" } close $INFILE1; close $INFILE2; close $OUTFILE; exit 0; My first attempt was this piece of code, and it worked partially. Why?: halfway through it crashes. When i check the outputfile it worked to about halfway and stops. No idea why! And on a side note, i think the one below is less efficiënt or is there a better alternative for both? $inputfile1=$ARGV[0]; $inputfile2=$ARGV[1]; $outputfile1=$ARGV[2]; open(INFILE1,$inputfile1) || die "Give input & output :$!\n"; open(INFILE2,$inputfile2) || die "Give input & output :$!\n"; open(OUTFILE_1,">$outputfile1") || die "Give input & output :$!\n"; $i = 0; $j = 0; @infile1=<INFILE1>; @infile2=<INFILE2>; foreach ( @infile1 ) { @elements = split(";",$infile1[$i]); $j=0; foreach ( @infile2 ) { @loopelements = split(";",$infile2[$j]); if ($elements[11] eq $loopelements[0]){ $elements[12] = $loopelements[1]; $elements[13] = $loopelements[2]; $printen = 1; last; } $j = $j+1; } @elements = join(";",@elements); print "$i\r"; if ($printen == 1) { print OUTFILE_1 "@elements"; }; $i = $i+1; } close(INFILE1); close(INFILE2); close(OUTFILE_1); So can someone point out where i'm going wrong in my code at the top?
0
[ 2, 416, 255, 5293, 52, 638, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 1935, 5293, 47, 32, 22, 18, 52, 638, 9, 31, 57, 172, 6488, 56, 31, 11590, 432, 27, 21, 757, 4924, 9, 32, 2058, 16, 693, 185, 32, 5196, 18, 14, 64, 829, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MVC Custom Model Binder using the default binder for certain form values === I have a custom model binder which works is invoked for a particular parameter going into an action method: public override ActionResult MyAction(int someData, [ModelBinder(typeof(MyCustomModelBinder))]List<MyObject> myList ... ) This works well - the binder is called as expected. However, I want to invoke the default model binder for some **addtional** values that are in the Request.Form collection. The form keys are named like this: dataFromView[0].Key dataFromView[0].Value dataFromView[1].Key dataFromView[1].Value The default model binder nicely converts these values into an IDictionary<T, U> if I add an IDictionary as a parameter on the action method. However, I want to manipulate these values at the model binder level (along with the original List object above). Is there a way to get the default model binder to create this dictionary from the form values for my in the `BindModel()` method of my custom model binder? public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) { //Get the default model binder to provide the IDictionary from the form values... } I've tried to using the bindingContext.ValueProvider.GetValue but it always seems to return null when I'm trying to cast to an IDictionary.
0
[ 2, 307, 8990, 5816, 1061, 13, 24200, 568, 14, 12838, 13, 24200, 26, 1200, 505, 4070, 800, 3726, 3726, 31, 57, 21, 5816, 1061, 13, 24200, 56, 693, 25, 26252, 26, 21, 1498, 18906, 228, 77, 40, 1028, 2109, 45, 317, 84, 11891, 1028, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
UIAlertView Click event inside UIAlertView delegate === I am new in iPhone developer, I want to implement 2 alert view one after another, like when user press delete button, 1st alert view will ask `Are you sure want to Delete ?` with two buttons `yes` and `no` Now, if user presses `yes` , then 2nd alert view will come with message `Deleted Successfully !` this alert view contains only `OK` button, now on click of this `OK` button i want to call one method. and if user presses `No` then nothing should happen and alert should dismiss. Here is my code snippet, -(void)DeletebtnCliked:(id)sender{ UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:@"Are you sure want to delete ?" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:@"Yes",@"No",nil]; [alertView show]; [alertView release]; } - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if (buttonIndex == 0) { UIAlertView* alertew = [[UIAlertView alloc] initWithTitle:@"Deleted Successfully !" message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alertew show]; [alertew release]; if (buttonIndex == 0) { [self MethodCall]; } } else if (buttonIndex == 1) { [alertView dismissWithClickedButtonIndex:1 animated:TRUE]; } } after writing this code i am inside Infinite loop. **Any help will be appreciated.**
0
[ 2, 287, 2815, 6767, 4725, 10840, 807, 572, 287, 2815, 6767, 4725, 11300, 800, 3726, 3726, 31, 589, 78, 19, 21024, 10058, 15, 31, 259, 20, 8713, 172, 7863, 1418, 53, 75, 226, 15, 101, 76, 4155, 901, 27448, 5167, 15, 137, 384, 7863,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
the source of the df === I have the whole source of the android. And now,i want to know how the android implement the commands of the system,like,df.Any one can show me the directory of the implemented source of the commands,like df? thx
1
[ 2, 14, 1267, 16, 14, 13, 8736, 800, 3726, 3726, 31, 57, 14, 979, 1267, 16, 14, 13005, 9, 17, 130, 15, 49, 259, 20, 143, 184, 14, 13005, 8713, 14, 14294, 16, 14, 329, 15, 1403, 15, 8736, 9, 6001, 53, 92, 298, 55, 14, 16755, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0...
Teleric grid: retrieve row count with Ajax binding === how can I access grid row count with Ajax binding in Telerik ASP.Net MVC grid? I need to display total in a footer, see code snippet below. The total has to update on insert and delete. With server binding, there is @Model.Count(). How can I do the same thing with Ajax binding? thank you! @{ Html.Telerik() .Grid<ContractMonth>() .Name("contractMonthGrid") .DataBinding(dataBinding => dataBinding .Ajax() .Select("_AjaxBinding", "ContractMonth") .Insert("_AjaxInsert", "ContractMonth") .Delete("_AjaxDelete", "ContractMonth") ) .DataKeys(keys => keys.Add(c => c.Id)) .ToolBar(commands => commands.Insert()) .Columns(columns => { columns.Bound(o => o.StartDate).EditorTemplateName("Date").FooterTemplate(@<text>@Model.Count()</text>);
0
[ 2, 4338, 2988, 7354, 45, 11917, 3131, 2468, 29, 20624, 8728, 800, 3726, 3726, 184, 92, 31, 1381, 7354, 3131, 2468, 29, 20624, 8728, 19, 4338, 6639, 28, 306, 9, 2328, 307, 8990, 7354, 60, 31, 376, 20, 3042, 600, 19, 21, 1749, 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...
How to create a secure Rails REST Api for my app? === So I am making an app for Android that needs a web backend. The website is being build in Ruby on Rails. It has a client facing side (pretty HTML pages) but I also want it to be able to serve information to my Android app via JSON. However, I don't want the whole world to be able to get this JSON as it contains some possibly dangerous information. How do I lock down the JSON-formatted pages and still make them accessible from the Android app? For the record, I am using Rails 3.1 `has_secure_password` for on-site user authentication, and I'd like to have some routes that are open for HTML requests but locked for JSON (for example, the `/users` url should be accessible as HTML but as JSON it should only be accessible from my app with some security method). Is there any way to do this, or does the API have to be a separate app (that would be hugely inconvenient with the DB setup, etc.)?
0
[ 2, 184, 20, 1600, 21, 4315, 2240, 18, 760, 21, 2159, 26, 51, 4865, 60, 800, 3726, 3726, 86, 31, 589, 544, 40, 4865, 26, 13005, 30, 2274, 21, 2741, 97, 2451, 9, 14, 2271, 25, 142, 1895, 19, 10811, 27, 2240, 18, 9, 32, 63, 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...
Converting UTF-16 QByteArray to QString === I have a QByteArray which contains bytes in UTF-16 format. A Java program sends data to a QT program via socket using //dos is DataOutPutStream dos.writeChars("hello world"); On the receiver side in QT program I read the data from socket into QByteArray and I want to convert it to a QString. inspecting the data variable of QByteArray it has 0h0e0l0l0o0 0w0o0r0l0d When I try to make a QString out of it like this QString str(byteArray) The resulting string is empty perhaps because it encounters a 0 byte at the start and ofcouse because the documentation of the constructor I am using says that it internally uses fromAscii and what I am passing is not ascii. I guess i have to somehow use QString::fromUTF-16 but that requires a ushort* and I have a QbyteArray. Please advise what is the best way to do it. Thanks,
0
[ 2, 19583, 287, 11720, 8, 1091, 2593, 23246, 8576, 93, 20, 2593, 11130, 800, 3726, 3726, 31, 57, 21, 2593, 23246, 8576, 93, 56, 1588, 34, 3231, 19, 287, 11720, 8, 1091, 2595, 9, 21, 8247, 625, 11350, 1054, 20, 21, 2593, 38, 625, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 append a message to the end of SMSComposeTask or EmailComposeTask === I would simply like to append a small message stating how the message to a user was sent when one chooses to use the SMSComposeTask or EmailComposeTask in my application. I would like it to say something like `"sent from" + my application name` but I am not sure how to navigate to the end of the users message and then add my text? So far I've just navigated down a couple lines and added it manually, but I would like to go to the next line and state the message to save the user from possibly sending multiple text messages once the 160 character limit is reached. MainPage.xaml.cs private void Messaging_Click(object sender, RoutedEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = ""; smsComposeTask.Body = "Check out this application!" + "\n\n" + "sent from " + "QuickStarts"; smsComposeTask.Show(); } private void Email_Click(object sender, RoutedEventArgs e) { EmailComposeTask emailComposeTask = new EmailComposeTask(); emailComposeTask.Subject = "Share from " + "QuickStarts"; emailComposeTask.Body = "Check out this application!" + "\n\n" + "sent from " + "QuickStarts"; emailComposeTask.To = ""; emailComposeTask.Cc = ""; emailComposeTask.Bcc = ""; emailComposeTask.Show(); }
0
[ 2, 184, 20, 4865, 2451, 21, 2802, 20, 14, 241, 16, 7613, 18, 960, 15690, 38, 20310, 54, 8517, 960, 15690, 38, 20310, 800, 3726, 3726, 31, 83, 1659, 101, 20, 4865, 2451, 21, 284, 2802, 4177, 184, 14, 2802, 20, 21, 4155, 23, 795, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 call a javascript function after youtube play finish? === I want to call a closed() function after youtube play finish.so i call that function into if status=0,following code is not working,why?i think player id not set.so how to get player id form youtube url.how to set player id?, where i want change to get good results. <script> var count = 0; var playerObjects = {}; function onYouTubePlayerReady(playerId) { playerObjects[playerId] = document.getElementById(playerId); player = document.getElementById(playerId); player.addEventListener('onStateChange', 'playerStateChanged'); player.loadVideoById(youtubevideoid); } function playerStateChanged(state) { // State code 0 means playback ended if (state == 0) { closed(); } }; </script> <div> <iframe width="359" height="202" frameborder="no" src="http://www.youtube.com/v/myIoJ9iHt8c? rel=0&amp;autoplay=1&enablejsapi=1&playerapiid=ytplayer"></iframe> </div>
0
[ 2, 184, 20, 645, 21, 8247, 8741, 1990, 75, 7330, 418, 2106, 60, 800, 3726, 3726, 31, 259, 20, 645, 21, 827, 5, 6, 1990, 75, 7330, 418, 2106, 9, 656, 31, 645, 30, 1990, 77, 100, 1782, 3726, 387, 15, 19184, 68, 1797, 25, 52, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Dealing with conflicts caused by replication in BigCouch === The CouchDB [Replication and Conflicts][1] wiki page suggests using `_bulk_docs` with `all_or_nothing=true` to forcibly write new versions of documents even if that introduces conflicts on write, but then resolve shortly after on subsequent reads. I've implemented this and conceptually it seems to work OK. But BigCouch doesn't support `all_or_nothing` semantics so writes to bulk docs can return 409 Conflict results. What is the best practice for implementing similar app-level conflict resolution for conflicts introduced by replication in BigCouch? Should I look at write-time conflict resolution instead? [1]: http://wiki.apache.org/couchdb/Replication_and_conflicts
0
[ 2, 5746, 29, 10344, 1497, 34, 23841, 19, 580, 716, 6396, 800, 3726, 3726, 14, 4914, 9007, 636, 99, 20669, 17, 10344, 500, 2558, 165, 500, 13, 17375, 2478, 5049, 568, 13, 1, 9077, 197, 1, 13799, 18, 1, 29, 13, 1, 1233, 1, 248, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Build a Web Portal for a legacy product (CMS) === We have a legacy product and its functionality is exposed using XML Web Services. We are planning to build a Web UI which can interface with the web services, would a CMS make sense in this situation? So that we may be able to market it ASAP. Or any other suggestions to approach this? (apart from building an ASP.NET web app from scratch)
0
[ 2, 1895, 21, 2741, 8281, 26, 21, 7780, 2374, 13, 5, 9095, 18, 6, 800, 3726, 3726, 95, 57, 21, 7780, 2374, 17, 82, 18548, 25, 5043, 568, 23504, 2741, 687, 9, 95, 50, 2334, 20, 1895, 21, 2741, 13, 5661, 56, 92, 6573, 29, 14, 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...
Galleria - Safari load issue - Load failed: no data found === I have an issue with the loading of my galleries on Safari/iPad. Worls ok and loads successfully in IE, Chrome, firefox etc... Example here: http://www.martynlewisphotography.com/ I get no load/script errors at all in IE - when i load it on my iPad however, with the 'not very informative' Safari debug Console on, I can see 1 JavaScript Error (Javascript error: undefined, TypeError: 'undefined' is not an object Could anybody give it a try on a MAC / desktop Safari and see if they can locate which line etc the error is on? Not really much help, the debug console on the iPad Or.. suggest anything I'm missing? Can't understand why it works ok on everything else... Thanks, Martyn.
0
[ 2, 18408, 2548, 13, 8, 25055, 6305, 1513, 13, 8, 6305, 1702, 45, 90, 1054, 216, 800, 3726, 3726, 31, 57, 40, 1513, 29, 14, 12797, 16, 51, 12840, 27, 25055, 118, 49, 8240, 9, 13, 10041, 7532, 5854, 17, 19069, 3673, 19, 13, 660, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
WinRT/Metro Animation === The following code works fine in Silverlight: private void Button_Click_1(object sender, RoutedEventArgs e) { Storyboard storyboard = new Storyboard(); DoubleAnimation doubleAnimation = new DoubleAnimation(); doubleAnimation.From = 50; doubleAnimation.To = 100; doubleAnimation.RepeatBehavior = RepeatBehavior.Forever; doubleAnimation.AutoReverse = true; doubleAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(200)); storyboard.Children.Add(doubleAnimation); Storyboard.SetTarget(doubleAnimation, button1); Storyboard.SetTargetProperty(doubleAnimation, new PropertyPath("Width")); storyboard.Begin(); } In WinRT/Metro it needs one minor change to make it compile: Storyboard.SetTargetProperty(doubleAnimation, "Width"); but when you run it, nothing happens. If you change the property from "Width" to "Opacity" (also change From=0 and To=1) that works. What is the problem with "Width"?
0
[ 2, 628, 5256, 118, 27176, 6236, 800, 3726, 3726, 14, 249, 1797, 693, 1123, 19, 1172, 3130, 45, 932, 11364, 5167, 1, 150, 10129, 1, 165, 5, 23793, 2660, 106, 15, 858, 546, 6645, 10663, 18, 13, 62, 6, 13, 1, 609, 2806, 609, 2806, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 use SQLite in iPhone? === Am new to SQLite using in iPhone. I have used google and got some information regarding SQLite for iPhone. I have downloaded the sample source code from here: http://www.icodeblog.com/2011/11/04/simple-sqlite-database-interaction-using-fmdb/. I have added the code to create table like below, database = [FMDatabase databaseWithPath:path]; [database open]; [database executeUpdate:@"create table creagx(name text, message text)"]; And i have used below code to insert values in the table: NSString *nameStr = nameText.text; NSString *messageStr = ageText.text; NSString *executeQuery = [NSString stringWithFormat:@"insert into creagx values ('%@', '%@')",nameStr, messageStr]; NSLog(@"Execute Query : %@", executeQuery); //[database executeUpdate:executeQuery]; [database executeUpdate:@"insert into creagx(name, message) values(?,?)", nameStr,messageStr,nil]; But, the app getting crash in the line `[database executeUpdate:@"insert into creagx(name, message) values(?,?)", nameStr,messageStr,nil];` I can't get the exact reason for this crash. If we are using FMDatabase in iPhone is secure and it is preferable for iPhone apps? Can anyone please help on these issues? Thanks in advance.
0
[ 2, 184, 20, 275, 4444, 10601, 19, 21024, 60, 800, 3726, 3726, 589, 78, 20, 4444, 10601, 568, 19, 21024, 9, 31, 57, 147, 8144, 17, 330, 109, 676, 3467, 4444, 10601, 26, 21024, 9, 31, 57, 23887, 14, 5717, 1267, 1797, 37, 235, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
awkward duplication in 2d array php === I merged two arrays together that both contained a string(url) and int(score). the following is a sample of the outome. Whenever a string is duplicated, i need to remove that string and its corresponding int. For example, on the 4th line (www.thebeatles.com/ - 30) should be removed. The 5th and 6th lines should also be removed as they appear already with a different score. http://www.thebeatles.com/ - 55 http://en.wikipedia.org/wiki/The_Beatles - 49 http://www.beatlesstory.com/ - 45 http://www.thebeatles.com/ - 30 http://en.wikipedia.org/wiki/The_Beatles - 28 http://www.beatlesstory.com/ - 26 http://www.beatlesagain.com/ - 24 http://www.thebeatlesrockband.com/ - 23 http://www.last.fm/music/The+Beatles - 22 http://itunes.apple.com/us/artist/the-beatles/id136975 - 20 http://www.youtube.com/watch?v=U6tV11acSRk - 18 http://blekko.com/ws/http://www.thebeatles.com/+/seo - 17 http://www.adriandenning.co.uk/beatles.html - 16 http://www.npr.org/artists/15229570/the-beatles - 15 http://mp3.com/artist/The%2BBeatles - 14 http://www.beatles.com/ - 13 http://www.youtube.com/watch?v=TU7JjJJZi1Q - 12 http://www.guardian.co.uk/music/thebeatles - 11 http://www.cirquedusoleil.com/en/shows/love/default.aspx - 9 http://www.recordingthebeatles.com/ - 7 http://www.beatlesbible.com/ - 5 I'm new to PHP and my best efforts to get array_unique() to work have failed. Really appreciate some help guys!
0
[ 2, 9309, 1052, 20669, 19, 172, 43, 7718, 13, 26120, 800, 3726, 3726, 31, 3901, 81, 7718, 18, 429, 30, 156, 3437, 21, 3724, 5, 911, 255, 6, 17, 19, 38, 5, 15077, 6, 9, 14, 249, 25, 21, 5717, 16, 14, 70, 6651, 9, 6634, 21, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows 8 VB MD5 hash === Hello i am looking for a md5 hash function for windows 8 (metro app) I have been looking for this in google (and other search engines) but there is nothing for windows 8 , most of them are about win 7 (or older) thank you any way :)
0
[ 2, 1936, 469, 13, 20468, 8138, 264, 19170, 800, 3726, 3726, 10975, 31, 589, 699, 26, 21, 8138, 264, 19170, 1990, 26, 1936, 469, 13, 5, 27176, 4865, 6, 31, 57, 74, 699, 26, 48, 19, 8144, 13, 5, 290, 89, 2122, 4016, 6, 47, 80, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Joomla 2.5 joomshopping category template === i'm using joomla 2.5 with the joomshopping component. So I need a feature to change the template for different categories. I noticed that when I edit a category in the details tab joomshopping has a option to change category template. Now how can I do this, how can I change the template, where to install another template? Does anybody has experience with this problem. Thanks ![enter image description here][1] [1]: http://i.stack.imgur.com/hII0R.png
0
[ 2, 2640, 2636, 531, 172, 9, 264, 2640, 2636, 18, 21181, 3230, 22894, 800, 3726, 3726, 31, 22, 79, 568, 2640, 2636, 531, 172, 9, 264, 29, 14, 2640, 2636, 18, 21181, 5912, 9, 86, 31, 376, 21, 1580, 20, 753, 14, 22894, 26, 421, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Server$WorkerThread === My chat program was working fine in my system when i changed the ip and compiled in my system. and i copied the class file to another it run fine in another system also. but when client sends a message it shows `Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Server$WorkerThread` Am using Windows 7.
0
[ 2, 5391, 19, 9322, 13, 7, 96, 10647, 8, 387, 7, 8247, 9, 9949, 9, 251, 1898, 13862, 12235, 29992, 45, 8128, 4403, 22560, 96, 10647, 800, 3726, 3726, 51, 6615, 625, 23, 638, 1123, 19, 51, 329, 76, 31, 1015, 14, 15735, 17, 9316, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
construct xml string from parsed xml === My code for parsexml: var parseXml = function (xml) { var dom = null; if (window.DOMParser) { try { dom = (new DOMParser()).parseFromString(xml, "text/xml"); } catch (e) { dom = null; } } else if (window.ActiveXObject) { try { dom = new ActiveXObject('Microsoft.XMLDOM'); dom.async = false; if (!dom.loadXML(xml)) // parse error .. window.alert(dom.parseError.reason + dom.parseError.srcText); } catch (e) { dom = null; } } else alert("cannot parse xml string!"); return dom; } now suppose s="<a>random</a>"; b=parseXml(s); now I want to get `s` back from `b`. How do I do that?
0
[ 2, 6960, 23504, 3724, 37, 2017, 18, 69, 23504, 800, 3726, 3726, 51, 1797, 26, 2017, 6353, 8184, 45, 4033, 2017, 6353, 8184, 800, 1990, 13, 5, 396, 8184, 6, 13, 1, 4033, 11859, 800, 16203, 73, 100, 13, 5, 27508, 9, 5555, 3574, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 SwingX in netbeans 5.5? === I need to install SwingX palette in NetBeans 5.5. I couldn't find any relevant document or tutorial to do this integration. please guide me. I have downloaded swingx-all-1.6.3.jar.
0
[ 2, 184, 20, 16146, 5587, 396, 19, 4275, 863, 5950, 331, 9, 264, 60, 800, 3726, 3726, 31, 376, 20, 16146, 5587, 396, 27349, 19, 4275, 863, 5950, 331, 9, 264, 9, 31, 711, 22, 38, 477, 186, 7480, 4492, 54, 29724, 20, 107, 48, 807...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting text to go the entire width of a textarea in firefox === Please view the following fiddle in Firefox and you will see that the line of text in the textarea is getting cut off mid way through because of the long file name, but in IE and Chrome, the line goes the entire width of the textarea and only wraps once it has reached the end. I would like to achive this same behavior in Firefox and have tried everything I can with my limited CSS skills to make it work to no avail so thought I would stop pulling my hair out and come to the pros for some help. Fiddle: http://jsfiddle.net/yGuAy/1/
0
[ 2, 1017, 1854, 20, 162, 14, 1078, 9456, 16, 21, 1854, 17760, 19, 535, 18219, 800, 3726, 3726, 2247, 1418, 14, 249, 12759, 19, 535, 18219, 17, 42, 129, 196, 30, 14, 293, 16, 1854, 19, 14, 1854, 17760, 25, 1017, 1077, 168, 907, 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...
SQL Server 2008 time zone conversion === In my web app, all date values are converted to UTC before being passed into the SQL database and then converted back to local time whenever they are displayed in the app. So the bottom line is that all dates are in UTC in the database. That worked just fine until I started report development. Crystal Reports has no ability (that I can detect) to do a time zone conversion so I need to do the conversion within SQL before passing the value to the report. SQL Server appears to have a much more limited ability to convert datetime values. The only function I see is SWITCHOFFSET. The problem with this function is that it is not daylight-savings aware which seems to be a major flaw. In asp.net, I can pass a datetime value with a time zone and it will automatically convert it to UTC time, taking account of any needed daylight savings time adjustments. In SQL though, instead of saying something like SWITCHOFFSET (SomeDate,"Eastern Time"), I now have to say SWITCHOFFSET(SomeDate, "-4:00"). But what happens if I'm pulling data from a table and I ask for all of the data for March, the month when daylight savings starts? No matter what, some of it will be incorrect. I can either say -4:00 or -5:00 but obviously, not both. Is there some other function to adjust for this as, frankly, it seems SWITCHOFFSET is half baked if it doesn't know how to do a daylight savings conversion.
0
[ 2, 4444, 255, 8128, 570, 85, 2464, 6263, 800, 3726, 3726, 19, 51, 2741, 4865, 15, 65, 1231, 4070, 50, 3494, 20, 13, 11440, 115, 142, 1100, 77, 14, 4444, 255, 6018, 17, 94, 3494, 97, 20, 375, 85, 6634, 59, 50, 6115, 19, 14, 486...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
values get updated in RRD DB but doesnt reflect when doing a fetch or dump === i am populating an rrd db once an hour. The value gets successfully updated in rrd db but it doesnt doesnt get updated to archives Whenever i try to fetch data using rrdfetch it return NaN and rrddump showns dump too. but rrdtool info shows the last update value . Following is my rrdtool info output . filename = "abc.red.prod.rrd" rrd_version = "0003" step = 2000 last_update = 1341392733 ds[resume_l].type = "GAUGE" ds[resume_l].minimal_heartbeat = 2000 ds[resume_l].min = NaN ds[resume_l].max = NaN ds[resume_l].last_ds = "22403399" ds[resume_l].value = 1.6471702915e+10 ds[resume_l].unknown_sec = 0 ds[suspend_l].type = "GAUGE" ds[suspend_l].minimal_heartbeat = 2000 ds[suspend_l].min = NaN ds[suspend_l].max = NaN ds[suspend_l].last_ds = "23203177" ds[suspend_l].value = 1.7281112506e+10 ds[suspend_l].unknown_sec = 0 rra[0].cf = "MIN" rra[0].rows = 44640 rra[0].cur_row = 31110 rra[0].pdp_per_row = 1 rra[0].xff = 5.0000000000e-01 rra[0].cdp_prep[0].value = NaN rra[0].cdp_prep[0].unknown_datapoints = 0 rra[0].cdp_prep[1].value = NaN rra[0].cdp_prep[1].unknown_datapoints = 0 rra[1].cf = "MAX" rra[1].rows = 44640 rra[1].cur_row = 32625 rra[1].pdp_per_row = 1 rra[1].xff = 5.0000000000e-01 rra[1].cdp_prep[0].value = NaN rra[1].cdp_prep[0].unknown_datapoints = 0 rra[1].cdp_prep[1].value = NaN rra[1].cdp_prep[1].unknown_datapoints = 0 rra[2].cf = "AVERAGE" rra[2].rows = 44640 rra[2].cur_row = 41634 rra[2].pdp_per_row = 1 rra[2].xff = 5.0000000000e-01 rra[2].cdp_prep[0].value = NaN rra[2].cdp_prep[0].unknown_datapoints = 0 rra[2].cdp_prep[1].value = NaN rra[2].cdp_prep[1].unknown_datapoints = 0 rra[3].cf = "LAST" rra[3].rows = 44640 rra[3].cur_row = 8075 rra[3].pdp_per_row = 1 rra[3].xff = 1.0000000000e-01 rra[3].cdp_prep[0].value = NaN rra[3].cdp_prep[0].unknown_datapoints = 0 rra[3].cdp_prep[1].value = NaN rra[3].cdp_prep[1].unknown_datapoints = 0 and this is the output of rrdtool dump .. only selected regions <!-- 2012-07-04 01:06:40 UTC / 1341364000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 01:40:00 UTC / 1341366000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 02:13:20 UTC / 1341368000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 02:46:40 UTC / 1341370000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 03:20:00 UTC / 1341372000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 03:53:20 UTC / 1341374000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 04:26:40 UTC / 1341376000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 05:00:00 UTC / 1341378000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 05:33:20 UTC / 1341380000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 06:06:40 UTC / 1341382000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 06:40:00 UTC / 1341384000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 07:13:20 UTC / 1341386000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 07:46:40 UTC / 1341388000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 08:20:00 UTC / 1341390000 --> <row><v> NaN </v><v> NaN </v></row> <!-- 2012-07-04 08:53:20 UTC / 1341392000 --> <row><v> NaN </v><v> NaN </v></row> </database> </rra> </rrd>
0
[ 2, 4070, 164, 6372, 19, 761, 897, 13, 9007, 47, 5886, 6907, 76, 845, 21, 18312, 54, 11424, 800, 3726, 3726, 31, 589, 1675, 10038, 40, 761, 897, 13, 9007, 382, 40, 1671, 9, 14, 1923, 3049, 3673, 6372, 19, 761, 897, 13, 9007, 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...
html-javascript: page refreshes whenever an event is fired === I have an html page with buttons and such, to which I assign event listeners. Whenever one of the buttons is clicked, the page goes back to its original state, as if the browser had been closed and opened again. So if I have text fields into which I've inputted some info, they will be cleared as soon as a button is clicked, even if its event listener does nothing. Likewise, if I include this event listener into the html, `<body onload="pageLoaded();">`, the pageLoaded() function will be called whenever a button is clicked. Why is this happening, and how can I prevent it from happening?
0
[ 2, 13, 15895, 8, 1004, 1385, 8741, 45, 2478, 24905, 160, 6634, 40, 807, 25, 3899, 800, 3726, 3726, 31, 57, 40, 13, 15895, 2478, 29, 12861, 17, 145, 15, 20, 56, 31, 13952, 807, 15672, 9, 6634, 53, 16, 14, 12861, 25, 15802, 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...
Ember.TextArea set input through handlebars helper === I got a Ember.Handlerbars.JSON helper, which formats a given value to an indented JSON string. I'd like to set the content (value) of a textarea like this: {{#view Ember.TextArea}} {{JSON someValue}} {{/view}} This does not work, since what I should set the textareas' "value" attribute instead. However, this also doe not work {{view Ember.TextArea valueBinding="JSON someValue"}}
0
[ 2, 13, 19603, 9, 11969, 17760, 309, 6367, 120, 3053, 1850, 18, 448, 106, 800, 3726, 3726, 31, 330, 21, 13, 19603, 9, 3203, 1252, 1850, 18, 9, 728, 528, 448, 106, 15, 56, 13767, 21, 504, 1923, 20, 40, 19, 817, 1427, 487, 528, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
wcf very slow in lan flie transfer === I have a service that has a method to send a file to the service from the client. I notice that when I run the client and the service in the same machine and the file that I want to send is also in the local machine, all works very fast. However, I the client and the service are in the same machine but the file is in other computer, then speed is very slow. If I copy the file from one computer to other, the speed is fast, so the problem does not seem to be the bandwidth. I try to use tcp and basicHttp Binding, but the results are the same. Thanks.
0
[ 2, 11801, 410, 253, 2276, 19, 6178, 398, 3844, 2617, 800, 3726, 3726, 31, 57, 21, 365, 30, 63, 21, 2109, 20, 2660, 21, 3893, 20, 14, 365, 37, 14, 6819, 9, 31, 3551, 30, 76, 31, 485, 14, 6819, 17, 14, 365, 19, 14, 205, 1940, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Best WYSIWYG editor for mailing (or best way to use.. for mailing) === for one of my customers I've been developing a mailsystem for his clients. His clients have been collecting e-mailaddresses in their stores and want to start using these for mailings once in a while. I'm aware of all possible things that can go wrong, but as far as I can see we've got it pretty much covered the best way we can. We're using SMTP (Authenticated) to send the e-mails to the customers, e-mails are signed serverside, we're splitting up the mails with a max of 25 per 5 minutes, sending headers to optout location, etc. I can imaging this is just the tip of the iceberg concerning all things I have to take care off.. but I warned my customer that he might be better of using an existing app like MailChimp but he insisted on doing it ourselfs. After the development of our beta version was done, we've ran some tests and all things went pretty well in fact. Haven't had any spamfolder problems, all mails are good to read in the different clients, and so on. However, one thing is being a little hard right now.. the editor! We're creating templates for our clients (1 template, 6 styles). Our clients can load these into their editor and edit the text inside. As far as we (and the client) can see, everything goes pretty good, however - the editor does not create e-mail friendly HTML code (I should have known...) I've searched the net for some articles/how-to's but there's really less to find about this. Currently we're using `CKEditor` (Editor) and `KCFinder` (Image Plugin). As far as I know, CKEditor is the best free WYSIWYG available... but is it any good for e-mail editing? I noticed some companies use a custom editor (MailChimp) others used TinyMCE (Enormail.eu). Anyone has a good recommendation? Or is CKeditor the best option, but do I need to modify some of the settings to get the best possible html code for mailings? Thanks in advance!
0
[ 2, 246, 5809, 18, 49, 7913, 263, 1835, 26, 4216, 68, 13, 5, 248, 246, 161, 20, 275, 9, 9, 26, 4216, 68, 6, 800, 3726, 3726, 26, 53, 16, 51, 5279, 31, 22, 195, 74, 3561, 21, 4216, 10724, 26, 33, 7421, 9, 33, 7421, 57, 74, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
TableAdapter does Pentium Math === I have a project where a user can enter a decimal in a textbox. Now I take that value and tryparse it into a nullable float variable, which I pass to a tableAdapter to Insert or Update the DB. Now here is where it gets wierd, if I give it a value of .24, that is what gets passed to the tableAdapter, however, when I look at what is saved to the database, it is transformed into 0.239999994635582. I debuged it up to the insert call of the TableAdapter, and it is being passed a value of .24. My SQL server database column has a type of float. Any idea on why this could be happening? Do I need to switch to decimal? Thanks
0
[ 2, 859, 27576, 106, 630, 11734, 2187, 5057, 800, 3726, 3726, 31, 57, 21, 669, 113, 21, 4155, 92, 2830, 21, 26380, 19, 21, 1854, 5309, 9, 130, 31, 247, 30, 1923, 17, 1131, 3574, 870, 32, 77, 21, 16203, 579, 11510, 7612, 15, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Nancy model binding to child class === We are having an issue with Nancy's default model binder. Given the below... public class Foo { public Foo() { } public string Name { get; set; } public Bar Bar { get; set; } } public class Bar { public string Name { get; set; } } with elements like... <input type="text" value="Name" /> <input type="text" value="Bar.Name" /> With the default model binder used like so.. `var foo = this.Bind<Foo>();` This correctly binds Foo.Name but fails to bind Foo.Bar.Name Is there a way to enable this kind of binding with the default binder or do we need to roll our own? If so are there any good examples?
0
[ 2, 7477, 1061, 8728, 20, 850, 718, 800, 3726, 3726, 95, 50, 452, 40, 1513, 29, 7477, 22, 18, 12838, 1061, 13, 24200, 9, 504, 14, 1021, 9, 9, 9, 317, 718, 4310, 111, 13, 1, 317, 4310, 111, 5, 6, 13, 1, 13, 1, 317, 3724, 204...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Defining custom route in MVC3 === I have a MVC3 application in which I want to modify the routes as follows: public class DealsController : Controller { public ActionResult View() { return View(); } [Authorize] [HttpPost] public ActionResult Add(DealViewModel newDeal) { // Code to add the deal to the db } } What I would like to do is when a user requests **www.domain.com/deals/view** I want to rewrite the url as **www.doamin.com/unsecure/deals/view**. So any route which does not have the Authorize attribute needs to be modified by adding the word unsecure.
0
[ 2, 14684, 5816, 858, 19, 307, 8990, 240, 800, 3726, 3726, 31, 57, 21, 307, 8990, 240, 3010, 19, 56, 31, 259, 20, 17579, 14, 5050, 28, 2415, 45, 317, 718, 10342, 12898, 1252, 13, 45, 9919, 13, 1, 317, 1028, 29955, 1418, 5, 6, 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...
uploading files with rails and html5 === I'm working on an uploader with html5 and rails that upload multiple files and support drag and drop. and I'm stuck! I tried https://github.com/websymphony/Rails3-Paperclip-Uploadify but it use flash!, tried that toturial http://www.sitepoint.com/html5-javascript-file-upload-progress-bar/ it's good, but I can't make it work with rails as I'm novice in here (rails and javascript)! Can you recommend me a library/gem/tool/..etc that can help me with that?
0
[ 2, 71, 16866, 6488, 29, 2240, 18, 17, 13, 15895, 264, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 71, 8294, 106, 29, 13, 15895, 264, 17, 2240, 18, 30, 71, 8294, 1886, 6488, 17, 555, 5501, 17, 2804, 9, 17, 31, 22, 79, 4549, 187...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Trying to create PDF to Tif. Getting image bad image === I am trying to create tif image from pdf file, using Itextsharp and Bitmiracle. First I am trying to get the byte details of each page of pdf file using iTextsharp. string bpp = pd.Get(PdfName.BITSPERCOMPONENT).ToString(); PixelFormat pixelFormat; switch (bpp) { case "1": pixelFormat = PixelFormat.Format1bppIndexed; break; case "8": pixelFormat = PixelFormat.Format24bppRgb; break; default: throw new Exception(String.Format("Unknown pixel format {0}.", bpp)); } After that using bitmiracle I am saving that image in a tiff format. But the image is not viewable. string filter = PDFStremObj.Get(PdfName.FILTER).ToString(); switch (filter) { case "/FlateDecode": byte[] arr = PdfReader.GetStreamBytes((PRStream)PDFStremObj); Bitmap bmp = new Bitmap(Int32.Parse(width), Int32.Parse(height), PixelFormat.Format24bppRgb); BitmapData bmd = bmp.LockBits(new System.Drawing.Rectangle(0, 0, Int32.Parse(width), Int32.Parse(height)), ImageLockMode.WriteOnly, PixelFormat.Format24bppRgb); Marshal.Copy(arr, 0, bmd.Scan0, arr.Length); bmp.UnlockBits(bmd); bmp.Save(strFileNewName, System.Drawing.Imaging.ImageFormat.Tiff); bmp.Dispose(); page++; break; } Please help me to fix the problem in the code or suggest me the change. Thanks in advance for your help.
0
[ 2, 749, 20, 1600, 13, 11124, 20, 13, 38, 821, 9, 1017, 1961, 896, 1961, 800, 3726, 3726, 31, 589, 749, 20, 1600, 13, 38, 821, 1961, 37, 13, 11124, 3893, 15, 568, 31, 11969, 23646, 17, 1142, 15008, 5615, 9, 64, 31, 589, 749, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android - switch between tabs within activity, get index of tab === I'm trying to make an activity in a tabHost. I want to be able to press a button in activity A, thats in tab tA and go to tab tB. i've found this solution: http://stackoverflow.com/questions/2541802/android-switch-tabs-from-within-an-activity-within-a-tab but I can't figure out how to find the "indexOfTabToSwitch" How do I get this index?
0
[ 2, 13005, 13, 8, 5521, 128, 6523, 18, 363, 2358, 15, 164, 4348, 16, 6523, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 40, 2358, 19, 21, 6523, 11694, 9, 31, 259, 20, 44, 777, 20, 901, 21, 5167, 19, 2358, 21, 15, 30, 18, 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...
Java reg-ex to replace double quote inside double quote === Input string is : "outer string "inside a quote" " and out put should be: "outer string inside a quote " please suggest any Regular expression to find the inner double quote and replace with space using Java.
0
[ 2, 8247, 7953, 8, 1706, 20, 3934, 1494, 16371, 572, 1494, 16371, 800, 3726, 3726, 6367, 3724, 25, 13, 45, 13, 7, 1320, 106, 3724, 13, 7, 108, 1416, 21, 16371, 7, 13, 7, 17, 70, 442, 378, 44, 45, 13, 7, 1320, 106, 3724, 572, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Implementing interfaces using generics === I'm new to generics and need some help. I want to create an interface for all "transformer" classes to implement. To be a "transformer" the class must contain at least one variation of `T mapTo<T>(T t)`. **HERE IS HOW I WANT TO USE TRANSFORMERS:**<br/> Overload some methods...GREAT! Seems easy enough! public class Transformer : ITransformer { public Transformer(IPerson instance) { } public XmlDocument mapTo(XmlDocument xmlDocument) { // Transformation code would go here... // For Example: // element.InnerXml = instance.Name; return xmlDocument; } public UIPerson maptTo(UIPerson person) { // Transformation code would go here... // For Example: // person.Name = instance.Name; return person; } } **LET'S USE GENERICS TO DEFINE THE INTERFACE:**<br/> Greate idea! public interface ITransformer { T MapTo<T>(T t); } **THE PROBLEM:**<br/> If I use generics in the interface my concrete class is LITERALLY forced to implement the following: public T MapTo<T>(T t) { throw new NotImplementedException(); } **THIS MAKES THE CLASS LOOK RATHER UGLY**<br/> public class Transformer : ITransformer { public Transformer(Person instance) { } public XmlDocument MapTo(XmlDocument xmlDocument) { // Transformation code would go here... // For Example: // element.InnerXml = instance.Name; return xmlDocument; } public UIPerson MapTo(UIPerson person) { // Transformation code would go here... // For Example: // person.Name = instance.Name; return person; } public T MapTo<T>(T t) { throw new NotImplementedException(); } }
0
[ 2, 17333, 6573, 18, 568, 12733, 18, 800, 3726, 3726, 31, 22, 79, 78, 20, 12733, 18, 17, 376, 109, 448, 9, 31, 259, 20, 1600, 40, 6573, 26, 65, 13, 7, 7028, 12051, 7, 2684, 20, 8713, 9, 20, 44, 21, 13, 7, 7028, 12051, 7, 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...
Java Dom parser reports wrong number of child nodes === I have the following xml file: <?xml version="1.0" encoding="UTF-8"?> <users> <user id="0" firstname="John"/> </users> Then I'm trying to parse it with java, but getchildnodes reports wrong number of child nodes. Java code: DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(this.file); document.getDocumentElement().normalize(); Element root = document.getDocumentElement(); NodeList nodes = root.getChildNodes(); System.out.println(nodes.getLength()); Result: 3 Also I'm getting NPEs for accessing the nodes attributes, so I'm guessing something's going horribly wrong.
0
[ 2, 8247, 11859, 2017, 4104, 2813, 1389, 234, 16, 850, 16272, 800, 3726, 3726, 31, 57, 14, 249, 23504, 3893, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19608, 3726, 7, 1982, 410, 8, 457, 7, 60, 1, 13, 1, 16704, 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...
iPhone/iPad offline web app manifest with several html pages === This is my first iOS web app, so please bear with me. I coded the HTML5/CSS3 part so now I need to make this app available in an iPhone/iPad for offline viewing. I was referring to [this link][1] on how to compose the offline.manifest file, but I'm not clear about a couple of details: 1. The document above seems to refer to a single offline page. But obviously my web app consists of more than one page. Is it possible to make all of them available offline under one web app? If so, then how? 2. For my web app I do not link to an html page from a web browser. Each page is served by a PHP script. More over pages might have URLs like so: "http://mysite.com/home" that translates to "http://mysite.com/home/index.php" So which URL should I actually use in the offline.manifest file? [1]: http://developer.apple.com/library/safari/#documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html
0
[ 2, 21024, 118, 49, 8240, 168, 1143, 2741, 4865, 13160, 29, 238, 13, 15895, 4434, 800, 3726, 3726, 48, 25, 51, 64, 13, 7760, 2741, 4865, 15, 86, 2247, 2746, 29, 55, 9, 31, 13, 22254, 14, 13, 15895, 10551, 6824, 18, 240, 141, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# Excel, Why do I keep getting COM exception when using FormulaArray === try { sheet1.get_Range("M34").FormulaArray = "=SUM(IF(Sheet2!D6:D122=M31,IF(Sheet2!P6:P122>0,Sheet2!I6:I122/SUMIFS(Sheet2!I:I,Sheet2!C:C,Sheet2!C6:C122,Sheet2!D:D,Sheet2!D6:D122)*ROUNDUP(SUMIFS(Sheet2!I:I,Sheet2!C:C,Sheet2!C6:C122,Sheet2!D:D,Sheet2!D6:D122)/Sheet2!Q3,0),0),0))"; } catch (COMException ex) { MessageBox.Show(ex.Message); } Anyone know why the above code throws a COM exception. The formula works fine if i enter into excel and press ctrl+shift+enter but when having my program write to excel it throws an exception. I used Range.FormulaArray elsewhere in my program and it worked fine. Maybe someone can point out the problem because I am going crazy and it seems others are having the same problem but no solutions online :(
0
[ 2, 272, 5910, 20700, 15, 483, 107, 31, 643, 1017, 13, 960, 5391, 76, 568, 3729, 8576, 93, 800, 3726, 3726, 1131, 13, 1, 6125, 165, 9, 3060, 1, 8366, 5, 7, 79, 3965, 7, 6, 9, 4190, 3743, 8576, 93, 800, 13, 7, 3726, 18, 723, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Finishing an activity from a standard java class === I am currently working on an android project and I have an activity, lets call it MyActivity and this activity calls a standard Java class called MyClass. I need MyClass to finish the MyActivity activity but I can't find out how to do this. I thought I might be able to pass the context to the standard java class and call context.finish() but this doesn't appear to be available. How can I do this, thanks for any help you can offer.
0
[ 2, 3718, 40, 2358, 37, 21, 1236, 8247, 718, 800, 3726, 3726, 31, 589, 871, 638, 27, 40, 13005, 669, 17, 31, 57, 40, 2358, 15, 6884, 645, 32, 51, 19348, 17, 48, 2358, 3029, 21, 1236, 8247, 718, 227, 51, 1898, 9, 31, 376, 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...
TextBlock style triggers === I would like to combine the DisplayNames from two different ViewModels, but only IF the first is not equal to a NullObject. I *could* easily do this in either a converter or a parent view model, but am hoping my attempt at using DataTrigger has an easy fix. Cheers, Berryl This displays nothing at all: <TextBlock Grid.Column="2" Grid.Row="0" > <TextBlock.Inlines> <Run Text="{Binding HonorificVm.DisplayName}"/> <Run Text="{Binding PersonNameVm.DisplayName}"/> </TextBlock.Inlines> <TextBlock.Style> <Style TargetType="{x:Type TextBlock}"> <Style.Triggers> <DataTrigger Binding="{Binding HonorificVm.Honorific}" Value="{x:Static model:Honorific.NullHonorific}"> <Setter Property="Text" Value="PersonNameVm.DisplayName"/> </DataTrigger> </Style.Triggers> </Style> </TextBlock.Style> </TextBlock>
0
[ 2, 1854, 12048, 1034, 7286, 18, 800, 3726, 3726, 31, 83, 101, 20, 12287, 14, 3042, 7259, 18, 37, 81, 421, 1418, 13998, 18, 15, 47, 104, 100, 14, 64, 25, 52, 2747, 20, 21, 16203, 23793, 9, 31, 1637, 13431, 2483, 2351, 107, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento 1.7.0.1 resets price to 0 when using custom options === I'm using Magento 1.7.0.1 just recently upgraded from 1.6.2.0. I have the SCP extension as well as MageWorx Advanced Custom Options. I have a configurable product where the simple products that are associated have custom options, to test this you can go here: http://dev4.printpartnerships.com/flyer-printing If you select the drop-downs in the following combination you will see the multi-select popup with the custom options available. Just before the custom options box pops up it will switch from £99.99 (correct) to £0.00. Oddly, if you click a custom option then click "Add to Cart" it recognises this and adds it to cart with the custom option and the correct pricing! The combination is as follows: 1) A6 2) 5000 3) 300gsm Gloss 4) 24hrs You will see it briefly switch to £99.99 then revert to £0.00. This is where the problem lies. If anyone can provide some assistance that would be great. I've tried the obvious fixes such as editing the price += float in options.phtml (doesn't exist anyway!) and ensuring I have an options.phtml in my theme folder. I've also modified the price_clone as that has also been reported to fix this, but doesn't in my circumstance. Many thanks
0
[ 2, 4723, 17050, 137, 9, 465, 9, 387, 9, 165, 23422, 18, 2162, 20, 713, 76, 568, 5816, 6368, 800, 3726, 3726, 31, 22, 79, 568, 4723, 17050, 137, 9, 465, 9, 387, 9, 165, 114, 1989, 9958, 37, 137, 9, 379, 9, 135, 9, 387, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Strength of DES encryption if encrypted string is known? === I'm using DES to encrypt some strings. Using this example: http://exampledepot.com/egs/javax.crypto/PassKey.html Let's say an attacker finds out what one of my encrypted string's decrypted value is. For example, they somehow find out that the word I was encrypting is "dog". Now they have both the encrypted and decrypted values. Is it then trivial to figure out how to decrypt all the rest of my data? Thanks
0
[ 2, 2169, 16, 1746, 24420, 100, 29403, 3724, 25, 167, 60, 800, 3726, 3726, 31, 22, 79, 568, 1746, 20, 1957, 11435, 109, 7887, 9, 568, 48, 823, 45, 7775, 6903, 29041, 546, 4296, 9, 960, 118, 5431, 18, 118, 1004, 1385, 396, 9, 1143...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...