Hi,
I have small TcpClient app to connect to a server using SSL (SSlStream class)
My question is, how to accept any ssl certification when connecting?
Thanks,
Let's say I write some code, which we'll call X. It uses some GPL code, let's call it library Y. Clearly I would have to release X with a GPL license. That's fine. My question is, can I additionally release X under a license such as MIT, so that if someone only wants X but not Y they don't need to use it with the GPL?
I want to avoid an item being removed from cache when expire in SOME OCASIONS
If i understand how CacheItemUpdateCallback works, i need to asign to expensiveObject the new object, in my case: the old one.
But i cant access the item with HttpContext.Current.Cache[key],
my question: how to access it? or in other words, How avoid this item being removed.?
i saw that in asp.net .asmx file, we create webservices
[webmethod]
//method defination here
now for soap webservice
[webmethod]
[SoapHeader(some parameters here)]
//method defination here
my question is what's the difference b/w both webservices type and how to choose which service type to choose
Trying to draw a shadow using code from this question: http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-under-a-uiview
I implement it in a UIView subclass as discussed, but when I try and use it using UIView *shadow = [[ShadowView alloc]initWithFrame:CGRectMake(100,100,100,100)]; I get only a black square, rather than something resembling shadow.
Am I missing something here?
I know this is not a straight up question, so if you need me to provide more information about the scope of it, let me know. There are a bunch of questions that address almost the same issue (they are linked here), but never the exact same one with the same kind of scope and objective - at least as far as I know.
Context:
I have a MP3 file with ID3 tags for
artist name and song title.
I have two tables Artists and Songs
The ID3 tags might be slightly off (e.g. Mikaell Jacksonne)
I'm using ASP.NET + C# and a MSSQL database
I need to synchronize the MP3s with the database. Meaning:
The user launches a script
The script browses through all the MP3s
The script says "Is 'Mikaell Jacksonne' 'Michael Jackson' YES/NO"
The user pick and we start over
Examples of what the system could find:
In the database...
SONGS = {"This is a great song title", "This is a song title"}
ARTISTS = {"Michael Jackson"}
Outputs...
"This is a grt song title" did you mean "This is a great song title" ?
"This is song title" did you mean "This is a song title" ?
"This si a song title" did you mean "This is a song title" ?
"This si song a title" did you mean "This is a song title" ?
"Jackson, Michael" did you mean "Michael Jackson" ?
"JacksonMichael" did you mean "Michael Jackson" ?
"Michael Jacksno" did you mean "Michael Jackson" ?
etc.
I read some documentation from this /how-do-you-implement-a-did-you-mean and this is not exactly what I need since I don't want to check an entire dictionary. I also can't really use a web service since it's depending a lot on what I already have in my database. If possible I'd also like to avoid dealing with distances and other complicated things.
I could use the google api (or something similar) to do this, meaning that the script will try spell checking and test it with the database, but I feel there could be a better solution since my database might end up being really specific with weird songs and artists, making spell checking useless.
I could also try something like what has been explained on this post, using Soundex for c#.
Using a regular spell checker won't work because I won't be using words but names and 'titles'.
So my question is: is there a relatively simple way of doing this, and if so, what is it?
Any kind of help would be appreciated.
Thanks!
Hello,
I have been looking for an alternative to Hibernate for various reasons. I came across Liquibase and i like the idea so i am willing to try it. Liquibase will cater for database creation/modification in a SQL independent fashion. My main question is how does my code in my application execute SQL statements without being database dependent? Is there some other project that acts like Hibernates Dialect classes?
Thanks,
Paul
The setup:
I have a project that is using CouchDB. The documents will have a field called "tags". This "tags" field is an array of strings (e.g., "tags":["tag1","tag2","etc"]). I am using couchdb-lucene as my search provider.
The question:
What function can be used to get couchdb-lucene to index the elements of "tags"?
If you have an idea but no test environment, type it out, I'll try it and give the result here.
After deploying DelayedJob as a gem, I got the following error:
undefined method `handle_asynchronously' for #<Class:0x4601b08>
Same code works when I deploy DelayedJob as a plugin.
I have tried the solution suggested by this SO question and I still get the same error.
I am using DelayedJob 1.8.4, Windows XP, Rails 2.3.5.
I am currently using an XHTML 1.0 transitional doctype on my vBulletin website. The page in question is PHP. The source (view source) of this page verifies that the XHTML 1.0 transitional doctype is on the page. Upon downloading (File Save As) the page in IE8, I realized that my doctype had been replaced with an HTML 4.0 transitional doctype.
Why does IE8 change the doctype?
Why isn't the doctype its chosen displayed in the "View Source"?
I want to select information in a single cell from my DataGrid in Flex 3.
Specifically, I'm displaying three phone numbers per line and the user needs to be able to select one of those numbers, from any row, but not the whole row.
While similar to this, I am displaying the DataGrid to the user. The answer for that question was to manipulate the dataProvider, how can I know what cell I've selected in order to do that?
Hello All,
I am not sure if this will be right place to ask the question, but I have spent las 2 hours on Google trying to find something.
Im looking for image gallery/sideshow that will look like the one on dell web site.
Can anyone direct me to one please?
I would really appreciate.
Thanks
Dom
Hi,
I have a UILabel tha contains a URL (ie www.google.com). Is there a way to display the label as URL so the User can tap on the URL for Safari to open it?
Same question I have for a mailto item (ie [email protected]) to open mail with a new email to that address
thanks in advance
I have been repeatedly asked these question in many interviews.... But still can't able to explain them with a simple example...
What is nullable types in c#?When should one use nullable types in c#?Any simple ex?
Any suggestion....
Hello,
I am working as an Iphone developer since 5 months but never ever i have used NSfilemanager class. Apple has documentation but still i am not cleared about its use. My question is that can anybody tell me(with example) how and when to use the NSfilemanager class ? Any help will be appreciated. Thanks.
Hi
I've got a question about opening the old project in VS2008.
If I have old c++ project(implement in VS6.0), and now I'd like to open it in VS2008 but I don't want to use .NET library because the application will be installed on the machine that has no any .NET framework (and I don't want to install any .NET to that machine).
So is it possible to do that in VS2008? is there any configuration in VS2008?
Thanks
I've a MySQL table that has a UTF-8 charset and upon attempting to insert to it via a PHP form, the database gives the following error:
PDOStatement::execute():
SQLSTATE[HY000]: General error: 1366
Incorrect string value: '\xE8' for
column ...
The character in question is 'è', yet I don't see why this should be a problem considering the database and table are set to UTF-8.
Similar to http://stackoverflow.com/questions/148578/
but that question doesn't address MS Windows.
Has anyone been able to use rsync instead of plink, either through cygwin or otherwise?
I've been using a text editor for my rails app for a while and I have a workflow that I am happy with for my existing app.
However, I am about to be starting a new app and it appears that Aptana RadRails is sufficiently developed and stable enough for use. (The last time I tried it it was in beta and wasn't quite fully baked.)
So my question is: Is it widely used in the community? What are peoples general thoughts on it?
I am trying to access an XML file from JSP on my Tomcat server. The error is from Catalina's protocol handler and the exception is java.io.FileNotFoundException trying to access my .keystore in the 'documents and settings' folder for my signed-on user (with admin, but not the user that installed the server).
I can provide the stacktrace if that would help ... but my question is more fundamental about secure access to files and where is the keystore configured / used on a Window's install?
I have a Sequence Activity which holds two activities (Activity A and B), the input dependency property for Activity B is bound an output dependency property of Activity A. However, when I run the sequence activity, the Input for activity B is never updated and just uses the default value of activity A's output.
My question is: is there a way to enforce an update on activity B's input so that it gets the latest value of activity A's output?
Hi,
If I have a file myfile.py, which imports Class1 from file.py and file.py contains imports to different classes in file2.py, file3.py, file4.py.
In my myfile.py, can I access these classes or do I need to again import file2.py, file3.py etc...
My question is whether python automatically add all the imports included in the file I imported, and can I use them automatically.
Thank you.
Bala
For a listView, when you register an OnItemClickListener, the method you specify looks like this:
public abstract void onItemClick (AdapterView parent, View view, int position, long id)
The id corresponds to the row that the user clicked on. My question is simply why is it a long and not an int? When would you use it as a long? I've been casting it to an int when I use it, so it makes me think that maybe I'm using it wrong.
Hi,
I am writing a CMD file which runs a bunch of sql files, like this:
:: Running every sql file in the temp directory
For %%G IN (.\install\*.sql) DO (
:: run sql script
echo exit | sqlplus interacct/interacct @%%G
)
My question is how do I capture an error when one of the scripts didn't succeed?
Thankyou.
Sarah
I am currently working on an image processing application. The application captures images from a webcam and then does some processing on it. The app needs to be real time responsive (ideally < 50ms to process each request). I have been doing some timing tests on the code I have and I found something very interesting (see below).
clearLog();
log("Log cleared");
camera.QueryFrame();
camera.QueryFrame();
log("Camera buffer cleared");
Sensor s = t.val;
log("Sx: " + S.X + " Sy: " + S.Y);
Image<Bgr, Byte> cameraImage = camera.QueryFrame();
log("Camera output acuired for processing");
Each time the log is called the time since the beginning of the processing is displayed. Here is my log output:
[3 ms]Log cleared
[41 ms]Camera buffer cleared
[41 ms]Sx: 589 Sy: 414
[112 ms]Camera output acuired for processing
The timings are computed using a StopWatch from System.Diagonostics.
QUESTION 1
I find this slightly interesting, since when the same method is called twice it executes in ~40ms and when it is called once the next time it took longer (~70ms).
Assigning the value can't really be taking that long right?
QUESTION 2
Also the timing for each step recorded above varies from time to time. The values for some steps are sometimes as low as 0ms and sometimes as high as 100ms. Though most of the numbers seem to be relatively consistent.
I guess this may be because the CPU was used by some other process in the mean time? (If this is for some other reason, please let me know)
Is there some way to ensure that when this function runs, it gets the highest priority? So that the speed test results will be consistently low (in terms of time).
EDIT
I change the code to remove the two blank query frames from above, so the code is now:
clearLog();
log("Log cleared");
Sensor s = t.val;
log("Sx: " + S.X + " Sy: " + S.Y);
Image<Bgr, Byte> cameraImage = camera.QueryFrame();
log("Camera output acuired for processing");
The timing results are now:
[2 ms]Log cleared
[3 ms]Sx: 589 Sy: 414
[5 ms]Camera output acuired for processing
The next steps now take longer (sometimes, the next step jumps to after 20-30ms, while the next step was previously almost instantaneous). I am guessing this is due to the CPU scheduling. Is there someway I can ensure the CPU does not get scheduled to do something else while it is running through this code?