instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a large directory with lots of sub-directories and files in them. For testing purpose, I need to create a copy of the above with exact directory structure (empty dirs too) but copy only two files (does not matter which two) from each sub-directory. How can I do that using xcopy.
| stackexchange/codereview |
I'm debugging a program right now in visual C#, and in the program I access a file using a relative path.
Stream s = File.Open("usr.dat", FileMode.OpenOrCreate);
This is currently spitting it out in the (Project Folder)/bin/x86/Debug folder(where the compiled executable is). Is there a way to change where the relati... | stackexchange/codereview |
In MySQL to match '12684041234' to the longest prefix you would do
SELECT num_prefix
FROM nums
WHERE '12684041234' LIKE CONCAT(num_prefix, '%')
AND LENGTH(num_prefix) = (
SELECT MAX(LENGTH(num_prefix))
FROM nums
WHERE '12684041234' LIKE CONCAT(num_prefix, '%')
)
Table nums has a column named num_prefix wit... | stackexchange/codereview |
this is the code from the tutorial book.
class user {
// return if username is valid format
public static function validateUsername($username){
return preg_match('/^[A-Z0-9]{2,20}$/i', $username);
}
}
i wonder, what is the function of static?
it's too bad the book i read didn't explain it :(
| stackexchange/codereview |
I have a big question. There are an application, which contain the following method:
socket(AF_INET, SOCK_STREAM, 0);
The socket return 29 and I don't see the port in the terminal (netstat).
I use this method in Android-ndk and I use the INTERNET permission in the Android Manifest file.
What is the problem in the metho... | stackexchange/codereview |
I have an App I have updated with some .Net4 assemblies, including the custom actions .dll that runs when the app is going to be uninstalled.
The App was initially installed with .Net 3.5 and it requires some custom actions when installing and uninstalling.
The problem is that now when uninstalling the .dll of the cust... | stackexchange/codereview |
Hi I'm trying to get a variable value (ref within contractRef) in the xml below, but when I use what I assume to be the xpath:
/discovery/contractRef[@xmlns='http://schemas.xmlsoap.org/disco/scl/']/@ref
it returns nothing. How can I get this variable, what am I missing? Thanks
<?xml version="1.0" encoding="utf-8"?>
<d... | stackexchange/codereview |
Hmm. I found this which seems promising:
http://sourceforge.net/projects/mjpg-streamer/
Ok. I will try to explain what I am trying to do clearly and in much detail.
I have a small humanoid robot with camera and wifi stick (this is the robot). The robot's wifi stick average wifi transfer rate is 1769KB/s. The robot has... | stackexchange/codereview |
Only sometimes (I haven't yet noticed a pattern), VS2010 shows the following error (where I'd expect the body of the property page to be) when I right-click on a project (various types of projects) and select "Properties":
I can typically view the project pages after restarting VS2010. I'm using the RTM version.
What... | stackexchange/codereview |
What's the best way to deploy a PHP PDT Eclipse Project on Apache 2.2 on Ubuntu?
I already tried to find an Apache Eclipse server adapter but got no luck. Do you know any?
If not, what's the best way to deploy a PHP Project to Apache? Shell script? Ant script? Other solution?
I could put the project folder inside the A... | stackexchange/codereview |
I don't know if this is possible, but I have a column named active in a table. Whenever the active column gets changed, I would like to reset the date in the date column, but ONLY if the active column gets changed.
If other columns are changed but not the active column, then the date would remain the same.
| stackexchange/codereview |
The Situation: I have a pdf document that includes hyperlinks. I would like my iPhone app to display this pdf document, and enable clicking of the hyperlinks.
Note: Currently, I am trying to do this with a UIWebView, which unfortunately seems unable to detect link taps. There is a family of classes & methods called CG... | stackexchange/codereview |
I'm looking for a way to do a non-recursive os.walk() walk, just like os.listdir() works. But I need to return in the same way the os.walk() returns. Any idea?
Thank you in advance.
| stackexchange/codereview |
i'm new in GC,
if i want to release a datatable array, does calling dispose() on all its datatables is enough? do i need to set null to the databale array too ? or to every datatable?
is this enough?:
DataTable[] myTables = null;
try
{
myTables = DB.GetTables();
... | stackexchange/codereview |
Does anybody know what is the shake code for android 2.2? I want on shake to make buzz on my application. Thanks.
| stackexchange/codereview |
I am trying to write a python wrapper for a C function. After writing all the code, and getting it to compile, Python can't import the module. I am following the example given here. I reproduce it here, after fixing some typos. There is a file myModule.c:
#include <Python.h>
/*
* Function to be called from Python
*/... | stackexchange/codereview |
I know that there is a problem in boost such that concept check will not pass for boost::wave. However I want as thorough a concept check as possible. Is there any way to JUST turn off concept check for boost::wave, but keep everything else? i.e. is there a macro like one would use with /#pragma pop_macro("MACRO") ?
| stackexchange/codereview |
This is the signature per Acquia's documentation:
notifications_user_get_subscriptions($uid, $event_type,
$oid, $object = NULL, $refresh = FALSE)
I have used this method before to get node-level subscriptions for a user. I cannot figure out what to pass for parameter 4 if I want to get subscriptions for a speci... | stackexchange/codereview |
I am trying to compute a definite double integral using scipy. The integrand is a bit complicated, as it contains some probability distributions to give weight to how likely is each value of x and y (like a mixture model). The following code evaluated to a negative number, but it should be bound by [0,1]. Additionally,... | stackexchange/codereview |
i have shared hosting on windows 2008 server and one project in php.
actually i want to run one php file once in a day automatically...
i want to run one schedule task once
in day.
any php code, jquery or ajax
for information.
i have access to ftp to up load files to my domain but i don't have sever access ... | stackexchange/codereview |
On my job, I am working with a big .NET application which writes to a log file. Let's call the application CompanyApplication. I have written a simple Python script which clears the log:
file_object = open('C:\\log.txt', 'w')
file_object.write("")
file_object.close()
When CompanyApplication.exe is not running this wor... | stackexchange/codereview |
I wrote a simple assembler using flex and bison . It worked perfectly until I made a small change . Was a harmless additional rule in the lex and yacc specifications . After that it throws a segmentation fault each time I run it . I tried to trace the source of this seg fault but it turns out it occurs before the main ... | stackexchange/codereview |
Where can I find statistics with the most common exploited vulnerabilities (such as buffer overflows) in software?
| stackexchange/codereview |
I have some text which is an image. The image glows and sparkles etc over 10 frames(images).
I want to run some of the core animation tricks on this and have it grow in size and then fade. That works perfect when I just use the first image. But if i want to animate the image as the artist intended with its sparkles and... | stackexchange/codereview |
I have this function I found in an article somewhere that seems to mix prototype with jquery scripts, but I don't want to include prototype as it breaks everything else. So I wanted to see if anyone out there could help convert this to jQuery for me.
The function is supposed to detect if the browser auto-filled out for... | stackexchange/codereview |
In an MVC project I'm creating I have the following RequirePermissionAttribute that gets put on any action that needs specific permissions (it's been simplified for this example):
public class RequirePermissionAttribute : ActionFilterAttribute, IAuthorizationFilter
{
public Operation Permissions { get; set; }
... | stackexchange/codereview |
Say i am fetching a single row by using $row=$model_produc->fetchRow(); it contains category_id but not category_name, i will fetch category name from the category table.
My Question is that how can i add new attribute in $row say $row->category_name ????
Thanks in Advance.
| stackexchange/codereview |
I made an XML file under my newly created res/menu folder. Menu.xml contains my menu definition for use with MenuInflater.
The entire XML file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/settings"
android:titl... | stackexchange/codereview |
My gaol is to draw several images using 2D graphics in a paintComponent() method. However, I'm not sure how I could add a MouseListener such that each image would know if it was selected.
My solution thus far is too simply record the coordinates of the mouse click, and see if they are contained within the boundaries of... | stackexchange/codereview |
If someone here is willing to help me I would really appreciate
the function removeInput() of javascript at below not work properly, what i should do?
<script language="javascript">
fields = 0;
function addInput() {
if (fields != 10) {
var htmlText = "<input type='text' name='friends[]' value='' size='auto... | stackexchange/codereview |
I'd like to make a generic value -vs- time plot with python's matplotlib module. My times are in unix time but I'd like them to show up in a readable format on the plot's x-axis.
I have read answers about plotting with datetime objects but this method seems to remove hour/min/sec information and rails timestamps to ... | stackexchange/codereview |
import javax.swing.*;
import java.awt.*;
public class MyClass {
public static void main(String args[]) {
JFrame myFrame = new JFrame();
myFrame.setSize(new Dimension(500, 500));
myFrame.setMinimumSize(new Dimension(300, 300));
myFrame.setMaximumSize(new Dimension(800, 800));
my... | stackexchange/codereview |
I am trying to open Word and Excel 2003 docs using loadRequest and I am getting this error
(in simulator).
Unable to Read Document.
An error occurred while reading the document.
According to this link,
http://developer.apple.com/library/ios/#qa/qa2008/qa1630.html
UIWebView should display doc and xls types.
Any ideas? ... | stackexchange/codereview |
the password string is some kind of like that
MTY5LTYtNjEtMjAxLTkwLTE3MS05My0yMDAtMTMxLTE5Mi01My0xNjItMC0yMjAtMTgxLTIyNg==
I tried base 64 encoder and it gives me:
169-6-61-201-90-171-93-200-131-192-53-162-0-220-181-226
Looks like encode by ASCII Code
I put the numbers on ASCII code list gives me :
©=ÉZ«]ȃÀ5¢Üµâ
B... | stackexchange/codereview |
I have an existing UITableViewController that was previously being used in a UINavigationController.
I need to convert it to be presented as a modal view. However, I still want to have a navigation bar at the top. I know this sounds strange- why not present it in the UINavigationController if I want a UINavBar? I want ... | stackexchange/codereview |
How can I know the real client area of a control?
I have an app with a treeview. I do some low level manipulation to this treeview and I need to know the real client area of the control. So far I have used TreeView.Height/Width, but when the tree grows and a horizontal or vertical scroll bar appears, some of this space... | stackexchange/codereview |
Here is the following issue:
If I am developing on a 32 bit machine and want my code to be ported to a 64 bit machine here is the senario.
My function internally use a lot of std strings. Now if I want to provide APIs can I ask them to send char * which I can then use internally? Or ask them to send me a __int64 which ... | stackexchange/codereview |
i'm just trying to work out a simple way opening, editing and saving an xml file using python.
so far i have managed to open a file and write it to output.
i have not, however managed to print it out easily so that i know what's in any given object, traverse the object model, edit tags and attributes, or write the xml ... | stackexchange/codereview |
In my Excel sheet, like below there are three fields. I would like to connect to SQL Server (myserver) database (checkdb). Checkdb database has a table (checktable) that has two fields (Material and SerialNumber). With this connection I want to look up each SerialNumber and Meterial and write some text to check field i... | stackexchange/codereview |
Given an enum similar to this:
Friend Enum TestValue As Int32
tstNotSet = -1
tstA = 0
tstB = 1
tstC = 2
tstD = 3
tstE = 4
tstF = 5
tstG = 6
tstH = 7
tstI = 8
tstJ = 9
tstK = 10
tstL = 11
tstM = 12
End Enum
And an Array similar to this:
Dim TestValues() As String ... | stackexchange/codereview |
Works except for when I free the crawler:
public void setCrawlerFree(WebCrawler w)
{
synchronized(myFreeCrawlers)
{
synchronized(numToGo)
{
myFreeCrawlers.add(w);
myFreeCrawlers.notifyAll();
numToGo--;
numToGo.no... | stackexchange/codereview |
I am new to ASP.NET MVC and I have been able to figure pretty much everything I needed to until now. My URLs are getting more complex and I can get them to route and do what I want but I am sure the way I am doing it is wrong and the code I have to do it is very sloppy. A few of the URLs that I have are:
mysite.com/Set... | stackexchange/codereview |
I installed visualforce plugin to Eclipse 3.6 and is working fine except that
system.debug does not output anything.
code
static testMethod void testMonth() {
Month m = new Month(system.today());
system.debug('foobar');
system.debug(m.firstDate);
}
step
In eclipse, right click and select Force.... | stackexchange/codereview |
I am performing validation based on attributes in metadata.cs file. I am using Entity framework 4.0 and using wcf ria services. I want to know what is the equivalent of Page.IsValid in asp.net in silverlight? How do i ensure that the entity is in correct state before saving it? If i do not ensure this an exception fire... | stackexchange/codereview |
Possible Duplicate:
remove duplicate elements in an array in O(n) in C/C++
How can I remove duplicate elements from an array?
Before
array [ ] = {1,2,3,4,5,1,2,4,9,0,0}
After
array [ ] = {0,1,2,3,4,5,9}
| stackexchange/codereview |
I have developed a application which send large number of emails to different users in batches. The most common problem I faced in this application is the problem of mysql connection timeout. In between the batches when there is no queries executed in the previously opened connection and connection remained idle for lo... | stackexchange/codereview |
in my programm, I made a property:
@property (nonatomic, retain) IBOutlet UIImageView *block;
@synthesize block;
-
now if I do:
NSLog(@"BLOCK = %i", block.center.y);
It just says:
BLOCK = 0
but my block UIImageView object never is on y = 0!
please help!
| stackexchange/codereview |
I need to sort an array of pairs by second element. How do I pass comparator for my pairs to the quickSort function?
I'm using the following ugly approach now:
type AccResult = (AccUnit, Long) // pair
class Comparator(a:AccResult) extends Ordered[AccResult] {
def compare(that:AccResult) = lessCompare(a, that)
... | stackexchange/codereview |
I have recently been experimenting with the profile features of ASP.NET. I am having trouble getting a "website" property to display correctly. For example, if the website I enter is: facebook.com/contactalig and I render it using
<a href="<%: Profile.Website %>"><%: Profile.Website %></a>
it gets rendered on screen a... | stackexchange/codereview |
In my mssql database I have a table containing articles(id, name, content) a table containing keywords(id, name) and a link table between articles and keywords ArticleKeywords(articleId, keywordID, count). Count is the number of occurrences of that keyword in the article.
How can I write a SP that gets a list of comma... | stackexchange/codereview |
I am using the jQuery Accordion, and have two Accordions on a single page. I want to store the selected index of each Accordion in a cookie. To do this, I have the following code (with the jquery.cookie.js library referenced).
function accordionsInitAll() {
$(document).ready(function () {
accordionInit("#ac... | stackexchange/codereview |
Basically I'm trying to get a distinct count within this cubed result. But unfortuantly you cannot use Count(distinct(Field)) with cube and rollup (as stated here)
Here is what the Data Looks Like. (This is just a simple example I do expect duplicates in the Data)
Category1 Category2 ItemId
a ... | stackexchange/codereview |
Possible Duplicate:
How to see the print media CSS in Firebug?
I'm working on a Plone website with plenty of @import and linked CSS and am trying to use the Web Developer Toolbar to show only the print css.
Unfortunately on this particular website the web developer toolbar's print css has way fewer styles than regul... | stackexchange/codereview |
I've been looking for a week now... I need some help connecting to a remote database... I want my app to get data out of the database and update the database...
I've tried this but i don't understand it.
| stackexchange/codereview |
Is there any built-in way to reproduce the behaviour showed on the Office app, a 0:36 ? When the user tap the Shared Document item, a nice WP7-like transition makes it goes to the next page
http://www.youtube.com/watch?v=EUZx8YHPlWM#t=0m36s
Thanks !
| stackexchange/codereview |
I have been working on trying to teach myself programming and have come stuck on a simple problem ,
the line I am working with is
echo "<td>" . $row['website'] . "</td>";
only in the database {mysql} it is in plain text under the column 'website' , I have been trying to work out how to make the row website clickable ... | stackexchange/codereview |
In my application, I'm using location information to capture the user locations.
I have the following questions:
What are the alert messages we have to provide in the application for user to show that we are going to use their location?
Can we fetch the location info in the background once the user accept that?
If use... | stackexchange/codereview |
I have these template functions for use inline on device with cuda
template <class T> __device__ inline T& cmin(T&a,T&b){return (a<b)?(a):(b);};
template <class T> __device__ inline T& cmax(T&a,T&b){return (a>b)?(a):(b);};
In the code I have
cmin(z[i],y[j])-cmax(x[i],z[j])
for int arrays x,y,and z. I get the error:... | stackexchange/codereview |
I'm stuck here with a problem that I can't figure out.
I want to change the value of an input field with jquery.
I don't understand why it's not working.
<script>
$.noConflict();
jQuery(document).ready(function(){
theimg = "[name=img\\[1\\]\\[mark\\]]";
jQuery(theimg).attr("value", '1');
});
</scr... | stackexchange/codereview |
If I create a view and select my fields in the order I want to "receive" them in can I be fully assured that I can call "Select * from myView" from my apps instead of specifying ALL of the fieldnames yet again in my select query?
I ask this because I pass whole datarows to my DataModels and construct the objects by as... | stackexchange/codereview |
In the book Coders at Work (p355), Guy Steele says of C++:
I think the decision to be
backwards-compatible with C is a fatal
flaw. It’s just a set of difficulties
that can’t be overcome. C
fundamentally has a corrupt type
system. It’s good enough to help you
avoid some difficulties but it’s not
airtight ... | stackexchange/codereview |
Hope everyone here are doing great! Here is a situation where I need to know if there is a way to configure TFS source control in such a way that whenever I do a checkin I want to do a "Get Latest and build the local solution" first before I could actually do a checkin... as this would gaurantee me that every time I do... | stackexchange/codereview |
I have an UIView (320*300 the view of an UIViewController), I hope to display UINaviationCotroller and control the navigation within this view size.
Is it possible?
Thanks
interdev
| stackexchange/codereview |
pseudocode:
void recursive('k'){ // 'k' and 'i' vertices
sumA = 0;
sumB = 0;
for each non visited 'i' neighbor do{
recursive('i');
sumA = sumA + b['i'];
sumB = sumB + max(a['i'], b['i']);
}
a['k'] = 1 + sumA;
b['k'] = sumB;
}
void main(){
a = b = 0; //initialize tables with 0 (zeros)
... | stackexchange/codereview |
Possible Duplicate:
HttpWebResponse: closing the stream
Using ASP.NET is it possible to make a request and get only response headers? I have to do a request to a big file, but I only need the response headers, i dont care about the content of the file.
I would like to know if there is something similar to get_heade... | stackexchange/codereview |
Currently, I have a stringstream called Data. I am seeking to the beginning of the stringstream by using:
Data.seekp(0, std::ios::beg);
Then, I try writing 2 integers to the first 8 bytes of the stringstream (previously, the first 8 bytes were set to 0)
Data.write(reinterpret_cast<char*>(&dataLength),sizeof(int));
Dat... | stackexchange/codereview |
I'm trying to add a custom callback handler to a NetStream client in a p2p application. The problem is, when I add such a handler, the NetStream Client doesn't function as it did before. It seems the NetStream.client object is changed. I know the default object is this. But changing the client to this doesn't solve the... | stackexchange/codereview |
The thing I want to achieve is whenever the <select> dropdown is changed I want the value of the dropdown before change. I am using 1.3.2 version of jQuery and using on change event but the value I am getting over there is after change.
<select name="test">
<option value="stack">Stack</option>
<option value="overflow">... | stackexchange/codereview |
There are some Assembly instruction in Delphi Source Codes which I cannot found anywhere in Assembly Cheat Sheets including:
fld
fabs
fcompp
fstsw
I read these assembly instructions in "Power" function; But I cannot found them in this cheat sheet or similar cheat sheets.
Does these instructions are not belong to 8086... | stackexchange/codereview |
I'm working on a visualization for the Knight's tour problem. The algorithm I made works recursively. If I enable JavaScript, the page won't load (at least in Chrome).
http://labs.pieterdedecker.be/knightstour/knightstour.htm
Why won't the page load? How can I fix this? I know my implementation probably isn't the most ... | stackexchange/codereview |
Do any good ones exist?
Nothing performance heavy...I just need to be able to search for records from my admin panel.
Thanks.
| stackexchange/codereview |
in my main view, I have a slider that can be used to scale the application.
<Slider x:Name="zoomSlider" VerticalAlignment="Center" Value="1" IsSnapToTickEnabled="True" TickFrequency="0.2" TickPlacement="Both" Minimum="0.5" Maximum="3" SmallChange="0.5" LargeChange="0.5" Width="100" />
and every control is scale-trans... | stackexchange/codereview |
I've programed a little piece of software (Visual Studio 2010) with multiple forms compiled in one exe. All forms have different icons assigned. These icons are shown correctly on the left top of the window and the task bar when I compile and run it on my notebook.
When I move the whole executables to my second pc the ... | stackexchange/codereview |
I want to convert pdf to image so that install the image magic and ghost script.when i run command "convert file.pdf image.png" into terminal then work file but when i run in exec using php show me error in apache log "/var/root/Desktop/ImageMagick-6.6.4/bin/convert: Permission denied".I install php in Mac.in my php fi... | stackexchange/codereview |
If a url has trailing spaces in it.how to find them and eliminate the trailing space ..
http://www.youtube.com/watch?v=cs3ROFNxa5M
Thanks
| stackexchange/codereview |
Say I have a CSV file with thousands of lines similar to this one below:
1,fred,smith,"11, erewhon avenue","XYZ Company, 101 the road","020 123456",UK
I would like to use Perl to update the telephone number field only in the CSV file. I am thinking Text::CSV is the best way to go, but I'm not sure how to use it to upda... | stackexchange/codereview |
I have created a WCF service that returns a complex object graph, there are quite a few objects in the graph but it isn't excessive (less than 30).
When testing against my local system the service works fine, this is IIS7. We then uploaded the service to our test server which is IIS 6 and the service no longer works.
... | stackexchange/codereview |
According to [[ http://plugins.jquery.com/project/timeout_interval_idle ]], I should be able to say:
$.interval(function() { alert('I happen every 8 seconds'); }, 8000);
and have the given function run every eight seconds.
However the error console says $.interval is not a function. I have tried this under jQuery 1.4... | stackexchange/codereview |
So here is my CSS problem with IE 8.
I have a parent div and 2 child div. I want the parent divs width to be increased based on the width of the inner -child div's. It works well in Firefox, but in IE8, the first child div's width going to the entire page width when I have a float:right for the inner element of that di... | stackexchange/codereview |
For some reason the jquery includes on this page throws a 1012 error but only if I view this page from the domain without the www
http://marchofdimes.com/ovulation_calendar.html
The error doesn't show up from the www subdomain.
http://www.marchofdimes.com/ovulation_calendar.html
I could change the script src to include... | stackexchange/codereview |
I've been looking an answer for a while and I was wondering if anyone knows how to define explicitly (from scratch) a hash function in C#. I understand that there are pre-defined data structures that have List abilities, but I'm trying to understand the underlying structures of these objects.
Can anyone help with this?... | stackexchange/codereview |
I have this js
$(".features_edit").fancybox({
'width' : '38%',
'height' : '40%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
my html
<li><a href="http://somthing.com/side/48/features/553/edi... | stackexchange/codereview |
Is it possible, if yes how, how do i go from progress 100 to 1 without the user doing anything.
Like for every .05sec seekbar.setProgress(-=1)
So without the user doing anything the seekbar will go down until it reach 1.
Please anser how to do this
Thank-you
| stackexchange/codereview |
I'm reading some bytes out of a byte stream and they look like this:
OUTPUT:
48 -84 -79 -84 -73 -79 46 48 -84
SHOULD BE:
48 44 49 44 55 49 46 48 44
I'd like to turn these into ascii characters but those negitive symbols are confusing me. This makes me think I don't understand signed bytes. What on earth am I ... | stackexchange/codereview |
So prior to running git commit I often will run the following:
git grep --cached -l -I "debugger"
I thought it was similar to:
git diff --cached
(which will show you all the changes you are about to commit, ie. will show you the diff in your staged files).
Unfortunately, I just found that the --cached option for git ... | stackexchange/codereview |
In the snippet below, I am creating a JsonStore (whose record type is a single date field), adding a new record to it, then saving it. When saving, the time zone is not included in the serialized date value, even though it is included with the actual record object (as shown by Firebug). Ext seems to convert the date ... | stackexchange/codereview |
I have a navigation controller and a button located on the right of the navigation bar that is called toggle. When ever I press the button I basically want to toggle between a table view and a map view. How can I do this?
Can this be done by pushing and popping from the navigation stack back and forth?
| stackexchange/codereview |
Is it possible to add an attachment to a new list item with UpdateListItems?
I've tried this SOAP, but no dice....
Can someone share with me the proper SOAP structure to get this done?
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/" xmln... | stackexchange/codereview |
I'm currently working on a web application in ASP.NET that displays reports (created with SQL Sever BIDS) that grab data from a SQL Server database. Code-behind is in C#. I'm doing some security testing by sending HTML injections in the report parameters (just a couple tags will do it, e.g. <i>text</i>). After I click ... | stackexchange/codereview |
Good morning,
Is there any good, efficient and good-performance n-ary tree data structure implementation for C#? I don't need any flexibility regarding the type of the nodes, since I only need to store strings. However, I would like fast lookup time. Also, I need to label "edges" of the tree with (short) integers, but ... | stackexchange/codereview |
i have innodb tables (all of them are in the same file, and this file became very large, about 8GB)
when i insert a row in one this table (this table contains about 1 million record), this insert statement takes about 30 seconds !!!
is there anyway to improve this issue??
any idea is highly appreciated
CREATE TABLE use... | stackexchange/codereview |
I want to persist the AdvancedDataGrid column order for the user if they move them around and close the window or log out. I have code (see below) that works when I place the code in a grid parent container - eg, a title window. I'd like to generalise the functionality by placing the code in an AdvancedDatagrid subcl... | stackexchange/codereview |
I have to read data from a file for an assignment unfortunately instead of spaces separating the various fields there are null characters. When taking integers from the file they are extracted fine however with the strings i just get a blanks space and garbage from my uninitialized character array. Any ideas as how to ... | stackexchange/codereview |
Query:
SELECT SUM(ProductCost)
FROM `tblBasket`
GROUP BY ProductCode
HAVING BasketSessionID = '3429782d79c68834ea698bb4116eef5e'
Showing Error Like:
1054 - Unknown column 'BasketSessionID' in 'having clause'
What is the mistake in my query?
| stackexchange/codereview |
This might seem a weird question, but is there a way to override the window.location without making the browser control navigate to it? The problem I am having is that i am injecting html code in the control, and the window.location is about:blank - causing errors on some javascript code. Trying to make them think they... | stackexchange/codereview |
This is what I got from flex 4 file reference upload:
self.request =
Request: POST /UPLOAD
Accept: text/*
Cache-Control: no-cache
Connection: Keep-Alive
Content-Length: 51386
Content-Type: multipart/form-data; boundary=----------ei4cH2gL6ae0ei4ae0gL6GI3KM7ei4
Host: localhost:8080
User-A... | stackexchange/codereview |
I'm having problem with an element in a web page. When I load the page the header is usually on top:
... and when I reload the elements goes down to the next box:
When I press reload few times it jumps up and down randomly between reloads.
This seems to only happen in Chrome (I'm using mac) but in Firefox the elemen... | stackexchange/codereview |
I need to display the users last activity in the website.
Reviews posted, images/video uploaded, voted articles and so on...
I have two tables:
'user_activity' table with 'userID', 'datetime', 'activityID' and 'externalID' columns.
'activities' table with 'activityID' and 'activity'.
Lets say that 'activityID' = 4, the... | stackexchange/codereview |
I am searching a way to do this :
public class SimpleText_SpinnerAdapter extends ArrayAdapter<Enum1> {
many lines of code with a one moment : String val = oneEnum1val_inparam.getlabel();
}
public class SimpleText_SpinnerAdapter extends ArrayAdapter<Enum2> {
exactly the same code than previously, but for Enum2
}
... | stackexchange/codereview |
I am looking for some pointers on how to secure my rest root resource
@Path("/employee")
public class EmployeeResource {
@GET
@Produces("text/html")
public String get(
@QueryParam("name") String empname,
@QueryParam("sn") String sn) {
// Return a data back.
}
}
I have read p... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.