Is there any sample code, how to practically unzip folder from ZIP into my desired directory? I have read all files from folder "FOLDER" into byte array, how do I recreate from its file structure?
I have two controls a TextBox and a radcombobox in ItemTemplate of a GridView. What I want to do is when the event onclientsideselectedindexchanges of radcombobox is fired. I want to show/Hide the TextBox on client side with JavaScript. Basic purpose of this is to avoid post back to show the TextBox which will be DataBound to database. If it is not possible to do on the client-side, then please suggest some alternative on server side.
I have made a website that's work fine on my computer (through all modern browser). Someone reported it's not worked from Safari mobile. I have tried to see from Safari on windows that's make me look same as I want. I have seen their screenshot and feel something wrong with my UI. Can someone have idea how I can check the look from my computer (windows). How I can test my website for safari mobile from my computer.
am trying to connect with active directory with the support of ssl. i tried the steps from following web site. http://confluence.atlassian.com/display/CROWD/Configuring+an+SSL+Certificate+for+Microsoft+Active+Directory when i try to connect active directory from the java code it gives following error. Exception in thread "main" javax.naming.CommunicationException: simple bind fail ed: 172.16.12.4:636 [Root exception is java.net.SocketException: Connection rese t] at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source) at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source) at com.sun.jndi.ld
i'm having a problem to use Unit test in C, i've tried to install CUnit in my computer and after include the lib. i've followed steeps to install the CUnit: 1 - download the sources 2 - configure it using "./configure --prefix='/lib' " 3 - make (only make) 4 - sudo make install and this is my test source file, it's not making tests, but i can't compile this, i got this error before "CUnit.h: No such file or directory": #include "CUnit.h" #include <stdlib.h> #include <stdio.h> int main(){ print("Hello"); return 0; } I want to know, how can i install CUnit to use in my test source files! Thanks
Say I have this file: http://www.example.com/somepic.png Is there a cross platform C or C++ library that could easily allow me to download it to a specified directory?
consider a query that looks something like this: my $query=<<QUERY; select * from foo1 where col < ? union all select * from foo2 where col < ? QUERY Assume that the actual query really needs unions and can't be efficiently solved another way. The variable in the where clause will always be the same. Is there any way I can structure this so that I only need to pass 1 argument to execute instead of passing the same argument twice?
I am developing an android app where I will provide a button on which, when ever the user clicks, they will get the live score updates of the Soccer game. Are there any tutorials for that or, any Open-source code available for that I am trying to achieve some what like the image given below:
I have an intranet site that uses a Silverlight application to take pictures with the WebCam of the computer. Testing the site on a Development environment works fine but testing the site on a QA environment wont display any image. Looking more in deep on both sites I see that the Silverlight permissions tab has define "ALLOW" to the Development URL but the QA url does not appear at all on the permissions tab. How can I add the URL of the QA site to the permissions tab on the Silverlight Permissions tab ? I am using the Silverlight 4.0. Thanks for your replies.
I have a tab-delimited file, for example: ID NAME FAMILYTAG EFFECT 001 John Black Positive 002 Kate Rhodes,Mich Positive 003 Aaron Sunders Negative 004 Shirley Rhodes Negative 005 Dexter Sunders,Hark Positive I want to input this file (which is actually much larger) and read in a name, for example Kate. Then I want the script to recognize its family tag, i.e. it contains Rhodes, and then output the other family member Shirley. Is there a way to do this? The output file will look like this. Kate Rhodes Shirley Rhodes
My application is built on Java EE. I have approximately 50 jars in this application. Is it possible to search for a particular keyword (actually I want to search for a keyword BEGIN REQUEST)?
I'm working on a Pedestrian Navigation System on Android. I am currently trying to get the rotation matrix between the 3-axis accelerometer referential and the motion that is applied to the device. Let's say you are walking straight forward with the device in your hand, but the Y axis of the accelerometer (thus the device's Y axis) is not oriented in the same direction as the one you're heading yourself (basically you're holding the device in an awkward way). Then if I want to apply distances (based on step detection), it would be wrong to apply them to the accelerometer referential (which I k
I am saving some data in order using arrays, and I want to add a function that the user can reverse the list. I can't think of any possible method, so if anybody knows how, please help.
I am porting program from C# to java. I've faced a fact that Java Math.pow(0.392156862745098,1./3.) = 0.7319587495200227 C# Math.Pow( 0.392156862745098, 1.0 / 3.0) =0.73195874952002271 this last digit leads to sufficient differences in further calculations. Is there any way to emulate c#'s pow? Thanx
I am developing a VB application in which i need to know the native resolution of the monitor and not the one set by the user(current resolution). So i need to read the EDID (extended display identification data) directly from the monitor. I did try to find the resolution of monitor through some programs...but all it returns is the current resolution. Any help to read the info directly from EDID of monitor is appriciable. Thanks in advance
I'm making a mobile website, using jQuery Mobile and ASP.NET 4.0 Webforms. I have made an initial login page (Default.aspx) in which the button calls an ajax JavaScript function, which calls a page method in the backend like so: Default.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UCP.Default" %> <!DOCTYPE html> <html> <head> <title>UA Cover Plus</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script src="http://code.jquery.co
I want to use the actual pointer address (not marked volatile) to an object to uniquely identify the object. Is this a bad thing to do? In general, does system memory management move the objects and hence its address about or is the pointer stable?
val implies = fn x y = case x of false andalso case y of false => true | fn x y = case x of false andalso case y of true => true | fn x y = case x of true andalso case y of false => false | fn x y = case x of true andalso case y of true => true; I can't get this to compile. I'm relatively new to SML so not quite getting the general language and syntax. What have I done wrong?
I have created an sample application of calculator for sum of two numbers using webservices in Java by using Jersey service. My code is : Calculator.java package p1; import javax.jws.WebService; import javax.jws.WebMethod; import javax.ws.rs.Path; @WebService @Path("/CalculatorService") public class Calculator { @WebMethod public String sum(int x,int y) { return ""+(x+y); } } Calculator.java: package mypack; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /**
Hi guys I'm reading a paper Eigenfaces vs. Fisherfaces: Recognition Using Class Specific Linear Projection, I'm wondering why in PCA the projection W is chosen to maximize the determinant of the total scatter matrix of the projected samples, i.e., arg max|W^T S_T W|(in latex form) where S_T is the scatter matrix of the original dataset. Thanks very much!
I am using jquery ajax to pass json rpc request to remote server. Here is my json string: {"jsonrpc":"2.0","method":"merchant_check","params":{"hostID":150999,"orderID":107,"amount":"7777","currency":"051","mid":15001038,"tid":15531038,"mtpass":"12345","trxnDetails":""},"id":107} I am getting this error: {"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"Invalid JSON-RPC 2.0 request error (-32600)"}} What am I doing wrong? Thanks for help.
I usually use kill -9 pid to kill the job. I always wondered the origin of 9. I looked it up online, and it says: "9 Means KILL signal that is not catchable or ignorable. In other words it would signal process (some running application) to quit immediately" (source: What does the command kill -9 do in Unix?) But, why 9? And what about the other numbers? Is there any historical significance or is it because of the architecture of Unix?
How can I ignore the "not in list" error message if I call a.remove(x) when x is not present in list a? This is my situation: >>> a = range(10) >>> a [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> a.remove(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: list.remove(x): x not in list >>> a.remove(9)
I am currently working on HTML I want to ask a question about website development.I am developing a website in which the basic layout remains same like menu, side menu etc but only the content changes.Currently I have make separate .html file for all web pages. Can any one tell me is there a way through which I can make a separate file having etc common to all and call it in my html file.I have heard about CSS but it will only change the style and layout. thanks
I am working with YouTube APIs for my college project, and I keep getting an error. Here I send them to the authorisation page to log in, when they allow access it sends the $_GET['code'] string back. Then I send this along with some other data and it should send back a JSON object. Instead I am just getting Warning: file_get_contents(https://accounts.google.com/o/oauth2/token) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in http://www.example.net/callback.php on line 27 I have replaced my domain with example.net just for security urlencode
What is the difference between mvc2 and mvc3 template in visual studio? Can I use MVC2 template instead of MVC3 template? Just a beginner, so want to create some samples in MVC3 framework.
I am working on a UNIX system and I'd like to merge thousands of PDF files into one file in order to print it. I don't know how many pages they are in advance. I'd like to print it double sided, such that two files will not be on the same page. Therefore it I'd the merging file to be aligned such that every file will begin in odd page and a blank page will be added if the next place to write is an even page.
I've just been reading the HTML5 author spec. It states that the <html>, <head> and <body> tags are optional. Does that mean that you can leave them out completely and still have a valid HTML5 document? If I'm interpreting this correctly, it means this should be completely valid: <!DOCTYPE html> <p>Hello!</p> Is this correct? You can check out the spec here: http://dev.w3.org/html5/spec-author-view/syntax.html#syntax "8.1.2.4 Optional tags" is the bit out about it being OK to omit <html>, <head> and <body>