If I understand it right, a printer is also a file from the operating system's view. Can I get a .NET C# FileStream type for a printer? It seems wild to do this.
Thanks in advance.
Hello. I have next enumeration
Enum rcCategory
{
Incoming,
Internal,
Outgoing
}
and I have property "categories" in my class which has rcCategory[] type.
I would like to bind this property to the listBox. I use next code for this
MyListBox.SetBinding (ListBox.ItemsSource, new Binding {Source= myClass.categories});
But this code doesnt work as expected.
How Can I do this. My listBox always is empty but source property has value
I have a screen where the first field is an EditText, and it gains the focus at startup, also popups the numeric input type, which is very annoying.
How can I make sure that when the activity is started the focus is not gained, and/or the input panel is not raised?
I would like to plot some image binary data on a grayscale matrix-like graph with custom values on axes. I'm using Perl on a Windows machine but I can't fine the right module to do this. I'm already using GD::Graph to plot other type of data but it seems unsuitable for this specific task.
Hello how to use switch loop in my android project ? I want to use Android 2.1
I need JRE 1.7, but I want to use Android 2.1
I use loop like this:
switch ((CHAR[Math.abs(intGen.nextInt()%2)])) {
case "+":
result = random2 + random3;
break;
case "-":
result = random2 + random3;
break;
}
LogCat:
Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted
The ellipse is actually a circle. I know all the coordinates of both things, I just need to know whether or not a line goes through an ellipse.
Is this built in anywhere? SPecifically I am using QGraphicsEllipseIem and QLine but i can convert them to any other type
thanks
i found this in this file: http://www.boost.org/doc/libs/1_43_0/boost/spirit/home/phoenix/core/actor.hpp
What does this syntax means?
struct actor ... {
...
template <typename T0, typename T1>
typename result<actor(T0&,T1&)>::type // this line
thank you
Hi
I have a header field of 2 bytes where first four bits are packet type and other 12 bits are for length. but i don't know how to store this values and retrieve them.
I am using ms c++ for client and java for server. It is the client which has to set this values and server has to retrieve it.
Thanks
How do you generate an input's id attribute, given a model? For example, if I have a model of Person with a first_name attribute, the form helper prints out a textbox with this html:
<input type="text" id="person_first_name" />
How can I generate that person_first_name from some other place in the code (like in a controller or some place)?
I have the will_paginate plugin working in an application, but when I paginate a resource it just spits out the HTML as text, doesn't provide links to the next pages and such.
And when I manually type in the URL the plugin is working it just doesn't make <%= will_paginate @products %> into links such as next 1 2 3 ... last
Ideas?
Using Using VSTO 3.0 for Outlook 2007
I have my own item type derived from post called "IPM.Post.CustomType". However in the explorer window (the list of all items in a folder), the icon for my item is still the standard post item.
How do I make my custom item show my custom icon instead of the standard icon in the explorer window?
I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:
$('myButton').click(function() {
$('body').highlight($('#myInputText').val());
});
But I wonder how can I do the Chrome like highlighting, I mean highlight the letters whenever I type in some letter in textbox without submitting. I think maybe use a keyup event... Any ideas?
I get the following error in the query below:
#1064 - You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near ')))' at line 1
Code Snippet:
INSERT INTO test_bans( ip, Expiration )
VALUES (
"0.0.0.0", DateAdd(
"d", 1, Date( )
)
)
Table creation query
CREATE TABLE test_bans (
ID smallint(6) NOT NULL AUTO_INCREMENT,
IP text NOT NULL,
Expiration DATETIME NOT NULL,
PRIMARY KEY (ID)
) TYPE=MyISAM;
What am I missing?
I anticipate using some images in my Java application. These images will be drawn onto my JPanel using g.drawImage(). The JPanel is resizable and the images should scale as the JPanel increases/decreases in size
Two questions:
What image format is best for this type of desired scalable image? For instance, in this application, an image of size 100x100 may be scaled into an image of size 30x30 or 10x10 or 300x300.
How can I write code to do this scaling?
Using the action script 3 how to work in a live streaming in asp.net c#.
How to possible this type of condition.
How to implement live streaming in asp.net using action script 3.
Can someone tell me why this does not work?
case class XY(enum: MyEnum)
object MyEnum extends Enumeration {
val OP1, OP2 = Value
}
Error: not found: type MyEnum
I have a custom class and check that a property isn't 0x0 by doing:
if(myinstance.someproperty != nil){
//do something
}
However, even if someproperty is 0x0, I still go into the conditional. someproperty is of another class type. Is there some other way to check this?
Hi there ..
Is there any way to let combobox suggest elements which not only start with combobox text?
I mean even if the combobox text has space between it's characters,
for example if combobox has these items
hello
hi
hellothere
when we try to type "he" or "h e" or "h e", the combobox would suggest hello and hellothere
I have this line on a website
<input type="text" autocomplete="off" value="" maxlength="20" class="shipBox" name="firstName" id="firstName">
and I want my greasemonkey to automatically fill this...
I'm trying this but had no success
document.getElementById("firstName").setAttribute("autocomplete", "on");
document.getElementById("firstName").value = "Bruno"
I would like to place one image to panel control in windows mobile application,but in properties to that control we have only backgroundcolor.what to do in this type of situation?
I am using VS 2008,windows mobile 6 professional
I already this something
Here is the original code:
<script type='text/javascript'>
function delete_user( id ){
var answer = confirm('Are you sure?');
//if user clicked ok
if ( answer ){
//redirect to url with action as delete and id to the record to be deleted
window.location = 'delete.php?id=' + id;
}
}
</script>
How do I remove the old javascript confirm dialog box and replace it with bootstrap?
I'm using imagefill() for changing the background color if an image.But while doing so the other areas which are not to be affected, change its color to black.
$image = imagecreatefrompng("sample.png");
$background = imagecolorallocate($image, 255, 0,0);
imagefill($image, 0,0, $background);
header("content-type: image/png");
imagepng($image,"sample.png");
This is my code.Can anyone tell me how this is happening ?
function testing() {
$.ajax({
type: "POST",
url: "testing.php",
data: "call="+$("#abc").val(),
success: function(msg){
alert( msg );
}
});
}
I want to post the data to testing.php but if i got special characters like & sign. it will create the problem. How do i go about it?
Thank You