Hi,
How is it possible to use a sound file (recorded by the App) as a ringtone?
Can it be used in any other way out side of the Application as well?
Thanks.
How do you cache an aspx page call on the client?
The aspx page returns an asset and looks like this:
http://srv-edu-build/edumatic3/dev/RetrieveBlob.aspx?assetId=31809&assetFileId=9823
We have tried with Output Cache, with caching in the code behind, but the only result we get is server side caching (by IIS7).
In the header of the response cache-control is set to public and expiration time is set (to 14800 as set in output cache profile).
Hi,
I have master SQL server with DB Central and a lot of satellite SQL servers with DB Client. I need to collect data from log tables(LogTable) on Client(each client has own ID in log table) to one big table on Central(LogTableCentral).
Data must go only from Client to Central
On each Client I want to have only data for this Client
I need solution with minimal amount of work on client side because of count of clients
Central is MS SQL server Enterprise, Clients are MS SQL server 2005, 2008
Thanks a lot
EDIT: data can be collected periodically(for example: every day at 01:00)
Hi.
I have been searching the internet high and low but can find some examples that can help me, I'm developing an application in wpf, in it I use a datagrid, each cell as a datatemplate with and image, in a mosaic style, on the side of the grid I have some tiles to use on the grid, I'm able to drag the tiles but can't drop then on the grid because I can't find the cell to which make the drop, is there a way to get a cell position from the the drag events?
Thanks
Hi,
i want to create google map for own site.my task is that i have to fetch some information from database and i want to show in google map,with my icon.some thing like
"http://www.jaap.nl/koophuizen/Groningen///_/_/1/?rad=5km&min=450000&max=1000000"
in right side ,google map is showing,excatly i want to show my google map.if any have idea please help me
Thanks
Manish
[email protected]
Hi all,
Is it possible to design your own Java Type, say an extensible enum? For instance, I have user roles that a certain module uses and then a sub-package provides additional roles.
What would be involved on the JDK side of things?
Walter
Hi Guys,
I need a help from ur side.Here I want to implement the sms functionality in my application.Is there anyway to or any documentation to implement this functionality.
can anyone having sample code regarding to this?
Anyone's help will be much appreciated.
Thank you,
Monish.
How do i increase the width of a column in jasper reports dynamically in java, i have tried changing many things in java side like reading the style sheet and changing the values. But in this case i don't know how to initialize the method which will read the width and change it.
I have a website that uses the facebook, twitter, delicious share links. They contain a a url encoded url of the website that you wish to share. The problem is I then want to send the facebook/twitter/delicious url through a php redirect page.
Will it work to encode a url within an encoded url? Will there be side effects?
To simplify my question:
www.website.com/redirect.php?url=" URLENCODED (http://www.facbook.com/sharer.php?t='URLENCODED(title)'&u='URLENCODED(http://www.hotel.com)')
What am I doing wrong? How come <%: this %> isn't being interpreted as C#?
Here's the code (ignore the left side):
And here is what it renders (notice the Firebug display):
What do you think is going on? MVC newb here. :(
I want to do a database-side string concatenation in a Rails query, and do it in database-independent way.
SQL-92 specifies double-bar (||) as the concatenation operator. Unfortunately it looks like MS SQL Server doesn't support it; it uses + instead.
I'm guessing that Rails' SQL grammar abstraction has solved the db-specific operator problem already. If it does exist, how do I use it?
i just noticed the guard method/class mentioned in this question and i don't really get the concept from the answers. And alas, Jon Skeet's link to an MS site never loaded. A few quick Google searches seemed to yield only products, not software engineering concepts.
Any explanation and/or samples would be appreciated. (Especially from the .Net side of things.)
I have a custom NSView that displays a nice scale/ruler. I am drawing text labels that are partly outside the actual drawing area so they get clipped by the view (looks nice).
Now, I want to introduce empty side margins into the view and need to clip its content manually. How can I set up a custom clipping rectangle?
I'm building a tool that transfers very large streaming data sets (possibly on the order of terabytes in a single stream; routinely in the tens of gigabytes) from one server to another. The client portion of the tool will read blocks from the source disk, and send them over the network. The server side will read these blocks off the network and write them to a file on the server disk.
Right now I'm trying to decide which transport to use. Options are raw TCP, and HTTP.
I really, REALLY want to be able to use HTTP. The HttpListener (or WCF if I want to go that route) make it easy to plug in to the HTTP Server API (http.sys), and I can get things like authentication and SSL for free. The problem right now is performance.
I wrote a simple test harness that sends 128K blocks of NULL bytes using the BeginWrite/EndWrite async I/O idiom, with async BeginRead/EndRead on the server side. I've modified this test harness so I can do this with either HTTP PUT operations via HttpWebRequest/HttpListener, or plain old socket writes using TcpClient/TcpListener. To rule out issues with network cards or network pathways, both the client and server are on one machine and communicate over localhost.
On my 12-core Windows 2008 R2 test server, the TCP version of this test harness can push bytes at 450MB/s, with minimal CPU usage. On the same box, the HTTP version of the test harness runs between 130MB/s and 200MB/s depending upon how I tweak it.
In both cases CPU usage is low, and the vast majority of what CPU usage there is is kernel time, so I'm pretty sure my usage of C# and the .NET runtime is not the bottleneck. The box has two 6-core Xeon X5650 processors, 24GB of single-ranked DDR3 RAM, and is used exclusively by me for my own performance testing.
I already know about HTTP client tweaks like ServicePointManager.MaxServicePointIdleTime, ServicePointManager.DefaultConnectionLimit, ServicePointManager.Expect100Continue, and HttpWebRequest.AllowWriteStreamBuffering.
Does anyone have any ideas for how I can get HTTP.sys performance beyond 200MB/s? Has anyone seen it perform this well on any environment?
Hi, I am using jquery validation plugin for client side validation.
but i want to clear error mesages on my form clear button
editUser() is called on click of Edit User button.
clear button having separated function clearUser(){
// Need to clear previous errors here
}
function editUser(){
var validator = $("#editUserForm").validate({
rules: {
userName: "required"
},
errorElement: "span" ,
messages: {
userName: errorMessages.E2
}
});
if(validator.form()){
// form submition code
}
}
Thanks
Suppose I had a WCF service that I have coded up, like Clemens Vasters's XML-RPC with WCF, and want to stick a workflow behind it on the server side.
Is this possible to do with Windows Workflow? If so, how?
The toolbox ReceiveActivity appears to create the WCF service for me.
I'd prefer the answer in terms of Workflow 4.0, if possible.
I have a panel that is docked to the right side of a windows form. I set a color with a setting on the panel but I want to then update the main form (not the panel) backcolor to the new setting. But when I use me.backcolor = setting it changes the panels backcolor.
This is also with VB.net windows forms with Visual Studios 2008
Thanks
Hello,
Which query to write in JPQL for backing up database on disk? If in JPQL it's not available even native sql query will do.
Also, i would like to bring one issue in front of stackoverflow developers :- This site doesn't properly work in Opera (Opera 9.63). Whenever i write question and click "Post Your question" The button click event doesn't fire at all, may be, the server side event doesn't fire or something. However, no such problem comes in IE and firefox.
One of the features of the Flash app I'm working on is to be able to stream a webcam to others. We're just using the built-in webcam support in Flash and sending it through FMS.
We've had some people ask for higher quality video, but we're already using the highest quality setting we can in Flash (setting quality to 100%).
My understanding is that in the newer flash players they added support for MPEG-4 encoding for the videos. I created a simple test Flex app to try and compare the video quality of the MP4 vs FLV encodings. However, I can't seem to get MP4 to work at all.
According to the Flex documentation the only thing I need to do to use MP4 instead of FLV is prepend "mp4:" to the name of the stream when calling publish:
Specify the stream name as a string
with the prefix mp4: with or without
the filename extension. The prefix
indicates to the server that the file
contains H.264-encoded video and
AAC-encoded audio within the MPEG-4
Part 14 container format.
When I try this nothing happens. I don't get any events raised on the client side, no exceptions thrown, and my logging on the server side doesn't show any streams starting.
Here's the relevant code:
// These are all defined and created within the class.
private var nc:NetConnection;
private var sharing:Boolean;
private var pubStream:NetStream;
private var format:String;
private var streamName:String;
private var camera:Camera;
// called when the user clicks the start button
private function startSharing():void {
if (!nc.connected) {
return;
}
if (sharing) { return; }
if(pubStream == null) {
pubStream = new NetStream(nc);
pubStream.attachCamera(camera);
}
startPublish();
sharing = true;
}
private function startPublish():void {
var name:String;
if (this.format == "mp4") {
name = "mp4:" + streamName;
} else {
name = streamName;
}
//pubStream.publish(name, "live");
pubStream.publish(name, "record");
}
Hello,
I would like to know if we have an avahi api for iphone side? Alternatively, can we implement avahi protocol in iphone?
The avahi API provides:
avahi-core: an API for embedding a
complete mDNS/DNS-SD stack into your
software. This is intended for
developers of embedded appliances
only. We dissuade from using this API
in normal desktop applications since
it is not a good idea to run multiple
mDNS stacks simultaneously on the same
host.
Hello. I have a Core Data model, and was wondering if you know how to create a binding to an Entity, programmatically? Normally you use bind:toObject:withKeyPath:options: to create a binding. But I'm having a little difficulty getting this to work with Core Data, and couldn't find anything in Apple's docs regarding doing this programmatically.
The Core Data model is simple:
An Entity called Book
An Attribute of Book called author (NSString)
I have an object called BookController. It looks like so:
@interface BookController : NSObject
{
NSString *anAuthor;
}
@property (nonatomic, retain) NSString *anAuthor; // @synthesize anAuthor; inside @implementation
I'd like to bind anAuthor inside BookController, to author inside a Book entity. This is how I'm attempting to wrongly do it (it partially works):
// A custom class I made, providing an interface to the Core Data database
CoreData *db = [[CoreData alloc] init];
// Creating a Book entity, saving it
[db addMocObject:@"Book"];
[db saveMoc];
// Fetching the Book entity we just created
NSArray *books = [db fetchObjectsForEntity:@"Book" withPredicate:nil withSortDescriptors:nil];
NSManagedObject *book = [books objectAtIndex:0];
// Creating the binding
BookController *bookController = [[BookController alloc] init];
[bookController bind:@"anAuthor" toObject:book withKeyPath:@"author" options:nil];
// Manipulating the binding
[bookController setAnAuthor:@"Bill Gates"];
Now, when updating from the perspective of bookController, things don't work quite right:
// Testing the binding from the bookController's perspective
[bookController setAnAuthor:@"Bill Gates"];
// Prints: "bookController's anAuthor: Bill Gates"
NSLog(@"bookController's anAuthor: %@", [bookController anAuthor]); // OK!
// ERROR HERE - Prints: "bookController's anAuthor: (null)"
NSLog(@"Book's author: %@", [book valueForKey:@"author"]); // DOES NOT WORK! :(
When updating from the perspective of the Book entity, things work fine:
// ------------------------------
// Testing the binding from the Book's (Entity) perspective (this works perfect)
[book setValue:@"Steve Jobs" forKey:@"author"];
// Prints: "bookController's anAuthor: Steve Jobs"
NSLog(@"bookController's anAuthor: %@", [bookController anAuthor]); // OK!
// Prints: "bookController's anAuthor: Steve Jobs"
NSLog(@"Book's author: %@", [book valueForKey:@"author"]); // OK!
It appears that the binding is partially working. I can update it on the side of the Model and it propagates up to the Controller via KVO, but if I update it on the side of the Controller, it doesn't trickle down to the Model via KVC.
Any idea on what I'm doing wrong? Thanks so much for looking! :)
Hi all,
my first question here, so please don't be to harsh if something went wrong :)
I'm currently a CS student (from Germany, if this info is of any use ;) ) and we got a, free selectable, programming assignment, which we have to write in a C++/CLI Windows Forms Application.
My team, two others and me, decided to go for a network-compatible port of the board game Risk.
We divided the work in 3 Parts, namely UI, game logic and network. Now we're on the part where we have to get everything working together and the big question mark is, how to get the clients synchronized with each other?
Our approach so far is, that each client has all information necessary to calculate and/or execute all possible actions. Actually the clients have all information available at all, aside from the game-initializing phase (add players, select map, etc.), which needs one "super-client" with some extra stuff to control things.
This is the standard scenario of our approach:
player performs action, the action is valid and got executed on the players client
action is sent over the network
action is executed on the other clients
The design (i.e. no or code so far) we came up with so far, is something like the following pseudo sequence diagram.
Gui, Controller and Network implement all possible actions (i.e. all actions which change data) as methods from an interface. So each part can implement the method in a way to get their job done.
Example with Action():
On the player side's Client:
Player-->Gui.Action()
Gui-->Controller.Action()
Controller-->Logic.Action
(Logic.Action() == NoError)?
Controller-->Network.Action()
Network-->Parser.ParseAction()
Network.Send(msg)
On all other clients:
Network.Recv(msg)
Network-->Parser.Deparse(msg)
Parser-->Logic.Action()
Logic-->Gui.Action()
The questions:
Is this a viable approach to our task?
Any better/easier way to this?
Recommendations, critique?
Our knowledge (so you can better target your answer):
We are on the beginner side, in regards to programming on a somewhat larger projects with a small team.
All of us have some general programming experience and basic understanding of the .Net Libraries and Windows Forms.
If you need any further information, please feel free to ask.
Hi,
I'm having a headache figuring how to retrieve the gwt Radio Buttons values in the server side.
Here is my UiBinder form:
<g:FormPanel ui:field="form"><g:RadioButton name="fruit">apple</g:RadioButton><g:RadioButton name="fruit">banana</g:RadioButton> ...
So i though i would have to do this on the servlet:
fruit = req.getParameter("fruit")
But of course this doesn't work, parameter fruit doesn't exist :/
So how should i do?
Hello everyone,
I need to get the selected value from an ajax.net combobox throught javascript so that I can do some client side validation.
What's the best way to do this?
Thanks,