unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
how come some statements require the return statement at the end of some groovy closures? === def handleLogin = { def hashPassd = DU.md5Hex(params.password) // Find the username def user = User.findByUserNameAndPassword(params.userName, hashPassd) if (!user) { flash.message = "User not found for userName: ${params.userName}" redirect(action:'index') return } else { session.user = user redirect(controller:'todo') } } how come the if condition requires the return statement? and the else block don't require it?
0
[ 2, 184, 340, 109, 9015, 4077, 14, 788, 3331, 35, 14, 241, 16, 109, 3452, 2026, 93, 7790, 18, 60, 800, 3726, 3726, 6312, 3053, 5567, 108, 800, 13, 1, 6312, 19170, 6201, 43, 800, 1052, 9, 79, 43, 264, 438, 396, 5, 6351, 79, 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...
What file size should I be looking at? IPA? === I asked a question on here a few weeks ago, and everyone said I needed to look at the .ipa file and that was it (to stay under 50 mb). However, I was browsing Apples iTunes Connect website from questions, and they posted this: >**Why did Apple make my app file size larger than the .zip file I uploaded for my binary in iTunes Connect?** >When your application is approved by Apple to sell on the App Store, it is encrypted for DRM purposes and re-compressed. When the encryption is added, the size of the compressed file will increase. The exact size of the increase will vary from app to app, however, the size increase can be large when the binary contains a lot of contiguous zeros. We are unable to guarantee the size of your file after the encryption has been added. >iOS apps with a final size of up to 50MB can be downloaded over the 3G network. Larger iOS apps will require a Wi-Fi connection. So does that mean the .ipa file is going to increase once they encrypt it, or is the .ipa file already encrypted?
0
[ 2, 98, 3893, 1072, 378, 31, 44, 699, 35, 60, 13, 15796, 60, 800, 3726, 3726, 31, 411, 21, 1301, 27, 235, 21, 310, 1342, 1464, 15, 17, 1266, 87, 31, 851, 20, 361, 35, 14, 13, 9, 15796, 3893, 17, 30, 23, 32, 13, 5, 262, 1179...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 photo caption when uploading a picture using Facebook PHP SDK? === I have a Facebook App that allows users to upload pictures from my website to my Facebook page. I would like to know who uploaded the pictures and after some research I managed to get this following PHP code: $args = array( 'message' => $fbme['name'].' will have a love marriage.', 'image' => '@' . realpath('./images/wall-e-and-eva1.jpg'), ); $data = $facebook->api('/'.$uid.'/photos', 'post', $args); My output is suppose to be on the lines of *Adam Smith will have a love marriage* unfortunately the only output I am getting is *will have a love marriage*. How can I get the value of $fbme['name'] - can you give me a pratical example of code please? Thanks.
0
[ 2, 5816, 3056, 26622, 76, 71, 16866, 21, 2151, 568, 9090, 13, 26120, 13, 18, 43, 197, 60, 800, 3726, 3726, 31, 57, 21, 9090, 4865, 30, 2965, 3878, 20, 71, 8294, 3104, 37, 51, 2271, 20, 51, 9090, 2478, 9, 31, 83, 101, 20, 143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 - Logo Animation - Don't know where to begin === I'm trying to have a cool little animation for my logo when it first appears on my Android App screen. I have completely no idea how I would implement this idea though, OpenGL, Make a video and import it into an activity, other options? Here is what I would like to accomplish: ![enter image description here][1] Step 1: Start the bottom line of the triangle Step 2: Start going up and back down and connect Step 3: Have my custom logo fade into the triangle Am I going out of my way trying to learn how to do this, or am I better off just having my logo show up as an image? [1]: http://i.stack.imgur.com/UF37J.png
0
[ 2, 13005, 13, 8, 6449, 6236, 13, 8, 221, 22, 38, 143, 113, 20, 2348, 800, 3726, 3726, 31, 22, 79, 749, 20, 57, 21, 2700, 265, 6236, 26, 51, 6449, 76, 32, 64, 1780, 27, 51, 13005, 4865, 2324, 9, 31, 57, 1524, 90, 882, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
fast ajax update === I'm trying to replicate some functionality which looks similar with the process of adding comments on SO. I’m using jQuery AJAX post: $.post(), but the process of adding a comment take longer on my machine than on SO. I assume that SO uses a much smarter approach. Do you know how SO does comments add/edit?
0
[ 2, 1512, 20624, 11100, 800, 3726, 3726, 31, 22, 79, 749, 20, 22156, 109, 18548, 56, 1879, 835, 29, 14, 953, 16, 4721, 7534, 27, 86, 9, 31, 1, 79, 568, 487, 8190, 93, 20624, 678, 45, 5579, 9, 6962, 5, 6, 15, 47, 14, 953, 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...
Cant create D3D hardware overlay c++ === someone has understood how to use the CreateHWOverlay() function ([source][1])? Can you give me the some simple working code with this funtion or explain steps. I have only goes unhandled exceptions to it. Or tell me how to make differently HW ovelay. Thank You! [1]: http://msdn.microsoft.com/en-us/library/windows/desktop/dd797814%28v=vs.85%29.aspx
0
[ 2, 2973, 1600, 13, 43, 240, 43, 7610, 84, 4414, 272, 20512, 800, 3726, 3726, 737, 63, 4014, 184, 20, 275, 14, 1600, 252, 499, 2549, 4414, 5, 6, 1990, 13, 5, 2558, 12097, 500, 2558, 165, 500, 6, 60, 92, 42, 590, 55, 14, 109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the meaning of following method in opencv? === I'm doing project on object detection using javacv in that I went through couple of code examples which use to detect rectangles and I found that all most all the code examples contains following method inside those classes. Please can some one explain the meaning or the usage of this method. double angle( CvPoint* pt1, CvPoint* pt2, CvPoint* pt0 ) { double dx1 = pt1->x - pt0->x; double dy1 = pt1->y - pt0->y; double dx2 = pt2->x - pt0->x; double dy2 = pt2->y - pt0->y; return (dx1*dx2 + dy1*dy2)/sqrt((dx1*dx1 + dy1*dy1)*(dx2*dx2 + dy2*dy2) + 1e-10); } [This][1] is the source of that method. [1]: http://download.andol.info/CombinedObjectsRecognition.cpp
0
[ 2, 98, 25, 14, 1813, 16, 249, 2109, 19, 368, 12732, 60, 800, 3726, 3726, 31, 22, 79, 845, 669, 27, 3095, 11643, 568, 8247, 12732, 19, 30, 31, 296, 120, 1335, 16, 1797, 3770, 56, 275, 20, 9092, 27181, 18, 17, 31, 216, 30, 65, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 backend: How to add jscolor? === I am trying to add a colorpicker in the backend of Magento. So far i have probabaly the class. (see below). But i have no idea how the Data.php file should look like. an anyone help or give me an example? Greets <p>class Namespace_Module_Block_System_Config_Form_Field_Colorpicker extends Mage_Adminhtml_Block_System_Config_Form_Field { protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) { $url = Mage::getBaseUrl('js'); $element->addClass("color"); $output = ""; if(!defined("_LOADED_JSCOLOR_")){ $jspath = $url.'jscolor/jscolor.js'; $output .= '<script type="text/javascript" src="'.$jspath.'"></script>'; define("_LOADED_JSCOLOR_",1); } $output .= $element->getElementHtml(); return $output; } }</p>
0
[ 2, 4723, 17050, 97, 2451, 45, 184, 20, 3547, 487, 18, 11282, 60, 800, 3726, 3726, 31, 589, 749, 20, 3547, 21, 1665, 16855, 106, 19, 14, 97, 2451, 16, 4723, 17050, 9, 86, 463, 31, 57, 895, 22149, 102, 14, 718, 9, 13, 5, 1798, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 sliding ul li === I'm trying to make a simple navigation menu with jquery, where you hover over one of the li, and a sub ul li slides in under it. I can get it to work with slideToggle() just fine, but can't for the life of me get slide to work. (I was debugging with click but need it to be hover). Javascript: <script type="text/javascript"> // Wait for the page and all the DOM to be fully loaded $(document).ready(function() { // Add the 'hover' event listener to our drop down class $(".dropdown").click(function() { // When the event is triggered, grab the current element 'this' and // find it's children '.sub_navigation' and display/hide them //$(this).find('.sub_navigation').slideToggle(); $(this).find(".sub_navigation").show("slide", { direction: "left" }, 1000); }); }); </script> CSS ul { margin:0; padding:0; list-style-type:none; min-width:200px; } ul#navigation { float:left; } ul#navigation li { float:left; border:1px black solid; min-width:200px; } ul.sub_navigation { position:absolute; display:none; overflow: hidden; } ul.sub_navigation li { clear:both; margin-left: 9999px; float: left; } a,a:active,a:visited { display:block; padding:10px; } List <div id="menu"> <ul id="navigation"> <li class="dropdown"><a href="javascript:ajaxpage('home.php', 'body');">Home</a></li> <li class="dropdown"><a href="javascript:ajaxpage('projects.php', 'body');">Projects</a> <ul class="sub_navigation"> <!-- pull projects with P H P --> <?php require('config/config.php'); //pull all data from projects table $result = mysql_query("SELECT * FROM projects") or die('Unable to query!'); $num_results = mysql_num_rows($result); //make sure there is at least 1 project if ($num_results > 0) { //loop to catch each project in database while ($row = mysql_fetch_array($result)) { //return in list each project name ?> <li><a href="openproject.php?id=<? echo $row['id']; ?>"><? echo $row['name']; ?></a></li> <?php } } else { //return to add a project ?> <li><a href="createproj.php">Add a project</a></li> <?php } ?> </ul> </li> <li class="dropdown"><a href="javascript:ajaxpage('pubfiles.php', 'body');">Public Files</a></li> <li class="dropdown"><a href="javascript:ajaxpage('users.php', 'body');">Users</a></li> <li class="dropdown"><a href="javascript:ajaxpage('settings.php', 'body');">Settings</a></li> <!-- only pull if admin and logged in per P H P session--> <li class="dropdown"><a href="javascript:ajaxpage('admin.php', 'body');">Admin</a></li> </ul> </div>
0
[ 2, 487, 8190, 93, 7609, 13, 1287, 2093, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 21, 1935, 8368, 11379, 29, 487, 8190, 93, 15, 113, 42, 21350, 84, 53, 16, 14, 2093, 15, 17, 21, 972, 13, 1287, 2093, 18066, 19, 131, 32, 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...
Restricting length of readline on socket in Python === I'm working on a server, and all of the data is line based. I want to be able to raise an exception when a line exceeds a given length without reading any more data than I have to. For example, client _X_ sends a line that's 16KB long even though the line-length limit is 1024 bytes. After reading more than 1024 bytes, I want to stop reading additional data, close the socket and raise an exception. I've looked through the docs and some of the source code, and I don't see a way to do this without rewriting the _readline method. Is there an easier way that I'm overlooking?
0
[ 2, 15436, 68, 1476, 16, 1302, 1143, 27, 18482, 19, 20059, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 8128, 15, 17, 65, 16, 14, 1054, 25, 293, 432, 9, 31, 259, 20, 44, 777, 20, 3972, 40, 5391, 76, 21, 293, 11976, 18, 21, 504, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
online storage provider that allow drive mapping === I been googling around trying to find an online storage (cloud) provider that allows * at least 100GB of storage * map the storage as network drive (I mean, "net use x: \\<provider>\<folder>") * will allow to copy files at least 5GB in size I don't need any "backup", "sync" or "encription" functionality, Im just looking for a NAS on the cloud, plain and simple. I first tried "google drive", then Skydrive, then dropbox and to my surprise none of those will allow to map a network drive... then continued searching and found - crash plan (dont allow to map network drive) - go daddy online storage (2GB file size limit) - carbonite (dont allow to map network drive) - livedrive, justcloud, box.net, etc, etc. and the list go on... I just cant believe it can be this hard to find just a simple cloud NAS provider. An Amazon S3 bucket can do it, but mapping the drive will requiere 3rd party tools and it will cost a fortune since the price is based on bandwidth, not storage. Any suggestions?
0
[ 2, 2087, 4326, 11747, 30, 1655, 1493, 13305, 800, 3726, 3726, 31, 74, 162, 5598, 802, 140, 749, 20, 477, 40, 2087, 4326, 13, 5, 19174, 6, 11747, 30, 2965, 1637, 35, 639, 808, 11400, 16, 4326, 1637, 2942, 14, 4326, 28, 982, 1493, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dijkstra and A* algorithm implementation === I need the implementation of Dijkstra and A* algorithms in C++. My graph is something like this source_node target_node cost one_way 3 10 200 0 4 200 150 1 5 599 345 1 . . . . . . . . . . . . . . . . . . . . Also, I need the ordered nodes forming the shortestpath
4
[ 2, 13, 28395, 5253, 17, 21, 2483, 9083, 6123, 800, 3726, 3726, 31, 376, 14, 6123, 16, 13, 28395, 5253, 17, 21, 2483, 15935, 19, 272, 20512, 9, 51, 7210, 25, 301, 101, 48, 1267, 1, 251, 546, 2935, 1, 251, 546, 1516, 53, 1, 1443...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 sorting direction with CakePHP paginator helper === I'm using the CakePHP pagination helper in my view to display the sorting links like this: <div class="top-bar"> <div class="sorts"> <?php echo $this->Paginator->sort('uploaded'); ?> &bull; <?php echo $this->Paginator->sort('views'); ?> &bull; <?php echo $this->Paginator->sort('orig_name', 'Name'); ?> </div> <div class="clear"></div> </div> It works fine, but I wanted to display them a little differently. I want the sorting direction (asc or desc) to be displayed in the sorting link. For example, if I'm sorting by time uploaded ASC, I want the linkt to display `Uploaded desc`, and if I click that and sort uploads by DESC, I want it to then display `Uploaded asc`. Basically the opposite of what it's currently sorted by. Is this possible? I've looked at the documentation on the pagination helper and it doesn't look like it is.
0
[ 2, 3042, 2058, 68, 1400, 29, 8390, 26120, 19006, 108, 3457, 448, 106, 800, 3726, 3726, 31, 22, 79, 568, 14, 8390, 26120, 19006, 108, 857, 448, 106, 19, 51, 1418, 20, 3042, 14, 2058, 68, 6271, 101, 48, 45, 13, 1, 12916, 718, 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...
Set delegate to an instance of my class? === I have a c++/obj c set of files to create a sort of C++ wrapper for Growl (which is Obj C) however I am stuck on one part. I need to set a Growl Delegate to something inside my Obj C class so that the registration gets called. This is my .mm #import "growlwrapper.h" @implementation GrowlWrapper - (NSDictionary *) registrationDictionaryForGrowl { return [NSDictionary dictionaryWithObjectsAndKeys: [NSArray arrayWithObject:@"Upload"], GROWL_NOTIFICATIONS_ALL, [NSArray arrayWithObject:@"Upload"], GROWL_NOTIFICATIONS_DEFAULT , nil]; } @end void showGrowlMessage(std::string title, std::string desc) { std::cout << "[Growl] showGrowlMessage() called." << std::endl; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [GrowlApplicationBridge setGrowlDelegate: @""]; [GrowlApplicationBridge notifyWithTitle: [NSString stringWithUTF8String:title.c_str()] description: [NSString stringWithUTF8String:desc.c_str()] notificationName: @"Upload" iconData: nil priority: 0 isSticky: YES clickContext: nil ]; [pool drain]; } int main() { showGrowlMessage("Hello World!", "This is a test of the growl system"); return 0; } and my .h #ifndef growlwrapper_h #define growlwrapper_h #include <string> #include <iostream> #include <Cocoa/Cocoa.h> #include <Growl/Growl.h> using namespace std; void showGrowlMessage(std::string title, std::string desc); int main(); #endif @interface GrowlWrapper : NSObject <GrowlApplicationBridgeDelegate> @end now as you can see my `[GrowlApplicationBridge setGrowlDelegate: @""];` is being set to an empty string, I need to set it to something so that the `registrationDictionaryForGrowl` gets called, which is currently not being called. But I can't figure out how to do it. Any help?
0
[ 2, 309, 11300, 20, 40, 4851, 16, 51, 718, 60, 800, 3726, 3726, 31, 57, 21, 272, 20512, 118, 111, 11741, 272, 309, 16, 6488, 20, 1600, 21, 2058, 16, 272, 20512, 28051, 26, 11739, 13, 5, 2140, 25, 5122, 728, 272, 6, 207, 31, 589...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
onItemClick get wrong item === My OnClickListener seems to pick the wrong item from a ListView. The Listener always picks the first item in the list. This is my Activity where the OnClickListener public class ShowCharts extends ListActivity{ ProgressDialog pDialog; static String url_read = "PHP DATA LINK"; static String TAG_ID="id", TAG_CHARTS="charts", TAG_SUCCESS = "success", TAG_INTERPRET="interpret", TAG_TITEL="titel", TAG_ALBUM="album", TAG_ALBUMCOVER="albumcover", TAG_LIKES="likes"; ArrayList<HashMap<String, String>> songslist; JSONParser jParser = new JSONParser(); JSONArray charts = null; String content; ListView list; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.charts); songslist = new ArrayList<HashMap<String, String>>(); new LoadCharts().execute(); list = getListView(); list.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View v, int position, long id) { // getting values from selected ListItem String cid = ((TextView)findViewById(R.id._id)).getText().toString(); // Starting new intent Intent in = new Intent(getApplicationContext(),EditSong.class); // sending id to next activity in.putExtra(TAG_ID, cid); // starting new activity and expecting some response back startActivityForResult(in, 100); } }); Thats the next Activity, where i get the Data by the Acitvity before: public class EditSong extends Activity { EditText txtInterpret; EditText txtTitel; EditText txtAlbum; EditText txtAlbumcover; Button btnSpeichern; Button btnLoeschen; String cid; // Progress Dialog private ProgressDialog pDialog; // JSON parser class JSONParser jsonParser = new JSONParser(); // single product url private static final String url_details = "PHP DETAILS LINK"; // url to update product private static final String url_update = "PHP UPDATE LINK"; // url to delete product private static final String url_delete = "PHP DELTE LINK"; // JSON Node names private static final String TAG_SUCCESS = "success"; private static final String TAG_CHARTS = "charts"; private static final String TAG_ID = "id"; private static final String TAG_INTERPRET = "interpret"; private static final String TAG_TITEL = "titel"; private static final String TAG_ALBUMCOVER = "albumcover"; private static final String TAG_ALBUM = "album"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.editsong); // save button btnSpeichern = (Button) findViewById(R.id._speichernButton); btnLoeschen = (Button) findViewById(R.id._loeschen); // getting product details from intent Intent i = getIntent(); // getting product id (id) from intent cid = i.getStringExtra(TAG_ID); This is my Adapter import java.util.ArrayList; import java.util.HashMap; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; public class LazyAdapter extends BaseAdapter { private Activity activity; private ArrayList<HashMap<String, String>> data; private static LayoutInflater inflater=null; public ImageLoader imageLoader; public LazyAdapter(Activity a, ArrayList<HashMap<String, String>> d) { activity = a; data=d; inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); imageLoader = new ImageLoader(activity.getApplicationContext()); } public int getCount() { return data.size(); } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { View vi=convertView; if(convertView==null) vi = inflater.inflate(R.layout.list_row, null); TextView id = (TextView)vi.findViewById(R.id._id); //id TextView title = (TextView)vi.findViewById(R.id.title); // title TextView artist = (TextView)vi.findViewById(R.id.artist); // artist name TextView likes = (TextView)vi.findViewById(R.id.likes); // likes ImageView thumb_image = (ImageView)vi.findViewById(R.id.list_image); // thumb image HashMap<String, String> song = new HashMap<String, String>(); song = data.get(position); // Setting all values in listview id.setText(song.get(ShowCharts.TAG_ID)); title.setText(song.get(ShowCharts.TAG_TITEL)); artist.setText(song.get(ShowCharts.TAG_INTERPRET)); likes.setText(song.get(ShowCharts.TAG_LIKES)); imageLoader.DisplayImage(song.get(ShowCharts.TAG_ALBUMCOVER), thumb_image); return vi; } }
0
[ 2, 27, 2119, 4829, 10129, 164, 1389, 9101, 800, 3726, 3726, 51, 27, 150, 10129, 13891, 106, 2206, 20, 2036, 14, 1389, 9101, 37, 21, 968, 4725, 9, 14, 21772, 550, 13267, 14, 64, 9101, 19, 14, 968, 9, 48, 25, 51, 2358, 113, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting a data structure equivalent to asXML() in pyparsing? === I learned that in pyparsing, you can name an element/group/node by doing this: <!-- language: lang-py --> token = pyparsing.Literal("Foobar")("element_name_here") So, I made a sample program to test it out: <!-- language: lang-py --> import pyparsing as pp Prefix = pp.Word(pp.nums)("Prefix") Name = pp.Literal("FOOBAR")("Name") Modifier = pp.Word(pp.alphas)("Modifier") Modifier_Group = pp.Group(pp.OneOrMore(Modifier))("Modifier_Group") Sentence = pp.Group(pp.Optional(Prefix) + Name + Modifier_Group)("Sentence") out = Sentence.parseString("123 FOOBAR testA testB") Then, I tried getting the output with these named tokens. I tried this: <!-- language: lang-py --> >>> print out [['123', 'FOOBAR', ['testA', 'testB']]] ...but that doesn't get me the token names. I then tried doing the following: <!-- language: lang-py --> >>> print out.items() [('Sentence', (['123', 'FOOBAR', (['testA', 'testB'], {'Modifier': [('testA', 0), ('testB', 1)]})], {'Modifier_Group': [((['testA', 'testB'], {'Modifier': [('testA', 0), ('testB', 1)]}), 2)], 'Prefix': [('123', 0)], 'Name': [('FOOBAR', 1)]}))] >>> print dict(out) {'Sentence': (['123', 'FOOBAR', (['testA', 'testB'], {'Modifier': [('testA', 0), ('testB', 1)]})], {'Modifier_Group': [((['testA', 'testB'], {'Modifier': [('testA', 0), ('testB', 1)]}), 2)], 'Prefix': [('123', 0)], 'Name': [('FOOBAR', 1)]})} >>> import collections >>> print collections.OrderedDict(out) OrderedDict([('Sentence', (['123', 'FOOBAR', (['testA', 'testB'], {'Modifier': [ ('testA', 0), ('testB', 1)]})], {'Modifier_Group': [((['testA', 'testB'], {'Modifier': [('testA', 0), ('testB', 1)]}), 2)], 'Prefix': [('123', 0)], 'Name': [('FOOBAR', 1)]}))]) ...but they contained a peculiar mixture of dicts, lists, and tuples, and I couldn't figure out how to parse them. Then, I tried doing this: <!-- language: lang-xml --> >>> print out.asXML() <Sentence> <Sentence> <Prefix>123</Prefix> <Name>FOOBAR</Name> <Modifier_Group> <Modifier>testA</Modifier> <Modifier>testB</Modifier> </Modifier_Group> </Sentence> </Sentence> ...and that got me EXACTLY what I wanted, except that it's in XML, instead of a python data structure that I can easily manipulate. Is there some way to get such a data structure (without having to parse the XML)? I did find a solution that returns a [nested dict](http://stackoverflow.com/questions/9995627/cant-get-pyparsing-dict-to-return-nested-dictionary), but dicts in python are unordered, (and I want the tokens in order), so it isn't a solution for me.
0
[ 2, 1017, 21, 1054, 1411, 4602, 20, 28, 396, 8184, 5, 6, 19, 7103, 3574, 18, 68, 60, 800, 3726, 3726, 31, 2691, 30, 19, 7103, 3574, 18, 68, 15, 42, 92, 204, 40, 4520, 118, 8024, 118, 251, 546, 34, 845, 48, 45, 13, 1, 187, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Models not updating on initial load of homepage in Wicket === I'm having some problems understanding what I'm doing wrong. **What I do:** - Override getHomePage() in my Application. I return MyStartPage.class. - MyStartPage is a subclass of MySubPage. - MySubPage is a subclass of MySuperPage. - In MySuperPage I add a Panel. This Panel has a TextField<String> and WebMarkupContainer with a AjaxEventBehavior(onclick) that prints the backing modelObject of the textfield. **What happens when I start my server and browse localhost/MyApp:** - The printed modelObject is null even though the user input is not when I click my WebMarkupContainer. **What happens when I start my server, browse localhost/MyApp, go to another Page in my app and then back to MyStartPage:** - The printed modelObject matches the user input when I click my WebMarkupContainer. **It also works when I do the following:** - Override getHomePage() in my Application and return MyLoginPage. MyLoginPage contains MySigninPanel. In MySigninPanel I override onSignInSucceeded() like this: @Override protected void onSignInSucceeded() { setResponsePage(new MyStartPage()); } Can someone shed some light on what the correct way of getting my TextField to work properly when the user clicks the WebMarkupContainer the first thing they do? Thanks in advance!
0
[ 2, 2761, 52, 71, 43, 1880, 27, 2104, 6305, 16, 213, 6486, 19, 14414, 800, 3726, 3726, 31, 22, 79, 452, 109, 1716, 3260, 98, 31, 22, 79, 845, 1389, 9, 13, 1409, 608, 31, 107, 45, 1409, 13, 8, 84, 11891, 164, 8167, 6486, 5, 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...
Background blink on every page load === I noticed that some websites has always shown background http://www.gardeners.com/. At Every pageload you will see background, and no white color blinking in background! Other example is http://www.atombicycles.com. You will see white color blink before every pageload! This is how standart background parameter is working I'm looking for cross-browser decision to stick background all the time when user is browsing in website
0
[ 2, 2395, 11718, 27, 352, 2478, 6305, 800, 3726, 3726, 31, 2711, 30, 109, 13931, 63, 550, 1721, 2395, 7775, 6903, 6483, 9, 22272, 445, 9, 960, 118, 9, 35, 352, 2478, 8294, 42, 129, 196, 2395, 15, 17, 90, 359, 1665, 18015, 19, 239...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 keep a variables's value in javascript === I'm a page that redirects to itself. (With next day and previous day arrows) At document.ready the page displays the new day. The days are stored in a localStorage like this : for(var i = 0;i<status.length;i++) { localStorage["Day" + i] = status[i].name; } I want the default day that shows every time is "Day0" then when the user clicks next or previous the other day is showed. $(document).ready(function () { $("#CurrentDay").empty(); $("#CurrentDay").append(GetCurrentDay()); }); function GetCurrentDay() { localStorage["CurrentDay"] = localStorage["Day0"]; return localStorage["CurrentDay"]; } I made the arrows call these functions: function GoToNextDay() { if (i != localStorage["SchoolDays"]+1) { i = i + 1; localStorage["CurrentDay"] = localStorage["Day" + i]; } else { localStorage["CurrentDay"] = localStorage["Day" + 0]; } } function GoToPrevDay() { if (i != 0) { i = i - 1; localStorage["CurrentDay"] = localStorage["Day" + i]; } else { localStorage["CurrentDay"] = localStorage["Day" + localStorage["SelectedDaysNumber"]]; } } I'm wondering how can I store the value "i" coz when I initialize it with "0" at the beginning of the script, it keeps returning to 0 whenever the page is called, and if I made it with no value how can I know the place I'm starting at ?
0
[ 2, 184, 20, 643, 21, 12157, 22, 18, 1923, 19, 8247, 8741, 800, 3726, 3726, 31, 22, 79, 21, 2478, 30, 302, 14706, 18, 20, 1145, 9, 13, 5, 1410, 328, 208, 17, 1158, 208, 13912, 6, 35, 4492, 9, 15193, 14, 2478, 9412, 14, 78, 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...
Migrate bitwise operators for unsigned types to java (without unsigned types) === I'm migrating an iOS app to Android. This iOs app uses types like uint32_t. This is an unsigned int 32 which it is not available on Java. uint32_t range is 0 to 4,294,967,295. int32_t can hold values from –2,147,483,648 to 2,147,483,647 Which type must I use on Android? with long? I have decided to use C instead of Java because I have this code in Objective-C: uint32_t vectorRxV1; [ ... ] UInt8 CM_L = (vectorRxV1 & 0xBB000000) >> 24; And also: vectorTxV0 += ((vectorTxV1<<4) + VectorSelK0) ^ (vectorTxV1 + sum) ^ ((vectorTxV1>>5) + VectorSelK1); I'm not sure if I use a `long` instead of `uint32_t` (or `int` instead of `UInt8`, the code above will give different value. What do you think?
0
[ 2, 22985, 1142, 10474, 9475, 26, 28839, 2551, 20, 8247, 13, 5, 14506, 28839, 2551, 6, 800, 3726, 3726, 31, 22, 79, 28749, 40, 13, 7760, 4865, 20, 13005, 9, 48, 13, 7760, 4865, 2027, 2551, 101, 287, 6391, 3125, 1, 38, 9, 48, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Suggestions for Rigid Attribute Relationships === I have a rigid relationship defined between two attributes in a dimension. This is a business case, and we expect that the "parent" attribute will never change. However, we are seeing an intermittent circumstance where, during a ProcessUpdate of the dimension, the query for the parent attribute is executed first, and before query for the the child attribute is executed, a record is inserted into the underlying database. Thus, when the child attribute query is executed, it reads data that wasn't present when the first attribute was processed, and thus the parent attribute is presumably assigned the unknown member. During the next ProcessUpdate of that dimension, since the parent attribute now picks up the new data and sees that the parent attribute is no longer the "unknown" member but another valid member, an error is thrown proclaiming that the rigid relationship was violated. What actions can be taken here? 1. Remove the rigid relationship -- but if rigid relationships are supposed to be defined by business cases, and we have a valid business case, is this just a design flaw in SSAS? 2. Arrange the order in which the attributes are processed -- If the child attribute was processed before the parent attribute, then we wouldn't be encountering this issue. Is arranging processing of attributes even possible in SSAS? 3. Do a full process on the dimension -- We have other dimensions with rigid relationships, should we set them all to ProcessFull? If so, then, to keep rigid relationships, why even have the other processing options? 4. Are there other options to consider, like maybe changing the error configuration, or something? Please let me know what you think would be the best approach. Thanks, Greg
0
[ 2, 18389, 26, 10420, 35, 14755, 5833, 800, 3726, 3726, 31, 57, 21, 10420, 1429, 2811, 128, 81, 13422, 19, 21, 9547, 9, 48, 25, 21, 508, 610, 15, 17, 95, 4186, 30, 14, 13, 7, 18908, 7, 35, 14755, 129, 243, 753, 9, 207, 15, 95...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Programmatic video transcoding === Are there any libraries available that allow Android applications to transcode videos to different formats? If libraries are not available, are there any applications that can be invoked through intents that can do this?
0
[ 2, 625, 6732, 763, 2982, 15458, 800, 3726, 3726, 50, 80, 186, 8649, 904, 30, 1655, 13005, 3767, 20, 2982, 9375, 6610, 20, 421, 13767, 60, 100, 8649, 50, 52, 904, 15, 50, 80, 186, 3767, 30, 92, 44, 26252, 120, 6936, 18, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Backbone.js Pushstate: true not returning callback function === I am pretty new to backbone js and I am having some problem getting the pushstate functionality of my app to work. Here is an eg of my route: var TodoRouter = new (Backbone.Router.extend({ routes: { "": "index", "item/add": "AddTodoItem", "list/add": "AddTodoList" }, AddTodoItem: function() { //e.preventDefault(); alert("add new item"); }, AddTodoList: function(e) { //e.preventDefault(); alert("add new list"); }, Start: function(){ //note: my directory structure is localhost/playground/todo/ Backbone.history.start({pushState: true, root: "/playground/todo/"}); }, initalize: function(){ }, index: function(){ var todoListView = new TodoListView({ collection: TodoItemCollection }); } })); Here is how I call my route: $(function() { TodoRouter.Start(); }); And lastly here is how I call a link: <a href="#list/add" id="newList">New List</a> The problem that I am running into is that when I call the link, the page stays the same, no alert and the browser displays: http://localhost/playground/todo/#list/add Now here is the funny part, if I refresh the page, the url become: http://localhost/playground/todo/list/add and I get the alert. So I have a feeling I am missing a key point somewhere. Any help would be greatly appreciated!
0
[ 2, 24036, 9, 728, 18, 3250, 3859, 45, 1151, 52, 2485, 645, 1958, 1990, 800, 3726, 3726, 31, 589, 1772, 78, 20, 24036, 487, 18, 17, 31, 589, 452, 109, 1448, 1017, 14, 3250, 3859, 18548, 16, 51, 4865, 20, 170, 9, 235, 25, 40, 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...
Sql group by too many conditions === I have the following table: Order Product Price Quantity Description Order1 Product1 12 1 Text Order1 Product2 15 2 Text Order1 Product3 32 1 Text Order2 Product1 25 2 Text Order2 Product4 65 3 Text And I need to show the details for Order 1 (product, price, qty, description), plus the total value of that order. Is there any easy way to do this?
0
[ 2, 4444, 255, 214, 34, 266, 151, 2039, 800, 3726, 3726, 31, 57, 14, 249, 859, 45, 389, 2374, 2162, 12881, 5318, 389, 165, 2374, 165, 390, 137, 1854, 389, 165, 2374, 135, 357, 172, 1854, 389, 165, 2374, 240, 2512, 137, 1854, 389, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Apache, grouping subdomains === I'm trying to set up some basic virtualhosts in Apache2, within the domain `nosoftpatents.com` (invented). I'm supposed to have two subdomains, friendly and previous, each of them accessible from two ports, 80 and 8800, that are to be linked to the `stable` and `devel` subdirectories of each domain. So far, I have this: <VirtualHost *:80> ServerName friendly.nosoftpatents.com DocumentRoot /var/www/nopatents/friendly/stable </VirtualHost> <VirtualHost *:80> ServerName previous.nosoftpatents.com DocumentRoot /var/www/nopatents/previous/stable </VirtualHost> <VirtualHost *:8800> ServerName friendly.nosoftpatents.com DocumentRoot /var/www/nopatents/friendly/devel </VirtualHost> <VirtualHost *:8800> ServerName previous.nosoftpatents.com DocumentRoot /var/www/nopatents/previous/devel </VirtualHost> Is there a more elegant way of doing it? Some way of grouping the hosts from the same port?
0
[ 2, 17140, 15, 19288, 972, 537, 6232, 18, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 71, 109, 2125, 6599, 11694, 18, 19, 17140, 135, 15, 363, 14, 4603, 13, 1, 251, 12980, 5972, 2291, 18, 9, 960, 1, 13, 5, 108, 6645, 69, 6, 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...
VALIDITY of Access token in facebook graph api === If I have an access token then, can I somehow parse it to know at what time it will expire?
0
[ 2, 19058, 16, 1381, 20, 2853, 19, 9090, 7210, 21, 2159, 800, 3726, 3726, 100, 31, 57, 40, 1381, 20, 2853, 94, 15, 92, 31, 3625, 2017, 870, 32, 20, 143, 35, 98, 85, 32, 129, 25910, 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, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
PL/SQL: Insert or Update Trigger "select count" results === My trigger takes an input. (NEW:input_id) With this input, it will generate new ID's using a dynamically generate queries. The instructions for the dynamically generated queries are stored in QUERY_REF. It uses a cursor to retrieve query_ids for generating dynamic queries: CURSOR C_QUERY IS SELECT QUERY_ID FROM QUERY_REF WHERE GENERATE_IND='Y'; OPEN C_QUERY; LOOP FETCH C_QUERY INTO QUERY_ID_RET; EXIT WHEN C_QUERY%NOTFOUND; INPUT_ID and QUERY_ID_RET have been used succesfully to create Output_ID in function gethostID. I'm trying to run an insert, update based on whether a record is found. The Select counts are returning o. IF INSERTING THEN IF INSERTING THEN INSERT INTO DETAIL_TABLE ( INPUT_ID, OUTPUT_ID, QUERY_ID, DATE_MODIFIED ) VALUES ( :NEW.INPUT_ID, OutputID, QUERY_ID_RET SYSDATE ); ELSIF UPDATING THEN --Input_ID Record exists before, and detail is recalculated SELECT COUNT(*) INTO resultcount FROM query_str_ref WHERE INPUT_ID=:NEW.INPUT_ID AND QUERY_ID=QUERY_ID_RET; IF resultcount>0 THEN UPDATE DETAIL_TABLE SET OUTPUT_ID = OutputID, DATE_MODIFIED =SYSDATE WHERE INPUT_ID=:NEW.INPUT_ID AND QUERY_ID=QUERY_ID_RET; --Input_ID Record exists before, but detail not calculated ELSE INSERT INTO DETAIL_TABLE ( INPUT_ID, OUTPUT_ID, QUERY_ID, DATE_MODIFIED ) VALUES ( :NEW.INPUT_ID, OutputID, QUERY_ID_RET SYSDATE ); This line returns 0: SELECT COUNT(*) INTO resultcount FROM query_str_ref WHERE INPUT_ID=:NEW.INPUT_ID AND QUERY_ID=QUERY_ID_RET So I can't get the update clause to run. Does anyone see an error in my syntax?
0
[ 2, 12443, 118, 18, 22402, 45, 14692, 54, 11100, 7286, 13, 7, 18, 16964, 2468, 7, 1736, 800, 3726, 3726, 51, 7286, 1384, 40, 6367, 9, 13, 5, 2681, 45, 108, 4881, 1, 1340, 6, 29, 48, 6367, 15, 32, 129, 7920, 78, 4924, 22, 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...
Updating a Classic ASP website without interrupting service === A couple of questions: 1) How can I update a Classic ASP website/page without interrupting service (users getting an error or service unavailable message) or shutting the website down temporarily? 2) When updating/restoring a MSSQL DB via SQL Server Management Studio, will the website users get an error message? Thanks in advance.
0
[ 2, 71, 43, 1880, 21, 2732, 28, 306, 2271, 366, 24820, 365, 800, 3726, 3726, 21, 1335, 16, 2346, 45, 137, 6, 184, 92, 31, 11100, 21, 2732, 28, 306, 2271, 118, 6486, 366, 24820, 365, 13, 5, 16704, 18, 1017, 40, 7019, 54, 365, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
REAL column holding values outside documented range === According to [MSDN][1], the range for REAL values is - 3.40E + 38 to -1.18E - 38, 0 and 1.18E - 38 to 3.40E + 38. However, I have quite a few values beyond that range in my table. The following query returns lots of very small values and no very large ones: SELECT MyColumn , * FROM data.MyTable WHERE MyColumn <> 0 AND ( MyColumn < CONVERT(REAL, 1.18E-38) OR MyColumn > CONVERT(REAL, 3.40E+38) ) AND ( MyColumn < CONVERT(REAL, -3.40E+38) OR MyColumn > CONVERT(REAL, -1.18E-38) ) It is easy to show how these values end up in the table. I cannot insert them directly: CREATE TABLE a(r REAL NULL); GO INSERT INTO a(r) VALUES(4.330473E-39); GO SELECT r FROM a GO DROP TABLE a; ---- 0.0 But I can divide two columns and get and outside of range value: CREATE TABLE a ( r1 REAL NULL , r2 REAL NULL , r3 REAL NULL ) ; GO INSERT INTO a ( r1, r2 ) VALUES ( 4.330473E-38, 1000 ) ; GO UPDATE a SET r3 = r1 / r2 ; SELECT r1 , r2 , r3 FROM a r1 r2 r3 ------------- ------------- ------------- 4.330473E-38 1000 4.330433E-41 So I guess MSDN gives wrong ranges of valid data, correct? Am I missing anything? [1]: http://msdn.microsoft.com/en-us/library/ms173773.aspx
0
[ 2, 683, 4698, 1337, 4070, 719, 8926, 978, 800, 3726, 3726, 496, 20, 636, 79, 18, 43, 103, 500, 2558, 165, 500, 15, 14, 978, 26, 683, 4070, 25, 13, 8, 203, 9, 2602, 62, 2754, 4158, 20, 13, 8, 165, 9, 1087, 62, 13, 8, 4158, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I write exception handling for bad input? === I'm trying to write a function that prompts a user for a five digit number, and I want to write an exception block to handle bad input incase the user tries to enter a string or some non-integer input. I know how to write an exception handling block for something like a division function where you thrown an exception for the denom being 0, but I have no clue how to do this for input that I have no control over. Any thoughts? Thanks for any help in advance!
0
[ 2, 184, 107, 31, 2757, 5391, 7988, 26, 896, 6367, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 1990, 30, 11443, 13531, 21, 4155, 26, 21, 355, 15611, 234, 15, 17, 31, 259, 20, 2757, 40, 5391, 1921, 20, 3053, 896, 6367, 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...
jQuery.ajax() image data from php are not displayed === Im making a simple login form with ajax and i want to display the users name and picture to a div The username is shown but the picture not. $.ajax({ type: 'POST', url: baseURL, dataType: 'json', data: { action: "LOGIN", username: username, password: password }, success: function(data) { if (data == "empty") { $("#errorArea").fadeIn(); $("#errorArea").html("Error: Wrong username or password"); } else { $("#userPanelContent").html(data); } } }); Anyone with help ? =(
0
[ 2, 487, 8190, 93, 9, 6881, 7522, 5, 6, 1961, 1054, 37, 13, 26120, 50, 52, 6115, 800, 3726, 3726, 797, 544, 21, 1935, 6738, 108, 505, 29, 20624, 17, 31, 259, 20, 3042, 14, 3878, 204, 17, 2151, 20, 21, 13, 12916, 14, 4155, 7259,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Handle Windows Messages using QCoreApplication::winEventFilter === I am trying to implement winEventFilter in my QT application using QT Creator, QT SDK and Windows APIs Declared the below in my class file bool winEventFilter ( MSG * msg, long * result ); bool winEventFilter( MSG * msg, long * result ) { if( msg->message == WM_QUERYENDSESSION) DebugLog("shutdown" ; else DebugLog("Quit") ; } I am calling the above method in the following way MSG * msg; long * result; winEventFilter(msg, result); When I logoff or shutting down my computer it never prints the log **shutdown**
0
[ 2, 184, 20, 3053, 1936, 7561, 568, 2593, 10375, 2552, 20669, 45, 45, 17275, 6645, 11924, 815, 800, 3726, 3726, 31, 589, 749, 20, 8713, 2667, 6645, 11924, 815, 19, 51, 2593, 38, 3010, 568, 2593, 38, 9247, 15, 2593, 38, 13, 18, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Weka GUI Explorer Result Node Values === I am running a test set against a model in Weka, and all is well except I cannot figure out how to map the results to a key. I am matching train and test set on col a. all elements have a unique element ID in the CSV. I need to output this element ID field to map the results back to the data. Can anyone help me figure out how to get my hands on the complete result set? Not just the matched column.
0
[ 2, 95, 657, 9457, 8520, 829, 15421, 4070, 800, 3726, 3726, 31, 589, 946, 21, 1289, 309, 149, 21, 1061, 19, 95, 657, 15, 17, 65, 25, 134, 1613, 31, 1967, 1465, 70, 184, 20, 2942, 14, 1736, 20, 21, 1246, 9, 31, 589, 10120, 1528,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JSON output in Postgresql === I hope I am not missing something very obvious here, I want to get JSON output from a postgres function (I imagine many other had already needed this) and I'd be happy to install an extension of contrib functions on my server, Is there any way to get JSON output from sql or plpgsql functions (or with help of db-server-side python)? Specifically I want to get my `record[]` results as JSON.
0
[ 2, 487, 528, 5196, 19, 678, 6879, 18, 22402, 800, 3726, 3726, 31, 1376, 31, 589, 52, 2863, 301, 253, 4674, 235, 15, 31, 259, 20, 164, 487, 528, 5196, 37, 21, 678, 6879, 18, 1990, 13, 5, 49, 4382, 151, 89, 41, 614, 851, 48, 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...
Passing an int to a new ViewController === Ive spent a month trying to pass my int to a new view. My int is called score and is connected to a label called scorelab. The user increases the score and once the they run out of time game switches views to game over screen and i would like the users score to be displayed on the game over screen in a label. The game play controller is called GamePlayViewController and the gave over controller is called GameDidEndViewController. Im tired of trying to get this to work. I have looked at every tutorial possible but nothing seems to work for my case. Please help me i would appreciate it so so much, this is the very last part of game that I need to finish. Thank you in advance!
0
[ 2, 2848, 40, 19, 38, 20, 21, 78, 1418, 12898, 1252, 800, 3726, 3726, 5568, 1111, 21, 1617, 749, 20, 1477, 51, 19, 38, 20, 21, 78, 1418, 9, 51, 19, 38, 25, 227, 1618, 17, 25, 2587, 20, 21, 1899, 227, 1618, 9086, 9, 14, 4155, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reading and Parsing a PDF File using xml parser from server in android === How to Read and Parse a PDF File url inside parser from server in android
0
[ 2, 1876, 17, 2017, 18, 68, 21, 13, 11124, 3893, 568, 23504, 2017, 4104, 37, 8128, 19, 13005, 800, 3726, 3726, 184, 20, 1302, 17, 2017, 870, 21, 13, 11124, 3893, 287, 6362, 572, 2017, 4104, 37, 8128, 19, 13005, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
attach a QDockWidget to top left of the parent widget === I am faced with this problem and being a Qt noob am not able t fix it. Basically, I instantiated a QToolButton and parented it to QTreeWidget. The QTreeWidget is inside a vertical layout and when i try to change the position of the tool button inside the QTreeWidget using QTreeWidget.size() it gives me very unexpected and wrong results. Can anyone help me with this? Will deeply appreciate the help. Thanks!
0
[ 2, 19514, 21, 2593, 11458, 3976, 43, 3060, 20, 371, 225, 16, 14, 4766, 4807, 43, 3060, 800, 3726, 3726, 31, 589, 3110, 29, 48, 1448, 17, 142, 21, 2593, 38, 90, 4995, 589, 52, 777, 13, 38, 6098, 32, 9, 11374, 15, 31, 6322, 49, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 check if a type is assignable to an open generic type when closed with same type parameters? === I need a method that returns true if the passed type is assignable to (derives from) the closure of an open (unbounded) generic type. The method should work as follows: OpenGenericIsAssignableFrom(typeof(ICollection<>), typeof(IList<String>)) Should return true.
0
[ 2, 184, 20, 2631, 100, 21, 1001, 25, 13952, 579, 20, 40, 368, 12733, 1001, 76, 827, 29, 205, 1001, 12905, 60, 800, 3726, 3726, 31, 376, 21, 2109, 30, 4815, 1151, 100, 14, 1100, 1001, 25, 13952, 579, 20, 13, 5, 1157, 1284, 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...
Adding an item dynamically in kendo combobox === If anyone of you have used kendo ui than can you please let me know how to add a new item dynamically in kendo combobox. I have tried searching on google and everywhere and my conclusion is that there is no such feature in kendo. For reference - [JSBIN](http://jsbin.com/ebutaw/2/edit#source) kendo link - [here](http://demos.kendoui.com/web/combobox/index.html) Thanks in advance.
0
[ 2, 4721, 40, 9101, 7782, 1326, 19, 2639, 537, 22621, 5309, 800, 3726, 3726, 100, 1276, 16, 42, 57, 147, 2639, 537, 13, 5661, 119, 92, 42, 2247, 408, 55, 143, 184, 20, 3547, 21, 78, 9101, 7782, 1326, 19, 2639, 537, 22621, 5309, 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...
JQuery - Direct child of direct child === Can anyone help me. I have a table containing a nested table in one of the cells. I want to append "hello world!" to the first cell in each row of the outer table (so in the below html I want to append to cells 1a and 2a only). I tried the following: $("div > table > tr > td:first-child").append(' Hello World!'); on the below html: <div class="divClass"> <table class="tableClass" border="1px"> <tr> <td>1a</td> <td>1b</td> </tr> <tr> <td>2a</td> <td>2b <table border="1px"><tr><td>nested table cell</td></tr></table> </td> </tr> </table> </div>​ but it doesn't work. ( - http://jsfiddle.net/NickyW/x3bqf/ ) Any suggestions? Thanks, Nick
0
[ 2, 487, 8190, 93, 13, 8, 1744, 850, 16, 1744, 850, 800, 3726, 3726, 92, 1276, 448, 55, 9, 31, 57, 21, 859, 3503, 21, 5618, 69, 859, 19, 53, 16, 14, 2934, 9, 31, 259, 20, 4865, 2451, 13, 7, 11515, 126, 187, 7, 20, 14, 64, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a common pattern for initializing object on a background thread? === I have an object that takes a long time to be initialized. Therefore I the capability to Start Initializing on application startup. Any subsequent calls to methods on the class we need to have a delay mechanism that waits for the class to finish initialization. I have a couple of potential solutions however I am not entirely satisfied with either of them. The first uses Task.Delay in a while loop and the second uses SemaphoreSlim but involves some unnecessary blocking. I feel this must be a fairly common requirement, can anybody provide some advice on how to best manage this? Oh btw, this is a Metro application so we have limited API's Here is the pseudocode: public class ExposeSomeInterestingItems { private InitialisationState _initialised; private readonly SemaphoreSlim _waiter = new SemaphoreSlim(0); public async Task StartInitialize() { if (_initialised == InitialisationState.Initialised) throw new InvalidOperationException( "Attempted to initialise ActiveTrackDownloads when it is already initialized"); _initialised = InitialisationState.StartedInitialisation; new TaskFactory().StartNew(async () => { // This takes some time to load this._interestingItems = InterestingItemsLoader.LoadItems(); _waiter.Release(); _initialised = InitialisationState.Initialised; }); } public InterestingItem GetItem(string id) { DelayUntilLoaded(); DelayUntilLoadedAlternative(); } private async Task DelayUntilLoaded() { if (_initialised == InitialisationState.NotInitialised) throw new InvalidOperationException("Error occurred attempting to access details on ActiveTrackDownloads before calling initialise"); while (true) { if (_initialised == InitialisationState.Initialised) return; await Task.Delay(300); } } private async Task DelayUntilLoadedAlternative() { if (_initialised == InitialisationState.NotInitialised) throw new InvalidOperationException("Error occurred attempting to access details on ActiveTrackDownloads before calling initialise"); try { await _waiter.WaitAsync(); } finally { _waiter.Release(); } } }
0
[ 2, 25, 80, 21, 757, 3732, 26, 2104, 3335, 3095, 27, 21, 2395, 9322, 60, 800, 3726, 3726, 31, 57, 40, 3095, 30, 1384, 21, 175, 85, 20, 44, 2104, 1333, 9, 1793, 31, 14, 11480, 20, 799, 2104, 3335, 27, 3010, 20205, 9, 186, 3147, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
install4j packaged application requires administrator access to access disk on windows 7 === We are working on packaging Java 7 application for Windows using install4j. The problem we are having is that on my Windows 7 computer I need to run the installed application as administrator for it to work properly. It fails at the point in which it needs to access the disk. If I run it as administrator, then it works fine. Is there a way around this? I have used other application that were packaged with install4j and access disk and I did not need to run as administrator, so I suspect what I want is possible. Thank you in advance.
0
[ 2, 16146, 300, 728, 6030, 43, 3010, 4781, 8890, 1381, 20, 1381, 8582, 27, 1936, 453, 800, 3726, 3726, 95, 50, 638, 27, 16850, 8247, 453, 3010, 26, 1936, 568, 16146, 300, 728, 9, 14, 1448, 95, 50, 452, 25, 30, 27, 51, 1936, 453, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 2005 delete corrupt table === We are having a database in which one table name dbo.ONOA is corrupt. We need to delete this table. Please let me is there any way to force delete the table? Regards, Naushad Khan
2
[ 2, 4444, 255, 8128, 812, 27448, 11305, 859, 800, 3726, 3726, 95, 50, 452, 21, 6018, 19, 56, 53, 859, 204, 13, 43, 1192, 9, 9835, 58, 25, 11305, 9, 95, 376, 20, 27448, 48, 859, 9, 2247, 408, 55, 25, 80, 186, 161, 20, 558, 274...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to delete from set one specified Pointer*? === If I have set<Pointer*>, Pointer* is pointer to custom class, set is from STL. How to delete from set one specified Pointer* ?
0
[ 2, 184, 20, 27448, 37, 309, 53, 9931, 454, 106, 2483, 60, 800, 3726, 3726, 100, 31, 57, 309, 1, 3132, 106, 2483, 1, 15, 454, 106, 2483, 25, 454, 106, 20, 5816, 718, 15, 309, 25, 37, 354, 255, 9, 184, 20, 27448, 37, 309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to set content_css for TinyMCE in Wicket? === I am kinda new to wicket and am trying to set the content_css for a tinymce editor. But can't figure out how to reference our site's style sheets via `CssResourceReference`. I just want to reference the style sheets I have in our regular wicket markup (`<link href="c/lw.css" ...>`) so the preview in tinymce looks right. In code: TinyMCESettings s = new TinyMCESettings(TinyMCESettings.Theme.advanced); s.setContentCss(????); What goes into `setContentCss` ? Whatever I try with CssResourceReference css = new CssResourceReference(this.class, "lw.css"); points to something weird with `wicket/resource/wicket.contrib.tinymce...` but never to the actual location of our style sheets.
0
[ 2, 184, 20, 309, 2331, 1, 6824, 18, 26, 3228, 79, 1105, 19, 14414, 60, 800, 3726, 3726, 31, 589, 21096, 78, 20, 14414, 17, 589, 749, 20, 309, 14, 2331, 1, 6824, 18, 26, 21, 3228, 79, 1105, 1835, 9, 47, 92, 22, 38, 1465, 70, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Issue with Calling JS function through PHP based on IF statement === I have a web based tool. There is a login where username, loggedin and authorised are stored in session variables. There is one particular page where I have a form that has multiple buttons, I wish to disable one button based on what the users authorisation level is. So if authorised is 0 (user) the button is disabled, else it's enabled as I've only got two authorisation levels, 0 & 1. I've attached what I've done below, and to me it looks right, obviously it's not! Here is the JQuery function: $(function disable(){ $('#signBtn').attr('disabled', true); }); Here is the PHP code: if($_SESSION['authorised'] == '0') { echo "<SCRIPT LANGUAGE='javascript'>disable();</SCRIPT>"; } Here is my HTML code: <input type=\"submit\" name=\"save\" id = \"signBtn\" class = 'eBtnSubmit' value=\"Sign off by Chairperson\" /> If there is anyone out there that can see what my problem is I would really appreciate it...this is my last piece of the puzzle and I'm presenting this today (Software Intern). So basically if the level is 0 call the function. Regards, Gary
0
[ 2, 1513, 29, 2555, 487, 18, 1990, 120, 13, 26120, 432, 27, 100, 3331, 800, 3726, 3726, 31, 57, 21, 2741, 432, 5607, 9, 80, 25, 21, 6738, 108, 113, 4155, 7259, 15, 13, 19287, 108, 17, 22594, 50, 8214, 19, 3723, 12157, 9, 80, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ Factory and Linker dependencies === My library includes an interface (representing a camera) and a few derived classes. Each derived is implemented to specific HW, which leads each derived class to depend on external vendor libraries. - Each derived class is a static library and links its library dependencies - I only supply one class named `Factory`, which has one method: `ICamera* create(const std::string& type)` - The factory #includes and links all derived classes, and library users aren't aware of the derived impls. `create()` is implemented naively: `if (type == "a") return new CameraA();` `if (type == "b") return new CameraB();` `...` So basically there is one bloated Factory.lib that includes all necessary dependencies, and library users can create any camera impl by just linking to Factory.lib **Questions** 1. When you link to Factory.lib, you need all dll's from all vendors when running your application. Ideally I would want you to only need the dll for the specific camera you are using. Is there a way to achieve this? 2. I'm considering compiling each derived as a dll and not lib. Now Factory.lib is not bloated, and all camera specific dependencies are in each derived dll. If I don't solve `li` #1, this doesn't help much, because you will still need all derived dll's in addition to Factory.lib and vendor dll's. 3. Is there a better way to implement the Creator class (or method) ? My derived classes are a limited number, 5-6, and don't grow often. 4. Any other tips to minimize dependencies and improve design are welcome
0
[ 2, 272, 20512, 3129, 17, 3508, 106, 29411, 800, 3726, 3726, 51, 1248, 1103, 40, 6573, 13, 5, 27752, 21, 3336, 6, 17, 21, 310, 3981, 2684, 9, 206, 3981, 25, 6807, 20, 1903, 746, 499, 15, 56, 4259, 206, 3981, 718, 20, 12547, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 data stored in sharedpreferences from non-activity class === I am trying to get and update the data which I stored in sharedpreferences xml file from a non-activity class.But I dont know how to reach the data stored in sharedPreferences from a non-activity class in android.In my activiy class i can store data in sharedprefences and i also can retrive these data in my activiy class. However i can not retrive these data from a non-activiy class. My code is below.Thank you... mSharedPrefs = getSharedPreferences("storageforfavorite", 0); mPrefsEditor = mSharedPrefs.edit(); for(int i= 0;i<names.size();i++){ mPrefsEditor.putString(indexForFav[i],"0"); } mPrefsEditor.commit(); for(int i=0;i<names.size();i++){ String keyForFav=mSharedPrefs.getString(indexForFav[i], "2"); valueForFav.add(keyForFav); }
0
[ 2, 184, 20, 275, 1054, 8214, 19, 2592, 306, 28018, 18, 37, 538, 8, 19348, 718, 800, 3726, 3726, 31, 589, 749, 20, 164, 17, 11100, 14, 1054, 56, 31, 8214, 19, 2592, 306, 28018, 18, 23504, 3893, 37, 21, 538, 8, 19348, 718, 9, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I know to which element a thread of my android app is related? === First of all, I don't create threads manually. I can monitor the threads of my android app : <img src="http://i1157.photobucket.com/albums/p588/_a_lex_is/ScreenShot2012-07-10at103019.png" /> How can I know to which elements these threads are related ? For example all the httpXX threads or AsyncTask #X , is there a way to know where they're created in the code? Because they stay there everytime and I'm afraid to leak the memory. In opposition I have an ImageCache that load images in threads. These thread appear in the list when I'm in the view that display the images and disappear when I close the app. httpX , AsyncTask #X , WebViewWorkerThread , etc DON'T disappear when I close the app. So I'd like to know where I can free the memory, close connections, etc
0
[ 2, 184, 92, 31, 143, 20, 56, 4520, 21, 9322, 16, 51, 13005, 4865, 25, 1597, 60, 800, 3726, 3726, 64, 16, 65, 15, 31, 221, 22, 38, 1600, 20396, 23671, 9, 31, 92, 7626, 14, 20396, 16, 51, 13005, 4865, 13, 45, 13, 1, 1660, 263,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Instant notifications like Facebook === I am building a social application and was wondering how facebook achieve their notifications. As you know, facebooks notifications are instant. As soon as someone takes an action, people are notified. I assume they don't have a query running on the database all the time. Can someone point me in the right direction. Thanks
0
[ 2, 6322, 52, 4634, 18, 101, 9090, 800, 3726, 3726, 31, 589, 353, 21, 668, 3010, 17, 23, 5712, 184, 9090, 4689, 66, 52, 4634, 18, 9, 28, 42, 143, 15, 9090, 18, 52, 4634, 18, 50, 6322, 9, 28, 651, 28, 737, 1384, 40, 1028, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create simple Portlet/WebPart in Mvc3 === I am trying to incorporate Portlet/Webpart in my project, Can anyone give me a simple demo for it that how can i achive it. thanks
1
[ 2, 184, 20, 1600, 1935, 1295, 1336, 118, 14113, 3091, 19, 307, 8990, 240, 800, 3726, 3726, 31, 589, 749, 20, 14710, 1295, 1336, 118, 14113, 3091, 19, 51, 669, 15, 92, 1276, 590, 55, 21, 1935, 8376, 26, 32, 30, 184, 92, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Finiding the number of times li is cliked === I have this html code wherein I have many li elements. On doubleclicking each li element, a window like div appears. as many number of windows appear for that specific window as the number of times i click on that window. My problem is, how to prevent opening more than one window for a particular li element? Can i have some method or function in javascript using which I can count the number of times I have clicked on a particular li element?
0
[ 2, 4361, 1340, 68, 14, 234, 16, 436, 2093, 25, 19391, 4616, 800, 3726, 3726, 31, 57, 48, 13, 15895, 1797, 113, 108, 31, 57, 151, 2093, 2065, 9, 27, 1494, 150, 10129, 68, 206, 2093, 4520, 15, 21, 1463, 101, 13, 12916, 1780, 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...
Android Application using a huge chunk of RAM === My android application size is only 5MB on the device, but when i run the application it uses a lot of RAM like around 12-18 MB (and more on ics devices). I am trying to find an explanation for this, on why my application is using a lot of RAM, i also use a push service from parse. My application is image intensive, might be a possible reason. How can i reduce the RAM consumption of my application.
0
[ 2, 13005, 3010, 568, 21, 2329, 15009, 16, 2843, 800, 3726, 3726, 51, 13005, 3010, 1072, 25, 104, 331, 5024, 27, 14, 3646, 15, 47, 76, 31, 485, 14, 3010, 32, 2027, 21, 865, 16, 2843, 101, 140, 390, 8, 1087, 14023, 13, 5, 290, 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...
Dynamic Dropdown Div Using Jquery === I need a snippet of code for creating an "other" dropdown option. Basically, if there are 3 options for color: red|green|blue, I want them to have the ability to select other and when selected a div appears with a textbox for them to enter the next color.
1
[ 2, 7782, 2804, 2968, 13, 12916, 568, 487, 8190, 93, 800, 3726, 3726, 31, 376, 21, 13, 29061, 16, 1797, 26, 2936, 40, 13, 7, 9539, 7, 2804, 2968, 4255, 9, 11374, 15, 100, 80, 50, 203, 6368, 26, 1665, 45, 402, 1, 6852, 1, 6997, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mysql, How to select 2 colums in 2 table? === Here's a sample mysql code I'm studying: SELECT t.name FROM terms AS t INNER JOIN term_taxonomy AS tt ON tt.term_id = t.term_id WHERE ...... The above code get column "name" in table t, I want to join colum "count" in table tt , so I tried: SELECT t.name, tt.count This modification doesn't make any difference in results. How can I get both "name" and "colum" as a result?
0
[ 2, 51, 18, 22402, 15, 184, 20, 5407, 172, 326, 4404, 18, 19, 172, 859, 60, 800, 3726, 3726, 235, 22, 18, 21, 5717, 51, 18, 22402, 1797, 31, 22, 79, 4493, 45, 5407, 13, 38, 9, 7259, 37, 1663, 28, 13, 38, 3754, 1865, 981, 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...
Positioning a graph using achartengine in an XML file === So, I want to make an application that can read in several groups of data and display a graph. My problem, is not loading the graph itself, I've gotten that to work, but I would like to display the graph in a particular UI. I would like a graph displayed, with 6 check boxes and a spinner below. Depending on what option the spinner chooses, the 6 check boxes will be different. However, I have followed a few tutorials and they don't even require XML files. How can I implement my graph to have this, or how can I layout where I want the graph from achartengine to displayed in an XML file. What I have: ![enter image description here][1] What I want ( poor paint drawing but you get it :D ): ![enter image description here][2] The a-f white boxes are supposed to be check boxes. Also.....I know I should really post code with this, but there is NO xml file given for this graph, it is done completely in a simple Java class. [1]: http://i.stack.imgur.com/GEhEF.png [2]: http://i.stack.imgur.com/XYSxO.png
0
[ 2, 649, 68, 21, 7210, 568, 21, 5433, 38, 16847, 19, 40, 23504, 3893, 800, 3726, 3726, 86, 15, 31, 259, 20, 233, 40, 3010, 30, 92, 1302, 19, 238, 1170, 16, 1054, 17, 3042, 21, 7210, 9, 51, 1448, 15, 25, 52, 12797, 14, 7210, 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...
Looping through a list nested in a dictionary === I have a python dictionary consisting of JSON results. The dictionary contains a nested dictionary, which contains a nested list which contains a nested dictionary. Still with me? Here's an example: {'hits':{'results':[{'key1':'value1', 'key2':'value2', 'key3':{'sub_key':'sub_value'}}, {'key1':'value3', 'key2':'value4', 'key3':{'sub_key':'sub_value2'}} ]}} What I want to get from the dictionary is the `sub_vale` of each `sub_key` and store it in a different list. No matter what I try I keep getting errors. This was my last attempt at it: inner_list=mydict['hits']['results']#This is the list of the inner_dicts index = 0 for x in inner_list: new_dict[index] = x[u'sub_key'] index = index + 1 print new_dict It printed the first few results then started to return everything in the original dictionary. I can't get my head around it. If I replace the `new_dict[index]` line with a `print` statement it prints to the screen perfectly. Really need some input on this! for x in inner_list: print x[u'sub_key']
0
[ 2, 5293, 68, 120, 21, 968, 5618, 69, 19, 21, 9186, 800, 3726, 3726, 31, 57, 21, 20059, 9186, 4160, 16, 487, 528, 1736, 9, 14, 9186, 1588, 21, 5618, 69, 9186, 15, 56, 1588, 21, 5618, 69, 968, 56, 1588, 21, 5618, 69, 9186, 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...
Calculate mean for vector of points === I have a vector of a 2-dimentional array of points in OpenCV std::vector<cv::Point2f> points; I would like to calculate the mean value for x and y coordinates in points. Something like: cv::Point2f mean_point; //will contain mean values for x and y coordinates mean_point = some_function(points); This would be simple in Matlab. How would you compute it in OpenCV / C++?
0
[ 2, 18469, 884, 26, 7497, 16, 819, 800, 3726, 3726, 31, 57, 21, 7497, 16, 21, 172, 8, 1115, 1130, 872, 192, 7718, 16, 819, 19, 368, 12732, 354, 43, 45, 45, 28033, 1, 12732, 45, 45, 3132, 135, 410, 1, 819, 73, 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...
Should we avoid IEnumerable as an input when designing public API? === Consider following example. Assume I developed a library that will be used by a third party. The library has a method that accepts `IEnumerable`, which is nice because it abstracts from the implementation of the collection passed. However, lazy evaluation occurs when I retrieve the input parameter. public interface IStorage<in T> { void Store(IEnumerable<T> values); } public class FileStorage<T> : IStorage<T> { public void Store(IEnumerable<T> values) { foreach (var value in values) { /*Evaluation of IEnumerable*/} } } Some client uses my library in the following way: IEnumerable<int> values; try { values = new[] { "1", "2", "three" }.Select(int.Parse); } catch (Exception) { values = Enumerable.Empty<int>(); } var storage = new FileStorage<int>(); storage.Store(values); That will cause an exception inside the `Store` method where evaluation happens. If I designed the `Store` method to take `List<T>` I'd be sure that it is safely enumerable collection of Ts. The question is should we avoid `IEnumerable` when designing API or whether should we allow and enumerate it in safe context when needed as it might raise exceptions.
0
[ 2, 378, 95, 2658, 13, 660, 6336, 106, 579, 28, 40, 6367, 76, 15026, 317, 21, 2159, 60, 800, 3726, 3726, 3563, 249, 823, 9, 7158, 31, 885, 21, 1248, 30, 129, 44, 147, 34, 21, 422, 346, 9, 14, 1248, 63, 21, 2109, 30, 16548, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a logical difference between putting a condition in the ON clause of an inner join versus the where clause of the main query? === Consider these two similar SQLs (condition in ON clause) select t1.field1, t2.field1 from table1 t1 inner join table2 t2 on t1.id = t2.id and t1.boolfield = 1 (condition in WHERE clause) select t1.field1, t2.field1 from table1 t1 inner join table2 t2 on t1.id = t2.id where t1.boolfield = 1 I have tested this out a bit and I can see the difference between putting a condition in the two different places for an outer join. But in the case of an inner join can the result sets ever be different?
0
[ 2, 25, 80, 21, 11545, 2841, 128, 3873, 21, 2874, 19, 14, 27, 9040, 16, 40, 3754, 1865, 5706, 14, 113, 9040, 16, 14, 407, 25597, 60, 800, 3726, 3726, 3563, 158, 81, 835, 4444, 7532, 13, 5, 22141, 19, 27, 9040, 6, 5407, 13, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse JFrame warning === I often use JFrames, and because they are applications, they obviously need a public static void main(String[] args) method. They also need the line in main() myJFrame g = new myJFrame(); In eclipse, I get a warning on variable g: "The local variable g is never read", but if I omit that line, the program won't run. Why do I need that line, and if g is essential, why is there a warning on it?
0
[ 2, 11652, 487, 8361, 3590, 800, 3726, 3726, 31, 478, 275, 487, 8361, 18, 15, 17, 185, 59, 50, 3767, 15, 59, 4409, 376, 21, 317, 12038, 11364, 407, 5, 11130, 2558, 500, 13, 10663, 18, 6, 2109, 9, 59, 67, 376, 14, 293, 19, 407, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mysql2 destroy error === I'm trying to destroy an object using a call similar to MyObject.destroy_all({:user_id => current_user.id, :item_type_id => params[:type_id], :item_id => params[:item_id]}) Rails generates this as a SQL commands: User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 MyObject Load (0.2ms) SELECT `my_objects`.* FROM `my_objects` WHERE `my_objects`.`user_id` = 1 AND `my_objects`.`item_type_id` = 3 AND `my_objects`.`item_id` = 9 (0.1ms) BEGIN SQL (0.4ms) DELETE FROM `my_objects` WHERE `my_objects`.`` = NULL The last SQL Statement causes this error (which makes sense) Mysql2::Error: Unknown column 'respects.' in 'where clause': DELETE FROM `respects` WHERE `respects`.`` = NULL Am I doing something wrong? Rails 3.2.1 mysql2 0.3.11 mysql 5 (I think)
0
[ 2, 51, 18, 22402, 135, 4407, 7019, 800, 3726, 3726, 31, 22, 79, 749, 20, 4407, 40, 3095, 568, 21, 645, 835, 20, 51, 23793, 9, 28764, 1, 1233, 5, 1, 45, 16704, 1, 1340, 800, 1, 866, 1, 16704, 9, 1340, 15, 13, 45, 2119, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Selecting a style parameter with jquery .attr === I have the following code. alert($("div", data).attr("style.background")); I would like to select the colour value on this code. <div id = "test"style="font-family: serif; font-size: x-large; font-weight: bold; background: #5e5; text-align: center; margin: 0px; padding: 16px;"> I am unsure what to use instead of "style.background" Any help would be amazing, thanks!
0
[ 2, 20764, 21, 1034, 18906, 29, 487, 8190, 93, 13, 9, 10303, 139, 800, 3726, 3726, 31, 57, 14, 249, 1797, 9, 7863, 5, 4403, 5, 7, 12916, 7, 15, 1054, 6, 9, 10303, 139, 5, 7, 4381, 9, 1958, 8810, 7, 6, 6, 73, 31, 83, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php postgres from query to fetching rows in theory === I would like to know what precisely is happening since php script runs the query to the moment when database returns data and php script starts to fetch them. In theory, I have a Postgre database with huge table, talking about 10/20 million records with 20+ columns and I have a php script which is requesting all that rows from database to be placed in, lets say, some file. <b>My knowledge is:</b> <ul> <li>php script runs the pg_query command with sql query</li> <li>through postgres php driver/extension query is passed to database</li> <li>database does the work and return results to driver</li> <li>php postgres driver stores results in server RAM memory and returns resource id to php script which is reference to results</li> <li>pg_fetch_row reads records from RAM memory</li> </ul> I am trying to accomplish best possible optimization of php code which is doing described work above. <b>The questions are:</b> <ul> <li>Is my knowledge correct? If something is missing or I am not right about some step, please correct me.</li> <li>How can I know how much RAM memory is allocated to database result? This can be important if my server doesn't have enough memory.</li> <li>I know I can fetch single row, then store it into file and repeat these 2 steps as long there are rows, so I can minimize memory required for php script, but how can I influence the memory used by resource?</li> </ul> Thanks in advance.
0
[ 2, 13, 26120, 678, 6879, 18, 37, 25597, 20, 18312, 68, 11295, 19, 1639, 800, 3726, 3726, 31, 83, 101, 20, 143, 98, 11628, 25, 4942, 179, 13, 26120, 3884, 1461, 14, 25597, 20, 14, 688, 76, 6018, 4815, 1054, 17, 13, 26120, 3884, 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...
High fps on animation with translucent background === I created an application that has a translucent (`#7F00FF00`) background. Now the bottom half of the `Activity` is a `FrameLayout` where I set a new Fragment with the following animation: <translate android:fromXDelta="0%" android:toXDelta="100%" /> Now this works fine, but them problem is the frame rate. Because of the translucent background it has a low fps. But when I make the background fully transparent then the animation is very smooth. How can I improve the fps of this animation? Is there an other way to make the background translucent without losing frames? [Android 4.0 on a Tegra2 device]
0
[ 2, 183, 13, 12087, 18, 27, 6236, 29, 25914, 2395, 800, 3726, 3726, 31, 679, 40, 3010, 30, 63, 21, 25914, 13, 5, 1, 5910, 465, 410, 2032, 2460, 2032, 1, 6, 2395, 9, 130, 14, 2129, 519, 16, 14, 13, 1, 19348, 1, 25, 21, 13, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cannot save the Picture in the given location === I am a beginner in android programming. Here is a code to take a image and save it in a folder in sdcard. The image is saved in gallery but it is not saved in the location where i want to. Please help... ------------------------------------------------------------------------------------- public class CameraActivity extends Activity { /** Called when the activity is first created. */ Button button1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); button1=(Button)findViewById(R.id.button1); } public void send(View v) { Intent imageIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File imagesFolder = new File(Environment.getExternalStorageDirectory(), "MyImages"); imagesFolder.mkdirs(); // File image = new File(imagesFolder, "image_001.jpg"); Uri uriSavedImage = Uri.fromFile(image); imageIntent.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage); startActivityForResult(imageIntent,0); } }
0
[ 2, 1967, 2079, 14, 2151, 19, 14, 504, 1474, 800, 3726, 3726, 31, 589, 21, 26931, 19, 13005, 3143, 9, 235, 25, 21, 1797, 20, 247, 21, 1961, 17, 2079, 32, 19, 21, 19294, 19, 13, 18, 43, 6648, 9, 14, 1961, 25, 4377, 19, 2246, 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...
How to Read segments in in vb.net 2008 === Im So sorry to create this topic but i need u to write this program with vb.net 2008 when you downloading a file from internet, maybe because DC or etc , the some downloading segments incompleted and null value (0) write in the file and also a file with "seg" extention created and write information about this segments contain : 1 - File Size (orginal Downloading File) 2 - Start Position of Segments 3 - End of Position of Segments [like this blow picture :][1] this screenshot taked from a program writed in delphi but i need to read this information from "seg" file with vb.net 2008 Please Help me to reed this segments from "seg" file [download a segment file with a source code writeen in delphi][2] Thank u , Thank you so much [1]: http://i.stack.imgur.com/pdJtb.jpg [2]: http://www.4shared.com/rar/mmwib-jj/segment_files.html
1
[ 2, 184, 20, 1302, 9061, 19, 19, 13, 20468, 9, 2328, 570, 800, 3726, 3726, 797, 86, 1875, 20, 1600, 48, 8303, 47, 31, 376, 287, 20, 2757, 48, 625, 29, 13, 20468, 9, 2328, 570, 76, 42, 7121, 68, 21, 3893, 37, 2620, 15, 913, 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 dynamically configure data grid view to display the information === I have a table that stores information about a user(profile, account summary, etc), a table is created for every user. I want to display information of the current user using a single data grid view, i.e i want to dynamically configure data grid view to display the information of user, depending upon who the user is.
0
[ 2, 184, 20, 7782, 1326, 1065, 15951, 1054, 7354, 1418, 20, 3042, 14, 676, 800, 3726, 3726, 31, 57, 21, 859, 30, 4134, 676, 88, 21, 4155, 5, 14503, 15, 2176, 14740, 15, 2722, 6, 15, 21, 859, 25, 679, 26, 352, 4155, 9, 31, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
pass file or filename to function === In a programming language that has a file object, would you rather pass this object to a function or the path to the physical file and let the function open the file itself? If the language does matter for your answer, please consider c++ and python. Thanks, Somebody
0
[ 2, 1477, 3893, 54, 3893, 7259, 20, 1990, 800, 3726, 3726, 19, 21, 3143, 816, 30, 63, 21, 3893, 3095, 15, 83, 42, 864, 1477, 48, 3095, 20, 21, 1990, 54, 14, 2013, 20, 14, 1825, 3893, 17, 408, 14, 1990, 368, 14, 3893, 1145, 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...
How sort, arrange and view the items present in the gridview by manually? === I have grid view in asp.net C#. I want do manual operations on grid view items like this. sort by order, sort by view, sort by type, sort by date. Group by type, Group by date, Group by modified and view by order, Group by date. Plz let me know how I can do or which site I can follow for this. Thanks PBN
1
[ 2, 184, 2058, 15, 12400, 17, 1418, 14, 3755, 734, 19, 14, 7354, 4725, 34, 23671, 60, 800, 3726, 3726, 31, 57, 7354, 1418, 19, 28, 306, 9, 2328, 272, 5910, 9, 31, 259, 107, 5132, 1311, 27, 7354, 1418, 3755, 101, 48, 9, 2058, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
can windows application or a website do the following === Is it possible to create a website or an application for windows machine(desktop) which can stay focused or precisely stay open until user submits or complete a given task. For example, My XXX app/website is open.I want the user to fill some text.The thing I want is that, the user should NOT BE ABLE to perform following 1) ctrl+c or ctrl+v all those shortcuts 2) ctrl+alt+del (i guess this impossible to do on a website) 3) ctrl+shift+Esc In simple words I don't want user to copy text from a text file,I don't want user to minimize this XXX app/website and switch to Explorer or notepad or something else. I don't think website can do all this can a windows desktop application do this?
0
[ 2, 92, 1936, 3010, 54, 21, 2271, 107, 14, 249, 800, 3726, 3726, 25, 32, 938, 20, 1600, 21, 2271, 54, 40, 3010, 26, 1936, 1940, 5, 3196, 197, 3880, 6, 56, 92, 1179, 2604, 54, 11628, 1179, 368, 163, 4155, 12298, 18, 54, 1279, 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...
Building embedded mongoid documents in form === I might be missing something silly but I can't get multiple embedded photo files into a form Models class Product include Mongoid::Document embeds_many :photos, cascade_callbacks: true end class Photo include Mongoid::Document embedded_in product, :inverse_of => :photos field :image_filename mount_uploader :image, ImageUploader end Controller - products_controller.rb def new @product = Product.new 3.times { @product.photos.build } end Form Then I do the form with fields_for @product.photos do |photo| <%= photo.file_field :image %> end The problem is only 1 photo is showing up but I am building 3 in the controller. The count for @product.photos.count is 0 even after i build 3 in memory. Am I missing something?
0
[ 2, 353, 12138, 21028, 6516, 4374, 19, 505, 800, 3726, 3726, 31, 530, 44, 2863, 301, 10752, 47, 31, 92, 22, 38, 164, 1886, 12138, 3056, 6488, 77, 21, 505, 2761, 718, 2374, 468, 21028, 6516, 45, 45, 28132, 11911, 69, 18, 1, 14842, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there an overwrite function in Hibernate which overwrites objects with the same identifier in the session? (not merge()) === I have a problem with Hibernate: I have the following class: Person I'm loading a specific Person.class "A" from the db on the server-side. Then I present this object to the client via a JSP page. The client manipulates "A" to "B" and then sends it back via the form. I load the Person.class "B" object on the server-side into a new variable and then try to store it. But as the whole application is session based I cannot simply call: HibernateTemplate.saveOrUpdate("B"); Instead I have to merge "B" with "A" before saving it. But when I call HibernateTemplate.merge("B"); the "B" object still gets all the properties of "A" which i would not like to store anymore. I'd like that "B" replaces the "A" object completely without getting some of the "A"-properties by merging them. **So my question is:** **Is there in Hibernate any "overwrite" or "replace" function which can overwrite all the objects in a session which have the same identifier with the properties of one specific object?** (In the example the returned object "B" from the form) **It should also prevent Hibernate from complaining about:** Exception in thread "main" org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:
0
[ 2, 25, 80, 40, 84, 23716, 1990, 19, 4148, 2102, 8820, 56, 84, 23716, 18, 3916, 29, 14, 205, 25570, 19, 14, 3723, 60, 13, 5, 1270, 12666, 5, 6, 6, 800, 3726, 3726, 31, 57, 21, 1448, 29, 4148, 2102, 8820, 45, 31, 57, 14, 249, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to register all assemblies with implementations of all interfaces from another assembly in Castle Windsor? === Is it possible to pass to Castle name of the assembly that contains all our interfaces, and have Castle automatically find and register all assemblies in the current directory that contain implementations of those interfaces? Thank you.
0
[ 2, 184, 20, 2243, 65, 21066, 29, 6123, 18, 16, 65, 6573, 18, 37, 226, 1475, 19, 1339, 10784, 60, 800, 3726, 3726, 25, 32, 938, 20, 1477, 20, 1339, 204, 16, 14, 1475, 30, 1588, 65, 318, 6573, 18, 15, 17, 57, 1339, 7499, 477, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JacOrb and Log4j === I am using Jacorb 3.0 and I want to use log4j as the logging backend. To do so, I have placed the various jar from jacorb, slf4j-api-1.6.6.jar, slf4j-log4j12-1.6.6.jar, log4j-1.2.16.jar and removed the slf4j-jdk14-1.6.4.jar in the classpath. So far so good. However, Jacorb prints out too much log that I don't care about, and I can't manage to exclude it. In my log4j.properties I have tried something like: log4j.category.org.jacorb.orb=WARN log4j.additivity.org.jacorb.orb=false but I still see lines like 14:27:48.974|INFO |org.jacorb.orb.ORB |main |ORB run in my log. How can I exclude everything that isn't a WARN or above from my log?
0
[ 2, 12548, 248, 220, 17, 6738, 300, 728, 800, 3726, 3726, 31, 589, 568, 12548, 248, 220, 203, 9, 387, 17, 31, 259, 20, 275, 6738, 300, 728, 28, 14, 13, 13919, 97, 2451, 9, 20, 107, 86, 15, 31, 57, 1037, 14, 617, 5112, 37, 125...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 auto completions in vim, like Sublime Text 2 === Just found about the [autocomplete](http://docs.sublimetext.info/en/latest/extensibility/completions.html) feature in Sublime Text 2. Example auto complete file: { "scope": "text.html - source - meta.tag, punctuation.definition.tag.begin", "completions": [ { "trigger": "a", "contents": "<a href=\"$1\">$0</a>" }, { "trigger": "abbr", "contents": "<abbr>$0</abbr>" }, { "trigger": "acronym", "contents": "<acronym>$0</acronym>" } ] } I tried to search for a similar thing for Vim, but haven't been able to find anything. Does anything like this exist for Vim? Preferably if it uses simple to generate format, like JSON, YAML, etc.
0
[ 2, 5816, 3108, 5392, 18, 19, 1790, 79, 15, 101, 27644, 1854, 172, 800, 3726, 3726, 114, 216, 88, 14, 636, 18042, 15990, 500, 5, 21127, 6903, 13799, 18, 9, 7563, 8585, 62, 11969, 9, 108, 4120, 118, 219, 118, 6554, 384, 118, 1706, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 save csv to memory and then ftp? === I am currently creating a CSV file and then I ftp that file. This is working fine. However, I dont want to save the csv file, i want to create it to memory and then ftp it. This is my current code: private void Csv() { CsvExport eftExport = new CsvExport(); eftExport.AddRow(); eftExport["customer_reference"] = "Ref"; eftExport["landline"] = "01234567890"; string url = "C:/Content/Cms/DD/"; string fileName = "file.csv"; eftExport.ExportToFile(url + fileName); this.FtpFile(url, fileName); } private void FtpFile(string url, string fileName) { FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://url.co.uk/" + fileName); request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential ("Administrator", "pass"); StreamReader sourceStream = new StreamReader(url + fileName); byte[] fileContents = Encoding.UTF8.GetBytes (sourceStream.ReadToEnd()); sourceStream.Close(); request.ContentLength = fileContents.Length; Stream requestStream = request.GetRequestStream(); requestStream.Write(fileContents, 0, fileContents.Length); requestStream.Close(); } but in stead of doing eftExport.ExportToFile(url + fileName); i dont want it to save to machine??
0
[ 2, 184, 20, 2079, 272, 18, 710, 20, 1912, 17, 94, 1187, 306, 60, 800, 3726, 3726, 31, 589, 871, 2936, 21, 272, 18, 710, 3893, 17, 94, 31, 1187, 306, 30, 3893, 9, 48, 25, 638, 1123, 9, 207, 15, 31, 1049, 259, 20, 2079, 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 change the height of individual row in a HTML table using row border? === I am looking for a way to be able to change the height of a row in a table, not to a preset size if possible, by selecting the row border and dragging it. The scenario is as follows: I have certain data being represented in the rows of the tables. Depending on the height of the row, the representation of the data may vary i.e. it might be a summary of the data if the row height is small, but may be the detailed description if the height is beyond a certain size. I want to be able to select the row in question and drag it to change its height. If free flow change is not possible for some reason, I can make do with 3 levels of height. Scenario being, if i drag the row height beyond set limit x, it snaps to the next higher limit x'. I understand you can change the size of the table elements/rows using css/js to fit predefined conditions, but I was unable to find anything to suit my needs. Preemptive thanks for the help.
0
[ 2, 184, 20, 753, 14, 2947, 16, 1359, 3131, 19, 21, 13, 15895, 859, 568, 3131, 1862, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 161, 20, 44, 777, 20, 753, 14, 2947, 16, 21, 3131, 19, 21, 859, 15, 52, 20, 21, 782, 3554, 1072, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating editable and draggable speech bubble === I am building a website and one of the features is to have speech bubbles: When the users click a button, a speech bubble is added to their picture for the users to comment on their picture. So far, I have read a lot about the CSS3 speech bubble. However, with CSS3, I am unable to resize the triangle at the end of the bubble, and drag it around the bubble. Any help will be appreciated! Thanks
0
[ 2, 2936, 9392, 579, 17, 5501, 263, 579, 2974, 10937, 800, 3726, 3726, 31, 589, 353, 21, 2271, 17, 53, 16, 14, 967, 25, 20, 57, 2974, 20743, 45, 76, 14, 3878, 10840, 21, 5167, 15, 21, 2974, 10937, 25, 905, 20, 66, 2151, 26, 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...
filter class names to make jquery array === I need to make array from class name that have no class name 'hidden': <div id="part2"> <div class="address hidden">address</div> <div class="floors">floors</div> <div class="postcode"> </div> <div class="city hidden"> </div> </div> i can go over the divs and make array as follows but i need only divs that have no class hidden-in this case only 'floors' and 'postcode'. var list_div_class = function() { var myarray = []; $('#part2').children().each( function(index) { var myclass = $(this).attr("class"); myarray[index] = myclass; }); return myarray; } var arr_divs = list_div_class(); alert (arr_divs); // there is hidden listed but it's ok
0
[ 2, 11945, 718, 1817, 20, 233, 487, 8190, 93, 7718, 800, 3726, 3726, 31, 376, 20, 233, 7718, 37, 718, 204, 30, 57, 90, 718, 204, 13, 22, 1822, 43, 817, 22, 45, 13, 1, 12916, 4924, 3726, 7, 3091, 135, 7, 1, 13, 1, 12916, 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...
Why my HttpConfiguration type has no ServiceResolver type using .Net MVC 4 with WebApi? === I'm using .Net MVC 4 with WebApi and in all articles that explain how to use DI Container with that has the following line of configuration in Global.asax: (http://blog.ploeh.dk/2012/03/20/RobustDIWithTheASPNETWebAPI.aspx) GlobalConfiguration.Configuration.ServiceResolver.SetResolver(...) But in my application has not `ServiceResolver` type: ![enter image description here][1] with intellisense: ![enter image description here][2] [1]: http://i.stack.imgur.com/PITK7.jpg [2]: http://i.stack.imgur.com/dIA7Y.jpg
0
[ 2, 483, 51, 7775, 1126, 13549, 857, 1001, 63, 90, 365, 99, 5594, 2304, 1001, 568, 13, 9, 2328, 307, 8990, 268, 29, 95, 969, 2159, 60, 800, 3726, 3726, 31, 22, 79, 568, 13, 9, 2328, 307, 8990, 268, 29, 95, 969, 2159, 17, 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...
App Update issue === Hi every body I have the next issue in my app I need to determinate if my app have has been updated in some point I found with this method I can now the current version NSString *first = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; NSString *second = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]; If the app is updated from itunes Who var is updated to determine my app has been updated because I prove modifying from the xcode in the Targets>Summary>Version to prove and the first var change but the second not change. What I have to select the first or the second, and how I can prove this?
0
[ 2, 4865, 11100, 1513, 800, 3726, 3726, 4148, 352, 358, 31, 57, 14, 328, 1513, 19, 51, 4865, 31, 376, 20, 121, 3964, 17939, 100, 51, 4865, 57, 63, 74, 6372, 19, 109, 454, 31, 216, 29, 48, 2109, 31, 92, 130, 14, 866, 615, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to access app delegate fields within other classes? === in one of my controllers I want to access fields of my app delegate. So to retrieve app delegate I use the following code: [[UIApplication sharedApplication] delegate]; But when I try to cast it to my delegate's name I get the error that the name is undeclared. Do I have to import the header file of the app delegate in the class where I want to access the fields?
0
[ 2, 184, 20, 1381, 4865, 11300, 2861, 363, 89, 2684, 60, 800, 3726, 3726, 19, 53, 16, 51, 9919, 18, 31, 259, 20, 1381, 2861, 16, 51, 4865, 11300, 9, 86, 20, 11917, 4865, 11300, 31, 275, 14, 249, 1797, 45, 636, 2558, 5661, 2552, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excel VBA - Check last saved date on CSV files === First post but I think i have this right. Pretty simply quesiton really I suppose how can I amend the below to so that rather thank looking at LOI.CSV it looks at all .CSV files in the Intraday Folder. [code] LastSaved = FileDateTime("W:\Settlements\Intraday\LOT.csv") If LastSaved < Date Then MsgBox ("The current day file for LOI was last saved " & LastSaved) [/code]
0
[ 2, 20700, 566, 969, 13, 8, 2631, 236, 4377, 1231, 27, 272, 18, 710, 6488, 800, 3726, 3726, 64, 678, 47, 31, 277, 31, 57, 48, 193, 9, 1772, 1659, 13, 13655, 49, 444, 510, 31, 5787, 184, 92, 31, 19247, 14, 1021, 20, 86, 30, 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...
Create Bold Text in Microsoft Word Document === I have created Word document by using this library. using Microsoft.Office.Interop.Word; The text I have inserted in the document is like following Patient Address: 1232 TEST Ave,,Burlingame,NY,90010 County Code: 0 Phone # - Home: 6503425078 Phone # - Business: 6502384067 Now I want the all text in bold which is before the colon ":" Example I want "Patient Address" in bold. How its possible by writing code in C#? Can any one Help ?
0
[ 2, 1600, 5657, 1854, 19, 7099, 833, 4492, 800, 3726, 3726, 31, 57, 679, 833, 4492, 34, 568, 48, 1248, 9, 568, 7099, 9, 17047, 9, 6280, 2594, 9, 9587, 73, 14, 1854, 31, 57, 14215, 19, 14, 4492, 25, 101, 249, 4836, 3218, 45, 390...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Fedex2.0 free shipping is not working with virtuemart 1.1.9 === I am using Fedex2.0 shipping module with virtuemart 1.1.9 component with joomla 1.5.23. The free shipping is not working in my site. I want that above 200$ worth purchase of my product . Shipping would become free. I have also checked the check boxes given under free shipping but they are not working. It is in Php ,Joomla.
0
[ 2, 6068, 1706, 135, 9, 387, 551, 7405, 25, 52, 638, 29, 10128, 9534, 137, 9, 165, 9, 518, 800, 3726, 3726, 31, 589, 568, 6068, 1706, 135, 9, 387, 7405, 12613, 29, 10128, 9534, 137, 9, 165, 9, 518, 5912, 29, 2640, 2636, 531, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
with JavaScript API. === I am planning to write a JavaScript API that access a website and is able to log in and retrieve information. Can anyone help me out please? Any sample code? I have the searched the internet but I didnt find any useful sample code. I just need to see some examples to see how its done.
1
[ 2, 29, 8247, 8741, 21, 2159, 9, 800, 3726, 3726, 31, 589, 2334, 20, 2757, 21, 8247, 8741, 21, 2159, 30, 1381, 21, 2271, 17, 25, 777, 20, 6738, 19, 17, 11917, 676, 9, 92, 1276, 448, 55, 70, 2247, 60, 186, 5717, 1797, 60, 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...
Javascript drop-down menu not working === I'm doing a site redesign and something's wrong with my CSS/javascript and I can't get the drop down menus to pop up. CSS #menu { font-size:large; margin:0; padding:0 0 0 .5em; list-style:none; width:100%; text-align:left; } #menu ul, #menu li { padding:0 0 0 2em; background-color:gray; width:auto; border-bottom:1 gray solid; } /*LI display inline */ #menu li { float:left; background:white; position:relative; list-style:none; margin:0 0 0 0; text-align:center; } /*parent menu*/ #menu li a { display:block; padding:0 0 0 0; height:40px; font-weight:200; float:left; text-decoration:none; text-align:center; color:black; border:1 1 1 1; } #menu li a:hover { color:#eeeeee; text-align:center; } /* style for default selected value */ #menu a.selected { color:#6699FF; } /* submenu */ #menu ul { position:absolute; display:none; margin:0 0 0 -1px; padding:0; list-style:none; text-align:center; } #menu ul { left: 0; } #menu ul ul { top: -1px; background:0063dc; text-align:center; color:black; font-weight:200; text-align:center; } #menu ul li { /*overflow:hidden;*/ border-top:1px solid #eeeeee; height:25px; margin:0 0 0 -1px; } #menu ul li:hover { position: relative; } #menu ul a { display:block; color:white; } #menu ul a:hover { text-decoration:none; } JS $(document).ready(function() { $("#nav li").hover( function () { $(this).children("ul").css({zIndex:90}).fadeIn(250); },function(){ $(this).children("ul").fadeOut(250); });//hover });// document ready HTML <input type="hidden" name="arav" /> <ul id="menu"> <li><a href="#">HOME</a></li> <li><a href="#">MEMBERS</a></li> <li><a href="#">FACTS</a></li> <li><a href="#">TEST</a></li> <li><a href="#">EDUCATION</a></li> <li><a href="#">RESOURCES</a></li> <li><a href="#">RESEARCH</a></li> <li><a href="#">CONTACT US</a></li> </ul>
3
[ 2, 8247, 8741, 2804, 8, 2968, 11379, 52, 638, 800, 3726, 3726, 31, 22, 79, 845, 21, 689, 23903, 17, 301, 22, 18, 1389, 29, 51, 272, 18, 18, 118, 1004, 1385, 8741, 17, 31, 92, 22, 38, 164, 14, 2804, 125, 11379, 18, 20, 1675, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do i know one table's primary key field value is used in any another related tables in mysql === How do i know that one table's primary key field value ( eg :- ID ) is used in any another related tables in mysql ? Pls help me
0
[ 2, 184, 107, 31, 143, 53, 859, 22, 18, 1256, 1246, 575, 1923, 25, 147, 19, 186, 226, 1597, 7484, 19, 51, 18, 22402, 800, 3726, 3726, 184, 107, 31, 143, 30, 53, 859, 22, 18, 1256, 1246, 575, 1923, 13, 5, 12369, 13, 45, 8, 492...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MATLAB Looping with two variables from a vector === I have a 30-vector, **x** where each element of **x** follows a standardised normal distribution. So in Matlab, I have: for i=1:30; x(i)=randn; end; Now I want to create 30*30=900 elements from vector, **x** to make a 900-vector, **C** defined as follows: http://a8.sphotos.ak.fbcdn.net/hphotos-ak-ash3/580897_10151032951961952_1363704424_n.jpg I am unable to do the loop for two variables (k and l) properly. I have: for k=1:30,l=1:30; C(k,l)=(1/30)*symsum((x(i))*(x(i-abs(k-l))),1,30+abs(k-l)); end It says '*??? Undefined function or method 'symsum' for input arguments of type 'double'.*' I hope to gain from this a 900-vector, **C** which I will then rewrite as a matrix. The reason I have using two indices k and l instead of one is because I eventually want these indices to denote the (k,l)-entry of such a matrix so it is important that that my 900-vector will be in the form of **C** = [ row 1 row 2 row 3 ... row 30 ] so I can use the reshape tool i.e. C'=reshape(C,30,30) Could anyone help me with the code for the summation and getting such a 900 vector.
0
[ 2, 4277, 9086, 5293, 68, 29, 81, 12157, 37, 21, 7497, 800, 3726, 3726, 31, 57, 21, 712, 8, 28033, 15, 13, 1409, 396, 1409, 113, 206, 4520, 16, 13, 1409, 396, 1409, 2415, 21, 1236, 2541, 1826, 2523, 9, 86, 19, 4277, 9086, 15, 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...
How do we manage SMS and which is the best language to approach? === I know that many has been ask for how to create a SMS server, but there has been been a fragmentation of knowledge because some just ask for a C# or PHP solution. My situation is different: **I need to develop 2 different services:** 1. Receive SMS with a key work of what kind of information the client's client wants, like "FOOTBALL SCHEDULE" and the search in some data-base to send back to the sender's phone something like "12/12 NY X LA at 14:00h \n 13/12 DC X TX at 21:00h"; 2. Client comes to my site and pays for 1000 SMS with message "Merry Christmas to you Girls!" with the possibility to enter the numbers or pick a random set in our own database according to what kind of people he/she wants to inform. **For that I can use:** 1. Delphi *or* Java for Desktop/Web *or* Java for Android *or* PHP for Web; 2. MySQL *or* Firebird 3. A personal server *or* a Internet 3rd party server; 4. A SMS API service on the Internet *or* a personal phone with unlimited SMS sending pack. So, the options are many. I can use a Android App in a Cell Phone or other kind of App in my PC connected to the Phone via USB. I can also use the Nokia NetBook that comes with a 3G slot and manage it from my App. I have never made a program to handle any cell phone network services. **What I'd like to know from the unlimited StackOverflow users wisdom is:** 1. Which of these options are the best to practice in the matter of available resources for SMS in these technologies? 2. Is there any finished community project with these arguments that I can be part of or import any piece of code/knowledge to mine? 3. Is there an API with these two services already available? I am trying to avoid to contract a cellphone network provider to do that services. The cost would made it impossible. We are not intend to get a great profit, just to make these kind of services available in my region. Thank You All!
0
[ 2, 184, 107, 95, 4705, 7613, 18, 17, 56, 25, 14, 246, 816, 20, 2141, 60, 800, 3726, 3726, 31, 143, 30, 151, 63, 74, 1349, 26, 184, 20, 1600, 21, 7613, 18, 8128, 15, 47, 80, 63, 74, 74, 21, 28698, 16, 1918, 185, 109, 114, 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...
Recive REST and Response http codes in Python === I want to make very simple application in Python witch: 1. When REST calls PUT/DEL/GET are recived than response code is 200 2. When REST call create is recived than resposne code is 201 I tried with sockets but I dont know how to send 201
0
[ 2, 6042, 1284, 760, 17, 1627, 7775, 11358, 19, 20059, 800, 3726, 3726, 31, 259, 20, 233, 253, 1935, 3010, 19, 20059, 5722, 45, 137, 9, 76, 760, 3029, 442, 118, 3436, 118, 3060, 50, 13, 15110, 4763, 119, 1627, 1797, 25, 2327, 172, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jqGrid does not display search button === Im using a jqgrid to display my data, but it does not display the search button. Why is that? Code is below. $("#grdOpenItems").jqGrid({ url: 'api/matchingservicewebapi/GetAllMatchItemForClient', datatype: 'json', mtype: 'GET', caption: 'Open Items', jsonReader: { root: "rows", repeatitems: false, id : "0"}, colNames: ['Id', 'Account', 'Amount', 'Ref'], colModel: [ { name: 'Amount', index: 'Amount', width: 200 }, { name: 'Account', index: 'Account', width: 300 }, { name: 'Amount', index: 'Amount', width: 300 }, { name: 'Ref', index: 'Ref', width: 300 } ], rowNum: 5, rowList: [5, 10, 15], multiselect: true, pager: '#pagerOpenItems', viewrecoreds: true, sortname: 'Id', sortorder: "desc", imgpath: 'Themes/images' }).navGrid(pager, { edit: true, add: true, del: true, refresh: true, search: true, searchtext: "Search" }); But it displays the page navigation buttons with images, but not the search and reload button.
0
[ 2, 487, 1251, 16375, 630, 52, 3042, 2122, 5167, 800, 3726, 3726, 797, 568, 21, 487, 1251, 16375, 20, 3042, 51, 1054, 15, 47, 32, 630, 52, 3042, 14, 2122, 5167, 9, 483, 25, 30, 60, 1797, 25, 1021, 9, 5579, 5, 7, 5910, 263, 897,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calling a stored procedure from global.asax file === Hello I had developed the below code to save the dataset in `Global.asax` file. To consume that in `webpage.aspx.vb` file, now it is working fine. In the similar way, how could I call the stored procedure in `Global.asax`? Please help, Thank You in Advance! Shared _cache As Cache = Nothing Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) _cache = Context.Cache RefreshCache(Nothing, Nothing, 0) End Sub Private Shared Sub RefreshCache(ByVal key As String, ByVal item As Object, ByVal reason As CacheItemRemovedReason) Dim adapter As New SqlDataAdapter("SELECT * FROM dbo.table where logid = 1", "server=server;database=database;uid=userid;pwd=password") Dim ds As New DataSet() adapter.Fill(ds, "Quotations") Dim onRemove As CacheItemRemovedCallback onRemove = New CacheItemRemovedCallback(AddressOf RefreshCache) _cache.Insert("Quotes", ds, New CacheDependency("C:\AspNetSql\Quotes.Quotations"), Cache.NoAbsoluteExpiration, Cache.NoSlidingExpiration, CacheItemPriority.[Default], onRemove) End Sub
0
[ 2, 2555, 21, 8214, 7004, 37, 2062, 9, 8588, 396, 3893, 800, 3726, 3726, 10975, 31, 41, 885, 14, 1021, 1797, 20, 2079, 14, 1054, 3554, 19, 13, 1, 26763, 9, 8588, 396, 1, 3893, 9, 20, 16447, 30, 19, 13, 1, 14113, 6486, 9, 472, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use filters for Compass and Yui CSS in Assetic? === I have 2 files, one is a .css (inside vendor/somevendor/somelibrary/css/), and the other one is a .scss (inside @ProjectMainBundle/Resources/public/css/). I want the .scss to be compiled into a .css with the Sass filter, and then both .css files to be minified with the Yui filter. I have tried different variations of this: {% stylesheets '%kernel.root_dir%/../vendor/somevendor/somelibrary/css/somelibrary.css' '@ProjectMainBundle/Resources/public/css/*' filter='compass,yui_css' %} <link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" /> {% endstylesheets %} The problem is that the Sass filter is also being applied to the .css file, which throws indentation errors. In my config.yml I added the corresponding 'apply_to' parameter but didn't help: # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false bundles: [ProjectMainBundle] #java: /usr/bin/java filters: cssrewrite: ~ #closure: # jar: %kernel.root_dir%/Resources/java/compiler.jar sass: bin: /usr/local/bin/sass apply_to: "\.scss$" compass: bin: /usr/local/bin/compass apply_to: "\.scss$" yui_css: jar: %kernel.root_dir%/../vendor/yahoo/yui-compressor/build/yuicompressor-2.4.7.jar apply_to: "\.css$" yui_js: jar: %kernel.root_dir%/../vendor/yahoo/yui-compressor/build/yuicompressor-2.4.7.jar apply_to: "\.js$" So how do I do this? I don't want to have more than 1 resulting .css.
0
[ 2, 184, 20, 275, 21062, 26, 18879, 17, 2600, 49, 272, 18, 18, 19, 12146, 596, 60, 800, 3726, 3726, 31, 57, 172, 6488, 15, 53, 25, 21, 13, 9, 6824, 18, 13, 5, 108, 1416, 23510, 118, 3220, 3124, 5290, 118, 3220, 1210, 2559, 622,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MVC3 AJAX passing data to controller. It's being submitted twice === So I have a table that gets transformed to an array using: var result = $("#enrolledStudents").sortable('toArray'); But when I go a head an pass that into my controller like so: $("#update-enroll").click(function () { var result = $("#enrolledStudents").sortable('toArray'); $.ajax({ url: '@Url.Action("Enrollment", "Classroom")', data: { students: result }, type: 'POST', traditional: true }); }); My debugging breakpoint gets set off twice, causing issues to arise. What is the proper way to submit data to my controller on POST? Thanks!
0
[ 2, 307, 8990, 240, 20624, 2848, 1054, 20, 9919, 9, 32, 22, 18, 142, 7368, 2088, 800, 3726, 3726, 86, 31, 57, 21, 859, 30, 3049, 8445, 20, 40, 7718, 568, 45, 4033, 829, 800, 5579, 5, 7, 5910, 219, 8694, 69, 24822, 18, 7, 6, 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...
OnetoOne Hibernate Mapping === In a One To One mapping, I wrote the following lines of code. @GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name="property", value= "post")) @Id @GeneratedValue(generator = "generator") public int getContent_id() { return content_id; } What is the significance of **@Parameter(name="property", value= "post")**. If I don't write that line I'm getting an error *Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not instantiate id generator [entity-name=in.codejava.personal.model.Content]*
0
[ 2, 53, 262, 849, 4148, 2102, 8820, 13305, 800, 3726, 3726, 19, 21, 53, 20, 53, 13305, 15, 31, 738, 14, 249, 1560, 16, 1797, 9, 13, 1, 17083, 596, 17083, 3457, 5, 7259, 800, 13, 7, 17083, 3457, 7, 15, 4427, 800, 13, 7, 28292, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ORA-00905: missing keyword === I am getting ORA-00905: missing keyword error when trying to run the following query in Oracle: select distinct MONTH_ID from DSS_MAIN.DIM_TIME a1 where Case When TO_CHAR(SYSDATE,'MM') < 3 Then TO_CHAR(a1.MONTH_START_DATE,'YYYYMM') Between (TO_CHAR(SYSDATE,'YYYY')-1)||'03' And TO_CHAR(SYSDATE,'YYYYMM') Else TO_CHAR(a1.MONTH_START_DATE,'YYYYMM') Between TO_CHAR(SYSDATE,'YYYY')||'03' And TO_CHAR(SYSDATE,'YYYYMM') End; The individual Between clauses work fine, so I am assuming there is something wrong with the Case syntax. Any ideas?
0
[ 2, 54, 58, 8, 2032, 3165, 264, 45, 2863, 1246, 9587, 800, 3726, 3726, 31, 589, 1017, 54, 58, 8, 2032, 3165, 264, 45, 2863, 1246, 9587, 7019, 76, 749, 20, 485, 14, 249, 25597, 19, 15759, 45, 5407, 4421, 1617, 1, 1340, 37, 13, 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...
HTTP request without encoding === I need to send a http request without encoding (I have to consume a stupid supplier API that breaks if you encode your urls) so currently I have string address = "https://www.eco-bb.bt.com/bbxml33/batchstatus.asp?b_customerId=[O/M12346800]&batchid=[" + batchID + "]"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(address); Which produces > POST > https://www.eco-bb.bt.com/bbxml33/Upload.asp?b_customerId=%5BO/M12346800%5D And I want it to produce > POST > https://www.eco-bb.bt.com/bbxml33/Upload.asp?b_customerId=[O/M12346800] I'm a little stumped. Any suggestions on how to proceed?
0
[ 2, 7775, 3772, 366, 19608, 800, 3726, 3726, 31, 376, 20, 2660, 21, 7775, 3772, 366, 19608, 13, 5, 49, 57, 20, 16447, 21, 3553, 13078, 21, 2159, 30, 7947, 100, 42, 20523, 154, 13, 911, 7532, 6, 86, 871, 31, 57, 3724, 3218, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Browser delay with changing content of the page in django admin (caching, python/django) === I have a bit weird problem witch caching on my project in django. I can edit my page-content in django-admin. When i do that and refresh site - nothing is happening. I have to wait few minutes for changes. Funny thing is that, when i change browser (or computer) - i dont have to wait - the changes are on. Is it the problem of django, browser or what? Is it possible to set setting.py to get changes immediately? By the way, i have already figured out that when i turn the "django.middleware.cache.FetchFromCacheMiddleware" off - the problem disapears, but i dont want to turn cache off... Any ideas?
0
[ 2, 16495, 7255, 29, 4226, 2331, 16, 14, 2478, 19, 3857, 14541, 21, 43, 2160, 13, 5, 793, 7192, 15, 20059, 118, 14365, 14541, 6, 800, 3726, 3726, 31, 57, 21, 1142, 5455, 1448, 5722, 1658, 7192, 27, 51, 669, 19, 3857, 14541, 9, 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...