unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Can Xcode's OCUnit tests run on device rather than simulator === I am trying to run unit tests on my device but find that Xcode (version 4.3.3) always informs me that my tests succeed despite the debug console telling me that they failed. When I run the tests using the simulator then Xcode informs me that testing failed as expected. For example if I create a new project with the following test, and run it using the device Xcode will tell me `Test Succeeded`: - (void)testExample { STFail(@"This test should fail"); } Is it possible to get a `Test Failed` message running this on an iOS device? Thank you!
0
[ 2, 92, 993, 9375, 22, 18, 13, 2499, 15464, 4894, 485, 27, 3646, 864, 119, 24565, 800, 3726, 3726, 31, 589, 749, 20, 485, 1237, 4894, 27, 51, 3646, 47, 477, 30, 993, 9375, 13, 5, 10898, 268, 9, 240, 9, 240, 6, 550, 18602, 55, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
post photo to friends wall / graph api facebook / beginner === i'm interested in learning facebook graph api. i am starting a ecard website that i would like to add the option so people can share ecard .png images from my site on their facebook and friends facebook pages. excatly like someecards.com. here is an example i'm trying to create here, (if you click on the facebook button under the card in the middle, the window pops up "post to your wall or post to friends wall): [http://www.someecards.com/thanks-cards/parents-money-gifts-presents-thank-you-funny-ecard][1] i have been able to figure out how to add like buttons to each page of my website. but how to add this seems impossible. i tried to read other posts on this site, and the entire facebook graph api developers section. however, i'm completely new to the entire developing for graph api. if anyone can give me the super basics on how to add this option so people can share ecard .png images from my site on their facebook and friends facebook pages i would greatly appreciate it! basics i'm trying to figure out is example codes i can use, what i need to add into the html of my page, and if this even works with simple html pages? thanks! [1]: http://www.someecards.com/thanks-cards/parents-money-gifts-presents-thank-you-funny-ecard
0
[ 2, 678, 3056, 20, 954, 769, 13, 118, 7210, 21, 2159, 9090, 13, 118, 26931, 800, 3726, 3726, 31, 22, 79, 3158, 19, 2477, 9090, 7210, 21, 2159, 9, 31, 589, 1422, 21, 13, 62, 6648, 2271, 30, 31, 83, 101, 20, 3547, 14, 4255, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
UINavigationController won't push other view controllers? === So I created a UINavigationController in my app's delegate and initialized it with my RootViewController instance. The UINavigationController was added as a subview of the app's UIWindow. (My RVC has a custom initializer if that matters.) - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; _viewController = [[RootViewController alloc] initWithPath:@"/private/var/mobile/"]; _viewController.title = @"mobile"; UINavigationController *nav1 = [[[UINavigationController alloc] initWithRootViewController:_viewController] autorelease]; //This part I'm not sure about as well [_window addSubview:nav1.view]; [_window makeKeyAndVisible]; return 0; } With that information, I'm trying to push another instance of RVC onto the Navigation Stack from an UITableView like so: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ //I've tried it without the if statement as well if(indexPath.section == 0){ RootViewController *detailView = [[RootViewController alloc] initWithPath:launchDirectory]; detailView.title = relativeDirectory; [self.navigationController pushViewController:detailView animated:YES]; As another note, my RVC tableview's datasource and delegate have been set to "self". My question is: Why does the view stay the same even though I select a row on the table? The table doesn't push to a new one and I still see the same cell contents after selecting a row. In other words, nothing happens... Thanks for any help.
0
[ 2, 287, 1673, 13227, 857, 12898, 1252, 230, 22, 38, 3250, 89, 1418, 9919, 18, 60, 800, 3726, 3726, 86, 31, 679, 21, 287, 1673, 13227, 857, 12898, 1252, 19, 51, 4865, 22, 18, 11300, 17, 2104, 1333, 32, 29, 51, 5900, 4725, 12898, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Want to create a custom component that mirror existing component functionalities, but using different renderer === The JSF component `SelectOneRadio` layout is very limited so I wrote a custom Renderer for it, and it works great. However, there are times when I want to use the standard SelectOneRadio layout as well. So I decide to make my new component that utilize the custom Renderer I create, but I want this new component to mirror the functionality of `SelectOneRadio`, and the only different is that it will use my Renderer. Can someone give me some advices on how to accomplish this?
0
[ 2, 259, 20, 1600, 21, 5816, 5912, 30, 3402, 3149, 5912, 7652, 3808, 15, 47, 568, 421, 16535, 106, 800, 3726, 3726, 14, 487, 18, 410, 5912, 13, 1, 18, 16964, 849, 11129, 1, 9106, 25, 253, 1317, 86, 31, 738, 21, 5816, 16535, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
accessing php file from a folder (using 'action' in a PHP form) === In php, I have a form where user can view comments by clicking on a button echo "<td> <form action=\"viewComments.php?id=$pid\" method=\"post\">"; This works fine when I put viewComments.php in the same folder. I want to organise my code and put viewComments.php in a folder lets say "actions". How do I do this? In other words, if I want to access "viewComments.php" that is in a folder called 'actions' how to reflect that in here? echo "<td> <form action=\"actions/viewComments.php?id=$pid\" method=\"post\">"; Can somebody help?
0
[ 2, 1381, 68, 13, 26120, 3893, 37, 21, 19294, 13, 5, 12655, 13, 22, 8645, 22, 19, 21, 13, 26120, 505, 6, 800, 3726, 3726, 19, 13, 26120, 15, 31, 57, 21, 505, 113, 4155, 92, 1418, 7534, 34, 25590, 27, 21, 5167, 8117, 13, 7, 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...
new to CPP: Compiler error === Compilation fails with the following output. Any thoughts please.. PStore.cpp PStore.cpp(169) : error C2220: warning treated as error - no 'object' file generated PStore.cpp(169) : warning C4091: '' : ignored on left of 'bool' when no variable is declared PStore.cpp(169) : error C2143: syntax error : missing ';' before 'inline function header' PStore.cpp(170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int PStore.cpp(170) : error C2556: 'int PStore::getVersion(std::string &)' : overloaded function differs only by return type from 'bool PStore::getVersion(std::string &)' ../include\PStore.h(48) : see declaration of 'PStore::getVersion' PStore.cpp(170) : error C2371: 'PStore::getVersion' : redefinition; different basic types ../include\PStore.h(48) : see declaration of 'PStore::getVersion'
0
[ 2, 78, 20, 272, 3421, 45, 21486, 7019, 800, 3726, 3726, 4868, 13614, 29, 14, 249, 5196, 9, 186, 3064, 2247, 9, 9, 351, 16828, 9, 150, 3421, 351, 16828, 9, 150, 3421, 5, 14009, 6, 13, 45, 7019, 272, 2287, 1323, 45, 3590, 4789, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is wrong with my logic for Project Euler 71? === Right now I am trying to solve [Project Euler 71][1]. > Consider the fraction, n/d, where n and d are positive integers. If > n<d and HCF(n,d)=1, it is called a reduced proper fraction. > > If we list the set of reduced proper fractions for d ≤ 8 in ascending > order of size, we get: > > 1/8, 1/7, 1/6, 1/5, 1/4, 2/7, 1/3, 3/8, 2/5, 3/7, 1/2, 4/7, 3/5, 5/8, > 2/3, 5/7, 3/4, 4/5, 5/6, 6/7, 7/8 > > It can be seen that 2/5 is the fraction immediately to the left of > 3/7. > > By listing the set of reduced proper fractions for d ≤ 1,000,000 in > ascending order of size, find the numerator of the fraction > immediately to the left of 3/7. The Current Code: ----------------- from fractions import Fraction import math n = 428572 d = 1000000 x = Fraction(3,7) best = Fraction(0) while d > 1: if Fraction(n,d) >= x: n-=1 else: y = Fraction(n,d) if (x - y) < (x - best): best = y d -= 1 n = int(math.ceil(d*0.428572)) print(best.denominator) Explanation: ------------ from fractions import Fraction import math Needed for Fractions and math.ceil. n = 428572 d = 1000000 These two variables represent the `n` and `d` stated in the original problem. The numbers start out this way because this is a slightly bigger representation of `3/7` (will be converted to Fraction later). x = Fraction(3,7) best = Fraction(0) x is just a quick reference to `Fraction(3,7)` so I don't have to keep typing it. `best` is used to keep track what fraction is closest to `3/7` but still left of it. while d > 1: If `d <= 1` and `n` has to be less than `1` what is the point of checking? Stop check then. if Fraction(n,d) >= x: n-=1 If the fraction ends up being bigger than or equal to `3/7` it isn't to the left of it, so keep subtracting from `n` till it is to the left of `3/7`. else: y = Fraction(n,d) if (x - y) < (x - best): best = y If it is to the left of `3/7` see if `3/7` minus `best` or `y` (which is equal to the fraction we need to check) is closer to 0. The one closer to zero will be the least left, or closest to `3/7`. d -= 1 n = int(math.ceil(d*0.428572)) Regardless of whether best changes or not, the denominator needs to be changed. So subtract one from the denominator and set n the Fraction(n,d) slightly greater (added extra ceil method to make sure it is greater!) than `3/7` to prune the test space. print(best.denominator) Finally print what the question wants. ## Note ## Changing `d` to `8` and `n` to `4` (like the test case) gives the desired result of `5` for the denominator. Keeping it as is gives: `999997`. Can someone please explain to me what I am doing wrong? [1]: http://projecteuler.net/problem=71
0
[ 2, 98, 25, 1389, 29, 51, 7085, 26, 669, 28027, 8966, 60, 800, 3726, 3726, 193, 130, 31, 589, 749, 20, 8402, 636, 21011, 28027, 8966, 500, 2558, 165, 500, 9, 13, 1, 3563, 14, 10885, 15, 13, 103, 118, 43, 15, 113, 13, 103, 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...
Any good tutorial for Ocamlgraph? === I am not familiar with OCamlgraph library? I am not able to find any good documentation for the same? I am not able to run any small examples also. I want to find all cycles in graph for that I am using it. Anyone aware of any documentation? Or a set of examples for the same?
4
[ 2, 186, 254, 29724, 26, 13, 14977, 8184, 9614, 60, 800, 3726, 3726, 31, 589, 52, 3694, 29, 13, 14977, 8184, 9614, 1248, 60, 31, 589, 52, 777, 20, 477, 186, 254, 13945, 26, 14, 205, 60, 31, 589, 52, 777, 20, 485, 186, 284, 3770...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
implement animation with click in image for more than once === i have a div that it have image content .i wanna implement animation when i click in image but it do only with first click and next click in image is Ineffective.what is problem and how can i solve it? $(function () { $('div.c').bind('mousedown', function () { var $elem = $(this); $elem.stop(true) .css({ "-webkit-animation-name": "xi", "-webkit-animation-duration": "3s", "-webkit-animation-timing-function": "ease", "-webkit-animation-delay": "1s", }) })})
0
[ 2, 8713, 6236, 29, 10840, 19, 1961, 26, 91, 119, 382, 800, 3726, 3726, 31, 57, 21, 13, 12916, 30, 32, 57, 1961, 2331, 13, 9, 49, 11024, 8713, 6236, 76, 31, 10840, 19, 1961, 47, 32, 107, 104, 29, 64, 10840, 17, 328, 10840, 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...
Why is auto not a reference when its initializer is a reference? === I'm trying to understand why `not_a_ref` is not a reference. I understand that I can make it a reference by `auto &`. I dug around in the standard for awhile, but got lost and couldn't figure out where this behaviour is defined. Example: #include <vector> #include <iostream> #include <type_traits> std::vector<int> stuff; std::vector<int>& get_stuff() { return stuff; } int main() { auto not_a_ref = get_stuff(); if( std::is_reference<decltype(not_a_ref)>::value ) std::cout << "is_reference true" << std::endl; else std::cout << "is_reference false" << std::endl; if( &not_a_ref != &stuff ) std::cout << "definately not a reference" << std::endl; return 0; }
0
[ 2, 483, 25, 3108, 52, 21, 2801, 76, 82, 2104, 11907, 25, 21, 2801, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 1369, 483, 13, 1, 1270, 1, 58, 1, 14057, 1, 25, 52, 21, 2801, 9, 31, 1369, 30, 31, 92, 233, 32, 21, 2801, 34, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Make Generator return a new function every time it's called === I am stuck on this one piece of code because I can't get the generator to return me a the next value every time its called – it just stays on the first one! Take a look: > from numpy import * def ArrayCoords(x,y,RowCount=0,ColumnCount=0): # I am trying to get it to print while RowCount<x: # a new coordinate of a matrix while ColumnCount<y: # left to right up to down each yield (RowCount,ColumnCount) # time it's called. ColumnCount+=1 RowCount+=1 ColumnCount=0 Here is what I get: >>> next(ArrayCoords(20,20)) ... (0, 0) >>> next(ArrayCoords(20,20)) ... (0, 0) But it's just stuck on the first one! I expected this: >>> next(ArrayCoords(20,20)) ... (0, 0) >>> next(ArrayCoords(20,20)) ... (0, 1) >>> next(ArrayCoords(20,20)) ... (0, 2) Could you guys help me out with the code as well as explain why it is so? Thank you in advance!
0
[ 2, 233, 15286, 788, 21, 78, 1990, 352, 85, 32, 22, 18, 227, 800, 3726, 3726, 31, 589, 4549, 27, 48, 53, 1855, 16, 1797, 185, 31, 92, 22, 38, 164, 14, 15286, 20, 788, 55, 21, 14, 328, 1923, 352, 85, 82, 227, 13, 10, 32, 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...
how to aggregate website posts === I have been a lurker for a while but I now have a question. I am creating a website that I want to aggregate and fetch posts from different blogs and websites and implement them in a way similar to the html5 ball pool demo. I am just not sure how I would go about fetching this data in the web app. Thanks for any help.
1
[ 2, 184, 20, 8544, 2271, 9868, 800, 3726, 3726, 31, 57, 74, 21, 13, 14130, 2429, 26, 21, 133, 47, 31, 130, 57, 21, 1301, 9, 31, 589, 2936, 21, 2271, 30, 31, 259, 20, 8544, 17, 18312, 9868, 37, 421, 8146, 18, 17, 13931, 17, 87...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery move div up at certain points === hey i have this menu that i want to rotate from left to right but right now it only goes left to right been searching for a month now can some one help me please the menu can be found [here](http://www.houseofsteff.com/)
1
[ 2, 487, 8190, 93, 780, 13, 12916, 71, 35, 1200, 819, 800, 3726, 3726, 8409, 31, 57, 48, 11379, 30, 31, 259, 20, 21448, 37, 225, 20, 193, 47, 193, 130, 32, 104, 1852, 225, 20, 193, 74, 5792, 26, 21, 1617, 130, 92, 109, 53, 44...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Protected field alternatives in Java? === I have a code using protected field in super class. How can I avoid it, because I think all field should be private? /** "Abstract Builder" */ abstract class PizzaBuilder { protected Pizza pizza; public Pizza getPizza() { return pizza; } public void createNewPizzaProduct() { pizza = new Pizza(); } public abstract void buildDough(); public abstract void buildSauce(); public abstract void buildTopping(); } /** "ConcreteBuilder" */ class HawaiianPizzaBuilder extends PizzaBuilder { public void buildDough() { pizza.setDough("cross"); } public void buildSauce() { pizza.setSauce("mild"); } public void buildTopping() { pizza.setTopping("ham+pineapple"); } } /** "ConcreteBuilder" */ class SpicyPizzaBuilder extends PizzaBuilder { public void buildDough() { pizza.setDough("pan baked"); } public void buildSauce() { pizza.setSauce("hot"); } public void buildTopping() { pizza.setTopping("pepperoni+salami"); } }
0
[ 2, 3803, 575, 2676, 18, 19, 8247, 60, 800, 3726, 3726, 31, 57, 21, 1797, 568, 3803, 575, 19, 1026, 718, 9, 184, 92, 31, 2658, 32, 15, 185, 31, 277, 65, 575, 378, 44, 932, 60, 13, 118, 1409, 13, 7, 2297, 18, 19915, 14960, 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 can I call a controller action based on combo box? === I am using Ruby on Rails 3.2.2 and ruby 1.9 . I do have a model tender and one of the attributes is status. On the index page, the first time it is loaded, it displays the tender data based on the user's company who already logged in (it will also display the status). I want to have a filter by combo box which will contain all the statuses (Initiated, Closed, Won ..etc )so when the user changes the filter by, I want to change the table data as well by submitting the status to a controller which will filter out tenders based on the status. How can I do that? How about using Ajax (since the only thing that is changed is the table data not the whole page)? I also have different filter by options other than the status, like by the bid_amount (also one of the attributes). How can I combine the bid_amount filter by data with the status (i.e if the user wants to display closed statuses which has a bid amount b/n 10,000-100,000). I won't have a problem writing the query on the controller but I don't know how to use it from the view. Any recommendations will also be appreciated.
0
[ 2, 184, 92, 31, 645, 21, 9919, 1028, 432, 27, 22621, 1649, 60, 800, 3726, 3726, 31, 589, 568, 10811, 27, 2240, 18, 203, 9, 135, 9, 135, 17, 10811, 137, 9, 518, 13, 9, 31, 107, 57, 21, 1061, 6437, 17, 53, 16, 14, 13422, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Type.GetType not finding a type by name === I'm trying to use StructureMap to perform runtime type registration, and I'm having trouble locating types in the referenced assemblies using `Type.GetType()`. Here is the full code of my test app: using System; using System.Collections.Generic; using System.Linq; using StructureMap; using StructureMap.Configuration.DSL; using StructureMap.Graph; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ObjectFactory.Initialize(r => r.Scan( s => { s.AssembliesFromPath( @"c:\Path\To\MyClasses\bin\Debug"); s.Convention<MyConvention>(); } )); ObjectFactory.AssertConfigurationIsValid(); foreach (var name in MyConvention.assemblyQualifiedTypenames) { Console.WriteLine(name); Console.WriteLine("Type found for reflection by assembly qualified name: {0}", Type.ReflectionOnlyGetType(name, false, false) != null); Console.WriteLine("Type found by assembly qualified name: {0}", Type.GetType(name) != null); Console.WriteLine("Type found by search: {0}", AppDomain.CurrentDomain.GetAssemblies().ToList() .SelectMany(assembly => assembly.GetTypes().Where(t => t.AssemblyQualifiedName == name)) .FirstOrDefault() != null ); } Type type = null; foreach (var name in MyConvention.fullnames) { Console.WriteLine(name); Console.WriteLine("Type found by full name: {0}", Type.GetType(name) != null); Console.WriteLine("Type found by search: {0}", AppDomain.CurrentDomain.GetAssemblies().ToList() .SelectMany(assembly => assembly.GetTypes().Where(t => t.FullName == name)) .FirstOrDefault() != null ); } foreach (var name in MyConvention.typenames) { Console.WriteLine(name); Console.WriteLine("Type found by name: {0}", Type.GetType(name) != null); Console.WriteLine("Type found by search: {0}", (type = AppDomain.CurrentDomain.GetAssemblies().ToList() .SelectMany(assembly => assembly.GetTypes().Where(t => t.Name == name)) .FirstOrDefault()) != null ); } Console.ReadLine(); var instance = ObjectFactory.GetInstance(type); Console.WriteLine("Type instance retrieved from StructureMap: {0}", instance != null); Console.ReadLine(); ObjectFactory.WhatDoIHave() .Split(new [] { Environment.NewLine}, StringSplitOptions.None) .Where(s => s.Contains("Class2")).ToList() .ForEach(Console.WriteLine); Console.ReadLine(); } private class MyConvention : IRegistrationConvention { public static List<string> typenames = new List<string>(); public static List<string> fullnames = new List<string>(); public static List<string> assemblyQualifiedTypenames = new List<string>(); public void Process(Type type, Registry registry) { if (type.GetCustomAttributes(false).Any(o => o.GetType().Name == "MyClassAttribute")) { registry.For(type).Use(type); typenames.Add(type.Name); fullnames.Add(type.FullName); assemblyQualifiedTypenames.Add(type.AssemblyQualifiedName); } } } } } The test class definitions: namespace MyAttributes { public class MyClassAttribute : Attribute { } } namespace MyClasses { public class MyClass1 { } [MyClass] public class MyClass2 { } } The output from running the console app: <pre> MyClasses.Class2, MyClasses, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Type found for reflection by assembly qualified name: False Type found by assembly qualified name: False Type found by search: True MyClasses.Class2 Type found by full name: False Type found by search: True Class2 Type found by name: False Type found by search: True Type instance retrieved from StructureMap: True Class2 (MyClasses.Class2) 60eb30ad-ae50-413d-884f-04743ea3148c Configured Instance of MyClasses.Class2, MyClasses, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 60eb30ad-ae50-413d-884f-04743ea3148c Configured Instance of MyClasses.Class2, MyClasses, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null </pre> I've done all of the testing based on [this SO post][1] - am I missing something fundamental? [1]: http://stackoverflow.com/questions/2426752/get-instance-from-structuremap-by-type-name
0
[ 2, 1001, 9, 3060, 4474, 52, 3007, 21, 1001, 34, 204, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 1411, 15022, 20, 2985, 485, 891, 1001, 8587, 15, 17, 31, 22, 79, 452, 2572, 27917, 2551, 19, 14, 17571, 21066, 568, 13, 1, 4474, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java Socket readInt EOFException === I've made a simple socket between my phone (Android) and my server. The phone is able to connect to the serveur but I can send or read data for eachother. Here is the code I use for my client (Phone side): private static void connect(String url, int port) { do { try { socket = new Socket(url, port); input = socket.getInputStream(); output = socket.getOutputStream(); inputstream = new DataInputStream(input); outputstream = new DataOutputStream(output); isConnected = true; } catch (Exception e) { try { Thread.sleep(100); } catch (Exception ex) {} } } while (!isConnected); } public static String sendToServer(String json) { try { connect(Constants.SERVER_HOST, Constants.SERVER_PORT); if (isConnected) { Log.e("SOCKET MNGR", "[SOCKET] Sending " + json); outputstream.writeInt(json.getBytes().length); outputstream.write(json.getBytes()); int arrLength = inputstream.readInt(); if (arrLength > 0) { byte[] fromServer = new byte[arrLength]; inputstream.read(fromServer, 0, fromServer.length); String content = new String( Base64.decode(new String(fromServer)) ); Log.e("SOCKET MNGR", "[SOCKET] Reading " + content); return content; } } } catch (Exception e) { e.printStackTrace(); } return null; } And the one for my server: public Client(Socket socket) { try { this.socket = socket; this.input = this.socket.getInputStream(); this.output = this.socket.getOutputStream(); this.inputstream = new DataInputStream(this.input); this.outputstream = new DataOutputStream(this.output); } catch (Exception e) {} } public void run() { while (true) { try { int arrLength = inputstream.readInt(); byte[] fromClient = new byte[arrLength]; inputstream.read(fromClient, 0, fromClient.length); String request = new String(fromClient); String read = new String( Base64.decode(request) ); String[] data = request.split("###"); if (data.length == 2 && data[0].equals("commit")) { CommitInterface.commit(data[1], true); outputstream.writeInt(0); outputstream.write(new byte[] {}); } else if (data.length == 3 && data[0].equals("evaluate")) { EvaluateInterface.eval(data[1], data[2].equals("true") ? true : false); outputstream.writeInt(0); outputstream.write(new byte[] {}); } else if (data.length == 2 && data[0].equals("publish")) { String content = PublishInterface.publish(new Vector<String>(Arrays.asList(data[1].split("|")))); String encoded = Base64.encode(content.getBytes()); outputstream.writeInt(content.getBytes().length); outputstream.write(content.getBytes()); } } catch (Exception e) { this.disconnect(); } } } When I use the function `sendToServer` on my phone, I got the following log: 06-29 13:26:05.823: E/Kramer(1781): [SOCKET] Sending commit###{"user":"me"} 06-29 13:26:05.823: W/System.err(1781): java.io.EOFException 06-29 13:26:05.823: W/System.err(1781): at java.io.DataInputStream.readInt(DataInputStream.java:287) 06-29 13:26:05.823: W/System.err(1781): at com.vodemki.network.KramerCommunicator.sendToServer(ServerCommunicator.java:78) 06-29 13:26:05.823: W/System.err(1781): at com.vodemki.activities.PhoneBookActivity$6.run(PhoneBookActivity.java:298) The line 78 is `int arrLength = inputstream.readInt();`. Any idea why I get this error? Thanks.
0
[ 2, 8247, 18482, 1302, 6391, 13, 62, 1041, 10066, 872, 800, 3726, 3726, 31, 22, 195, 117, 21, 1935, 18482, 128, 51, 1132, 13, 5, 290, 18524, 6, 17, 51, 8128, 9, 14, 1132, 25, 777, 20, 6379, 20, 14, 1884, 911, 47, 31, 92, 2660, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Fossil et al.: What is a stash? === Another noob question, sorry. I have googled and searched in various places for a while, but have not found a good answer. What is a stash, and what is it used for? (Source of confusion: using beautiful Fuel with Fossil, clicked the "Stash changes" button, see files in there with question marks, and don't know what to do with them ...)
0
[ 2, 9981, 2133, 493, 9, 45, 98, 25, 21, 24542, 60, 800, 3726, 3726, 226, 90, 4995, 1301, 15, 1875, 9, 31, 57, 8144, 43, 17, 9036, 19, 617, 1489, 26, 21, 133, 15, 47, 57, 52, 216, 21, 254, 1623, 9, 98, 25, 21, 24542, 15, 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...
Textbox value in MVC3 using ViewBag === Consider a textbox field in a View made using an Html Helper. @Html.TextBoxFor(m=>m.name, new {@value=ViewBag.x}); In this case, if in my model I pass some value(not null), then what will be the value of my textbox, the ViewBag.x, or the one I've passed in my model object??
0
[ 2, 1854, 5309, 1923, 19, 307, 8990, 240, 568, 1418, 8632, 800, 3726, 3726, 3563, 21, 1854, 5309, 575, 19, 21, 1418, 117, 568, 40, 13, 15895, 448, 106, 9, 13, 1, 15895, 9, 11969, 5309, 1106, 5, 79, 3726, 1, 79, 9, 7259, 15, 78,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Anchoring CSS Repeating Background Image === I have a webpage with a header banner in the following configuration: <---Repeating Image Left--><---Banner Image---><---Repeating Image Right---> The page is designed with fixed width content, but the banner spans the entire width of the browser window (thus the reason for including repeating images on the left and right). The two repeating images are different and they are also not standard background images which can be positioned where-ever. Instead, the left image needs to be anchored/stuck to the left-hand side of the banner image and then repeat itself leftwards, from that point, as the browser window is expanded. Likewise, the right image needs to be anchored/stuck to the right-hand side of the banner image and repeat itself rightwards from that point. Using the pure `background-image:` property with the `repeat-x` set does not work, as the image will be repeated/tiled from the left-hand side of the browser window, rather than from the left/right hand side of the banner image outwards in the desired direction. Any help to achieve the desired effect would be appreciated.
0
[ 2, 6265, 68, 272, 18, 18, 17389, 2395, 1961, 800, 3726, 3726, 31, 57, 21, 2741, 6486, 29, 21, 157, 106, 7492, 19, 14, 249, 8091, 45, 13, 1, 8, 8, 8, 99, 1664, 1880, 1961, 225, 8, 8, 1, 8, 8, 8, 4059, 1031, 1961, 8, 8, 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...
Performance Testing with SOAP Messages === I have to complete performance testing using SOAP messages. Instead of targeting the real SOAP URL end point i need to hit a "Mock" URL end point and return "pre recorded" SOAP responses that could be held in a local database or cached in memory. This "Mock" SOAP response server needs to be able to perform up to 1000 transactions per second. It also needs to be configurable, e.g. set a delay in responding with the matched SOAP response etc.. I have been looking at building a Node.js clustered HTTP server with the SOAP Response messages stored in a local mongoDB. I will have a multi core machine to run this Mock server on, e.g. 96 cores. I need to be able to interrogate the incoming SOAP requests to match them to the correct SOAP responses. Can anyone suggest a node js module that allows me to extract data from SOAP responses. Or suggest a "better" way to approach the entire project?
0
[ 2, 956, 4431, 29, 6447, 7561, 800, 3726, 3726, 31, 57, 20, 1279, 956, 4431, 568, 6447, 7561, 9, 700, 16, 15972, 14, 683, 6447, 287, 6362, 241, 454, 31, 376, 20, 770, 21, 13, 7, 79, 5668, 7, 287, 6362, 241, 454, 17, 788, 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...
CoreData fault and data not read when I need them === I need to pass an object managed by CoreData to a view, so I create a property of the same type in the descendant of UITableViewController class this way: @property (strong) Event *udalostTermin; in @interface and @synthesize udalostTermin; in @implementation and fill this property just before pushViewController:animated: of the view is called. When in viewDidLoad, everything is still OK, print says: <Event: 0x868c160> (entity: Event; id: 0x8684220 <x-coredata:///Event/t22D3C10C-1BFC-40DE-918F-0E12A5473CA03> ; data: { createDate = "2012-06-29 11:21:37 +0000"; doctor = nil; end = "2012-06-29 11:21:37 +0000"; and so on. But when the app runs into tableView:cellForRowAtIndexPath: where I need to display the data, print of the object says: <Event: 0x868c160> (entity: Event; id: 0x8684220 <x-coredata:///Event/t22D3C10C-1BFC-40DE-918F-0E12A5473CA03> ; data: <fault>) without explicitly doing anything with the object before and the object thus gives me wrong, empty data. What am I doing wrong, please?
0
[ 2, 2884, 18768, 4173, 17, 1054, 52, 1302, 76, 31, 376, 105, 800, 3726, 3726, 31, 376, 20, 1477, 40, 3095, 1471, 34, 2884, 18768, 20, 21, 1418, 15, 86, 31, 1600, 21, 1354, 16, 14, 205, 1001, 19, 14, 13783, 16, 13, 11193, 579, 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...
Change width and height of image for Portrait and Landscape iOS orientation === I am using the following code on [my site][1] to reduce the size of a div on ipad portrait orientation and it is working successfully. @media only screen and (min-width: 768px) and (max-width: 959px) { .mosaic-block { width: 226px; height: 135px; } } ![iOS portrait][2] However, when i change the orientation to landscape, the div keeps the same value instead of returning to the default larger size of the div. ![enter image description here][3] If the site is loaded directly into landscape mode - it display correctly (in the larger size). How can i make sure that the larger css div dimensions are applied when the user switches orientation from portrait to landscape? [1]: http://www.designlagoon.com [2]: http://i.stack.imgur.com/qDCq9.png [3]: http://i.stack.imgur.com/kCb5p.png
0
[ 2, 753, 9456, 17, 2947, 16, 1961, 26, 5548, 17, 4453, 13, 7760, 10245, 800, 3726, 3726, 31, 589, 568, 14, 249, 1797, 27, 636, 915, 689, 500, 2558, 165, 500, 20, 4136, 14, 1072, 16, 21, 13, 12916, 27, 31, 8240, 5548, 10245, 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 to mimic selecting e.target when only a Jquery object is available? === Odd... I'm listening for an event like so: $(document).on('some_event', 'div:jqmData(role="page")', function(e){ console.log( e.target ) }) In my console, I'm getting "hardcoded" HTML, like so: <div id="profile" class="ui-page ui-body-c ui-page-header-fixed" data-role="page" data-url="some_url" data-external-page="true" tabindex="0"> I need to replicate this selection from another function in which I don't have e.target available. Instead I have the whole page element, which consoles as an object: [div#profile.ui-page] **Question:** I'm missing some words here... how do I select the same way as e.target???
0
[ 2, 184, 20, 13567, 20764, 13, 62, 9, 3958, 3060, 76, 104, 21, 487, 8190, 93, 3095, 25, 904, 60, 800, 3726, 3726, 4210, 9, 9, 9, 31, 22, 79, 4948, 26, 40, 807, 101, 86, 45, 5579, 5, 28132, 6, 9, 218, 5, 22, 3220, 1, 4943, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Cloud Messaging for Android setup === I am trying to implement Google Cloud Messaging for Android (GCM) by following the [demo][1] but i am unable to execute some command like `$ ant war`,`$ android update project --name GCMDemo -p . --target android-16`. I am using `wamp server` and targetting Android 8+ any help would be highly appreciated thanks. [1]: http://developer.android.com/guide/google/gcm/demo.html
0
[ 2, 8144, 4005, 26437, 26, 13005, 18161, 800, 3726, 3726, 31, 589, 749, 20, 8713, 8144, 4005, 26437, 26, 13005, 13, 5, 10362, 79, 6, 34, 249, 14, 636, 19274, 500, 2558, 165, 500, 47, 31, 589, 2343, 20, 15644, 109, 1202, 101, 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...
Google doc duplicate entries sync issue === I am working on c++ desktop application for syncing User Google docs to the local data base. Applications retrieves Google docs,spreadsheets to the local by sending HTTP requests (Using curl for sending http requests) Request https://docs.google.com/feeds/default/private/full Here we preserved each Google doc resource_id and other meta info in the data base for the next syncs. According to the the Google Doc API documentation, "resource_id" is the unique identifier for the Google doc.So we used this value for identifying the Google doc update status during the next syncs. Once initial sync is done, from the next sync onwards sending the following HTTP requests for getting the updated resources https://docs.google.com/feeds/default/private/full?updated-min=Value Here updated-min is the previous XML response updated-min value Response should contains only new/update resources after the "updated-min" time. Here We are identifying the Google doc is updated or not based on the previously saved Google doc "resource-id" value . If current and previously saved "resource_id" is same then considering as updated otherwise considering as new one. Above logic was working fine till now, But suddenly we are getting duplicate entries for the same Google doc. Noticed that all duplicate entries of the same Google doc has got different resource_id, So We are treated it as different Google doc. We have noticed this issue from the day when Google drive has introduced. Could you please help us in addressing this issue. Regards Subbi Reddy
0
[ 2, 8144, 9765, 19429, 11399, 6063, 150, 1513, 800, 3726, 3726, 31, 589, 638, 27, 272, 20512, 17404, 3010, 26, 6063, 6302, 4155, 8144, 9765, 18, 20, 14, 375, 1054, 1000, 9, 3767, 11917, 18, 8144, 9765, 18, 15, 27013, 17627, 18, 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...
How to update a column in gridview at onece with a value from textbox c# asp.net linq to sql === I have a gridview from a linq to sql query and i want to update a column of this gridview with a value from a text box. In this gridview are some products with discounts i choose some products in linq to sql query and then i want to change their discount. Iam inserting the new discount in the textbox and by the button press "Save changes" i want to update the discount of the products with the new one. My code: protected void btnDisplay_Click(object sender, ImageClickEventArgs e) { OrdersDataContext contex = new OrdersDataContext(); var query2 = from d in contex.Discounts join r in contex.Registrations on d.id_reg equals r.id join pr in contex.Products on d.id_prod equals pr.id join p in contex.pTs on pr.pId equals p.id join dim in contex.dimTs on p.dimId equals dim.id join t in contex.typeTs on dim.typeId equals t.id join c in contex.codeTs on t.codeId equals c.id where (r.fullname == txtCompName.Text && r.password == txtpass.Text && c.code == TextBox1.Text && t.type == TextBox2.Text && dim.dimension == TextBox3.Text) select new { CompanyName = r.fullname, Article = pr.article, Description = pr.description, Price = pr.price, Discount = d.discounts }; GridViewDiscounts.DataSource = query2.ToList(); GridViewDiscounts.DataBind(); } protected void btnSave_Click(object sender, ImageClickEventArgs e) { OrdersDataContext contex = new OrdersDataContext(); if (GridViewDiscounts.Rows.Count != 0) { foreach (GridViewRow row in GridViewDiscounts.Rows) { //here is my problem!!!! } } ClearDetails(); string Msg = "<script>alert('Data updated successfully!');</script>"; ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "alert", Msg, false); } } } Can anyone help me please???
0
[ 2, 184, 20, 11100, 21, 4698, 19, 7354, 4725, 35, 53, 1105, 29, 21, 1923, 37, 1854, 5309, 272, 5910, 28, 306, 9, 2328, 6294, 1251, 20, 4444, 255, 800, 3726, 3726, 31, 57, 21, 7354, 4725, 37, 21, 6294, 1251, 20, 4444, 255, 25597, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 load the table in DataGrid Control === when I tried to load the table into DataGrid Control, It showed the error **Cannot implicitly convert type 'TRAINING.Employee' to 'System.Collections.IEnumerable'. An explicit conversion exists (are you missing a cast?).** Below the code What i wrote MyDatatBaseDataContext MyDB = new MyDatatBaseDataContext(); Employee Add = new Employee(); Add.EmpID = 5039; Add.Age = 25; Add.Address = "West Street"; MyDB.Employees.InsertOnSubmit(Add); MyDB.SubmitChanges(); grd_1.ItemsSource =Add;
0
[ 2, 184, 20, 6305, 14, 859, 19, 1054, 16375, 569, 800, 3726, 3726, 76, 31, 794, 20, 6305, 14, 859, 77, 1054, 16375, 569, 15, 32, 1908, 14, 7019, 13, 1409, 1245, 1270, 20290, 102, 8406, 1001, 13, 22, 24400, 9, 1503, 13221, 3616, 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...
object Object has no method === Right having a crazy issue here. Cant really paste the code so this is more a theory question I've got jquery included first, then all my jquery plugins all the plugins are loaded as a dropped a console.log inside each to show it was linked. however on EVERY plugin when it tries to use it it returns Uncaught TypeError: Object [object Object] has no method 'PLUGIN FUNCTION' theoretically what could be happening thanks Owen
0
[ 2, 3095, 3095, 63, 90, 2109, 800, 3726, 3726, 193, 452, 21, 3328, 1513, 235, 9, 2973, 510, 640, 62, 14, 1797, 86, 48, 25, 91, 21, 1639, 1301, 31, 22, 195, 330, 487, 8190, 93, 506, 64, 15, 94, 65, 51, 487, 8190, 93, 10922, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is it possible to sort primefaces Datagrid? === is it possible sort primefaces datagrid data? as i'm aware it's possible in data table.if it is not possible by default,is there any other way to do it? Thanks
0
[ 2, 25, 32, 938, 20, 2058, 1621, 6413, 18, 1054, 16375, 60, 800, 3726, 3726, 25, 32, 938, 2058, 1621, 6413, 18, 1054, 16375, 1054, 60, 28, 31, 22, 79, 3854, 32, 22, 18, 938, 19, 1054, 859, 9, 821, 32, 25, 52, 938, 34, 12838, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to integrate Facebook's Open Graph in a Meteor application? === I'm trying to integrate my Meteor application with Facebook Open Graph, to publish actions in the timeline. Facebook API works by defining object specific meta tags in the HTML head, that will be read by the API. For example: <head prefix="og: http://ogp.me/ns# [YOUR_APP_NAMESPACE]: http://ogp.me/ns/apps/[YOUR_APP_NAMESPACE]#"> <title>OG Tutorial App</title> <meta property="fb:app_id" content="[YOUR_APP_ID]" /> <meta property="og:type" content="[YOUR_APP_NAMESPACE]:recipe" /> <meta property="og:title" content="Stuffed Cookies" /> <meta property="og:image" content="http://fbwerks.com:8000/zhen/cookie.jpg" /> <meta property="og:description" content="The Turducken of Cookies" /> <meta property="og:url" content="http://fbwerks.com:8000/zhen/cookie.html"> </head> However, what Facebook API sees when inspecting any URL is something like this: <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="/ed99236548322b46a7562b49cd6ee0e0f059e506.css"> <script type="text/javascript" src="/c16ff21884b1f831d91ebf271236ef78b03b552e.js"></script> <title>Made with Meteor!</title> </head> <body> </body> </html> What is the best way of integrating this meta tags, that may change depending on the URL, in the Meteor application?
0
[ 2, 184, 20, 18399, 9090, 22, 18, 368, 7210, 19, 21, 17522, 3010, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 18399, 51, 17522, 3010, 29, 9090, 368, 7210, 15, 20, 10824, 3078, 19, 14, 18398, 9, 9090, 21, 2159, 693, 34, 14684, 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...
x86 COM+ server access from x64 code === I need to access a x86 dll (3rd party, no access to source) from x64 code. My research indicated putting the dll in a COM+ wrapper and accessing as an OOP service was the most suitable approach. So far so good. So following a guide from "NET 2.0 Interoperability Recipes - A Problem Solution Approach" (although I am running VS2010, and .NET4). I built a proof of concept Service(dll) and test Client(exe), the service running as a server application to be OOP. They both work, and disabling the service through Component Services kills it, so it appears to be using the correct route. This is all in x86. When I change the client to x64 I get a 'BadImageFormatException', which I would expect if it were simply loading an x86 dll, but this should be running OOP. I know I am missing something, and it is probably quite obvious. Other Notes: 1) I run regsvcs post build, and regsvcs /u prebuild 2) The problem dll is stuck as is, and my main codebase has to be x64
0
[ 2, 993, 3274, 13, 960, 2430, 8128, 1381, 37, 993, 3470, 1797, 800, 3726, 3726, 31, 376, 20, 1381, 21, 993, 3274, 13, 43, 211, 13, 5, 240, 897, 346, 15, 90, 1381, 20, 1267, 6, 37, 993, 3470, 1797, 9, 51, 527, 4151, 3873, 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...
C++ & XCode: Apple Mach-O Linker error? === I'm studying C++ from an online course (Stanford CS106B via iTunes U) and i'm trying to work with code that was designed for X-Code 3 in version 4.3.2 I suspect there are fundamental changes in 4.3.2, therefore fundamental incompatibilities with this old code. The following screen shots illustrate the C++ code I'm trying to compile and the errors X-Code 4.3.2 is reporting. There's probably a simple answer to this problem, any help would be greatly appreciated. If someone could explain to me whats going wrong in newb terms that would be awesome! Thanks My simple program: ![program][1] And the error I get when running it: ![error][2] [1]: http://i.stack.imgur.com/xW7yV.jpg [2]: http://i.stack.imgur.com/8l9LJ.jpg
0
[ 2, 272, 20512, 279, 993, 9375, 45, 4037, 10604, 8, 111, 3508, 106, 7019, 60, 800, 3726, 3726, 31, 22, 79, 4493, 272, 20512, 37, 40, 2087, 674, 13, 5, 6114, 1426, 272, 18, 17901, 220, 1197, 12952, 287, 6, 17, 31, 22, 79, 749, 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...
How to avoid "flexjson.JSONSerializer" convert Datetime Object to Timestamp? I want string like yyyy/MM/dd hh:mm:ss === I'm using flexjson.JSONSerializer to serialize Java Object, but when serializes Date property, it is converted into Timestamp: `new JSONSerializer().exclude("*.class").serialize(obj);` How can flexjson convert from Date to String of readable time?
0
[ 2, 184, 20, 2658, 13, 7, 19752, 728, 528, 9, 728, 528, 4104, 2815, 11907, 7, 8406, 1231, 891, 3095, 20, 436, 38, 10158, 60, 31, 259, 3724, 101, 13, 93, 93, 93, 93, 118, 3363, 118, 8096, 13, 10681, 45, 3363, 45, 18, 18, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pass in Active Directory user name (DOMAIN\etc) in asp.net MVC URL === I'm trying to pass an active directory user name in to a asp.net MVC application, but can't figure out what's the best way to deal with the backslash in the user name. For example, say my user name is "EUROPE\george.collins" and I want my record for 2012: `http://application/2012/EUROPE\George.Collins` If I URL-encode the backslash as %5C the server is returning a "400 Bad Request". Should I just separate the DOMAIN and User Name parts, e.g. 2012/EUROPE/George.Collins? In that case, what would be the easiest way to re-combine them into a username string? G
0
[ 2, 1477, 19, 1348, 16755, 4155, 204, 13, 5, 537, 6232, 1, 1198, 150, 6, 19, 28, 306, 9, 2328, 307, 8990, 287, 6362, 800, 3726, 3726, 31, 22, 79, 749, 20, 1477, 40, 1348, 16755, 4155, 204, 19, 20, 21, 28, 306, 9, 2328, 307, 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...
Jenkins : How Credential plugin works with Subversion plugin === I am using Jenkins version 1.447.2. I installed latest Credentials plugin and SSH Credentials plugin. I configured everything under 'Manage Credentials' screen. Now, I expect Subversion plugin to automatically use this credential. However, it is not doing that. It is asking me to enter credential again rather than using credentials stored under Credential plugin. Please confirm if my understanding about Credentials plugin is correct or there is something I am missing. Is there any solution available?
0
[ 2, 11420, 13, 45, 184, 5059, 43, 10107, 10922, 108, 693, 29, 972, 10898, 10922, 108, 800, 3726, 3726, 31, 589, 568, 11420, 615, 137, 9, 300, 2918, 9, 135, 9, 31, 4066, 5736, 5059, 43, 10107, 18, 10922, 108, 17, 13, 18, 1635, 505...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trying to settimeout for a fucntion and passvariable - doesnt work === Basically i have a function that passes this .. i need this function to be executed 1/3 seconds after a button got clicked so what i thought of doing is: setTimeout("somefunction(this)", 3000); As i know that setTimeout("", x); works with "" but it doesnt work. I've tried without the "" and it wont work either i tried to: setTimeout("somefunction("+this+")", 3000); and still wont work.. did like an hour of attempts at this. Any help would be highly appreciated.
0
[ 2, 749, 20, 309, 891, 1320, 26, 21, 2916, 9881, 3309, 17, 1477, 8220, 579, 13, 8, 5886, 170, 800, 3726, 3726, 11374, 31, 57, 21, 1990, 30, 3789, 48, 13, 9, 9, 31, 376, 48, 1990, 20, 44, 5557, 137, 16842, 2582, 75, 21, 5167, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery - Lock Element Position Relative to Another Element === When my page loads, I find the position of `div_left` on the page and set the top of `div_right` so that they appear side by side. This is the only way I have found to do this because my page is complicated with multiple forms and such. The code to find/set position is this: function findPos() { var curLeft = curTop = 0; var obj = $("#div_left"); var position = obj.position(); curLeft = position.left; curTop = position.top; moveToPos(curLeft, curTop); } function moveToPos(newLeft, newTop) { $("#div_right").css({ position: "absolute", top: newTop + "px", left: (newLeft + 550) + "px" }); } The elements that appear above these divs change size regularly, primarily via `.toggle()`. I'm finding that `div_right` doesn't move with the rest of the page elements when the elements above it are "expanding" or "contracting". Is there a way to "append" `div_right` to something or make it a child of something so that I don't have to programmatically move it every time? This would be painful due to the `.toggle()` animating.
0
[ 2, 487, 8190, 93, 13, 8, 3991, 4520, 649, 4543, 20, 226, 4520, 800, 3726, 3726, 76, 51, 2478, 19069, 15, 31, 477, 14, 649, 16, 13, 1, 12916, 1, 9742, 1, 27, 14, 2478, 17, 309, 14, 371, 16, 13, 1, 12916, 1, 4183, 1, 86, 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...
Android phone silent between a time interval === If I set the alarm between 9:00 and 10:00. my requirment is to make the phone silent during this interval.After 10 come back to the original form.User will set five alarms like this per day at a time.eg: 11-12,2-3...etc Anyone can help me...
1
[ 2, 13005, 1132, 2690, 128, 21, 85, 14422, 800, 3726, 3726, 100, 31, 309, 14, 6490, 128, 27854, 17, 26533, 9, 51, 302, 3003, 139, 1130, 25, 20, 233, 14, 1132, 2690, 112, 48, 14422, 9, 5162, 332, 340, 97, 20, 14, 501, 505, 9, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I use Stripe Platform with php? === Trying to use Stripe Platform to create an application that connects one Stripe account with other Stripe accounts via oauth. This is similar to how Facebook Connect allows users to connect their account to applications to share their information. An example has been given in ruby but I need a php version, help please. https://gist.github.com/2314782 Information on Stripe Platform: https://stripe.com/platform Thanks
1
[ 2, 184, 92, 31, 275, 20186, 2452, 29, 13, 26120, 60, 800, 3726, 3726, 749, 20, 275, 20186, 2452, 20, 1600, 40, 3010, 30, 8534, 53, 20186, 2176, 29, 89, 20186, 5310, 1197, 635, 1346, 96, 9, 48, 25, 835, 20, 184, 9090, 6379, 2965,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery - Getting selected option text on change === I am trying to do something very simple but it's not working for me. All I want to do is get the selected option's text when the selected option is changed, something like this: <select id = "myselect"> <option value = "1">One</option> <option value = "2">Two</option> <option value = "3">Three</option> </select> Then in JavaScript: $("#myselect").change(function () { var text = $(this).find("option[selected]").html(); alert(text); }); Simple right? The problem is I am just getting null. When I inspect the DOM I find that changing the selected option does not change the "selected" attribute of any of the options. Doesn't changing the option typically update the DOM? I'm pretty sure I've done this before. What I am missing here? I am using FireFox ver 13.0.1 for my testing.
0
[ 2, 487, 8190, 93, 13, 8, 1017, 1704, 4255, 1854, 27, 753, 800, 3726, 3726, 31, 589, 749, 20, 107, 301, 253, 1935, 47, 32, 22, 18, 52, 638, 26, 55, 9, 65, 31, 259, 20, 107, 25, 164, 14, 1704, 4255, 22, 18, 1854, 76, 14, 170...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to save a Drawable in the resource folder? === I want to save this: > private Drawable icon; > icon = pk.getApplicationIcon(procInfos.get(1).processName); I get the icon then i want to save it in the resource folder. Thanks in advance.
0
[ 2, 184, 20, 2079, 21, 2003, 579, 19, 14, 6577, 19294, 60, 800, 3726, 3726, 31, 259, 20, 2079, 48, 45, 13, 1, 932, 2003, 579, 9801, 73, 13, 1, 9801, 800, 13, 17244, 9, 3060, 2552, 20669, 49, 1126, 5, 15617, 108, 4120, 18, 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...
DKIM Signature not validating when sending mail with PHP === I was having a problem with gmail/hotmail filtering emails from my server as spam. The Spam Assassin score is quite low so I know that my IP isn't on any blacklists or such which means it is the filtering that gmail/hotmail use stopping the emails from coming through. I did some research and read that using DKIM will possibly resolve the issues I am having. I went ahead and enabled DKIM on my server. Now when I send emails using my email client the tool located here ([http://www.brandonchecketts.com/emailtest.php][1]) reports the DKIM signature as valid. The next step was to implement a DKIM signature into my PHP mails. So I went ahead and used this DKIM class located here (*http://sourceforge.net/projects/dkim-class-php/*) which is a spin-off of PHPMailer. However, when I send emails now, despite containing a DKIM signature I am getting a strange error from the validation tool. result = fail Details: message has been altered You can see the full report here: [http://www.brandonchecketts.com/emailtest.php?email=K86KTXpMbl%40www.brandonchecketts.com][3] Thanks for any help, I am desperately trying to get this working and have been banging my head against a wall for several hours now. [1]: http://www.brandonchecketts.com/emailtest.php [3]: http://www.brandonchecketts.com/emailtest.php?email=K86KTXpMbl@www.brandonchecketts.com
0
[ 2, 13, 43, 17574, 7810, 52, 7394, 1880, 76, 4907, 4216, 29, 13, 26120, 800, 3726, 3726, 31, 23, 452, 21, 1448, 29, 489, 8079, 118, 7010, 8079, 25272, 8517, 18, 37, 51, 8128, 28, 6954, 79, 9, 14, 6954, 79, 12379, 1618, 25, 1450, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Django:How to access logged in user's data in widget on other sites? === I have a webapp where a user can carry out a particular action only when he's logged in.I've developed a widget which other users can put on their sites.I used pinax as a foundation of the webapp.But on my widget I'm not getting the currently logged in user even when the user is logged in on my website.
0
[ 2, 3857, 14541, 45, 1544, 20, 1381, 13, 19287, 19, 4155, 22, 18, 1054, 19, 4807, 43, 3060, 27, 89, 3259, 60, 800, 3726, 3726, 31, 57, 21, 2741, 7753, 113, 21, 4155, 92, 2670, 70, 21, 1498, 1028, 104, 76, 24, 22, 18, 13, 19287,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ajax call for apache fileupload in jsr 286 === I am using apache fileupload in the form for portlets. I noticed that the class PortletFileUpload serves only action requests. I am using JSR286 and I want to call serveresource method whenever I click submit button. Is this possible or is there any work around to achieve this ?
0
[ 2, 20624, 645, 26, 17140, 3893, 576, 8294, 19, 487, 18, 139, 13, 24046, 800, 3726, 3726, 31, 589, 568, 17140, 3893, 576, 8294, 19, 14, 505, 26, 1295, 11045, 9, 31, 2711, 30, 14, 718, 1295, 1336, 16877, 576, 8294, 2589, 104, 1028, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
best practice for mysql search query (select)? === what is the best practice for data search in mysql: 1- to extract 100 record then do filtering outside the database or to use `WHERE` in mysql database and extract the exact needed record even if if `WHERE` is going to be a little complicated (also concerning indexing columns) 2- to use or not to `JOIN`
0
[ 2, 246, 1345, 26, 51, 18, 22402, 2122, 25597, 13, 5, 18, 16964, 6, 60, 800, 3726, 3726, 98, 25, 14, 246, 1345, 26, 1054, 2122, 19, 51, 18, 22402, 45, 137, 8, 20, 10962, 808, 571, 94, 107, 25272, 719, 14, 6018, 54, 20, 275, 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...
Electronic singnatures are safe? I am going to signup with groupdocs === I am going to signup with groupdocs.com [http://groupdocs.com/apps/signature][1] em little bit worried about security as signatures should be in safe hands, does anyone got experience of digital signatures with groupdocs or any other web application?? [1]: http://groupdocs.com/apps/signature
0
[ 2, 3253, 4481, 20609, 18, 50, 1834, 60, 31, 589, 228, 20, 1676, 576, 29, 214, 13799, 18, 800, 3726, 3726, 31, 589, 228, 20, 1676, 576, 29, 214, 13799, 18, 9, 960, 636, 21127, 6903, 8024, 13799, 18, 9, 960, 118, 7753, 18, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
List indexing efficiency (python 2 vs python 3) === In answering another [question][1], I suggested to use `timeit` to test the difference between indexing a list with positive integers vs. negative integers. Here's the code: import timeit t=timeit.timeit('mylist[99]',setup='mylist=list(range(100))',number=10000000) print (t) t=timeit.timeit('mylist[-1]',setup='mylist=list(range(100))',number=10000000) print (t) I ran this code with python 2.6: $ python2.6 test.py 0.587687015533 0.586369991302 Then I ran it with python 3.2: $ python3.2 test.py 0.9212150573730469 1.0225799083709717 Operating system: OS-X (10.5.8) That seems like a pretty significant difference to me. Does anyone have an idea why python3 is so much slower? (I searched briefly for an answer to this on SO, but didn't find one. Let me know if this is a duplicate and we'll close it). [1]: http://stackoverflow.com/q/11400163/748858
0
[ 2, 968, 4348, 68, 7836, 13, 5, 6448, 11570, 172, 4611, 20059, 203, 6, 800, 3726, 3726, 19, 11777, 226, 636, 24652, 500, 2558, 165, 500, 15, 31, 2347, 20, 275, 13, 1, 891, 242, 1, 20, 1289, 14, 2841, 128, 4348, 68, 21, 968, 29,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can't compile because of types when using nub, map and take === I've got this simple function: bombplaces::Int->[(Int,Int)]->[(Int,Int)] bombplaces bombCount listOfPossiblePoints = nub (map (take bombCount) (perms listOfPossiblePoints)) bombs are (x,y) (carthesian points) i need to get an all permutations and take only first few (bombCount) points. I'm getting following error: Couldn't match expected type `(Int,Int)' with actual type `[a0]' Expected type: [a0] -> (Int,Int) Actual type: [a0] -> [a0] In the return type of a call of `take' In the first argument of `map', namely `(take liczbaBomb)'
0
[ 2, 92, 22, 38, 26561, 185, 16, 2551, 76, 568, 3152, 220, 15, 2942, 17, 247, 800, 3726, 3726, 31, 22, 195, 330, 48, 1935, 1990, 45, 3816, 5119, 18, 45, 45, 6391, 8, 1, 2558, 5, 6391, 15, 6391, 6, 500, 8, 1, 2558, 5, 6391, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to convert IP address to country? === I am creating a news website like nytime.com but multicountries ( different news and languages for different countries ). So I need to convert IP address to country and so redirect user to the appropriate subdomain. For example, if a spanish user go to **mysite.com** he will be redirected to **es.mysite.com**. You can propose me other solutions if you want but remember it must be optimized for search engines.
0
[ 2, 184, 20, 8406, 15735, 3218, 20, 475, 60, 800, 3726, 3726, 31, 589, 2936, 21, 996, 2271, 101, 3071, 891, 9, 960, 47, 1889, 16549, 2829, 13, 5, 421, 996, 17, 2556, 26, 421, 1166, 13, 6, 9, 86, 31, 376, 20, 8406, 15735, 3218, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Scraperwiki scrape query: using lxml to extract links === I suspect this is a trivial query but hope someone can help me with a query I've got using lxml in a scraper I'm trying to build. https://scraperwiki.com/scrapers/thisisscraper/ I'm working line-by-line through the tutorial 3 and have got so far with trying to extract the next page link. I can use cssselect to identify the link, but I can't work out how to isolate just the href attribute rather than the whole anchor tag. Can anyone help? def scrape_and_look_for_next_link(url): html = scraperwiki.scrape(url) print html root = lxml.html.fromstring(html) #turn the HTML into lxml object scrape_page(root) next_link = root.cssselect('ol.pagination li a')[-1] attribute = lxml.html.tostring(next_link) attribute = lxml.html.fromstring(attribute) #works up until this point attribute = attribute.xpath('/@href') attribute = lxml.etree.tostring(attribute) print attribute
0
[ 2, 10241, 106, 17375, 23855, 25597, 45, 568, 13, 24560, 8184, 20, 10962, 6271, 800, 3726, 3726, 31, 7551, 48, 25, 21, 13, 19712, 25597, 47, 1376, 737, 92, 448, 55, 29, 21, 25597, 31, 22, 195, 330, 568, 13, 24560, 8184, 19, 21, 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...
Using 2 servers for MySQL === I have 2 servers for my website - Web Server - For sending dynamic content, mostly created with PHP - A lot of RAM and a fast processor, only a few GBs of hard drive space. and a - File Server - For sending static content, images, videos etc.. - A few TBs of hard drive space, not as much RAM and a slower processor. I want to Use the speed of the Web Server, but the space of the File Server. But I heard the overhead of NFS will make it so slow it will not matter... I will be using MySQL and I want to know how I should optimize the database so I can keep the data on the File Server, but have the queries preformed, and processed by the Web Server.
0
[ 2, 568, 172, 17595, 26, 51, 18, 22402, 800, 3726, 3726, 31, 57, 172, 17595, 26, 51, 2271, 13, 8, 2741, 8128, 13, 8, 26, 4907, 7782, 2331, 15, 1555, 679, 29, 13, 26120, 13, 8, 21, 865, 16, 2843, 17, 21, 1512, 14762, 15, 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...
Error: Permission denied (publickey) === Following [this][1] post to fix the following error: >> ssh -vT git@github.com OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/user/.ssh/config debug1: Applying options for * debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: Connecting to github.com [207.97.227.239] port 22. debug1: Connection established. debug1: identity file /Users/user/.ssh/id_rsa type 1 debug1: identity file /Users/user/.ssh/id_rsa-cert type -1 debug1: identity file /Users/user/.ssh/id_dsa type -1 debug1: identity file /Users/user/.ssh/id_dsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5github2 debug1: match: OpenSSH_5.1p1 Debian-5github2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.6 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'github.com' is known and matches the RSA host key. debug1: Found key in /Users/user/.ssh/known_hosts:10 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/user/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /Users/user/.ssh/id_dsa debug1: No more authentication methods to try. Permission denied (publickey). Through the post made sure that I have a key and SSH is using it. I have even verified that the public key is attached to my github account. Not sure of the -1 in the last 3 lines? Saw all the related posts but no help. debug1: identity file /Users/user/.ssh/id_rsa type 1 debug1: identity file /Users/user/.ssh/id_rsa-cert type -1 debug1: identity file /Users/user/.ssh/id_dsa type -1 debug1: identity file /Users/user/.ssh/id_dsa-cert type -1 [1]: https://help.github.com/articles/error-permission-denied-publickey
0
[ 2, 7019, 45, 5572, 5265, 13, 5, 12259, 4237, 6, 800, 3726, 3726, 249, 636, 1565, 500, 2558, 165, 500, 678, 20, 6098, 14, 249, 7019, 45, 13, 1, 13, 18, 1635, 13, 8, 710, 38, 13, 10404, 1, 10404, 20926, 9, 960, 8965, 1635, 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...
Google Geo coding service for getting only geocdes === We have a pharmacy search application. We are trying to get the the input address from user and find pharmacies around that address in a user specified raduis. We are planning to geo code the address entered by user from a third party service. After getting the geocodes we will search for pharmacies in our DB around that address and display the results. With each result there will be a link which will open a new tab/window of maps.google.com displaying the location. If we use the google geocoding API service to get geocodes will they charge for it ? I am not showing the map on my UI. Is that ok or violating the google terms ? Is the 2500 requests/day applicable for this scenario as well ? I am seeing that MapQuest is a service which will return only geocodes. Thanks, Avinash.
0
[ 2, 8144, 6389, 13, 15458, 365, 26, 1017, 104, 6389, 150, 3196, 800, 3726, 3726, 95, 57, 21, 15785, 2122, 3010, 9, 95, 50, 749, 20, 164, 14, 14, 6367, 3218, 37, 4155, 17, 477, 18583, 10807, 140, 30, 3218, 19, 21, 4155, 9931, 4944...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make splash screen with progress bar like eclipse === my main class loads configuration from file then shows a frame, i want to make a splash screen with progress bar like eclipse so the progress will increase while the file is being loaded and the splash disappears after the file is loaded then my main frame gets loaded. **MainClass code:** public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext( "classpath:/META-INF/spring/applicationContext.xml"); // splash with progress load till this file is loaded UserDao userDao = context.getBean(UserDao.class); isRegistered = userDao.isRegistered(); System.out.println("registered: " + isRegistered); if (isRegistered) { // progress finish and hide splash log.debug("user is registered"); // show frame1 } else { // progress finish and hide splash log.debug("user is not registered"); // show frame2 } } i don't have much experience with swing, so please advise how to accomplish that.
0
[ 2, 184, 20, 233, 13873, 2324, 29, 3455, 748, 101, 11652, 800, 3726, 3726, 51, 407, 718, 19069, 8091, 37, 3893, 94, 1285, 21, 3523, 15, 31, 259, 20, 233, 21, 13873, 2324, 29, 3455, 748, 101, 11652, 86, 14, 3455, 129, 1839, 133, 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...
Ruby. Symble '=' in to the setter name and initialization of an object === class Item def name=(name_value) @name = name_value end def name @name end end > In the first case: item = Item.new item.name=("value") puts item.class > I keep getting. Item > In the second case: item = Item.new.name=("value") puts item.class > I has. String > Why? I do not understand the difference.
0
[ 2, 10811, 9, 13, 7261, 2854, 13, 22, 3726, 22, 19, 20, 14, 309, 815, 204, 17, 2104, 1829, 16, 40, 3095, 800, 3726, 3726, 718, 9101, 6312, 204, 3726, 5, 7259, 1, 15165, 6, 13, 1, 7259, 800, 204, 1, 15165, 241, 6312, 204, 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...
Why is this happening? Think it is an issue with clearfix? === Here is the issue: As you can see on the left the floated elements do not align, and on the right they do. http://i.stack.imgur.com/Qx8Zs.jpg This doesn't happen all the time, and it isn't browser specific (AFAIK) - it corrects itself upon refresh... I'm thinking it's a problem with the clearfix? CSS below. .clear:after { clear: both; content: "."; display: block; font-size:0; height: 0; visibility: hidden; } .clear { display: inline-block; } * html .clear { height: 1%; } /* Hides from IE-mac \*/ .clear { display: block; }
0
[ 2, 483, 25, 48, 4942, 60, 277, 32, 25, 40, 1513, 29, 1207, 18594, 60, 800, 3726, 3726, 235, 25, 14, 1513, 45, 28, 42, 92, 196, 27, 14, 225, 14, 15400, 2065, 107, 52, 23389, 15, 17, 27, 14, 193, 59, 107, 9, 7775, 6903, 49, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get List of tables added into the EDMX - Entity Framework === Hello Friends how to get list of tables which have been added to entity data model through code ? please help me have the best way to do this
0
[ 2, 164, 968, 16, 7484, 905, 77, 14, 13, 69, 79, 396, 13, 8, 9252, 6596, 800, 3726, 3726, 10975, 954, 184, 20, 164, 968, 16, 7484, 56, 57, 74, 905, 20, 9252, 1054, 1061, 120, 1797, 13, 60, 2247, 448, 55, 57, 14, 246, 161, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Azure, MVC web app architecture - how to split data between SQL Azure and SQL Table Storage? === I am in the planning phase of the typical social network type of a web application. It will have profiles, messages, instant chat, albums, groups, virtual presents, etc... What are the deciding factors that determine what data should be stored in the SQL Azure and what data should be stored in the Table Storage? Before the Azure all relational data would be stored in the SQL server and then memory caching with data objects and pages output caching would be used for performance and to ease the SQL server load. How does Azure Table Storage fits in/changes this approach? Many Thanks!
0
[ 2, 25715, 15, 307, 8990, 2741, 4865, 2607, 13, 8, 184, 20, 2132, 1054, 128, 4444, 255, 25715, 17, 4444, 255, 859, 4326, 60, 800, 3726, 3726, 31, 589, 19, 14, 2334, 2702, 16, 14, 3874, 668, 982, 1001, 16, 21, 2741, 3010, 9, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where do i store username and userid? sessions or cookie? === There are many instances in my code where quick access to the logged in username and userid is needed. I currently use cookies. This isn't secure. I thought sessions would be a solution but sessions expire. Another option, is to store a unique token in a cookie and then match with a stored token in the database, to retrieve logged in user data. This is the most secure solution but the problem i see with this is, there are many times in my code where the logged in username and userid is needed but querying all the time would use up resources unnecessary(is this true?) What is the solution?
0
[ 2, 113, 107, 31, 1718, 4155, 7259, 17, 275, 5175, 60, 5763, 54, 19980, 60, 800, 3726, 3726, 80, 50, 151, 13946, 19, 51, 1797, 113, 2231, 1381, 20, 14, 13, 19287, 19, 4155, 7259, 17, 275, 5175, 25, 851, 9, 31, 871, 275, 19396, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 all tangled up in json_encode/json_parse and escaping === I have problems when users input " or \ on a html form The inputted text will be shown again to the user in html content and html attribute contexts I have the following data flow: 1. jQuery form line input 2. $_POST 3. escape for html attribute: function escapes either with html entities or hex entities (&quot; or &x27;) 4. json_encode in php 5. some unknown javascript interference which blows the fuses 6. json_parse in a jquery ajax callback The goal is to show the user the exact same text as they inputted, but to escape properly to avoid xss attacks. Now first thing I got was that $_POST had slashes added for some reason. So I now use stripslashes first. That solved everything for single quotes, but if the user inputs " or \ it still breaks. The problems seems to be that javascript does some decoding before the json_parse gets the data. it turns the hex escapes back to \ and " thus killing json_parse. So then I thought if between step 4 and 5 I use htmlspecialchars( $data, NO_QUOTES, 'utf-8' ) I encode the ampersands to &amp;, which should neutralise the javascript decoding, but no. It doesn't decode &amp; for some reason while it does decode &quot and the hex encodings... Where am I going wrong? Is there a way to know exactly what the javascipt decodes and neutralise it from php?
0
[ 2, 1017, 65, 16515, 71, 19, 487, 528, 1, 219, 9375, 118, 728, 528, 1, 3574, 870, 17, 14700, 800, 3726, 3726, 31, 57, 1716, 76, 3878, 6367, 13, 7, 54, 13, 1, 27, 21, 13, 15895, 505, 14, 6367, 1427, 1854, 129, 44, 1721, 188, 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...
asp.net RangeValidator: how to validate date range (Validation Data Type Date === **asp.net RangeValidator: how to validate date range MaxDate with Current System Date? Subhas Malik http://www.facebook.com/thesubhas**
0
[ 2, 28, 306, 9, 2328, 978, 18506, 43, 3457, 45, 184, 20, 7394, 1373, 1231, 978, 13, 5, 18506, 43, 857, 1054, 1001, 1231, 800, 3726, 3726, 13, 1409, 472, 306, 9, 2328, 978, 18506, 43, 3457, 45, 184, 20, 7394, 1373, 1231, 978, 2049...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get Sencha Touch application working on Blackberry devices === I have sencha touch application it's working fine . But now i want to run this sencha touch application on blackberry simulator or device. I'm not getting where to put model,view, controller class of sencha application. How to put sencha mvc application in the blackberry phonegap application. i read many past but did not clearly what to do. Please suggest me procedure how to do this?
0
[ 2, 184, 20, 164, 8252, 1651, 1723, 3010, 638, 27, 27367, 4690, 800, 3726, 3726, 31, 57, 8252, 1651, 1723, 3010, 32, 22, 18, 638, 1123, 13, 9, 47, 130, 31, 259, 20, 485, 48, 8252, 1651, 1723, 3010, 27, 27367, 24565, 54, 3646, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to grant permissions to a row in Oracle? === I have a table with different persons belonging to different clients: CREATE TABLE CLIENTS ( CLIENT VARCHAR2(20), FIRSTNAME VARCHAR2(20) ) Example data: INSERT INTO CLIENTS (CLIENT, FIRSTNAME) VALUES ('A Corp.', 'Alice') INSERT INTO CLIENTS (CLIENT, FIRSTNAME) VALUES ('B Corp.', 'Bob') Now I want to grant the permission to change the first name of all rows of the 'A Corp.' to person A and the rows of 'B Corp.' to person B. I think it might be possible by creating a view for each person. But is it also possible without creating dedicated grant views for each person?
0
[ 2, 184, 20, 2048, 5572, 18, 20, 21, 3131, 19, 15759, 60, 800, 3726, 3726, 31, 57, 21, 859, 29, 421, 4280, 5979, 20, 421, 7421, 45, 1600, 859, 7421, 13, 5, 6819, 4033, 5433, 135, 5, 1323, 6, 15, 64, 7259, 4033, 5433, 135, 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...
compile on QtCreator === i'm newer on Qt development and i need some help :( i tried to make a frame_generator with Qt and C++ programming on ubuntu 12.04.i chosen to work into the kernel space with my OS.i needed to extract a struct from kernel located in skbuff.h on my kernel and i succeeded to resolve the dependency problem of skbuff.h the the other file.h of the kernel system,otherwise, my program on QtCreator have the ability to access to the different file.h that skbuff.h needed.but when i compile it show me more than 500 error ,from the different files.h that i am talking about, and when i see some errors i discovered that QtCreator may not understand some code portion written into "C" as well as "#ifndef ..., #error ... " and many other problems :'( . QtCreator use GCC compiler and i don't really know what should i do !!!!! please i need help, and if i'll not find a solution all my project will fall down and i'll loose many good things in my studies :'((
0
[ 2, 26561, 27, 2593, 38, 26438, 800, 3726, 3726, 31, 22, 79, 12372, 27, 2593, 38, 522, 17, 31, 376, 109, 448, 13, 45, 5, 31, 794, 20, 233, 21, 3523, 1, 17083, 3457, 29, 2593, 38, 17, 272, 20512, 3143, 27, 287, 12968, 2473, 390,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does `log/test.log` show `http://www.example.com/` in the `Redirected to` message? === I'm running integration tests to make sure my `before_filter` is redirecting to `root_path` if the user is not logged in. Everything seems to be working fine, but I'm seeing `http://www.example.com/` in the `Redirected to` message in `log/test.log`, and I'm just wondering if this is normal, or if there's a configuration that I missed somewhere. Thanks! **log/test.log** Started PUT "/users/980190963" for 127.0.0.1 at 2012-07-29 13:31:39 -0700 Processing by UsersController#update as HTML Parameters: {"user"=>{"password"=>"[FILTERED]"}, "id"=>"980190963"} Redirected to http://www.example.com/ Filter chain halted as :reject_if_logged_out rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms) **users_controller.rb** ... before_filter :reject_if_logged_out, only: [:update] ... private def reject_if_logged_out redirect_to root_path unless @current_user end
0
[ 2, 483, 630, 13, 1, 5567, 118, 10543, 9, 5567, 1, 298, 13, 1, 21127, 6903, 6483, 9, 29041, 9, 960, 118, 1, 19, 14, 13, 1, 99, 14147, 20, 1, 2802, 60, 800, 3726, 3726, 31, 22, 79, 946, 8078, 4894, 20, 233, 562, 51, 13, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1D index to 3D coordinates === i flattened a 3D array using the following code index = x*size*size + y * size + z but can't figure out how to build the x,y,z indices from the index i found another stackoverflow question with this but this doesn't work out for me, the indicis are always off
0
[ 2, 137, 43, 4348, 20, 203, 43, 13714, 800, 3726, 3726, 31, 18909, 21, 203, 43, 7718, 568, 14, 249, 1797, 4348, 800, 993, 2483, 10454, 2483, 10454, 2754, 13, 93, 1637, 1072, 2754, 2052, 47, 92, 22, 38, 1465, 70, 184, 20, 1895, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to check if a user is logged in when using auth-method FORM === I am using auth-method FORM with apache tomcat to authenticate users. I am using the default j_security_check action. If a user has signed in, I must display a Sign out link. Else a sign in link. How do I check if the user has signed in? Also, how do I log a user out?
0
[ 2, 184, 20, 2631, 100, 21, 4155, 25, 13, 19287, 19, 76, 568, 10343, 96, 8, 5909, 1807, 43, 505, 800, 3726, 3726, 31, 589, 568, 10343, 96, 8, 5909, 1807, 43, 505, 29, 17140, 2067, 5782, 20, 14351, 1373, 3878, 9, 31, 589, 568, 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...
Compile C# project without VS === I plan to use Sublime Text 2 as my code source editor for C#/Java projects and I don't want to install Visual Studio, so can I compile C# project from CLI?
0
[ 2, 26561, 272, 5910, 669, 366, 4611, 800, 3726, 3726, 31, 944, 20, 275, 27644, 1854, 172, 28, 51, 1797, 1267, 1835, 26, 272, 5910, 118, 1004, 1385, 2314, 17, 31, 221, 22, 38, 259, 20, 16146, 3458, 1120, 15, 86, 92, 31, 26561, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
JSF/Facelets backing beans and EJB3 === I have a few questions on the various options and best practices when using JSF with EJB3.1. The mental model I have, given the daunting amount of choices and combinations available, is far from clear so some questions may not make sense. JSF/Facelets reference backing beans (I am using the term "*backing bean*" for beans whose properties are written or read from Facelets pages) through EL code that is agnostic as to the actual annotations used in the bean classes (javax.faces.bean.* or javax.enterprise.context.*). Is it correct to say that one can toggle between **JSF** and **CDI** scope annotations just by changing the imports in the bean classes without any changes to the Facelets *xhtml* code? Is it an established pattern that JSF/Facelets should be used only for the *xhtml* markup code with all scope and lifecycle (plus injection) annotations done using *CDI*? In a **JBoss AS** setting, where is the lifecycle management of the JSF backing beans (using either **JSF** or **CDI** annotations) taking place? In the web container or in the EJB3 container? In a typical web application given that the **SessionScoped** beans can be provided by CDI, is there any need for using EJB3 beans other than those of type **@Entity**, e.g. for the last typical step in each "flow" when information is to be persisted in the database?
0
[ 2, 487, 18, 410, 118, 6413, 11045, 3931, 14685, 17, 13, 10022, 220, 240, 800, 3726, 3726, 31, 57, 21, 310, 2346, 27, 14, 617, 6368, 17, 246, 5242, 76, 568, 487, 18, 410, 29, 13, 10022, 220, 240, 9, 165, 9, 14, 3584, 1061, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ABM under python with advanced visualization === sorry if this all seem nooby and unclear, but I'm currently learning Netlogo to model agent-based collective behavior and would love to hear some advice on alternative software choices. My main thing is that I'd very much like to take advantage of PyCuda since, from what I understand, it enables parallel computation. However, does that mean I still have to write the numerical script in some other environment and implement the visuals in yet another one??? If so, my questions are: 1. What numerical package should I use? PyEvolve, DEAP, or something else? It appears that PyEvolve is no longer being developed and DEAP is just a wrapper on the outdated(?) EAP. 2. Graphic-wise, I find mayavi2 and vtk promising. The problem is, none of the numerical package seems to bind to these readily. Is there no better alternative than to save the numerical output to datafile and feed them into, say, mayavi2? 3. Another option is to generate the data via Netlogo and feed them into a graphing package from (2). Is there any disadvantage to doing this? Thank you so much for shedding light on this confusion.
0
[ 2, 21, 13178, 131, 20059, 29, 2255, 28873, 800, 3726, 3726, 1875, 100, 48, 65, 2260, 90, 111, 779, 17, 11293, 15, 47, 31, 22, 79, 871, 2477, 4275, 5567, 111, 20, 1061, 2267, 8, 1281, 6553, 3257, 17, 83, 339, 20, 990, 109, 4978, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 find character within apostrophe substring and replace it, any ideas? === Ok, let me preface this question with the fact that I am extremely new to vb script, but I need to make an addition to a script that another developer created and he is away. Problem. : I am getting data that is feed into a process. The script I already have handles some things that I won't go into. One thing I found out that it doesn't handle correctly is commas that occur in double quotes. So I get some data like this. : Joe, Bill, James, Alex, "Google, Inc", Rose, "Kickstarter, LLC" What happens is that when this script kicks to the process application it blows up because of these commas in the double quotes. I need to be able to have this script go in and replace those commas in the Google and Kickstarter blocks with something a little more unique. If you have the answer to this I would appreciate it, but I wouldn't mind some direction either of something that does something like this, etc. Any answers are greatly appreciated. Again very new to vbascript just started reading syntax on it today.
0
[ 2, 376, 20, 477, 925, 363, 21, 6962, 13483, 438, 972, 11130, 17, 3934, 32, 15, 186, 3478, 60, 800, 3726, 3726, 5854, 15, 408, 55, 20910, 48, 1301, 29, 14, 837, 30, 31, 589, 3898, 78, 20, 13, 20468, 3884, 15, 47, 31, 376, 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...
Initialize Google Map in AngularJS === I am considering migrating from backbonejs to angularjs. In backbone I am able to initialize a view at which point I create an instance of google map. I can then pan/zoom/etc and switch between views and not lose the current state of the map. Given the following using angularjs: layout.html <body> <div class="container-fluid" ng-view></div> map.html <div id="map_canvas" ng-controller="MapCtrl"></div> I was able to create a directive to render a map just fine. Problem is that it reloads the map each time I switch back to the map view. <map></map> So from what I am learning about Angular, I figured I would create a MapController and initialize the map there. No success. Bottom line is I need to async-init a google map and push data to it locally or remotely AND be able to navigate the app without RELOADING the map from scratch each time. Can someone suggest the correct approach? Thank you :)
0
[ 2, 2104, 2952, 8144, 2942, 19, 18270, 728, 18, 800, 3726, 3726, 31, 589, 5154, 28749, 37, 24036, 728, 18, 20, 18270, 728, 18, 9, 19, 24036, 31, 589, 777, 20, 2104, 2952, 21, 1418, 35, 56, 454, 31, 1600, 40, 4851, 16, 8144, 2942,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reader Monad and type variable === I have the following: type TMap a = TVar (Map.Map KEY [a]) data Qcfg a = Qcfg { qthresh :: Int, tdelay :: Rational, cwpsq :: TPSQ, cwmap :: TMap a , cwchan :: TChan String } getTMap = do c <- ask return (cwmap c) and get an error concerning the Reader Monad: No instance for (MonadReader (Qcfg a2) m2) arising from a use of `ask' Possible fix: add an instance declaration for (MonadReader (Qcfg a2) m2) In a stmt of a 'do' expression: c <- ask In the expression: do { c <- ask; return (cwmap c) } In an equation for `getTMap': getTMap = do { c <- ask; return (cwmap c) } I have not enough understanding about the Reader Monad yet to determine how to fix this best. Is there any way at all to combine the Reader Monad with type variables?
0
[ 2, 7765, 9154, 43, 17, 1001, 7612, 800, 3726, 3726, 31, 57, 14, 249, 45, 1001, 13, 38, 15022, 21, 800, 983, 512, 13, 5, 15022, 9, 15022, 1246, 636, 58, 500, 6, 1054, 24486, 19109, 21, 800, 24486, 19109, 13, 1, 2593, 96, 99, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to initialize a Java Date object in Spring xml configuration file? === Consider this simple example - public class Person { private String name; private Date dateOfBirth; // getters and setters here... } In order to initialize Person as a Spring bean, I can write the following. <bean id = "Michael" class = "com.sampleDomainName.Person"> <property name = "name" value = "Michael" /> </bean> But in the above bean definition, how can I set the dateOfBirth?
0
[ 2, 184, 20, 2104, 2952, 21, 8247, 1231, 3095, 19, 1573, 23504, 8091, 3893, 60, 800, 3726, 3726, 3563, 48, 1935, 823, 13, 8, 317, 718, 840, 13, 1, 932, 3724, 204, 73, 932, 1231, 1231, 1041, 21587, 73, 12894, 164, 6052, 17, 309, 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...
Git - multiple users using the same working dir: permissions issues in .git meta-files === DISCLAIMER: *Before you chastise me - I realize sharing a working dir is counter to what Git stands for, and I am not talking about doing anything other than read-only operations in this shared directory - we do all our work in our own local repositories.* *I'm open to suggestions as to another way to do what we are trying to do, as our approach is certainly not best practice, but I'm not sure that conversation that would be useful for others to listen to. So for now let me provide some details on why we are doing this:* /DISCLAIMER We have several build-masters on our team. We deploy to Linux servers, and we do our builds there, with build scripts that pull directly from Git. We are not able to use C-I (such as Jenkins/cruisecontrol) at this time, so we have a repository that we checkout and do our QA builds from. There are some git operations that we perform as part of the script. This includes some tagging of commits (stuff gets tagged as QA-current, QA-previous, etc...). So I guess we aren't actually read-only entirely. Due to the nature of the build script, we run it sudo'ed as a common user (let's call that user DevAdmin). I realize this might be a bad practice, and is perhaps the source of the pain, since it forces us to use a shared repo checkout. This would all be fine, if we were always sudo'ed when in that working dir. The issue is that on occasion, one of us will do a git pull or something similar by accident, without being sudo'ed as DevAdmin. So most of the files in .git are owned by DevAdmin (who performed the initial clone), but whenever we do this, we end up with dir's in .git/objects that contain files owned by a specific user. And these are created as group-unwritable. I've also noticed ORIG_HEAD with wrong ownership, for example. So when we try to do something as DevAdmin, we get issues. Is there anything that we can do to fix this issue? Right now, we have to recognize that it has happened, and then get a server admin to chown .git back to DevAdmin. Or have the user delete the meta-files in question, or at least chmod them to group-writable. This all seems very bad. I've considered a couple of options that don't involve changing our build and maintenance processes dramatically: If we removed group-write access on .git and restricted it to DevAdmin, would that prevent this from happening again? This seems the most straightforward option. Or is there a way to make everything in .git group-writable, even when it's newly created? This seems like asking from trouble. Is there something else obvious I'm missing? I realize that the best thing would probably be to change our process so that users could work in their own repo's, but in a business setting, the repos can get very large (jars aren't separated out yet, lots of binary files, etc...), and we can't have multi-GB repos for everyone's account. Additionally, our system administrators would have a lot of work ahead of them changing their processes to allow for it. Any thoughts are appreciated.
0
[ 2, 13, 10404, 13, 8, 1886, 3878, 568, 14, 205, 638, 13, 9035, 45, 5572, 18, 1549, 19, 13, 9, 10404, 7618, 8, 16877, 18, 800, 3726, 3726, 1460, 22661, 106, 45, 1637, 12750, 42, 2438, 384, 2628, 55, 13, 8, 31, 4007, 6126, 21, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trouble with callback in Entry widget Tkinter === I have the following code (only sections of it) for getting the entries in 4 Entry boxes I have created. However I have two niggles: - When I type into each box, it types the same thing and I wish to type different numbers and assign all of them to separate variables. - Is there any way of producing 4 boxes in a loop and fewer lines than this? Thanks in advance! number = StringVar() def numberwritten(*args): number.trace("w", numberwritten) fg = number.get() print fg i = [0, 1, 2, 3] for i in i: choice_title = Label(choice_frame, text='Value %g'% float(i+1), bg='white', borderwidth=0, width=0) choice_title.grid(row=0, column=column+i, sticky="nsew", padx=1, pady=1) box1 = Entry(choice_frame, bg='white', borderwidth=0, width=0, textvariable=number) box1.grid(row=1, column=0, sticky="ew", padx=1, pady=1) box2 = Entry(choice_frame, bg='white', borderwidth=0, width=0, textvariable=number) box2.grid(row=1, column=1, sticky="ew", padx=1, pady=1) box3 = Entry(choice_frame, bg='white', borderwidth=0, width=0, textvariable=number) box3.grid(row=1, column=2, sticky="ew", padx=1, pady=1) box4 = Entry(choice_frame, bg='white', borderwidth=0, width=0, textvariable=number) box4.grid(row=1, column=3, sticky="ew", padx=1, pady=1)
0
[ 2, 2572, 29, 645, 1958, 19, 2792, 4807, 43, 3060, 13, 38, 1767, 815, 800, 3726, 3726, 31, 57, 14, 249, 1797, 13, 5, 4965, 4501, 16, 32, 6, 26, 1017, 14, 11399, 19, 268, 2792, 8120, 31, 57, 679, 9, 207, 31, 57, 81, 13, 27980,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET MVC model that uses more that one db table === I'm new to using MVC and I'm trying to make a model that uses other models. Say I have in my database 2 tables, i'll just call them Table1 and Table2 for the sake of this question. In my MVC project these correspond to Model1 and Model2. Now I'd like to have Model 3 that's like: public class Model3 { public Model1 model1 { get; set; } public Model2 model2 { get; set; } public string someString { get; set; } } Which I want to create with a T-SQL query that looks like this: SELECT * FROM Table1 t1 LEFT JOIN Table2 t2 ON t1.fk = t2.pk Now, to run this query i'm using the technique described at [http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/advanced-entity-framework-scenarios-for-an-mvc-web-application][1] The relevant code is: public virtual IEnumerable<TEntity> GetWithRawSql(string query, params object[] parameters) { return dbSet.SqlQuery(query, parameters).ToList(); } where I feed the above query in. The problem (finally!) is that Entity Framework wants a key. This wouldn't be a problem but in this case, the key is Table1.keyPart and Table2.keyPart, corresponding to Model1.keypart and Model2.keypart. So i tried using the second technique here: [http://stackoverflow.com/questions/4950245/in-entity-framework-code-first-how-to-use-keyattribute-on-multiple-columns][2] That is, the one using HasKey, with u.Model1.keyPart, u.Model2.keyPart instead of userID and userName. I get the error: The properties expression '[my part where i try to make 2 keys]' is not valid. The expression should represent a property: C#: 't => t.MyProperty' VB.Net: 'Function(t) t.MyProperty'. When specifying multiple properties use an anonymous type: C#: 't => new { t.MyProperty1, t.MyProperty2 }' VB.Net: 'Function(t) New From { t.MyProperty1, t.MyProperty2 }'. Is this something that's fixable? Or am I doing this the complete wrong way? I suppose I could just list out all the members of Model1 and Model2 in Model3, but that's introducing a redundancy that I really don't want, but if it's the only way, then I'll do it. Sorry if any of that was unclear, I'll try to clear things up if need be. Thanks in advance for any help! [1]: http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/advanced-entity-framework-scenarios-for-an-mvc-web-application [2]: http://stackoverflow.com/questions/4950245/in-entity-framework-code-first-how-to-use-keyattribute-on-multiple-columns
0
[ 2, 28, 306, 9, 2328, 307, 8990, 1061, 30, 2027, 91, 30, 53, 13, 9007, 859, 800, 3726, 3726, 31, 22, 79, 78, 20, 568, 307, 8990, 17, 31, 22, 79, 749, 20, 233, 21, 1061, 30, 2027, 89, 2761, 9, 395, 31, 57, 19, 51, 6018, 172,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Not able to database migration using FLYWAY === I'm terribly new to flyway consider me if i'vae asked something wrong I need to do database migration in flyway...But I'm stuck... I created th sql dump file and copiedto the baseDir I'm using ant to build and so i added the ant-flyway specific jar files I'm using jdbc driver---> "com.mysql.jdbc.Driver" to connect to database. But i'm getting an error that Flyway Error: com.googlecode.flyway.core.exception.FlywayException: Unable to instantiate jdbc driver: com.mysl.jdbc.Driver :(
0
[ 2, 52, 777, 20, 6018, 8443, 568, 2855, 1443, 800, 3726, 3726, 31, 22, 79, 19629, 78, 20, 2855, 1443, 3563, 55, 100, 31, 22, 1385, 62, 411, 301, 1389, 31, 376, 20, 107, 6018, 8443, 19, 2855, 1443, 9, 9, 9, 811, 31, 22, 79, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Nutch-Solr Mapping: copying field content frome one field to multiplie others === I want to copy the content of one field to multiple other fields (not just one). Currently it is only copied to the last field in the list. I only found examples with one one copy. In solrindex-mapping.xml: ... <fields> <field dest="content" source="content"/> <copyField source="content" dest="Location"/> <copyField source="content" dest="Province"/> </fields> ... In schema.xml: <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> </fieldType> <fieldType name="Location" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.MappingCharFilterFactory" mapping="charactermapping.txt"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.TrimFilterFactory"/> <filter class="solr.ShingleFilterFactory" maxShingleSize="2" outputUnigrams="true"/> <filter class="solr.KeepWordFilterFactory" words="locations.txt" ignoreCase="false"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> </fieldType> <fieldType name="Province" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.MappingCharFilterFactory" mapping="charactermapping.txt"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.TrimFilterFactory"/> <filter class="solr.ShingleFilterFactory" maxShingleSize="2" outputUnigrams="true"/> <filter class="solr.KeepWordFilterFactory" words="provinces.txt" ignoreCase="false"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> </fieldType> ... <field name="content" type="text" stored="true" indexed="true"/> <field name="Location" type="Location" indexed="true" stored="true" multiValued="false" /> <field name="Province" type="Province" indexed="true" stored="true" multiValued="false" /> ... This is what I expect to receive back when only looking at `.../solr/select/?q=*:*`: <doc> <str name="content">This document is about Tonronto in Ontario</str> <str name="Location">This document is about Tonronto in Ontario</str> <str name="Province">This document is about Tonronto in Ontario</str> </doc> The Location field is not indexed. The fieldType definitions are to enable faceted browsing. It seems that only the last copyField statement is used. If I switch Location and Province, with then Location being the last copyField statement, then Province is not indexed. Any ideas? Or can there be only one copyField per source? Thanks!
0
[ 2, 8619, 673, 8, 5594, 139, 13305, 45, 4344, 68, 575, 2331, 37, 62, 53, 575, 20, 1889, 306, 3844, 654, 800, 3726, 3726, 31, 259, 20, 4344, 14, 2331, 16, 53, 575, 20, 1886, 89, 2861, 13, 5, 1270, 114, 53, 6, 9, 871, 32, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
why are onkeyup events not firing in javascript game === I have the beginnings of a 2d javascript game - at the moment the player can drive a triangle around the screen using the arrow keys. The problem is that sometimes the triangle will get stuck rotating in one direction or moving forward until the corresponding control key is pressed again and the onkeyup event is fired again. This usually happens when more than one control key is pressed at the same time. I can't work out why it's getting stuck in the first place unless the onkeyup events aren't getting fired for some reason. Any help would be much appreciated, thank you. Here's some of the code: ... function init(){ var canvas = document.getElementById('canvas'); if(canvas.getContext){ setInterval(play, 50); } } function play(){ printTriState(); updateTriAcceleration(); applyTriVelocity(); updateTriRotation(); draw(); } document.onkeydown = function(event){ if(!event.keyCode){ keycode = window.event.keyCode; } else { keycode = event.keyCode; } console.log(event.keyCode); switch(keycode){ //left case 37: tri.rotation = -1; break; //up case 38: tri.throttle = true; break; //right case 39: tri.rotation = 1; break; //down case 40: tri.currentSpeed = 0; break; default: break; } }; document.onkeyup = function(event){ if(!event.keyCode){ keycode = window.event.keyCode; } else { keycode = event.keyCode; } console.log(event.keyCode); switch(keycode){ //left case 37: tri.rotation = 0; break; //up case 38: tri.throttle = false; break; //right case 39: tri.rotation = 0; break; //down case 40: break; default: break; } }; function updateTriRotation(){ if(tri.rotation == 1){ tri.orientation += tri.rotationSpeed; } else if (tri.rotation == -1){ tri.orientation -= tri.rotationSpeed; } else { tri.orientation += 0; } } ...
0
[ 2, 483, 50, 27, 4237, 576, 963, 52, 7139, 19, 8247, 8741, 250, 800, 3726, 3726, 31, 57, 14, 997, 18, 16, 21, 172, 43, 8247, 8741, 250, 13, 8, 35, 14, 688, 14, 517, 92, 1493, 21, 8676, 140, 14, 2324, 568, 14, 7409, 5534, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
android: Overlay view on button click === I want to open an overlay window when clicking a button on Android. I don't know from where I should begin. Any hint please?
0
[ 2, 13005, 45, 84, 4414, 1418, 27, 5167, 10840, 800, 3726, 3726, 31, 259, 20, 368, 40, 84, 4414, 1463, 76, 25590, 21, 5167, 27, 13005, 9, 31, 221, 22, 38, 143, 37, 113, 31, 378, 2348, 9, 186, 6382, 2247, 60, 3, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to hide custom tab bar button when hidesBottomBarWhenPushed is "TRUE" === I am using the code snippet from Tito to add a custom button to my tab bar: https://github.com/tciuro/CustomTabBar (Subclassing UITabbarController and adding a custom button using // .. created a UIButton *button [self.view addSubview:button]; ) This works great with my storyboard-based app except for the case of a subview within a navigation controller with the option "Hides bottom bar on push" enabled. This hides the tab bar as promised, but not the custom button. Seems like the button should be added as a subview to the tab bar itself? I tried this ugly code which did not even make the button show up: for(UIView *view in self.view.subviews) { if([view isKindOfClass:[UITabBar class]]) { [view addSubview:button]; break; } } Any ideas?
0
[ 2, 184, 20, 3077, 5816, 6523, 748, 5167, 76, 3077, 18, 22389, 1850, 3185, 26973, 69, 25, 13, 7, 13398, 7, 800, 3726, 3726, 31, 589, 568, 14, 1797, 13, 29061, 37, 22375, 20, 3547, 21, 5816, 5167, 20, 51, 6523, 748, 45, 7775, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Download image and strore in sdcard folder === I want to download image from url and store in sdcard's folder.If folder is not exist make folder and save it.But its giving following exception: java.io.FileNotFoundException: /mnt/sdcard (Is a directory) Please help!!!!
0
[ 2, 7121, 1961, 17, 12160, 99, 19, 13, 18, 43, 6648, 19294, 800, 3726, 3726, 31, 259, 20, 7121, 1961, 37, 287, 6362, 17, 1718, 19, 13, 18, 43, 6648, 22, 18, 19294, 9, 821, 19294, 25, 52, 3182, 233, 19294, 17, 2079, 32, 9, 811, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is there any difference between these two ways of outputing html content with php performance wise? === <?php foreach($pricelistline as $value) { $e = explode(",",$value); if ($e[0]) { echo "<li>\n<img width=\"24\" height=\"24\" src=\"features_icons/" . $e[0] . ".png\" alt=\"\" class=\"\" />\n<span>" . str_replace("-", " ", ucfirst($e[0])) . "</span>\n</li>\n"; } } ?> And this_ <?php foreach($pricelistline as $value) { $e = explode(",",$value); if ($e[0]) { ?> <li> <img width="24" height="24" src="features_icons<?php echo $e[0]; ?>.png" alt="" class="" /> <span><?php echo str_replace("-", " ", ucfirst($e[0])); ?></span> </li> <?php } } ?> In general is there any difference performance wise? Is there any difference in speed and load? Does exiting and entering php multiple times degrade performance? `<?php >` Which one is considered a better practice? Is there any difference between 1 instance of echo vs 2 instances?
0
[ 2, 25, 80, 186, 2841, 128, 158, 81, 2847, 16, 5196, 68, 13, 15895, 2331, 29, 13, 26120, 956, 6714, 60, 800, 3726, 3726, 13, 1, 60, 26120, 26, 14322, 5, 4403, 24137, 5739, 1143, 28, 5579, 15165, 6, 13, 1, 5579, 62, 800, 13383, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cron job to run Selenium 2 test Suite === I have an ant script that checks out all our projects from SVN, and then builds the project , deploys the WAR files and runs the Selenium tests . Unfortunately, when running the shell script via Cron, it does not open the Browser . Throws up the error : org.openqa.selenium.WebDriverException: Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: /opt/google/chrome/google-chrome (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 6.88 seconds Build info: version: &apos;2.21.0&apos;, revision: &apos;16552&apos;, time: &apos;2012-04-11 19:09:00&apos; System info: os.name: &apos;Linux&apos;, os.arch: &apos;amd64&apos;, os.version: &apos;2.6.37.6-0.9-desktop&apos;, java.version: &apos;1.6.0_26&apos; Driver info: driver.version: ChromeDriver at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:175) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:128) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:459) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:140) at org.openqa.selenium.remote.RemoteWebDriver.&lt;init&gt;(RemoteWebDriver.java:95) at org.openqa.selenium.chrome.ChromeDriver.&lt;init&gt;(ChromeDriver.java:133) at org.openqa.selenium.chrome.ChromeDriver.&lt;init&gt;(ChromeDriver.java:110) at com.integration.SetUp.testLogin(SetUp.java:52) </error> I did add export DISPLAY=:0 to the shell script being used . export ANT_HOME=/home/user/CCBuild/apache-ant-1.8.2 export PATH=$PATH:$ANT_HOME/bin export JAVA_HOME=/usr/java/jdk1.6.0_26 export PATH=$PATH:$JAVA_HOME/bin/java export DISPLAY=:0 echo $ANT_HOME cd CCBuild ant -v -f build-all.xml Even then, it throws up the error . As of now, I can't use Jenkins to run the suite, I need to get this cron job working.
0
[ 2, 13, 19587, 1205, 20, 485, 23027, 14311, 172, 1289, 6160, 800, 3726, 3726, 31, 57, 40, 40, 38, 3884, 30, 16602, 70, 65, 318, 2314, 37, 13, 18, 16578, 15, 17, 94, 1895, 18, 14, 669, 13, 15, 17617, 18, 14, 176, 6488, 17, 1461,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 uploaded file through FTPClien Apach is smaller then original file on the local? === I'm uploading files(.cvs,.zip,.rar,.doc,.png,.jpg...) to ftp server. the strange is evrything is successfully but i miss some data. **Does any body know why it happens and how to fix it?** public static void uploadWithCommonsFTP(File fileToBeUpload) { FTPClient f = new FTPClient(); try { f.connect(server.getServer()); f.login(server.getUsername(), server.getPassword()); f.changeWorkingDirectory("user"); f.setFileType(FTP.BINARY_FILE_TYPE); f.enterLocalPassiveMode(); ByteArrayInputStream in = new ByteArrayInputStream(FileUtils.readFileToByteArray(fileToBeUpload)); boolean reply = f.storeFile(fileToBeUpload.getName(), in); if(!f.completePendingCommand()) { f.logout(); f.disconnect(); System.err.println("File transfer failed."); System.exit(1); } if(reply){ JOptionPane.showMessageDialog(null,"uploaded successfully."); }else{ JOptionPane.showMessageDialog(null,"Upload failed."); } } //Logout and disconnect from server f.logout(); f.disconnect(); } catch (IOException e) { e.printStackTrace(); } }
0
[ 2, 483, 23782, 3893, 120, 1187, 5779, 18513, 21, 24630, 25, 2012, 94, 501, 3893, 27, 14, 375, 60, 800, 3726, 3726, 31, 22, 79, 71, 16866, 6488, 5, 9, 12732, 18, 15, 9, 2553, 306, 15, 9, 15011, 15, 9, 13799, 15, 9, 306, 2723, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 hook a funciton present in a dll? === There is a function test() in the dll, say file.dll. Now how can i hook that particular function using c++ such that we are able to modify the way test() works. Thanks in advance
0
[ 2, 184, 20, 5559, 21, 2414, 1892, 444, 734, 19, 21, 13, 43, 211, 60, 800, 3726, 3726, 80, 25, 21, 1990, 1289, 5, 6, 19, 14, 13, 43, 211, 15, 395, 3893, 9, 43, 211, 9, 130, 184, 92, 31, 5559, 30, 1498, 1990, 568, 272, 20512...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shell script that creates directories in \volumes === I am trying to create a shell script that creates a directory in /volumes. specifically /volumes/home. This directory will then be used to mount a user's network home. Since smb://server/sharepoint/usershare does not work as desired in Mac OS 10.7, I need to use 'mount -t smbfs //server/sharepoint/usershare /volumes/home'. However I need to create the directory home first. Within my script I use: 'mkdir /volumes/home' but what it creates is a directory called 'home?' any reason it appends the '?' to my directory? Thanks in advance for your help.
0
[ 2, 3593, 3884, 30, 9695, 559, 1596, 19, 13, 1, 15949, 18, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 3593, 3884, 30, 9695, 21, 16755, 19, 13, 118, 15949, 18, 9, 3524, 13, 118, 15949, 18, 118, 8167, 9, 48, 16755, 129, 94, 44,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Variables appear out of order when expanded in Here-String function === I just ran into what I think is a very strange issue, but it's very possible I'm just doing something wrong. When I run this code: Function OutOfOrder($animal,$verb,$adjective) { @" The quick brown $animal $verb over the $adjective dog "@ } OutOfOrder("fox","jumped","lazy") This is the output I receive: The quick brown fox jumped lazy over the dog Behavior is the same in PS 2.0 and 3.0. What gives? Thanks!
0
[ 2, 12157, 1893, 70, 16, 389, 76, 2766, 19, 235, 8, 11130, 1990, 800, 3726, 3726, 31, 114, 717, 77, 98, 31, 277, 25, 21, 253, 2578, 1513, 15, 47, 32, 22, 18, 253, 938, 31, 22, 79, 114, 845, 301, 1389, 9, 76, 31, 485, 48, 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...
Combination generation formula needed.? === i need a combination generation formula. Basically i have three sets of number in excel. 1) A1 to A100 2) B1 to B100 3) C1 to C100 (which is a constant) now i need the combinations of A, B and C that add to make up a value say 463. Any excel formula for this? any recommendations or suggestions on this/ Once again i need to find the combinations of A, B and C that make a value 463. e.g A25 +B34 + C17 = "463" or A 77 + B2 + C33 = 463 formulas for excel or an online website that will allow me to do it or a download link to a software which will allow me to do it. p.s. i am not very good at excel or programming, so please recomend something that can help me out. Thanks
1
[ 2, 3733, 2782, 3729, 851, 9, 60, 800, 3726, 3726, 31, 376, 21, 3733, 2782, 3729, 9, 11374, 31, 57, 132, 3415, 16, 234, 19, 20700, 9, 137, 6, 21, 165, 20, 21, 4031, 172, 6, 334, 165, 20, 334, 4031, 203, 6, 272, 165, 20, 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...
Prism 4 API documentation === Im looking for online API documentation for the Prism framework (prism 4). Does it A) Exist? and B) if so, where is it?
0
[ 2, 21985, 268, 21, 2159, 13945, 800, 3726, 3726, 797, 699, 26, 2087, 21, 2159, 13945, 26, 14, 21985, 6596, 13, 5, 15839, 79, 268, 6, 9, 630, 32, 21, 6, 3182, 60, 17, 334, 6, 100, 86, 15, 113, 25, 32, 60, 3, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Android 3rd party location tracker library === Is there a 3rd party library that makes it easy to keep track of the users location with a few configuration options such as "use any available provider, use a reasonable degree of accuracy, call this method when an update is found, use minimum battery". I want to keep a map centered on the users location (for their convience) but rolling my own seams to be getting more and more complicated than it needs to be. With iOS you can just use the built in location manager and it does all this for you with ease. Is there any library like this for Android?
0
[ 2, 13005, 203, 897, 346, 1474, 792, 106, 1248, 800, 3726, 3726, 25, 80, 21, 203, 897, 346, 1248, 30, 1364, 32, 2010, 20, 643, 792, 16, 14, 3878, 1474, 29, 21, 310, 8091, 6368, 145, 28, 13, 7, 3699, 186, 904, 11747, 15, 275, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to redirect the '&' command's log? === here is the command: # ls >log 2>&1 & [1] 24274 now I want this line `[1] 24274` to redirect a another file. any ideas?
0
[ 2, 184, 20, 302, 14706, 14, 13, 22, 1569, 22, 1202, 22, 18, 6738, 60, 800, 3726, 3726, 235, 25, 14, 1202, 45, 6926, 644, 18, 13, 1, 5567, 172, 1, 1569, 165, 279, 636, 165, 500, 937, 23945, 130, 31, 259, 48, 293, 13, 1, 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, 0...
When i toggle minibufexplorer, how to stop resizing window when nerdtree is open === my .vimrc setting: nmap <silent><F1> :NERDTreeToggle<CR> nmap <silent><F2> :TMiniBufExplorer<CR> let g:miniBufExplMapWindowNavVim = 1 let g:NERDTreeWinPos = "right" first it looks like: -------------------------- | minibufexplorer | | --------------------- | | | | | top | | | | | ---------------------NERD| | | | | btm | | | | | -------------------------- next when i press F2, minibufexplorer was toggled: -------------------------- | | | | | | | top | | | | | ---------------------NERD| | | | | btm | | | | | -------------------------- right now it seen like everything is ok, but when i press F2 again and minibufexplorer show up then the top window was resized: -------------------------- | minibufexplorer | | --------------------- | | top | | ---------------------NERD| | | | | | | | | | | btm | | | | | -------------------------- If there is no nerdtree window at the right, it will not resize. So how to stop resizing window when nerdtree is open? (btw: sorry, I can't upload pics cuz i only have 8 reputation.)
0
[ 2, 76, 31, 20, 263, 4875, 4236, 2345, 410, 6899, 7386, 106, 15, 184, 20, 747, 10719, 3335, 1463, 76, 25758, 8101, 25, 368, 800, 3726, 3726, 51, 13, 9, 1755, 79, 5453, 2697, 45, 13, 103, 15022, 13, 1, 8556, 2291, 1, 410, 165, 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...
Why Spring Context is loaded twice? === I have web project with Spring and Spring security. My web.xml: <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0" > <display-name>BillBoard </display-name> <session-config> <session-timeout> 30 </session-timeout> </session-config> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listener> <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:security-config.xml classpath:billboard-servlet.xml</param-value> </context-param> <servlet> <servlet-name>billboard</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:security-config.xml classpath:billboard-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>billboard</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> In server logs I see Spring context is loaded twice (spring bean initialization, database createtion...). At first time DispatcherServlet does it, and at the secont time ContextLoaderListener. How can I fix it?
0
[ 2, 483, 1573, 4141, 25, 8572, 2088, 60, 800, 3726, 3726, 31, 57, 2741, 669, 29, 1573, 17, 1573, 1221, 9, 51, 2741, 9, 396, 8184, 45, 13, 1, 14113, 8, 7753, 23504, 2172, 3726, 7, 21127, 6903, 1004, 1385, 9, 7843, 9, 960, 118, 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...
Cant get image size once the browser starts the first time === I have currently a problem with getting the width of an image once I start the Browser the first time. I get every time the value 0 instead the right width. If I start the Browser and refresh the page with f5, I get the correct value. How could I handle that Problem? Here my code part: $(document).ready( function () { ... function () { img = new Image(); img.onload = $(function() { if(img.width > size[0]) { size[0] = img.width; } if (i % 2 === 0) { $('#list1').append( $('<li id=item' + j + '>')); $('#item' + j).append(img); $('#item' + j).append( $('<li>').append(company).addClass('company') ); i = 1; } else { $('#list2').append( $('<li id=item' + j + '>')); $('#item' + j).append(img); $('#item' + j).append( $('<li>').append(company).addClass('company') ); i = 0; } j++; }); img.src = 'images/flags/medium/' + flag + '.png'; } `size[0]` is at the first start of the Browser `0`, after refresh it has the correct value. Why? Greetz.
0
[ 2, 2973, 164, 1961, 1072, 382, 14, 16495, 3244, 14, 64, 85, 800, 3726, 3726, 31, 57, 871, 21, 1448, 29, 1017, 14, 9456, 16, 40, 1961, 382, 31, 799, 14, 16495, 14, 64, 85, 9, 31, 164, 352, 85, 14, 1923, 713, 700, 14, 193, 945...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 detect a long press on a button/image in javadcript === I am working on a phonegap project. Can anyone help me out to solve my issue. I need to implement a long press event. How can we detect long press on a image/button using javascript? Thanks in advance Sree
0
[ 2, 184, 20, 9092, 21, 175, 901, 27, 21, 5167, 118, 22039, 19, 8247, 43, 28215, 38, 800, 3726, 3726, 31, 589, 638, 27, 21, 1132, 1136, 306, 669, 9, 92, 1276, 448, 55, 70, 20, 8402, 51, 1513, 9, 31, 376, 20, 8713, 21, 175, 901...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Plotting a 2d Array with mplot3d === I have a 2D numpy array and I want to plot it in 3D. I heard about mplot3d but I cant get to work properly :S It should plot my 2d array likes this: I have e.g. an array with the dimensions (256,1024). It should plot a 3D graph where the x axis is from 0 to 256 the y axis from 0 to 1024 and the z axis of the graph displays the value of of the array eg at [2,128]. Can anyone help me ?
0
[ 2, 22716, 21, 172, 43, 7718, 29, 4628, 5639, 240, 43, 800, 3726, 3726, 31, 57, 21, 172, 43, 13, 6336, 6448, 7718, 17, 31, 259, 20, 3798, 32, 19, 203, 43, 9, 31, 752, 88, 4628, 5639, 240, 43, 47, 31, 2973, 164, 20, 170, 7428,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending custom response from ESB === I have a string in a custom mediator in the inSequence . I want this string to be the final response from the esb . I want to sent this string back to the client as response.How can i do this?
0
[ 2, 4907, 5816, 1627, 37, 13, 160, 220, 800, 3726, 3726, 31, 57, 21, 3724, 19, 21, 5816, 941, 2153, 19, 14, 19, 29413, 13, 9, 31, 259, 48, 3724, 20, 44, 14, 426, 1627, 37, 14, 13, 160, 220, 13, 9, 31, 259, 20, 795, 48, 3724...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...