unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Edge detectors for RGB images? === I have implemented Sobel, Prewitt and Canny edge detectors for grayscale images. Do I apply the same operations to each channel for RGB images? Thanks
0
[ 2, 1407, 16255, 18, 26, 761, 11400, 3502, 60, 800, 3726, 3726, 31, 57, 6807, 86, 3512, 15, 782, 13098, 17, 92, 1536, 1407, 16255, 18, 26, 2030, 5093, 3502, 9, 107, 31, 5645, 14, 205, 1311, 20, 206, 1318, 26, 761, 11400, 3502, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I implement this? $example2.arctext({radius: 400, dir: -1}) === I want to put $example2.arctext({radius: 400, dir: -1}) into my index.html to recreate something like this http://tympanus.net/Development/Arctext/#sub4 on my site How the hell do I do that? :-)
0
[ 2, 184, 107, 31, 8713, 48, 60, 5579, 29041, 135, 9, 16260, 11969, 5, 1, 9560, 267, 45, 4353, 15, 13, 9035, 45, 13, 8, 165, 1, 6, 800, 3726, 3726, 31, 259, 20, 442, 5579, 29041, 135, 9, 16260, 11969, 5, 1, 9560, 267, 45, 4353...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
RegExp regular expression find & replace whole words only === I should preface this by stating that I'm working with VB6 & RegExp I'm attempting to find and substitute whole words, by "whole words" I mean a valid match is not a substring of another word, although some special characters will be ok. I'm a novice at regular expressions. This is what I was trying: ([^a-z]+)(Foo)([^a-z]+) It seems close but I'm having some trouble in certain situations. For example, if I find the string Foo Foo or Foo(Foo) or anywhere a line ends with Foo and the following line begins with Foo This is a line with Foo Foo starts the next line In any of these cases only the first Foo is matched. Well, maybe it isn't a problem with the match but rather my replace method. I don't know exactly how I can verify that. I'm using groups to replace whatever bounding char is matched by the expression, like so: regEX.Replace(source, "$1" & newstring & "$3") So in summary I want to avoid matching: FooBar BarFoo Any of the following would be valid matches: Foo Foo Foo Bar Foo_bar Foo.bar Foo, bar Foo(bar) Foo(Foo) (and any others where Foo is not concatenated with some other alpha-numeric string) If anyone can kindly show me the proper way to do this I would much appreciate it!
0
[ 2, 7953, 6899, 1290, 1803, 477, 279, 3934, 979, 715, 104, 800, 3726, 3726, 31, 378, 20910, 48, 34, 4177, 30, 31, 22, 79, 638, 29, 13, 20468, 379, 279, 7953, 6899, 31, 22, 79, 6314, 20, 477, 17, 6558, 979, 715, 15, 34, 13, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I use Grails Plugin classes outside a Grails project as a Jar dependency? === I have found some code in grails plugins that can be use outside grails. Is there a way to use the code from the plugin as a dependency in a groovy project other than creating two projects? For example I found the following project: https://github.com/jeffellis/grails-yammer-metrics Where they created some annotations for Groovy code that I would like to use outside a grails project.
0
[ 2, 92, 31, 275, 489, 7301, 18, 10922, 108, 2684, 719, 21, 489, 7301, 18, 669, 28, 21, 5112, 26835, 60, 800, 3726, 3726, 31, 57, 216, 109, 1797, 19, 489, 7301, 18, 10922, 108, 18, 30, 92, 44, 275, 719, 489, 7301, 18, 9, 25, 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...
Ntp on secondary/redundanct system does not sync time from primary === I have two systems One acts as Primary/Active and has Internet connection and gets time from NTP server. The second system is Secondary/Passive and has no connection to the external world. Primary and Secondary are connected on a private network interface eth1. Primary has IP 169.254.10.10 Subnet: 255.255.255.248 Broadcast: 169.254.10.15 Secondary has IP 169.254.10.11 Subnet: 255.255.255.248 Broadcast: 169.254.10.15 Primary has the following ntp.conf Configuration driftfile /var/lib/ntp/ntp.drift statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable server 91.189.94.4 restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery restrict 127.0.0.1 restrict ::1 restrict 169.254.10.0 mask 255.255.255.248 broadcast 169.254.10.15 disable auth broadcastclient I sync time on Secondary with only ntpdate and do not run ntpd daemon on Secondary. on Secondary i run ntpdate -b -t 4 -p 4 -u 169.254.10.10 (Primary Interface IP) And Ntpd server is running on Primary with the above said Configuration. The time on Secondary is not updated and throws error ntpdate[3636]: no server suitable for synchronization found Thanks Visu
0
[ 2, 13, 2877, 306, 27, 2277, 118, 2095, 17030, 6897, 38, 329, 630, 52, 6063, 150, 85, 37, 1256, 800, 3726, 3726, 31, 57, 81, 1242, 53, 3167, 28, 1256, 118, 7889, 17, 63, 2620, 2760, 17, 3049, 85, 37, 13, 2877, 306, 8128, 9, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to implement unique IDs across many tables === If you look at facebook's graph API, it seems as though all objects share the same ID space, and all Ids are unique even if they are in different tables. Is there a feature in MySQL that handles this? (if not, high level idea of how to implement?)
0
[ 2, 184, 20, 8713, 2619, 13, 9178, 464, 151, 7484, 800, 3726, 3726, 100, 42, 361, 35, 9090, 22, 18, 7210, 21, 2159, 15, 32, 2206, 28, 362, 65, 3916, 1891, 14, 205, 4924, 726, 15, 17, 65, 13, 9178, 50, 2619, 166, 100, 59, 50, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Return ArrayList or List? === I'm creating a library to be used by people but why should my method return a List instead of an ArrayList ? Because if the user know the real type is a ArrayList he will use the accessor [] in a loop instead of iterator but if he doesn't know he will use an iterator. Same question for LinkedList, if the return type is a List he won't be able to use the correct accessor Am I right ? Thanks
0
[ 2, 788, 7718, 5739, 54, 968, 60, 800, 3726, 3726, 31, 22, 79, 2936, 21, 1248, 20, 44, 147, 34, 148, 47, 483, 378, 51, 2109, 788, 21, 968, 700, 16, 40, 7718, 5739, 13, 60, 185, 100, 14, 4155, 143, 14, 683, 1001, 25, 21, 7718,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MATLAB - why does this index exceed the matrix dimensions? === Hi I have this code which keeps giving me a "index exceeds matrix dimensions" error. I am trying to start the loop for h=1, d= 1 for 24 "h" and 3 "d" with a value for the "battery_capacity" matrix =2, but this seems to contradict in terms of the matrix sizing. Any help is appreciated! Could the "h-1" be causing the problem. The error is on the second time the "battery_capacity" is written My code is for idx_number_panels = 1:length(number_panels) % range of PV panel units examined for number_turbines = 0:2 % range of wind turbine units examined for number_batteries = 1:50 % range of battery units examined for h=2:25 %# hours for d = 1:number_of_days %# which day battery_capacity(idx_number_panels, number_turbines+1 ,number_batteries, 1,1) = 2*number_batteries; %% Charging battery_charging(idx_number_panels, number_turbines+1 ,number_batteries, h,d) = hourly_surplus(idx_number_panels, number_turbines+1 ,number_batteries, h,d)... + battery_capacity(idx_number_panels, number_turbines+1 ,number_batteries, h-1,d);
0
[ 2, 4277, 9086, 13, 8, 483, 630, 48, 4348, 11976, 14, 8187, 9913, 60, 800, 3726, 3726, 4148, 31, 57, 48, 1797, 56, 8968, 1438, 55, 21, 13, 7, 25671, 11976, 18, 8187, 9913, 7, 7019, 9, 31, 589, 749, 20, 799, 14, 5293, 26, 746, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
haskell Couldn't match expected type `Maybe Text' with actual type `Text' === full code https://github.com/gertcuykens/haskell-design How can i lift Maybe from Maybe Text type application :: MVar ServerState -> WS.Request -> WS.WebSockets WS.Hybi10 () application state rq = do WS.acceptRequest rq WS.getVersion >>= liftIO . putStrLn . ("Client version: " ++) sink <- WS.getSink msg <- WS.receiveData clients <- liftIO $ readMVar state url <- liftIO fbUrl let prefix = "Facebook code" let code = T.drop (T.length prefix) msg let a = ("code",T.unpack code) e <- liftIO $ fbEmail $ (\(x,y) -> (C.pack x, C.pack y)) a let client = (e, sink) --ERROR case msg of _ | not (prefix `T.isPrefixOf` msg) -> do WS.sendTextData ("Facebook login " `mappend` url :: Text) | any ($ fst client) [T.null, T.any isPunctuation, T.any isSpace] -> WS.sendTextData ("Facbook code invalid" :: Text) | clientExists client clients -> WS.sendTextData ("User already exists" :: Text) | otherwise -> do liftIO $ modifyMVar_ state $ \s -> do let s' = addClient client s WS.sendSink sink $ WS.textData $ "Welcome! Users: " `mappend` T.intercalate ", " (map fst s) broadcast (fst client `mappend` " joined") s' return s' talk state client Couldn't match expected type `Maybe Text' with actual type `Text' Expected type: Maybe Text -> Bool Actual type: Text -> Bool In the expression: T.null In the second argument of `any', namely `[T.null, T.any isPunctuation, T.any isSpace]'
1
[ 2, 63, 16507, 711, 22, 38, 730, 1727, 1001, 13, 1, 5138, 1854, 22, 29, 3463, 1001, 13, 1, 11969, 22, 800, 3726, 3726, 503, 1797, 7775, 18, 6903, 10404, 20926, 9, 960, 118, 1674, 38, 3987, 93, 2853, 18, 118, 6482, 16507, 8, 19862...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Uniform text scaling in a metro style XAML ScrollViewer === I've been trying to get something working in a windows 8 metro style application, and I just can't get the right properties for it to work. Here's what I want to happen: I've got a ScrollViewer containing a StackPanel. RichTextBoxes are added to the stack panel (streaming text data from a server). It works like a console, effectively. So my layout roughly looks like this: <ScrollViewer> <StackPanel x:Name="outputStackPanel"/> </ScrollViewer> My desired behavior is this: I want the text to scale uniformly in the horizontal direction for the screen size, and then scroll vertically in the ScrollViewer. That is to say, the font I am using is a fixed width font, and no matter what the screen size is, I want the same number of ascii characters to appear. In addition, I have an option in the app to wrap text or not to wrap text to the screen. This means, when the text is wrapping, it should wrap to the fixed screen width, but when it is not, the ScrollViewer should be scrollable horizontally, but at any point roughly the same number of characters should be visible horizontally while scrolling. I've tried a couple of methods to do this, and none of them have been successful. I've tried adding a ViewBox, like so: <ScrollViewer> <Viewbox Stretch="UniformToFill" StretchDirection="UpOnly"> <StackPanel x:Name="outputStackPanel" /> </ViewBox> </ScrollViewer> While this seems to work in terms of getting the text to appear at the right size, it doesn't allow the text to wrap when text wrapping is on. The content is simply cut off on the right side. My current workaround is to check the screen resolution and make a rough estimate for the font-size to get it to display correctly, but this is not ideal because it's not exact, so different resolutions get vastly different numbers of visible characters, and for the purposes of this application the number of visible characters is significant.
0
[ 2, 4347, 1854, 26829, 19, 21, 3986, 1034, 13, 6791, 8184, 12159, 4725, 106, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 164, 301, 638, 19, 21, 1936, 469, 3986, 1034, 3010, 15, 17, 31, 114, 92, 22, 38, 164, 14, 193, 3704, 26, 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...
Javascript: What text typing effect library do you use? === I want typing effect in javascript, like this: [Typing Text Animation Tutorial Timed Loops and Array Programming Using Javascript][1] What library do you recommend to use? Always define type() and use setTimeout()? I want to use this in apache cordova(phonegap). [1]: http://www.developphp.com/view.php?tid=1131
0
[ 2, 8247, 8741, 45, 98, 1854, 25266, 1590, 1248, 107, 42, 275, 60, 800, 3726, 3726, 31, 259, 25266, 1590, 19, 8247, 8741, 15, 101, 48, 45, 636, 1084, 3181, 1854, 6236, 29724, 85, 43, 19661, 17, 7718, 3143, 568, 8247, 8741, 500, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery .hide() function not firing straight away in chrome and Internet explorer. works fine in firefox === I have a page that has a form once the user submits the form I want the button to disappear and a div with a spinner gif and a validating now message to appear so I have: function submit_application(input){ $('#create_account_button').hide(); $('#create_account_validating').show(); var form = $(input).parents('form:first'); var form_id = ($(form).attr('id')); var valid = validate_form(form_id); if(valid){ $('#'+form_id).submit(); } } and on my form submit button I have : onclick="submit_application(this);return false" validate_form loops through each of the inputs and validates syntax etc. It takes a couple of seconds to do because there are ajax calls to the server made to validate certain fields, hence the need for the 'validating now' div with the spinner gif It all works fine in Firefox, but in Internet explorer and chrome the button never seems to disappear Ive done some trouble shooting and realised that whats happening is those browsers validate the form BEFORE hiding and showing the relevant divs.. strange behaviour, any ideas?
0
[ 2, 487, 8190, 93, 13, 9, 19522, 5, 6, 1990, 52, 7139, 1599, 229, 19, 13, 12985, 17, 2620, 8520, 9, 693, 1123, 19, 535, 18219, 800, 3726, 3726, 31, 57, 21, 2478, 30, 63, 21, 505, 382, 14, 4155, 12298, 18, 14, 505, 31, 259, 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...
IIS web.config redirects === I have two redirects that I am looking to perform. The first will redirect form a sub folder to a new domain > http://www.mysite.com/subfolder to http://www.subfolder.com The second redirects from a sub folder on one site to a sub folder on another > http://www.site1.com/subfolder to http://www.site2.com/subfolder In both cases I need any page names after to stay the same so the following would occur > http://www.mysite.com/subfolder/mypage.html to > http://www.subfolder.com/mypage.html > > > > http://www.site1.com/subfolder/mypage.html to > http://www.site2.com/subfolder/mypage.html Thanks
0
[ 2, 595, 18, 2741, 9, 14093, 2816, 302, 14706, 18, 800, 3726, 3726, 31, 57, 81, 302, 14706, 18, 30, 31, 589, 699, 20, 2985, 9, 14, 64, 129, 302, 14706, 505, 21, 972, 19294, 20, 21, 78, 4603, 13, 1, 7775, 6903, 6483, 9, 915, 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 find x and y coordinates of GeoPoint in android === How can we change the GeoPoint in android map view to Points x and y.I did not find any code regarding this.Please tell me
0
[ 2, 184, 20, 477, 993, 17, 13, 93, 13714, 16, 6389, 3132, 19, 13005, 800, 3726, 3726, 184, 92, 95, 753, 14, 6389, 3132, 19, 13005, 2942, 1418, 20, 819, 993, 17, 13, 93, 9, 49, 144, 52, 477, 186, 1797, 3467, 48, 9, 6744, 494, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Sublime Text 2 : colour of edited file tab? === I see that the Sublime Text theme (.config/sublime-text-2/Packages/Theme - Default/Default.sublime-theme) can be edited to make the open tab more obvious. For that I use { "class": "tab_control", "attributes": ["selected", "file_medium_dark"], "tint_modifier": [0, 255, 0, 32] /* ... */ }, which makes the tab greener. Is there a similar method for colouring the tab of an edited (unsaved) file/buffer? Thanks.
0
[ 2, 27644, 1854, 172, 13, 45, 4609, 16, 4802, 3893, 6523, 60, 800, 3726, 3726, 31, 196, 30, 14, 27644, 1854, 3184, 13, 5, 9, 14093, 2816, 118, 7563, 8585, 62, 8, 11969, 8, 9298, 8573, 14465, 118, 124, 790, 13, 8, 12838, 118, 1386...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Fax via ColdFusion & VBScript Windows Server 2008 === This is related to a [previous thread I started][1], but it deals with a method that actually works. I have created a VBScript that ColdFusion executes and sends a fax to a specific number. The following is the VBScript I wrote, taken from a Microsoft TechNet Site: Set objFaxDocument = WScript.CreateObject("FAXCOMEX.FaxDocument") Set objFaxServer = WScript.CreateObject("FAXCOMEX.FaxServer") Dim JobID objFaxServer.Connect("") objFaxDocument.Body = "C:\*PATHNAME*\testfax.pdf" CheckError("objFaxDocument.Body") objFaxDocument.DocumentName = "My First Fax" objFaxDocument.Priority = "2" objFaxDocument.Recipients.Add("8885551212") objFaxDocument.AttachFaxToReceipt = True objFaxDocument.CoverPageType = "1" objFaxDocument.CoverPage = "generic" objFaxDocument.Note = "Here is the info you requested" objFaxDocument.ReceiptAddress = "test@test.com" objFaxDocument.Subject = "Today's fax" objFaxDocument.Sender.Title = "Mr." objFaxDocument.Sender.Name = "Test Man" objFaxDocument.Sender.City = "Test City" objFaxDocument.Sender.State = "FL" objFaxDocument.Sender.Company = "Test Company" objFaxDocument.Sender.Country = "USA" objFaxDocument.Sender.Email = "test@test.com" JobID = objFaxDocument.ConnectedSubmit(objFaxServer) MsgBox("The Job ID is :" & JobID(0)) objFaxServer.Disconnect() The following is the ColdFusion code I use to execute this vbscript: <cfexecute name="C:\Windows\System32\cscript.exe" arguments="C:\*SCRIPTPATH*\test.vbs"> </cfexecute> On a machine that has Windows Server 2003, this successfully sent the document to the Windows Fax Service application, and stored the fax correctly in the outbox. However, when I attempted this on Windows Server 2008, it does not work. It should be noted that while the same version of ColdFusion (8) is being used, the 2008 machine is 64-bit while the 2003 is 32-bit. This may have been answered elsewhere (if so please guide me) but I have had the hardest time with this and there are not many successful solutions out there for me to find. I know I'm missing something but I don't know what. Can anybody help? [1]: http://stackoverflow.com/questions/10590534/faxserver-alternative-for-windows-server-2008
0
[ 2, 4907, 13, 18947, 1197, 1191, 9818, 279, 13, 20468, 8741, 1936, 8128, 570, 800, 3726, 3726, 48, 25, 1597, 20, 21, 636, 3515, 1755, 1291, 9322, 31, 373, 500, 2558, 165, 500, 15, 47, 32, 10342, 29, 21, 2109, 30, 1121, 693, 9, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using jQuery animate to have a div slide down from center? === Since regular jQuery animations are not fluent on iOS (`.hide()`, `slideDown()`), I'm attempting to turn my shorthand `.fade()` and `.slideDown()` functions into the longhand `.animate()` functions, so I can then use [jQuery.Animate][1] plugin to convert these animations to CSS3, while mainiting a jQuery fallback. I think fading a div using this method should be easy, but attempting to have a div slide down from the center is giving me a headache. The normal CSS for the div is... .zip{ width:130px; height:70px; left:50%; top:50%; margin-top:-46px; margin-left:-76px; position: absolute; text-align: center; z-index: 2; background:rgba(0,155,23,.8) url(overlay.png); border-radius: 10px; padding:10px; border:1px solid #fff; box-shadow:0 0 40px #000; } And then I was using the following to delay, then have the div slide down... $(".zip").delay(1000).slideDown(200); This works fine, obviously, but it won't be picked up by the plugin. **So, how could I turn that into a function using `.animate()`?** My attempt: CSS... .zip{ display:none; height:0; padding:0; /* Plus everything else */ } jQuery... $('.zip').delay(1000).animate({ display: "block", height: "70px", padding: "10px", }); Except this is sliding down from the lefthand corner, not the middle. **Also**, maybe I'm doing this completely wrong, and there's a much better way to use the CSS3 accelerated transitions on iOS devices while still providing a jQuery fallback, in which case, please share! [1]: http://playground.benbarnett.net/jquery-animate-enhanced/
0
[ 2, 568, 487, 8190, 93, 14487, 591, 20, 57, 21, 13, 12916, 6464, 125, 37, 459, 60, 800, 3726, 3726, 179, 1290, 487, 8190, 93, 6236, 18, 50, 52, 19252, 27, 13, 7760, 13, 5, 1, 9, 19522, 5, 6, 1, 15, 13, 1, 18, 1210, 546, 296...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 use the the swfobject.js youtube object inside of WordPress === I need to use the extra powers of the swfobject api. This object is a new way of embedding Youtube videos into web sites. Pasting code that I found from Google's tutorial directly into the WordPress editor was in-effective. WordPress would not treat this as active code. So, I created a new template file and inserted my code into that file. This worked relatively well. The code went live and I got the extra feature that I was looking for, which was that I am able to have the visuals of the video autoplay, and to have the sound muted by default. However, this has messed up the layout and flow of my menus which where just above the video. Can anyone tell me where to proper place to put this code is, or is this question too specific. If it will help you can see the messed up page at: http://bestoftimesusa.com/home-mute-test/ and how it is supposed to look at: http://bestoftimesusa.com The fully functional code that got embedded is this: <div id="dgoHomeZone1"> <div class="HomeTopVid"> <script type="text/javascript" src="/wp-includes/js/swfobject/swfobject.js"></script> <div id="ytapiplayer"> You need Flash player 8+ and JavaScript enabled to view this video. </div> <script type="text/javascript"> var ytplayer = false; var params = { allowScriptAccess: "always" }; var atts = { id: "myytplayer" }; swfobject.embedSWF("http://www.youtube.com/v/IBjstQceGBk?enablejsapi=1&playerapiid=ytplayer&version=3&autoplay=1", "ytapiplayer", "370", "238", "8", null, null, params, atts); function onYouTubePlayerReady(playerId) { ytplayer = document.getElementById("myytplayer"); ytplayer.mute(); } </script> </div>
0
[ 2, 749, 20, 275, 14, 14, 13, 18, 15263, 23793, 9, 728, 18, 7330, 3095, 572, 16, 833, 5890, 800, 3726, 3726, 31, 376, 20, 275, 14, 2230, 2737, 16, 14, 13, 18, 15263, 23793, 21, 2159, 9, 48, 3095, 25, 21, 78, 161, 16, 11911, 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...
Babel daemon mesh network === I have a mesh network set up with two Pandaboards (running Ubuntu 12.04) set up as access points connected to each other with a switch. There is a client node connected to each access point. I am able to run babel and ahcp with these commands: "sudo babeld -D wlan0 sudo ahcpd -D wlan0" This allows me to ping the other access point, i.e. Client 1 is connected to AP 1 and can ping AP 2. However, I am unable to ping Client 2 with Client 1. I even wrote a couple UDP scripts in Python (for my Windows Client 1) and Java (for my Android Client 2) and they work on the same access point but not across my mesh network. My babeld.conf file is currently empty. How should I configure it to route across the network?
0
[ 2, 11337, 255, 13127, 55, 1635, 982, 800, 3726, 3726, 31, 57, 21, 55, 1635, 982, 309, 71, 29, 81, 16982, 2806, 18, 13, 5, 11325, 287, 12968, 2473, 390, 9, 3277, 6, 309, 71, 28, 1381, 819, 2587, 20, 206, 89, 29, 21, 5521, 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...
MySQL: Get the max values for specified name === I have a table sometable: name | math | history | status ----------------------------- jon | 80 | 90 | 1 alex | 90 | 70 | 1 alex | 87 | 80 | 1 jon | 78 | 80 | 0 alex | 90 | 60 | 1 jon | 30 | 100 | 0 emile| 99 | 89 | 0 what i want to do is get a row that name=alex, status=1 and have the maximal value for math, and then history for rows that satisfied. So the result will be alex | 90 | 70 | 1 I try code like: select * from sometable where (name=$name and status=1) order by math DESC, history DESC I got what i expect, since i can get the first row only of mysql_fetch_array. But imagine how much the row in mysql_fetch array. Yes, my code isnt false, but it is not enough "sophisticated" since it fetch many rows,Can anybody give a solution? Thanks. ^^
0
[ 2, 51, 18, 22402, 45, 164, 14, 2049, 4070, 26, 9931, 204, 800, 3726, 3726, 31, 57, 21, 859, 109, 5924, 45, 204, 13, 1, 5057, 13, 1, 447, 13, 1, 1782, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 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...
How read Doctype of XML file === I have file config.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE app SYSTEM "text.dtd"> <app> <appname>NTTDK</appname> <version>1</version> </app> file text.dtd <!ELEMENT app(appname,version)> <!ELEMENT appname(#PCDATA)> <!ELEMENT version(#PCDATA)> I want to read info of file text.dtd in android. Can you help me this problem? Thanks!
0
[ 2, 184, 1302, 9765, 4474, 16, 23504, 3893, 800, 3726, 3726, 31, 57, 3893, 13, 14093, 2816, 9, 396, 8184, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19608, 3726, 7, 1982, 410, 8, 457, 7, 60, 1, 13, 1, 187, 13799, 447...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to find conflict between DTO and POJO? === I have seen many questions with answers which aren't helpful like http://stackoverflow.com/questions/1425302/what-is-the-difference-between-pojo-and-dto http://stackoverflow.com/questions/7650616/how-to-map-persistent-objects-to-dto The problem is in my project we have POJO's to map database(Oracle) and DTO's to transfer the data from business pattern(Action class) to persistent(DAO). In DAO the following code is Available Users u = new Users(); u.setUsername(udto.getUsername()); u.setPassword(udto.getPassword()); u.setEmail(udto.getEmail()); u.setDob(udto.getDob()); u.setGender(udto.getGender()); u.setFname(udto.getFname()); u.setLname(udto.getLname()); u.setAcctype(udto.getAcctype()); Here Users is a POJO class and udto is a DTO object(Which are same with fields and properties) so whats my question is why can't i use POJO to map business pattern(Action class) to DAO..why there is a need of DTO. Please answer me, i am new to this stuff (Talking about JAVA)
0
[ 2, 2343, 20, 477, 2930, 128, 13, 43, 262, 17, 2353, 1636, 60, 800, 3726, 3726, 31, 57, 541, 151, 2346, 29, 6709, 56, 4847, 22, 38, 15600, 101, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 11698, 22699, 22863, 118, 608, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Year, Month, and Day parameters describe an un-representable DateTime Exception === I'm adding an object to a list within an ASP.NET MVC 3 application using the following code but one of the properties of the object is giving me difficulties. ls.Add(new UserRoleModel { UserRoleId = 1, UserName = "Paul", InsertDate = new DateTime(05, 24, 2012),InsertProgram="sqlplus",InsertUser="sp22",Role="Implementation Co-corindator"}); This builds but when I go to the relevant page i get an Exception with the following type: Exception Details: System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime. I've tried removing the 0 in the month but I get the same exception.
0
[ 2, 159, 15, 1617, 15, 17, 208, 12905, 4996, 40, 367, 8, 99, 3914, 579, 1231, 891, 5391, 800, 3726, 3726, 31, 22, 79, 4721, 40, 3095, 20, 21, 968, 363, 40, 28, 306, 9, 2328, 307, 8990, 203, 3010, 568, 14, 249, 1797, 47, 53, 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...
Change css to extend the content === Int he following css how to make the div wrapper to occupy the full screen and not only in the center body { margin:0px; padding:0px; background:#71726e; } div, p, span, a, h1, h2, h3, h4, h5, h6, form { margin:0px; padding:0px; } .wrapper { margin:0px auto; padding:0px; overflow:hidden; width:951px; background:url(../images/mid-shadow.jpg) repeat left top; } left-gap1 { margin: 0px ; padding:0px; font-size:0px; line-height:0px; width:6px; float:left; } .right-gap1 { margin:0px; padding:0px; font-size:0px; line-height:0px; width:6px; float:left; } .main { margin:0px; padding:0px; width:939px; float:left; } .header { margin:0px; padding:0px; width:939px; float:left; } .nav-area { margin:0px; padding:0px; width:939px; height:54px; float:left; background:#000000; }
0
[ 2, 753, 272, 18, 18, 20, 7206, 14, 2331, 800, 3726, 3726, 19, 38, 24, 249, 272, 18, 18, 184, 20, 233, 14, 13, 12916, 28051, 20, 12290, 14, 503, 2324, 17, 52, 104, 19, 14, 459, 358, 13, 1, 5440, 45, 387, 306, 396, 73, 4432, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 are the caveats of having a global event bus? === Is it a bad design to have a global event bus in your application?<br/> How to make sure you don't end up with a tightly coupled set of components talking to each other all over the application?<br/> Can you think of a mechanism/tools/library in Java world to enforce some discipline on it?<br/>
0
[ 2, 98, 50, 14, 3542, 721, 18, 16, 452, 21, 2062, 807, 1683, 60, 800, 3726, 3726, 25, 32, 21, 896, 704, 20, 57, 21, 2062, 807, 1683, 19, 154, 3010, 60, 1, 5145, 118, 1, 184, 20, 233, 562, 42, 221, 22, 38, 241, 71, 29, 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...
ExtJS chart font bug on IE8 === Hello I have problem with charts on IE8 This is how it looks on every browser ![enter image description here][1] And that is how it looks like on IE8 ![enter image description here][2] I will appreciate some help for fixing this. Thanks [1]: http://i.stack.imgur.com/VYek2.png [2]: http://i.stack.imgur.com/nU5pQ.png
0
[ 2, 1396, 38, 728, 18, 1795, 9978, 6256, 27, 13, 660, 457, 800, 3726, 3726, 10975, 31, 57, 1448, 29, 5158, 27, 13, 660, 457, 48, 25, 184, 32, 1879, 27, 352, 16495, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500, 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 insert hexBinary data to subjectAltName in OpenSSL === I need my certificate's subjectAltName to have hexBinary data (binary contents coded in hexadecimal). Example: 3f3c6d78206c657673726f693d6e3122302e20226e656f636964676e223d54552d4622383e3f. How should I be able to insert it to CSR's X509V3 Subject Alternative Name (in RID, othername, other)?
0
[ 2, 184, 20, 14692, 24, 396, 4772, 1857, 1054, 20, 1550, 192, 38, 7259, 19, 8965, 18, 255, 800, 3726, 3726, 31, 376, 51, 6259, 22, 18, 1550, 192, 38, 7259, 20, 57, 24, 396, 4772, 1857, 1054, 13, 5, 4772, 1857, 8478, 13, 22254, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
asmx web service, jquery probelm === Web service: [System.Web.Script.Services.ScriptService] public class DataWebService : System.Web.Services.WebService { [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string GetDateTime() { JavaScriptSerializer js = new JavaScriptSerializer(); string date = DateTime.Now.ToString(); return js.Serialize(date); } [WebMethod] public string HelloWorld() { return DateTime.Now.ToString(); } } Testing GetDateTime with HTTP POST, invoke: <string xmlns="http://tempuri.org/">"24.07.2012 10:03:07"</string> Have seen some tutorials that this should work even if its not showing JSON. HTML, JS(jquery) code: $(document).ready(function(){ $("#Button1").click(function() { $.ajax({ type: "POST", url: "/DataWebService.asmx/GetDateTime", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { alert("Success"); $("#output").text(msg.d); }, error: function (msg) { alert("Error"); $("#output").text(msg.d); } }); }); }); </script> </head> <body> <form id="form1" runat="server"> <input id="Button1" type="button" value="Get Date and Time!" /> <br /> <br /> <span id="output" /> </form> When i hit button, i only get the "Error" in alert box.. Its ok to just run the .html doc in browser to test? Cant find out whats wrong..
0
[ 2, 28, 79, 396, 2741, 365, 15, 487, 8190, 93, 13044, 10363, 800, 3726, 3726, 2741, 365, 45, 636, 10724, 9, 14113, 9, 8741, 9, 11449, 18, 9, 8741, 11449, 500, 317, 718, 1054, 14113, 11449, 13, 45, 329, 9, 14113, 9, 11449, 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...
Adobe Flex: outerDocument won't work for component accessing parent data === I have a list that works successfully within my flex app, but I want to move it into a pop-up window that's defined as a component within my <fx:Declaration> tags. Everything else inside this component works and in my parent app I can set the text fields for this component, but the list just will not work. When inside the parent the data provider code looks like this: `<s:AsyncListView list="{getCommentResult.lastResult}"/>` and this works. I thought i'd need to use outerDocument because I was getting an error because it would not recognise the result, so within the component the code is changed to: `<s:AsyncListView list="{outerDocument.getCommentResult.lastResult}"/>` and it will not work. I get no errors at compile or run time and this is very frustrating because it works when its in a different location, but not here. It's got to be something very small because it all works, except that the list cannot access my result. Any ideas?
0
[ 2, 20299, 14409, 45, 4896, 28132, 230, 22, 38, 170, 26, 5912, 1381, 68, 4766, 1054, 800, 3726, 3726, 31, 57, 21, 968, 30, 693, 3673, 363, 51, 14409, 4865, 15, 47, 31, 259, 20, 780, 32, 77, 21, 1675, 8, 576, 1463, 30, 22, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is this MVC structure implementation reliable or can lead to some leaks in future? (with schematic photo) === All the description needed it's into into image ([bigger here][2]) Some notes: - Sometimes the view has some logic regarding to it's visual things - The configuration (top white box) inits the ModelManager (singleton). Then the ComponentFactory it's configured to inject into the components models and other stuff needed (DI). - Instantiation: var component = project.ComponentFactory.getInstance().instance('lists.WorkersList') - Putting it on screen (being into a view) componentView = component.getView(); this.add(componentView) - In this case the view touches the ComponentFactory and initializates the component Questions: - Is this architecture bad or could leak in future? - In order to instance a new Component within another component: it's better to put it into the view or the component (controller)? I was thinking about and both are ok: in the view because it's the view that manages it's position and the view itself could be used as a interface to the sub-component. In the component because the sub-components might requires some data from the component, but this could be easily passed to the view, but I have some concerns about doing this. (this project uses qooxdoo) ![MVC implmentation][1] [1]: http://i.stack.imgur.com/yhj29.jpg [2]: http://img515.imageshack.us/img515/9866/mvcstructure.jpg
0
[ 2, 25, 48, 307, 8990, 1411, 6123, 11398, 54, 92, 672, 20, 109, 11724, 18, 19, 1022, 60, 13, 5, 1410, 23874, 1786, 3056, 6, 800, 3726, 3726, 65, 14, 5318, 851, 32, 22, 18, 77, 77, 1961, 13, 5, 2558, 6407, 1674, 235, 500, 2558, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Copy rows from multiple worksheets based on number value === I have a multiple sales worksheets where the salesmen put among other things, their confidence level for a certain sale. I have just started learning VBA, so I am not clueless but I have to admit this is over my head. If a row has a confidence level over 60%, I want the entire row copied to a new worksheet. The data begins on row 8 and the confidence percentage column is column V. There are a total of 9 worksheets I want the VBA script to be applied to, they are named: Jeff John Tim Pete Chad Bob Kevin Mike Bill **I want all the rows with a confidence level over 60% copied over to a master or "Install" sheet, beginning once again on row 8. I want to run the script by a button on the "Install" sheet.** Here is a picture of what I am working with: http://i.stack.imgur.com/ft9dp.jpg Any help is appreciated. Thanks in advance! Matt
0
[ 2, 4344, 11295, 37, 1886, 170, 17627, 18, 432, 27, 234, 1923, 800, 3726, 3726, 31, 57, 21, 1886, 2598, 170, 17627, 18, 113, 14, 2598, 755, 442, 497, 89, 564, 15, 66, 6548, 662, 26, 21, 1200, 3299, 9, 31, 57, 114, 373, 2477, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
launch internal browser with the given url in eclipse === I open a internal web browser in eclipse plugin application from my perspective.Now i want a given url to be displayed in the internal web browser
0
[ 2, 3394, 3117, 16495, 29, 14, 504, 287, 6362, 19, 11652, 800, 3726, 3726, 31, 368, 21, 3117, 2741, 16495, 19, 11652, 10922, 108, 3010, 37, 51, 6531, 9, 1387, 31, 259, 21, 504, 287, 6362, 20, 44, 6115, 19, 14, 3117, 2741, 16495, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Need to load UIViewController from appdelegate and hide UITabBarController when loaded in Storyboard App === I have an app, in that app if its the first time the user has run the app I need to display a welcome screen and then present some 1st time only setup information for the app. I think the best place to put this is in the appdelegate (didFinishLaunchingWithOptions), maybe need correction if wrong. In the app delegate I call this method: -(void) checkSetupOccured { NSString *filePath = [self dataFilePath]; if (![[NSFileManager defaultManager] fileExistsAtPath:filePath]) { //File doesn't exist, first time ran or installed UITabBarController *MyTabViewController = (UITabBarController *)self.window.rootViewController; [MyTabViewController setSelectedIndex:3]; WelcomeHomeViewController *welcomeHomeViewController = [[MyTabViewController viewControllers] objectAtIndex:3]; [welcomeHomeViewController viewDidLoad]; //Need help here I think - Anyway to hide MyTabViewController when its presented? } } I have been through a lot of threads and the things that keeps popping up are: //[MyTabViewController presentModalViewController:WelcomeHomeViewController animated:YES]; //self.navigationController.navigationBarHidden = YES; //[self setHidesBottomBarWhenPushed:YES]; I have tried many different places with these and probably just need to step back and relax but I can't find the solution right now. Also to note **this is not in an UITableView**. Any help would be greatly appreciated and I always mark my questions answered when answered.
0
[ 2, 376, 20, 6305, 13, 5661, 4725, 12898, 1252, 37, 4865, 24249, 3322, 17, 3077, 13, 11193, 13100, 139, 12898, 1252, 76, 8572, 19, 609, 2806, 4865, 800, 3726, 3726, 31, 57, 40, 4865, 15, 19, 30, 4865, 100, 82, 14, 64, 85, 14, 415...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 stops working when adding link === I am learning JQuery and was working with JQuery script which slides text through pictures: <script> $(document).ready(function() { var currentImg = 1, totalImages = 4 loopTime = 1000, intervalId = null; function displayTitle(imgNbr) { $('.title').hide(); $('#image'+imgNbr).prev('div').show(); } $('img').on('mouseover', function() { clearInterval(intervalId); displayTitle($(this).parent().attr('id').substring(5)); }).on('mouseout', function() { currentImg = $(this).parent().attr('id').substring(5); startLoop(); }) function startLoop() { intervalId = setInterval(function() { displayTitle(currentImg); currentImg = ((currentImg == totalImages) ? 1 : parseInt(currentImg)+1); }, loopTime); } startLoop(); }); </script> But when I try to add [a href="#"] tag between [div] and image tags it stops working. Could you please help me to fix it. Thanks. <div class="imgcontainer"> <div class="title">title 1</div> <div class="img" id="image1"><a href="#"><img src="images/image1.jpg" /></a></div> </div> <div class="imgcontainer"> <div class="title">title 2</div> <div class="img" id="image2"><a href="#"><img src="images/image2.jpg" /></a></div> </div> <div class="imgcontainer"> <div class="title">title 3</div> <div class="img" id="image3"><a href="#"><img src="images/image3.jpg" /></a></div> </div>
0
[ 2, 487, 8190, 93, 6604, 638, 76, 4721, 3508, 800, 3726, 3726, 31, 589, 2477, 487, 8190, 93, 17, 23, 638, 29, 487, 8190, 93, 3884, 56, 18066, 1854, 120, 3104, 45, 13, 1, 8741, 1, 5579, 5, 28132, 6, 9, 15193, 5, 22359, 5, 6, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
AndEngine gles2 Physics === So, I tried to copy and paste a physics example in the andendgine example package. No errors appeared but when I run it the emulator says "Unfortunately PhysicsActivity has stopped". The emulator is on API 15, gpu is on, magnetic field support and accelerometer is also on. Here are the codes. http://pastebin.com/pQFm4tcP
0
[ 2, 17, 16847, 13, 4875, 18, 135, 4339, 800, 3726, 3726, 86, 15, 31, 794, 20, 4344, 17, 640, 62, 21, 4339, 823, 19, 14, 17, 2451, 22131, 823, 6030, 9, 90, 11908, 682, 47, 76, 31, 485, 32, 14, 3579, 14868, 898, 13, 7, 1020, 64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
when moving the mouse around why won't windows form cursor current type change === In a wpf application I want to be able to detect when the default cursor becomes the Ibeam cursor. System.Windows.Forms.Cursor.Current.Equals(System.Windows.Forms.Cursors.IBeam) However the Cursor.Current is always equal to default even when I move my mouse over a text area. I was wondering if there was a way to detect a change in type of cursor.
0
[ 2, 76, 1219, 14, 7567, 140, 483, 230, 22, 38, 1936, 505, 29588, 866, 1001, 753, 800, 3726, 3726, 19, 21, 619, 7721, 3010, 31, 259, 20, 44, 777, 20, 9092, 76, 14, 12838, 29588, 2633, 14, 31, 17869, 29588, 9, 329, 9, 27508, 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...
Can I use a "CC-BY" licensed 3D model in my commercial IPhone app? === I'm working on an iphone game these days, since I am not good at 3D modeling, I download some useful "CC-BY" licensed 3D model from blendswap.com. I have rendered them into some 2D sprites form and use these sprites in my gmme. Is this legal? If this is legal, how should I "credit" the model's original author in my game? Should I add a "About"/"Credit" button on the game's main menu?
0
[ 2, 92, 31, 275, 21, 13, 7, 3384, 8, 779, 7, 6392, 203, 43, 1061, 19, 51, 1439, 21024, 4865, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 40, 21024, 250, 158, 509, 15, 179, 31, 589, 52, 254, 35, 203, 43, 12807, 15, 31, 7121, 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...
Rails 3 with Grape issue === I've been following this post http://martinciu.com/2011/01/mounting-grape-api-inside-rails-application.html I put the module into the lib directory and added the line to _routes.rb_ like shown When I do rails s I get an error, saying uninitialized constant MyApp (NameError) What's missing? Do I need to put the module some place else? Or let rails know somehow where it is?
0
[ 2, 2240, 18, 203, 29, 12940, 1513, 800, 3726, 3726, 31, 22, 195, 74, 249, 48, 678, 7775, 6903, 17067, 1892, 291, 9, 960, 118, 3097, 118, 3026, 118, 9780, 68, 8, 4973, 1664, 8, 2552, 49, 8, 108, 1416, 8, 7301, 18, 8, 2552, 2066...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VertexBuffer.GetData() and Silverlight 5 === I am trying to achieve 3d model collision in silverlight 5. To do that I am creating a BoundingBox (just like in XNA4.0): public BoundingBox GetBoundingBoxFromModel(Model model) { BoundingBox boundingBox = new BoundingBox(); foreach (ModelMeshPart part in model.Meshes[0].MeshParts) { VertexPositionNormalTexture[] vertices = new VertexPositionNormalTexture[part.NumVertices]; Vector3[] vertexs = new Vector3[vertices.Length]; part.VertexBuffer.GetData<VertexPositionNormalTexture>(vertices); for (int index = 0; index < vertexs.Length; index++) { vertexs[index] = vertices[index].Position; } boundingBox = BoundingBox.CreateMerged(boundingBox, BoundingBox.CreateFromPoints(vertexs)); } return boundingBox; } The problem is that Silverlight 5 does not have a method of GetData() connected to VertexBuffer in XNA4. How can one achieve the same result? Cheers, Sheepstorm
0
[ 2, 22895, 2345, 6866, 9, 3060, 18768, 5, 6, 17, 1172, 3130, 331, 800, 3726, 3726, 31, 589, 749, 20, 4689, 203, 43, 1061, 11319, 19, 1172, 3130, 331, 9, 20, 107, 30, 31, 589, 2936, 21, 4138, 68, 5309, 13, 5, 2759, 101, 19, 993,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
insertAfter with Load , div element disappear === I have a main div on two pages ie `page1.php` and `form.php` page1.php ---- <div class="main_div"> <?php require('form.php'); ?> </div> <script> $(".add_one").click(function(){ $(".main_div").insertAfter(".single_div").load('form.php'); }); </script> form.php --- <div class="single_div"> <table> <tr> <td><input type="text" class="text1" /></td> <td><input type="button" class="add_one" value="Add" /></td> <td>Some other fields too</td> </tr> </table> </div> css.css --- .single_div { background-color: green; float: left; margin-left: 10px; } Now when i click on `Add` button, its not adding other `form` / `div class='single_class'` next to it... but it disappers And when i check with `inspect element` of `Chrome Developer Tool`, theres nothing.. whole body is empty except javascript Now how can i add page `load` option on click of button, next to it. Edited / Added --- http://jsfiddle.net/marafee1243/ErN5E/ the above fiddle may not be apporiate...
0
[ 2, 14692, 5162, 29, 6305, 13, 15, 13, 12916, 4520, 10866, 800, 3726, 3726, 31, 57, 21, 407, 13, 12916, 27, 81, 4434, 13, 660, 13, 1, 6486, 165, 9, 26120, 1, 17, 13, 1, 4190, 9, 26120, 1, 2478, 165, 9, 26120, 13, 8, 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...
how to use htmlunit for webscraping === I know there are many other questions which may seem similar to this. But, I haven't found even a single one which could help me. I have added htmlunit jar files in my eclipse project. but what to do next? I dont know how to start? WebClient abc=new WebClient(); HtmlPage page =abc.getPage("http://google.com"); String a= page.asText(); System.out.print(a); problems: 1. when i execute this, it show lots of options in a dialog box with the heading "select java application". I dont know which one to select? 2. Generally a website doesn't have pure html. there is javascript and other languages also. I know i need to parse it. but dont know how to do it. It would be good if someone can suggest a tutorial.
0
[ 2, 184, 20, 275, 13, 15895, 15464, 26, 2741, 18, 7519, 3181, 800, 3726, 3726, 31, 143, 80, 50, 151, 89, 2346, 56, 123, 2260, 835, 20, 48, 9, 47, 15, 31, 2933, 22, 38, 216, 166, 21, 345, 53, 56, 110, 448, 55, 9, 31, 57, 905...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Calcutors === var uc = 2.10; var dort_bucuk = 1.80; islem = parseFloat(uc-dort_bucuk); alert(islem) // 0.30000000000000004 var uc = 1.10; var dort_bucuk = 0.95; islem = parseFloat(uc-dort_bucuk); alert(islem) // 0.15000000000000013 var uc = 4.00; var dort_bucuk = 3.70; islem = parseFloat(uc-dort_bucuk); alert(islem)//0.2999999999999998 how i use like in php number_format($int,2) why its coming 4.00-3.70 =0.2999999999999998? its must <?php $bir = 4.00; $iki = 3.70; echo number_format($bir-$iki,2); // 0.30 ?> thanks for helping
0
[ 2, 487, 8190, 93, 3550, 3987, 10778, 800, 3726, 3726, 4033, 12669, 800, 172, 9, 1036, 73, 4033, 9399, 38, 1, 2345, 150, 2185, 800, 137, 9, 2887, 73, 25, 10388, 800, 2017, 870, 14712, 721, 5, 6335, 8, 5290, 38, 1, 2345, 150, 2185...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 detect if a Postgres temporary table already exists? === I have a table called *tester* which I need to overlay with a temporary table in order to do some testing. So far I have managed that using: CREATE TEMPORARY TABLE tester AS SELECT * FROM tester WHERE name='bananas'; This temporary table will disappear at the end of the session which is fine by me, however it is the external application that is responsible for the connection and it has a tendency to cache connections for reuse (thus there is no guarantee that the temporary table has been dropped). This means that if I try to execute the above query again it may fail because the temporary table still exists. Explicitly dropping the temporary table is not really an option. I'd rather live with the failed query than risk dropping the underlying "real" table by mistake. What I *would* like to do is only create the temporary table if it doesn't already exist. I *did* find this query which people suggested should be used when checking to see if a table exists: SELECT * FROM pg_catalog.pg_class WHERE relkind = 'r' AND relname = 'tester'; result when temporary table exists: relname | relnamespace | reltype | relowner | relam | relfilenode | reltablespace | relpages | reltuples | reltoastrelid | reltoastidxid | relhasindex | relisshared | relkind | relnatts | relchecks | reltriggers | relukeys | relfkeys | relrefs | relhasoids | relhaspkey | relhasrules | relhassubclass | relfrozenxid | relacl | reloptions ---------+--------------+---------+----------+-------+-------------+---------------+----------+-----------+---------------+---------------+-------------+-------------+---------+----------+-----------+-------------+----------+----------+---------+------------+------------+-------------+----------------+--------------+--------+------------ tester | 2200 | 1533065 | 1531747 | 0 | 1533063 | 0 | 0 | 0 | 1533067 | 0 | t | f | r | 3 | 0 | 0 | 0 | 0 | 0 | f | t | f | f | 17654031 | | tester | 1533088 | 1533065 | 1531747 | 0 | 1533160 | 0 | 0 | 0 | 1533163 | 0 | f | f | r | 3 | 0 | 0 | 0 | 0 | 0 | f | f | f | f | 17654066 | | As you can see, there are two records. One for the original table, and one for the temp table. The second record is the temporary table - I know this because it disappears when working in a different session - but other than the lack of an index or a primary key that's the only way I can identify it as being temporary. This is only a test table - some of the real tables I'm working with may lack indexes and/or primary keys. **Question (tl;dr edition): How can I test if a *temporary table* exists if there is already a "real" table with the same name?** (or at least identify that a table is temporary?) *disclaimer: I added the Java tag because that's what I'm using to execute queries (the SQL is only a small part of the application). Even though Java is not directly relevant to the question, I kinda need than answer that I can use from a Java context.*
0
[ 2, 184, 92, 31, 9092, 100, 21, 678, 6879, 18, 4700, 859, 614, 5636, 60, 800, 3726, 3726, 31, 57, 21, 859, 227, 1637, 38, 6930, 2483, 56, 31, 376, 20, 84, 4414, 29, 21, 4700, 859, 19, 389, 20, 107, 109, 4431, 9, 86, 463, 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...
Can't connect to MySQL database from bash with user details I just set === I've just created a new MySQL user with a password and granted them all privileges on a database. Now I'd like to connect to that database, with the password I just set, and I can't: mysql> create user 'reviews' identified by 'reviews'; Query OK, 0 rows affected (0.00 sec) mysql> grant all on reviews.* to 'reviews'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> exit; Bye $ mysql -U reviews -u reviews -p Enter password: ERROR 1045 (28000): Access denied for user 'reviews'@'localhost' (using password: YES) What am I doing wrong? I'm working on MacOS Lion in a bash shell, version 10.6 of MySQL.
0
[ 2, 92, 22, 38, 6379, 20, 51, 18, 22402, 6018, 37, 13158, 29, 4155, 3289, 31, 114, 309, 800, 3726, 3726, 31, 22, 195, 114, 679, 21, 78, 51, 18, 22402, 4155, 29, 21, 20884, 17, 2743, 105, 65, 15977, 27, 21, 6018, 9, 130, 31, 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...
Make text in UITextField behave like in the "To" field of MFMailComposer === ![ScreenShot of Mail Composer in iPad][1] [1]: http://i.stack.imgur.com/qLl8u.png How do I get text that I enter in a UITextField to behave the way it does in, say, the "To" field of MFMailComposer, 1)The text is entered 2)Return key is tapped 3)The entered text wraps itself into a blue field 4)If Backspace key is tapped, the contents of the blue field are deleted(along with the field)
0
[ 2, 233, 1854, 19, 13, 5661, 11969, 1109, 14149, 101, 19, 14, 13, 7, 262, 7, 575, 16, 13, 13235, 8079, 29058, 800, 3726, 3726, 13, 187, 2558, 7187, 7868, 16, 4216, 3039, 19, 31, 8240, 500, 2558, 165, 500, 636, 165, 500, 45, 7775,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
overloading Item on collections === I have a collection class MyCollection<T>. I have implemented T this[string name], which works fine. I tried to also implement T Item(string name) but of course that gave an error "The type MyCollection<T> already contains a definition for Item" as it should. However I also want to overload Item by implementing a function T Item(string, bool). But this also throws up "The type MyCollection<T> already contains a definition for Item". Why would the compiler think that T Item(string, bool) clashes with the indexer T Item(string)? If it weren't an indexer but just an ordinary method these two declarations would be two perfectly valid overloads.
0
[ 2, 84, 16866, 9101, 27, 5721, 800, 3726, 3726, 31, 57, 21, 1206, 718, 51, 15015, 872, 1, 38, 1, 9, 31, 57, 6807, 13, 38, 48, 2558, 11130, 204, 500, 15, 56, 693, 1123, 9, 31, 794, 20, 67, 8713, 13, 38, 9101, 5, 11130, 204, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding a minimal key to a BCNF decomposition === If I will add a minimal key to a given BCNF decomposition can it be no more a BCNF decomposition? Formally, say I have **F** (group of functional dependencies), schema **R** and it's BCNF decomposition `{R1,R2,R3,R4}` and I will add another group **R5** to the decomposition which is a minimal key of schema **R**. Will the new decomposition `{R1,R2,R3,R4,R5}` be still a BCNF decomposition of **R**?
0
[ 2, 4721, 21, 8663, 1246, 20, 21, 2726, 11408, 24022, 800, 3726, 3726, 100, 31, 129, 3547, 21, 8663, 1246, 20, 21, 504, 2726, 11408, 24022, 92, 32, 44, 90, 91, 21, 2726, 11408, 24022, 60, 5286, 15, 395, 31, 57, 13, 1409, 410, 140...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to add a password protected repository to Sonatype Nexus? === We're using Sonatype Nexus to manage different repositoryies. There's a request to add a password-protected repository to our "Public Repositories" group. The problem is, I don't really know how to accomplish this. I can create a new repo and add it to the existing group, and there's the option for authentication, but how can I be sure to be doing this right? Searching the net only yields results for CREATING a protected repository, but nothing about adding an existing, password-protected remote repository. If there are links to resources that explain how to tackle this particular problem, I would be thankful.
0
[ 2, 184, 20, 3547, 21, 20884, 3803, 24869, 20, 433, 58, 4474, 28674, 60, 800, 3726, 3726, 95, 22, 99, 568, 433, 58, 4474, 28674, 20, 4705, 421, 24869, 1596, 9, 80, 22, 18, 21, 3772, 20, 3547, 21, 20884, 8, 16265, 69, 24869, 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...
wpf - moving object using code behind and using xaml === im using blend 4 to make a wpf application i have a wrapPanel defined in xaml: <WrapPanel x:Name="WrapPanel_ShowMe"> when i enter a certain visual state, the code-behind the wrapPanel to a new location: WrapPanel_ShowMe.RenderTransform = new TranslateTransform(0,-661.5); im doing it this way because in this state different wrapPanels can appear in the state, (to save from duplicating the state) after i exit the state, i move the panel back to its origional location. I also have the same wrapPanel being moved by xaml in other states: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="WrapPanel_ShowMe"> <EasingDoubleKeyFrame KeyTime="0" Value="-648"/> </DoubleAnimationUsingKeyFrames> so state A moves the wrapPanel in c#, and State B moves the panel using xaml. When i use state B, the wrapPanel moves like it should with no problems. (xaml) When i use state A, the wrapPanel moves like it should with no problems. (c#) the problem occurs when i use state A to move the panel and THEN try to use state B afterwords. The program crashes, and I have no idea why. It seems that after using the code-behind to move the object, the xaml render transform is no longer valid? can anyone tell me why this might be and how to fix/get around it? Thanks in advance
0
[ 2, 619, 7721, 13, 8, 1219, 3095, 568, 1797, 439, 17, 568, 13, 6791, 8184, 800, 3726, 3726, 797, 568, 11138, 268, 20, 233, 21, 619, 7721, 3010, 31, 57, 21, 8118, 3206, 532, 2811, 19, 13, 6791, 8184, 45, 13, 1, 7127, 24332, 532, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 modify the vlaue of a key-value Pair from a map while I do not know whether the key is exist in the map? === How to modify the vlaue of a key-value Pair from a map while I do not know whether the key is exist in the map? for example , there is a key-value pair in a map: a[5] = " H "; // But after some operation,like insert, erase etc ; I do not know whether 5 still exist in the map,can I modify it like this ?: a[5] = " G "; // or a must define a iteraotr pos pos = my_map.find(5); if( pos != my_map.end()) { a[5] = " G "; } Is there any other way I can modify a value of a key-value Pair from a map??? Thanks!!!
0
[ 2, 184, 20, 17579, 14, 13, 18078, 4185, 16, 21, 1246, 8, 15165, 2146, 37, 21, 2942, 133, 31, 107, 52, 143, 1472, 14, 1246, 25, 3182, 19, 14, 2942, 60, 800, 3726, 3726, 184, 20, 17579, 14, 13, 18078, 4185, 16, 21, 1246, 8, 1516...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException === I am Getting the following error while executing the client class to test DB connectivity! What's wrong with my code? any suggestions please? Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Found element {http://schemas.xmlsoap.org/soap/envelope/}Fault but could not find matching RPC/Literal part at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) at $Proxy45.getPaymentsForTransaction(Unknown Source) at gov.virginia.abc.epayment.turing.client.GetPayClient.main(GetPayClient.java:25) Caused by: org.apache.cxf.interceptor.Fault: Found element {http://schemas.xmlsoap.org/soap/envelope/}Fault but could not find matching RPC/Literal part at org.apache.cxf.binding.soap.interceptor.RPCInInterceptor.handleMessage(RPCInInterceptor.java:171) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:671) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2177) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2057) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1982) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:637) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:483) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:309) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:261) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
0
[ 2, 5391, 19, 9322, 13, 7, 6232, 7, 8247, 396, 9, 396, 8184, 9, 10268, 9, 656, 2552, 9, 18, 6941, 7721, 9708, 10066, 872, 800, 3726, 3726, 31, 589, 1017, 14, 249, 7019, 133, 25836, 14, 6819, 718, 20, 1289, 13, 9007, 24026, 187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it right to "tend to not using third-party gems"? === I am using Ruby on Rails 3.2.2 and I would like to know if the following thought (note: this thought was born from my [previous question][1]) could be right: > I tend to not using third-party gems (at least when it is possible and reasonable) because those may be "abandoned" at any time (that is, no more developed) and because the Ruby on Rails framework could change so I have to "wait" that those gems have been updated (that is, I cannot update my application to the last RoR version until third-party gems are updated as well). [1]: http://stackoverflow.com/questions/11190792/how-to-properly-add-brackets-to-sql-queries-with-or-and-and-clauses-by-using
0
[ 2, 25, 32, 193, 20, 13, 7, 1316, 43, 20, 52, 568, 422, 8, 9635, 8551, 18, 7, 60, 800, 3726, 3726, 31, 589, 568, 10811, 27, 2240, 18, 203, 9, 135, 9, 135, 17, 31, 83, 101, 20, 143, 100, 14, 249, 289, 13, 5, 10280, 45, 48,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How safe is authentication in mysql protocol? === My users are using MS Access and ODBC connector to connect to my remote MySQL database. I wonder how secure this is, in the sense of possible password disclosure to 3rd party. Is the mysql protocol safe to eavesdropping or even man-in-the-middle attacks? I would be quite happy with safety against eavesdropping. Please don't reply that I should use SSL. I know this would be ideal however the setup doesn't seem very simple. Anyway, I would like to know what is the safety level of plain mysql protocol.
0
[ 2, 184, 1834, 25, 27963, 19, 51, 18, 22402, 8494, 60, 800, 3726, 3726, 51, 3878, 50, 568, 4235, 1381, 17, 12340, 7229, 17991, 20, 6379, 20, 51, 5388, 51, 18, 22402, 6018, 9, 31, 2666, 184, 4315, 48, 25, 15, 19, 14, 1259, 16, 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...
Setting static cells in uitableview programmatically === I am programmatically creating a tableview in objective c. How can I make the cells static programmatically? Thanks
0
[ 2, 2697, 12038, 2934, 19, 13, 11193, 579, 4725, 625, 6732, 1326, 800, 3726, 3726, 31, 589, 625, 6732, 1326, 2936, 21, 859, 4725, 19, 7038, 272, 9, 184, 92, 31, 233, 14, 2934, 12038, 625, 6732, 1326, 60, 3669, 3, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
SSIS Package Runs in BIDS but fails with an Architecture Mismatch in SQL Agent === I have an SSIS package that uses an ODBC connection to a Progress database as a source using a 32-bit ODBC driver. This package runs perfectly within the confines of BIDS. However, when I run it using the SQL Agent, it fails with the error: > The specified DSN contains an architecture mismatch between the Driver > and Application. I know that this is probably a result of it wanting a 64-bit ODBC driver for that connection, but I can't seem to get the 64-bit driver to work correctly within BIDS. Is there a trick that would allow me to use the 32-bit driver within SQL Agent and move on with my life?
0
[ 2, 13, 18, 4557, 6030, 1461, 19, 4458, 18, 47, 13614, 29, 40, 2607, 2462, 12280, 19, 4444, 255, 2267, 800, 3726, 3726, 31, 57, 40, 13, 18, 4557, 6030, 30, 2027, 40, 12340, 7229, 2760, 20, 21, 3455, 6018, 28, 21, 1267, 568, 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...
Proper way to use ListBox (with ItemTemplate) when using a List<> === I've been trying to use a List<> of a Model.Person that I have inside a ListBox, using a ItemTemplate for style and then retrieving the correct Model.Person from the list when one has been selected. I've looked everywhere for sample code (and tried leading data binding, but still can't get my head around it properly). List<Model.Person> people = (comes from IsolatedStorageSettings) On a page I have a ListBox, say named "List". <ListBox Name="List"></ListBox> In my C# code, I pull a List<Model.Person> from the isolated storage. What I want to do ideally is have all the people in that list appear in the ListBox in a nice formatted way, and then when one is selected, easily retrieve the Person from the List<>. What I am doing at the moment, and what is surely wrong is: foreach (Model.Person person in people) { List.Items.Add(person.firstName + " " + person.lastName); } Then, when an item is selected, I find the person using this method: string selectedPerson = List.SelectedItem.ToString(); Model.Person person = people.Where(X => X.firstName + " " + X.lastName == selectedPerson).FirstOrDefault(); Obviously, the lists in the item just appear as the plain text and not interesting objects as one might create using ItemTemplate. Could someone please show me what I'm doing wrong or point me in the direction of a good resource for achieving this? Thanks so much!
0
[ 2, 4119, 161, 20, 275, 968, 5309, 13, 5, 1410, 9101, 9577, 6554, 6, 76, 568, 21, 968, 1, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 275, 21, 968, 1, 16, 21, 1061, 9, 7276, 30, 31, 57, 572, 21, 968, 5309, 15, 568, 21, 9101,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Transfer data from Excel to Word using Visual Studio 2010 - C# === this is my first question here. I am using Visual Studio 2010 and I want to design an Excel Addin for a sales catalog. It has two forms and I got one of them working but the other one not. What I want to achieve is that I open up a Windows form through the Addin and through the form I get data from my Access database. I import the data into a datagrid and then I export the data to Excel. I got this part working but I have problems with my next form. In that form I want to open up a Word template ( when I press a button) and then the data from the open Excel file is transferred into my Word document. Does anybody know what would be the best way to do this? I use OleDBConnection to get the data from the database to the datagrid. I am designing this for Office 2007 and I am programming in C#. Here is part of my code. I use this part to get the data from the Excel file into a DataGrid but I want to be able to bring that data into a WordDocument. Does anybody know what is the best way to do that. DataSet da = new DataSet(); OleDbDataAdapter adapter = new OleDbDataAdapter(); string workbookPath = "C:myfile.xlsx"; Excel.Workbook wb = Globals.ThisAddIn.Application.Workbooks.Add(workbookPath); string ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + workbookPath + @";Extended Properties=""Excel 12.0 Macro;HDR=Yes;ImpoertMixedTypes=Text;TypeGuessRows=0"""; OleDbConnection conn = new OleDbConnection(ConnectionString); string strCmd = " select * from [Sheet1$A1:D4]"; //Or some other range OleDbCommand cmd = new OleDbCommand(strCmd, conn); conn.Open(); da.Clear(); adapter.SelectCommand = cmd; adapter.Fill(da); dataGridView1.DataSource = da.Tables[0]; Thanks in advance.
0
[ 2, 2617, 1054, 37, 20700, 20, 833, 568, 3458, 1120, 498, 13, 8, 272, 5910, 800, 3726, 3726, 48, 25, 51, 64, 1301, 235, 9, 31, 589, 568, 3458, 1120, 498, 17, 31, 259, 20, 704, 40, 20700, 3547, 108, 26, 21, 2598, 10594, 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...
XMLPullParser Special Characters === I use XMLPullParser to parse an XML document which unfortunately contains some special chars like: &#13; or &amp... It seems that these chars interrupt the parsing procedure and only the text after these chars is shown but not before (if the special char appears in the middle of some text content). I have no control over this XML file so i have to fix this issues while parsing the document. How can I do this? I already did some research and it showed up that I am able to implement an eventType called ENTITY_REF but I don't know how to deal with that approach. Would be glad for some hints. My Parser: while (eventType != XmlPullParser.END_DOCUMENT) { if (eventType == XmlPullParser.START_TAG) { currentTag = xpp.getName(); } else if (eventType == XmlPullParser.TEXT) { if ("title".equals(currentTag)) { currentEvent.setTitle(xpp.getText()); System.out.println("Event title: " + xpp.getText()); } } else if (eventType == XmlPullParser.END_TAG) { if ("event".equals(xpp.getName())) { events.add(currentEvent); currentEvent = new Event(); } } else if (eventType == XmlPullParser.ENTITY_REF) { System.out.println("Entity REF: " + xpp.getText()); } eventType = xpp.nextToken(); }
0
[ 2, 23504, 23289, 3574, 4104, 621, 1766, 800, 3726, 3726, 31, 275, 23504, 23289, 3574, 4104, 20, 2017, 870, 40, 23504, 4492, 56, 6200, 1588, 109, 621, 4892, 18, 101, 45, 279, 5910, 1543, 73, 54, 279, 10158, 9, 9, 9, 32, 2206, 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...
Building a presentation video === Hi everyone I am in my last three days before I present my final project for my exam at college everything is ready for the final presentation except a good presentation.At first I made one in Microsoft Power Point but it isn't very cool looking. I just got an idea for the presentation to create a video that slide's diferent images that containing information about my project , add some music in the background and at some point the music's volume will be turned lower and and mp3 with me talking will start playing. Until now it isn't something I could not do in power point aldo I hope you guys will suggest another software because I also want to add over the presentation practicly another video with me that is talking and pointing my hand on different subjects from the video.I have never done this before and do not know how am I supose to cut that part with me talking from one video and add it over another. Can anyone suggest a good easy to learn software that can achive this and has an easy learning curve?And also some tutorials on that.Can a beginner like me manage to do it in 3 days?
0
[ 2, 353, 21, 6364, 763, 800, 3726, 3726, 4148, 1266, 31, 589, 19, 51, 236, 132, 509, 115, 31, 734, 51, 426, 669, 26, 51, 11796, 35, 314, 796, 25, 1451, 26, 14, 426, 6364, 1613, 21, 254, 6364, 9, 721, 64, 31, 117, 53, 19, 7099...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
FIREBIRD + PHP + SERVER 2003: do not work === windows xp + php + firebird -> ok (added extension interbase dll, php_pdo_firebird, gds to services, added gds32.dll and fbclient.dll even to all system folder, PHP is 5.3.10 windows serwer 2003 + firebird + php -> problem i used solution as I do witch winxp I tried with IIS + PHP and apache + PHP. Basic PHP works (IIS ok, apache ok), but extensions for firebird do not works. I try PHP 5.3.1, next PHP 5.3.2, now work 5.0.4 (as someone told me, that is the best working version for 2003 serwer) php.ini should be ok (As was compared to working configuration in winxp ini. serwer was restarted. Is there something more on window serwer 2003 to should be done?, after many tries and configuration variables problem should be with windows serwer, i think. please for any advice :)
0
[ 2, 535, 8490, 2754, 13, 26120, 2754, 8128, 973, 45, 107, 52, 170, 800, 3726, 3726, 1936, 23045, 2754, 13, 26120, 2754, 535, 8490, 13, 8, 1, 5854, 13, 5, 14854, 69, 3896, 1480, 8436, 13, 43, 211, 15, 13, 26120, 1, 306, 537, 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...
JavaScript history.pushState() save HTMLDivElements with onclick information === I am facing the following problem using PhoneGap on Android: HTML construct: <div id="main"> <div id="1" class="itemList"> <div id="A" class="item">....</div> </div> </div> Each div element within the main-div childnodes have a onclick-Event attached: document.getElementById("123").onclick = doSomething(); If "doSomething()" is executed, I change the content of `<div id="main"></div>` to the new elements that I want to display. Before switching the main content I want to save all the old elements that have been displayed within the main-tag including their onlick information. Something like this: history.pushState(document.getElementById("main"), null, clickedElement.id); Unfortunately this throws an DOM-Exception 9 (Not Supported). Only saving the html-code (`document.getElementById("main").innerHTML`) works, but then all onclick information of the given div elements is lost. What would be the best-practice to save html content including any onclick DOM-information in order to be able to go back in history?
0
[ 2, 8247, 8741, 447, 9, 26973, 3859, 5, 6, 2079, 13, 15895, 12916, 27567, 18, 29, 27, 150, 10129, 676, 800, 3726, 3726, 31, 589, 4325, 14, 249, 1448, 568, 1132, 1136, 306, 27, 13005, 45, 13, 15895, 6960, 45, 13, 1, 12916, 4924, 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...
Turn map (Google) into tiles === I can draw polygons on a map if I know the coordinates of each point in a polygon. What I'm trying to figure out is how to break down the map in same sized hexagons. I was thinking to store each hexagon's center point as lat/long then build it around this coordinate. What I don't know is - how to calculate the hexagon points - what will be the size of this hexagon - how to calculate the center point (coordinate) of the neighbor hexagons (left, right, top left, top right, bottom left, bottom right) so they don't overlap each other I'm not even sure this would be the best approach, if some with extensive map knowledge would give me some ideas I'd be grateful.
0
[ 2, 805, 2942, 13, 5, 16111, 4875, 6, 77, 14836, 800, 3726, 3726, 31, 92, 2003, 21309, 18, 27, 21, 2942, 100, 31, 143, 14, 13714, 16, 206, 454, 19, 21, 21309, 9, 98, 31, 22, 79, 749, 20, 1465, 70, 25, 184, 20, 1442, 125, 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...
Regex remove last folder from path === Using Regex reomve the last folder from a path Example : C:\Temp\Dir1\ Output needed C:\Temp\ Please dont suggest that i can do this with c# or other programming language. I really do need the regex for this. Thanks in advance for the help.
0
[ 2, 7953, 1706, 4681, 236, 19294, 37, 2013, 800, 3726, 3726, 568, 7953, 1706, 302, 2636, 195, 14, 236, 19294, 37, 21, 2013, 823, 13, 45, 272, 45, 1, 9577, 1, 9035, 165, 1, 5196, 851, 272, 45, 1, 9577, 1, 2247, 1049, 5601, 30, 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...
In MySQL, how to convert this string to a date? === I am creating a mysql db with a php frontend. The data it will use is extracted from another larger db and contains a date/time field which looks like this - 20120301073136 - which records when an event happened. I understand that this might be a UNIX timestamp? Not sure. I want to be show this field in the tables in my PHP webpage as a readable date and time - ie something like 01-Mar-2012 07:31:36 or similar Should I try and convert it with SQL command or let PHP format it? And, what is the code to do so? BTW, it is important that I can sort the data (in SQL and in the PHP table) into date order - ie in the order that these events happened. Thanks in advance for your help - Ive learnt a lot here already J
0
[ 2, 19, 51, 18, 22402, 15, 184, 20, 8406, 48, 3724, 20, 21, 1231, 60, 800, 3726, 3726, 31, 589, 2936, 21, 51, 18, 22402, 13, 9007, 29, 21, 13, 26120, 431, 2451, 9, 14, 1054, 32, 129, 275, 25, 18607, 37, 226, 1662, 13, 9007, 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...
Store the numericals in char array into an INTEGER variable in VC++. === My scenario is as follows:(C++) In char a[10], the array a[] has elements (numbers) like '1','2','3' etc.... Say a[0] = '1'; a[1] = '2'; a[2] = '3'; Now a[] is storing 3 characters '1', '2' and '3'. **I want to store this into an int as 123 (An integer 123).** How to achieve this in C++ ?
0
[ 2, 1718, 14, 16010, 18, 19, 4892, 7718, 77, 40, 13820, 7612, 19, 13, 8990, 20512, 9, 800, 3726, 3726, 51, 12705, 25, 28, 2415, 45, 5, 150, 20512, 6, 19, 4892, 21, 2558, 1036, 500, 15, 14, 7718, 21, 2558, 500, 63, 2065, 13, 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...
File upload not not working on upload button === I am trying to upload file on server using jquery and web handler. All works fine but issue is when i click on file upload control it pops up a file selection window, after i select file it directly started file uploading. My issue is i want upload file on different control's click event(i.e. On button click event). Here is my code which i am currently working. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="jquery-1.2.6.min.js" type="text/javascript"></script> <script src="jquery.ajax_upload.0.6.min.js" type="text/javascript"></script> <link href="default.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" language="javascript"> $(document).ready(function () { var button = $('#fuAttachment'), interval; $.ajax_upload(button, { action: 'FileUploader.ashx', name: 'myfile', onSubmit: function (file, ext) { if (ext == "jpg") { return true; } else { alert("Invalid File Type."); return false; } // this.disable(); }, onComplete: function (file, response) { window.clearInterval(interval); $('<li></li>').appendTo('.files').text(file); } }); }); </script> </head> <body> <form> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="web_dialog_title"> <asp:Label ID="Label2" Text="Add Attachment" runat="server"></asp:Label> </td> <td class="web_dialog_title align_right"> </td> </tr> <tr> <td colspan="2"> &nbsp; </td> </tr> <tr> <td> <asp:Label ID="lblAtchTitle" runat="server" Text="Attachment :"></asp:Label> </td> <td> <input type="file" id="fuAttachment" runat="server" /> </td> </tr> <tr> <td colspan="2"> &nbsp; </td> </tr> <tr> <td> <asp:Label ID="lblAtchType" runat="server" Text="Type :"></asp:Label> </td> <td> <select id="ddlAtchType" runat="server"> </select> </td> </tr> <tr> <td colspan="2"> &nbsp; </td> </tr> <tr> <td> <asp:Label ID="lblAttachDesc" runat="server" Text="Description :"></asp:Label> </td> <td> <textarea id="txtAttachDesc" runat="server" cols="13" rows="4"></textarea> </td> </tr> <tr> <td colspan="2"> &nbsp; </td> </tr> <tr> <td> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <asp:Button ID="btnAddAttach" runat="server" Text="Attach" /> <input type="submit" runat="server" name="Submit" value="Submit" id="btnSub" /> </td> <td> <input type="reset" value="Reset" id="btnAttachReset" name="Reset" /> </td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <ol class="files"> </ol> </td> </tr> </table> </div> </form> </body> </html> I want my upload process should start on `btnSub` click event. If anyone knows than please help me.........
0
[ 2, 3893, 71, 8294, 52, 52, 638, 27, 71, 8294, 5167, 800, 3726, 3726, 31, 589, 749, 20, 71, 8294, 3893, 27, 8128, 568, 487, 8190, 93, 17, 2741, 24641, 9, 65, 693, 1123, 47, 1513, 25, 76, 31, 10840, 27, 3893, 71, 8294, 569, 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...
How to create uparrow downarrow using simple css === Please find this css class to create simple uparrow downarrow left arrow and right arrow. <html> <style> .left {border-bottom: 10px solid transparent; border-right: 10px solid red; border-top: 9px solid transparent; float: left;} .right {border-bottom: 10px solid transparent; border-left: 10px solid red; border-top: 9px solid transparent; float: left;} .top{ border-color: black transparent transparent; border-style: solid; border-width: 11px 7px 10px; float: left;} .bottom {border-color: transparent transparent black !important; border-style: solid; border-width: 0 27px 19px 25px; float: right;} </style> <div class="left"></div> <div class="right"></div> <div class="top"></div> <div class="bottom"></div> </html> Class left means Leftward arrow., Any one please suggest me the better way of creating arrows using simple css
0
[ 2, 184, 20, 1600, 71, 17638, 125, 17638, 568, 1935, 272, 18, 18, 800, 3726, 3726, 2247, 477, 48, 272, 18, 18, 718, 20, 1600, 1935, 71, 17638, 125, 17638, 225, 7409, 17, 193, 7409, 9, 13, 1, 15895, 1, 13, 1, 4381, 1, 13, 9, 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...
Colored progressbar in c# === I was using a program made in C# and came across these progress bars, one of which is blue. Here's a picture of the progress bars in question: http://imgur.com/xAwA4 The forecolor property obviously doesn't do anything, so does anyone know how to do this? Thanks
0
[ 2, 10133, 3455, 1850, 19, 272, 5910, 800, 3726, 3726, 31, 23, 568, 21, 625, 117, 19, 272, 5910, 17, 281, 464, 158, 3455, 6062, 15, 53, 16, 56, 25, 705, 9, 235, 22, 18, 21, 2151, 16, 14, 3455, 6062, 19, 1301, 45, 7775, 6903, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 doesn't it use all of the processor? === I wrote a java program to test the capabilities of processors by running an amount of calculations and then matching it up against my friends computers. However when I run the program, it doesn't use 100% of the processor. The processing power goes from 1-2% to 27% and the RAM stays at 34%. Is this just the way java or processors work? or is it something with my code? Here's the class that handles the calculation(Note: I'm still learning how to program, and I'm interested in the way the software interacts with the hardware): import javax.swing.JTextPane; public class Main { static int numberToCalculate = 100; static int otherNumberToCalculate = 50; static String typeOfCalculation = "all"; static int calculated; static int calculations = 10000000; public static void calculate(JTextPane j, JTextPane j2) { long time = System.currentTimeMillis(); for(int i = 0; i <= calculations; i++) { switch(typeOfCalculation) { case "Divide": calculated = numberToCalculate / otherNumberToCalculate; break; case "Multiply": calculated = numberToCalculate * otherNumberToCalculate; break; case "Plus": calculated = numberToCalculate + otherNumberToCalculate; break; case "Minus": calculated = numberToCalculate - otherNumberToCalculate; break; case "All": calculated = numberToCalculate / otherNumberToCalculate; calculated = calculated * otherNumberToCalculate; calculated = calculated + otherNumberToCalculate; calculated = calculated - otherNumberToCalculate; break; default: Test.UpdateText(j, "Error, please pick type of calculation."); Test.UpdateText(j2, "Error, please pick type of calculation."); break; } if(i == calculations) { Test.UpdateText(j, "Milliseconds: " + (System.currentTimeMillis() - time)); Test.UpdateText(j2, "Result: " + calculated); } } } public static void main(String [] args) { Test.window(); } } And here's a picture of the output: [http://i.stack.imgur.com/lH1VA.png][1] [1]: http://i.stack.imgur.com/lH1VA.png
0
[ 2, 483, 1437, 22, 38, 32, 275, 65, 16, 14, 14762, 60, 800, 3726, 3726, 31, 738, 21, 8247, 625, 20, 1289, 14, 10209, 16, 21034, 34, 946, 40, 2006, 16, 19186, 17, 94, 10120, 32, 71, 149, 51, 954, 7774, 9, 207, 76, 31, 485, 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...
WPF; Windowless application on maximize is hiding behind the task bar in Win 7 and Win 8 === I have created a windowless application in WPF. I have written a event to maximize the window but on maximizing, part of the window sometimes hides behind the task bar and after a moment appears on top of the task bar. How can I ensure that the window remains on top of task bar every time ? Following is the way I have implemented: private void OnMaximizedClicked(object sender, RoutedEventArgs e) { this.WindowState = this.WindowState != WindowState.Normal ? WindowState.Normal : WindowState.Maximized; } I have tried setting the TopMost property to true, but didn't help me either.
0
[ 2, 619, 7721, 73, 1463, 923, 3010, 27, 23952, 25, 5314, 439, 14, 3005, 748, 19, 628, 453, 17, 628, 469, 800, 3726, 3726, 31, 57, 679, 21, 1463, 923, 3010, 19, 619, 7721, 9, 31, 57, 642, 21, 807, 20, 23952, 14, 1463, 47, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove element from a list in C++ === I am working on an exercise in C++ and I am trying to understand how to remove an element from a list and shift the rest to the left. I wonder if there is a neat solution. Here is my version, it seems to do the job, but I have a feeling there is a better way: Account AccountList::remove(int i){ if(i>=0 && i<size()) { for (int n = i; n < size(); n++) { if(i+1!=size()) { aList[n]=aList[n+1]; } } sz--; return aList[i]; } else { return Account(); } }
0
[ 2, 4681, 4520, 37, 21, 968, 19, 272, 20512, 800, 3726, 3726, 31, 589, 638, 27, 40, 5935, 19, 272, 20512, 17, 31, 589, 749, 20, 1369, 184, 20, 4681, 40, 4520, 37, 21, 968, 17, 4471, 14, 760, 20, 14, 225, 9, 31, 2666, 100, 80,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL sum(IF()) in JPQL Criteria === I have the following SQL query that I'd like to execute using JPQL criteria: select sum(if(is_pending=1,1,0)) as num_pending_orders, group_concat(if(is_pending),date) as pending_orders_dates from Orders group by country; This query lists the number of pending orders from each country and the dates of these orders. How can this be done in JPQL criteria? Thanks, Yoav.
0
[ 2, 4444, 255, 3907, 5, 821, 5, 6, 6, 19, 13, 12851, 22402, 9157, 800, 3726, 3726, 31, 57, 14, 249, 4444, 255, 25597, 30, 31, 22, 43, 101, 20, 15644, 568, 13, 12851, 22402, 9157, 45, 5407, 3907, 5, 821, 5, 403, 1, 306, 7601, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MacOS - Linking to Python.framework path === In my Mac OS app, I am including my own Python 2.7 Framework. I don't know how best to code the path: 1) hard code it in the Python script by getting working directory, etc., or 2) do it in my Obj-C class by getting DYLD_FRAMEWORK_PATH, appending script name, and then passing the path as an argument to NSTask? What's the advantage of one vs another?
0
[ 2, 1572, 759, 13, 8, 12585, 20, 20059, 9, 8361, 3783, 2013, 800, 3726, 3726, 19, 51, 1572, 13, 759, 4865, 15, 31, 589, 215, 51, 258, 20059, 172, 9, 465, 6596, 9, 31, 221, 22, 38, 143, 184, 246, 20, 1797, 14, 2013, 45, 137, 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...
When BroadcastReceiver runs, which thread is it running on, system wide or only your applications? === I have an Alarm go of using BroadcastReceiver, but I am a little confused on Threads. I would like to have it run on a separate thread so it doesn't cause unresponsiveness to anything else, but when looking on the Android Docs, I still don't really know if there is only one Main thread, or each application has its own Main thread. For example, if my application isn't running, what would the point of running a separate thread in the BroadcastReceiver if each application runs its own Main thread, meaning I wouldn't be affecting the users' other processes. Since mine wasn't running, havent it do its thing wouldn't hurt. But in contrast, if there is one Main thread for all applications then I would need to move the actions to a separate thread. I hope I am not asking a stupid question. I just want to understand it thoroughly. Thanks in advance.
0
[ 2, 76, 1992, 99, 1105, 19737, 1461, 15, 56, 9322, 25, 32, 946, 27, 15, 329, 1051, 54, 104, 154, 3767, 60, 800, 3726, 3726, 31, 57, 40, 6490, 162, 16, 568, 1992, 99, 1105, 19737, 15, 47, 31, 589, 21, 265, 4230, 27, 20396, 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...
Nginx Reverse Proxy SSL / Minification === I am trying to use NginX as a reverse proxy for a few IIS Servers. The goal is to have NginX sit in from of the IIS / Apache servers caching static items such as CSS / JS / Images. I am also trying to get NginX to automatically minify js / css files using its perl module. I found a sample script for minification here: http://petermolnar.eu/linux-tech-coding/nginx-perl-minify-css-js/ With the scrip everything works fine, except the reverse proxy breaks. Questions: 1. Is what i am trying to accomplish even possible? I want NginX to first minify the scripts before saving them to cache. 2. Can nginX automtically set the proper expires headers so that static items are cached as long as possible, and only replaced when querystrings are changed (jquery.js?timestamp=march-2012) 3. Can NginX GZIP the resources before sending them out. 4. Can NGinx Forward requests or serve up a "Down For Maintenance page" if it cannot connec to back end server. Any help would be greatly appreciated. Here is what i have in my sites-enabled/default so far. server { location / { proxy_pass http://mywebsite.com; proxy_set_header Host $host; proxy_cache STATIC; proxy_cache_valid 200 1d; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; } location @minify { perl Minify::minify_handler; } location ~ \.css$ { try_files $uri.min.css @minify; } location /*.js { expires 30d; } }
0
[ 2, 13, 2723, 108, 396, 7006, 27188, 13, 18, 18, 255, 13, 118, 4232, 4634, 800, 3726, 3726, 31, 589, 749, 20, 275, 13, 2723, 108, 396, 28, 21, 7006, 27188, 26, 21, 310, 595, 18, 17595, 9, 14, 1195, 25, 20, 57, 13, 2723, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
why does the LogCat shows "sqlite returned: error code = 1, msg = no such table: personalInfo" === I don't understand why there is no such table even though I've already created it through coding. Anyone knows why? and can help to solve this problem. thanks a bunch! =) 07-11 13:41:59.335: I/Database(288): sqlite returned: error code = 1, msg = no such table: personalInfo 07-11 13:41:59.345: E/Database(288): Error inserting dislikes=Yoga type=Wedding date=15/10/2017 likes=Prawning name=Joanne Liew package main.page; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.os.Bundle; import android.provider.BaseColumns; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.Button; import android.widget.Spinner; import android.widget.Toast; public class InfoDBAdapter { public static final String KEY_ROWID = "_id"; public static final String KEY_NAME = "name"; public static final String KEY_DATE = "date"; public static final String KEY_TYPE = "type"; public static final String KEY_LIKES = "likes"; public static final String KEY_DISLIKES = "dislikes"; private static final String TAG = "InfoDBAdapter"; private static final String DATABASE_NAME = "AnniversaryDB"; private static final String DATABASE_TABLE = "personalInfo"; private static final int DATABASE_VERSION = 2; private static final String DATABASE_CREATE = "create table personalInfo (_id integer primary key autoincrement, " + "name text not null, date text not null, type text not null, likes text not null, dislikes text not null);"; private final Context context; private DatabaseHelper DBHelper; private SQLiteDatabase db; public InfoDBAdapter(Context ctx) { this.context = ctx; DBHelper = new DatabaseHelper(context); } private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { try { db.execSQL(DATABASE_CREATE); } catch (SQLException e) { e.printStackTrace(); } }// end onCreate() @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(TAG, "Upgrading database from version " + oldVersion + " to " + newVersion + ", which will destroy all old data"); db.execSQL("DROP TABLE IF EXISTS info"); onCreate(db); }// end onUpgrade() }// end DatabaseHelper // ---opens the database--- public InfoDBAdapter open() throws SQLException { db = DBHelper.getWritableDatabase(); return this; }// end open() // ---closes the database--- public void close() { DBHelper.close(); }// end close() // ---insert a contact into the database--- public long insertContact(String name, String date, String type, String likes, String dislikes) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_NAME, name); initialValues.put(KEY_DATE, date); initialValues.put(KEY_TYPE, type); initialValues.put(KEY_LIKES, likes); initialValues.put(KEY_DISLIKES, dislikes); return db.insert(DATABASE_TABLE, null, initialValues); }// end insertContact() // ---deletes a particular contact--- public boolean deleteContact(long rowId) { return db.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; }// end deleteContact() // ---retrieves all the contacts--- public Cursor getAllContacts() { return db.query(DATABASE_TABLE, new String[] { KEY_ROWID, KEY_NAME, KEY_DATE, KEY_TYPE, KEY_LIKES, KEY_DISLIKES }, null, null, null, null, null); }// end getAllContacts() // ---retrieves a particular contact--- public Cursor getContact(long rowId) throws SQLException { Cursor mCursor = db.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_NAME, KEY_DATE, KEY_TYPE, KEY_LIKES, KEY_DISLIKES }, KEY_ROWID + "=" + rowId, null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; }// end getContact() // ---updates a contact--- public boolean updateContact(long rowId, String name, String date, String type, String likes, String dislikes) { ContentValues args = new ContentValues(); args.put(KEY_NAME, name); args.put(KEY_DATE, date); args.put(KEY_TYPE, type); args.put(KEY_LIKES, likes); args.put(KEY_DISLIKES, dislikes); return db.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; }// end updateContact() }//end DBAdapter package main.page; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import android.widget.Toast; public class PersonalInfo extends Activity { Button btnSave, btnBack; EditText txtDate, txtType, txtLikes, txtDislikes; Spinner nameSpinner; ArrayAdapter<String>adapter; String names[] = {"Kanak Priya", "Joanne Liew", "Michelle Lam", "Natasha Akhbar", "Joan Tang", "Teo Kin Hua", "David Yeo"}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.info); /*try{ String destPath = "/data/data" + getPackageName() + "/databases/AnniversaryDB"; File f = new File(destPath); if(!f.exists()) { CopyDB(getBaseContext().getAssets().open("AnniversaryDB"), new FileOutputStream(destPath)); } }catch (FileNotFoundException e) { e.printStackTrace(); }catch (IOException e) { e.printStackTrace(); }*/ InfoDBAdapter dbInfo = new InfoDBAdapter(this); dbInfo.open(); long id = dbInfo.insertContact("Kanak Priya", "24/6/1990", "Birthday", "Painting", "Bungee jumping"); id = dbInfo.insertContact("Joanne Liew", "15/8/1990", "Birthday", "Skating", "Yoga"); dbInfo.close(); /*//---get all contacts-- dbInfo.open(); Cursor c = dbInfo.getAllContacts(); if (c.moveToFirst()) { do { DisplayContact(c); } while (c.moveToNext()); } dbInfo.close();*/ Spinner nameSpinner = (Spinner) findViewById(R.id.nameSpinner); adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, names); nameSpinner.setAdapter(adapter); Button btnSave = (Button) findViewById(R.id.btnSave); btnSave.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Spinner nameSpinner = (Spinner) findViewById(R.id.nameSpinner); EditText txtDate = (EditText) findViewById(R.id.txtDate); EditText txtType = (EditText) findViewById(R.id.txtType); EditText txtLikes = (EditText) findViewById(R.id.txtLikes); EditText txtDislikes = (EditText) findViewById(R.id.txtDislikes); Toast.makeText(getBaseContext(), "Your info is saved successfully!", Toast.LENGTH_SHORT).show(); } }); Button btnBack = (Button) findViewById(R.id.btnMain); btnBack.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { finish(); } }); }// end onCreate() /*public void CopyDB(InputStream inputStream, OutputStream outputStream) throws IOException { //---copy 1K bytes at a time--- byte[] buffer = new byte[1024]; int length; while ((length = inputStream.read(buffer)) > 0) { outputStream.write(buffer, 0, length); } inputStream.close(); outputStream.close(); }*/ /*public void DisplayContact(Cursor c) { Toast.makeText( this, "id: " + c.getString(0) + "\n" + "Name: " + c.getString(1) + "\n" + "Date: " + c.getString(2) + "\n" + "Type: " + c.getString(3) + "\n" + "Likes: " + c.getString(4) + "\n" + "Dislikes: " + c.getString(5), Toast.LENGTH_LONG) .show(); }*/ } <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" style="@style/InfoStyle" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/fName" style="@style/InfoStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Full Name" android:textAppearance="?android:attr/textAppearanceMedium" /> <Spinner android:id="@+id/nameSpinner" android:layout_width="match_parent" android:layout_height="wrap_content" > <requestFocus /> </Spinner> <TextView android:id="@+id/date" style="@style/InfoStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Date" android:textAppearance="?android:attr/textAppearanceMedium" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" > <EditText android:id="@+id/txtDate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:ems="10" android:inputType="date" /> </RelativeLayout> <TextView android:id="@+id/type" style="@style/InfoStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Type" android:textAppearance="?android:attr/textAppearanceMedium" /> <EditText android:id="@+id/txtType" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" /> <TextView android:id="@+id/bow" style="@style/InfoStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="birthday or wedding" android:textAppearance="?android:attr/textAppearanceSmall" /> <TextView android:id="@+id/likes" style="@style/InfoStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Likes" android:textAppearance="?android:attr/textAppearanceMedium" /> <AutoCompleteTextView android:id="@+id/txtLikes" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:gravity="top" /> <TextView android:id="@+id/dislikes" style="@style/InfoStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Dislikes" android:textAppearance="?android:attr/textAppearanceMedium" /> <AutoCompleteTextView android:id="@+id/txtDislikes" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:gravity="top" /> <Button android:id="@+id/btnSave" style="@style/main_menu" android:layout_width="109dp" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:background="@drawable/red_btn_info" android:text="Save" /> <Button android:id="@+id/btnMain" style="@style/main_menu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/red_btn_info" android:text="Main Menu" /> </LinearLayout>
0
[ 2, 483, 630, 14, 6738, 5782, 1285, 13, 7, 18, 1251, 10601, 587, 45, 7019, 1797, 800, 137, 15, 4235, 263, 800, 90, 145, 859, 45, 1319, 108, 4120, 7, 800, 3726, 3726, 31, 221, 22, 38, 1369, 483, 80, 25, 90, 145, 859, 166, 362, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Insert element into XML using XQuery and Java === I need to insert a new element into an XML document using XQuery insert expression. I am using `saxon` as a java api. I am new to XQuery so I am not sure about the exact structure of the insert expression. Can anyone help me in this please. My XML file looks like the following: <?xml version="1.0" encoding="ISO-8859-1"?> <breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description>two of our famous Belgian Waffles with plenty of real maple syrup<description> <calories>650</calories> </food> </breakfast_menu> and the java code I have for executing the insertion is public void insert() throws XQException{ String queryString = //"declare variable $docName as xs:string external;" + sep + "variable $stores := doc("+"food.xml"+")/*;"+ "insert node element food {"+ "element name { \"brnj\" },"+ "element price { \"$20\" },"+ "element description { \"whatever\" },"+ "element calories { 300 },"+ "} into $stores;"; XQPreparedExpression expr = conn.prepareExpression(queryString); expr.bindObject(new QName("stores"), "food.xml", null); XQResultSequence rs = expr.executeQuery(); } the error I get is in the syntax of the query string. Please help.
0
[ 2, 14692, 4520, 77, 23504, 568, 993, 8190, 93, 17, 8247, 800, 3726, 3726, 31, 376, 20, 14692, 21, 78, 4520, 77, 40, 23504, 4492, 568, 993, 8190, 93, 14692, 1803, 9, 31, 589, 568, 13, 1, 15937, 1, 28, 21, 8247, 21, 2159, 9, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
nstableview remove/insert rows when resizing window === I have a view-based table view which resizes to fit the amount of rows in the datasource. It works well except for one problem: If I have let's say 5 rows and I remove them with animation sliding left, then update my datasource to 15 rows and resize my window (setFrame:display:animate) to accommodate them, then finally slide in the new 15 rows with animation sliding right the problem is the last few new rows will not slide in with animation but will just appear as if I used reloadData. How can I resolve this? Here is a sample code: // datasource has 5 items: NSRange range = NSMakeRange(0, [datasourceArray count]); NSIndexSet *theSet = [NSIndexSet indexSetWithIndexesInRange:range]; [tableView removeRowsAtIndexes:theSet withAnimation:NSTableViewAnimationSlideLeft]; // update datasource now has 15 items // find new window size and resize to fit new items: [mainWindow setFrame:frame display:YES animate:YES]; // insert new 15 rows: NSRange range = NSMakeRange(0, [datasourceArray count]); NSIndexSet *theSet = [NSIndexSet indexSetWithIndexesInRange:range]; [tableView insertRowsAtIndexes:theSet withAnimation:NSTableViewAnimationSlideRight]; Any help would be appreciated thanks! rc
0
[ 2, 13, 2172, 5924, 4725, 4681, 118, 108, 18, 6767, 11295, 76, 10719, 3335, 1463, 800, 3726, 3726, 31, 57, 21, 1418, 8, 1281, 859, 1418, 56, 10719, 13569, 20, 2742, 14, 2006, 16, 11295, 19, 14, 1054, 12097, 9, 32, 693, 134, 1613, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get HTML form fields from Facebook PHP? === I have the following HTML Form: <div id="online_form"> <form id="online_form_facebook" action="user_form.php" name="online_form_facebook"> <div class="field"> <div class="label"> <label for="user_email">Email:</label></div> <div class="input"> <input id="user_email" name="user_email" readonly="readonly" type="text" value="<?php echo $user_profile['email'] ?>" /></div> </div> How can I populate the email field (and other fields) with user data from Facebook please? This is the code I have to get the values from Facebook: <? ob_start(); require_once('library/facebook.php'); $app_id = "247151652061393"; $app_secret = "123456789012345567890"; // Init facebook api. $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => false, )); //Facebook Authentication part $user_id = $facebook->getUser(); $loginUrl = $facebook->getLoginUrl( array( 'scope' => 'publish_stream,user_likes,offline_access,email,user_birthday' ) ); if (!$user_id) { echo "<script type='text/javascript'>top.location.href = '$loginUrl';</script>"; exit; } ?> The above is not working. How can i fill in such field please?
0
[ 2, 164, 13, 15895, 505, 2861, 37, 9090, 13, 26120, 60, 800, 3726, 3726, 31, 57, 14, 249, 13, 15895, 505, 45, 13, 1, 12916, 4924, 3726, 7, 218, 1143, 1, 4190, 7, 1, 13, 1, 4190, 4924, 3726, 7, 218, 1143, 1, 4190, 1, 6413, 519...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code can stop working with compiler optimization === I'm using the PellesC C compiler. Sometimes my code randomly stops working. A particular statement can trigger it. For example, I multiplied a variable by sin(c) (c is a double) and my code seemed to just finish execution with no result. Sometimes it freezes, sometimes it appears to just return, but I can always fix it by removing the offending statement or disabling compiler optimizations, specifically "maximize speed" or "maximize speed more". The freezing will also go away nearly 100% of the time if I add a printf statement somewhere near the point at which it crashes. I've never found anything to suggest that I am accessing memory improperly, I'm fairly sure its a compiler issue. I was wondering if anybody could shed some light on this. Is it possible that I am, in fact, doing something wrong? Or is this a known issue with the Pelles C compiler?
1
[ 2, 1797, 92, 747, 638, 29, 21486, 21597, 800, 3726, 3726, 31, 22, 79, 568, 14, 13, 14343, 3862, 272, 21486, 9, 1030, 51, 1797, 21324, 6604, 638, 9, 21, 1498, 3331, 92, 7286, 32, 9, 26, 823, 15, 31, 28535, 21, 7612, 34, 3278, 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...
cvInitUndistortMap() crash === I am doing example 11-1 of "Learning OpenCV" by Bradski. My implementation crashes when attempting to use cvInitUndistortMap(). A similar post ([here][1]) had issues regarding using color images for cvUndistort2() and cvRemap(). I am unsure if the issue here is related or not. The code is as follows: #include "stdafx.h" #include "opencv\cv.h" #include "opencv\highgui.h" #include "stdio.h" #include "stdlib.h" #include "iostream" #include "iomanip" using namespace std; int n_boards; const int board_dt = 20; // Wait 20 frames per chessboard view int board_w; int board_h; int main(int argc, char* argv[]) { board_w = 7; board_h = 7; n_boards = 10; int board_n = board_w * board_h; CvSize board_sz = cvSize(board_w, board_h); CvCapture* capture = cvCreateCameraCapture(0); assert(capture); cvNamedWindow("Calibration"); // Allocate storage CvMat* image_points = cvCreateMat(n_boards*board_n,2,CV_32FC1); CvMat* object_points = cvCreateMat(n_boards*board_n,3,CV_32FC1); CvMat* point_counts = cvCreateMat(n_boards,1,CV_32SC1); CvMat* intrinsic_matrix = cvCreateMat(3,3,CV_32FC1); CvMat* distortion_coeffs = cvCreateMat(5,1,CV_32FC1); CvPoint2D32f* corners = new CvPoint2D32f[ board_n ]; int corner_count; int successes = 0; int step, frame = 0; IplImage *image = cvQueryFrame(capture); IplImage *gray_image = cvCreateImage(cvGetSize(image),8,1); // subpixel // Capture corner views loop until we've got n_boards // Successful captures (all corners on the board are found) // while(successes < n_boards) { // Skip every board_dt frames to allow user to move chessboard if(frame++ % board_dt == 0){ //Find chessboard corners: int found = cvFindChessboardCorners( image, board_sz, corners, &corner_count, CV_CALIB_CB_ADAPTIVE_THRESH | CV_CALIB_CB_FILTER_QUADS ); // Get subpixel accuracy on those corners cvCvtColor(image, gray_image, CV_BGR2GRAY); cvFindCornerSubPix(gray_image, corners, corner_count, cvSize(11,11),cvSize(-1,-1), cvTermCriteria( CV_TERMCRIT_EPS+CV_TERMCRIT_ITER,30,0.1)); // Draw it cvDrawChessboardCorners(image, board_sz, corners, corner_count, found); cvShowImage("Calibration", image); // If we got a good board, add it to our data if(corner_count == board_n){ step = successes*board_n; for( int i=step, j=0; j<board_n; ++i,++j){ CV_MAT_ELEM(*image_points, float, i, 0) = corners[j].x; CV_MAT_ELEM(*image_points, float, i, 1) = corners[j].y; CV_MAT_ELEM(*object_points, float, i, 0) = j/board_w; CV_MAT_ELEM(*object_points, float, i, 1) = j%board_w; CV_MAT_ELEM(*object_points, float, i, 2) = 0.0f; } CV_MAT_ELEM(*point_counts, int, successes, 0) = board_n; successes++; } //display how many successes we currently have printf("\nImages: %d / %d", successes, n_boards); } // end skip board_dt between chessboard capture // Handle pause/unpause and ESC int c = cvWaitKey(15); if(c=='p'){ c = 0; while(c!='p' && c != 27){ c = cvWaitKey(250); } } if(c==27) return 0; image = cvQueryFrame(capture); // get next image } // end collection while loop // Allocate matrices according to how many chessboards were found printf("\n\n\nAllocating matrices..."); CvMat* object_points2 = cvCreateMat(successes*board_n,3,CV_32FC1); CvMat* image_points2 = cvCreateMat(successes*board_n,2,CV_32FC1); CvMat* point_counts2 = cvCreateMat(successes,1,CV_32SC1); printf("success!"); // Transfer the points into the correct size matrices /* printf("\nTransfering points into the correct size matrices..."); image_points->rows = object_points->rows = \ successes*board_n; point_counts->rows = successes; printf("success!"); */ // The above two lines can alternatively be written in the following two loops printf("\nTransfering points into the correct size matrices..."); for(int i=0; i<successes*board_n; ++i){ CV_MAT_ELEM(*image_points2, float, i, 0) = CV_MAT_ELEM(*image_points, float, i, 0); CV_MAT_ELEM(*image_points2, float, i, 1) = CV_MAT_ELEM(*image_points, float, i, 1); CV_MAT_ELEM(*object_points2, float, i, 0) = CV_MAT_ELEM(*object_points, float, i, 0); CV_MAT_ELEM(*object_points2, float, i, 1) = CV_MAT_ELEM(*object_points, float, i, 1); CV_MAT_ELEM(*object_points2, float, i, 2) = CV_MAT_ELEM(*object_points, float, i, 2); } for(int i=0; i<successes; ++i){ //These are all the same number CV_MAT_ELEM(*point_counts2, int, i, 0) = CV_MAT_ELEM(*point_counts, int, i, 0); } printf("success!"); // At this point, we have all the chessboard corners we need. // Initialize the intrinsic matrix such that the two focal lengths // have a ratio of 1.0 // printf("\nInitializing intrinsic matrix..."); CV_MAT_ELEM(*intrinsic_matrix, float, 0, 0) = 1.0f; CV_MAT_ELEM(*intrinsic_matrix, float, 1, 1) = 1.0f; printf("success!"); // Calibrate the camera printf("\nCalibrating camera..."); cvCalibrateCamera2( object_points2, image_points2, point_counts2, cvGetSize(image), intrinsic_matrix, distortion_coeffs, NULL, NULL, 0 //CV_CALIB_FIX_ASPECT_RATIO ); printf("success!"); // Save the intrinsics and distortions printf("\nSaving intrinsic matrix and distortion coefficients..."); cvSave("Instrinsics.xml",intrinsic_matrix); cvSave("Distortion.xml",distortion_coeffs); printf("success!"); // Release old objects printf("\nReleasing old objects..."); cvReleaseMat(&object_points); cvReleaseMat(&image_points); cvReleaseMat(&point_counts); cvReleaseMat(&object_points2); cvReleaseMat(&image_points2); cvReleaseMat(&point_counts2); cvReleaseMat(&intrinsic_matrix); cvReleaseMat(&distortion_coeffs); printf("success!"); // Example of loading the above matrices back in printf("\nLoading intrinsic matrix and distortion coefficients..."); CvMat *intrinsic = (CvMat*)cvLoad("Intrinsics.xml"); CvMat *distortion = (CvMat*)cvLoad("Distortion.xml"); printf("success!"); // Build the undistort map that we will use for all subsequent frames printf("\nBuilding undistort map..."); IplImage* mapx = cvCreateImage( cvGetSize(image), IPL_DEPTH_32F, 1); IplImage* mapy = cvCreateImage( cvGetSize(image), IPL_DEPTH_32F, 1); printf("\nCrash incoming..."); cvInitUndistortMap( // PROBLEM APPEARS TO BE HERE intrinsic, distortion, mapx, mapy ); printf("success!"); // Just run the camera to the screen, now showing the raw // and the undistorted image. printf("Displaying undistorted images..."); cvNamedWindow("Undistort"); while(image) { IplImage *image = cvQueryFrame(capture); IplImage *imageRemapped = cvCloneImage(image); cvShowImage("Calibration", image); // Show raw image cvRemap(image, imageRemapped, mapx, mapy); // Undistort image cvShowImage("Undistort", imageRemapped); // Show corrected image // Handle pause/unpause and ESC int c = cvWaitKey(15); if(c=='p'){ c=0; while(c!='p' && c!=27){ c = cvWaitKey(250); } } if(c==27){ cvReleaseImage(&image); cvReleaseImage(&imageRemapped); break;} image = cvQueryFrame(capture); } printf("success!"); return 0; } Where the calibration results from Intrinsics.xml and Distortion.xml are as follows: Intrinsics.xml: <?xml version="1.0"?> <opencv_storage> <Instrinsics type_id="opencv-matrix"> <rows>3</rows> <cols>3</cols> <dt>f</dt> <data> 6.58263672e+002 0. 3.61270020e+002 0. 6.50179993e+002 2.34282578e+002 0. 0. 1.</data></Instrinsics> </opencv_storage> Distortion.xml: <?xml version="1.0"?> <opencv_storage> <Distortion type_id="opencv-matrix"> <rows>5</rows> <cols>1</cols> <dt>f</dt> <data> -1.43585190e-001 1.10129333e+000 -3.21008405e-003 2.23791786e-002 -3.69336128e+000</data></Distortion> </opencv_storage> I am using OpenCV 2.4, Windows7, Microsoft Visual C++ 2010 Express, and the MBP webcam. [1]: http://stackoverflow.com/questions/2333868/cvundistort2-and-cvremap-crash "here"
0
[ 2, 272, 2511, 242, 22539, 18, 2153, 38, 15022, 5, 6, 4597, 800, 3726, 3726, 31, 589, 845, 823, 547, 8, 165, 16, 13, 7, 26001, 368, 12732, 7, 34, 5413, 2413, 9, 51, 6123, 21563, 76, 6314, 20, 275, 272, 2511, 242, 22539, 18, 215...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 do i add a "class" to my choiceField? === So i have a choicefield: sex = ChoiceField(label='', choices=SEX) and when i shows up in the html page, i would like to control the class of this field (so i can css it a bit and make it snazzy). i have no idea how to do this - previously i've used forms.Field(label="Display name",help_text='',widget=forms.TextInput(attrs={'class': 'wideInput'})) for other textfields, but i don't think that a "select dropdown" is a "TextInput". Which "widget" am i meant to use, and how?
1
[ 2, 3857, 14541, 13, 8, 184, 107, 31, 3547, 21, 13, 7, 1898, 7, 20, 51, 1837, 1109, 60, 800, 3726, 3726, 86, 31, 57, 21, 1837, 1109, 45, 1589, 800, 1837, 1109, 5, 21018, 3726, 7, 15, 10978, 3726, 6353, 6, 17, 76, 31, 1285, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
retrieve json file from server === I am trying to get a json file from my server. Until now, always I need a json file, it was got by ajax and a php file in server creates the json file. Not I have a json file (X.json) with this structure: { "zona": [ { "zona1": [ { "lon": "a", "lat": "b" }, { "lon": "aa", "lat": "bb" }, { "lon": "aaa", "lat": "bbb" }, { "lon": "aaaa", "lat": "bbbb" } ] }, { "zona2": [ { "lon": "c", "lat": "d" }, { "lon": "cc", "lat": "dd" }, { "lon": "ccc", "lat": "ddd" }, { "lon": "cccc", "lat": "dddd" }, { "lon": "ccccc", "lat": "ddddd" } ] } ] } And when I try the same way to get the file, I didn't get anything. I think maybe it is possible to add the file when I load the webpage like a javascript file. Or maybe with jsonp but I trid and also I got bad answer. As json try, I used: $.ajax({ url: 'localhost/open/listaPuntosZona.json', type: 'GET', data: "{}", contentType: "application/json; charset=utf-8", dataType: "jsonp", jsonp: "callback", jsonpCallback: "jsonpCallbackfunction", error: function () { alert("Error in Jsonp"); } }); function jsonpCallbackfunction(responseData) { alert(responseData); } Also I wrapped json file with: callback( jsonfile code) And also, this other two tries: $.ajax({ url: 'localhost/open/listaPuntosZona.json', type: 'get', error: function(data){ }, complete: function(data){ data=jQuery.parseJSON(data); //do something with data alert(data.zona.zona1.length); } }); $.getJSON('localhost/open/listaPuntosZona.json',function(jsonData){ alert("hola"); alert(jsonData); }); I am using lampp to test the webpage. Do I have to change something? I used jsonp in past but don't know what I am doing wrong now.
0
[ 2, 11917, 487, 528, 3893, 37, 8128, 800, 3726, 3726, 31, 589, 749, 20, 164, 21, 487, 528, 3893, 37, 51, 8128, 9, 163, 130, 15, 550, 31, 376, 21, 487, 528, 3893, 15, 32, 23, 330, 34, 20624, 17, 21, 13, 26120, 3893, 19, 8128, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I can not type in Emulater using PC-Keyboard === I can not type in Emulater using PC-Keyboard. can anyone help me ?
0
[ 2, 31, 92, 52, 1001, 19, 23804, 139, 568, 5168, 8, 4237, 2806, 800, 3726, 3726, 31, 92, 52, 1001, 19, 23804, 139, 568, 5168, 8, 4237, 2806, 9, 92, 1276, 448, 55, 13, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Create a Combobox User Control and pass the items from the mainwindow === I want to create a new User Control which displays my own combobox. (The Combobox has a own style and other things.... (that comes later)) usercontrol xaml file: <UserControl x:Class="WpfApplication1.MyCombobox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignWidth="500" Height="50"> <ComboBox Height="42" ItemsSource="{Binding Path=MyItems}"></ComboBox> </UserControl> usercontrol code behind file: namespace WpfApplication1 { public partial class MyCombobox { public MyCombobox() { InitializeComponent(); MyItems = new List<ComboBoxItem>(); } public List<ComboBoxItem> MyItems { get; set; } } } mainwindow xaml file: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:WpfApplication1="clr-namespace:WpfApplication1" WindowStartupLocation="CenterScreen" Height="350" Width="500" > <Grid> <WpfApplication1:MyCombobox> <WpfApplication1:MyCombobox.MyItems> <ComboBoxItem Height="36"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="30"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Grid.Column="1"> <Grid.RowDefinitions> <RowDefinition Height="16" /> <RowDefinition Height="16" /> </Grid.RowDefinitions> <TextBlock Text="Item Title 1" Grid.Row="0" FontWeight="Bold" /> <TextBlock Text="Item Description 1" Grid.Row="1" FontStyle="Italic" /> </Grid> </Grid> </ComboBoxItem> <ComboBoxItem Height="36"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="30"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Grid.Column="1"> <Grid.RowDefinitions> <RowDefinition Height="16" /> <RowDefinition Height="16" /> </Grid.RowDefinitions> <TextBlock Text="Item Title 2" Grid.Row="0" FontWeight="Bold" /> <TextBlock Text="Item Description 2" Grid.Row="1" FontStyle="Italic" /> </Grid> </Grid> </ComboBoxItem> </WpfApplication1:MyCombobox.MyItems> </WpfApplication1:MyCombobox> </Grid> </Window> I wish that I can add, in the main window, the comboboxitems to my usercontrol. Like that: <WpfApplication1:MyCombobox.MyItems> <ComboBoxItem Height="36"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="30"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Grid.Column="1"> <Grid.RowDefinitions> <RowDefinition Height="16" /> <RowDefinition Height="16" /> </Grid.RowDefinitions> <TextBlock Text="Item Title 2" Grid.Row="0" FontWeight="Bold" /> <TextBlock Text="Item Description 2" Grid.Row="1" FontStyle="Italic" /> </Grid> </Grid> </ComboBoxItem> <!-- more items... --> </WpfApplication1:MyCombobox.MyItems> The UserControl combobox used the Items which are passed in the mainwindow. When I run the code, it only displays an empty combobox What's wrong?
0
[ 2, 1600, 21, 22621, 5309, 4155, 569, 17, 1477, 14, 3755, 37, 14, 407, 27508, 800, 3726, 3726, 31, 259, 20, 1600, 21, 78, 4155, 569, 56, 9412, 51, 258, 22621, 5309, 9, 13, 5, 124, 22621, 5309, 63, 21, 258, 1034, 17, 89, 564, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
formatting in excel === In excel2010 Version can we format time column into text along with AM/PM information for corresponding time. eg.COLUMN A has "daily" as text and column B has "6.00 PM " as value . can we append these A & B Columns and display as "daily 6.00 PM" in single cell?
2
[ 2, 2595, 1203, 19, 20700, 800, 3726, 3726, 19, 20700, 2751, 615, 92, 95, 2595, 85, 4698, 77, 1854, 303, 29, 589, 118, 5576, 676, 26, 7265, 85, 9, 12369, 9, 716, 4404, 103, 21, 63, 13, 7, 9394, 102, 7, 28, 1854, 17, 4698, 334, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse - Making a file quickly accessbile === I use eclipse (Spring STS actually). I need quick access to two files: - web.xml - servlet-context.xml (spring config) Every time I want to open the files, I need to find them and that takes time. Is there a way to create a link on the root folder of a project? This way I can quickly access it? Thanks!
0
[ 2, 11652, 13, 8, 544, 21, 3893, 976, 1381, 16833, 800, 3726, 3726, 31, 275, 11652, 13, 5, 15827, 354, 18, 1121, 6, 9, 31, 376, 2231, 1381, 20, 81, 6488, 45, 13, 8, 2741, 9, 396, 8184, 13, 8, 13, 10321, 1336, 8, 1126, 11969, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ui tabs, intercept default ajax load === I need to be able to modify the url in the anchors for the tabs and add some query params. Most examples floating around the net suggest that I use code like $('#tabs-left').tabs({ select: function (event, ui) { //do some mods here return true; } }).removeClass("ui-corner-all"); My problem is the select event only fires when selecting a new tab, and so I cannot trap the content that is loaded into the default tab. What can I use to trap the loading of the content via ajax ? I see there is a load event, but that only fires after the content is loaded, which is too late. I read in some bug fix that a beforeload event is planned for a future release, but I need something that works now. I am using jquery-ui-1.8.21 Can anyone suggest a way forward ? Thanks, Steed.
0
[ 2, 487, 8190, 93, 13, 5661, 6523, 18, 15, 18324, 12838, 20624, 6305, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 17579, 14, 287, 6362, 19, 14, 6265, 18, 26, 14, 6523, 18, 17, 3547, 109, 25597, 2258, 79, 18, 9, 127, 3770, 8319, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way from performance point of view while giving away the query results through HTTP? === I need to give away results of the query in response to a following URL: http://foo.com/search?from=20&perpage=10 What is the best practice from performance point of view? 1. Run the query every time with WHERE row > N and row <= K 2. Run query once and keep all the result for certain amount of time 3. What else could be done?
0
[ 2, 98, 25, 14, 246, 161, 37, 956, 454, 16, 1418, 133, 1438, 229, 14, 25597, 1736, 120, 7775, 60, 800, 3726, 3726, 31, 376, 20, 590, 229, 1736, 16, 14, 25597, 19, 1627, 20, 21, 249, 287, 6362, 45, 7775, 6903, 4120, 111, 9, 960,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Post text message on facebook wall === I got a problem while posting text message on the wall. I expected the apps will login to fb and post a text message on the wall, but nothing is posted on my wall. The following is my code The login part is the same as the Facebook guide and i just added the permission "publish stream" public class FB_trial extends Activity { Facebook facebook = new Facebook("app_id"); private AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook); private SharedPreferences mPrefs; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fb_trial); /* * The following is tutorial sample code */ mPrefs = getPreferences(MODE_PRIVATE); String access_token = mPrefs.getString("access_token", null); long expires = mPrefs.getLong("access_expires", 0); if(access_token != null) { facebook.setAccessToken(access_token); } if(expires != 0) { facebook.setAccessExpires(expires); } /* * Only call authorize if the access_token has expired. */ if(!facebook.isSessionValid()) { facebook.authorize(this, new String[] {"publish_stream"}, new DialogListener() { @Override public void onComplete(Bundle values) { SharedPreferences.Editor editor = mPrefs.edit(); editor.putString("access_token", facebook.getAccessToken()); editor.putLong("access_expires", facebook.getAccessExpires()); editor.commit(); } @Override public void onFacebookError(FacebookError error) {} @Override public void onError(DialogError e) {} @Override public void onCancel() {} }); } //end of the login sample code //post wall fx Bundle params = new Bundle(); params.putString("message", "Fb testing message"); params.putString("access_token", access_token); mAsyncRunner = new AsyncFacebookRunner(facebook); mAsyncRunner.request("me/feed", params, "POST", new RequestListener(){ @Override public void onComplete(String response, Object state) { System.out.println("post wall success"); } @Override public void onIOException(IOException e, Object state) {} @Override public void onFileNotFoundException(FileNotFoundException e, Object state) {} @Override public void onMalformedURLException(MalformedURLException e, Object state) {} @Override public void onFacebookError(FacebookError e, Object state) {} }, null); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_fb_trial, menu); return true; } @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); facebook.authorizeCallback(requestCode, resultCode, data); } } The "wall post success" message is shown in the log (is that means the request is complete?) but i can't find the post on my wall.
0
[ 2, 678, 1854, 2802, 27, 9090, 769, 800, 3726, 3726, 31, 330, 21, 1448, 133, 15669, 1854, 2802, 27, 14, 769, 9, 31, 1727, 14, 4865, 18, 129, 6738, 108, 20, 13, 13478, 17, 678, 21, 1854, 2802, 27, 14, 769, 15, 47, 626, 25, 6054,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Social Plugin [ Like Button ] custom color scheme === Is there any way to change current color scheme to custom for Like Button?
0
[ 2, 668, 10922, 108, 636, 101, 5167, 13, 500, 5816, 1665, 4276, 800, 3726, 3726, 25, 80, 186, 161, 20, 753, 866, 1665, 4276, 20, 5816, 26, 101, 5167, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Nhibernate memory consumption === I’m using Nhibernate for the first time with MVC3 with telerik, I built a repository and it is working fine, but the thing is when I hosted on a website it consume huge amounts of memories even if accessed by a single user (like a 100MB or so). even when the user is closing the browser the process is still the same and not releasing memory.
1
[ 2, 12109, 15191, 8820, 1912, 8330, 800, 3726, 3726, 31, 1, 79, 568, 12109, 15191, 8820, 26, 14, 64, 85, 29, 307, 8990, 240, 29, 4338, 6639, 15, 31, 392, 21, 24869, 17, 32, 25, 638, 1123, 15, 47, 14, 584, 25, 76, 31, 2812, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SqlCeSyncScopeProvisioning Filter Not Working === I am trying to provision a few scopes on the same table to synchronize different sets of the data within the table. The provisioning works great with no errors. When I go to synchronize, however, the call to SyncOrchestrator.Synchronize() times out. When I sync just one of the scopes, it appears that all of the data is being synchronized, not just the data being defined by the scope filter. Here is my provisioning code for a one of the scopes. The scopes are each run in a separate thread so that they are synchronized concurrently. Server Provisioning: var remoteLogVariableScopeDescription = new DbSyncScopeDescription(string.Format("{0}_{1}", DatabaseID, scopeName)); remoteLogVariableScopeDescription.Tables.Add(SqlCeSyncDescriptionBuilder.GetDescriptionForTable("TableName", localConnection)); var remoteDatabaseConfiguration = new SqlSyncScopeProvisioning(remoteConnection, remoteLogVariableScopeDescription); remoteDatabaseConfiguration.ObjectPrefix = string.Format("Sync_{0}", scopeName); remoteDatabaseConfiguration.Tables["TableName"].AddFilterColumn("Time); remoteDatabaseConfiguration.Tables["TableName"].FilterClause = [side].Time >= DATEADD(minute, -1, GETDATE()); remoteDatabaseConfiguration.SetCreateTableDefault(DbSyncCreationOption.Skip); remoteDatabaseConfiguration.SetUseBulkProceduresDefault(true); remoteDatabaseConfiguration.CommandTimeout = 30; remoteDatabaseConfiguration.Apply() Local Provisioning: DbSyncScopeDescription localFrequentScopeDescription = SqlSyncDescriptionBuilder.GetDescriptionForScope(string.Format("{0}_{1}", DatabaseID, scopeName), string.Format("Sync_{0}", scopeName), remoteConnection); var localDatabaseConfiguration = new SqlCeSyncScopeProvisioning(localConnection, localFrequentScopeDescription); localDatabaseConfiguration.ObjectPrefix = string.Format("Sync_{0}", scopeName); localDatabaseConfiguration.SetCreateTableDefault(DbSyncCreationOption.Skip); localDatabaseConfiguration.Apply(); My questions are: Is the scope filter I provided possible? Can you run multiple scopes on the same table concurrently? Thanks in advance for any help!
0
[ 2, 4444, 255, 1105, 9507, 150, 11555, 2740, 10732, 68, 11945, 52, 638, 800, 3726, 3726, 31, 589, 749, 20, 8738, 21, 310, 9914, 18, 27, 14, 205, 859, 20, 13, 16023, 2952, 421, 3415, 16, 14, 1054, 363, 14, 859, 9, 14, 8738, 68, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mapping multiple data arrays to arbitrary fixed memory addresses === I'm working on a program on a 64-bit Linux machine that needs to map multiple data arrays, of arbitrary length, to fixed memory addresses over which I have no control. I thought mmap() with MAP_FIXED and MAP_ANONYMOUS was the way to go, for example: mmap((void *) 0x401000, 0x18e, PROT_NONE, MAP_ANONYMOUS | MAP_FIXED, -1, 0); However, every time I call this function, it returns MAP_FAILED. I've set _fd_ to -1, which I know is required by some systems, the address is a multiple of my page size (4096), and the length is non-negative, so I'm wondering if perhaps 0x401000 is already being used by my system; I've also tried 0x402000, 0x403000, and 0x404000 with the same result. Is there something I'm missing about mmap(), or is there a way to find out what's already at this address? Even better, since I can't control which addresses I'll need, is there some better way to avoid running into existing mappings?
0
[ 2, 13305, 1886, 1054, 7718, 18, 20, 17237, 3535, 1912, 12636, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 625, 27, 21, 4384, 8, 3326, 13024, 1940, 30, 2274, 20, 2942, 1886, 1054, 7718, 18, 15, 16, 17237, 1476, 15, 20, 3535, 1912, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unchecked Checkboxes === I have a web form that has a check box in it. The form is created dynamically so there could be multiple checkboxes on this form. I need to know whether it is checked or not. The problem is an unchecked checkbox POSTs nothing at all. I know this has been asked before but the solution is always to provide a hidden field with a the value. The problem I have is I need to know whether it was checked out not, not necessarily the value. Is there a way to make this happen? I was thinking I would need to use some javascript but not really sure how to go about it.
0
[ 2, 367, 12542, 69, 2631, 5309, 160, 800, 3726, 3726, 31, 57, 21, 2741, 505, 30, 63, 21, 2631, 1649, 19, 32, 9, 14, 505, 25, 679, 7782, 1326, 86, 80, 110, 44, 1886, 2631, 5309, 160, 27, 48, 505, 9, 31, 376, 20, 143, 1472, 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...
jQuery quicksand issue === So I am configuring quicksand plugin (http://razorjack.net/quicksand/) on my new wordpress website to use it on my portfolio section. I configured evrything and it's working. you can see it live here: http://www.tipoos.com/new/?page_id=43 The problem: I have more Jquery scripts running on my site. for example see the porflio item thumbnails when hovering the image. when I first run the page the hover images are working but whenever I trigger the sorting quicksand functionality to filter my items the hover image effect on the thumbnails stop working and this is really annoying.. I figured maybe it has to do with a Jquery conflict or something but whatever I tried didn't work. couldn't find an answer anywhere... here is my JavaScript file which contains all the scripts in the site including the quicksand settings: https://dl.dropbox.com/u/4405634/functions.js If anyone can assist I'd be happy Thanks a lot!
0
[ 2, 487, 8190, 93, 2231, 18, 290, 1513, 800, 3726, 3726, 86, 31, 589, 1065, 13549, 68, 2231, 18, 290, 10922, 108, 13, 5, 21127, 6903, 13932, 248, 6994, 9, 2328, 118, 25865, 18, 290, 118, 6, 27, 51, 78, 833, 5890, 2271, 20, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mirror effect of an image, why need to do bitwise reversal? === When you try to "mirror" an image, left-to-right style, you could just swap the pixels like this: for i:= 0 to width / 2 for j:= 0 to height swap pixel[i][j] with pixel[width-i][j] But why do we need to do bitwise on each 8bit pixel(stored as char in C) ?
0
[ 2, 3402, 1590, 16, 40, 1961, 15, 483, 376, 20, 107, 1142, 10474, 23493, 60, 800, 3726, 3726, 76, 42, 1131, 20, 13, 7, 8635, 139, 248, 7, 40, 1961, 15, 225, 8, 262, 8, 4183, 1034, 15, 42, 110, 114, 17150, 14, 18146, 18, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What format should ClaimTypes.DateOfBirth use? === I can't find it specified anywhere. I *did* find a Microsoft example that had "5/5/1955". Is that d/m/y or y/m/d. I'm guessing that I probably ought to use ISO 8601, but it would be nice to know for sure.
0
[ 2, 98, 2595, 378, 2632, 4474, 18, 9, 8209, 1041, 21587, 275, 60, 800, 3726, 3726, 31, 92, 22, 38, 477, 32, 9931, 4922, 9, 31, 1637, 3052, 2483, 477, 21, 7099, 823, 30, 41, 13, 7, 10551, 10551, 10223, 7, 9, 25, 30, 13, 43, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Displaying images, which are stored in a string, on a JSP === I am using the below mentioned code on my JSP <% List eCCategoryList = form.getCategoryList(); //Map<String, String> catNameImgMap = (Map<String, String>) session.getAttribute("catNameImgMap"); Map catNameImgMap = (Map) form.getBlogIdNameMap(); String strImage = ""; Iterator it = eCCategoryList.iterator(); ECircularCategory category = null; int counter = 0; while (it.hasNext()) { category = (ECircularCategory) it.next(); strImage = (String) catNameImgMap.get(category.getName()); %> `strImage ` contains images which i need to display on my JSP. I tried displaying the images like: <img src="<%=strImage%>" alt="Test Image 1" width="270" height="190"/> but the above code is not working a simple blank space is shown and nothing else, I need to display the images on my JSP page which are stored in the `strImage ` string, how to I do it? Please suggest.
0
[ 2, 17418, 3502, 15, 56, 50, 8214, 19, 21, 3724, 15, 27, 21, 487, 3401, 800, 3726, 3726, 31, 589, 568, 14, 1021, 2211, 1797, 27, 51, 487, 3401, 13, 1, 11881, 968, 6695, 14375, 93, 5739, 800, 505, 9, 3060, 14375, 93, 5739, 5, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to render a RAILS partial in new.js.erb? === There is a way to render a erb page in js.erb like this with :remote => true in rails: $('#invoice_against_lease').html('$("<%= j render(:file => 'invoice/new.html.erb') %>")'); We have a partial _customer_quote_record like this: <%= f.input :quote_id, :label => 'Quote#:', :collection => quotes_for_invoice(@customer), :include_blank => true %> <%= f.hidden_field :_destroy %> The partial is rendered in html.erb as this: <%= f.simple_fields_for :invoice_items do |builder| %> <%= render 'customer_quote_record', :f => builder %> <% end %> Is there a way to render the partial above in js.erb?
0
[ 2, 184, 20, 16535, 21, 2240, 18, 7284, 19, 78, 9, 728, 18, 9, 106, 220, 60, 800, 3726, 3726, 80, 25, 21, 161, 20, 16535, 21, 13, 106, 220, 2478, 19, 487, 18, 9, 106, 220, 101, 48, 29, 13, 45, 99, 20209, 800, 1, 1151, 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...