Does anyone know how to send an MMS message with the .net framework? Theres sample code for SMS but not MMS. I have a GPRS modem already installed on my server.
Hello,
Whenever I try to create a custom window using NSBorderlessWindowMask and set an NSView (for example an NSImageView) as its contentView, I get a 1px gray border around the NSView and I don't seem to be able to get rid of it.
I have followed several approaches including Apple's RoundTransparentWindow sample code as well as several suggestions on StackOverflow.
I suspect the gray border is either coming from the window itself or the NSView.
Have any of you experienced this problem or do you have a possible solution?
Thanks
I thought using colons in URIs was "illegal". Then I saw that vimeo.com is using URIs like http://www.vimeo.com/tag:sample.
What do you feel about the usage of colons in URIs?
How do I make my Apache server work with the "colon" syntax because now it's throwing the "Access forbidden!" error when there is a colon in the first segment of the URI?
Hi
i want to put a Big image over a small Image , condition is the image which is on top has some specific rectangular area where the second image will be displayed. I want the the small Image to be displayed inside the big image not over the big image. i don't no will it possible or not , if it is possible can any one provide me guidance or provide me a sample code or link
thanks alot
hello friends i am new to networking in iphone.i would like to see some sample code for cache its not based on image.i need for complete url. thanks in advance.
I'd set up a site a while back using Django-CMS and it was working fine. However, after upgrading to the latest version of both Django and Django-CMS, it doesn't work anymore...when I try to run the development server, I get this message:
"Signal recerivers must accept keyword arguments (**kwargs)."
AssertionError: Signal receivers must accept keyword arguments (**kwargs).
What could be the problem here? I've tried running the sample app that comes with the CMS and it works just fine.
It seems like there should be a simpler way than:
import string
s = "string. With. Punctuation?" # Sample string
out = s.translate(string.maketrans("",""), string.punctuation)
Is there?
I am looking for some large public datasets, in particular:
Large sample web server logs that have been anonymized.
Datasets used for database performance benchmarking.
Any other links to large public datasets would be appreciated. I already know about Amazon's public datasets at: http://aws.amazon.com/publicdatasets/
to retrieve k random numbers from an array of undetermined size we use a technique called reservoir sampling. Can anybody briefly highlight how it happens with a sample code??
what is annotation class. what is the use of it in java/android.
In iphone Annotation is used to drop a pin on the map..
java has java.lang.Annotation package... what is the use of it? can i have a examples, tutorials,sample codes, etc?
I am working on an application with a few other people and we'd like to store our MySQL database in source control. My thoughts are two have two files: one would be the create script for the tables, etc, and the other would be the inserts for our sample data. Is this a good approach? Also, what's the best way to export this information?
Also, any suggestions for workflow in terms of ways to speed up the process of making changes, exporting, updating, etc.
GAE Datastore Table Display using JSON and Google Visualization Table?
Anyone has experience on this? How Google Visualization Table will render pagination with JSON? Really need an example on how to do this or another solution on achieving same result?
I just want to render my table just like this sample using above methode and source.
Thx
I currently have a Service in Android that is a sample VOIP client so it listens out for SIP messages and if it recieves one it starts up an Activity screen with UI components.
Then the following SIP messages determine what the Activity is to display on the screen.
For example if its an incoming call it will display Answer or Reject or an outgoing call it will show a dialling screen.
At the minute I use Intents to let the Activity know what state it should display.
An example is as follows:
Intent i = new Intent();
i.setAction(SIPEngine.SIP_TRYING_INTENT);
i.putExtra("com.net.INCOMING", true);
sendBroadcast(i);
Intent x = new Intent();
x.setAction(CallManager.SIP_INCOMING_CALL_INTENT);
sendBroadcast(x);
Log.d("INTENT SENT", "INTENT SENT INCOMING CALL AFTER PROCESSINVITE");
So the activity will have a broadcast reciever registered for these intents and will switch its state according to the last intent it received.
Sample code as follows:
SipCallListener = new BroadcastReceiver(){
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if(SIPEngine.SIP_RINGING_INTENT.equals(action)){
Log.d("cda ", "Got RINGING action SIPENGINE");
ringingSetup();
}
if(CallManager.SIP_INCOMING_CALL_INTENT.equals(action)){
Log.d("cda ", "Got PHONE RINGING action");
incomingCallSetup();
}
}
};
IntentFilter filter = new IntentFilter(CallManager.SIP_INCOMING_CALL_INTENT);
filter.addAction(CallManager.SIP_RINGING_CALL_INTENT);
registerReceiver(SipCallListener, filter);
This works however it seems like it is not very efficient, the Intents will get broadcast system wide and Intents having to fire for different states seems like it could become inefficient the more I have to include as well as adding complexity.
So I was wondering if there is a different more efficient and cleaner way to do this?
Is there a way to keep Intents broadcasting only inside an application?
Would callbacks be a better idea? If so why and in what way should they be implemented?
A fair bit is written about literate programming, but I've yet to see any project that uses it in any capacity, nor have I seen it used to teach programming. My sample may small, so I'm looking for evidence that literate programming exists and is successful in the real world.
I've heard this term used a lot in the same context as logging, but I can't seem to find a clear definition of what it actually is.
Is it simply a more general class of logging/monitoring tools and activities?
Please provide sample code/scenarios when/how instrumentation should be used.
The problem: combobox is databound to a DataView, first item in the dataview is DataRowView whose fields are DBNull.Value; Combo DropdownStyle = ComboBoxStyle.DropDownList
Loads fine, displays fine, selects fine, problem is to Unselect via code. Setting the SelectedIndex to 0 throws an exception. (Setting to -1 is a no-no as per msdn doco that says dont set SelectedIndex=-1 if databound)
So how to unselect without throwing an exception ?
For now i wrapped it into a try/catch to just ignore the error!
EDIT: As asked by Hubeza, i worked on sample code to post. Did a stripped down version of the original code in C# (original is in VB.NET) and could NOT reproduce it either. Converted to VB.NET and could NOT reproduce it either ! In other words, SelectedIndex = 0 does work in the stripped down version!
Currently further investigating what else could be wrong with the original code.
EDIT2: Case Closed. Call me a stupid fool if you like, and apologies for wasting anyone's time - The error was originating from MyComboBox_SelectedIndexChanged event, which i neglected to check !
May as well post the sample in case anyone finds useful.
private void LoadComboMethod() {
DataTable dtFruit = new DataTable("FruitTable");
//define columns
DataColumn colID = new DataColumn();
colID.DataType = typeof(Int32); //VB.NET GetType(Int32)
colID.ColumnName = "ID";
DataColumn colDesc = new DataColumn();
colDesc.DataType = typeof(String);
colDesc.ColumnName = "Description";
//add columns to table
dtFruit.Columns.AddRange(new DataColumn[] { colID, colDesc });
//add rows
DataRow row = dtFruit.NewRow();
row[colID] = 1; row[colDesc] = "Apples";
dtFruit.Rows.Add(row);
row = dtFruit.NewRow();
row[colID] = 1; row[colDesc] = "Bananas";
dtFruit.Rows.Add(row);
row = dtFruit.NewRow();
row[colID] = 1; row[colDesc] = "Oranges";
dtFruit.Rows.Add(row);
//add extra blank row.
DataRowView drv = dtFruit.DefaultView.AddNew();
drv.EndEdit();
//Bind combo box
DataView dv = new DataView(dtFruit);
dv.Sort = "ID ASC"; //ensure blank item on top
cboFruit.DataSource = dv;
cboFruit.DisplayMember = "Description";
cboFruit.ValueMember = "ID";
}
private void UnselectComboMethod() {
if (cboFruit.SelectedIndex > 0)
{
cboFruit.SelectedIndex = 0;
}
else
{
MessageBox.Show("no fruit selected");
}
}
Hi,
I am able to list Documents from "Public Folders"
Using this sample code :
session.LogonExchangeMailbox("[email protected]", "server");
RDOFolder folder = session.GetFolderFromPath(@"\Public Folders\All Public Folders");
Now i want to Extract this documents to another location.
Hello!
I have problems with Darwin Streaming server 5.5.5 on Debian.
When i'm trying to open some stream, for ex. rtsp://sample.com/sample_100kbit.mp4 player reports it can't load stream and breaks connection.
"Access History" section reports file was requested, so, at least initial connection is working, but nothing more.
What can be wrong and what to check?
I'm trying to run sample Perl script on Windows 7 and I configured IIS 7 to allow ActivePerl to run but I'm getting this error:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "Hello World. ".
Module CgiModule
Notification ExecuteRequestHandler
Handler Perl Script (PL)
Error Code 0x00000000
Requested URL http://localhost:80/hello.pl
Physical Path C:\inetpub\wwwroot\hello.pl
Logon Method Anonymous
Logon User Anonymous
and here is my Perl script:
#!/usr/bin/perl
print "Hello World.\n";
i use such jquery treeview
if parent node don't have child, it don't render '+' near it, how can i forse display it? i see such solution- if node don't have any child, add there fake childs and mark parent node not opened
can you give any solution with sample?
I'm having an issue with the size of the .lib when I compile libcurl. It's 1.6 MB and the sample program they have is alround 300 KB.
I downloaded the latest version (curl-7.20.0) and opened the project file from the lib directory in visual studio 2008. In the project properties I set /MT and compiled a release build. I even tried adding HTTP_ONLY to the processor which didn't seem to affect anything. What's going on?
Let's say I have this:
NSString *str = @"This is a sample string";
How will I split the string in a way that each word will be added into a NSMutableArray?
In VB.net you can do this:
Dim str As String
Dim strArr() As String
Dim count As Integer
str = "vb.net split test"
strArr = str.Split(" ")
For count = 0 To strArr.Length - 1
MsgBox(strArr(count))
Next
So how to do this in Objective-C? Thanks
Any sample code to how to use DDraw & OpenGL in wince?
I have searched in net and i dint found any where
that how to implement hardware
acceleration in wince using DDraw &
OpenGL.
Please help me.
Thanks in Advance.