unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
how to set asp.net default subdomain to www? === If have a website myws.com, if I request myws.com or www.myws.com I will see the same website what I want is to be redirected to 'www.myws.com' when requesting 'myws.com' Thanks
0
[ 2, 184, 20, 309, 28, 306, 9, 2328, 12838, 972, 537, 6232, 20, 13, 6483, 60, 800, 3726, 3726, 100, 57, 21, 2271, 51, 10268, 9, 960, 15, 100, 31, 3772, 51, 10268, 9, 960, 54, 13, 6483, 9, 915, 10268, 9, 960, 31, 129, 196, 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...
Node cannot be resolved to a type === I'm working on a library and i would like to have the class Node. Most of the times it works fine but sometimes it gives the error: `Node cannot be resolved to a type` on every place where i use a node. Strange thing is that if i rename the class to DNode for example and rename every Node to DNode and then change everything back again to just Node then it's like the way it was before but the errors saying `Node cannot be resolved to a type` are gone (untill a certain time). Compiling is also no problem btw, it seems to be a eclipse bug or something. I know there is this Node class: http://docs.oracle.com/javase/6/docs/api/javax/xml/soap/Node.html but i don't import it so i can't see why that would form a problem. hope someone can help.
0
[ 2, 15421, 1967, 44, 11052, 20, 21, 1001, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 1248, 17, 31, 83, 101, 20, 57, 14, 718, 15421, 9, 127, 16, 14, 436, 32, 693, 1123, 47, 1030, 32, 2352, 14, 7019, 45, 13, 1, 251, 546, 1967, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Yii - getActiveFormWidget() returns wrong type in core? === **I am only trying to create a non-AJAX registration form.** When I submit through a CForm, PHP says error() is being called on a non-object. I checked the source file where the error occurred and (using `var_dump(get_class($parent->getActiveFormWidget()));`) found that getActiveFormWidget() returns a `CFormInputElement`, which does not have error() defined. I thought this had to do with [CForm::activeForm][1], but it defaulted to `CActiveForm`. I did try `'enableAjaxValidation'=>false`. What am I not understanding? I suspect I misinterpreted something along the way, but I feel I adhered to the docs well. ***CFormInputElement::renderError():*** public function renderError() { $parent=$this->getParent(); // $parent->getActiveFormWidget() returns object that does not define error() return $parent->getActiveFormWidget()->error($parent->getModel(), $this->name, $this->errorOptions, $this->enableAjaxValidation, $this->enableClientValidation); } ***Model:*** class RegisterFormModel extends CFormModel { public $email; public $password; public $password_confirm; public function rules() { return array( array('email, password, password_confirm', 'required'), array('password','compare','compareAttribute'=>'password_confirm'), array('password, password_confirm','length','min'=>'6','max'=>'20'), array('email', 'email'), array('email', 'length', 'max'=>256) ); } public function attributeLabels() { return array( 'email'=>'Email', 'password'=>'Password', 'password_confirm'=>'Confirm Password', ); } } ***View:*** <div class="form"> <?php echo $form; ?> </div><!-- form --> ***Controller Action:*** class RegisterAction extends CAction { public function run() { $register_model = new RegisterFormModel; $controller = $this->getController(); $form = new CForm(array( 'title'=>'Register', 'enableAjaxValidation'=>false, 'elements'=>array( 'email'=>array( 'type'=>'text', 'maxlength'=>256, ), 'password'=>array( 'type'=>'password', 'minlength'=>6, 'maxlength'=>32, ), 'password_confirm'=>array( 'type'=>'password', 'minlength'=>6, 'maxlength'=>32, ), ), 'buttons'=>array( 'register'=>array( 'type'=>'submit', 'label'=>'Register', ), ), ), $register_model); if($form->submitted('register', true) && $form->validate()) { // ... } else { $controller->render('register', array('model'=>$register_model, 'form'=>$form)); } } } [1]: http://www.yiiframework.com/doc/api/1.1/CForm#activeForm-detail
0
[ 2, 7679, 49, 13, 8, 164, 7889, 4190, 3976, 43, 3060, 5, 6, 4815, 1389, 1001, 19, 2884, 60, 800, 3726, 3726, 13, 1409, 49, 589, 104, 749, 20, 1600, 21, 538, 8, 6881, 7522, 8587, 505, 9, 1409, 76, 31, 12298, 120, 21, 272, 4190, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
prevent cells in being edited in google spreadsheet - google docs script === ive got a master sheet that i need to view and filter data from. The data is brought into the sheet using the `=Sheet2!B7` syntax. The problem i keep having is that i keep acidently editing the data in the master sheet which dosnt not update the original copy thus leaving me with a load of jumbled and un-updated data. what id like to do is have a script that would alert me that im in the master and stop me editing the cell. if i tried to change it by accident. But id still like to be able to filter the data so simply locking the sheet would work. ive been trying to modify this script (posted by Yuzhy) but so far i havnt been able to get it to work. *(im not sure wether this is the right place for this question, it was either this or stackexchange / superuser, if wrong please advise)* function onEdit(event) { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = SpreadsheetApp.getActiveSheet(); var CellRow = SpreadsheetApp.getActiveRange().getRow(); var CellColumn = SpreadsheetApp.getActiveRange().getColumn(); if (CellColumn == 2){ sheet.getRange(CellRow, CellColumn).setFormula("=A"+CellRow+"+1"); Browser.msgBox("DON'T MESS WITH THE FORMULAS!"); } } any helps much appreciated
0
[ 2, 2501, 2934, 19, 142, 4802, 19, 8144, 1789, 17627, 13, 8, 8144, 9765, 18, 3884, 800, 3726, 3726, 5568, 330, 21, 1129, 6125, 30, 31, 376, 20, 1418, 17, 11945, 1054, 37, 9, 14, 1054, 25, 809, 77, 14, 6125, 568, 14, 13, 1, 3726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Facebook Javascript API unknown path components === I'm trying to integrate Facebook sharing into a webpage using this code edited from their official developer tutorial, but I'm not having any luck. function postToFacebook(item_id) { FB.api( '/me/completeset:display', 'post', { item: 'http://completeset.us/item/'+item_id }, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Share was successful! Action ID: ' + response.id); } }); //End api } I've got the app set up, with an "item" object and the "defined" action defined. I haven't been able to submit the action yet though, because I haven't been able to post anything with it yet. I've verified that the item_id is being passed in correctly, and I've debugged the url using their debugging tool. When I call this function I'm getting `unknown path components/ completeset:display`. I haven't been able to find much information on this error, so I'm wondering: what are the causes, and how might I be able to fix it?
0
[ 2, 9090, 8247, 8741, 21, 2159, 2562, 2013, 5090, 800, 3726, 3726, 31, 22, 79, 749, 20, 18399, 9090, 6126, 77, 21, 2741, 6486, 568, 48, 1797, 4802, 37, 66, 989, 10058, 29724, 15, 47, 31, 22, 79, 52, 452, 186, 5419, 9, 1990, 678, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 perl argument passing? === I need help writing this page, I have a php input and button, and want it to work like the button points to openme.pl, and the button will private the perl arguments, possible?
1
[ 2, 13, 26120, 416, 255, 5476, 2848, 60, 800, 3726, 3726, 31, 376, 448, 1174, 48, 2478, 15, 31, 57, 21, 13, 26120, 6367, 17, 5167, 15, 17, 259, 32, 20, 170, 101, 14, 5167, 819, 20, 368, 790, 9, 5727, 15, 17, 14, 5167, 129, 93...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
if statement executing when condition is false === I'm tinkering with a projecteuler problem and I encountered the following really odd behaviour. And I can't for the life of me figure out whats going on. ![Screenshot] (http://i.imgur.com/0Ds4I.png) As the screenshot shows. The condition evaluates to false, and the if-statment executed as if it was true. I feel like I'm going crazy here. Code: http://ideone.com/xifRf
0
[ 2, 100, 3331, 25836, 76, 2874, 25, 4997, 800, 3726, 3726, 31, 22, 79, 25438, 68, 29, 21, 669, 5770, 1252, 1448, 17, 31, 8208, 14, 249, 510, 4210, 7727, 9, 17, 31, 92, 22, 38, 26, 14, 201, 16, 55, 1465, 70, 98, 18, 228, 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...
git diff to see what a merge would introduce === So me and a friend have been working on a project. Most of the time merges are painless as we generally work in different areas. Recently we have been running into eachother more and more creating nasty merges (deadlines). So we began investigating ways to see what a merge would do. I found a way to use git diff: git diff mybranch...hisbranch This gives pretty good results. The problem is, since that it uses the last common ancestor, and that ancestor is getting farther and farther back there is a lot of junk in the merge that hasn't been changed in either of our branches. So I'm wondering is there a way to visualize exactly what a merge would do. I've tried: git diff $(git-merge mybranch hisbranch) hisbranch Which seems to work ok, but I want to visualize the merge the other way so I tried: git diff $(git-merge hisbranch mybranch) mybranch But in this case ```git-merge: command not found``` Does anyone know of a good way to get a diff of two branches showing what a merge would introduce? Maybe highlight conflicts? If not, is there any visual tool that will allow one to manually do a commit, so one can choose what version of the code is the best.
0
[ 2, 13, 10404, 20811, 20, 196, 98, 21, 12666, 83, 8500, 800, 3726, 3726, 86, 55, 17, 21, 860, 57, 74, 638, 27, 21, 669, 9, 127, 16, 14, 85, 12666, 18, 50, 1257, 923, 28, 95, 1469, 170, 19, 421, 924, 9, 1989, 95, 57, 74, 946...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is my variable going from 1 to 2 and then back to 1? === I've been creating an idle program to count in minutes when the mouse and keyboard are inactive. This is what I have so far: using namespace std; while(true) { GetLastInputInfo(&last_info); tickCount = GetTickCount(); int minutes = (tickCount - last_info.dwTime) / 60000; count++; if((minutes >= 1) && (count%3000==0)) { ifstream in("in.txt"); ofstream out("out.txt"); float sum; in >> sum; sum = sum++; out << sum; out << in.rdbuf(); out.close(); in.close(); } std::cout << "Idle Time: " << minutes << " minutes." << std::endl; } } </code> When I run it idle for one minutes the "sum" says it's 1, I then close the program and open it up for one minutes again and the "sum" says it's 2. I close the program and open it for one more minute and it's back down to 1. Why is this happening?
0
[ 2, 483, 25, 51, 7612, 228, 37, 137, 20, 172, 17, 94, 97, 20, 137, 60, 800, 3726, 3726, 31, 22, 195, 74, 2936, 40, 18652, 625, 20, 2468, 19, 902, 76, 14, 7567, 17, 8896, 50, 19, 7889, 9, 48, 25, 98, 31, 57, 86, 463, 45, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
convert Visual Basic loop to C# loop === How it could be converted to C#? For i = IBase36.Length - 1 To 0 Step i - 1 Next Thank you!
4
[ 2, 8406, 3458, 2125, 5293, 20, 272, 5910, 5293, 800, 3726, 3726, 184, 32, 110, 44, 3494, 20, 272, 5910, 60, 26, 31, 800, 31, 8436, 3775, 9, 6325, 13, 8, 137, 20, 713, 1424, 31, 13, 8, 137, 328, 3531, 42, 187, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can I get started with RETS and pulling MLS data? === I have my RETS/IDX access credentials, but I have no idea where to go from here. What I do know: I need to download an entire copy of the MLS listings from my local MLS board. From there I would need an RETS framework of some sort (PHRETS? VieleRETS?). I need some guidance here, I don't know how to proceed. I am working with PHP and tying the listings to Wordpress is my goal.
0
[ 2, 184, 92, 31, 164, 373, 29, 13, 6239, 18, 17, 3303, 19164, 1054, 60, 800, 3726, 3726, 31, 57, 51, 13, 6239, 18, 118, 1340, 396, 1381, 5059, 43, 10107, 18, 15, 47, 31, 57, 90, 882, 113, 20, 162, 37, 235, 9, 98, 31, 107, 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...
Fetch timestamped counts from multiple tables === I have a table of nodes: nid type created status 2 blog 134292319 1 3 forum 134292536 1 4 blog 135921392 0 To graph the number of published (status=1) nodes over time, I execute this query: SELECT created, type FROM node WHERE status = 1 ORDER BY created I then go through this data set in PHP, splitting it into timestamped groups with a node count associated with each group. The results are cached, so slow execution isn't a problem. I also have a table of comments: nid timestamp status 2 134292363 1 3 134293234 1 I want to incorporate *forum* comment counts into the graph of node counts. To get the comment counts, I would run this query: SELECT timestamp FROM comments INNER JOIN node ON comments.nid = node.nid WHERE node.type = 'forum' AND comments.status = 1 ORDER BY timestamp I need to somehow combine these two queries, to end up with (for the examples given): created type 134292319 blog 134292536 forum 134293234 forum_comment Any ideas? Thanks.
0
[ 2, 18312, 436, 4919, 3631, 9927, 37, 1886, 7484, 800, 3726, 3726, 31, 57, 21, 859, 16, 16272, 45, 1781, 43, 1001, 679, 1782, 172, 8146, 13, 13837, 25204, 24178, 137, 203, 5691, 13, 13837, 2738, 1811, 3775, 137, 268, 8146, 14027, 432...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dealing with embeddable id and persist in Hibernate === I'm doing my first shopping cart for my webapp and I have an issue regarding how to deal with embeddable id in my entities. I'm using PostgreSQL 9, Hibernate 4 and Jboss 7.1. My database connection is working and I already persisted other entities. Anyway I reversed engineered from my database and it gave me these : Order (Commande) : http://pastebin.com/d0VCrkQX Order lines (Composer) : http://pastebin.com/yWwvD8mh Order lines ids (ComposerId) : http://pastebin.com/mJC5iYuS When I try to persist my order, I get a NPE on my persist. But I checked in debug and my order isn't empty, so i guess I filled it wrong because of the embeddable id. So my question is : how is Hibernate dealing with this ? When I create a new order line should I set the id manually ? But how can I do that if my order doesn't have any id since it hasn't been persisted yet ?
0
[ 2, 5746, 29, 11911, 69, 43, 579, 4924, 17, 22084, 19, 4148, 2102, 8820, 800, 3726, 3726, 31, 22, 79, 845, 51, 64, 4884, 6420, 26, 51, 2741, 7753, 17, 31, 57, 40, 1513, 3467, 184, 20, 1183, 29, 11911, 69, 43, 579, 4924, 19, 51,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NullPointerException uploading file (struts2 + hibernate) === I'm getting a null pointer exception and can't seem to resolve it.. I'm using Struts2 and hibernate. In my ProfileAction: public String profilePhoto() { String pathToSaveInDB = null; String uploadFolder = null; String filePath = null; try { uploadFolder = "profile_pic"; filePath = servletRequest.getSession().getServletContext().getRealPath("/") + uploadFolder; System.out.println("Server path:" + filePath); File fileToCreate = new File(filePath, this.userImageFileName); System.out.println(this.userImageFileName); System.out.println(this.userImage); pathToSaveInDB = uploadFolder + "/" + this.userImageFileName; FileUtils.copyFile(this.userImage, fileToCreate); System.out.println("user id: " + getId()); System.out.println("photo path: " + pathToSaveInDB); } catch (IOException e) { e.printStackTrace(); } profileDAO.updateProfilePhoto(Long.parseLong("1"), "test"); <==== just testing return SUCCESS; } My ProfileDAO: @Override public void updateProfilePhoto(Long id, String path) { String SQL_QUERY = "update Profile set ProfilePhotoPath = " + path + "" + " where UserId = " + id + ""; try { System.out.println(SQL_QUERY); Query query = session.createQuery(SQL_QUERY); int result = query.executeUpdate(); System.out.println(result); } catch (Exception e) { transaction.rollback(); e.printStackTrace(); } } My form: <s:form action="profilePic" method="post" enctype="multipart/form-data"> <label for="userImage">Profile Avatar:</label> <br /> <s:file name="userImage" label="User Image" /> <s:set name="userId" value="#session.User.id"/> <s:hidden name="id" value="%{#userId}" /> <s:submit value="Upload" /> </s:form> The error: java.lang.NullPointerException com.fotoalbum.dao.ProfileDAOImpl.updateProfilePhoto(ProfileDAOImpl.java:95) com.fotoalbum.web.ProfileAction.profilePhoto(ProfileAction.java:89) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) java.lang.reflect.Method.invoke(Method.java:611) com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453) com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:292) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:255) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265) org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:320) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:320) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) The error is specifically stating that `profileDAO.updateProfilePhoto(Long.parseLong("1"), "test");` in my ProfileAction and `transaction.rollback();` in my ProfileDAO is the cause.. Thanks in advance for any help :) If you need me to post more of my codes, do let me know. Cheers~
0
[ 2, 16203, 3132, 106, 10066, 872, 71, 16866, 3893, 13, 5, 11602, 38, 18, 135, 2754, 4148, 2102, 8820, 6, 800, 3726, 3726, 31, 22, 79, 1017, 21, 16203, 454, 106, 5391, 17, 92, 22, 38, 2260, 20, 9854, 32, 9, 9, 31, 22, 79, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Perl: open-ing a pipe for writing but program is not "waiting" for STDIN === I am trying to run a program from a perl script. I redirect STDOUT and STDERR to two different files. The program I am running asks for a password that I try to print to the process handle but that doesn't work as the program immediately prints an authentication error warning me that I didn't write anything to STDIN. The code I am using is similar to this: my $s = qq(some_program > someprogram.out 2> someprogram.err); open(my $f, "|$s") or die "Couldn't run program: $! $?"; # print `cat someprogram.out`; # An error has already been printed here! print $f "password\n"; close $f or die "$!: $?"; I have run this in the perl debugger and noticed that when the debugger runs the open line, I can run the commented out print line and the error is already in the output file. So, what am I forgetting to do in order for this to work? How do I tell open to "wait for STDIN"?
0
[ 2, 416, 255, 45, 368, 8, 68, 21, 7642, 26, 1174, 47, 625, 25, 52, 13, 7, 24725, 7, 26, 354, 3653, 800, 3726, 3726, 31, 589, 749, 20, 485, 21, 625, 37, 21, 416, 255, 3884, 9, 31, 302, 14706, 354, 43, 1320, 17, 354, 1157, 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...
Dynamic/context-sensitive constructor injection === I would like to inject the constructor parameter IActionLogger actionLogger, but want the other parameters largeBucket, smallBucket and amountToRetrieve are context-sensitive (not sure if that's the right term). **Question:** Should I just make these constructor parameters an automatic property and just leave the IActionLogger actionLogger parameter in the constructor? Basically, the calculations will vary based on the largeBucket, smallBucket and amountToRetrieve variables? I put these variables in the constructor because I need to do some setup beforehand. public class BucketActionsHandler : IBucketActionsHandler { private List<IAction> _actions = new List<IAction>(); private Bucket _largeBucket; private Bucket _smallBucket; private IActionLogger _actionLogger; private int _amountToRetrieve; public BucketActionsHandler(Bucket largeBucket, Bucket smallBucket, int amountToRetrieve, IActionLogger actionLogger) { _largeBucket = largeBucket; _smallBucket = smallBucket; _amountToRetrieve = amountToRetrieve; _actionLogger = actionLogger; _actions.Add(new LastAction(largeBucket, smallBucket, amountToRetrieve)); _actions.Add(new EmptySmallerBucketAction(largeBucket, smallBucket, amountToRetrieve)); _actions.Add(new EmptyLargeBucketAction(largeBucket, smallBucket, amountToRetrieve)); _actions.Add(new FillLargeBucketAction(largeBucket, smallBucket, amountToRetrieve)); _actions.Add(new FillSmallBucketAction(largeBucket, smallBucket, amountToRetrieve)); _actions.Add(new TransferToLargeBucketAction(largeBucket, smallBucket, amountToRetrieve)); _actions.Add(new TransferToSmallBucketAction(largeBucket, smallBucket, amountToRetrieve)); } private IAction GetNextAction() { foreach (var action in _actions) { if (action.SatisfiedCondition()) { return action; } } return null; } public void CalculateSteps() { IAction nextAction; do { nextAction = GetNextAction(); nextAction.Execute(); if (nextAction == null) { throw new InvalidOperationException("No valid action available"); } } while(!(nextAction is LastAction)); } }
0
[ 2, 7782, 118, 1126, 11969, 8, 19435, 6960, 248, 13646, 800, 3726, 3726, 31, 83, 101, 20, 20316, 14, 6960, 248, 18906, 31, 8645, 29480, 1028, 29480, 15, 47, 259, 14, 89, 12905, 370, 11925, 1198, 15, 284, 11925, 1198, 17, 2006, 262, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Detect if page is in frame of webcam === I want to scan some documents and I want to know when a page is "in the frame" of the camera. What I mean by this is the optimal distance from camera to page document (but without cutting any of the document). I want to run the detection program in a loop, so that the user calibrates the camera distance for each document before scanning. How can I do this?
0
[ 2, 9092, 100, 2478, 25, 19, 3523, 16, 2741, 8760, 800, 3726, 3726, 31, 259, 20, 8313, 109, 4374, 17, 31, 259, 20, 143, 76, 21, 2478, 25, 13, 7, 108, 14, 3523, 7, 16, 14, 3336, 9, 98, 31, 884, 34, 48, 25, 14, 17586, 1583, 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...
Print dynamic information to the console === I have a small console program, and it's necessary to print several lines of information, which is dynamically updated while running the application. While there was not much data to print, it fitted in one line and I used just `'\r'`, but how to deal with multiple lines? What is the best (simplest? general?) method to do this?
0
[ 2, 4793, 7782, 676, 20, 14, 8650, 800, 3726, 3726, 31, 57, 21, 284, 8650, 625, 15, 17, 32, 22, 18, 2378, 20, 4793, 238, 1560, 16, 676, 15, 56, 25, 7782, 1326, 6372, 133, 946, 14, 3010, 9, 133, 80, 23, 52, 212, 1054, 20, 4793...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 regexp, can't get + expression to work === I am trying to pull the number from a string per the css format, such as as follows: str == "50.1px" sz = str.match(/+([0-9]|\.)/) It complains about the + expression unless I escape it, but then then sz is null. If I remove the + it returns the first digit, only. I'm completely stumped.
0
[ 2, 8247, 8741, 7953, 6899, 15, 92, 22, 38, 164, 2754, 1803, 20, 170, 800, 3726, 3726, 31, 589, 749, 20, 2201, 14, 234, 37, 21, 3724, 416, 14, 272, 18, 18, 2595, 15, 145, 28, 28, 2415, 45, 13, 9729, 800, 3726, 13, 7, 2290, 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 initialization of abstract class instances === Lets say I have the following class Parent { protected: virtual void overrideMe() = 0; } class ChildA : public Parent { protected: void overrideMe() = 0{} } class ChildB : public Parent { protected: void overrideMe() = 0{} } class UtilClass { public: vector<Parent> planes; void compute() { Parent& p = planes[0]; } } In this case I|d get in the compute() in UtilsClass an error, that "Parent" cannot be initialized. what I|d like to do is to fill the array "planes" (with either ChildA or childB, i.e. non mixed type) in UtilClass and do some calculations. Do I have to use pointers while initialization, or better to use to use template? I'm almost sure that template usage is not necessary as I'd like to limit the usage to only cjildren of Parent class regards
0
[ 2, 7782, 2104, 1829, 16, 8502, 718, 13946, 800, 3726, 3726, 6884, 395, 31, 57, 14, 249, 718, 4766, 13, 1, 3803, 45, 6599, 11364, 84, 11891, 790, 5, 6, 800, 713, 73, 13, 1, 718, 850, 58, 13, 45, 317, 4766, 13, 1, 3803, 45, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multiple Tier Preferences in Android? === Right now I have a PreferenceActivity and a PreferenceFragment. The activity just has onBuildHeaders defined, and it loads an XML file that has a root object of preference-headers and then several children of it which are headers. Each header points at the PreferenceFragment and an XML file containing the screens, categories, and preferences. The issue is, this system only goes 2 layers deep. There's the headers on the left panel, and then everything for that header is in a single list on the right panel. For some headers, there's only a dozen or so options so it works okay. For other headers, there's 100+ preferences, which is fairly overwhelming, both to scroll and scan through, as well as for the device to load (there's a noticeable delay between tapping to open and having it open.) Is there any way I can have multiple tiers? I figure on the left the user will be able to "drill down" (mostly a term I've heard with iOS, IDK how common a term it is with Android) through headers until they reach the level where the preferences are actually stored and have that display on the right panel? Writing my own completely custom system seems feasible, but time consuming. I'm hoping someone knows of some built in APIs that will implement 3 or 4 tier drill down preferences for me. And before anyone asks, yes, I do need to have this many preferences (~500). I have been instructed to make the preference menu and given the list of items (which can be categorized into 3 or 4 tiers pretty easily.)
0
[ 2, 1886, 7197, 9808, 18, 19, 13005, 60, 800, 3726, 3726, 193, 130, 31, 57, 21, 9808, 19348, 17, 21, 9808, 22133, 1130, 9, 14, 2358, 114, 63, 27, 29361, 1743, 445, 2811, 15, 17, 32, 19069, 40, 23504, 3893, 30, 63, 21, 5900, 3095,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Need to read Outlook Form fields stored in .MSG file without the original form being available === I deleted an outlook form and recreated it. Because of an issue, I also had to clear the cache so its now impossible to recover this form. (believe me I have tried) My new form works, but it turns out the users had, unknown to me, been filing away the .msg files of the earlier form and keeping them for historical purposes. Now they can no longer open those .msg files because they dont have the form. I am assuming all the data that was stored in fields is in the .msg, but I can work out how to extract it. I have downloaded some c# that lets me see inside the .msg, but this only shows what was in the body. I cant see the important data that was stored inside fields on the form.
0
[ 2, 376, 20, 1302, 19837, 505, 2861, 8214, 19, 13, 9, 79, 18, 263, 3893, 366, 14, 501, 505, 142, 904, 800, 3726, 3726, 31, 19584, 40, 19837, 505, 17, 21119, 43, 32, 9, 185, 16, 40, 1513, 15, 31, 67, 41, 20, 1207, 14, 16522, 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...
OpenCV loading and displaying video produce inaccurate colours === I was following the example given in the OpenCV for video displaying, just took out some transformations unnecessary for me. The code I have right now loads the video file and then displays it, the problem is that reproduced video have wrong colours. Here's the code: using namespace std; using namespace cv; // The main function int main (int argc, char *argv[]) { VideoCapture cap ("ETMI 002.mpg"); // Open the file if (!cap.isOpened ()) // Check if opening was successful cerr << "I have failed!" << endl; else { Mat edges; Mat frame; namedWindow("edges",1); while (cap.read (frame)) { cvtColor(frame, edges, CV_BGR2RGB); imshow("edges", edges); if(waitKey(30) >= 0) break; } } return 0; }
0
[ 2, 368, 12732, 12797, 17, 17418, 763, 2213, 26349, 8739, 800, 3726, 3726, 31, 23, 249, 14, 823, 504, 19, 14, 368, 12732, 26, 763, 17418, 15, 114, 199, 70, 109, 6978, 18, 16435, 26, 55, 9, 14, 1797, 31, 57, 193, 130, 19069, 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...
Optimizing iOS App File Size === What are other work arounds to optimize the overall file size of an iOS App? I have done, making my images into PNG-8 though. What I just noticed in my Project is, some of the files added are external classes (Classes from Github that consists of .h and .m) would it be better if I will just referenced these classes? Even if one module is just 2 Files?
0
[ 2, 19259, 3335, 13, 7760, 4865, 3893, 1072, 800, 3726, 3726, 98, 50, 89, 170, 140, 18, 20, 22864, 14, 1677, 3893, 1072, 16, 40, 13, 7760, 4865, 60, 31, 57, 677, 15, 544, 51, 3502, 77, 351, 2723, 8, 457, 362, 9, 98, 31, 114, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android getApplicationContext memory management === In this post http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context Mark Murphy says "It can create memory leaks, if the Context from getApplicationContext() holds onto something created by your calls on it that you don't clean up. With an Activity, if it holds onto something, once the Activity gets garbage collected, everything else flushes out too. The Application object remains for the lifetime of your process." What calls create something that the application context keeps hold of? I have a library which needs a context for various things. It can run in the background and spans activities but to use and update activity contexts would be problematic. I think this is probably one of the occasions where using application context is preferable?
0
[ 2, 13005, 164, 2552, 20669, 1126, 11969, 1912, 1097, 800, 3726, 3726, 19, 48, 678, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 4009, 3804, 4440, 8197, 3185, 8, 262, 8, 9200, 8, 19348, 8, 1126, 11969, 8, 248, 8, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
QueryOver Select brings back more results than Count === I am trying to do a search using QueryOver however the results returned, although are right based on the search criteria, are being duplicated. Here is the code I am using to count the results, which works correctly var disjunction = new Disjunction(); disjunction.Add(Restrictions.On<Note>(e => e.Text).IsInsensitiveLike(query)); var tagSubQuery = QueryOver.Of<Note>().JoinQueryOver(x => x.Tags).Where(x => x.Text.IsInsensitiveLike(query)).Select(x => x.Id); disjunction.Add(Subqueries.WhereProperty<Note>(x => x.Id).In(tagSubQuery)); var notes = this.DataOver.Where(x => x.CreatedUTC >= startDate && x.CreatedUTC <= endDate).Where(disjunction); var subnotes = QueryOver.Of<Note>().JoinQueryOver(x => x.Accounts).Where(x => x.Company.Id == user.Company.Id).Select(x => x.Id); var returned = notes.WithSubquery.WhereProperty(x => x.Id).In(subnotes); return returned.RowCount(); If I change the last line to a select statement with skip and take like so return returned.OrderBy(x => x.CreatedUTC).Desc.Skip(skip).Take(take).List<Note>(); Then I get the 6 notes back, instead of 2. 1 note is duplicated, while the other is returned 4 times. I can only assume that is because the query matched two of the tags linked to one note. The SQL outputted by nHibernate profiler is as follows SELECT TOP (20 /* @p0 */) this_.Id as Id47_1_, this_.CreatedGMT as CreatedGMT47_1_, this_.CreatedLocal as CreatedL3_47_1_, this_.CreatedUTC as CreatedUTC47_1_, this_.UpdatedGMT as UpdatedGMT47_1_, this_.UpdatedLocal as UpdatedL6_47_1_, this_.UpdatedUTC as UpdatedUTC47_1_, this_.CreatedBy as CreatedBy47_1_, this_.UpdatedBy as UpdatedBy47_1_, this_.Text as Text47_1_, this_.UserId as UserId47_1_, this_.Suppress as Suppress47_1_, tags2_.NoteId as NoteId3_, tag3_.Id as TagId3_, tag3_.Id as Id27_0_, tag3_.CreatedGMT as CreatedGMT27_0_, tag3_.CreatedLocal as CreatedL3_27_0_, tag3_.CreatedUTC as CreatedUTC27_0_, tag3_.UpdatedGMT as UpdatedGMT27_0_, tag3_.UpdatedLocal as UpdatedL6_27_0_, tag3_.UpdatedUTC as UpdatedUTC27_0_, tag3_.CreatedBy as CreatedBy27_0_, tag3_.UpdatedBy as UpdatedBy27_0_, tag3_.Text as Text27_0_ FROM [dev.Client].[dbo].Note this_ left outer join [dev.Client].[dbo].TagToNote tags2_ on this_.Id = tags2_.NoteId left outer join [dev.Client].[dbo].Tag tag3_ on tags2_.TagId = tag3_.Id WHERE this_.Id in (SELECT this_0_.Id as y0_ FROM [dev.Client].[dbo].Note this_0_ inner join [dev.Client].[dbo].NoteToAccount accounts3_ on this_0_.Id = accounts3_.NoteId inner join [dev.Client].[dbo].Account account1_ on accounts3_.ClientAccountId = account1_.Id WHERE this_0_.Id in (SELECT this_0_0_.Id as y0_ FROM [dev.Client].[dbo].Note this_0_0_ WHERE (this_0_0_.CreatedUTC >= '2012-06-01T00:00:00.00' /* @p1 */ and this_0_0_.CreatedUTC <= '2012-06-30T00:00:00.00' /* @p2 */) and (lower(this_0_0_.Text) like '%dtes%' /* @p3 */ or this_0_0_.Id in (SELECT this_0_0_0_.Id as y0_ FROM [dev.Client].[dbo].Note this_0_0_0_ inner join [dev.Client].[dbo].TagToNote tags3_ on this_0_0_0_.Id = tags3_.NoteId inner join [dev.Client].[dbo].Tag tag1_ on tags3_.TagId = tag1_.Id WHERE lower(tag1_.Text) like '%dtes%' /* @p4 */))) and account1_.CompanyId = 1 /* @p5 */) ORDER BY this_.CreatedUTC desc If I put this directly into SQL management studio it returns 3 results, two of which are the same.
0
[ 2, 25597, 2549, 5407, 7620, 97, 91, 1736, 119, 2468, 800, 3726, 3726, 31, 589, 749, 20, 107, 21, 2122, 568, 25597, 2549, 207, 14, 1736, 587, 15, 419, 50, 193, 432, 27, 14, 2122, 9157, 15, 50, 142, 19429, 43, 9, 235, 25, 14, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Access XP report sum calculation === i am adding to a feedback database used within a call centre that handles a variety of services. part of what needs to be added is a report showing the total entries for each service that a particular CSO (customer service officer) does, when information is input it is through a form that includes 2 drop downs - one for the CSO name, and one for the Service the entry will be relevant to. Id like to be able to run a report through a query where the CSO name and Service will be entered along with a date period (i know how to do that as its pretty straightforward) and the output would be a report that includes a total for each service (not just the one entered) that the CSO has received feedback for. I hope this makes sense, and im sure there is a very simple solution or formula! thanks, Kris.
0
[ 2, 1381, 23045, 1330, 3907, 19644, 800, 3726, 3726, 31, 589, 4721, 20, 21, 13111, 6018, 147, 363, 21, 645, 861, 30, 3053, 18, 21, 1747, 16, 687, 9, 141, 16, 98, 2274, 20, 44, 905, 25, 21, 1330, 3187, 14, 600, 11399, 26, 206, 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...
Android TabHost Divider not working in 4.0.3 === This is the code I am using to set the divider between by tabs in the tab host. mTabHost.getTabWidget().setDividerDrawable(R.drawable.tabdivider); But it does not show up in the emulator. Searching around on SO led me to many posts regarding this but I have not been able to come to a perfect solution to this. Any help/suggestion in this regard will be really helpful.
0
[ 2, 13005, 6523, 11694, 8918, 139, 52, 638, 19, 268, 9, 387, 9, 240, 800, 3726, 3726, 48, 25, 14, 1797, 31, 589, 568, 20, 309, 14, 8918, 139, 128, 34, 6523, 18, 19, 14, 6523, 2015, 9, 307, 15783, 11694, 9, 3060, 15783, 3976, 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...
Is it possible to use [Required] attribute in model, but not in controller === Is it possible to use [Required] attribute in model, but not in controller. For example I want to use object in which I will set several parameters, and for the class of this object I want to set attribute [Required]. Is it possible to use logic like ModelState.IsValid or something like it. Regards, Sergey.
0
[ 2, 25, 32, 938, 20, 275, 636, 99, 3003, 2095, 500, 35, 14755, 19, 1061, 15, 47, 52, 19, 9919, 800, 3726, 3726, 25, 32, 938, 20, 275, 636, 99, 3003, 2095, 500, 35, 14755, 19, 1061, 15, 47, 52, 19, 9919, 9, 26, 823, 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...
return products between a range === I would like to know how to return items between to prices, how would i go about doing this? I am using LINQ, and C# var query = from a in dc.aboProducts join t in dc.tweProducts on a.sku equals t.sku where (string.IsNullOrEmpty(productSku) || productSku == t.sku) where (string.IsNullOrEmpty(productAsin) || productAsin == a.asin) where (string.IsNullOrEmpty(productName) || SqlMethods.Like(t.title, "%" + productName + "%")) where (string.IsNullOrEmpty(productBrand) || SqlMethods.Like(t.brand, "%" + productBrand + "%")) select new GetProducts { productid = Convert.ToInt32(t.id), sku = t.sku, title = t.title, tweprice = Convert.ToString(t.twePrice), stock = Convert.ToInt32(t.stock), asin = a.asin, amzprice = Convert.ToString(a.amzPrice), amzlive = Convert.ToBoolean(a.amzLive), lastupdated = Convert.ToDateTime(t.lastUpdated) }; return query.ToList(); I would guess i would need to do something like... where (t => (double)t.twePrice >= priceFrom && (double)t.twePrice <= priceTo) but i am not too sure, all help is much appreciated. Thanks Alan
0
[ 2, 788, 1985, 128, 21, 978, 800, 3726, 3726, 31, 83, 101, 20, 143, 184, 20, 788, 3755, 128, 20, 7334, 15, 184, 83, 31, 162, 88, 845, 48, 60, 31, 589, 568, 6294, 1251, 15, 17, 272, 5910, 4033, 25597, 800, 37, 21, 19, 4752, 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...
HTML + CSS: fixed background image and body width/min-width === So, here is my problem. I'm kinda stuck at the moment. I have a huge background image and content in the middle with those attributes: - content is centered with margin auto and has a fixed width - the content is related to the image (like the image is continued within the content) - this relation is only horizontally (vertically scrolling moves everything around) This works actually fine (I'm only talking desktop, not mobile here :) ) with a position fixed on the huge background image. The problem that occurs is the following: When I resize the window to "smaller than the content" the background image gets it width from the body instead of the viewport. So the relation between content and image gets lost. :/ Know I have this little JavaScript which does the trick, but this is of course some overhead I want to avoid: $(window).resize(function(){ img.css('left', (body.width() - img.width()) / 2 ); }); This works with a fixed positioned image, but can get a litty jumpy while calculating. I also tried things like that: <div id="test" style=" position: absolute; z-index: 0; top: 0; left: 0; width: 100%: height: 100%; background: transparent url(content/dummy/brand_backgroud_1600_1.jpg) no-repeat fixed center top; "></div> But this gets me back to my problem described. Is there any "script-less", elegant solution for this problem?
0
[ 2, 13, 15895, 2754, 272, 18, 18, 45, 3535, 2395, 1961, 17, 358, 9456, 118, 2160, 8, 3976, 43, 96, 800, 3726, 3726, 86, 15, 235, 25, 51, 1448, 9, 31, 22, 79, 21096, 4549, 35, 14, 688, 9, 31, 57, 21, 2329, 2395, 1961, 17, 2331...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
web service 10000 calls per second === I am planing to create mobile app. It calls web service automatically every 5 seconds to check, if there is a new message for the user. Imagine, that 10.000 users use this app at same time. That means web service receives 2000 request every second (that means 2000 hits on database per second). How can I handle this amount of requests? How to optimise database? Thank you.
0
[ 2, 2741, 365, 332, 3993, 3029, 416, 153, 800, 3726, 3726, 31, 589, 944, 68, 20, 1600, 3241, 4865, 9, 32, 3029, 2741, 365, 7499, 352, 331, 2582, 20, 2631, 15, 100, 80, 25, 21, 78, 2802, 26, 14, 4155, 9, 4382, 15, 30, 332, 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...
Getting error while calling a web service === I'm trying to call a web service in Java I've made but I keep getting an error, here's my code: System.out.print("web service call: ......"); try{ String text = webFunction(text); System.out.println(" OK"); System.out.println("web answer: "+texto); }catch(Exception e){ System.out.println(" Error\nError code: "+e); } And the error I get is: web service call: ...... Error Error code: javax.xml.ws.soap.SOAPFaultException: Index: 29, Size: 29 If anyone could tell me what does the error means, or, maybe tell me how to solve it it'll be great. Thanks
0
[ 2, 1017, 7019, 133, 2555, 21, 2741, 365, 800, 3726, 3726, 31, 22, 79, 749, 20, 645, 21, 2741, 365, 19, 8247, 31, 22, 195, 117, 47, 31, 643, 1017, 40, 7019, 15, 235, 22, 18, 51, 1797, 45, 329, 9, 1320, 9, 10299, 5, 7, 14113, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
combining of two images in Android === I want to combine two images by overlapping them at some fixed x-axis displacement. Suppose There are two images and both are the left and right snaps of the same panoramic view , 1. Now the problem is to find the X -axis displacement of the right image overlapping the left one so that both pixels match and they form the panoramic view. 2. The next issue is how they can be merged so that they feel like a single image without any defect. I have to do this using android , but please tell me using java /android how this can be done.
0
[ 2, 12803, 16, 81, 3502, 19, 13005, 800, 3726, 3726, 31, 259, 20, 12287, 81, 3502, 34, 23854, 105, 35, 109, 3535, 993, 8, 19676, 14980, 9, 5787, 80, 50, 81, 3502, 17, 156, 50, 14, 225, 17, 193, 6877, 18, 16, 14, 205, 28581, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 iOS component is this? (Look at the picture) === Hi guys I've trying to figure out which iOS component is the one in the picture below (the one pointed by the arrows), its like a cell separator that gets stuck at the top while the bottom keep scrolling, you can also find it in the address book with the alphabet. If you happen to know any tutorial any tutorial also post it too. Thank you very much! ![enter image description here][1] [1]: http://i.stack.imgur.com/GumNe.png
0
[ 2, 98, 13, 7760, 5912, 25, 48, 60, 13, 5, 5810, 35, 14, 2151, 6, 800, 3726, 3726, 4148, 2776, 31, 22, 195, 749, 20, 1465, 70, 56, 13, 7760, 5912, 25, 14, 53, 19, 14, 2151, 1021, 13, 5, 124, 53, 2489, 34, 14, 13912, 6, 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...
Evenly distribute collection into new Arrays === I'm trying to create an method to evenly distribute an array into X numbers of new arrays, where there is only allowed 15 items pr array, and you are only allowed to create a new array, if the previous have 10 items, except if the array has less than 10 items. Max allowed number in array = 15; Min allowed number in array = 10; Number = Numbers of Items in the Collection. Number 5 => [5] Number 13 => [13] Number 16 => [10] [6] Number 29 => [15] [14] Number 30 => [15] [15] Number 31 => [11] [10] [10] Number 32 => [12] [10] [10] Number 33 => [11] [11] [11] I'm trying to solve this in C#. This is my code so far, but it fails at numbers like 16, 29, 38 const int maxAllowedOrderLines = 15; const int minAllowedOrderLines = 10; var optimalOrderDisp = new List<int>(); Console.WriteLine("Number of OrderLines"); int linjer = Convert.ToInt32(Console.ReadLine()); if (linjer <= maxAllowedOrderLines) optimalOrderDisp.Add(linjer); else { for (var i = maxAllowedOrderLines; i > 0; i--) { var maxOrderLines = linjer%i; if (maxOrderLines == 0 || i <= minAllowedOrderLines || linjer < maxAllowedOrderLines) { Console.WriteLine("Optimal number of order lines {0}--{1}", i, (double) linjer/(double) i); var optimalNumberOfOrders = linjer/i; for (var orderNumber = 0; orderNumber < optimalNumberOfOrders; orderNumber++) { optimalOrderDisp.Add(i); } if (maxOrderLines != 0) optimalOrderDisp[0] += maxOrderLines; break; } } } foreach (var i1 in optimalOrderDisp) { Console.Write("[{0}]", i1); } Console.WriteLine();
0
[ 2, 166, 102, 14751, 1206, 77, 78, 7718, 18, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 40, 2109, 20, 166, 102, 14751, 40, 7718, 77, 993, 2116, 16, 78, 7718, 18, 15, 113, 80, 25, 104, 1159, 357, 3755, 5396, 7718, 15, 17, 42, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
multi column css issue === I have used multi column css to display my various ul lists into three columns. The following is the css that i have used .columnsmulti { -moz-column-count: 3; -moz-column-gap: 10px; -moz-column-rule: 0px double #666; -webkit-column-count: 3; -webkit-column-gap: 10px; -webkit-column-rule: 0px double #666; column-count: 3; column-gap: 10px; column-rule: 0px double #666; } The problem is the lists are not distributed into three columns properly. It looks different for each page refresh. Some lists are not displaying sometimes. How can i fix this?
0
[ 2, 1889, 4698, 272, 18, 18, 1513, 800, 3726, 3726, 31, 57, 147, 1889, 4698, 272, 18, 18, 20, 3042, 51, 617, 13, 1287, 7227, 77, 132, 7498, 9, 14, 249, 25, 14, 272, 18, 18, 30, 31, 57, 147, 13, 9, 716, 4404, 2172, 21531, 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...
JDOQL regex support === Does JDOQL support ^ for matching the start and $ for matching the end? I am having troubles getting them to work. Are ^ and $ maybe already implied?
0
[ 2, 487, 537, 22402, 7953, 1706, 555, 800, 3726, 3726, 630, 487, 537, 22402, 555, 13, 1, 26, 10120, 14, 799, 17, 5579, 26, 10120, 14, 241, 60, 31, 589, 452, 16615, 1017, 105, 20, 170, 9, 50, 13, 1, 17, 5579, 913, 614, 14719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Remove drop down entries based on previous selection === I've looked through stackoverflow for an answer and am almost there but need some help. I have multiple drop down lists with the same options in them. For example three identical lists with the following: <label for='distlist_1'>Distribution List 1</label> <select name='distlist_1'> <option value=''>Please Select:</option> <option value='1' selected='selected'>All</option> <option value='2'>All Managers</option> <option value='3'>Leavers</option> </select> The only difference being the name eg, distlist_1, 2, 3 etc. I can add ids if necessary. When a user selects an option in the first drop down list I need it to be removed from all other drops downs. I found a script that did this. $('option').click(function(){ $('option:contains(' + $(this).html() +')').not(this).remove(); }); But I need it so that if the user then decides, 'wait I don't need that option in drop down list 1 after all', she picks something else and the option reappears in the other drop downs. The code above removes the options then there is no way of retrieving them until if you click enough they all disappear.
0
[ 2, 4681, 2804, 125, 11399, 432, 27, 1158, 3155, 800, 3726, 3726, 31, 22, 195, 292, 120, 7566, 2549, 9990, 26, 40, 1623, 17, 589, 557, 80, 47, 376, 109, 448, 9, 31, 57, 1886, 2804, 125, 7227, 29, 14, 205, 6368, 19, 105, 9, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 make input labels appear correctly on iPhone / iPad? === I want to make the login labels (at the very top of this page www.plantify.co.uk) appear correctly on iPad and iPhone. The website is no way responsive, the trouble I am having is that you have to zoom in to focus on the input labels and it looks very messy. Can any CSS / Responsive legends help me?
0
[ 2, 184, 107, 31, 233, 6367, 13173, 1893, 12044, 27, 21024, 13, 118, 31, 8240, 60, 800, 3726, 3726, 31, 259, 20, 233, 14, 6738, 108, 13173, 13, 5, 721, 14, 253, 371, 16, 48, 2478, 13, 6483, 9, 17345, 8612, 9, 716, 9, 2185, 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...
Wordpress auth in external PHP === Is it possible to protect an external php script on the same server as a wordpress install, with the wordpress login system? I've found no decent info online. Thanks.
2
[ 2, 833, 5890, 10343, 96, 19, 4886, 13, 26120, 800, 3726, 3726, 25, 32, 938, 20, 2196, 40, 4886, 13, 26120, 3884, 27, 14, 205, 8128, 28, 21, 833, 5890, 16146, 15, 29, 14, 833, 5890, 6738, 108, 329, 60, 31, 22, 195, 216, 90, 122...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Add entire folder of JavaScript files to HTML5 App Cache === I have a huge set of JavaScript files that need to be added to the App cache. Is it possible to add an entire folder(JS folder) in the Manifest. Else, I'll have to manually add those JS files to the manifest.
0
[ 2, 3547, 1078, 19294, 16, 8247, 8741, 6488, 20, 13, 15895, 264, 4865, 16522, 800, 3726, 3726, 31, 57, 21, 2329, 309, 16, 8247, 8741, 6488, 30, 376, 20, 44, 905, 20, 14, 4865, 16522, 9, 25, 32, 938, 20, 3547, 40, 1078, 19294, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Call Javascript from code behind after partial postback === I have a RadTreeView in a UserControl that is in an UpdatePanel and opens in a jQuery popup window. A button within the control raises a click event that is picked up by the containing page and results in the user control adding a new node to the RadTreeView from the code behind of the user control. Once this happens I want to then call a JavaScript function (that loops through all nodes and sets their visibility based on a filter string). Ideally I want to set this script call from the same function within the user control. I have tried the following from code behind of the user control ScriptManager.RegisterClientScriptBlock( this, this.GetType(), "filter", "filterItems('" + this.RadTV.ClientID + "','" + this.txtFilter.Text + "');", true ); I have also tried something similar from the code behind of the parent page and registered the Script Block with the appropriate UpdatePanel. In both cases, the Script is never called. Any ideas? Cheers Stewart
0
[ 2, 645, 8247, 8741, 37, 1797, 439, 75, 7284, 678, 1958, 800, 3726, 3726, 31, 57, 21, 4944, 8101, 4725, 19, 21, 4155, 12898, 30, 25, 19, 40, 11100, 3206, 532, 17, 8965, 19, 21, 487, 8190, 93, 1675, 576, 1463, 9, 21, 5167, 363, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Heap memory analysis === I have a process which runs in `Solaris` continuously. The heap memory usage of the process keeps on increasing as time goes and when it exceeds 4Gb, process core dumps. I tried to run the process with `Purify`, but could not find any code which really leaks memory. Is there any way to analyze which code is responsible for the increased heap memory usage? The heap memory usage of the process is increasing by 4Mb or 8Mb every 15 minutes and it never decreases. I have used `pmap` command to check the process heap memory usage.
0
[ 2, 15414, 1912, 2495, 800, 3726, 3726, 31, 57, 21, 953, 56, 1461, 19, 13, 1, 5594, 14688, 1, 11738, 9, 14, 15414, 1912, 7514, 16, 14, 953, 8968, 27, 3425, 28, 85, 1852, 17, 76, 32, 11976, 18, 268, 11400, 15, 953, 2884, 11424, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jinja flask and loop properties === hello i have the code below on my template but can't get the loop.counter property is there anything wrong on the code? {% for res in res_list %} 79 <div id="tr_{{ res.id }}"> 80 <li><span data-acttion='rename' class="resname edit" id="zaab{{ loop.counter }}">{{ res.id }}</span> 81 82 <span class="edit resexpr" data-id="{{ res.id }}">{{ res.expr_highlight|safe }}</span></dd>&nbsp;&nbsp; 83 <input type="button" id="pickMeUp" value="pickMeUp"> 84 </div> 85 </li> 86 {% endfor %} and the problem i have is on line 80 where i have that: id="zaab{{ loop.counter }}" the output on the browser is just zaab if i change it to loop.first the output is zaabTrue on first look so there is something with count i think!
0
[ 2, 5627, 1004, 28972, 17, 5293, 3704, 800, 3726, 3726, 10975, 31, 57, 14, 1797, 1021, 27, 51, 22894, 47, 92, 22, 38, 164, 14, 5293, 9, 24416, 1354, 25, 80, 602, 1389, 27, 14, 1797, 60, 13, 1, 11881, 26, 10719, 19, 10719, 1, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 multiple conditions in rdlc expression === I have worked on only possible 2 in rdlc Expression values as like =iif((Fields!Gender.Value="1"),"Male","Female") Here i can work with only 2 possibilities. But if i want to check 3 or more condition than how can i?
0
[ 2, 184, 20, 2631, 1886, 2039, 19, 13, 897, 6109, 1803, 800, 3726, 3726, 31, 57, 577, 27, 104, 938, 172, 19, 13, 897, 6109, 1803, 4070, 28, 101, 800, 49, 821, 5, 5, 1109, 18, 187, 25465, 9, 15165, 3726, 7, 165, 7, 6, 15, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python does not detect .pyc files === I am using Python 3.2 (both for building and executing), and here is my question. I intend to ship my python application with the following setup: There is a main script (say, Main.py), that is using a compiled module, say Module1.pyc). To be precise, the directory structure is: .\Main.py .\__pycache__\Module1.cpython-32.pyc When I use the python interpreter to run the main script, it fails to find the module with the following error: -------------- Traceback (most recent call last): File "Main.py", line 10, in <module> import Module ImportError: No module named Module -------------- Note that I have added the current directory to PYTHONPATH environment variable, and is part of sys.path. Also, the inner __pycache__ directory is also added, and is visible in sys.path. Not sure why Module is not found. Am guessing, it could be because of the different file name - Module.cpython-32.pyc? But, then that is how the Python 3.2 interpreter generates it.
0
[ 2, 20059, 630, 52, 9092, 13, 9, 6448, 150, 6488, 800, 3726, 3726, 31, 589, 568, 20059, 203, 9, 135, 13, 5, 8110, 26, 353, 17, 25836, 6, 15, 17, 235, 25, 51, 1301, 9, 31, 13863, 20, 995, 51, 20059, 3010, 29, 14, 249, 18161, 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...
Android SDK: View Pager not Going Back to Correct View === I have a view which can be accessed in 3 ways depending on the users' actions. For example, I have a shop description page which can be accessed via: - Searching for the shop - Clicking on the shop via a Nearby Shops Map Feature - Clicking on the shop via a list view The problem I am having is that when the user is on the shop description page, and clicks back, it doesn't go back to the correct previous page. So if they accessed the shop description via the nearby map feature, clicking back brings them to the listview which is obviously not right. I tried to solve this problem by using the following code to set a referrer: SharedPreferences preferences = this.getSharedPreferences("SHARED_PREF",Context.MODE_PRIVATE); SharedPreferences.Editor editor = preferences.edit(); editor.putString("referrer", "nearby"); editor.commit(); I then checked against this shared preference in the onBackPressed method: public static void onBackPressed() { System.out.println("REFERRER NOW EQUALS= "+referrer); if(referrer == "nearby") { TabsViewPagerFragmentActivity.mViewPager.setCurrentItem(13); } else if(referrer == "search-list"){ TabsViewPagerFragmentActivity.mViewPager.setCurrentItem(15); } else { TabsViewPagerFragmentActivity.mViewPager.setCurrentItem(10); } } However it still isn't working right. Is there a better way to solve this? Thanks
0
[ 2, 13005, 13, 18, 43, 197, 45, 1418, 2478, 139, 52, 228, 97, 20, 4456, 1418, 800, 3726, 3726, 31, 57, 21, 1418, 56, 92, 44, 12904, 19, 203, 2847, 4758, 27, 14, 3878, 22, 3078, 9, 26, 823, 15, 31, 57, 21, 2546, 5318, 2478, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DropDownList in header template could not be used as a control parameter for filter expression === I am having a tough time in resolving this particular issue.I have gridview which is bound to a sqldatasource with filterexpression property.The header of gridview has a dropdownlist and I want to filter the gridview with this control by specifying it in a controlparameter of filterparameter collection. Everytime I try to do it,I only end up getting control not recognised. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" EnableModelValidation="True" Width="1300px" CellPadding="4" AllowPaging="True" AllowSorting="True" RowStyle-HorizontalAlign="Center" ForeColor="#333333" GridLines="None"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:TemplateField HeaderText="Account" SortExpression="accountname"> <EditItemTemplate> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("accountname") %>'></asp:TextBox> </EditItemTemplate> <HeaderTemplate> <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="sqlHAccount" DataTextField="accountname" DataValueField="accountname"> <asp:ListItem Value="%" Text="All"></asp:ListItem> </asp:DropDownList> <asp:SqlDataSource ID="sqlHAccount" runat="server" ConnectionString="<%$ ConnectionStrings:IPTrackConnectionString %>" SelectCommand="SELECT * FROM [tbl_accounts]"></asp:SqlDataSource> </HeaderTemplate> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# Eval("accountname") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IPTrackConnectionString %>" SelectCommand="SELECT tbl_accounts.accountname, tbl_accountsubnet.Instream, tbl_accountsubnet.CO, tbl_accountsubnet.VlanId, tbl_accountsubnet.Subnet, tbl_accountsubnet.StartDate, tbl_accountsubnet.EndDate, tbl_accountsubnet.PrimaryContact, tbl_accountsubnet.SecondaryContact, tbl_accountsubnet.Analyst, tbl_accountsubnet.IsActive FROM tbl_accounts INNER JOIN tbl_accountsubnet ON tbl_accounts.accountid = tbl_accountsubnet.accountid" FilterExpression="accountname like '{0}%'"> <FilterParameters> <asp:ControlParameter Name="Account" ControlID="DropDownList1" PropertyName="SelectedValue"/> </FilterParameters> </asp:SqlDataSource> Please help to resolve this.I have seen different posts which say to get values from gridview1.headerrow.findcontrol("") but none of it is working for me. Thanks
0
[ 2, 2804, 2968, 5739, 19, 157, 106, 22894, 110, 52, 44, 147, 28, 21, 569, 18906, 26, 11945, 1803, 800, 3726, 3726, 31, 589, 452, 21, 6161, 85, 19, 28687, 48, 1498, 1513, 9, 49, 57, 7354, 4725, 56, 25, 4138, 20, 21, 4444, 255, 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...
box2d & html5 animation with final state known === I already played a bit with html5 but especially with box2d. I'd need to make an animation of objets with physics using html5 & box2d in which I want some objects to be in a particular place on the screen at the end of the animation. I guess I miss totally the subsequent concept. It would involve reverse path or something like that. Anyone here to help me? I mean, to give me a couple of leads ?
0
[ 2, 1649, 135, 43, 279, 13, 15895, 264, 6236, 29, 426, 146, 167, 800, 3726, 3726, 31, 614, 257, 21, 1142, 29, 13, 15895, 264, 47, 1118, 29, 1649, 135, 43, 9, 31, 22, 43, 376, 20, 233, 40, 6236, 16, 5122, 10307, 18, 29, 4339, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Integrating Sagepay recurring payment with ASP.NET === I have completed Sagepay server protocol integration with ASP.NET Webforms for normal payment. But how does recurring payment works in Sagepay, any type of request/response format will be also useful.
0
[ 2, 24529, 9527, 12224, 11344, 7582, 29, 28, 306, 9, 2328, 800, 3726, 3726, 31, 57, 1066, 9527, 12224, 8128, 8494, 8078, 29, 28, 306, 9, 2328, 2741, 4190, 18, 26, 1826, 7582, 9, 47, 184, 630, 11344, 7582, 693, 19, 9527, 12224, 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, 0, 0, 0, 0...
jquery getting GET variables from javascript file === I have a link, and when a user clicks it, it pushes a javascript file onto the page. in addition to that, it adds on parameters to the javascript src example: <script type="text/javascript" src="javascripfile.js?r=some%values&u=more&values"> This isn't getting passed through URL on browser. I was wondering how I would get these parameters inside javascriptfile.js? **javascriptfile.js**: (function(){ //how to get r value, u value? }()); Thanks for your help!
0
[ 2, 487, 8190, 93, 1017, 164, 12157, 37, 8247, 8741, 3893, 800, 3726, 3726, 31, 57, 21, 3508, 15, 17, 76, 21, 4155, 10840, 18, 32, 15, 32, 16271, 21, 8247, 8741, 3893, 1204, 14, 2478, 9, 19, 848, 20, 30, 15, 32, 10621, 27, 1290...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 write inline view in HQL? === session.createQuery(" from " + "(select att.licenceNo license,driver.driverName drivername" + " from DriverAttendanceDTO att,DriverDetailsDTO driver" + " where att.licenceNo=driver.licenceNo" + " and att.recordStatus='A'" + " and driver.recordStatus='A' )"); Hibernate is giving me Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: unexpected token: ( near line 1, column 7 [ from (select att.licenceNo license,driver.driverName drivername,att.present present from com.vms.dto.DriverAttendanceDTO att,com.vms.dto.DriverDetailsDTO driver where att.licenceNo=driver.licenceNo and att.recordStatus='A' and driver.recordStatus='A' )] at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54) at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47) What is wrong with that?
0
[ 2, 184, 20, 2757, 19, 1143, 1418, 19, 746, 22402, 60, 800, 3726, 3726, 3723, 9, 6037, 1373, 8190, 93, 5, 7, 37, 13, 7, 2754, 13, 7, 5, 18, 16964, 35, 38, 9, 4663, 2940, 251, 3962, 15, 21752, 9, 21752, 7259, 2425, 7259, 7, 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...
Why is this property not being created? === I'm trying to follow [this information][1] to create an address book program in wpf. I am actually using visual c# 2010, and just adapting as I go along. However, I've followed all instructions as closely as possible, and for some reason the `contact` property isn't showing up in the properties box when I have selected `MainWindow`. The code I have follows: namespace WpfApplication1 { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); contacts.Add(new Contact() { Name = "James", Email = "james@mail.com", PhoneNumber = "01234 111111" }); contacts.Add(new Contact() { Name = "Bob", Email = "bob@mail.com", PhoneNumber = "01234 222222" }); contacts.Add(new Contact() { Name = "Emma", Email = "emma@mail.com", PhoneNumber = "01234 333333" }); } protected List<Contact> contacts = new List<Contact>(); public List<Contact> Contacts { get { return contacts; } set { contacts = value; } } } [1]: http://bit.ly/N8CKrt
0
[ 2, 483, 25, 48, 1354, 52, 142, 679, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1740, 636, 1565, 676, 500, 2558, 165, 500, 20, 1600, 40, 3218, 360, 625, 19, 619, 7721, 9, 31, 589, 1121, 568, 3458, 272, 5910, 498, 15, 17, 114, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why Does the Leap Second Cause Problems? === So at this moment (but most likely not for long) Reddit, Meetup, Fark, LinkedIn, Yelp, 4Chan are all down. According to Reddit's tweet, they are having issues relating to the Leap Second from 6/30/2012: https://twitter.com/redditstatus/status/219244389044731904 > "We are having some Java/Cassandra issues related to the leap second > at 5pm PST. We're working as quickly as we can to restore service." Apparently, the issues affecting the other sites are all related to a leap second issue. After reading Wikipedia article on [Leap seconds][1], I *think* I understand what leap seconds are... but what I don't get is what kind of weird behaviors can happen if leap second isn't accounted for? And how, as programmers, should we prepare for leap seconds when we code and configure servers? I mean it's only one second isn't it? [1]: http://en.wikipedia.org/wiki/Leap_second
0
[ 2, 483, 630, 14, 10336, 153, 1679, 1716, 60, 800, 3726, 3726, 86, 35, 48, 688, 13, 5, 811, 127, 1720, 52, 26, 175, 6, 402, 43, 242, 15, 1255, 576, 15, 463, 197, 15, 4727, 108, 15, 25009, 15, 268, 3606, 50, 65, 125, 9, 496, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Whenever task with sudo === I want to execute a task with whenever rails gem at every reboot like this every :reboot do script "cd :path && RAILS_ENV=:environment && rvmsudo ruby script/delayed_job start :environment" end however rvmsudo will prompt for the password what could be a workaround to successfully execute the task? Thank you
0
[ 2, 6634, 3005, 29, 13, 18, 18601, 800, 3726, 3726, 31, 259, 20, 15644, 21, 3005, 29, 6634, 2240, 18, 8551, 35, 352, 25312, 101, 48, 352, 13, 45, 99, 10858, 38, 107, 3884, 13, 7, 6324, 13, 45, 8353, 279, 1569, 2240, 18, 1, 219,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rescuing solutions from Maple's solve === <p>I have something like</p> `solutions := solve ( {eqn1=0, eqn2=0, eqn3=0, eqn4=0, ... } )` <p> which returns something like:<br></p> `solutions := {Ax = -.2312688085, Ay = -7.770329620, Bx = -19.76873119, ....}` <p> How can I access and save each solution?<br> Is "Ax := solutions[1];", and so on, the only way? <p> Although solutions[1] doesn't access to -.2312688085 in the above example, but a kind of string "Ax = -.2312688085", so I end up having "Ax := Ax = -.2312688085"
0
[ 2, 26058, 6776, 37, 10470, 22, 18, 8402, 800, 3726, 3726, 13, 1, 306, 1, 49, 57, 301, 101, 1, 118, 306, 1, 13, 1, 18, 18687, 3309, 18, 13, 45, 3726, 8402, 13, 5, 13, 1, 18550, 103, 165, 3726, 387, 15, 13, 18550, 103, 135, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
getElementsByTagName 'undefined' in Firefox and Chroome: === it's my first post here so i am sorry if i am not doing something right. I have some problem with the: getElementsByTagName('latitude').item(i).text; trying to pull information from an xml file i recived from the server using ajax. in IE it's works fine, but when i try to run it on Chrome or FireFox i get an "undefined" information instead of what i need: here is the javascript code i wrote: function parseMessage() { doc = request.responseXML; sum = ""; for (var i=0; i< doc.getElementsByTagName('coupon').length;i=i+1) { var lat2 = doc.documentElement.getElementsByTagName('latitude').item(i).text; var longi2 = doc.documentElement.getElementsByTagName('longitude').item(i).text; var latlng = new google.maps.LatLng( lat2 , longi2 ); var product = doc.documentElement.getElementsByTagName('productname').item(i).text; // marker[i] = createMarker(map2, product, latlng, description); sum = sum + description+ " "+ product + lat2 + longi2; } document.write(sum); } and here is the xml file that is sent from the server: <?xml version="1.0" encoding="UTF-8"?> -<coupons> -<coupon id="1"> <productname>Bigmac</productname> <companyname>Macdonalds</companyname> <latitude>32.015954</latitude> <longitude>34.755228</longitude> </coupon> -<coupon id="2"> <productname>Crocs</productname> <companyname>Crocs</companyname> <latitude>32.079375</latitude> <longitude>34.769325</longitude> </coupon> -<coupon id="3"> <productname>Nike Shoks</productname> <companyname>NIKE</companyname> <latitude>32.048825</latitude> <longitude>34.785461</longitude> </coupon> -<coupon id="4"> .....
0
[ 2, 164, 27567, 18, 779, 8628, 7259, 13, 22, 1020, 13439, 22, 19, 535, 18219, 17, 13, 19642, 6651, 45, 800, 3726, 3726, 32, 22, 18, 51, 64, 678, 235, 86, 31, 589, 1875, 100, 31, 589, 52, 845, 301, 193, 9, 31, 57, 109, 1448, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Apple Mach-O Linker (ld) Error === I am hitting an Apple Mach-O Linker (ld) Error when trying to compile https://github.com/kineme/AudioTools in 10.8 with Xcode 4.4. ---- I think its running into problems trying to import the "SkankySDK" which is available here: https://github.com/kineme/QCPatchXcodeTemplate I used their install script to copy the frameworks into the system library. I have imported the Framework into the project (It is in my **Build Phases** under **Link Binary With Libraries**, and I have also tried adding it to a new "Copy Files" build Phase to no avail) The Framework is in my project under **Frameworks and Libraries > Linked Frameworks** >Ld build/AudioTools.build/Development/AudioTools.build/Objects-normal/i386/AudioTools normal i386 cd /Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools setenv MACOSX_DEPLOYMENT_TARGET 10.8 /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/build/Development -L/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/Frameworks -F/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/build/Development -F/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools -F/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/Frameworks -F/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/Frameworks/SkankySDK.framework/Headers -F/Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/Frameworks/SkankySDK.framework -filelist /Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/build/AudioTools.build/Development/AudioTools.build/Objects-normal/i386/AudioTools.LinkFileList -Xlinker -rpath -Xlinker "@loader_path/../Frameworks" -mmacosx-version-min=10.8 -dead_strip -fobjc-link-runtime -framework SkankySDK -framework Cocoa -framework Quartz -framework CoreAudio -framework Accelerate -framework AudioToolbox -framework QuickTime -o /Users/tenkai/Desktop/Projects/QuartzComposer/AudioTools/build/AudioTools.build/Development/AudioTools.build/Objects-normal/i386/AudioTools >ld: framework not found SkankySDK >collect2: ld returned 1 exit status Command /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
0
[ 2, 4037, 10604, 8, 111, 3508, 106, 13, 5, 6252, 6, 7019, 800, 3726, 3726, 31, 589, 6687, 40, 4037, 10604, 8, 111, 3508, 106, 13, 5, 6252, 6, 7019, 76, 749, 20, 26561, 7775, 18, 6903, 10404, 20926, 9, 960, 118, 1767, 11025, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
insert a google maps code into a table column === i use this query $sq="UPDATE `contact` SET `".$pType."`='".$content."'"; it works fine but until i enter this code to the text area <iframe width="710" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Yenimahalle,+Gersan,+Ankara,+T%C3%BCrkiye&amp;aq=0&amp;oq=gersan+&amp;sll=39.982382,32.760887&amp;sspn=0.157578,0.308647&amp;ie=UTF8&amp;hq=&amp;hnear=Bat%C4%B1+Sitesi+Mh.,+Gersan,+Ankara%2FYenimahalle,+Turkey&amp;t=m&amp;ll=39.955543,32.696342&amp;spn=0.029607,0.060854&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Yenimahalle,+Gersan,+Ankara,+T%C3%BCrkiye&amp;aq=0&amp;oq=gersan+&amp;sll=39.982382,32.760887&amp;sspn=0.157578,0.308647&amp;ie=UTF8&amp;hq=&amp;hnear=Bat%C4%B1+Sitesi+Mh.,+Gersan,+Ankara%2FYenimahalle,+Turkey&amp;t=m&amp;ll=39.955543,32.696342&amp;spn=0.029607,0.060854&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small> it updates but with missing information like this <iframe width="710" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q what could be the possible problem. im stuck.i cant see anything thanks
0
[ 2, 14692, 21, 8144, 6867, 1797, 77, 21, 859, 4698, 800, 3726, 3726, 31, 275, 48, 25597, 5579, 18, 1251, 3726, 7, 576, 8209, 13, 1, 29912, 1, 309, 13, 1, 7, 9, 4403, 306, 4474, 9, 7, 1, 3726, 22, 7, 9, 4403, 25424, 9, 7, 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...
Android instantiationexception in app when using device admin === I am getting there! Logcat: 07-29 19:15:05.509: D/libEGL(31021): loaded /system/lib/egl/libEGL_mali.so 07-29 19:15:05.544: D/libEGL(31021): loaded /system/lib/egl/libGLESv1_CM_mali.so 07-29 19:15:05.549: D/libEGL(31021): loaded /system/lib/egl/libGLESv2_mali.so 07-29 19:15:05.549: D/(31021): Device driver API match 07-29 19:15:05.549: D/(31021): Device driver API version: 10 07-29 19:15:05.549: D/(31021): User space API version: 10 07-29 19:15:05.549: D/(31021): mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Mon Mar 5 09:47:55 KST 2012 07-29 19:15:05.574: D/OpenGLRenderer(31021): Enabling debug mode 0 07-29 19:15:07.509: W/IInputConnectionWrapper(31021): showStatusIcon on inactive InputConnection 07-29 19:15:08.444: D/dalvikvm(31021): newInstance failed: no <init>() 07-29 19:15:08.444: D/AndroidRuntime(31021): Shutting down VM 07-29 19:15:08.444: W/dalvikvm(31021): threadid=1: thread exiting with uncaught exception (group=0x41443300) 07-29 19:15:08.549: E/AndroidRuntime(31021): FATAL EXCEPTION: main 07-29 19:15:08.549: E/AndroidRuntime(31021): java.lang.RuntimeException: Unable to instantiate receiver com.liamwli.parent.trap.ParentTrap$Controller: java.lang.InstantiationException: can't instantiate class com.liamwli.parent.trap.ParentTrap$Controller; no empty constructor 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2333) 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.app.ActivityThread.access$1500(ActivityThread.java:139) 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281) 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.os.Handler.dispatchMessage(Handler.java:99) 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.os.Looper.loop(Looper.java:137) 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.app.ActivityThread.main(ActivityThread.java:4896) 07-29 19:15:08.549: E/AndroidRuntime(31021): at java.lang.reflect.Method.invokeNative(Native Method) 07-29 19:15:08.549: E/AndroidRuntime(31021): at java.lang.reflect.Method.invoke(Method.java:511) 07-29 19:15:08.549: E/AndroidRuntime(31021): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) 07-29 19:15:08.549: E/AndroidRuntime(31021): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) 07-29 19:15:08.549: E/AndroidRuntime(31021): at dalvik.system.NativeStart.main(Native Method) 07-29 19:15:08.549: E/AndroidRuntime(31021): Caused by: java.lang.InstantiationException: can't instantiate class com.liamwli.parent.trap.ParentTrap$Controller; no empty constructor 07-29 19:15:08.549: E/AndroidRuntime(31021): at java.lang.Class.newInstanceImpl(Native Method) 07-29 19:15:08.549: E/AndroidRuntime(31021): at java.lang.Class.newInstance(Class.java:1319) 07-29 19:15:08.549: E/AndroidRuntime(31021): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2328) 07-29 19:15:08.549: E/AndroidRuntime(31021): ... 10 more 07-29 19:15:09.719: I/Process(31021): Sending signal. PID: 31021 SIG: 9 Acitvity: package com.liamwli.parent.trap; import android.os.Bundle; import android.app.Activity; import android.app.admin.DeviceAdminReceiver; import android.app.admin.DevicePolicyManager; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import android.support.v4.app.NavUtils; public class ParentTrap extends Activity { Button dae, dad, spass; EditText pass; ComponentName mDeviceAdminSample; static final int RESULT_ENABLE = 1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); dae = (Button) findViewById(R.id.benablea); dae.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub mDeviceAdminSample = new ComponentName(ParentTrap.this, Controller.class); Intent intent = new Intent( DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mDeviceAdminSample); intent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION, "Title"); startActivityForResult(intent, RESULT_ENABLE); } }); dad = (Button) findViewById(R.id.button1); dad.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub } }); spass = (Button) findViewById(R.id.button2); spass.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub } }); pass = (EditText) findViewById(R.id.editText1); dad.setEnabled(false); } public class Controller extends DeviceAdminReceiver { void showToast(Context context, String msg) { String status = "Status"; Toast.makeText(context, status, Toast.LENGTH_SHORT).show(); } @Override public void onEnabled(Context context, Intent intent) { showToast(context, "Enabled"); } @Override public CharSequence onDisableRequested(Context context, Intent intent) { return "Disable Requested"; } @Override public void onDisabled(Context context, Intent intent) { showToast(context, "Disabled"); } @Override public void onPasswordChanged(Context context, Intent intent) { showToast(context, "Device PIN Changed"); } } } class evilliam { } // @Override // public boolean onCreateOptionsMenu(Menu menu) { // getMenuInflater().inflate(R.menu.main, menu); // return true; // } Please help me with this question, and I promise not to bother you until tomorrow :)
0
[ 2, 13005, 6322, 49, 857, 10066, 872, 19, 4865, 76, 568, 3646, 21, 43, 2160, 800, 3726, 3726, 31, 589, 1017, 80, 187, 6738, 5782, 45, 13, 2984, 8, 2738, 732, 45, 1193, 18718, 9, 264, 2545, 45, 13, 43, 118, 8326, 62, 8430, 5, 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...
Hosting static website with AWS S3 and Route 53 === Let's say I currently have website www.a.com (entirely static) on a dedicated server and I want to switch to AWS. So far I did the following: Create bucket www.a.com, give proper permission to make it web (visible for public) and uploaded all files. Obtain http://www.a.com.s3-website-eu-west-1.amazonaws.com. I created Hosted Zone in AWS Route 53 and automatically got two Record Sets, NS and SOA. Next, I added a CNAME for *.a.com. with value http://www.a.com.s3-website-eu-west-1.amazonaws.com Question is now, what do I add for an A record? I don't have an IP. Can I use my dedicated server somehow to keep serving email? How should I setup MX given I have a WHM/cPanel server? Thanks.
0
[ 2, 10637, 12038, 2271, 29, 21, 10268, 13, 18, 240, 17, 858, 6207, 800, 3726, 3726, 408, 22, 18, 395, 31, 871, 57, 2271, 13, 6483, 9, 58, 9, 960, 13, 5, 16001, 99, 102, 12038, 6, 27, 21, 2360, 8128, 17, 31, 259, 20, 5521, 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...
jqgrid, getting data to display === I am trying to get a basic version of jqgrid to work however it seems like I cannot get anything to display. I have loaded a variable called "reviews" which holds my data. Then I load the data into the object and pass it into json_encode. As far as I can tell everything seems to be lined up however, maybe I am miss understanding something? I have tried looking up tutorials but they are just rewords of the tutorial on the wiki which is pretty vague... My code is as follows: jQuery("#list2").jqGrid({ url: 'AJAX/get.php?request=allReviews', datatype: "json", colNames: ['App', 'Submitted By', 'Date', 'Read'], colModel:[ {name:'App',index:'app', width:75}, {name:'Submitted',index:'submittedDate', width:90}, {name:'Date',index:'name', width:100}, {name:'Read',index:'read', width:80, align:"right"}, ], rowNum:20, autowidth: true, rowList:[10,20,30], pager: jQuery('#pager1'), sortname: 'id', viewrecords: true, sortorder: "desc", caption:"Reviews", height: "350px" }).navGrid('#pager',{edit:false,add:false,del:false}); the code for loading an object and putting it into the table is as follows: if (isset($_GET["request"])) { switch($predefinedRequest) { case 'allReviews': $data = new review; $data->app = "test"; $data->ID = 1; $data->name = "test"; $data->submittedDate = "test"; echo json_encode($data); break; } } and the object is class review { public $ID; public $app; public $submittedDate; public $name; public $read; } I would greatly appreciate any help!
0
[ 2, 487, 1251, 16375, 15, 1017, 1054, 20, 3042, 800, 3726, 3726, 31, 589, 749, 20, 164, 21, 2125, 615, 16, 487, 1251, 16375, 20, 170, 207, 32, 2206, 101, 31, 1967, 164, 602, 20, 3042, 9, 31, 57, 8572, 21, 7612, 227, 13, 7, 99, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 does Opera aligns element not on text-center but on element-center? === Please look at http://jsfiddle.net/Yq2YX/36 You may see that all browsers, except opera position icon on center line of 'A', but Opera positions it over the line. The difference is not so noticeable here, but in some other cases it is. What may be the reason of this behavior? How it can be fixed?
0
[ 2, 483, 630, 1877, 23389, 18, 4520, 52, 27, 1854, 8, 12641, 47, 27, 4520, 8, 12641, 60, 800, 3726, 3726, 2247, 361, 35, 7775, 6903, 728, 18, 1707, 12312, 9, 2328, 118, 93, 1251, 135, 93, 396, 118, 3775, 42, 123, 196, 30, 65, 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...
visual studio 2008 and sql server 3.5 sp2 compatibility issue === I am working on windows mobile project, this needs WCF sync service to synchronize PDA and the server, In the beginning everything went fine, but when i am trying to sync the local database(CE) is not updating after synchronization, later on I found a post saying that I need to upgrade my CE to 3.5 SP2, I installed that one, but from that point nothing is working, not even the database is creating, can any one please help me, I am stuck here for last 3 days Thanks in advance Srikanth
0
[ 2, 3458, 1120, 570, 17, 4444, 255, 8128, 203, 9, 264, 3782, 135, 13, 21618, 1513, 800, 3726, 3726, 31, 589, 638, 27, 1936, 3241, 669, 15, 48, 2274, 11801, 410, 6063, 150, 365, 20, 13, 16023, 2952, 351, 593, 17, 14, 8128, 15, 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...
images are shown big on AVD ? === Well, I set my avd to 480 x 800 resolution , abstracted lcd density to 320 pixel and my image dimension is 207 width and 205 height and the image has set to 320 pixels per inch but it is shown very big on avd with resolution 480 x 800 and 320 dpi. Here it is http://cubixshade.com/images/test.jpg http://cubixshade.com/images/test2.jpg Does image needs to set on 160 pixels per inch or I have to set avd size using (scale display to real size) option ??
0
[ 2, 3502, 50, 1721, 580, 27, 14026, 43, 13, 60, 800, 3726, 3726, 134, 15, 31, 309, 51, 14026, 43, 20, 13, 16318, 993, 7993, 4302, 13, 15, 8502, 69, 26827, 2688, 20, 13, 12402, 18146, 17, 51, 1961, 9547, 25, 13, 20304, 9456, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can i change zoom level dynamically in open street map? === I need to change zoom level dynamically in openstreet map according to displayed number of markers, means if there is only one location is marked i need more zoom and if there is more than one locations are marked i need zoom level is less( because i want to see all markers). Can any one help me..? Thanks in adavace...
0
[ 2, 184, 92, 31, 753, 19469, 662, 7782, 1326, 19, 368, 446, 2942, 60, 800, 3726, 3726, 31, 376, 20, 753, 19469, 662, 7782, 1326, 19, 368, 13376, 2942, 496, 20, 6115, 234, 16, 19482, 15, 1108, 100, 80, 25, 104, 53, 1474, 25, 2739,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Div Scrolling on IPad === I am developing an app in asp.net in which I enable the div property of overflow scrolling like overflow-y: Scroll. But when I run this app on the IPad, the scrolling on div is not smoothly working. Can you suggest me any plugin for smooth scrolling or any other solution?
0
[ 2, 13, 12916, 13, 28166, 27, 31, 8240, 800, 3726, 3726, 31, 589, 3561, 40, 4865, 19, 28, 306, 9, 2328, 19, 56, 31, 9240, 14, 13, 12916, 1354, 16, 20285, 13, 28166, 101, 20285, 8, 93, 45, 12159, 9, 47, 76, 31, 485, 48, 4865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
minimize the repeated code using PHP function === I want to minimize a repeated php code using function, I am a designer and now I am trying to learn PHP. below code check if a Module block is active, and count blocks, $TopCol1 = (int)($this->countModules('top-col-1') > 0); $TopCol2 = (int)($this->countModules('top-col-2') > 0); $TopCol3 = (int)($this->countModules('top-col-3') > 0); $topColCount = $TopCol1 + $TopCol2 + $TopCol3; if ($topColCount) : $TopColClass = 'count-' . $topColCount; endif; Then below code will be processed <?php if ($topColCount) : ?> <div class="row"> <?php if ($this->countModules('top-col-1')) : ?> <div id="top-col" class="<?php echo $TopColClass ?> columns"> <div class="panel"> <jdoc:include type="modules" name="top-col-1" style="html5" /> </div> </div> <?php endif ?> <?php if ($this->countModules('top-col-2')) : ?> <div id="top-col" class="<?php echo $TopColClass ?> columns"> <div class="panel"> <jdoc:include type="modules" name="top-col-2" style="html5" /> </div> </div> <?php endif ?> <?php if ($this->countModules('top-col-3')) : ?> <div id="top-col" class="<?php echo $TopColClass ?> columns"> <div class="panel"> <jdoc:include type="modules" name="top-col-3" style="html5" /> </div> </div> <?php endif ?> </div> <?php endif ?> I need to repeat this type of code many time in my template, please help me make a function that will create the blocks without repeating this codes again and again
1
[ 2, 16713, 14, 4251, 1797, 568, 13, 26120, 1990, 800, 3726, 3726, 31, 259, 20, 16713, 21, 4251, 13, 26120, 1797, 568, 1990, 15, 31, 589, 21, 4742, 17, 130, 31, 589, 749, 20, 2484, 13, 26120, 9, 1021, 1797, 2631, 100, 21, 12613, 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...
Kannel Concatenated SMS ACKed but NOT Delivered === I'm using Kannel to send SMSs to an SMSC: 1. Sending a 1-part SMS (<=160 chars) is ACKed and Delivered to the handset. 2. Sending a multi-part (long) SMS is: A. If `concatenation = false`: split by Kannel, and parts are ACKed and Delived (as unique SMSs). B. If `concatenation = true`: split by Kannel, and parts are ACKed but NOT Delived. *Moreover*, any subsequent SMSs sent to the destination number that just experienced this case [2.B] are also ACKed but NOT Delivered, even if it was a 1 part SMS! Has anyone had a similar experience? Since 1-parters are behaving normally, I suspect the problem is with the concatenation process itself.. but is it from: - Kannel (version or conf?). - The SMSC (does the specific SMSC I'm connecting with require something special?). - The Handset (doubtful, I tried several numbers from several networks and several devices). - The way I'm giving the SMS to Kannel to send (sendsms cgi)?! The mind-boggling thing is that ALL messages (1-part, separate multi-parts, and concatenated multi-parts) are Accepted for Delivery by the SMSC and delivered EXCEPT concatenated messages that are lost somewhere **AND cause the mobile not to receive anything anymore**! Reconnecting to the SMSC does not *unblock* the number, restarting the phone does not *unblock* the number. Once a concatenated message is sent to a number, ACKed and Undelivered, nothing will get through to it from kannel. The number can still receive and display short and long SMSs sent to it from other numbers, even from a web interface the operator (SMSC provider) has for testing! Below are the Kannel conf, bearer and sms boxes startup logs, and tests logs.. please help me in figuring this out.. thnx. **smskannel.conf**: group = smsc smsc = smpp smsc-id = UMNIAH host = ***** port = ***** smsc-username = ***** smsc-password = ***** system-type = VMA interface-version = 34 transceiver-mode = false #only want to send.. no MOs connect-allow-ip = 127.0.0.1 #thought the below ton and npi confs might fix the problem, but they had no effect source-addr-ton = 5 #Alphanumeric source-addr-npi = 0 source-addr-autodetect = false dest-addr-ton = 1 #International dest-addr-npi = 0 bind-addr-ton = 0 bind-addr-npi = 0 group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13013 group = sendsms-user username = tester password = foobar max-messages = 5 concatenation = true #flase works fine, but I need long messages to be concatenated #will setup DLR when I get concatenated messages to work #no services are defined.. only want to send and won't be recieving **bearerbox startup**: [root@vps-1098126-9711 kannel]# sbin/bearerbox smskannel.conf & [1] 3517 [root@vps-1098126-9711 kannel]# 2012-07-31 03:41:32 [3517] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 [3517] [0] WARNING: DLR: using default 'internal' for storage type. [3517] [0] INFO: DLR using storage type: internal [3517] [0] DEBUG: Kannel bearerbox version `1.4.3'. Build `Jul 4 2012 11:03:53', compiler `4.1.2 20080704 (Red Hat 4.1.2-52)'. System Linux, release 2.6.32-042stab057.1, version #1 SMP Fri Jun 22 02:17:07 MSD 2012, machine x86_64. Hostname *****, IP *****. Libxml version 2.6.26. Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008. Compiled with MySQL 5.5.14, using MySQL 5.5.14. Using native malloc. [3517] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'. [3517] [0] INFO: HTTP: Opening server at port 13000. [3517] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) [3517] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3517. [3517] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) [3517] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) [3517] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3517. [3517] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3517. [3517] [0] DEBUG: starting smsbox connection module [3517] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). [3517] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) [3517] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) [3517] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3517. [3517] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 3517. [3517] [0] INFO: Set SMS resend frequency to 60 seconds. [3517] [0] INFO: SMS resend retry set to unlimited. [3517] [0] DEBUG: smsbox MO concatenated message handling enabled [3517] [0] INFO: DLR rerouting for smsc id <UMNIAH> disabled. [3517] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) [3517] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) [3517] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 3517. [3517] [0] INFO: ---------------------------------------- [3517] [0] INFO: Kannel bearerbox II version 1.4.3 starting [3517] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 3517. [3517] [0] INFO: MAIN: Start-up done, entering mainloop [3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU: [3517] [6] DEBUG: SMPP PDU 0x1e37300 dump: [3517] [6] DEBUG: type_name: bind_transmitter [3517] [6] DEBUG: command_id: 2 = 0x00000002 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 1 = 0x00000001 [3517] [6] DEBUG: system_id: "*****" [3517] [6] DEBUG: password: "*****" [3517] [6] DEBUG: system_type: "VMA" [3517] [6] DEBUG: interface_version: 52 = 0x00000034 [3517] [6] DEBUG: addr_ton: 0 = 0x00000000 [3517] [6] DEBUG: addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: address_range: NULL [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e37300 dump: [3517] [6] DEBUG: type_name: bind_transmitter_resp [3517] [6] DEBUG: command_id: 2147483650 = 0x80000002 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 1 = 0x00000001 [3517] [6] DEBUG: system_id: "*****" [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Sending enquire link: [3517] [6] DEBUG: SMPP PDU 0x1e37300 dump: [3517] [6] DEBUG: type_name: enquire_link [3517] [6] DEBUG: command_id: 21 = 0x00000015 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 2 = 0x00000002 [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e37300 dump: [3517] [6] DEBUG: type_name: enquire_link_resp [3517] [6] DEBUG: command_id: 2147483669 = 0x80000015 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 2 = 0x00000002 [3517] [6] DEBUG: SMPP PDU dump ends. **smsbox startup**: [root@vps-1098126-9711 kannel]# sbin/smsbox smskannel.conf & [2] 3525 [root@vps-1098126-9711 kannel]# 2012-07-31 03:43:25 [3525] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 [3525] [0] DEBUG: Kannel smsbox version `1.4.3'. Build `Jul 4 2012 11:03:53', compiler `4.1.2 20080704 (Red Hat 4.1.2-52)'. System Linux, release 2.6.32-042stab057.1, version #1 SMP Fri Jun 22 02:17:07 MSD 2012, machine x86_64. Hostname *****, IP *****. Libxml version 2.6.26. Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008. Compiled with MySQL 5.5.14, using MySQL 5.5.14. Using native malloc. [3525] [0] INFO: Starting to log to file /tmp/smsbox.log level 0 [3525] [0] INFO: Added logfile `/tmp/smsbox.log' with level `0'. [3525] [0] INFO: Service global sender set as '13013' [3525] [0] INFO: HTTP: Opening server at port 13013. [3525] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) [3525] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) [3525] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3525. [3525] [0] INFO: Set up send sms service at port 13013 [3525] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3525. [3525] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) [3525] [0] DEBUG: ---------------------------------------------- [3525] [0] DEBUG: Kannel smsbox version 1.4.3 starting [3525] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3525. [3525] [0] DEBUG: dumping group (sendsms-user): [3525] [0] DEBUG: <group> = <sendsms-user> [3525] [0] DEBUG: <max-messages> = <5> [3525] [0] DEBUG: <username> = <tester> [3525] [0] DEBUG: <concatenation> = <true> [3525] [0] DEBUG: <password> = <foobar> [3525] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) [3525] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 3525. [3525] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) [3525] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3525. [3525] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) [3525] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 3525. [3525] [0] INFO: Connected to bearerbox at 127.0.0.1 port 13001. [3517] [5] INFO: Client connected from <127.0.0.1> [3525] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) [3525] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 3525. [3517] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) [3517] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 3517. [3517] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) [3517] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 3517. **1-part request** --Actually Delivered: [root@vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962787463538&text=test123&charset=UTF-8&coding=0" 0: Accepted for delivery [3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. [3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1db8280. [3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> [3525] [3] INFO: sendsms used by <tester> [3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962787463538> msg:<test123> [3525] [3] DEBUG: Stored UUID fe83e486-a35b-43a5-9592-0a11ef19153d [3525] [3] DEBUG: message length 7, sending 1 messages [3525] [3] DEBUG: Status: 202 Answer: <Sent.> [3525] [3] DEBUG: Delayed reply - wait for bearerbox [3517] [8] DEBUG: boxc_receiver: sms received [3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0 [3525] [0] DEBUG: Got ACK (0) of fe83e486-a35b-43a5-9592-0a11ef19153d [3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU: [3517] [6] DEBUG: SMPP PDU 0x1e392b0 dump: [3517] [6] DEBUG: type_name: submit_sm [3517] [6] DEBUG: command_id: 4 = 0x00000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 15 = 0x0000000f [3517] [6] DEBUG: service_type: NULL [3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. [3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005 [3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: source_addr: "test" [3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 [3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: destination_addr: "962787463538" [3517] [6] DEBUG: esm_class: 3 = 0x00000003 [3517] [6] DEBUG: protocol_id: 0 = 0x00000000 [3517] [6] DEBUG: priority_flag: 0 = 0x00000000 [3517] [6] DEBUG: schedule_delivery_time: NULL [3517] [6] DEBUG: validity_period: NULL [3517] [6] DEBUG: registered_delivery: 0 = 0x00000000 [3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 [3517] [6] DEBUG: data_coding: 0 = 0x00000000 [3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1db8280. [3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 [3517] [6] DEBUG: sm_length: 7 = 0x00000007 [3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. [3517] [6] DEBUG: short_message: "test123" [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e392b0 dump: [3517] [6] DEBUG: type_name: submit_sm_resp [3517] [6] DEBUG: command_id: 2147483652 = 0x80000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 15 = 0x0000000f [3517] [6] DEBUG: message_id: "65B634C3" [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Sending enquire link: [3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump: [3517] [6] DEBUG: type_name: enquire_link [3517] [6] DEBUG: command_id: 21 = 0x00000015 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 16 = 0x00000010 [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump: [3517] [6] DEBUG: type_name: enquire_link_resp [3517] [6] DEBUG: command_id: 2147483669 = 0x80000015 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 16 = 0x00000010 [3517] [6] DEBUG: SMPP PDU dump ends. **Multi-part request** [`concatenation = true`] --NOT Delivered: [root@vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962787463538&text=test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123&charset=UTF-8&coding=0" 0: Accepted for delivery [3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. [3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1dbfc00. [3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> [3525] [3] INFO: sendsms used by <tester> [3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962787463538> msg:<test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123> [3525] [3] DEBUG: Stored UUID 273d4165-ab63-4757-857a-a64413b95bc8 [3525] [3] DEBUG: message length 168, sending 2 messages [3525] [3] DEBUG: Status: 202 Answer: <Sent. Message splits: 2> [3525] [3] DEBUG: Delayed reply - wait for bearerbox [3517] [8] DEBUG: boxc_receiver: sms received [3517] [8] DEBUG: new split_parts created 0x1e33a00 [3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU: [3525] [0] DEBUG: Got ACK (0) of 273d4165-ab63-4757-857a-a64413b95bc8 [3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump: [3517] [6] DEBUG: type_name: submit_sm [3517] [6] DEBUG: command_id: 4 = 0x00000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 29 = 0x0000001d [3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. [3517] [6] DEBUG: service_type: NULL [3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005 [3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: source_addr: "test" [3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 [3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: destination_addr: "962787463538" [3517] [6] DEBUG: esm_class: 67 = 0x00000043 [3517] [6] DEBUG: protocol_id: 0 = 0x00000000 [3517] [6] DEBUG: priority_flag: 0 = 0x00000000 [3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1dbfc00. [3517] [6] DEBUG: schedule_delivery_time: NULL [3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. [3517] [6] DEBUG: validity_period: NULL [3517] [6] DEBUG: registered_delivery: 0 = 0x00000000 [3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 [3517] [6] DEBUG: data_coding: 0 = 0x00000000 [3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 [3517] [6] DEBUG: sm_length: 159 = 0x0000009f [3517] [6] DEBUG: short_message: [3517] [6] DEBUG: Octet string at 0x1e392b0: [3517] [6] DEBUG: len: 159 [3517] [6] DEBUG: size: 1024 [3517] [6] DEBUG: immutable: 0 [3517] [6] DEBUG: data: 05 00 03 01 02 01 74 65 73 74 31 32 33 74 65 73 ......test123tes [3517] [6] DEBUG: data: 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 t123test123test1 [3517] [6] DEBUG: data: 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 33 23test123test123 [3517] [6] DEBUG: data: 74 65 73 74 31 32 33 74 65 73 74 31 32 33 74 65 test123test123te [3517] [6] DEBUG: data: 73 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 st123test123test [3517] [6] DEBUG: data: 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 123test123test12 [3517] [6] DEBUG: data: 33 74 65 73 74 31 32 33 74 65 73 74 31 32 33 74 3test123test123t [3517] [6] DEBUG: data: 65 73 74 31 32 33 74 65 73 74 31 32 33 74 65 73 est123test123tes [3517] [6] DEBUG: data: 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 t123test123test1 [3517] [6] DEBUG: data: 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 23test123test12 [3517] [6] DEBUG: Octet string dump ends. [3517] [6] DEBUG: more_messages_to_send: 1 = 0x00000001 [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU: [3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump: [3517] [6] DEBUG: type_name: submit_sm [3517] [6] DEBUG: command_id: 4 = 0x00000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 30 = 0x0000001e [3517] [6] DEBUG: service_type: NULL [3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005 [3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: source_addr: "test" [3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 [3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: destination_addr: "962787463538" [3517] [6] DEBUG: esm_class: 67 = 0x00000043 [3517] [6] DEBUG: protocol_id: 0 = 0x00000000 [3517] [6] DEBUG: priority_flag: 0 = 0x00000000 [3517] [6] DEBUG: schedule_delivery_time: NULL [3517] [6] DEBUG: validity_period: NULL [3517] [6] DEBUG: registered_delivery: 0 = 0x00000000 [3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 [3517] [6] DEBUG: data_coding: 0 = 0x00000000 [3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 [3517] [6] DEBUG: sm_length: 21 = 0x00000015 [3517] [6] DEBUG: short_message: [3517] [6] DEBUG: Octet string at 0x1e394d0: [3517] [6] DEBUG: len: 21 [3517] [6] DEBUG: size: 1024 [3517] [6] DEBUG: immutable: 0 [3517] [6] DEBUG: data: 05 00 03 01 02 02 33 74 65 73 74 31 32 33 74 65 ......3test123te [3517] [6] DEBUG: data: 73 74 31 32 33 st123 [3517] [6] DEBUG: Octet string dump ends. [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump: [3517] [6] DEBUG: type_name: submit_sm_resp [3517] [6] DEBUG: command_id: 2147483652 = 0x80000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 29 = 0x0000001d [3517] [6] DEBUG: message_id: "65B6354E" [3517] [6] DEBUG: SMPP PDU dump ends. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump: [3517] [6] DEBUG: type_name: submit_sm_resp [3517] [6] DEBUG: command_id: 2147483652 = 0x80000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 30 = 0x0000001e [3517] [6] DEBUG: message_id: "65B6354F" [3517] [6] DEBUG: SMPP PDU dump ends. **1-part request** (same as the one from before) **NOT Delivered This Time!**: [root@vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962787463538&text=test123&charset=UTF-8&coding=0" 0: Accepted for delivery [3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. [3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1dc3060. [3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> [3525] [3] INFO: sendsms used by <tester> [3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962787463538> msg:<test123> [3525] [3] DEBUG: Stored UUID 18070d9d-dafb-4a27-8e10-e5573b4e48d4 [3525] [3] DEBUG: message length 7, sending 1 messages [3525] [3] DEBUG: Status: 202 Answer: <Sent.> [3525] [3] DEBUG: Delayed reply - wait for bearerbox [3517] [8] DEBUG: boxc_receiver: sms received [3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0 [3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU: [3517] [6] DEBUG: SMPP PDU 0x1e3c830 dump: [3517] [6] DEBUG: type_name: submit_sm [3517] [6] DEBUG: command_id: 4 = 0x00000004 [3525] [0] DEBUG: Got ACK (0) of 18070d9d-dafb-4a27-8e10-e5573b4e48d4 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 44 = 0x0000002c [3517] [6] DEBUG: service_type: NULL [3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005 [3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: source_addr: "test" [3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 [3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000 [3517] [6] DEBUG: destination_addr: "962787463538" [3517] [6] DEBUG: esm_class: 3 = 0x00000003 [3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. [3517] [6] DEBUG: protocol_id: 0 = 0x00000000 [3517] [6] DEBUG: priority_flag: 0 = 0x00000000 [3517] [6] DEBUG: schedule_delivery_time: NULL [3517] [6] DEBUG: validity_period: NULL [3517] [6] DEBUG: registered_delivery: 0 = 0x00000000 [3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 [3517] [6] DEBUG: data_coding: 0 = 0x00000000 [3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 [3517] [6] DEBUG: sm_length: 7 = 0x00000007 [3517] [6] DEBUG: short_message: "test123" [3517] [6] DEBUG: SMPP PDU dump ends. [3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1dc3060. [3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. [3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU: [3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump: [3517] [6] DEBUG: type_name: submit_sm_resp [3517] [6] DEBUG: command_id: 2147483652 = 0x80000004 [3517] [6] DEBUG: command_status: 0 = 0x00000000 [3517] [6] DEBUG: sequence_number: 44 = 0x0000002c [3517] [6] DEBUG: message_id: "65B63601" [3517] [6] DEBUG: SMPP PDU dump ends.
0
[ 2, 4608, 7440, 1065, 793, 1316, 1669, 7613, 18, 13, 8735, 69, 47, 52, 4002, 800, 3726, 3726, 31, 22, 79, 568, 4608, 7440, 20, 2660, 7613, 18, 18, 20, 40, 7613, 3862, 45, 137, 9, 4907, 21, 137, 8, 3091, 7613, 18, 13, 5, 1, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to show .psd image in phoneGap application? === I need How to show splash image using HTML which lasts 3 to 4 seconds and hide automatically. Give me code
1
[ 2, 184, 20, 298, 13, 9, 1919, 43, 1961, 19, 1132, 1136, 306, 3010, 60, 800, 3726, 3726, 31, 376, 184, 20, 298, 13873, 1961, 568, 13, 15895, 56, 236, 18, 203, 20, 268, 2582, 17, 3077, 7499, 9, 590, 55, 1797, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
svn:ignore not ignoring xcuserdata === I am using the svn:ignore property for the first time, so I may be misunderstanding something. I am working on an iOS application. I have an Xcode project and I want to ignore the xcuserdata folder. Using the Mac Terminal application, I go to the root of my svn repository and try to ignore the folder using: svn propset svn:ignore path/to/my/folder/MyProject.xcodeproj/xcuserdata . If I check the svn:ignore property using: svn propedit svn:ignore . I see: path/to/my/folder/MyProject.xcodeproj/xcuserdatata I have committed and updated, but I do an svn status, I still see the folder with a ? mark beside it. Does anyone know what I'm doing wrong? I am using svn version 1.6.17 (r1128011).
0
[ 2, 13, 18, 16578, 45, 23565, 99, 52, 9321, 993, 4636, 106, 18768, 800, 3726, 3726, 31, 589, 568, 14, 13, 18, 16578, 45, 23565, 99, 1354, 26, 14, 64, 85, 15, 86, 31, 123, 44, 13, 21558, 301, 9, 31, 589, 638, 27, 40, 13, 7760,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 AwesomiumSharp handles asynchronous calls from Javascript to C# === I'm working on AwesomiumSharp version1.6.6 now. And use CreateObject & SetObjectCallback to build bridge between Javascript and C#, then Javascript can call methods of C#. And as known, calls from Javascrip to C# is asynchronous. But when I fired two calls to C# in a row. Just the first call is handled by C# normally, the other seemed to be disregarded. I want to know how Awesomium handles async calls. I just want to guarantee all asynchronous calls from Javascript can be handled normally, how can I achieve this?
0
[ 2, 184, 21, 458, 10723, 2187, 23646, 3053, 18, 21, 16023, 1291, 3029, 37, 8247, 8741, 20, 272, 5910, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 458, 10723, 2187, 23646, 615, 165, 9, 379, 9, 379, 130, 9, 17, 275, 1600, 23793, 279,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Selenium Grid: How to get node name (computer name or IP address) where current test is executed === I execute my tests under Grid Hub and 3 nodes run on 3 remote computers. In my log I can see the messages in random order posted from all these nodes. In order to analyze the logs I have to sort it by computer name. I tried it in following way (Java): System.getenv().get("COMPUTERNAME") But any time it returns the name of computer where Hub is running. Thanks Dima
0
[ 2, 23027, 14311, 7354, 45, 184, 20, 164, 15421, 204, 13, 5, 18448, 204, 54, 15735, 3218, 6, 113, 866, 1289, 25, 5557, 800, 3726, 3726, 31, 15644, 51, 4894, 131, 7354, 5814, 17, 203, 16272, 485, 27, 203, 5388, 7774, 9, 19, 51, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
vb.net crystal report view issues === I have a vb.net application that has a list of reports that you can select from. When you select a report it loads the data and displays the report in the Crystal Report Viewer. However, The report display is way to big and the only way to resize it is to restore down the screen and then restore it to full screen. The scroll bars are only visible after you restore the page down and up. How do I fix This.. Thank you so much
0
[ 2, 13, 20468, 9, 2328, 4282, 1330, 1418, 1549, 800, 3726, 3726, 31, 57, 21, 13, 20468, 9, 2328, 3010, 30, 63, 21, 968, 16, 2813, 30, 42, 92, 5407, 37, 9, 76, 42, 5407, 21, 1330, 32, 19069, 14, 1054, 17, 9412, 14, 1330, 19, 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...
Writing to a TMemoryStream and loosing unicode === I'm getting a weird behavior when copying a TMemoryStream (containing unicode string) to another TMemoryStream, using Delphi XE2: I have two instances of a TMemoryStream. The first instance contains unicode text. I write some arbitrary data to the second MemoryStream and then copy the contents of the first stream to the second stream, like that: var SomeInt: Integer; SomeByte: Byte; MS1, MS2: TMemoryStream; begin ... MS1.Write(SomeInt, SizeOf(SomeInt)); MS1.Write(SomeByte, SizeOf(SomeByte)); MS2.SaveToFile('c:\MS2.txt'); // MS2.txt contains the unicode chars MS1.CopyFrom(MS2, 0); // copy the whole content of MS2 to MS1 MS1.SaveToFile('c:\MS1.txt'); // MS1.txt DOEST NOT contain unicode chars end; How can I copy the contents of the first stream to the second stream without loosing unicode (having an implicit conversion)?
0
[ 2, 1174, 20, 21, 13, 38, 790, 5171, 93, 11260, 17, 13, 10165, 18, 68, 28010, 800, 3726, 3726, 31, 22, 79, 1017, 21, 5455, 3257, 76, 4344, 68, 21, 13, 38, 790, 5171, 93, 11260, 13, 5, 26425, 28010, 3724, 6, 20, 226, 13, 38, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Submit form with at last one textbox value entered US Phone Number or International Number - jQuery Validate Plugin === What I like to do is have at **ONE** text box value entered in order for the form to submit. I have two text boxes that are "US phone number" and "international phone number". I'm toggling back and forth with those two options using a checkbox. It defaults to Us phone number field. For example: If the user does not have a "US phone number" the user clicks on the "international" checkbox and it toggles to the "international phone number field". The user enters their "international phone number" and the form validates the field wonderfully. However, the user is ready to submit the form, but WAITTT the form does not submit because the other field (aka US phone number field) that is hidden is not allowing the user to submit because it is validating the field. (SEE PICTURE). I do NOT want that to happen. **My question is how do I make sure when the user does enter a value into either or field, the form will submit.** ![phone_number][1] --------------HTML------------------- <form> <fieldset class="round shadow"> <h3> Contact Information</h3> <p> Integer sagittis dolor a tellus bibendum tristique facilisis ipsum feugiat. Sed lacinia arcu scelerisque leo laoreet </p> <p class="field inline"> <span id="txtPhone-container" style="display: none;"> <span id="MainContent_lblPhone">Preferred Phone Number</span><span class="required">*</span><br> <input type="text" id="MainContent_txtPhone" name="ctl00$MainContent$txtPhone" class="error"> <label for="username" generated="true" class="error" style="display: block;">Must acquire their preferred phone number.</label> </span> <span id="txtInternationalPhone-container" style="display: inline;"> <span id="MainContent_lblInternationalPhone">International Preferred Phone Number</span><span class="required">*</span><br> <input type="text" id="MainContent_txtInternationalPhone" name="ctl00$MainContent$txtInternationalPhone" class="valid"> </span> <br> <input type="checkbox" name="ctl00$MainContent$CheckBox2" id="MainContent_CheckBox2"> <label for="MainContent_CheckBox2">International</label> </p> <p class="field inline"> <span id="MainContent_lblEmail">Preferred E-mail Address</span><span class="required">*</span><br> <input type="text" id="MainContent_txtEmail" name="ctl00$MainContent$txtEmail" class="valid"> <label for="MainContent_txtEmail" generated="true" class="error" style="display: none;">Must acquire thier preferred e-mail address.</label> </p> </fieldset> <p> <input type="submit" class="btnSave left" id="MainContent_btnSubmit" value="" name="ctl00$MainContent$btnSubmit" oldtitle="Submit" title="" aria-describedby="ui-tooltip-0"> <input type="submit" class="btnClear left" id="MainContent_btnClear" value="" name="ctl00$MainContent$btnClear" oldtitle="Clear" title=""> </p> </form> -------------jQUERY----------------- $(function () { $('#MainContent_CheckBox2').change(function () { $('#txtPhone-container').toggle(!this.checked); $('#txtInternationalPhone-container').toggle(this.checked); }).change(); //Validator for US Phone Number Format (###-###-####) $.validator.addMethod("PhoneNumberFormat", function (value, element) { return value.match(/^[2-9]\d{2}-\d{3}-\d{4}$/); }); //Validator for International Phone Number Format (+17034567890 | +17034567890x1234 | +912024553455 | +912024553455x12 | +441237761457) $.validator.addMethod('InternationalPhoneNumberFormat', function (value) { return value.match(/^(\+[0-9]{2,}[0-9]{4,}[0-9]*)(x?[0-9]{1,})?$/); }); //validate form jQuery.validator.setDefaults({ debug: true, }); $("#frmNewApplicants").validate({ meta: "validate", submitHandler: function () { $("#frmNewApplicants").ajaxSubmit() }, rules: { ctl00$MainContent$txtPhone: { required: true, PhoneNumberFormat: true }, ctl00$MainContent$txtInternationalPhone: { required: true, InternationalPhoneNumberFormat: true }, }, messages: { ctl00$MainContent$txtPhone: { required: "Must acquire their preferred phone number.", PhoneNumberFormat: "Correct Format: ###-###-####" }, ctl00$MainContent$txtInternationalPhone: { required: "ex:+17034567890", InternationalPhoneNumberFormat: "ex:+17034567890 or +17034567890x1234" } } }); }); [1]: http://i.stack.imgur.com/2G8BC.png
0
[ 2, 12298, 505, 29, 35, 236, 53, 1854, 5309, 1923, 1297, 182, 1132, 234, 54, 294, 234, 13, 8, 487, 8190, 93, 7394, 1373, 10922, 108, 800, 3726, 3726, 98, 31, 101, 20, 107, 25, 57, 35, 13, 1409, 849, 1409, 1854, 1649, 1923, 1297, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
document styleSheets cssRules === Good day. A few days ago I've faced with a problem of getting cssRules data on a webpage. document.styleSheets[i].cssRules works only for style tags and link tags with same domain stylesheet path. So, it's pretty hard to access these rules if I use stylsheets from different domains, or if i browse html pages from local file system - it's impossible to access the rules even from local filesystem stylesheet, and also web-located stylesheet. in another words - it's impossible to get rules from any stylesheet from local fs html page. and also it's impossible to get rules if i use data urls, for example: <link rel="stylesheet" href="data:text/css;base64,Kntjb2xvcjpyZWQ7fQ=="> I do not know why this unfair behaviour appears, but i hope someday i'll realize true reasons of these restrictions. Because I do not really understand why to prevent js access to css rules when the browser itself accesses and renders them without any problems (crossdomain, local filesystem, etc.) And I'll appreciate any suggestions on how to access these rules anyway. In my case i write an js extension that works on every web site (so I cannot simply move requiered css to my domain.)
0
[ 2, 4492, 1034, 17627, 18, 272, 18, 18, 16154, 18, 800, 3726, 3726, 254, 208, 9, 21, 310, 509, 1464, 31, 22, 195, 3110, 29, 21, 1448, 16, 1017, 272, 18, 18, 16154, 18, 1054, 27, 21, 2741, 6486, 9, 4492, 9, 4381, 17627, 18, 2558...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pointer and Function ambiguity in C === Please look at the following code: char* test ( ) { char word[20]; printf ("Type a word: "); scanf ("%s", word); return word; } void main() { printf("%s",test()); } When the function returns, the variable `word` is destroyed and it prints some garbage value. But when I replace char word[20]; by `char *word;` it prints the correct value. According to me, the pointer variable should have been destroyed similar to the character array and the output should be some garbage value. Can anyone please explain the ambiguity?
0
[ 2, 454, 106, 17, 1990, 28335, 19, 272, 800, 3726, 3726, 2247, 361, 35, 14, 249, 1797, 45, 4892, 2483, 1289, 13, 5, 13, 6, 13, 1, 4892, 833, 2558, 1323, 12660, 4793, 410, 13, 5, 7, 4474, 21, 833, 45, 13, 7, 6, 73, 8313, 410, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Low level version of transport.openOutputStream? === For load and stress testing a proxy I'm emulating a Firefox browser using xulrunner and Crowbar [1]. It works quite well and also melds in quite nicely with our (Perl) load+stress tool, which takes a list of destination-URLs and fires of as much HTTP GET load using `WWW::Curl` as I like. However, what our perl-script stresstool also does (before I integrated it with crowbar) is choosing a source IP-address from a pool to emulate several different clients. Since crowbar is a proxy itself where you send all the requests to, I wanted to implement a HTTP-param to hand over the IP-address which should be used for outbound connections (let's say like `?ip=4.5.6.7`). Going through crowbar's source code I noticed that it uses the JS-call `transport.openOutputStream`, which doesn't give you the possibility to chose the outbound IP-address. Does anyone have an advice which (maybe native Gecko) function I should be using to chose one of the IP-addresses which are configured to the client-machine? I'm kinda lost in all the documentation provided by Mozilla and just need the right nudge or a pointer where to continue. Thanks a lot, Cheers, Alex. [1] It might not be the ideal solution, but it works right out of the box: http://simile.mit.edu/wiki/Crowbar
0
[ 2, 708, 662, 615, 16, 1739, 9, 10157, 1320, 4881, 11260, 60, 800, 3726, 3726, 26, 6305, 17, 5384, 4431, 21, 27188, 31, 22, 79, 3579, 10038, 21, 535, 18219, 16495, 568, 993, 1287, 12993, 17, 7122, 1850, 636, 165, 500, 9, 32, 693, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Share code base for WP7 and WP8 === I'm working on architecture of new business application targeting WP7 and WP8. For WP7 we will use silverlight app model and want to be prepared to reuse the code while moving to WP8 (we will want to use additional features on WP8). Since WP8 will also support xaml and C# do you have any special recommendations how to organize app structure, select appropriate methodology.
0
[ 2, 1891, 1797, 1000, 26, 13, 13790, 465, 17, 13, 13790, 457, 800, 3726, 3726, 31, 22, 79, 638, 27, 2607, 16, 78, 508, 3010, 15972, 13, 13790, 465, 17, 13, 13790, 457, 9, 26, 13, 13790, 465, 95, 129, 275, 1172, 3130, 4865, 1061, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Lights off effect and jquery placement on wordpress === I'm trying to implement a lights on/off on single posts of my wordpress theme. I know that I have to put this code on my css, which I did already: #the_lights background-color:#000; height:1px; width:1px; position:absolute; top:0; left:0; display:none; #standout{ padding:5px; background-color:white; position:relative; z-index:1000; } Now this is the code that I'm having trouble with: function getHeight() { if($.browser.msie) { var $temp = $(“”) .css(“position”,”absolute”) .css(“left”,”-10000px”) .append($(“body”).html()); $(“body”).append($temp); var h = $temp.height(); $temp.remove(); return h; } return $(“body”).height(); } $(document).ready(function(){ $(“#the_lights”).fadeTo(1,0); $(“#turnoff”).click(function () { $(“#the_lights”).css(“width”,”100%”); $(“#the_lights”).css(“height”,getHeight()+”px”); $(“#the_lights”).css({‘display’ : ‘block’}); $(“#the_lights”).fadeTo(“slow”,1); }); $(“#soft”).click(function () { $(“#the_lights”).css(“width”,”100%”); $(“#the_lights”).css(“height”,getHeight()+”px”); $(“#the_lights”).css(“display”,”block”); $(“#the_lights”).fadeTo(“slow”,0.8); }); $(“#turnon”).click(function () { $(“#the_lights”).css(“width”,”1px”); $(“#the_lights”).css(“height”,”1px”); $(“#the_lights”).css(“display”,”block”); $(“#the_lights”).fadeTo(“slow”,0); }); }); I think it's a jquery. Where do I place it and how do I call it's function? Been stuck on this thing for 6 hours now and any help would be greatly appreciated...
0
[ 2, 3411, 168, 1590, 17, 487, 8190, 93, 10774, 27, 833, 5890, 800, 3726, 3726, 31, 22, 79, 749, 20, 8713, 21, 3411, 27, 118, 1299, 27, 345, 9868, 16, 51, 833, 5890, 3184, 9, 31, 143, 30, 31, 57, 20, 442, 48, 1797, 27, 51, 272...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Font Outline Beizier Spline Contoures and DirectWrite === I'm considering maybe using DirectWrite for a project that will be coming in a DirectX 11 version and a OpenGL 3.1+ version. From what understand, DirectWrite uses Direct2D which sits on top of Direct3D 10.1 (until DirectX 11.1 is released). This means that to use DirectWrite with Direct3D 11, currently, I would have to create one Direct3D 10.1 device and a Direct3D 11 device and then share the resources between these two devices, which comes with some synchronization overhead it seems. Another problem is that I won't seem to be able to render the text directly to the d3d11 backbuffer with this set up, right...? Also I have no idea if it is even possible to combine DirectWrite with OpenGL in any practical sense..? My guess is not... Sooo... I'm also considering writing my own font renderer and I would like to be able to render the fonts based on their Bezier spline outlines for resolution independence. I know about the GetGlyphOutline() function but it seems to be in the process of being deprecated and "...should not be used in new applications" according to MSDN library. And looking at DirectWrites reference pages at MSDN, I can't see any way of getting the same in Bezier spline information like you can with GetGlyphOutline(). You can get the outline information wrapped in a ID2D1SimplifiedGeometrySink, but I can't see how you get the pure Bezier curve, control points, information from the ID2D1SimplifiedGeometrySink, you can only use it for drawing using D2D (D3D10.1) which I am not so much interested in at this point. Is there a way to get the font outline contours using a non-deprecated method, DirectWrite or otherwise? I'm not that familiar with either DirectWrite and Direct2D as you can probably tell. I'm trying to figure out what direction to take. Whether it is worth going down the DirectWrite/D2D road, or to make my own font renderer, or some other brilliant idea :). Any suggestions? Sorry for the long post. Thanks. PS I'm currently developing for the Win7 platform and will migrate to Win8 when it is released.
0
[ 2, 9978, 11160, 44, 49, 15029, 3782, 1143, 23272, 160, 17, 1744, 23716, 800, 3726, 3726, 31, 22, 79, 5154, 913, 568, 1744, 23716, 26, 21, 669, 30, 129, 44, 880, 19, 21, 1744, 396, 547, 615, 17, 21, 368, 8430, 203, 9, 165, 2430, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CUDA Global Memory, Where is it? === I understand that in CUDA's memory hierachy, we have things like shared memory, texture memory, constant memory, registers and of course the global memory which we allocate using cudaMalloc(). I've been searching through whatever documentations I can find but I have yet to come across any that explicitly explains what is the global memory. I believe that the global memory allocated is on the GDDR of graphics card itself and not the RAM that is shared with the CPU since one of the documentations did state that the pointer cannot be dereferenced by the host side. Am I right?
0
[ 2, 272, 5729, 2062, 1912, 15, 113, 25, 32, 60, 800, 3726, 3726, 31, 1369, 30, 19, 272, 5729, 22, 18, 1912, 4148, 2615, 5864, 15, 95, 57, 564, 101, 2592, 1912, 15, 12714, 1912, 15, 3587, 1912, 15, 2243, 18, 17, 16, 674, 14, 206...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Throw an error from within a node connection and catch it in the server error handler === I would like to handle the case where I don't like the format of the incoming data by throwing a server level error. var net = require('net'); var server = net.createServer(function(c) { c.on('data', function() { // ***THROW ERROR*** }); }); server.on('error', function (e) { // ***CATCH IT**** }); server.listen(8124); The example is a quick modification to a copy and paste from the node documentation. I have tried `throw new Error("error");` to no avail!
0
[ 2, 3814, 40, 7019, 37, 363, 21, 15421, 2760, 17, 2949, 32, 19, 14, 8128, 7019, 24641, 800, 3726, 3726, 31, 83, 101, 20, 3053, 14, 610, 113, 31, 221, 22, 38, 101, 14, 2595, 16, 14, 17126, 1054, 34, 6033, 21, 8128, 662, 7019, 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...
Should prefetching return any faults at all? === I'm trying to see if I have a correct understanding of prefetching with Core Data. I'm executing a fetch request with a batchSize of 20 for a Message object, with has a to-one relationship with a MBDate property. I prefetch this property: [fetchRequest setRelationshipKeyPathsForPrefetching: [NSArray arrayWithObjects:@"date", nil]]; The prefetch command goes through, as shown by this output: CoreData: annotation: Prefetching with key 'date'. Got 9 rows. CoreData: annotation: total fetch execution time: 0.0094s for 20 rows However, in just the first batch, if I do `if(message.date.isFault) NSLog(@"isFault");`, it always outputs `isFault`, even though I prefetched it! And if I try to access any of the properties of the MBDate object, a fault request fires: CoreData: sql: SELECT 0, t0.Z_PK, t0.Z_OPT, t0.ZDATE, t0.ZDATESTRING FROM ZMBDATE t0 WHERE t0.Z_PK = ? CoreData: annotation: sql connection fetch time: 0.0008s CoreData: annotation: total fetch execution time: 0.0014s for 1 rows. CoreData: annotation: fault fulfilled from database for : 0x85d22b0 <x-coredata://736D04C4-7DB3-40B7-B208-79B5DFD68260/MBDate/p61> Why is the prefetch not going through? Why are my objects still faults? I know it's hard to give any definite answers, but any tips or ideas would be great!
0
[ 2, 378, 782, 19813, 7192, 788, 186, 4173, 18, 35, 65, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 196, 100, 31, 57, 21, 4456, 3260, 16, 782, 19813, 7192, 29, 2884, 1054, 9, 31, 22, 79, 25836, 21, 18312, 3772, 29, 21, 13064, 1045...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Laravel Classes and API auto Included === new to Laravel (coming from Java spring), while using Route::get('/', function() { return "Hello World!"; }); Above, we dont need to include any header files(in this and all other configuration files for LaraveL), why is this so!, as Route is in a different name-space http://laravel.com/api/class-Laravel.Routing.Route.html
0
[ 2, 12843, 6532, 2684, 17, 21, 2159, 3108, 506, 800, 3726, 3726, 78, 20, 12843, 6532, 13, 5, 9076, 37, 8247, 1573, 6, 15, 133, 568, 858, 45, 45, 3060, 5, 22, 118, 22, 15, 1990, 5, 6, 13, 1, 788, 13, 7, 11515, 126, 187, 7, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to count databases elements in a range of date? === In an SQL Server procedure, I need to get all rows matching some constraints(simple where conditions), and then group them by month. The goal is to create a graph(in Sql server reporting services), which display all data. I've already something like this: Select Count(*) AS Count, Month(a.issueDate) AS Month, Year(a.issueDate) AS Year FROM MyTable a WHERE .... GROUP BY YEAR(a.issueDate), MONTH(a.issueDate) I got my data, I got my graph, but the problem is that if I've NOT any rows in "`MyTable`", which match my `Where` conditions, I won't have any rows. The result is that I've a graph Starting with january, skipping february, and then displaying march. I cannot post-process data since it's directly connected to the SQL Server Reporting Services report. Since I have this problem for ~20 stored procedure, I will appreciate to have the simpliest way of doing it. Thank you very much for your advices
0
[ 2, 184, 20, 2468, 6018, 18, 2065, 19, 21, 978, 16, 1231, 60, 800, 3726, 3726, 19, 40, 4444, 255, 8128, 7004, 15, 31, 376, 20, 164, 65, 11295, 10120, 109, 16747, 5, 24629, 113, 2039, 6, 15, 17, 94, 214, 105, 34, 1617, 9, 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...
Where do I put Access vba code to only fire when physically printing? === I have some code that I want to fire when the user physically prints the report. Not when Print Previewing, etc, but only when sending to the printer. The user needs to be able to pull up the report and view it, then if they decide to print, the vba code will take over and write some info to a different table than is being used to generate the report. I was hoping not to have to place a Print button on the actual report (even though I know I can hide it for the print), so I was wondering if I could somehow trap the Print dialog instead. Has anyone ever had any luck doing so?
0
[ 2, 113, 107, 31, 442, 1381, 566, 969, 1797, 20, 104, 535, 76, 7994, 7312, 60, 800, 3726, 3726, 31, 57, 109, 1797, 30, 31, 259, 20, 535, 76, 14, 4155, 7994, 12202, 14, 1330, 9, 52, 76, 4793, 16121, 68, 15, 2722, 15, 47, 104, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
DNS servers pointing to site saying "owner knows site is down"? === When my site goes down, I want to change my registrar DNS settings to point to (for example): ns1.this_site_is_down.com ns2.this_site_is_down.com ns3.this_site_is_down.com ns4.this_site_is_down.com where these nameservers would return a fixed IP with a low TTL for all queries (or even a CNAME), and a webpage on that IP address would read something like: The owner of this website knows it is down and is working to fix it. Once the site is fixed, you will no longer see this message. To use this service, set your DNS servers to ... [as above] Does such a service exist? I realize this system wouldn't be perfect, but it would be useful. http://stackoverflow.com/questions/5872908/dns-and-site-is-offline-messages discusses creating your own 2nd nameserver to do this, but I'm looking to do this with an existing service/server.
0
[ 2, 13, 43, 2172, 17595, 6832, 20, 689, 1148, 13, 7, 10705, 3620, 689, 25, 125, 7, 60, 800, 3726, 3726, 76, 51, 689, 1852, 125, 15, 31, 259, 20, 753, 51, 25393, 13, 43, 2172, 12410, 20, 454, 20, 13, 5, 1106, 823, 6, 45, 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...
Connection Pooling with NEST ElasticSearch Library === I'm currently using the NEST ElasticSearch C# Library for interacting with ElasticSearch. My project is an MVC 4 WebAPI project that basically builds a RESTful webservice for accessing directory assistance information. We've only just started working with NEST, and have been stumbling over the lack of documentation. What's there is useful, but it's got some very large holes. Currently, everything we need works, however, we're running into an issue with connections sometimes taking up to a full second. What we'd like to do is use some sort of connection pooling, similar to how you'd interact with SQL Server. Here is the documentation on how to connect using nest: http://mpdreamz.github.com/NEST/concepts/connecting.html Here is the relevant code snippet from our project: public class EOCategoryProvider : IProvider { public DNList ExecuteQuery(Query query) { //Configure the elastic client and it's settings ConnectionSettings elasticSettings = new ConnectionSettings(Config.server, Config.port).SetDefaultIndex(Config.index); ElasticClient client = new ElasticClient(elasticSettings); //Connect to Elastic ConnectionStatus connectionStatus; if (client.TryConnect(out connectionStatus)) { // Elastic Search Code here ... } // end if } // end ExecuteQuery } // end EOCategoryProvider From looking at the documentation, I can't see any provisions for a connection pool. I've been thinking about implementing my own (having, say 3 or 4 ElasticClient objects stored, and selecting them round-robin style), but I was wondering if anyone had a better solution. If not, does anyone have advice on the best way to implement a connection pool by hand? Any articles to point to? Thanks for anything you guys come up with.
0
[ 2, 2760, 3067, 68, 29, 5618, 931, 9428, 25136, 1248, 800, 3726, 3726, 31, 22, 79, 871, 568, 14, 5618, 931, 9428, 25136, 272, 5910, 1248, 26, 24747, 29, 931, 9428, 25136, 9, 51, 669, 25, 40, 307, 8990, 268, 95, 969, 2159, 669, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
facebook share link count === Is there any way to get number of users share some link on facebook and twitter example: how many times some link was shared to facebook and twitter to calculate popularity of some content Are there some api ?
0
[ 2, 9090, 1891, 3508, 2468, 800, 3726, 3726, 25, 80, 186, 161, 20, 164, 234, 16, 3878, 1891, 109, 3508, 27, 9090, 17, 10623, 823, 45, 184, 151, 436, 109, 3508, 23, 2592, 20, 9090, 17, 10623, 20, 18469, 5178, 16, 109, 2331, 50, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Flexicious : single footer with dynamic levels === Using flexicious with enableDynamicLevels="true", I try to have a unique footer instead of one per level. Is that possible ? And if yes, how ? Thanks !
0
[ 2, 14409, 49, 9957, 13, 45, 345, 1749, 106, 29, 7782, 2216, 800, 3726, 3726, 568, 14409, 49, 9957, 29, 9240, 20985, 3906, 18, 3726, 7, 13398, 7, 15, 31, 1131, 20, 57, 21, 2619, 1749, 106, 700, 16, 53, 416, 662, 9, 25, 30, 938,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Lucene.Net search for text with underscore === I am using the standardanalyzer and adding the field I want to search by with the following code doc.Add( new Field( "BookId", book.CatalogueBookNo.ToString(), Field.Store.YES, Field.Index.NOT_ANALYZED, Field.TermVector.NO)); doc.Add( new Field("Title", strTitle, Field.Store.YES, Field.Index.ANALYZED, Field.TermVector.NO)); doc.Add( new Field("Author", strAuthor, Field.Store.YES, Field.Index.ANALYZED, Field.TermVector.NO)); doc.Add( new Field("IssueId_fk", book.IssueId_fk, Field.Store.YES, Field.Index.NOT_ANALYZED, Field.TermVector.NO)); All fields are searchable except the IssueId_Fk field (which is not analyzed and is therefore intact) - this field contains string values in the format '11_12_4', '11_12_3' etc. I have opened the the lucene index in notepad and can confirm that the values are delimited and complete with underscores but searching on the IssueId_Fk field returns nothing. Anyone know how to get around this? Cheers Wing
0
[ 2, 18515, 556, 9, 2328, 2122, 26, 1854, 29, 131, 15077, 800, 3726, 3726, 31, 589, 568, 14, 1236, 1629, 102, 3592, 17, 4721, 14, 575, 31, 259, 20, 2122, 34, 29, 14, 249, 1797, 9765, 9, 14854, 5, 78, 575, 5, 13, 7, 5199, 1340, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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't set focus to input in chrome extension === For some reason I can't set focus on a texbox I have in my popup.html. Here's what I've tried so far: popup.html: <input type="text" id="textbox" name="aName" value="" placeholder="blah" /> popup.js: //Attempt 1 $(function() { $('#textbox').focus(); }); //Attempt 2 setTimeout(function() { $('#textbox').focus(); }, 1000); I also tried without javascript, using just the autofocus property: <input type="text" id="textbox" name="aName" value="" placeholder="blah" autofocus /> [But none of this worked...][1] Any ideas? Notes: - *popup.js is being called, if I put console.log() I get the output* - *The popup is fired by an icon we have next to the omnibar (default\_icon)* [1]: http://stackoverflow.com/questions/9646772/chrome-extension-popup-textarea-focus%22asas%22
0
[ 2, 92, 22, 38, 309, 1776, 20, 6367, 19, 13, 12985, 3896, 800, 3726, 3726, 26, 109, 1215, 31, 92, 22, 38, 309, 1776, 27, 21, 14012, 5309, 31, 57, 19, 51, 1675, 576, 9, 15895, 9, 235, 22, 18, 98, 31, 22, 195, 794, 86, 463, 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...
Why does simpleinjector's RegisterPerWebRequest mehtod not inject dependency into controller constructor? === I have this setup public static void Initialize(ISessionFactory sessionFactory) { var container = new Container(); InitializeContainer(container, sessionFactory); container.RegisterMvcControllers(Assembly.GetExecutingAssembly()); container.RegisterMvcAttributeFilterProvider(); container.Verify(); DependencyResolver.SetResolver(new SimpleInjectorDependencyResolver(container)); } private static void InitializeContainer(Container container, ISessionFactory sessionFactory) { container.RegisterPerWebRequest<ISession>(() => sessionFactory.OpenSession(), true); } The Initialize method is called in Application_Start public class WebApiApplication : HttpApplication { protected void Application_Start() { SimpleInjectorInitializer.Initialize(new NHibernateHelper(Assembly.GetCallingAssembly(), this.Server.MapPath("/")).SessionFactory); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } } But when i try to call the controller action I get an exception <Exception> <ExceptionType>System.ArgumentException</ExceptionType> <Message>Type 'PositionReportApi.Controllers.PositionsController' does not have a default constructor</Message> <StackTrace> at System.Linq.Expressions.Expression.New(Type type) at System.Web.Http.Internal.TypeActivator.Create[TBase](Type instanceType) at System.Web.Http.Dispatcher.DefaultHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType) </StackTrace> </Exception> I can't register an ISession. How do i register an ISession that is created by a factory?
0
[ 2, 483, 630, 1935, 108, 17759, 248, 22, 18, 2243, 1432, 458, 3692, 10351, 55, 252, 262, 43, 52, 20316, 26835, 77, 9919, 6960, 248, 60, 800, 3726, 3726, 31, 57, 48, 18161, 317, 12038, 11364, 2104, 2952, 5, 2628, 18, 5991, 17455, 93...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does is_page() work in WP plugins php file? === Does is_page() work from a plugin's php file, specifically nextgen gallery to control an enqueue of scripts and styles? I've tested and it seems it doesn't. Thanks in advance!
0
[ 2, 630, 25, 1, 6486, 5, 6, 170, 19, 13, 13790, 10922, 108, 18, 13, 26120, 3893, 60, 800, 3726, 3726, 630, 25, 1, 6486, 5, 6, 170, 37, 21, 10922, 108, 22, 18, 13, 26120, 3893, 15, 3524, 328, 1863, 2246, 20, 569, 40, 1957, 200...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multidimensional Arraylist and DropdownLists === My question is, how can do I take this Multi Dim array collection and apply level 2 to a drop down list, var someArray:ArrayCollection = new ArrayCollection( [ { label: "Level 1 p1", data: { label: "Level 2", data: "some stuff" } }, { label: "Level 1 p2", data: { label: "Level 2", data: "some stuff" } } ] ); <s:DropDownList includeIn="items" id="classSelect" dataProvider="{someArray[0].data}" selectedIndex="0" labelField="label" x="405" y="150"/> someArray[0].data - for example points it to the entry 1 and the contents of the data level which in turn is a arrayList again, is my understanding here of how the pointers are working incorrect?
0
[ 2, 1889, 7865, 7718, 5739, 17, 2804, 2968, 5739, 18, 800, 3726, 3726, 51, 1301, 25, 15, 184, 92, 107, 31, 247, 48, 1889, 5937, 7718, 1206, 17, 5645, 662, 172, 20, 21, 2804, 125, 968, 15, 4033, 109, 8576, 93, 45, 8576, 93, 15015,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hibernate search: facet on double doesnt return results === I'm trying to adopt Hibernate Search into my application, but i'm stuck at limiting the searchresults by a range facet, to limit results based on price ranges. My code (snippets): Product.java contains: @Field(analyze = Analyze.NO, store = Store.YES, bridge = @FieldBridge(impl = DoubleBridge.class)) @NumericField() private double price = 0.0; My search handler, building the price facet: FacetingRequest priceFacetingRequest = builder.facet() .name( "price" ) .onField("price") .range() .below(10.0) .from(11.0).to(24.0) .from(25.0).to(49.0) .from(50.0).to(99.0) .from(100.0).to(199.0) .from(200.0).to(499.0) .from(500.0).to(999.0) .from( 1000.0 ).to( 1499.0 ) .above( 1500.0 ) .excludeLimit() .createFacetingRequest(); facetManager.enableFaceting(priceFacetingRequest); And finally, before listing the results, limiting the results via one of the facets: facetManager.getFacetGroup( "price" ).selectFacets( rangeFacet ); I've tried all rangeFacets possible, but none return any results. Besides the range() facet, i have different text facets which operate the same, but do filter the results normally. Also, the facetManager resports results for the facetRange results, but trying still it results in 0 results when calling fullTextQuery.list(). What am i missing ? Thanks !
0
[ 2, 4148, 2102, 8820, 2122, 45, 276, 38, 27, 1494, 5886, 788, 1736, 800, 3726, 3726, 31, 22, 79, 749, 20, 9512, 4148, 2102, 8820, 2122, 77, 51, 3010, 15, 47, 31, 22, 79, 4549, 35, 17567, 14, 2122, 29955, 18, 34, 21, 978, 276, 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...
Error loading UIWebView local index.html on device === I am having the strangest error, while trying to bring up an index.html on a UIWebView. I load the index.html into my app from an email that the user gets to the Documents folder, when I test the functionality by connecting the device to XCode via the USB cable it runs perfect, but, when I unplug the device and try to run the app, I get an error stating that the index.html file can't be found. What could be the source of the problem?, please remember that it runs fine while connected to the iMac.
0
[ 2, 7019, 12797, 13, 5661, 14113, 4725, 375, 4348, 9, 15895, 27, 3646, 800, 3726, 3726, 31, 589, 452, 14, 2578, 384, 7019, 15, 133, 749, 20, 1499, 71, 40, 4348, 9, 15895, 27, 21, 13, 5661, 14113, 4725, 9, 31, 6305, 14, 4348, 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...