unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
center a website in flex === I am trying to make a `websites in flex`. I am facing the problem that my website page is not centered. I Have searched `google` but haven't succeeded yet. I am trying to center `<s:Application>` on my web browsers instead of starting from left hand How can i do that?
0
[ 2, 459, 21, 2271, 19, 14409, 800, 3726, 3726, 31, 589, 749, 20, 233, 21, 13, 1, 14113, 18, 6359, 19, 14409, 1, 9, 31, 589, 4325, 14, 1448, 30, 51, 2271, 2478, 25, 52, 10583, 9, 31, 57, 9036, 13, 1, 16111, 4875, 1, 47, 2933, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 does ruby represent strings internally? === I ran into some trouble while creating a C-Extension for ruby that got me thinking. I wonder how Ruby (1.9.1) handles strings (and all the encoding-stuff) internally? If I have a string like `"o"`, and I pass the string to a C-Function (as `VALUE`), I can deal with it pretty easily using the `RSTRING_PTR()` and the `RSTRING_LEN()` macro. However, if I make the string `ö` (a german umlaut character), `RSTRING_LEN()` will give me `2`. I'm a bit stumped on the contents of `RSTRING_PTR()` in that case, the two bytes are `0xA4` and `0xC3`. What encoding is this? I tried using `"ö".force_encoding( ... )` with different encodings before passing the string to the C-function, but that does not affect the contents of `RSTRING_PTR` at all. What I need is a way to have the string represented as a `WCHAR*` encoded in `UTF-16` (in the case of `"ö"`, that would be `0x00F6`) in my C-function, but that's kinda hard to do if you do not know what encoding you're coming from... thx for any help in advance
0
[ 2, 184, 630, 10811, 3501, 7887, 17739, 60, 800, 3726, 3726, 31, 717, 77, 109, 2572, 133, 2936, 21, 272, 8, 1706, 25573, 26, 10811, 30, 330, 55, 1440, 9, 31, 2666, 184, 10811, 13, 5, 165, 9, 518, 9, 165, 6, 3053, 18, 7887, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why .apk file is not running on the real device === I have developed android app. That app is running on the emulator perfectly. My application get data from webservices. when I run the applicaton on real device. I am getting force close. I am not understanding what is reason. I came to know that we can debug our application by runing on real device. Exaclty I dont know how to do it. I found some link for using real device for debugging http://developer.android.com/tools/device.html. But in this link it is given that usbdrivers are requred for connecting device to pc. I am using samsung galaxy y . I did not found any drivers for that model(GT-S5360). Can any please help me.
0
[ 2, 483, 13, 9, 2552, 197, 3893, 25, 52, 946, 27, 14, 683, 3646, 800, 3726, 3726, 31, 57, 885, 13005, 4865, 9, 30, 4865, 25, 946, 27, 14, 3579, 14868, 5759, 9, 51, 3010, 164, 1054, 37, 2741, 11449, 18, 9, 76, 31, 485, 14, 486...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Switch on animation on Image === After getting the animation on an image to run ([see this SO][1] with I got from here [Animate image in a button][2] I want to be able to switch the animation on and off, depending on a button click from outside. So I added a new DependencyProperty to the Bahavior (with all those things that are needed here) public static readonly DependencyProperty IsShakingProperty = DependencyProperty.Register(IsShakingName, typeof(bool), typeof(ShakeBehavior), new PropertyMetadata(DefaultIsShaking)); I have added a new public property to my ViewModel public bool IsShaking { get; set; } And of course I altered the XAML a little bit: <local:ShakeBehavior RepeatInterval="1" SpeedRatio="3.0" IsShaking="{Binding Path=IsShaking}"/> But what can I do to switch the animation on and off, depending on the ViewModel property set to true or false? (I want to control the animation on a button click) Here is some of the code of which i think it is relevant private Timeline CreateAnimationTimeline() { DoubleAnimationUsingKeyFrames animation = new DoubleAnimationUsingKeyFrames(); animation.SetValue(Storyboard.TargetPropertyProperty, new PropertyPath("(0).(1)", UIElement.RenderTransformProperty, RotateTransform.AngleProperty)); int keyFrameCount = 8; double timeOffsetInSeconds = 0.25; double totalAnimationLength = keyFrameCount * timeOffsetInSeconds; double repeatInterval = RepeatInterval; bool isShaking = IsShaking; // Can't be less than zero and pointless to be less than total length if (repeatInterval < totalAnimationLength) repeatInterval = totalAnimationLength; animation.Duration = new Duration(TimeSpan.FromSeconds(repeatInterval)); int targetValue = 12; for (int i = 0; i < keyFrameCount; i++) animation.KeyFrames.Add(new LinearDoubleKeyFrame(i % 2 == 0 ? targetValue : -targetValue, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(i * timeOffsetInSeconds)))); animation.KeyFrames.Add(new LinearDoubleKeyFrame(0, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(totalAnimationLength)))); return animation; } [1]: http://stackoverflow.com/questions/11317850/add-a-behavior-to-an-image [2]: http://stackoverflow.com/questions/11093302/how-to-animate-an-image-in-a-button-to-shake-every-30-seconds-in-wpf?lq=1
0
[ 2, 5521, 27, 6236, 27, 1961, 800, 3726, 3726, 75, 1017, 14, 6236, 27, 40, 1961, 20, 485, 13, 5, 2558, 1798, 48, 86, 500, 2558, 165, 500, 29, 31, 330, 37, 235, 636, 3443, 5281, 1961, 19, 21, 5167, 500, 2558, 135, 500, 31, 259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to remove dynamically inflated views? === In a simple card game that i want to develop, I have three buttons: button1,button2 and button3. button1 creates two imageviews in a tablerow and displays the image. When button2 and/or button3 is clicked, it dynamically adds imageview on the tablerow through layout inflater. When game is over, I want user to click button1 and start things all over again. I am able to do that but the problem is, the imageviews that were previously displayed by clicking button2 and button3 also displays. I want them to be removed when button1 is clicked. How can I remove them on click of button1? Please help me!
0
[ 2, 184, 20, 4681, 7782, 1326, 29788, 4146, 60, 800, 3726, 3726, 19, 21, 1935, 2056, 250, 30, 31, 259, 20, 2803, 15, 31, 57, 132, 12861, 45, 5167, 165, 15, 811, 444, 135, 17, 5167, 240, 9, 5167, 165, 9695, 81, 1961, 4725, 18, 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...
Magento retreive bundled option images === I've been working on my first magento deploy. Got a pretty customized theme built up... tackling some of the non-standard customizations now: One of my primary product types is an office chair which I have set up as a bundled product. There are many options available for this product type (about 100 fabric options, arm style, lumbar, headrest etc) and I need to be able to show an image for each of these on the catalog/product/view page. Being a bundled product (and I'll refrain from any discussion about whether this was the right product type - we went around in circles debating between a configurable and a bundled) - each product is assembled from a number of simple products (as options). These simple products can have images uploaded to them, and I've done so. **I now want to retrieve the urls to those from the media folder...** After some hunting - these seem to be the essential elements: **theme/../template/catalog/product/view/options.phtml** <?php $_options = Mage::helper('core')->decorateArray($this->getOptions()) ?> <dl> <?php foreach($_options as $_option): ?> <?php echo $this->getOptionHtml($_option) ?> <?php endforeach; ?> </dl> **theme/../template/bundle/catalog/product/view/type/bundle/option/select.phtml** <?php /* @var $this Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Select */ ?> <?php $_option = $this->getOption(); ?> <?php $_selections = $_option->getSelections(); ?> i found finally found **`getSelections()`** in: class Mage_Bundle_Model_Resource_Price_Index extends Mage_Core_Model_Resource_Db_Abstract { ... /** * Retrieve bundle options with selections and prices by product * * @param int $productId * @return array */ public function getSelections($productId) { $options = array(); $read = $this->_getReadAdapter(); $select = $read->select() ->from( array('option_table' => $this->getTable('bundle/option')), array('option_id', 'required', 'type') ) ->join( array('selection_table' => $this->getTable('bundle/selection')), 'selection_table.option_id=option_table.option_id', array('selection_id', 'product_id', 'selection_price_type', 'selection_price_value', 'selection_qty', 'selection_can_change_qty') ) ->join( array('e' => $this->getTable('catalog/product')), 'e.entity_id=selection_table.product_id AND e.required_options=0', array() ) ->where('option_table.parent_id=:product_id'); $query = $read->query($select, array('product_id' => $productId)); while ($row = $query->fetch()) { if (!isset($options[$row['option_id']])) { $options[$row['option_id']] = array( 'option_id' => $row['option_id'], 'required' => $row['required'], 'type' => $row['type'], 'selections' => array() ); } $options[$row['option_id']]['selections'][$row['selection_id']] = array( 'selection_id' => $row['selection_id'], 'product_id' => $row['product_id'], 'price_type' => $row['selection_price_type'], 'price_value' => $row['selection_price_value'], 'qty' => $row['selection_qty'], 'can_change_qty' => $row['selection_can_change_qty'] ); } return $options; } so we get back an array with `selection_id`, `product_id`, `price_type` etc... but nothing referring to the image url for that selection... Given that: class Mage_Catalog_Helper_Product extends Mage_Core_Helper_Url { ... public function getImageUrl($product) { $url = false; if (!$product->getImage()) { $url = Mage::getDesign()->getSkinUrl('images/no_image.jpg'); } elseif ($attribute = $product->getResource()->getAttribute('image')) { $url = $attribute->getFrontend()->getUrl($product); } return $url; } I'm trying to build a js object with refs to each selection's image url kind of like so in **theme/../template/bundle/catalog/product/view/type/bundle/option/select.phtml** var option_set_<?php echo $_option->getId() ?> = {}; <?php foreach ($_selections as $_selection): ?> option_set_<?php echo $_option->getId() ?>._<?php echo $_selection->getSelectionId() ?> = '<?php echo $_selection->getImageUrl(); ?>'; <?php endforeach; ?> But `$_selection` obviously isn't typed correctly because it just bounces me to the placeholder graphic. Assuming these options can be typed as a Product (or somehow obtain the simple product from the **selection_id**, it seems like something like that can work. I'm not sure if that's exactly how I want to manage this feature, but if I can just get a stack of urls - then I'll be in business Weirdly, the interwebs is basically silent on this subject. Apparently nobody needs to show images for their product options (or, rather, the only solutions are paid extensions - which will be a last resort). Anyone have some ideas on how I can go about figuring this out? Cheers! jesus tapdancing christ... could Mage be any more complicated?
0
[ 2, 4723, 17050, 13, 6239, 99, 1284, 10194, 43, 4255, 3502, 800, 3726, 3726, 31, 22, 195, 74, 638, 27, 51, 64, 4723, 17050, 17617, 9, 330, 21, 1772, 28779, 3184, 392, 71, 9, 9, 9, 15586, 802, 109, 16, 14, 538, 8, 15566, 5816, 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...
Benefits and drawbacks of strongly typed datadets for DAL in .Net === I'm currently working with a system that has inherited a DAL using .Net's strongly typed datasets. I have never worked with them before this, but I'm finding that I have a strong aversion to using them. Compared to a POCO based DAL, them seem to be clunky, difficult to manage, and the resulting objects are highly coupled with database-specific concerns (e.g., accessing objects from tables and rows, getting desired data by key values, etc -- isn't the entire purpose of a DAL to abstract this away from logic layers?). There has been some discussion about rewriting and/or re-factoring parts of the database layer. I, personally, would like to see these datasets removed, but I'm having a hard time convincing some of my colleagues, who are used to using them. What are some of the pros and cons of using strongly typed datasets vs. a POCO based DAL? Am I justified in my aversion to strongly typed datasets, or is the community consensus that they arn't a problem? Are there any other solutions that I'm missing? Although I also agree that there are benefits to using an ORM framework like NHibernate, I think a library of that complexity would be a hard sell on my colleagues. If anyone can provide a compelling enough argument to this direction, I would like to hear it.
0
[ 2, 5800, 17, 2003, 1958, 18, 16, 5020, 1001, 43, 1054, 43, 6095, 26, 6868, 19, 13, 9, 2328, 800, 3726, 3726, 31, 22, 79, 871, 638, 29, 21, 329, 30, 63, 7179, 21, 6868, 568, 13, 9, 2328, 22, 18, 5020, 1001, 43, 1054, 3554, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to start dragging sortable item programatically === Here is the situation I have some items/elements and make them sortable using jQuery UI/sortable. I am using a handle for initiating the drag. Now I want to have the handle outside of the item to be dragged. According to the documentation the handle has to be a descendant of the element to be dragged. The question is: Is it possible to have the handle outside of the item? Are there any good workarounds? One thought is to initiate the dragging programmatically, but I have no idea where to start. This issue has been raised before in the jQuery UI tracker, but it is unclear what the plans are. http://bugs.jqueryui.com/ticket/3022
0
[ 2, 184, 20, 799, 13052, 2058, 579, 9101, 625, 721, 8438, 800, 3726, 3726, 235, 25, 14, 1858, 31, 57, 109, 3755, 118, 27567, 18, 17, 233, 105, 2058, 579, 568, 487, 8190, 93, 13, 5661, 118, 22843, 579, 9, 31, 589, 568, 21, 3053, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Clickable Views in Custom ExpandableListView === transferAvailPowered.axml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:focusable="true" android:layout_margin="5dp" android:padding="5dp" android:gravity="left"> <TextView android:id="@+id/availSerial" android:layout_width="0dp" android:layout_weight=".30" android:layout_height="wrap_content" android:layout_marginLeft="45dp" android:layout_marginRight="5dp" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:focusable="false" android:padding="5dp" android:gravity="left" /> <TextView android:id="@+id/availModel" android:layout_width="0dp" android:layout_weight=".30" android:layout_height="wrap_content" android:layout_margin="5dp" android:focusable="false" android:padding="5dp" android:gravity="left" /> <AutoCompleteTextView android:id="@+id/availSite" android:layout_width="120dp" android:layout_height="wrap_content" android:padding="5dp" android:hint="To Site" android:background="@android:color/white" android:textColor="@android:color/black" android:textCursorDrawable="@null" android:focusable="false" android:layout_margin="5dp" android:gravity="left" /> <ImageButton android:id="@+id/addToTransfer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dp" android:layout_margin="5dp" android:background="@drawable/addsmall" android:focusable="false" android:gravity="left" /> </LinearLayout> transferAvailAttached.axml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:focusable="false" android:layout_margin="5dp" android:padding="5dp"> <TextView android:id="@+id/availSerial" android:layout_width="0dp" android:layout_weight=".30" android:focusable="false" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp" android:gravity="right" /> <TextView android:id="@+id/availModel" android:layout_width="0dp" android:layout_weight=".30" android:layout_height="wrap_content" android:focusable="false" android:layout_margin="5dp" android:padding="5dp" android:gravity="center" /> <CheckBox android:id="@+id/include" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left|center_vertical" android:focusable="false" android:layout_marginRight="30dp" android:background="@drawable/bg_checkbox" /> <ImageButton android:id="@+id/removeAttachment" android:layout_width="wrap_content" android:layout_height="wrap_content" android:focusable="false" android:padding="5dp" android:layout_margin="5dp" android:background="@drawable/deletesmall" android:gravity="right" /> </LinearLayout> Adapter class EquipAdapter : BaseExpandableListAdapter { private List<CPEquipment> Parent { get; set; } private List<List<CPEquipment>> Child { get; set; } private Context _context { get; set; } private IListAdapter _adapter { get; set; } private ExpandableListView _list { get; set; } public EquipAdapter(Context context, List<CPEquipment> parent, List<List<CPEquipment>> child, IListAdapter adapter, ExpandableListView list) { _context = context; Parent = parent; Child = child; _adapter = adapter; _list = list; } public override Java.Lang.Object GetChild(int groupPosition, int childPosition) { List<CPEquipment> level1 = Child.ElementAt(groupPosition); CPEquipment level2 = level1.ElementAt(childPosition); E e = new E() {Serial = level2.Serial, Model = level2.Model}; return e; } public override long GetChildId(int groupPosition, int childPosition) { return Convert.ToInt32(groupPosition.ToString(CultureInfo.InvariantCulture) + childPosition.ToString(CultureInfo.InvariantCulture)); } public override int GetChildrenCount(int groupPosition) { return Child.ElementAt(groupPosition).Count; } public override View GetChildView(int groupPosition, int childPosition, bool isLastChild, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater)_context.GetSystemService(Context.LayoutInflaterService); convertView = inflater.Inflate(Resource.Layout.transferAvailAttached, null); } E e = (E)GetChild(groupPosition, childPosition); TextView serial = (TextView)convertView.FindViewById(Resource.Id.availSerial); serial.Text = e.Serial; TextView model = (TextView)convertView.FindViewById(Resource.Id.availModel); model.Text = e.Model; return convertView; } public override Object GetGroup(int groupPosition) { CPEquipment c = Parent.ElementAt(groupPosition); E e = new E(){Serial = c.Serial, Model = c.Model, Type = c.Status}; return e; } public override long GetGroupId(int groupPosition) { return groupPosition; } public override View GetGroupView(int groupPosition, bool isExpanded, View convertView, ViewGroup parent) { E e = (E)GetGroup(groupPosition); if (convertView == null) { LayoutInflater inflater = (LayoutInflater)_context.GetSystemService(Context.LayoutInflaterService); convertView = inflater.Inflate(Resource.Layout.transferAvailPowered, null); } TextView serial = (TextView)convertView.FindViewById(Resource.Id.availSerial); serial.Text = e.Serial; TextView model = (TextView)convertView.FindViewById(Resource.Id.availModel); model.Text = e.Model; AutoCompleteTextView acText = (AutoCompleteTextView)convertView.FindViewById(Resource.Id.availSite); acText.Adapter = _adapter; _list.ExpandGroup(groupPosition); return convertView; } public override bool IsChildSelectable(int groupPosition, int childPosition) { return true; } public override int GroupCount { get { return Parent.Count; } } public override bool HasStableIds { get { return true; } } } Outcome: ![enter image description here][1] In this scenario, the AutoCompleteTextView in the parent group and the green plus button should be "selectable" so that the user can input the info into the field and click that button without collapsing the group. And the CheckBox and the red x button in the child should also be "selectable" so the user can check the CheckBox and click the button. The only part of that that actually works is that the CheckBox is selectable and the group doesn't collapse because for lack of a better term, the group layout is "dead" and does nothing when pressed. [1]: http://i.stack.imgur.com/G089M.jpg
0
[ 2, 10840, 579, 4146, 19, 5816, 6073, 579, 5739, 4725, 800, 3726, 3726, 2617, 4961, 947, 9844, 9, 7522, 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, 19333, 4414, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jasmine not loading js files from the 'src' directory === I've managed to successfully build my maven project which uses the [jasmine-maven-plugin][1] to put the source and test javascript files in the right places. When I have a simple test such as: describe('true', function() { it('should be true', function() { expect(true).toBe(true); }) }) the whole thing builds with no problems, and all the jasmine specs pass. But when I try to create an instance of an object that I've outlined in one of the files that are included target/jasmine/src folder, I get a "ReferenceError: "Stat" is not defined" error. describe('stat test',function() { var stat = new Stat(); it('get data',function() { stat.data = 13; expect(stat.getData()).toBe(13); }); }); Are the js files not loading properly? Totally stumped here. [1]: https://github.com/searls/jasmine-maven-plugin
0
[ 2, 15885, 52, 12797, 487, 18, 6488, 37, 14, 13, 22, 18, 5453, 22, 16755, 800, 3726, 3726, 31, 22, 195, 1471, 20, 3673, 1895, 51, 1216, 3124, 669, 56, 2027, 14, 636, 1004, 18, 7640, 8, 540, 3124, 8, 18527, 5831, 500, 2558, 165, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
APPCRASH when install IBM websphere commerce developer 7.0.0.0 === I try to install IBM Websphere commerce developer 7.0.0.0 in windows server 2008 r2 standar, but the installation don't finish by the following error: Problem signature: Problem Event Name: APPCRASH Application Name: jar.exe Application Version: 6.0.0.0 Application Timestamp: 49a91e61 Fault Module Name: hyprtshim24.dll Fault Module Version: 2.4.0.9087 Fault Module Timestamp: 4d51e7cd Exception Code: c0000005 Exception Offset: 00002dfc OS Version: 6.1.7600.2.0.0.272.7 Locale ID: 9226 Additional Information 1: 1ec0 Additional Information 2: 1ec0fd70d07d060e5bfcf53c69ad1739 Additional Information 3: 2c48 Additional Information 4: 2c48940de5e7d1cb2e131ad6a0ca2feb Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt
0
[ 2, 4865, 150, 15469, 76, 16146, 10233, 2741, 14079, 5577, 10058, 453, 9, 387, 9, 387, 9, 387, 800, 3726, 3726, 31, 1131, 20, 16146, 10233, 2741, 14079, 5577, 10058, 453, 9, 387, 9, 387, 9, 387, 19, 1936, 8128, 570, 761, 135, 1261,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 scrollTo on submit === so after numerous hours of plugging away, I'm still scratching my head at how to accomplish this (quite simple) task. On this page : www.bassworx.com/matrix I want it to scroll down to the #results area, upon clicking submit on the input button. I have tried to accomplish this with scrollTo and JSlideto, I have a feeling I should be able to do this with either of them, as the examples are very much what I want to happen. Can somebody please take a look at the page in question, and help me sort this out? It's beginning to really give me a headache, and I'm almost certain I'm just missing some minor syntax or something.
0
[ 2, 487, 8190, 93, 12159, 262, 27, 12298, 800, 3726, 3726, 86, 75, 1548, 974, 16, 10922, 2762, 229, 15, 31, 22, 79, 174, 22202, 51, 157, 35, 184, 20, 14570, 48, 13, 5, 19539, 1935, 6, 3005, 9, 27, 48, 2478, 13, 45, 13, 6483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Apple devices pick up wrong date from iCal file === I'm producing iCal events through the [Drupal calendar module][1]. I can import it without problems into Thunderbird and Korganizer on a Kubuntu machine. But on Macs and also on an iPhone, the event wasn't recognized correctly. The event is imported, but the date used as start date ist DTSTAMP instead of DTSTART. An almost identical ics file from another website (Typo3) works without problems, though. Here are the two files: This one works: BEGIN:VCALENDAR VERSION:2.0 PRODID:-//TYPO3/NONSGML Calendar Base (cal) V1.3.2//EN METHOD:PUBLISH BEGIN:VEVENT UID:www.example.com_4_46252 DTSTAMP:20120530T090015 DTSTART:20120723T170000Z DTEND:20120723T170001Z SUMMARY:The Title DESCRIPTION:Here is the description. LOCATION:Some location ORGANIZER;CN=Name:MAILTO:email@example.com END:VEVENT END:VCALENDAR And this one doesn't: BEGIN:VCALENDAR VERSION:2.0 METHOD:PUBLISH PRODID:-//Drupal iCal API//EN BEGIN:VEVENT UID:calendar.52399.field_date.0.0 SUMMARY:The Title DTSTAMP:20120624T200438Z DTSTART:20120723T170000Z DTEND:20120723T170000Z URL;VALUE=URI:http://example.com LOCATION:Some location DESCRIPTION:Here is the description. END:VEVENT END:VCALENDAR Any hints where I could find the problem? [1]: http://drupal.org/project/calendar
0
[ 2, 4037, 4690, 2036, 71, 1389, 1231, 37, 13, 4272, 3893, 800, 3726, 3726, 31, 22, 79, 4081, 13, 4272, 963, 120, 14, 636, 43, 7964, 192, 7036, 12613, 500, 2558, 165, 500, 9, 31, 92, 9010, 32, 366, 1716, 77, 25763, 17, 680, 6826, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Openrasta content negotiation through URL parameter? === is there a way to content negotiate using the url parameter in Openrasta? I am trying to do something like... /search?q={query}&p={page}&format={xml|json} As shown above, I would like to pass in the format parameter with either "xml" or "json". How do I go about doing this? Thanks in advance.
0
[ 2, 368, 525, 6106, 2331, 22479, 120, 287, 6362, 18906, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 2331, 15172, 568, 14, 287, 6362, 18906, 19, 368, 525, 6106, 60, 31, 589, 749, 20, 107, 301, 101, 9, 9, 9, 13, 118, 25136, 60, 125...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
About networking sockets === Do I need to have a server to work with sockets? Can I directly send packets to other client and receive it without neither of the host being a server?
0
[ 2, 88, 16230, 18482, 18, 800, 3726, 3726, 107, 31, 376, 20, 57, 21, 8128, 20, 170, 29, 18482, 18, 60, 92, 31, 1703, 2660, 12795, 18, 20, 89, 6819, 17, 2588, 32, 366, 3028, 16, 14, 2015, 142, 21, 8128, 60, 3, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
android - listen to volume changes events === i've searched on some places about this , but i didn't find an answer . is there any way to listen to the event of volume change on android , without just taking over the volume buttons ? the only thing i've found that works is [here][1] , but it works only after the volume control has disappeared . not all devices have volume buttons , and i need to capture the volume changes as soon as they occur , and not after the volume dialog is gone. [1]: http://stackoverflow.com/questions/6896746/android-is-there-a-broadcast-action-for-volume-changes
0
[ 2, 13005, 13, 8, 3834, 20, 2310, 1693, 963, 800, 3726, 3726, 31, 22, 195, 9036, 27, 109, 1489, 88, 48, 13, 15, 47, 31, 223, 22, 38, 477, 40, 1623, 13, 9, 25, 80, 186, 161, 20, 3834, 20, 14, 807, 16, 2310, 753, 27, 13005, 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...
Simple background color div without white space === Trying to create a content box that has a background color of white. It is inbetween the header div and footer div which are both images. I can't get it to align with the two divs AND have it without white space, only one or the other. This is the CSS: #content { background-color:#ffffff; width:1024px; margin: 0 auto; font-family:Verdana, Geneva, sans-serif; font-size:12px; padding: 0; display: inline-block; } How do I get the content box to align with the rest of the page and not have any whitespaces?
0
[ 2, 1935, 2395, 1665, 13, 12916, 366, 359, 726, 800, 3726, 3726, 749, 20, 1600, 21, 2331, 1649, 30, 63, 21, 2395, 1665, 16, 359, 9, 32, 25, 19, 14427, 14, 157, 106, 13, 12916, 17, 1749, 106, 13, 12916, 56, 50, 156, 3502, 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...
marquee works on simulator but not on device === Hi I had added marquee tag in my application which works well in android simulator but when I install it on device it is not working. On device it doesn't show me marquee. Below is my code for marquee. <marquee behavior="scroll" direction="left">Welcome To Jquery World</marquee>
0
[ 2, 1423, 2005, 62, 693, 27, 24565, 47, 52, 27, 3646, 800, 3726, 3726, 4148, 31, 41, 905, 1423, 2005, 62, 3383, 19, 51, 3010, 56, 693, 134, 19, 13005, 24565, 47, 76, 31, 16146, 32, 27, 3646, 32, 25, 52, 638, 9, 27, 3646, 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...
what is wrong with this pkcs12 file(pfx) === I created a my private CA and form a pkcs12 certificate file for testing, i did this on my linux box with openssl by: (1)openssl req -config /etc/openssl.cnf -subj /CN=aa1@2C/O=Ruckus Wireless, Inc./ST=CA/C=US -batch -new -nodes -key users/2C.key -out users/2C.csr (2)openssl ca -config /etc/openssl.cnf -extensions client_cert -batch -in users/2C.csr -out users/2C.crt (3)openssl pkcs12 -export -out users/2C.pfx -inkey users/2C.key -in users/2C.crt -certfile cacert.pem -passout stdin after that, i copy the 2c.pfx on windows 7 machine and try to install it, but the error message bumped out: **Invalid Public Key Security Object File: This file is invalid for use as the following:Personal Information Exchange.** what is the reason to cause this? did i form a wrong pfx file?
0
[ 2, 98, 25, 1389, 29, 48, 13, 17244, 6824, 918, 3893, 5, 7721, 396, 6, 800, 3726, 3726, 31, 679, 21, 51, 932, 1658, 17, 505, 21, 13, 17244, 6824, 918, 6259, 3893, 26, 4431, 15, 31, 144, 48, 27, 51, 13024, 1649, 29, 8965, 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...
make resque workers more instant responding? guidelines for configuration === Im using resque to have some jobs running in the background, a client ( user ) initiates these by doing an action on the web app in there browser. The problem is it takes several seconds for the action to be triggered. How could one speed it up ? I need resque to respond more instant. IM using all default setup and config nothing modified. Are there any guidelines for configuration or suggestions out of the field to make resque response faster? Im running with 1 worker and low queues like 1,2 at a time.
0
[ 2, 233, 761, 17029, 2004, 91, 6322, 15887, 60, 12629, 26, 8091, 800, 3726, 3726, 797, 568, 761, 17029, 20, 57, 109, 4844, 946, 19, 14, 2395, 15, 21, 6819, 13, 5, 4155, 13, 6, 17014, 18, 158, 34, 845, 40, 1028, 27, 14, 2741, 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...
is FileCleaner to avoid multiple deployments in web app? === Eclipse is giving Out of memory exception on my UNIX machine ,Having jdk 1.6.while trying to run my web application multiple times without terminating my local application server . Then increased my heap space through vm arguments and also tried with changing Eclipse.ini. But no use . googled for sometime and came to know that it is problem with the webapp classLoader multiple deployments .I am unable to find a solution for this problem .please give a solution to overcome this . I found to use **FileCleaner** for to avoid multiple deployment and written code in LogoutServlet. @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.getSession().invalidate(); FileCleaner.getInstance().exitWhenFinished(); resp.sendRedirect("/index"); } But it is not working. Thanks in advance .
0
[ 2, 25, 3893, 20254, 106, 20, 2658, 1886, 10475, 18, 19, 2741, 4865, 60, 800, 3726, 3726, 11652, 25, 1438, 70, 16, 1912, 5391, 27, 51, 22540, 1940, 13, 15, 13693, 487, 43, 197, 137, 9, 379, 9, 10144, 749, 20, 485, 51, 2741, 3010,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Heder location redirect after logout to remove ?q=logout === As it says I nead to remove the ?q=logout. First I tried this if ($_GET["q"] == "logout") { $user->user_logout(); header("location:".$_SERVER["SERVER_NAME"]); } The second thing i tried: if ($_GET["q"] == "logout") { $user->user_logout(); header("location:include/redirect_home.php"); } and in redirect_home.php header("location:".$_SERVER["SERVER_NAME"]); In both cases the page redirects to www.mypage.com/?q=logout I need to remove the ?q=logout after $user->user_logout(); is processed
0
[ 2, 24, 1157, 1474, 302, 14706, 75, 6738, 1320, 20, 4681, 13, 60, 1251, 3726, 5567, 1320, 800, 3726, 3726, 28, 32, 898, 31, 2836, 1283, 20, 4681, 14, 13, 60, 1251, 3726, 5567, 1320, 9, 64, 31, 794, 48, 100, 13, 5, 4403, 1, 3060...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to load Existing Android Project in Android SDK 20? === Recently i updated my android SDK from `Version 19` to `Version 20`. In the latest version has more features but i don't know how to import the existing android project in it. In `Version 19` when we click `File->New->Android Application Project`, a window having a field `"create project for existing source"`. But in `Version 20`, if i open the existing project means i'm using the following procedure, `File->Import->Android->Existing Android Code into WorkSpace`. Version 19 is more easier to create an application packages when compared to Version 20. Here i wish to know is there any other way to import an existing android project. Thanks in advance.
0
[ 2, 184, 20, 6305, 3149, 13005, 669, 19, 13005, 13, 18, 43, 197, 434, 60, 800, 3726, 3726, 1989, 31, 6372, 51, 13005, 13, 18, 43, 197, 37, 13, 1, 10898, 732, 1, 20, 13, 1, 10898, 434, 1, 9, 19, 14, 5736, 615, 63, 91, 967, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL visit = visit +1 , staring behavior === I haw active site for one day. Inside pages i haw this function public function visit_update($link){ $query = mysql_query("UPDATE user SET visit = visit + 1 WHERE link = \"$link\" "); } Every user has a unique link. I haw one active user only, because of testing (page is currently in testing) . Last night for one active user it was counted 50 visits in database. Today i when i was checking it, it was 560 visits. I haw also a google analytic activated and there it was counting for that page 50 or so visits and 3 visitors , because I was testing in 3 different explorers. The function dos not repeat it self , and only counting visitors that are not owners of the page. How is that possible ?
0
[ 2, 51, 18, 22402, 2139, 800, 2139, 13, 16628, 13, 15, 2993, 3257, 800, 3726, 3726, 31, 1458, 499, 1348, 689, 26, 53, 208, 9, 572, 4434, 31, 1458, 499, 48, 1990, 317, 1990, 2139, 1, 576, 8209, 5, 4403, 6258, 6, 1, 5579, 8190, 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...
If you are given a stack as an ADT, implement enqueue and dequeue functions for a queue without using its properties === Also, you can't use pointers This question is an interview question and sounds confusing to me as stack ADT is given and operations on queue are asked...
0
[ 2, 100, 42, 50, 504, 21, 7566, 28, 40, 21, 43, 38, 15, 8713, 1957, 2005, 4185, 17, 121, 2005, 4185, 3719, 26, 21, 22521, 366, 568, 82, 3704, 800, 3726, 3726, 67, 15, 42, 92, 22, 38, 275, 454, 445, 48, 1301, 25, 40, 2421, 130...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ssh scripting and copying files === I am writing a BASH deployment script on RH 5. Script runs great and send out an email at the end of the script run. However, what I need to do is, at the end of the script, if I detect any failure, I need to copy log files back local server to attach to the email. Script can detect failure fine, how to copy log files back. I don't want to just cat the log files as they can be huge. Any suggestions? Thanks S
0
[ 2, 13, 18, 1635, 3884, 68, 17, 4344, 68, 6488, 800, 3726, 3726, 31, 589, 1174, 21, 13158, 10475, 3884, 27, 13, 10288, 331, 9, 3884, 1461, 374, 17, 2660, 70, 40, 8517, 35, 14, 241, 16, 14, 3884, 485, 9, 207, 15, 98, 31, 376, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
UIBarButton image size reduces on orientation change === I have a set of UIBarButtons. Out of them, I bar button's image size is getting reduced every time I change the orientation. Also, I am getting that problem only on one iPad i.e., iPad3. I am not getting that problem on other devices(iPad2) or simulators. What do you think might be the problem? Do I need to do anything else for devices with retina display?
0
[ 2, 13, 5661, 1850, 811, 444, 1961, 1072, 16335, 27, 10245, 753, 800, 3726, 3726, 31, 57, 21, 309, 16, 13, 5661, 1850, 811, 444, 18, 9, 70, 16, 105, 15, 31, 748, 5167, 22, 18, 1961, 1072, 25, 1017, 2736, 352, 85, 31, 753, 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...
in which folder the searched files are saved in java lucene? === I am new to lucene can any body help me here am searching where the searched files are saved in a separate folder and i want to view the saved files after searching
1
[ 2, 19, 56, 19294, 14, 9036, 6488, 50, 4377, 19, 8247, 18515, 556, 60, 800, 3726, 3726, 31, 589, 78, 20, 18515, 556, 92, 186, 358, 448, 55, 235, 589, 5792, 113, 14, 9036, 6488, 50, 4377, 19, 21, 1725, 19294, 17, 31, 259, 20, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to optimize the spee view without overriding the views === I am new to spree. I want to make some changes in the views of spree and for that i found two methods: 1. Using Deface 2. By overriding the view Currently, i am overriding the views but it was recommended that this approach is not very good. I want to use deface but unable to apply it: Deface::Override.new(:virtual_path => "spree/checkout/registration", :insert_before => "div#registration", :text => "<p>Registration is the future!</p>", :name => "registration_future") Please help me how could i optimize my views? Thanks in advance
0
[ 2, 184, 20, 22864, 14, 9882, 62, 1418, 366, 84, 5175, 68, 14, 4146, 800, 3726, 3726, 31, 589, 78, 20, 28761, 9, 31, 259, 20, 233, 109, 1693, 19, 14, 4146, 16, 28761, 17, 26, 30, 31, 216, 81, 3195, 45, 137, 9, 568, 121, 6413,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Form not passing through hidden field value correctly in Facebook, but ok elsewhere === I have a script that first checks if the form page is referred from a GET parameter $page['is_referred'] = isset($_GET['rfr']) ? 1 : 0; Then that set value is used as the value of a hidden field in a Symfony2 form $form = $app['form.factory']->createBuilder('form', $data) //.... ->add('referred', 'hidden', array( 'data' => $page['is_referred'], )) ->getForm(); then if ('POST' === $request->getMethod()) { $form->bindRequest($request); if ($form->isValid()) { //... $referred = $form->get('referred')->getData(); $msg_referer = "Thanks from Referrer"; $msg_noreferer = "Thanks"; if( 1 == $referred ){ $page['thanks'] = $msg_referer; }else{ $page['thanks'] = $msg_noreferer; } //.. } } The hidden field is read okay on the main site when `?rfr` is in the url, but when iframed in Facebook and `?rfr` is present, the $msg_noreferer message is displayed instead. Any ideas as to why this happens?
0
[ 2, 505, 52, 2848, 120, 3689, 575, 1923, 12044, 19, 9090, 15, 47, 5854, 6040, 800, 3726, 3726, 31, 57, 21, 3884, 30, 64, 16602, 100, 14, 505, 2478, 25, 1870, 37, 21, 164, 18906, 5579, 6486, 2558, 22, 403, 1, 28855, 22, 500, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does :s command regex not understand '?' === When you try to remove html tags from a line, one possible way of doing it, is to use the :s command and write a regex that understands the beginning and the end of a tag at the same time. My go for it was: :s %</?center>%%g But this way, vim says it doesn't find anything. So I had to use the following instead, which worked: :s %</*center>%%g Why is that one works but the other doesn't? Shouldn't `?` say "the character before can come once or maybe not at all"?
0
[ 2, 483, 630, 13, 45, 18, 1202, 7953, 1706, 52, 1369, 13, 22, 5663, 800, 3726, 3726, 76, 42, 1131, 20, 4681, 13, 15895, 3383, 18, 37, 21, 293, 15, 53, 938, 161, 16, 845, 32, 15, 25, 20, 275, 14, 13, 45, 18, 1202, 17, 2757, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Admob integration failing thread to work properly on AndEngine based app === I'm building an android game powered by AndEngine game framework. I'm using the following code to inegrate with Admob: > @Override protected void onSetContentView() { mRenderSurfaceView = new RenderSurfaceView(this, mEngine); mRenderSurfaceView.applyRenderer(); setContentView(R.layout.main); final FrameLayout frameLayout = new FrameLayout(this); final FrameLayout.LayoutParams frameLayoutLayoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.FILL_PARENT); AdView adView = new AdView(this, AdSize.BANNER, "XXXXXXX"); adView.refreshDrawableState(); adView.setVisibility(AdView.VISIBLE); final FrameLayout.LayoutParams adViewLayoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER_HORIZONTAL|Gravity.BOTTOM); AdRequest adRequest = new AdRequest(); adRequest.addTestDevice(AdRequest.TEST_EMULATOR); adRequest.addTestDevice(Secure.ANDROID_ID); adView.loadAd(adRequest); final android.widget.FrameLayout.LayoutParams surfaceViewLayoutParams = new FrameLayout.LayoutParams(super.createSurfaceViewLayoutParams()); frameLayout.addView(this.mRenderSurfaceView, surfaceViewLayoutParams); frameLayout.addView(adView, adViewLayoutParams); this.setContentView(frameLayout, frameLayoutLayoutParams); } in the game, when a ball is created it makes a fading-in animation I made with a thread: > new Thread(new Runnable() { public void run() { mBody.setType(BodyType.StaticBody); mSprite.setAlpha(0.0f); try { while(mSprite.getAlpha() < 1.0f) { mSprite.setAlpha(mSprite.getAlpha() + 0.01f); Thread.sleep(3); } mBody.setType(BodyType.DynamicBody); mBody.setLinearVelocity(new Vector2(0, 10)); } catch (InterruptedException e) { e.printStackTrace(); } } }).start(); The problem is: the animation works perfectly, BUT when I'm adding the Admob code the Sprite appears for a second and then, just disappearing. it seems to me there is a problem between this two "chunks" of code. but I can't put my finger on the solution or even what causing this problem to occur. I only know that the animation is not working when the Admob code is combined in my app. I'd like to know why and how to solve it. thank you guys
0
[ 2, 21, 43, 1293, 220, 8078, 7250, 9322, 20, 170, 7428, 27, 17, 16847, 432, 4865, 800, 3726, 3726, 31, 22, 79, 353, 40, 13005, 250, 7462, 34, 17, 16847, 250, 6596, 9, 31, 22, 79, 568, 14, 249, 1797, 20, 19, 5431, 5487, 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...
Splash screen does not show up when product export === When i run my rcp application inside eclipse the splash screen is showing as it should. But when i export the product splash screen does not show up even if it is a new rcp application where i did not change splash screen at all
0
[ 2, 13873, 2324, 630, 52, 298, 71, 76, 2374, 7487, 800, 3726, 3726, 76, 31, 485, 51, 761, 7439, 3010, 572, 11652, 14, 13873, 2324, 25, 3187, 28, 32, 378, 9, 47, 76, 31, 7487, 14, 2374, 13873, 2324, 630, 52, 298, 71, 166, 100, 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, 0, 0...
Boot iso images from bootable USB === I'm trying to figure out an universal solution to have a multi-boot usb memory stick. I have some ISO images like: knoppix, debian, ubuntu, etc. Is there any way to do the following procedure: 1. List item 2. load a micro kernel/bootloader from bootable memory stick into RAM 3. load the most necessary modules to mount filesystem, iso, etc. 4. boot directly from that iso. I know that there are several solutions I've found but non of them are universal: 1. **grub4dos** can load the whole image to ram and then boot it. -> it's ok if the image is small, but if it has e.g. 4 GB of RAM than we should have at least 6-8GB to work properly. 2. **grub2** can boot from iso, but we need to know exactly what's the syslinux parameters. This is an example configuration of grub.cfg that I've prepared for my Knoppix ISO: menuentry "Knoppix" { set isofile="/boot/iso/knoppix.iso" echo "Loading kernel.." loopback loop $isofile linux (loop)/boot/isolinux/linux64 boot=casper iso-scan/filename=$isofile ramdisk_size=100000 lang=en vt.default_utf8=0 acpi=off apm=power-off vga=791 nomce fromiso=$isofile noeject noprompt -- echo "Loading modified initrd.." initrd (loop)/boot/isolinux/minirt.gz } The problem is that after kernel boots, the init process can not find the mounted files even if they are exist on my loopback mounted iso. I was able to boot successfully some of my ISOs but that's not universal way. Sometimes it fails. And what about Windows installer. Let say some of my friends who don't have any CD/DVD device want me to reinstall the system. Can I do that with the similar way? Honestly I would probably solve that problem few years ago, but I've been working on Linux platform for many years and have contact with Windows-es only at work.
2
[ 2, 6801, 11899, 3502, 37, 6801, 579, 182, 220, 800, 3726, 3726, 31, 22, 79, 749, 20, 1465, 70, 40, 4172, 4295, 20, 57, 21, 1889, 8, 10858, 38, 182, 220, 1912, 5258, 9, 31, 57, 109, 11899, 3502, 101, 45, 6209, 2594, 18321, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I create a data invarient function? === Say I have a certain sized distribution, x and I have a system that performs a function, y. If I train the system with a distribution of z, z being less that x and it is also derived from x (I know this but the system does not), z being a subset of x. If the above is implemented, how can I make the function y be invariant to the input that it could be provided with? IE I have 00, 11, 10, 01 and I need it to average out at 0.5 ( that being the answer that the average variable has) how can I implent this to work with a seed input? IE a = Function b (c) c = input Cheers Martin
0
[ 2, 184, 107, 31, 1600, 21, 1054, 19, 8220, 2291, 1990, 60, 800, 3726, 3726, 395, 31, 57, 21, 1200, 13, 6560, 2523, 15, 993, 17, 31, 57, 21, 329, 30, 11563, 21, 1990, 15, 13, 93, 9, 100, 31, 1528, 14, 329, 29, 21, 2523, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Update multiple windows via javascript === My site has a timeout set, so after 15 minutes of in-activity a login screen appears asking you to refresh your session. This works great, but if you have more than one window open on the site it means one page will be refreshed with the login details but the other one will not. So the question is this, is there a way to execute the following code on each window open at the site? $jq('#loginbox').hide() Thanks for any help. I should also state that the other windows will not be opened via JavaScript, the user could have just clicked open in new window / tab on a link
0
[ 2, 11100, 1886, 1936, 1197, 8247, 8741, 800, 3726, 3726, 51, 689, 63, 21, 85, 1320, 309, 15, 86, 75, 357, 902, 16, 19, 8, 19348, 21, 6738, 108, 2324, 1780, 3379, 42, 20, 24905, 154, 3723, 9, 48, 693, 374, 15, 47, 100, 42, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Return rows where first character is non-alpha === I'm trying to retrieve all columns that start with any non alpha characters in SQlite but can't seem to get it working. I've currently got this code, but it returns every row: SELECT * FROM TestTable WHERE TestNames NOT LIKE '[A-z]%' Is there a way to retrieve all rows where the first character of TestNames are not part of the alphabet?
0
[ 2, 788, 11295, 113, 64, 925, 25, 538, 8, 22480, 800, 3726, 3726, 31, 22, 79, 749, 20, 11917, 65, 7498, 30, 799, 29, 186, 538, 5705, 1766, 19, 4444, 10601, 47, 92, 22, 38, 2260, 20, 164, 32, 638, 9, 31, 22, 195, 871, 330, 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...
CMake: How to only include part of OpenCV? === When I use CMake with `FIND_PACKAGE( OpenCV REQUIRED )`, all components of OpenCV get included and all libs linked, and all paths show up in include dirs in VS. However, since OpenCV 2, every part of the lib can be included and linked to on its own. So if my project only uses the "core" and "imgproc" part of OpenCV, I dont want to bloat my project (and project files) by linking to all of OpenCV. Is it possible to only include part of it in CMake?
0
[ 2, 272, 11115, 45, 184, 20, 104, 468, 141, 16, 368, 12732, 60, 800, 3726, 3726, 76, 31, 275, 272, 11115, 29, 13, 1, 19811, 1, 8573, 1303, 5, 368, 12732, 1390, 13, 6, 1, 15, 65, 5090, 16, 368, 12732, 164, 506, 17, 65, 13, 832...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
map-like serialization w/ data values as keys === I need to serialize this: List<Event> where the Event class is: public class Event { public int id; public String foo; public String bar; } into JSON of this form: { "123":{"foo":"...","bar":"..."}, "345":{"foo":"...","bar":"..."} } Taking the "id" property out of Event and storing a Map<Integer,Event> would do the trick, but I need to support duplicate IDs. Is there an annotation I can put on the "id" property to cause Jackson to treat it as a key, with the rest of the object as the associated value?
0
[ 2, 2942, 8, 1403, 5956, 1829, 619, 118, 1054, 4070, 28, 5534, 800, 3726, 3726, 31, 376, 20, 5956, 2952, 48, 45, 968, 1, 4943, 38, 1, 113, 14, 807, 718, 25, 45, 317, 718, 807, 13, 1, 317, 19, 38, 4924, 73, 317, 3724, 4310, 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...
Access 2010 DLookUp === Working with MS Access for the first time and coming across a few problems if someone could please point me in the right direction. So I'm doing a mock database (so it looks silly) just to learn the ins and outs and need some help with DLookUp at the moment. My database has two tables, with the following fields: C_ID the PK in Courses and FK in Student tblCourse: C_ID, Title, Subject tblStudent: S_ID, C_ID, Name, EnrollDATE As I said this is just for testing/learning. So what I want is to have a filter that gives me a list of C_ID's based on which EnrollDates are NULL. so filter is: Expr1: DLookUp("[tblStudent]![C_ID]","tblStudent","isNull([tblStudent]![EnrollDATE])") I have also tried with the criteria being [tblStudent]![EnrollDATE] = Null Currently I get just blank fields returned. Any help is greatly appreciated, and please ask me to elaborate if my explanation is off. Thank You!
0
[ 2, 1381, 498, 13, 43, 5810, 576, 800, 3726, 3726, 638, 29, 4235, 1381, 26, 14, 64, 85, 17, 880, 464, 21, 310, 1716, 100, 737, 110, 2247, 454, 55, 19, 14, 193, 1400, 9, 86, 31, 22, 79, 845, 21, 10506, 6018, 13, 5, 656, 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...
Android Canvas Stops drawing on screen randomly === I am stuck in a issue that the canvas stops drawing on screen randomly if we keep on restarting the application. I have checked through the loggers that the method `onDraw()` is being called on action down. but my finger trace on device is not visible. any help and suggestions appreciated. cheers
0
[ 2, 13005, 9696, 6604, 3533, 27, 2324, 21324, 800, 3726, 3726, 31, 589, 4549, 19, 21, 1513, 30, 14, 9696, 6604, 3533, 27, 2324, 21324, 100, 95, 643, 27, 22767, 68, 14, 3010, 9, 31, 57, 6505, 120, 14, 13, 29480, 18, 30, 14, 2109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NETWORK EXPLORE IN C# IN TREE VIEW === I need to build an application that allows the user to select client Systems on a network. In effect, I am trying to mimic the functionality of the Windows Explorer in being able to expand the "My Network Places", "Entire Network", and "Microsoft Windows Network" to select client Systems.Selected systems should be displayed in the list view. how can I achieve this in C# to build an equivalent treeview?, Please can anyone guide me .......
0
[ 2, 982, 8594, 19, 272, 5910, 19, 1541, 1418, 800, 3726, 3726, 31, 376, 20, 1895, 40, 3010, 30, 2965, 14, 4155, 20, 5407, 6819, 1242, 27, 21, 982, 9, 19, 1590, 15, 31, 589, 749, 20, 13567, 14, 18548, 16, 14, 1936, 8520, 19, 142...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to load mag_sales_flat_quote_item_option this table in magento collection? === I am very new to magento. Anyone can help me to load `mag_sales_flat_quote_item_option` this table in magento collection. Thanks
0
[ 2, 184, 20, 6305, 4723, 1, 18, 14461, 1, 13830, 1, 8970, 591, 1, 2119, 79, 1, 2594, 3309, 48, 859, 19, 4723, 17050, 1206, 60, 800, 3726, 3726, 31, 589, 253, 78, 20, 4723, 17050, 9, 1276, 92, 448, 55, 20, 6305, 13, 1, 9473, 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...
property.IsForeignKey condition in Code Template never execute (Razor Engine) === I use EF and MVC3 (razor engine). In the database i have 150 table with relations as FK. When i create model in EF, EF model detect the relations and visualize them in model (.edmx). The problem starts when i choose add view and select create from Scaffold template option. The created view has not any DropDownList to represents FKs. I reviewed the create.tt file and understand the condition if (property.IsForeignKey) { doesn't execute. Can you help me to resolve this problem?
0
[ 2, 1354, 9, 403, 28292, 4237, 2874, 19, 1797, 22894, 243, 15644, 13, 5, 13932, 248, 1406, 6, 800, 3726, 3726, 31, 275, 11599, 17, 307, 8990, 240, 13, 5, 13932, 248, 1406, 6, 9, 19, 14, 6018, 31, 57, 4354, 859, 29, 2649, 28, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to chek an video can be supported by device or not on Android === I try below code to play *.mp4 video: Uri uri = Uri.parse(path); VideoView vv = (VideoView)findViewById(id); vv.setVideoURI(uri); The path are *.mp4 format. But sometimes the video are not supported by device which due to the *.mp4 video are not standard codec of mpeg4. Or the resolution of video higher than device supported. I want to find them, and show some message. How can I do to check it?
0
[ 2, 184, 20, 4982, 197, 40, 763, 92, 44, 1827, 34, 3646, 54, 52, 27, 13005, 800, 3726, 3726, 31, 1131, 1021, 1797, 20, 418, 1637, 9, 2554, 300, 763, 45, 13, 3594, 13, 3594, 800, 13, 3594, 9, 3574, 870, 5, 8353, 6, 73, 763, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Asynchronous PHP calls curl_post_async === I've been trying to get a script for making asynchronous php calls working without success, could someone take a look and spot what I'm doing wrong? This is the request taken from a number of forums including <a href="http://stackoverflow.com/questions/124462/asynchronous-php-calls">here</a>: asynch_test.php function curl_post_async($url, $params) { foreach ($params as $key => &$val) { if (is_array($val)) $val = implode(',', $val); $post_params[] = $key.'='.urlencode($val); } $post_string = implode('&', $post_params); $parts=parse_url($url); $fp = fsockopen($parts['host'], isset($parts['port'])?$parts['port']:80, $errno, $errstr, 30); $out = "POST ".$parts['path']." HTTP/1.1\r\n"; $out.= "Host: ".$parts['host']."\r\n"; $out.= "Content-Type: application/x-www-form-urlencoded\r\n"; $out.= "Content-Length: ".strlen($post_string)."\r\n"; $out.= "Connection: Close\r\n\r\n"; if (isset($post_string)) $out.= $post_string; fwrite($fp, $out); fclose($fp); } $params = array(); $params[0] = 'one'; $params[1] = 'two'; $url = 'http://localhost/stats_report/process.php'; curl_post_async($url, $params); Then this is the script will eventually be the background process, right now it's just a simple echo as I just want to establish a connection. Both files are in the same directory: process.php ignore_user_abort(); echo 'it works!'; But when I go to the first URL I just get a blank screen, and Firebug doesn't show that any request has been sent. I've been searching for a while and can't figure out how to get this working, any suggestions much appreciated.
0
[ 2, 21, 16023, 1291, 13, 26120, 3029, 14320, 1, 6962, 1, 58, 9507, 150, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 164, 21, 3884, 26, 544, 21, 16023, 1291, 13, 26120, 3029, 638, 366, 1280, 15, 110, 737, 247, 21, 361, 17, 1999, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
iTunes sample url(m4a links) not playing in browser/jplayer === I am trying to integrate itunes preview url (m4a file) using jplayer but running into issues None of the files from apple itunes work for eg: http://a1.phobos.apple.com/us/r1000/057/Music/fd/8b/40/mzm.staswrxu.aac.p.m4a However these 2 m4a (non apple) links work: http://jwdriggs.com/jagspodcast/m4a/%23116.m4a They do work in itunes player themselves. What can i do to make them work? Does it have anything to do with itunes encoding. It would be great if there is any workaround for this issue. Here is my code <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <!-- Website Design By: www.happyworm.com --> <title>Demo : jPlayer circle player</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="skin/circle.skin/circle.player.css"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.jplayer.min.js"></script> <script type="text/javascript" src="js/jquery.transform.js"></script> <script type="text/javascript" src="js/jquery.grab.js"></script> <script type="text/javascript" src="js/mod.csstransforms.min.js"></script> <script type="text/javascript" src="js/circle.player.js"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ /* * Instance CirclePlayer inside jQuery doc ready * * CirclePlayer(jPlayerSelector, media, options) * jPlayerSelector: String - The css selector of the jPlayer div. * media: Object - The media object used in jPlayer("setMedia",media). * options: Object - The jPlayer options. * * Multiple instances must set the cssSelectorAncestor in the jPlayer options. Defaults to "#cp_container_1" in CirclePlayer. * * The CirclePlayer uses the default supplied:"m4a, oga" if not given, which is different from the jPlayer default of supplied:"mp3" * Note that the {wmode:"window"} option is set to ensure playback in Firefox 3.6 with the Flash solution. * However, the OGA format would be used in this case with the HTML solution. */ var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1", { //m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a" m4a: "http://a1549.phobos.apple.com/us/r1000/026/Music/d8/01/eb/mzm.mxkkesne.aac.p.m4a" }, { cssSelectorAncestor: "#cp_container_1", swfPath: "js", wmode: "window" }); }); //]]> </script> </head> <body> <!-- The jPlayer div must not be hidden. Keep it at the root of the body element to avoid any such problems. --> <div id="jquery_jplayer_1" class="cp-jplayer"></div> <!-- The container for the interface can go where you want to display it. Show and hide it as you need. --> <div id="cp_container_1" class="cp-container"> <div class="cp-buffer-holder"> <!-- .cp-gt50 only needed when buffer is > than 50% --> <div class="cp-buffer-1"></div> <div class="cp-buffer-2"></div> </div> <div class="cp-progress-holder"> <!-- .cp-gt50 only needed when progress is > than 50% --> <div class="cp-progress-1"></div> <div class="cp-progress-2"></div> </div> <div class="cp-circle-control"></div> <ul class="cp-controls"> <li><a href="#" class="cp-play" tabindex="1">play</a></li> <li><a href="#" class="cp-pause" style="display:none;" tabindex="1">pause</a></li> <!-- Needs the inline style here, or jQuery.show() uses display:inline instead of display:block --> </ul> </div> </body> </html>
0
[ 2, 12952, 5717, 287, 6362, 5, 79, 300, 58, 6271, 6, 52, 791, 19, 16495, 118, 728, 14049, 800, 3726, 3726, 31, 589, 749, 20, 18399, 12952, 16121, 287, 6362, 13, 5, 79, 300, 58, 3893, 6, 568, 487, 14049, 47, 946, 77, 1549, 2369, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 the index of an array? === I have an NSMutable array named myArray.It contains 8 button objects.How can i get the index of the button which i have taped to a integer variable
0
[ 2, 184, 20, 477, 14, 4348, 16, 40, 7718, 60, 800, 3726, 3726, 31, 57, 40, 13, 2172, 7903, 579, 7718, 377, 51, 8576, 93, 9, 242, 1588, 469, 5167, 3916, 9, 1544, 92, 31, 164, 14, 4348, 16, 14, 5167, 56, 31, 57, 23058, 20, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
open text file through vb.net , if exsist delete that file === am writing code in windows application using vb.net.i want to open text file under c:\ . suppose if the file already exsist to delete that file. my code ------- Dim file As String = "C:\test.txt" If System.IO.File.Exists(file) Then file.Remove(file) Else System.Diagnostics.Process.Start(file) End If but am getting error to open that file. error ----- The system cannot find the file specified
0
[ 2, 368, 1854, 3893, 120, 13, 20468, 9, 2328, 13, 15, 100, 1396, 18, 702, 27448, 30, 3893, 800, 3726, 3726, 589, 1174, 1797, 19, 1936, 3010, 568, 13, 20468, 9, 2328, 9, 49, 259, 20, 368, 1854, 3893, 131, 272, 45, 1, 13, 9, 5787...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Error: /hibernate.cfg.xml not found === I am using Eclipse "Indigo". I made a Java Project with the following Structure: <br>Hibernate (Project Name) <br>src <br>Referenced Libraries <br>JRE System Libraries <br>employee.hbm.xml <br>hibernate.cfg.xml <br> Now when I am running my code its showing error **"/hibernate.cfg.xml not found"** <br> Is there a way to set a path for hibernate configuration file??
0
[ 2, 7019, 45, 13, 118, 8630, 106, 8820, 9, 8940, 263, 9, 396, 8184, 52, 216, 800, 3726, 3726, 31, 589, 568, 11652, 13, 7, 108, 43, 10215, 7, 9, 31, 117, 21, 8247, 669, 29, 14, 249, 1411, 45, 13, 1, 5145, 1, 8630, 106, 8820, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ext.Loader is not coming in android device. using Sencha Touch 2 === I have done application using sencha touch2 . I have generated apk/ipa file from phone gap (https://build.phonegap.com/). when i installed generated ipa file to ipad/iphone ios supported devices, in these devices while launching the application i am getting loader. but when i installed apk file to android device. I am not getting loader while launching the application(here it will show blank screen 2-5 seconds next it will display application page). ***can any tell me why in android device loader is not coming while launching the application***. ***apk/ipa file generated from phone gap.***
0
[ 2, 1396, 38, 9, 8294, 106, 25, 52, 880, 19, 13005, 3646, 9, 568, 8252, 1651, 1723, 172, 800, 3726, 3726, 31, 57, 677, 3010, 568, 8252, 1651, 1723, 135, 13, 9, 31, 57, 6756, 21, 17244, 118, 15796, 3893, 37, 1132, 4127, 13, 5, 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...
.increment vs += 1 === I have a Picture model that contains a variable for a view count (integer). The view count is incremented by +1 every time someone views the Picture object. In getting this done, what is the difference between @picture.view_count += 1 @picture.save and @picture.increment(:view_count, by = 1) also if i use increment, is .save necessary?
0
[ 2, 13, 9, 28461, 4611, 2754, 3726, 137, 800, 3726, 3726, 31, 57, 21, 2151, 1061, 30, 1588, 21, 7612, 26, 21, 1418, 2468, 13, 5, 6391, 13699, 6, 9, 14, 1418, 2468, 25, 13, 28461, 69, 34, 13, 16628, 352, 85, 737, 4146, 14, 2151,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 set x,y value in android application? === I am new to android application, using textview to set height and width but i didnot know how to set x,y value in android application, please help me Thanks in Advance Here i tried: <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Select Your country"/>
0
[ 2, 184, 20, 309, 993, 15, 93, 1923, 19, 13005, 3010, 60, 800, 3726, 3726, 31, 589, 78, 20, 13005, 3010, 15, 568, 1854, 4725, 20, 309, 2947, 17, 9456, 47, 31, 144, 1270, 143, 184, 20, 309, 993, 15, 93, 1923, 19, 13005, 3010, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to cast object of type 'System.Windows.Controls.Grid' to type 'System.Windows.Controls.TabItem' === Hi there i have define more than one tabItem in my TabControl. tabItem1, tabItem2, tabItem3 these are CloseableTabItem. my Code throw an Exception "Unable to cast object of type 'System.Windows.Controls.Grid' to type 'System.Windows.Controls.TabItem'." if (tabItem1.IsLoaded && (TabItem)tabControl.SelectedContent == tabItem1) { }
0
[ 2, 2343, 20, 1325, 3095, 16, 1001, 13, 22, 10724, 9, 27508, 18, 9, 12898, 18, 9, 16375, 22, 20, 1001, 13, 22, 10724, 9, 27508, 18, 9, 12898, 18, 9, 536, 3326, 1503, 22, 800, 3726, 3726, 4148, 80, 31, 57, 9267, 91, 119, 53, 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...
iframe - set Content Type header === I would like to display a JPEG image dynamically using iframe, but its header should be `"Content-type: image/jpeg"`. Is this possible? This would be a workaround for displaying base64 images in IE7: 1) get base 64 code 2) decode it using js 3) generate iframe image
0
[ 2, 31, 8361, 13, 8, 309, 2331, 1001, 157, 106, 800, 3726, 3726, 31, 83, 101, 20, 3042, 21, 487, 20427, 1961, 7782, 1326, 568, 31, 8361, 15, 47, 82, 157, 106, 378, 44, 13, 1, 7, 25424, 8, 4474, 45, 1961, 118, 728, 20427, 7, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Primefaces dynamic tree === I am developing a Tree component, which might be prunned according to the user input. I have all nodes cached, in order to provide primefaces component model with always the same instances of the tree nodes. But the problem is, that when I change the parent-child relationships (remove some of them), I always get a concurrent modification exception... Is there any way to workaround this issue or am I missing something. Thanks in advance. /** * Recursively copy the hierarchy and prune not visible branches * @param originalNode node of the original hierarchy to be copied * @param parent parent node in the new hierarchy * @param visibleNodes set of nodes, which should be included in the new hierarchy * @param model model of the TreeAutompleteComponent * @return copy of the oroginal node in the new hierarchy */ private TreeNode copyHierarchy(TreeNode originalNode, TreeNode parent, Set<TreeNode> visibleNodes, TreeAutocompleteModel model) { if (!visibleNodes.contains(originalNode)) { return null; } TreeNode newNode = model.getCompleteModelNodes().get(((NodeWrapper)originalNode.getData()).getIri());//new DefaultTreeNode(originalNode.getData(), parent); for (int i = 0; i < originalNode.getChildCount(); i++) { copyHierarchy((TreeNode) originalNode.getChildren().get(i), newNode, visibleNodes, model); } newNode.setParent(parent); //when removed, no exception occurs return newNode; } The exception ava.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819) at java.util.ArrayList$Itr.next(ArrayList.java:791) at org.primefaces.component.tree.TreeRenderer.encodeTreeNodeChildren(TreeRenderer.java:284) at org.primefaces.component.tree.TreeRenderer.encodeTreeNode(TreeRenderer.java:274) at org.primefaces.component.tree.TreeRenderer.encodeMarkup(TreeRenderer.java:165) at org.primefaces.component.tree.TreeRenderer.encodeEnd(TreeRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) at com.sun.faces.renderkit.html_basic.CompositeRenderer.encodeChildren(CompositeRenderer.java:78) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:424) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:182) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
0
[ 2, 1621, 6413, 18, 7782, 1541, 800, 3726, 3726, 31, 589, 3561, 21, 1541, 5912, 15, 56, 530, 44, 351, 3169, 3725, 496, 20, 14, 4155, 6367, 9, 31, 57, 65, 16272, 16522, 43, 15, 19, 389, 20, 1181, 1621, 6413, 18, 5912, 1061, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would I go about pushing one view controller to another view controller that doesn't have a nib file? === How would I go about pushing one view controller to another view controller that doesn't have a nib file? this is what I'm currently doing. There is no nib file for UserViewController though and yet I'm still using initWithNibName:@"UserViewController" -(IBAction)userProfile:(id)sender { UserViewController *userViewController = [[UserViewController alloc] initWithNibName:@"UserViewController" bundle:nil]; [self.navigationController pushViewController:userViewController animated:YES ]; [userViewController release]; } thanks for any help
0
[ 2, 184, 83, 31, 162, 88, 5076, 53, 1418, 9919, 20, 226, 1418, 9919, 30, 1437, 22, 38, 57, 21, 1781, 220, 3893, 60, 800, 3726, 3726, 184, 83, 31, 162, 88, 5076, 53, 1418, 9919, 20, 226, 1418, 9919, 30, 1437, 22, 38, 57, 21, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
python - break string into variables === I'm sure this is going to turn out to be a stupid question... I am trying to break up a string like `s = 'P1=12,P2=34,P3=56,P4=78'` into a bunch of individual variables: P1 = 12 P2 = 34 P3 = 56 P4 = 78 `s.split(',')` gives me a list `['P1=12','P2=34','P3=56','P4=78']`, which is a start, I think. Any ideas?
0
[ 2, 20059, 13, 8, 1442, 3724, 77, 12157, 800, 3726, 3726, 31, 22, 79, 562, 48, 25, 228, 20, 805, 70, 20, 44, 21, 3553, 1301, 9, 9, 9, 31, 589, 749, 20, 1442, 71, 21, 3724, 101, 13, 1, 18, 800, 13, 22, 306, 165, 3726, 918, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
problem with animating resizing agdatagridcolumn !! === i want resize width of agdatagridcolumn in a agdatagrid with animation code : (CreateStb(agdatagrid)).Begin();//Exceptin: Cannot resolve TargetProperty Width on specified object. . . Private StoaryBoard CreateStb(UIElement element) { Storyboard stb = new Storyboard(); DoubleAnimation dbAnmtin = new DoubleAnimation(); Storyboard.SetTarget(dbAnmtin, (AgDataGridColumn)((AgDataGrid)element).Columns[0]); Storyboard.SetTargetProperty(dbAnmtin, new PropertyPath("Width")); dbAnmtin1.To=//custom value dbAnmtin1.Duration=//custom value stb.Children.Add(dbAnmtin); Return stb; } I think defining TargetProperty has a problem but I don’t know how to solve it . plz help me
0
[ 2, 1448, 29, 14487, 1203, 10719, 3335, 11342, 18768, 16375, 716, 4404, 103, 13, 19015, 800, 3726, 3726, 31, 259, 302, 10454, 9456, 16, 11342, 18768, 16375, 716, 4404, 103, 19, 21, 11342, 18768, 16375, 29, 6236, 1797, 13, 45, 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...
Mysl random query but even === I've a query like SELECT Id, Category, Title FROM articles WHERE 1 ORDER BY RAND() LIMIT 0,20 I've 20 categories and I want 1 random article per category. How? With this query I always have some category not selected. Thanks
0
[ 2, 51, 18, 255, 5477, 25597, 47, 166, 800, 3726, 3726, 31, 22, 195, 21, 25597, 101, 5407, 4924, 15, 3230, 15, 581, 37, 3376, 113, 137, 389, 34, 11310, 5, 6, 4496, 713, 15, 1323, 31, 22, 195, 434, 6422, 17, 31, 259, 137, 5477, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 plist file to iPhone/iPod device in xcode? === I am running the following code in xcode.When I run it in simulator there is content inside offlineData but upon running on device the content is nil. NSString *offlinePlistDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES) lastObject];<br> NSString *offlineFilePath = nil;<br> offlineFilePath = [offlinePlistDirectory stringByAppendingPathComponent:@"offline.plist"]; <br> NSData *offlineData = [NSData dataWithContentsOfFile:offlineFilePath];<br> I have the offline.plist file inside the documents folder inside Library\...... <br><br> Please help. Thanks in advance.
0
[ 2, 184, 20, 3547, 351, 5739, 3893, 20, 21024, 118, 49, 10670, 3646, 19, 993, 9375, 60, 800, 3726, 3726, 31, 589, 946, 14, 249, 1797, 19, 993, 9375, 9, 3185, 31, 485, 32, 19, 24565, 80, 25, 2331, 572, 168, 1143, 18768, 47, 685, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problems with jquery and C# web service === Output from web service, "http://localhost:6833/Service1.asmx/HelloWorld": <string xmlns="http://tempuri.org/"> [{"Name":"Pini","Age":"30","ID":"111"},{"Name":"Yaniv","Age":"31","ID":"Cohen"},{"Name":"Yoni","Age":"20","ID":"Biton"}] </string> HTML code: <html> <head> <script type="text/javascript" src="jquery-1.7.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $.ajax({ type: "POST", url: "Service1.asmx/HelloWorld", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { alert("Result: " + msg); }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert("Error: " + textStatus); } }); }); </script> </head> <body> </body> </html> When i run index.html in browser i get the Error alert.. Tried alot of things, but cant find out whats missing..
0
[ 2, 1716, 29, 487, 8190, 93, 17, 272, 5910, 2741, 365, 800, 3726, 3726, 5196, 37, 2741, 365, 15, 13, 7, 21127, 6903, 15580, 11694, 45, 4279, 4048, 118, 11449, 165, 9, 472, 79, 396, 118, 11515, 4423, 7, 45, 13, 1, 11130, 23504, 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...
Detect and manually set up replication === Recently we installed a new Sql Server 2008 server for a client and we had to move all the databases for them. Apparently they forgot about one application that uses replication with local Sql 2000 Desktop Edition instances. Now we're trying to get the replication running again. Currently we get the error: The server '...' is not configured as distributor. 2 questions about that: 1. Is there a way to detect the type of replication used by just looking at the DB schema? 2. I'm guessing we don't need to run the replication wizard again since that changes the database schema which should be already ok. What do we need to do to manually hook up everything?
0
[ 2, 9092, 17, 23671, 309, 71, 23841, 800, 3726, 3726, 1989, 95, 4066, 21, 78, 4444, 255, 8128, 570, 8128, 26, 21, 6819, 17, 95, 41, 20, 780, 65, 14, 6018, 18, 26, 105, 9, 3083, 59, 9564, 88, 53, 3010, 30, 2027, 23841, 29, 375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Load URL Based Image with Data in VS.Net 2008 Crystal Reports === I have Table of Applicants where one Column is ImageURL saved in database i.e. (~/Images/208/sPhoto.jpg) Now i want to display this image on Crystal Report with Applicant's information (Like FirstName, LastName, DOB, Nationality, Religion and Picture (URL))............... **I tried this method:** Right clicked on CR **Insert >> Picture** (Any) Right click on **Picture >> Format Object >> Hyperlink Tab >> Selected option (A File)** and then added the following Formula in **X2 Button (Formula Editor)** to display the image on the CR. I tried to load this image in Crystal Report but no result, even i have converted the URL to complete path like in Crystal Report Forumal; stringVar x:=Replace ({vCandidates.ImageURL},"~",""); "http://www.abc.com" & x And it will show the complete path if i display in string variable i.e. **http://www.abc.com/images/208/sPhoto.jpg** but Image is not displaying.
0
[ 2, 184, 20, 6305, 287, 6362, 432, 1961, 29, 1054, 19, 4611, 9, 2328, 570, 4282, 2813, 800, 3726, 3726, 31, 57, 859, 16, 19470, 113, 53, 4698, 25, 1961, 911, 255, 4377, 19, 6018, 31, 9, 62, 9, 13, 5, 1, 118, 22039, 18, 118, 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...
Generating a jwt in Google Wallet === I don't understand how they are generating the jwt in [tutorial #1][1]. Is it a call to a JavaScript function? [1]: https://developers.google.com/in-app-payments/docs/tutorial#1
0
[ 2, 13500, 21, 487, 499, 38, 19, 8144, 17198, 800, 3726, 3726, 31, 221, 22, 38, 1369, 184, 59, 50, 13500, 14, 487, 499, 38, 19, 636, 2473, 9819, 192, 4253, 500, 2558, 165, 500, 9, 25, 32, 21, 645, 20, 21, 8247, 8741, 1990, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GC collects referenced object after return from scope === I have a question about how GC works in Java. Consider the following code: class C1 { ArrayList<int> myList = new ArrayList<int>(); public void setList(ArrayList<int> l) { myList = l; } } func(C1 C) { ArrayList<int> l1 = new ArrayList<int>(); l1.add(1); C.setList(l1); } main() { C1 C = new C1(); func(C); } my question is: does GC releases 'l1' after `func()` returns or not?
0
[ 2, 13, 10362, 5543, 18, 17571, 3095, 75, 788, 37, 9914, 800, 3726, 3726, 31, 57, 21, 1301, 88, 184, 13, 10362, 693, 19, 8247, 9, 3563, 14, 249, 1797, 45, 718, 272, 165, 13, 1, 7718, 5739, 1, 6391, 1, 51, 5739, 800, 78, 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...
Including a directory inside web-inf/lib in tomcat classpath === In my webapp; WEB-INF/lib is added in classpath by default which is fine. Now, I want to add spring jar files in my tomcat's classpath. If I put all the jar files inside WEB-INF/lib; it works fine. But if I want to add a directory WEB-INF/lib/spring and put all jar files inside spring directory ; it doesnt work. How can I include WEB-INF/lib/spring in classpath. I would prefer to make changes in web.xml as that is very localised to my webapp. Surely I will not want to make changes in catalina.properties because there all the jar files are loaded in JVM ( not just added in classpath )
0
[ 2, 215, 21, 16755, 572, 2741, 8, 108, 410, 118, 8326, 19, 2067, 5782, 718, 8353, 800, 3726, 3726, 19, 51, 2741, 7753, 73, 2741, 8, 108, 410, 118, 8326, 25, 905, 19, 718, 8353, 34, 12838, 56, 25, 1123, 9, 130, 15, 31, 259, 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...
can we change the css styles of jquery widgets and plugins internally with in our page? === Can any1 tell me how to change the css style properties internally without changing custom.css file in jquery..so that the internal properties can effect the webpage..like changing properties of widgets and jquery-ui(ex:buttons,datepickers etc)...
0
[ 2, 92, 95, 753, 14, 272, 18, 18, 6443, 16, 487, 8190, 93, 4807, 43, 3060, 18, 17, 10922, 108, 18, 17739, 29, 19, 318, 2478, 60, 800, 3726, 3726, 92, 186, 165, 494, 55, 184, 20, 753, 14, 272, 18, 18, 1034, 3704, 17739, 366, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Oracle error: character string buffer too small === I am running a basic query that retrieves rows based on basic conditional clauses, nothing complex. This works fine: <cfquery name="courses" datasource="banner"> SELECT * FROM tjucatalog WHERE (course_status = 'Active') AND CONCAT(subject,course_no) IN (#PreserveSingleQuotes(courselist)#) AND term IN ('Fall 2012') AND ((end_date > #now()#) OR (course_meeting_info IS NOT NULL)) ORDER BY TYear, TSort, DayNum, start_date, time, title </cfquery> However, when I remove the "AND term IN" line from the query, it fails. <cfquery name="courses" datasource="banner"> SELECT * FROM tjucatalog WHERE (course_status = 'Active') AND CONCAT(subject,course_no) IN (#PreserveSingleQuotes(courselist)#) AND ((end_date > #now()#) OR (course_meeting_info IS NOT NULL)) ORDER BY TYear, TSort, DayNum, start_date, time, title </cfquery> The error I get is: **ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "BANINST1.TJUCATALOG_PACK", line 519** Is this maybe a view that requires the field 'term' to be included, or is there something else at play here I'm entirely unaware of?
0
[ 2, 15759, 7019, 45, 925, 3724, 17497, 266, 284, 800, 3726, 3726, 31, 589, 946, 21, 2125, 25597, 30, 11917, 18, 11295, 432, 27, 2125, 21206, 9040, 18, 15, 626, 1502, 9, 48, 693, 1123, 45, 13, 1, 8940, 8190, 93, 204, 3726, 7, 1755...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problems with Extjs.getBody === I have this line of code var width_client = Ext.getBody().getWidth(true); and I get that Ext.getBody() is null. I asume that this check is doen before Ext.getBody() becames not null, but dont' know were or what to change. Any idea how to solve this? I use extjs 4.0.7
0
[ 2, 1716, 29, 1396, 38, 728, 18, 9, 3060, 9760, 800, 3726, 3726, 31, 57, 48, 293, 16, 1797, 4033, 9456, 1, 150, 18513, 38, 800, 1396, 38, 9, 3060, 9760, 5, 6, 9, 3060, 3976, 43, 96, 5, 13398, 6, 73, 17, 31, 164, 30, 1396, 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...
Java Pentaho Reporting TOC generation from selected Subreports in Masterreport? === I need help on generating programmatically a toc from a list of selected subreports in a masterreport! I already add all jars needed in my classpath like (pentaho engine extension toc... api) Could someone help me pls with a howto or a sample best regards Marc
0
[ 2, 8247, 11734, 58, 1807, 6670, 20, 150, 2782, 37, 1704, 972, 17437, 18, 19, 1129, 17437, 60, 800, 3726, 3726, 31, 376, 448, 27, 13500, 625, 6732, 1326, 21, 20, 150, 37, 21, 968, 16, 1704, 972, 17437, 18, 19, 21, 1129, 17437, 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...
Why is rotateY (flip) css3 animation flickering in Chrome? === I have made a jsFiddle: http://jsfiddle.net/Grezzo/JR2Lu/ When you hit the i key on your keyboard, the picture flips around to show some text, but during the flip animation it flickers (particularly the text flickers) when viewed in Chrome. (note that I am using -prefix-free JS library so that I don't have to prefix with browser specific CSS properties.) Why is it flickering and how can I stop it?
0
[ 2, 483, 25, 21448, 93, 13, 5, 410, 6013, 6, 272, 18, 18, 240, 6236, 22399, 19, 13, 12985, 60, 800, 3726, 3726, 31, 57, 117, 21, 487, 18, 1707, 12312, 45, 7775, 6903, 728, 18, 1707, 12312, 9, 2328, 118, 6879, 12154, 118, 13529, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Fluid dynamic image centered in div - resize with div === So, I have a fully fluid web page. There is a parent DIV with width:100%, and inside an IMAGE with style: <div> <img src="image.png" alt="" /> </div> <style> div{ width:100% } img{ display: block; margin: auto; max-width: 100%; } </style> Image is centered in div. I do not know the size of image, but it is always smaller than parent DIV, so there is white space from img borders to div borders. Now, when you resize the browser, the image is not resizing until the parent DIV reaches the borders of the image. I would like this image to scale with div immediately when browser window is resized. If image canvas would be 100% of parent div, the behaviour would be like I wanted (the image would resize immediately because image would be 100% od div's width). But I can not make images to be like that...
0
[ 2, 6250, 7782, 1961, 10583, 19, 13, 12916, 13, 8, 302, 10454, 29, 13, 12916, 800, 3726, 3726, 86, 15, 31, 57, 21, 2337, 6250, 2741, 2478, 9, 80, 25, 21, 4766, 13, 12916, 29, 9456, 6608, 3621, 15, 17, 572, 40, 1961, 29, 1034, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to modify header wso2 === I am creating a POC . I am trying to send "Authorization : Bearer <token> " to a webservice proxy . How can i do this using Class Mediation in WSO2ESB . And also how can i modify the old payload by adding the new payload .... with in class Mediation
0
[ 2, 184, 20, 17579, 157, 106, 619, 656, 135, 800, 3726, 3726, 31, 589, 2936, 21, 13, 23093, 13, 9, 31, 589, 749, 20, 2660, 13, 7, 10007, 1829, 13, 45, 13, 17215, 13, 1, 262, 2853, 1, 13, 7, 20, 21, 2741, 11449, 27188, 13, 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...
302 Infinite Loop === I have a web application that is stuck in an infinite loop, and I have no idea where to look next. This is an intranet site, so there is no link I can share, but I've listed as many details as I can think of below. I would appreciate any ideas or suggestions. Anyone has. The details: - IIS 7 - .Net 4.0 - Windows 2008 - Default document is Login.aspx - No HTTP redirect set on app or Login.aspx in IIS - Fiddler shows Login.aspx using status code of 302 and redirecting to Login.aspx If I open my site, it points to Login.aspx and gets stuck in a 302 loop. If I open the site but point to register.aspx, Fiddler shows register.aspx going to Login.aspx which of course redirects to Login.aspx. What I've done: - Run the webapp from Visual Studio -- everything works fine - Check web.config for redirect commands -- there are none - Check IIS for redirect commands -- there are none - Look at Fiddler for another page in the loop -- there are none, just Login.aspx to Login.aspx - Check Login.aspx for redirect commands -- there are none - Check Login.aspx code behind for redirect commands -- there are none - Run the app on my box using the web.config from the server -- everything works - Check Login.aspx for redirect commands -- there are none - Cleared Cache -- problem still persists - Republished -- problem still persists - Republished and cleared Cache -- problem still persists - Disabled Default Document in IIS
0
[ 2, 13, 22863, 9698, 5293, 800, 3726, 3726, 31, 57, 21, 2741, 3010, 30, 25, 4549, 19, 40, 9698, 5293, 15, 17, 31, 57, 90, 882, 113, 20, 361, 328, 9, 48, 25, 40, 14369, 2328, 689, 15, 86, 80, 25, 90, 3508, 31, 92, 1891, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to check if session variables are passed to uploadify and conversion script? === I am relatively new to PHP and I am trying to troubleshoot an issue by checking whether a session variable for username is getting passed to my uploadify.php script as well as a conversion script included in uploadify.php. I have an front-end index.php page which contains the script to initialise Uploadify. Then at the top of uploadify.php I use require_once'../php/function_convert2mp3.php'; to include a conversion script that I am using. I need the session username, ie. $_SESSION['myusername'], to be passed to function_convert2mp3.php, but this doesn't appear to be happening. I would like to try to echo the session username, or an error message if it is not found, e.g. session_start(); if (isset($_SESSION['myusername']) { echo $_SESSION['myusername']; } else { echo "bummer"; } But I'm not sure where to include this, at the top of uploadify.php or function_convert2mp3.php, and where to look for what this returns. Any help would be much appreciated. Thanks, Nick
0
[ 2, 184, 20, 2631, 100, 3723, 12157, 50, 1100, 20, 71, 8294, 8612, 17, 6263, 3884, 60, 800, 3726, 3726, 31, 589, 3109, 78, 20, 13, 26120, 17, 31, 589, 749, 20, 2572, 12511, 40, 1513, 34, 9886, 1472, 21, 3723, 7612, 26, 4155, 7259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
asynchronous output without disturbing the current input prompt === I'm using a TimerTask to simulate a part of a program which runs in a thread, producing output at unpredictable times. package consoletest; import java.util.Scanner; import java.util.Timer; import java.util.TimerTask; public class ConsoleTest { public static void main(String[] args) { TimerTask tt = new TimerTask(){ public void run() { System.out.print("\n***"); } }; new Timer(true).schedule(tt, 2000); Scanner scanner = new Scanner(System.in); System.out.print("enter a command: "); String line = scanner.nextLine(); } } My issue is that if you're actively typing when the output occurs, the output is inserted at the current cursor location, and then the cursor is then placed at the end of the output string. For example, here's a screenshot of me slowly typing 12345678, you can see the output gets inserted in the middle of my typing. ![command line demo of problem][1] I don't want this asynchronous output to disturb the current input cursor so severely. If I could print the output after the location of the cursor without changing the cursor position, that would be fine. Or even better would be to print the output before the current prompt altogether(moving the prompt downwards), but I think that would probably involved somehow ending the prompt, printing output, and then making a new prompt with any input in progress copied over. [1]: http://i.stack.imgur.com/1j08J.png
0
[ 2, 21, 16023, 1291, 5196, 366, 16804, 14, 866, 6367, 11443, 4417, 800, 3726, 3726, 31, 22, 79, 568, 21, 85, 16968, 3656, 20, 24969, 21, 141, 16, 21, 625, 56, 1461, 19, 21, 9322, 15, 4081, 5196, 35, 24421, 436, 9, 6030, 8650, 105...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tools for architecture & design of medium-big R projects === As I'm starting to build relatively big projects in R (>30 functions), I feel the need for more systematic architecture & design thinking. I'm looking for tools that would make it easier for me to have a high-level overview of my code, as well as explaining to others what my code does. To give you a more concrete idea of what I do: I typically work on the automation of data mining experiments that have been successful. Such a project usually involves: 1. importing data 2. data cleaning & transformation 3. report with descriptive statistics 4. processing of a battery of algorithms & models 5. report that summarizes the results. What kind of software tools and what kind of methodology should I use ?
4
[ 2, 4672, 26, 2607, 279, 704, 16, 4152, 8, 6407, 761, 2314, 800, 3726, 3726, 28, 31, 22, 79, 1422, 20, 1895, 3109, 580, 2314, 19, 761, 13, 5, 1, 1762, 3719, 6, 15, 31, 583, 14, 376, 26, 91, 12223, 2607, 279, 704, 1440, 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...
How to draw shapens inside shapes? === I am trying to build a an application where I intend to create some basic animations. My goal is to have a panel on top where the graphics will be painted and a panel below with regular buttons and labels. I have done the code presented below but I am failing to draw rectangles inside previously drawn rectangles. I believe my problem is that I am calling a class (Rectangle) to draw the rectangles which extends a JPanel, meaning that everytime I try to draw a new rectangle a new panel will be creating not overlapping the previous one! How is it then possible for me to draw several different rectangles inside the same panel? Layout.java import java.awt.*; import javax.swing.*; public class Layout extends JFrame { JFrame frame = new JFrame(); JPanel panel1 = new JPanel(); JPanel panel2 = new JPanel(); public Layout() { frame.setSize(1000,500); frame.setTitle("Test"); //panel1.setBackground(Color.red); panel2.setBackground(Color.green); /*panel1.setPreferredSize(new Dimension(500,100)); JButton teste = new JButton("teste"); panel1.setAlignmentY(Component.CENTER_ALIGNMENT); panel1.add(teste); panel1.add(new Rectangulo());*/ JButton sair = new JButton("Sair"); JButton help = new JButton("Help"); panel2.setAlignmentX(Component.RIGHT_ALIGNMENT); panel2.add(help); panel2.add(Box.createRigidArea(new Dimension(10, 0))); panel2.add(sair); panel2.setLayout(new BoxLayout(panel2, BoxLayout.LINE_AXIS)); //panel2.setBorder(BorderFactory.createEmptyBorder(10, 0, 10, 0)); /*panel1.add(new Rectangulo(10,10,500,200,Color.red)); frame.add(panel1);*/ frame.add(new Rectangulo(10,10,500,200,Color.red)); frame.add(new Rectangulo(0,0,100,100,Color.green)); frame.add(panel2); BoxLayout boxLayout = new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS); frame.setLayout(boxLayout); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocationRelativeTo(null); frame.setVisible(true); } public static void main(String[] args) { /* Use an appropriate Look and Feel */ try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } /* Turn off metal's use bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); //Schedule a job for the event dispatch thread: //creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { new Layout(); } }); } } Rectangulo.java import java.awt.*; import javax.swing.*; public class Rectangulo extends JPanel { public int rx, ry, rw, rh; public Color color; public Rectangulo(int x,int y, int w, int h, Color rc) { System.out.println("vim aqui"); // this.setBounds(10, 10, 500, 400); rx = x; ry = y; rw = w; rh = h; color = rc; } public void paintComponent(Graphics g) { System.out.println("vim aqui 2"); super.paintComponent(g); g.setColor(color); g.fillRect(rx,ry,rw,rh); } }
0
[ 2, 184, 20, 2003, 2539, 2172, 572, 12129, 60, 800, 3726, 3726, 31, 589, 749, 20, 1895, 21, 40, 3010, 113, 31, 13863, 20, 1600, 109, 2125, 6236, 18, 9, 51, 1195, 25, 20, 57, 21, 4113, 27, 371, 113, 14, 8351, 129, 44, 3838, 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...
Change in mac address === is it possible that MAC address gets changed when a system is moved from one network to another? What i know is that IP address can of course change when switching from one network to other. But is it possible with MAC address too??
0
[ 2, 753, 19, 1572, 3218, 800, 3726, 3726, 25, 32, 938, 30, 1572, 3218, 3049, 1015, 76, 21, 329, 25, 385, 37, 53, 982, 20, 226, 60, 98, 31, 143, 25, 30, 15735, 3218, 92, 16, 674, 753, 76, 13027, 37, 53, 982, 20, 89, 9, 47, 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, 0, 0, 0, 0, 0, 0, 0...
nonexistent plugin for eclipse? === Some time ago I'm looking for a specific plugin for Eclipse and can not find it. perhaps not existing My intention is to mark code, as with a highlighter pen Anyone know if this is possible? thanks and regards
0
[ 2, 538, 20788, 10922, 108, 26, 11652, 60, 800, 3726, 3726, 109, 85, 1464, 31, 22, 79, 699, 26, 21, 1903, 10922, 108, 26, 11652, 17, 92, 52, 477, 32, 9, 1774, 52, 3149, 51, 5140, 25, 20, 943, 1797, 15, 28, 29, 21, 14373, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
How can PHPUnit code coverage ignore my autoloader? === I have a bootstrap in my phpunit config that runs the `Zend\Loader\StandardAutoloader.php`. I can get PHPUnit code coverage to ignore it when I add <filter> <blacklist> <directory suffix=".php">/absolute/path/to/zf</directory> </blacklist> </filter> to the PHPUnit config XML file. But I have to specify an absolute path. I want it to be a relative path but PHPUnit is not ignoring the Zend folder in the code coverage. I don't want to add different location for when I'm working at home and I don't want other developers adding their own paths. The Zend Framework is in the php.ini `include_path` setting but this does not work: <filter> <blacklist> <directory suffix=".php">./Zend</directory> </blacklist> </filter> Any suggestions?
0
[ 2, 184, 92, 13, 26120, 15464, 1797, 5245, 7174, 51, 3108, 8294, 106, 60, 800, 3726, 3726, 31, 57, 21, 5894, 16514, 19, 51, 13, 26120, 15464, 13, 14093, 2816, 30, 1461, 14, 13, 1, 4257, 43, 1, 8294, 106, 1, 15566, 18042, 8294, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regions sample app broken or Simulator broken === Basically, I can't get boundary crossing events - locationManager:did[Enter|Exit]Region: - to trigger. I posted [earlier](http://stackoverflow.com/questions/11388003/testing-location-with-simulator) about testing locations with the simulator but now think I should rephrase the question. I've looked through the source code and made sure only the standard location services were used, as opposed to significant-change although they were only used when the app went into the backround or was suspended so it shouldn't have been relevant. I also used regionMonitoringEnabled and regionMonitoringAvailable in order to check that they were indeed available in the simulator (they are). But still nothing. updateWithEvent is not called and therefore the table/icon badge number is not updated. I'm going to keep looking but I can't tell if it's has something to do with how the API works (locationManager:did[Enter|Exit]Region:) or if it's a simulator thing (although the simulator shows location updates nicely).
0
[ 2, 3332, 5717, 4865, 2023, 54, 24565, 2023, 800, 3726, 3726, 11374, 15, 31, 92, 22, 38, 164, 5067, 3506, 963, 13, 8, 1474, 22256, 45, 3052, 2558, 13679, 1, 1706, 242, 500, 18790, 45, 13, 8, 20, 7286, 9, 31, 6054, 636, 10717, 104...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Frequent Refreshing Breaks Cookie-Based 'Remember Me' Tokens === I am trying to implement a token based "Remember Me" feature for the login. One of the strategies found on these pages, [The Definitive Guide To Forms based Website Authentication][1] and [enter link description here][2], was to refresh the token on each request. The problem I'm facing is when the user refreshes the browser quickly with a couple of quick taps to F5, the user is logged out. What happens is the the browser would have sent several requests with each F5 keypress, but it would not have received the responses from the server until the last attempt because each keypress cancels the earlier request-response cycle. Since the sever receives the request, it trashes the token, and reissues a new one to update the cookie. The problem is the browser never receives the updated cookie due to the F5 refresh, so it sends the now used token back to the server, which is now invalid, and the session is now invalidated and the user logged off. So what can be done to prevent this from behavior from happening? [1]: http://stackoverflow.com/questions/549/the-definitive-guide-to-forms-based-website-authentication#477579 [2]: http://stackoverflow.com/questions/244882/what-is-the-best-way-to-implement-remember-me-for-a-website
0
[ 2, 5408, 27134, 7947, 19980, 8, 1281, 13, 22, 18342, 55, 22, 20, 2853, 18, 800, 3726, 3726, 31, 589, 749, 20, 8713, 21, 20, 2853, 432, 13, 7, 18342, 55, 7, 1580, 26, 14, 6738, 108, 9, 53, 16, 14, 10272, 216, 27, 158, 4434, 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...
Get foursquare venues data for chain user with PHP === I have created an user on foursquare, whose data I get using PHP. I am creating a script with which I want to get the venues info this user is manager. Those venues are attached to a chain, and when I use foursquare, I need to change to a different user in manager mode. Under my user's object I find the second's user info under [following]->[groups] and it shows that this user is [type] = chain. Unfortunately, with my user I can't get the venues data. I might need to authorize the second user to use my app and then get the venues data using him. And here is were I am stuck. How can I change the user on the fly with my code? I have his id and with that I can retrieve the user's info.
0
[ 2, 164, 222, 12300, 9771, 1054, 26, 2858, 4155, 29, 13, 26120, 800, 3726, 3726, 31, 57, 679, 40, 4155, 27, 222, 12300, 15, 1196, 1054, 31, 164, 568, 13, 26120, 9, 31, 589, 2936, 21, 3884, 29, 56, 31, 259, 20, 164, 14, 9771, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL Drop foreign key Error 152 === I am trying to drop a number of foreign keys using: ALTER TABLE `table` DROP FOREIGN KEY `fk_table_users1` , DROP FOREIGN KEY `fk_table_accounts1` , DROP FOREIGN KEY `fk_table_data1` ; but it returns the error: Error on rename of './db/table' to './db/#sql2-179c-288289' (errno: 152) I have run `SHOW ENGINE INNODB STATUS ` which says: 120725 12:38:37 Error in dropping of a foreign key constraint of table db/table, in SQL command ALTER TABLE `table` DROP FOREIGN KEY `fk_table_users1` , DROP FOREIGN KEY `fk_table_accounts1` , DROP FOREIGN KEY `fk_table_data1` Cannot find a constraint with the given id fk_table_users1. However when I look at the structure via phpmyadmin it lists the foreign key with the same name. Do I need to do something else before I can drop the foreign keys?
0
[ 2, 51, 18, 22402, 2804, 1228, 1246, 7019, 13, 14397, 800, 3726, 3726, 31, 589, 749, 20, 2804, 21, 234, 16, 1228, 5534, 568, 45, 7835, 859, 13, 1, 5924, 1, 2804, 1228, 1246, 13, 1, 410, 197, 1, 5924, 1, 16704, 18, 165, 1, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Compiling a shader and linking fail but verification of the shader succeeds === I'm rather confused about what my shaders are doing. I have a shader class which wraps the opengl parts of the shading for me. I build my application in code::blocks and run it, the compile fase fails, the linking stage fails but the verification with `GL_VALIDATE_STATUS` succeeds and the shader actually works. When I run it outside the codeblocks IDE the compile and linking stage succeeds and so does verification. When run in the IDE the ProgramLog and InfoLog are empty not even warnings but when running outside the IDE when compiling and linking succeed the InfoLogs do show warnings. I'm really confused about this, this is my compile stage: GLuint handle = glCreateShader(a_Type); glShaderSource(handle, 1, &a_Source, NULL); glCompileShader(handle); a_Type can be `GL_VERTEX_SHADER`, `GL_FRAGMENT_SHADER` or `GL_GEOMETRY_SHADER` and `a_Source` is a `const char*` with my shader code loaded from a file. I then go on to check the compile status: glGetShaderiv(handle, GL_COMPILE_STATUS, &success); OGLCHECK if(success != GL_TRUE) { This is a logical check and will be `GL_TRUE` when run from the terminal but `GL_FALSE` when run from the IDE. The linking check is as follows glGetProgramiv(m_ProgramHandle, GL_LINK_STATUS, &success); OGLCHECK if(success != GL_TRUE) { And the verification glValidateProgram(m_ProgramHandle); OGLCHECK glGetProgramiv(m_ProgramHandle, GL_VALIDATE_STATUS, &success); OGLCHECK if(success != GL_TRUE) { To sum it all up, from withing the IDE the shader compile and link status fail but the verification passes and the shader works but the InfoLog is empty. When run from the terminal the compile and link status succeeds and so does the verification and the shader works. And when run from the terminal I also have a filled InfoLog with, for example, warnings. This question was formed after I did some investigation into my problem coming from here: http://stackoverflow.com/questions/11632203/glsl-shader-compilation-on-linux
0
[ 2, 24378, 21, 7546, 139, 17, 12585, 7476, 47, 25056, 16, 14, 7546, 139, 7952, 18, 800, 3726, 3726, 31, 22, 79, 864, 4230, 88, 98, 51, 7546, 1224, 50, 845, 9, 31, 57, 21, 7546, 139, 718, 56, 8118, 18, 14, 368, 8430, 1341, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding mute button to application in android? === I my game application am using musics. I need mute and unmute button to put mob i silent mode. Music runs in every activity like playing game and checking score.But mute button is added in menu activity. I googled didn't get any exact result.
0
[ 2, 4721, 20562, 5167, 20, 3010, 19, 13005, 60, 800, 3726, 3726, 31, 51, 250, 3010, 589, 568, 232, 18, 9, 31, 376, 20562, 17, 367, 79, 6567, 5167, 20, 442, 7327, 31, 2690, 3740, 9, 232, 1461, 19, 352, 2358, 101, 791, 250, 17, 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...
QT: Intensity Transform === I'm a newbie to QT Creator. I wish to write a simple program that mimics Photoshop's image intensity tool (the one with a y=x line, that the user can move different points to create an intensity function). Does anyone know if this is difficult for a newbie like myself, or is there a tutorial of some sort to help me get around thing ? Thanks in advanced !
0
[ 2, 2593, 38, 45, 7871, 8007, 800, 3726, 3726, 31, 22, 79, 21, 78, 5893, 20, 2593, 38, 9247, 9, 31, 2536, 20, 2757, 21, 1935, 625, 30, 13567, 18, 7064, 5347, 22, 18, 1961, 7871, 5607, 13, 5, 124, 53, 29, 21, 13, 93, 3726, 396...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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's the most efficient way to append elements in IE8+? === I have a complex webpage which has a lot of elements which are heavily manipulated. While this runs quite smoothly on Chrome/FF, IE (8 + 9) seem to freeze over quite often on this page. One specific section of the code which runs incredibly slower on IE than it does on other browsers is where i append new elements to the page: Specifically, I have 50 (nested) elements which I append to a documentFragment, and then eventually I append the documentFragment to some element in the actual document. This last append happens v. fast on Chrome/FF, but can take more than a few seconds in IE. I tried using html() / innerHTML, which only seemed to make matters worse (they might be better than append()-ing the elements one by one, but the documentFragment does seem to help). Question is, what can I do about it? Is there some more efficient way I could insert these elements in IE? Am I missing something which could cause them to be inserted so slowly? Thanks.
0
[ 2, 98, 22, 18, 14, 127, 8243, 161, 20, 4865, 2451, 2065, 19, 13, 660, 457, 2430, 60, 800, 3726, 3726, 31, 57, 21, 1502, 2741, 6486, 56, 63, 21, 865, 16, 2065, 56, 50, 2991, 22953, 9, 133, 48, 1461, 1450, 17532, 27, 13, 12985, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
TModel not recognized in a Razor Helper as Lamba Expression === I trying to use a Razor Helper that does some if statements for me. I'm passing it a list with certain rules and based on that rule a label and input text field are created. The problem I have is I can't get it to work with a Lamda expression as parameter. It won't recognize the TModel part. The helper method is as follows: @helper CreateCheckbox(Expression<Func<TModel, bool>> expression, object htmlAttributes, List<Rule> ruleList) { } The error I get is: The type of namespace 'TModel' can not be found.
0
[ 2, 13, 38, 13998, 52, 2124, 19, 21, 14282, 448, 106, 28, 8624, 58, 1803, 800, 3726, 3726, 31, 749, 20, 275, 21, 14282, 448, 106, 30, 630, 109, 100, 9015, 26, 55, 9, 31, 22, 79, 2848, 32, 21, 968, 29, 1200, 1761, 17, 432, 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...
Doctrine 2 relationship using generic association table === I've been looking into the doctrine 2 docs, but have found no way to implement this, if it is even possible. What I'd like to do is create a database for my webapp in which all the many-to-many relationships would be mapped by a single generic table like this: create table associations ( associationId int unsigned auto_increment, fromTable varchar(255) not null, fromId int unsigned not null, toTable varchar(255) not null, toId int unsigned not null, primary key (associationId) unique (fromTable, fromId, toTable, toId) index (toTable, toId) ); but then, how would you write the annotations on the entity classes to make doctrine 2 extract the relationships from that table?
0
[ 2, 7521, 172, 1429, 568, 12733, 607, 859, 800, 3726, 3726, 31, 22, 195, 74, 699, 77, 14, 7521, 172, 9765, 18, 15, 47, 57, 216, 90, 161, 20, 8713, 48, 15, 100, 32, 25, 166, 938, 9, 98, 31, 22, 43, 101, 20, 107, 25, 1600, 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...
Wget or similar for Android === I need to make petitions against a https server and download data that the server sends back (text, video files or image files), inside my Android app. It works fine in the terminal of suse Linux and wget or curl. Request have this structure: wget --post-data "token=xxxx&option1=1&option2=4&File=video" https://api.serverx.com/ --no-check-certificate My question is if there is any wget or similar working in Android, or how can I make this kind of petitions in another way. I read about implement wget in the NDK but I'd like to know your experience or recomendations. Thanks
0
[ 2, 619, 3060, 54, 835, 26, 13005, 800, 3726, 3726, 31, 376, 20, 233, 7453, 18, 149, 21, 7775, 18, 8128, 17, 7121, 1054, 30, 14, 8128, 11350, 97, 13, 5, 11969, 15, 763, 6488, 54, 1961, 6488, 6, 15, 572, 51, 13005, 4865, 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...
missing templatetag group_tag in pinax 0.9 fix === I upgraded from pinax 0.7 to 0.9. in pinax 0.7 they made use of the app **groups** which has made its way to **django.auth.group** In the prior codebase there was a templatetag {% load group_tags %} Now this raises a missing template tag error. `'group_tags' is not a valid tag library: Template library group_tags not found, tried django.templatetags.group_tags,django.contrib.humanize.templatetags.group_tags,pinax.templatetags.templatetags.group_tags,django.contrib.admin.templatetags.group_tags,announcements.templatetags.group_tags,pagination.templatetags.group_tags,timezones.templatetags.group_tags,avatar.templatetags.group_tags,tagging.templatetags.group_tags,ajax_validation.templatetags.group_tags,threadedcomments.templatetags.group_tags,uni_form.templatetags.group_tags,account.templatetags.group_tags,messages.templatetags.group_tags,topics.templatetags.group_tags,tag_app.templatetags.group_tags,program.templatetags.group_tags,django_extensions.templatetags.group_tags,debug_toolbar.templatetags.group_tags` Hence two questions: 1. How will it affect my existing system if i simply remove the template tag. 2. Can i simply copy the code from pinax 0.7 and write another template tag with name group_tag and place it at the appropriate place, will doing this be a redundant stuff?
0
[ 2, 2863, 22894, 8628, 214, 1, 8628, 19, 3459, 7522, 713, 9, 518, 6098, 800, 3726, 3726, 31, 9958, 37, 3459, 7522, 713, 9, 465, 20, 713, 9, 518, 9, 19, 3459, 7522, 713, 9, 465, 59, 117, 275, 16, 14, 4865, 13, 1409, 8024, 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...
Previous next navigation === I want to navigate to previous and next images in my gallery on swiping left and right but then I don't want a previous next button. On searching i came across swipe-gestures, is that what i have to use or simple scroll views? Can anyone provide idea how to do this. Any ideas?
0
[ 2, 1158, 328, 8368, 800, 3726, 3726, 31, 259, 20, 20782, 20, 1158, 17, 328, 3502, 19, 51, 2246, 27, 13, 18, 27803, 68, 225, 17, 193, 47, 94, 31, 221, 22, 38, 259, 21, 1158, 328, 5167, 9, 27, 5792, 31, 281, 464, 27246, 8, 513...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitor Java Application to get list of accessed files === i am working with a complex application and like to know which files it creates and accesses. Is there a way to monitor the application or the jvm it runs with to get this information? matthias
0
[ 2, 7626, 8247, 3010, 20, 164, 968, 16, 12904, 6488, 800, 3726, 3726, 31, 589, 638, 29, 21, 1502, 3010, 17, 101, 20, 143, 56, 6488, 32, 9695, 17, 1381, 160, 9, 25, 80, 21, 161, 20, 7626, 14, 3010, 54, 14, 487, 20147, 32, 1461, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Restrict the number of continuous "As" and "Bs" in this randomizer === Some [folks][1] helped me build a randomizer: function makeid() { var text = ""; var possibleChars = "._"; var possibleLetters = "AB"; text += possibleLetters.charAt(Math.floor(Math.random() * possibleLetters.length)); for( var i=0; i < Math.floor(Math.random() * 3)+1; i++ ) text += " " + possibleChars.charAt(Math.floor(Math.random() * possibleChars.length)); return text; } for (var i=0; i < 20; i++) $("body").append("<div>" + makeid() + "</div>"); It outputs something like this: > B . . > > B . > > B _ _ > > A _ . > > B . > > A . > > A _ > > B . . > > A _ > > A _ > > B _ . > > B . . . > > B _ > > B _ . I want to modify the JavaScript code above so that A and B don't repeat themselves more than twice in a row: > A . . > > B . > > B _ _ > > A _ . > > B . > > A . > > A _ > > B . . > > A _ > > A _ > > B _ . > > B . . . > > A _ > > B _ . Any suggestions? [1]: http://stackoverflow.com/questions/11121924/building-a-simple-randomizer-which-includes-a-dot-an-underscore-the-letter-a-a
0
[ 2, 15436, 14, 234, 16, 6357, 13, 7, 472, 7, 17, 13, 7, 4562, 7, 19, 48, 5477, 11907, 800, 3726, 3726, 109, 636, 16491, 18, 500, 2558, 165, 500, 1456, 55, 1895, 21, 5477, 11907, 45, 1990, 233, 1340, 5, 6, 13, 1, 4033, 1854, 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...
blpConnect() Hanging === I'm totally new to R and try to use the latest version of Rbbg package, inside RStudio. The session seems to hang on blpConnect(). I really appreciate any pointer on debugging this. The session log is as follows: --------------- > sessionInfo() R version 2.15.1 (2012-06-22) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.15.1 > library("rJava") > library("Rbbg") > conn <- blpConnect() R version 2.15.1 (2012-06-22) rJava Version 0.9-3 Rbbg Version 0.4-153 Java environment initialized successfully. Looking for most recent blpapi3.jar file... Adding C:\blp\API\APIv3\JavaAPI\v3.3.1.0\lib\blpapi3.jar to Java classpath
0
[ 2, 334, 5478, 25996, 5, 6, 4505, 800, 3726, 3726, 31, 22, 79, 5139, 78, 20, 761, 17, 1131, 20, 275, 14, 5736, 615, 16, 13, 7549, 19924, 6030, 15, 572, 761, 21026, 9, 14, 3723, 2206, 20, 4546, 27, 334, 5478, 25996, 5, 6, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
python/twisted, t.w.s.Site: safe shutdown === Having class CnxAwareSite(server.Site): def __init__(self, *args, **kwargs): server.Site.__init__(self, *args, **kwargs) self.cnx_cnt = 0 def buildProtocol(self, addr): channel = server.Site.buildProtocol(self, addr) def cntCnxMade(f): self.cnx_cnt += 1 print 'new conn', self.cnx_cnt return f channel.connectionMade = cntCnxMade(channel.connectionMade) def cntCnxLost(f): def post_wrap(result): self.cnx_cnt -= 1 return result return lambda *args, **kwargs: post_wrap(f(*args, **kwargs)) channel.connectionLost = cntCnxLost(channel.connectionLost) return channel ... site = CnxAwareSite(root) site.port = reactor.listenTCP(PORT, site) and having installed a trigger, performing async-looping checks for site.cnx_cnt deferred-chained to a site.port.stopListening() reactor.addSystemEventTrigger('before', 'shutdown', shutdown, site) is it the right way to ensure the 'clean shutdown' of the service before stopping the reactor? Using twistd is not an option for me... (sigh)
0
[ 2, 20059, 118, 26284, 69, 15, 13, 38, 9, 499, 9, 18, 9, 9097, 45, 1834, 28450, 800, 3726, 3726, 452, 718, 13, 9881, 6791, 5011, 9097, 5, 10321, 106, 9, 9097, 6, 45, 6312, 13, 1, 108, 242, 1, 5, 8411, 15, 1637, 10663, 18, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cascading DropDown List in MVC 4 === I have a ASP.NET MVC 4 project with EF I have a table with *Parteners*. This table has 2 types of parteners : agents(part_type=1) and clients(part_type=2). In an Create view I have the first DropDownList that shows all my agents, a button and the second DDL that shows all my clients that correspond to the selected agent. Q1 : What button shoud I use ? <input/>, <button/> , @Html.ActionLink() ? Create.cshtml <div class="editor-field"> @Html.DropDownList("idagenti", ViewData["idagenti"] as List<SelectListItem>, String.Empty) </div> @*a button*@ <div class="editor-label"> @Html.LabelFor(model => model.id_parten, "Client") </div> <div class="editor-field"> @Html.DropDownList("id_parten", String.Empty) @Html.ValidationMessageFor(model => model.id_parten) </div> OrdersController.cs public ActionResult Create(int? id) // id is the selected agent { var agqry = db.partener.Where(p => p.part_type == 1).Where(p => p.activ == true); var cltqry = db.partener.Where(p => p.part_type == 2).Where(p => p.activ == true); List<SelectListItem> idagenti = new List<SelectListItem>(); foreach (partener ag in agqry) { idagenti.Add(new SelectListItem { Text = ag.den_parten, Value = ag.id_parten.ToString() }); } if (id != null) { cltqry = cltqry.Where(p => p.par_parten == id); } ViewData["idagenti"] = idagenti; ViewBag.id_parten = new SelectList(cltqry, "id_parten", "den_parten");// } **Q:** How can I pass the selected agent id from the first DDL to my controller ?
0
[ 2, 7167, 13489, 68, 2804, 2968, 968, 19, 307, 8990, 268, 800, 3726, 3726, 31, 57, 21, 28, 306, 9, 2328, 307, 8990, 268, 669, 29, 11599, 31, 57, 21, 859, 29, 1637, 3091, 17802, 18, 2483, 9, 48, 859, 63, 172, 2551, 16, 141, 1780...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...