Hi
Whats the best data structure for a 2D array of size unknown x 2. Which means one dimension is dynamic (list of grocery items) and the other is fixed (price and quantity).
Thanks
hello I need to know any way to delete duplicated items for specified sid on table.
how can I do this with SQL queries ?
DELETE (DUPLICATED TITLES) FROM table WHERE SID = "1"
something like this but i don't know true one :/ thanks.
Hi all:
I want to ask is it possible to update a Sharepoint web's lists and all its items' URLs if I call an update on the web's url? If so, how can I do so?
e.g.
web.Name = "newWebName";
web.Update();
The above only changed the base web's url. But the url of its lists remain unchanged.
Thanks.
I'm using gtk.combo_box_new_text() to make combobox list, this uses a gtk.ListStore to store only strings, so there are some way to add a separator between items without use a complex gtk.TreeModel?
If this is not possible, what is the simplest way to use a gtk.TreeModel to able secuential widget addition?
Is there a tool that will let you visualize a SQL Server 2008 cascade tree? I'm having troubles with items not being able to be deleted and I would like to see the path that SQL takes.
I´ve made a "main" class lets call it A(Veichle),
and i have two classes that inherits from A Lets call them B(Car) and C(MC).
i also have a handler lets call it "D" that binds A,B and C.
Then i have the Form1 class lets call that E(Visual)
I want to print out the private members from A on the visual form "E" in a Listbox
If i try ex)
this-listbox1-items-add(X.veichles[i]-getBrand());
it complains that veichles is a private member in D.
How can i get around that?
Markup
<ul class="navigation clearfix">
<li class="navigation-top"></li>
<div class="first-holder" style="height:153px;">
<dl class="hold-items clearfix">
<dd class="clearfix with"><a href="http://site.com" title="Protokoll">Protokoll</a></dd>
<dd class="with-hover"><a href="http://site.com" title="Mein/e Unternehmen">Mein/e Unternehmen</a></dd>
<dd class="with"><a class="face-me" href="http://site.com" title="Erweiterte Suche">Erweiterte Suche</a></dd>
<dd class="with"><a href="http://site.com" title="Abmelden">Abmelden</a></dd>
</dl>
</div><!--[end] /.first-holder-->
<li class="navigation-bottom"></li>
</ul><!--[end] /.navigation-->
Css:
.first-holder{height:304px;position:relative;width:178px;overflow:hidden;margin-bottom:0px;padding-bottom: 0px;}
.hold-items{top:0px;position:absolute;}
.navigation dd.with{line-height:38px;background:url('/images/sprite.png') no-repeat -334px -46px;width:162px;height:38px;padding-bottom:0px;overflow: hidden;}
.navigation dd.with a{position:relative;outline:0;display:block;font-weight:bold;color:#3f78c0;padding-left:10px;line-height:38px;}
.with-hover{background:url('/images/sprite.png') no-repeat -505px -47px;width:178px;height:38px;line-height:38px;overflow:none;}
.with-hover a{position:relative;display:block;font-weight:bold;color:#fff;padding-left:10px}
.navigation-top{background:url('/images/sprite.png') no-repeat -694px -46px;width:160px;height:36px;}
.navigation-top a{display:block;outline:0;height:20px;padding-top:18px;padding-left:138px;}
.navigation-top a span{display:block;background:url('/images/sprite.png') no-repeat -212px -65px;width:8px;height:6px;}
.navigation-bottom{background:url('/images/sprite.png') no-repeat -784px -402px;width:160px;height:37px;}
.navigation-bottom a{display:block;outline:0;height:20px;padding-top:18px;padding-left:138px;}
.navigation-bottom a span{display:block;background:url('/images/sprite.png') no-repeat -212px -74px;width:8px;height:6px;}
Also the links, are not clickable, if I click on a link in IE7 it doesn't do the action..it doesn't redirect me to the location.
This is how it looks in IE7:
http://screencast.com/t/MGY4NjljZjc
This is how it look in IE8,Firefox,Chrome and so on
http://screencast.com/t/MzhhMDQ1M
What I'm doing wrong
PS: .navigation-top a span and .navigation-bottom a span I'm using some where else, but that it's ok it works fine.
I want PHP to randomly create a multi-dimensional array by picking a vast amount of items out of predefined lists for n times, but never with 2 times the same.
Let me put that to human words in a real-life example: i want to write a list of vegetables and meat and i want php to make a menu for me, with every day something else then yesterday.
I tried and all i got was the scrambling but there were always doubles :s
Hi all,
I am having a QListView which having some items. Now i want to get the index of selected item. i.e. if i select 5th element i
should get 5. How i can get this?..
waiting for reply.
Thanks in advance
-S
I have the following list:
[('Steve Buscemi', 'Mr. Pink'), ('Chris Penn', 'Nice Guy Eddie'), ...]
I need to convert it to a string in the following format:
"(Steve Buscemi, Mr. Pink), (Chris Penn, Nice Guy Eddit), ..."
I tried doing
str = ', '.join(item for item in items)
but run into the following error:
TypeError: sequence item 0: expected string, tuple found
How would I do the above formatting?
I have some problems getting the data that i read from XML split into seperate columns. Any help this new C# coder would get would be appreciated.
XDocument xmlDoc = XDocument.Load("emails.xml");
var t = from c in xmlDoc.Descendants("dt")
select (string)c.Element("name") + (string)c.Element("email");
foreach (string item in t)
{
listView.Items.Add(item);
}
Hi All,
I've scoured the Internet but my search-foo must not work if it's out there cause I just can't find the proper search terms to get me the answer I am looking for. So I turn to the experts here as a last resort to point me in the right direction.
What I'm trying to do is create a composite control of a text box and a list box but I want to allow the control consumer to decide what to do when say the checkbox is checked/unchecked and I just can't figure it out... Maybe i'm going about it all wrong.
What I've done thus far is to:
create a custom control that extends ListBox
expose a custom DP named "Text" (for the Text box but it's not the important part)
craft the generic.xaml so that the list items have a default ItemTemplate/DataTemplate
inside the DataTemplate I'm trying to set the "Checked" or "Unchecked" events
expose 'wrapper' events as DPs in the custom control that would get 'set' via the template when instatiated
As soon as I try something like the following (inside generic.xaml):
<DataTemplate>
<...>
<CheckBox Checked="{TemplateBinding MyCheckedDP}"/>
<...>
</DataTemplate>
I get runtime exceptions, the designer - vs2010 - pukes out a LONG list of errors that are all very similar and nothing I do can make it work.
I went so far as to try using the VisualTreeHelper but no magic combination I could find would work nor would it allow me to traverse the tree because when the OnApplyTemplate method fires the listbox items don't exist yet and aren't in the tree.
So hopefully this all makes sense but if not please let me know and I'll edit the post for clarifications.
Thanks to all for any pointers or thoughts... Like I said maybe I'm heading about it in the wrong way from the start...
EDIT (Request for xaml)
generic.xaml datatemplate:
<DataTemplate >
<StackPanel Orientation="Horizontal" >
<local:FilterCheckbox x:Name="chk">
<TextBlock Text="{Binding Path=Display}" />
</local:FilterCheckbox>
</StackPanel>
</DataTemplate>
usercontrol.xaml (invocation of custom control)
<local:MyControl FancyName="This is the fancy name"
ItemChecked="DoThisWhenACheckboxIsChecked" <-- this is where the consumer "ties" to the checkbox events
ItemsSource="{Binding Source={StaticResource someDataSource}}"
/>
I'm trying to make a Live Folder with URIs. The intent I set to the Live Folder items is an Intent{Intent.ACTION_VIEW, Uri.parse(url)}. I have verified url is indeed http://www.google.com (for testing purposes). But when I click the item in the live folder I get an error message: "Application is not installed on your phone." I guess I'm missing something, but I have no idea how to make the browser launch.
http://test.jptgraphics.com/products?cat=APPAREL
This works fine in Safari but shows incorrectly in the latest version of Firefox ( was fine in 3.5) and in some versions of IE.
In the middle column the product thumbnails drop down below when the 'float: left;' parameter is used. It is as if it is being escaped by a tag from that point forward no 'float: left's work and all the items are centered moving forward.
I want to set up some menu-like navigator for my app.
There is a listView in the main page and it contains two items, click each one will show its child view with ViewFlipper, and if user clicked the back button, he will return to the homepage again.
The question is how to make it, I can only use ViewFlipper to flip to next screen or prev screen, how to manage these child views here? How to put them in my layout xml file?
Hi,
I am handling a click on a list item with jquery:
$("#some_list li").click(function(event) {
// magic happens here
}
The list items look like:
<li><input type='checkbox'>Some text<span class='info'>(?)</span></li>
I want to have different behaviours depending on whether the user clicks within the (?), or anywhere else in the list. How can I detect which element the user clicked on?
Hey guys,
Can someone explain to me what is the difference between ticking "copy items into destination..." and not ticking this option ?
Thank you.
Gotye.
In my other question You can see code of my arr structure and PriorityQueue collection. I normally add items to this collection like that:
arr.PriorityQueue.Add(new element((value(item, endPoint) + value(startPoint, item)),item));
I am curious that is other way to do this (add element(which is struct) object to List) ? In lambda way for example ? I just eager for knowledge :)
I have a form that has a series of check boxes and some line items have a text input next to them that defines quantity of the item.
<input type="checkbox" name="measure[][input]" value="<?=$item->id?>">
<input class="item_mult" type="text" name="measure[][input]" />
What is the best way to capture the integer from the input field and have it correspond to the check box so I can use it to calculate the total later on?
I'm really new to this oauth stuff. I want to access a user's google reader liked items feed.
This blog says that oauth doesn't work (yet) with google reader. The working way seems to be to get the user's google credentials (email, password) directly, and login directly to google. This also gives me access to the rest of their services.
Is there a better way, or must the user trust me with their google credentials?
I've built an app/widget with ADT/Eclipse that I need to sync with a PC.
It's my own data types, and not calendar/contact items.
Is it possible at all? If so, how?
in a large listview control collection (say 5000 items), adding a SINGLE extra
item can take 10+ seconds in windows vista/7, and that's just the LVM_INSERTITEM
message handling
it looks that it only affects LVS_ICON, LVS_REPORT and LVS_LIST are still very
fast
can anybody confirm this?
the same code on windows XP with similar listview window styles adds an extra
item instantly
thanks
nikos
Assuming you have two lists defined in an xml schema, call them A and B, is there a way to say A must be one or more items and B must be the same length as A?
Hey Guys,
This seems like a basic problem with an easy answer but I simply cannot figure it out no matter how much I try.
I am trying to create a line graph based on two lists. For my x-axis, I want my list to be a set of strings.
x_axis_list = ["Jan-06","Jul-06","Jan-07","Jul-07","Jan-08"]
y_axis_list = [5,7,6,8,9]
Any suggestions on how to best graph these items?