instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm utilizing the Open Session in View pattern for my jsf/icesfaces application. As usual a servlet filter is opening and closing all the hibernate sessions at the beginning and the end of a "web server thread". My problem now is that I'm using asynchronous tasks for eg. loading big lists of objects from the database. ...
stackexchange/codereview
Say if I have multiple forms with multiple submit button in a single page, can I somehow make all of these buttons work using webapp as backend handler? If not, what are the alternatives?
stackexchange/codereview
Is there a way to pass a collection of Enums to an ActionMethod (on a GET) automatically? For example, if I have the following enum definition: enum DaysEnum {Sat, Sun, Mon, Tue, Wed, Thu, Fri}; and, I have an ActionMethod definition of: ActionResult SampleActionMethod ( List<DaysEnum> days) Is there a way I could re...
stackexchange/codereview
There are already questions regarding unicode and ini files, but many of them are rather domain-specific. So I am not sure if the answer can be applied to the general case. Motivation: I want to use ini files for storing simple data like some numbers and some strings. The strings are provided by users (input via GUI). ...
stackexchange/codereview
I need to post a string from a .NET site to a Classic ASP site which are hosted on the same server (different virtual directories). https: //example.com/DOTNETSite/Sender.aspx to https: //example.com/ClassicASP/SomeFolder/Target.asp Target.asp page has 3 ways to handle incoming data: Form Post Query String Headers I...
stackexchange/codereview
Sometimes I see arrays like the following: array('item1' => array( 'subitem1', 'subitem2', ) Why a comma is added at end of array wheras there is not any element after submitem2?
stackexchange/codereview
I want to remove this class on checkbox toggle. $("#checkbox").toggle(function () { var it0 = $('#IT0').text(); var ip1 = $('#sv1').text(); var TC = "<div class='" + ip1 + "' id='" + it0 + "'><input type='text' name='test' value='" + ip1 + "'></div>"; $('#selected').html(TC); }, function () { var ...
stackexchange/codereview
Can anybody tell me what pattern do I need to write in the bind expression if I want to check whether the string contains aaa or aab or a? $str = "Hello how are aaa you?"; print $str =~ m/what should i write here?/;
stackexchange/codereview
For my graphics class, our professor wants us to keep track of our current matrix on our own and apply rotations/translations/scaling matrices to it then load it using glMatrixMode(GL_MODELVIEW) and glLoadMatrix(current_matrix). All of this seems fine, but when I actually use it, I keep having an issue: if I apply a ro...
stackexchange/codereview
I've never created a custom control, so barring that in mind here is my question: Is it possible to create a custom control with nested repeaters? The usage would be something like this: <tag:NestedRepeater id="foo" runat="server" levels="6"/> I currently have 6 identical repeaters nested within each other. I then us...
stackexchange/codereview
I have 2 drop down list. First for city and second for state I want to fill the state list when the city is selected... I'm using the code protected void Ddl_SelectedIndexChanged(object sender, EventArgs e) { String sqlQuery="select SM.StateId,StateName From StateMast SM,CityMast CM where CM.StateId=SM.S...
stackexchange/codereview
Code # get already active Excel application or open new my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); # open Excel file my $Book = $Excel->WorkBooks->Open($file); # select worksheet number. Default is 1 (you can also select a worksheet by name) pr...
stackexchange/codereview
What are the pros and cons of having memcached running on a seperate server instead of locally? This is my server setup: -2 Dedicated Servers (Load Balanced) -1 Dedicated MySQL Server -1 Dedicated Memcached Server Is there any benefit of dropping the Memcached Server and putting the daemon locally on the 2 dedicated se...
stackexchange/codereview
Basically, I want to create a table like this: I created a grid, and added the text values, and the checkboxes. Exactly like in your email box, where you select some mails, and delete them or mark spam. This is what I have done till now: Grid grid = new Grid(4, 3); for (int i = 0; i < jsonArray.size(); i++) ...
stackexchange/codereview
I have three input data files. Each uses a different delimiter for the data contained therein. Data file one looks like this: apples | bananas | oranges | grapes data file two looks like this: quarter, dime, nickel, penny data file three looks like this: horse cow pig chicken goat (the change in the number of columns i...
stackexchange/codereview
I have html content that I am storing as an XML document (using HTML Agility Pack). I know some XPath, but I am not able to zero into the exact content I need. In my example below, I am trying to extract the "src" and "alt" text from the large image. This is my example: <html> <body> .... <div id="large_image_dis...
stackexchange/codereview
I have a web application (in ASP.NET MVC) with a Quotations controller. This controller can handle multiple Quotation types, MotorQuotation, PropertyQuotation, etc... Currently it is using inheritance i.e. a Quotation model and it's children, to model the domain. The various children classes have differences in the dat...
stackexchange/codereview
I'm trying to add a category to AVAudioPlayer but I keep getting the error "Cannot find interface declaration for 'AVAudioPlayer'". AVAudioPlayer+Fade.h #import <AVFoundation/AVFoundation.h> @interface AVAudioPlayer (Fade) - (void)fadeToVolume:(CGFloat)volume; @end AVAudioPlayer+Fade.m @implementation AVAudioPlayer...
stackexchange/codereview
I have a simple problem with pointers. Here is my code: #include <iostream> #include <vector> using namespace std; int main() { typedef float RtPoint[3]; RtPoint** b = new RtPoint*[4]; b[0] = (RtPoint*)new RtPoint; RtPoint* p = b[0]; RtPoint c; (*p)[0] = &(c[0]); (*p)[1] = &(c[1]); (*...
stackexchange/codereview
Question: I have an ini file which I need to clear before I add info to it. Unfortunately, if I just delete the file, the permissions are gone as well. Is there a way to delete a file's content without deleting the file ?
stackexchange/codereview
We are thinking of going with an n-tier architecture for a project that we are going to start. I just wanted to get an idea of naming conventions. I have read a couple of books and done some research on the net but I am still struggling to find an appropriate name for objects that do your basic CRUD. One book used the ...
stackexchange/codereview
I need to create ms-word document by using java.there is some components in doc file like..table of contents,header,footer,footnote,images,tables,paragraphs etc. I found that javadocx will meet this requirement but when i downloaded free version for that..i cant able to add images in doc file.
stackexchange/codereview
I have a simple python program and I want an executable version (for Ubuntu Linux) of this program to avoid running it in the terminal with python myprogram.py. How can I do that ?
stackexchange/codereview
I am trying to find a .NET component that allows GUI (drag-and-drop) workflow design, and I need it as a part of a bigger software so I prefer it to be a usable component. What I imagine is it is similar to the GUI used to design workflows in Visual Studio 2008 and 2010. Is there any such component? I tried searching f...
stackexchange/codereview
I have a resource file with some embedded Excel files. How can I import these files into datasets? I found several libraries / code snippets which works for files, which are on the harddisk, but nothing if the files are part of a resource file.
stackexchange/codereview
I have a link <asp:HyperLink ID="BtnPrint" runat="server"NavigateUrl="~/CrystalReportViewer.aspx" Visible="false" Target="_blank" ToolTip="Print pdf">Print</asp:HyperLink> I want that when I click to show it should be visible.. that's working... but I want that when I click to this hyper link it should be invisi...
stackexchange/codereview
Here is my code: <form id="form1" runat="server"> <div style="width:100%;"> <asp:FormView ID="fvXCAR" runat="server" DefaultMode="Edit" style="overflow:auto"> <ItemTemplate></ItemTemplate> <EditItemTemplate> <div style="width:800; overflow:auto;"> <asp:Table ID="tblXCAR" ...
stackexchange/codereview
I have a server which will take many seconds before it is able to respond to an HTTP Request. I have little influence over the client language / framework used to generate the requests and want to know how long they will wait for a response. I appreciate this will vary for different frameworks / APIs so I want to know ...
stackexchange/codereview
Is there any way of constraining a column (say "ID") to follow a created sequence (say "ID_SEQ")? Without an automatic constraint, manual inserts might throw the entire sequence out-of-whack. What can be done to fix this? Just call NextVal twice?
stackexchange/codereview
I am using FluentNhibernate and i have a question about is. Is it possible two combine data from to different database tables into on entity? I have to work with an access database and an mssql datatbase and to work with both i think it is easier to combine. For example Db table 1 - name - address - email Db table ...
stackexchange/codereview
hai Guys, in my app i am using the combination of tabbarcontroller, navigation controller and tableview controller. The view hierarchy of the app is UITabBarController | |_ UINavigationController | |_ UITableView | ...
stackexchange/codereview
There are at least two methods to scale a bitmap in Android, One is to use "inScaled, inDensity, inTargetDensity" in "BitmapFactory.Options" when decode a bitmap source. The other is to use a "Matrix" in "Bitmap.createBitmap". What I am curious is what the difference between these two method is? What about the quality ...
stackexchange/codereview
Suppose I want to have a class like Java Date. Its only data member is a long which represents the milliseconds since 1970. Would/Could it be of any performance benefit of just making a new Scala type: type PrimitiveDate = Long Then you can add methods by using implicit conversion, like it is done for int with RichInt...
stackexchange/codereview
Im am interesting in the possibilities of facetted searching using Lucene and perhaps Bobo but have a few q regarding just how practical it is for the user if they are just searching text and not data that has been broken up into many fields each which could be the target of a facet and tallying.
stackexchange/codereview
I'm trying to simulate onclick event in a h:commandButton when I close my browser. Here is my code: <body onBeforeUnload='closingBrowser()'> function closingBrowser() { document.getElementById('main:commandButtonHidden').onclick(); return false; } This javascript function call the function associated with my...
stackexchange/codereview
Dear all, I have a 2 by 2 square matrix with real intries that I want to pass to a method. It looks as; double coefficients[2][2] = { { 1.00, 0.6789140 }, {0.4446350, 0.4301290 } }; [self PrintOut:?????? andNRows:2 andNColumns:2]; - (void) PrintOut:(double ?????? andNRows:(NSInteger)rows andNColumns:(NSInteger)colu...
stackexchange/codereview
i have a css and javascript based horizental menu bar in master Page. I have a content page which has multiple textbox and dropdownlist. the problem is that when i run this page in mozila it runs successfull but when i run it in IE than horizental menu list items is overlapped by dropdownlist means dropdownlist hide th...
stackexchange/codereview
HI , Is there any I can setup a screen saver with the list of projects running in hudson which indicates the status of the project. Say the part of the screen saver indicates green for projects got succeded , and shows the red if the project is failed to build. Probably the screen saver must be partitioned to multiple ...
stackexchange/codereview
I'm learning F# with fsi on Mac OS X/mono, but it's hard to know what command to quit and out to shell. quit, or ^D doesn't work, ^C also doesn't work. What's the command to to stop the fsi? In general, where can I find some tutorial/user's guide about fsi?
stackexchange/codereview
I have an the following scenario: // several classes that implement different interfaces class A implements X,Y {} class B implements Y,Z {} class C implements X,Z {} // other classes that contain collections of one of the interfaces(different objects) class G { Collection<X> mayContainAC; } class H { Collection<...
stackexchange/codereview
I am creating an XSLT and i want to select a particular node, only if one of its child element's value is between a range. The range is to be specified using parameters in the xsl file. The XML file is like <root> <org> <name>foo</name> <chief>100</chief> </org> <org parent="foo"> <name>foo2</name> <chief>10...
stackexchange/codereview
I'm having trouble with sorting out a query for the following: Data: Column1 Column2 2 0 0 -2 I'm trying to select the difference between Column1 and Column2, with a minimum of 0. Eg. Row1=2 Row2=0 My current query is SELECT (Column1 - Column2) as total FROM blah. I tried adding max(Column2, 0) into th...
stackexchange/codereview
I would like to follow one of Page Speed's recommendation: Serve static content from a cookieless domain. So I need to move the style.css file away from the default template folder and put it in my cookieless domain. How do I notice wordpress for this change? Thanks.
stackexchange/codereview
My input data is 16-bit data, and I need to find a median of 3 values using SSE2 instruction set. If I have 3 16-bits input values A, B and C, I thought to do it like this: D = max( max( A, B ), C ) E = min( min( A, B ), C ) median = A + B + C - D - E C functions I am planing to use are : max - _mm_max_epi16 min - _m...
stackexchange/codereview
I read this Article on StackOverflow. According to this, static variables will be erased, if the class is unloaded the JVM shuts down the process dies But how to destroy / to kill my application (application process) and so to erase all static variables programmatically from my application?! Thank you, Mur UPD These...
stackexchange/codereview
I am facing a particular issue with combining draggable and sortable. The problem has to do with a placeholder not showing when a draggable is moved over the sortable and the drop is not "recognized". This behaviour occurs when the sortable ul hs NO height defined in css. When i do define a fixed height in css for the ...
stackexchange/codereview
In the Hadoop API documentation it's given that setJarByClass public void setJarByClass(Class<?> cls) Set the Jar by finding where a given class came from. What exactly does this explanation mean? does it creates a JAR file from the class file argument specified in the method above? and does that jar file is exec...
stackexchange/codereview
Current setup: cometD servlet with jQuery cometd plugin. Let's say i have a simple chat room that currently has 2 users (userA and userB) connected to it. When userB navigates away from the page, I need userA to be notified that userB has left the room. Is there a way to let userA know that userB left without using t...
stackexchange/codereview
I added this code in my ascx file http://jsfiddle.net/xkRcN/8/ ..When it was aspx file..the image(location is "Images" folder in my project now..was flickr earlier) would display alright..but when I made this page into a user control and added it in my webform, the image's vanished..I have tried changing the path many ...
stackexchange/codereview
If you came across some C# code like this with nested using statements/resources: using (var response = (HttpWebResponse)request.GetResponse()) { using (var responseStream = response.GetResponseStream()) { using (var reader = new BinaryReader(responseStream)) { // do something with r...
stackexchange/codereview
I'm using windows media services 9 to provide streaming service and would like to make sure users can only play within specified interval to prevent abuse. The media server reads and from asx file and the player can start and end at the correct offset. I can get the start offset at AuthorizePlayEvent using IWMSContex...
stackexchange/codereview
Hi I'm about to add new functionality to application which I'm currently writting. I need to write a undo/redo fnctionality. However 90% of our application is ready and I don't know what is the best way to implementing this functionality without affectig(too much ) code which has been already created.
stackexchange/codereview
Is there any way in VS that I can make it stop building the solution if ANY project in the build step fails to build? I have a solution that has cca. 100 projects. I want build process to STOP if it encounters build error on any of the projects. Failing build means that there were build errors while building that proj...
stackexchange/codereview
How to know how many times strings s , t and n appear in each of the following words to have an output like this: descriptions: s 2 , t 1 , n 1 statements s 2 , t 3 , n 1 The words are not known in advance.The first thing came to my mind was to make a dictionary, but for dictionaries we can only have two unknowns, so...
stackexchange/codereview
I've tried to integrate the first example of google maps (http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorld) in my aspx 4.0 project and it doesn't seem to work. Is aspx creating a problem (doesn't accept google maps) or am i doing something wrong?
stackexchange/codereview
From what I can find there is no specific maven plugin for WAS 7, so I am wondering if the was6-maven-plugin will work with the newer version of the server.
stackexchange/codereview
I asked about an error for running Swig examples on mono 2.8 here. Adding "-arch i386" solved the issue with simple example, but when I tried to run the other examples, I got the following error, for example, with Examples/csharp/variables : Unhandled Exception: System.EntryPointNotFoundException: CSharp_ivar_set a...
stackexchange/codereview
I've got a latitude/longitude value.... How can I search and get the city?
stackexchange/codereview
I am pretty sure this is a straightforward problem I must be confused about (I am a total newbie on the iPhone): I am trying to continuously draw shapes using the CG APIs into a bitmap object, and to always show an up-to-date version of that bitmap on the screen, inside a UIScrollView object so the user can pan, zoom, ...
stackexchange/codereview
This is the kbhit implementation that I found, but for some reason it just waits a key to be pressed instead of returning some result other than 0. It doesn't really function as kbhit... int kbhit(void) { struct timeval tv; fd_set read_fd; tv.tv_sec=0; tv.tv_usec=0; FD_ZERO(&read_fd); FD_SET(0,...
stackexchange/codereview
I'm trying to aggregate data from a number of different xml sources into a single xml file using either JavaScript or jQuery. I'm looping over the files, using jquery $.Ajax to read the file, and am selecting the first node (the node I want) and want to copy and append it to my destination xml file, then move on. I can...
stackexchange/codereview
I have code similar to the following: $data['someField'] = (isset($_POST['someField'])) ? 'Y' : 'N'; $stmt = $db->prepare("INSERT INTO public.someTable (someField) VALUES (':someField');"); $stmt->bindParam(':someField', ($data['someField']), PDO::PARAM_STR, 1); $db->beginTransaction(); $stmt->execute(); $db->commit();...
stackexchange/codereview
I have Parsed the Json Response and Now I want to use the BaseAdapter Class in my Application. I have a rough Idea about the BaseAdapter Class but not very clear about the same. Can anybody please tell me what exactly the Base Class does. Also do I need to use the Getter and Setter Methods if I am using the BaseAdapter...
stackexchange/codereview
I have a x64 machine running Windows 7 64 bits. It seems I have a very weird situation since the beginning of the week. If I build and run a WPF application with platform target set as x86, I got a MissingMethodException when trying to create a Grid: var g = new Grid(); However, creating a StackPanel works fine: var s...
stackexchange/codereview
<colors> <color colorName="Abracadabra" colorNumber="D51-2" rColor="209" gColor="224" bColor="229" colorCollection="Harmony" colorFamily="Shaded" rating="3" surfaces="" colorGroup="Blues" /> <color colorName="Abyss" colorNumber="B50-1" rColor="233" gColor="247" bColor="249" colorCollection="" colorFamily="Clean...
stackexchange/codereview
String s=new String("Computer"); if(s=="Computer") System.out.print("equals A"); if(s.equals("Computer")) System.out.print("Equal B"); Output is Equal B Now why == doesnot produce equals A what is instanceof?
stackexchange/codereview
In C#, I'm using the Microsoft.Office.Interop.Excel reference v12.0.0.0, which (I think) corresponds to Office 2007. I guess that my program won't run on computers without Office 2007 or above ? What should I do ?
stackexchange/codereview
In my android app, I need to design a Welcome Screen which will be shown to the user only once after the app is installed and opened. The app in question is a database driven app and I would love to include some 3 - 4 screens to help the user create re-usable resources for use within the app and a few tips. They would ...
stackexchange/codereview
I am having what I think must be a concurrency problem. I am using passenger, rails 2.3.5, mongoid 1.9.2, and mongo ruby driver 1.0.9. I am using jQuery to request data that is pulled from MongoDB and then rendered in the browser. Everything is working great until I started to make two such requests at the same time...
stackexchange/codereview
I need to loop backwards and make a list of all calendar dates in 2009 and 2010 that fall on Monday - Thursday of each week and record them as a map of day-month-year strings mapped to a day of the week: "19-10-2010", "Tuesday" "4-10-2010", "Monday" Is there a library in Java that would help with this or can it be don...
stackexchange/codereview
We have three tables: p: <` +-----+-------+-------+--------+--------+ | pno | pname | color | weight | city | +-----+-------+-------+--------+--------+ | p1 | nut | red | 12 | London | | p2 | bolt | green | 17 | Paris | | p3 | screw | blue | 17 | Rome | | p4 | screw | red | 14 | London...
stackexchange/codereview
I have a dynamically generated large string which I am splitting. var myString="val1, val, val3, val4..... val400" I do a simple split on this string, myString= myString.split(',') getting the following: myString[1] // gives val1 myString[2] // gives val2 myString[3] // gives val3 . . . myString[400] // gives val400 ...
stackexchange/codereview
I'm making a wxpython app that I will compile with the various freezing utility out there to create an executable for multiple platforms. the program will be a map editer for a tile-based game engine in this app I want to provide a scripting system so that advanced users can modify the behavior of the program such as m...
stackexchange/codereview
In eclipse, I open a android project, click the layout xml file. then pop the dialog "Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so" and the file didn't be opened. How can I open the xml normally, it seems jdk6 is installed with error or the path is wrong. os is ubuntu 9.04.
stackexchange/codereview
I have two multidimensional arrays.. with same data... what happens is.. values in one array may be changing internally in one multidimensional array.. here is my array... $previousA = array(); $previousA["t"] = array("twitter","picasa"); $previousA["d"] = array("youtube","gmail"); $freshA = array(); $freshA["t"] = a...
stackexchange/codereview
I have a queue of urls and i am passing to an function it crawls and gets the url each url in a queue should be in parallel and crawl is an class and start is my function it crawls the url and if I run the program the each urls is executed one by one not in parallel while(!q.empty()) { #pragma omp parallel f...
stackexchange/codereview
I am trying to validate an input string (which can be copied & pasted in the textbox). The input entered should contain one or more alphabetic characters, numbers and two more special characters as (& and Ñ), but no embedded spaces. NB: Alphabetic characters must present, but numbers & those two special characters may ...
stackexchange/codereview
this is my javascript function : function createLink (){ var link = document.createElement("a"); link.href = "#"; var linkText = document.createTextNode("This is dynamic link"); link.appendChild(linkText); document.body.appendChild(link); } window.onload = createLink; but i am not get any result fr...
stackexchange/codereview
If I have a table of fruits: FruitId ColorId NumofPurchased. I want to return a row for each of the colorId's where NumOfPurchased is max for that colorId. I am coming up with approaches like looping through the colorId's or manually write 10 queries for 10 colors ... I don't know, is there a better/more optimized wa...
stackexchange/codereview
If given an array of arrays creating an n x n map of tiles, is there a way to loop through an algorithm that would highlight tiles which form a diamond shape? (the key problem is not to hardcode it, so it could work for any sized map) For example: if the map was 5x5 tiles like so: XXXXX XXXXX XXXXX XXXXX XXXX...
stackexchange/codereview
Here's what i'm trying to do: 1 textbox with an Add button, and a ListBox underneath with a Delete button, along with a bunch of other fields. You can probably guess the functionality: type something in the text box and click Add, it will add that string into the listbox below. Select an item in the listbox and hit D...
stackexchange/codereview
I'm looking for a way, preferably with .htaccess to rewrite a url when a user types in something with a capital. For example, the url could be website.com/pagename and the usertypes in website.com/PageName or website.com/PAGENAME Whats the best way to do with without slowing down page load?
stackexchange/codereview
I have declared my dependency properties as follows public bool CanSave { get { return (bool)GetValue(CanSaveProperty); } set { SetValue(CanSaveProperty, value); } } public static readonly DependencyProperty CanSaveProperty = DependencyProperty.Register("CanSave", typeof(bool), typeof(EditorTabViewModel),...
stackexchange/codereview
How can I uninstall Ruby 1.9.2dev (2010-07-02) [i486-linux] on ubuntu? Need to reinstall - please help
stackexchange/codereview
I am looking to record voice in as compact a file format as possible for an ipad app, and not concerned about sound quality. I chose the ima4 format but don't really know much about audio, so am having trouble figuring out how to play back the produced file to test how it sounds. Is this a compressed format that I ha...
stackexchange/codereview
I would like to iterate through an xml document to get its values. See the given code foreach ($xml->children() as $key1=>$value1 /*($xml->children() as $second_gen)*/ ) { echo ' 1 ' .$key1.' '.$value1.'<br>'; foreach ($second_gen as $key2=>$value2) { echo ' ___2 ' .$key2.' '.$value2.'<br>'; } } ...
stackexchange/codereview
I was wondering if there is a way to intercept and modify mouse input before it gets to windows? What I'm wanting to do is intercept mouse motion events, apply some custom scaling and acceleration to the values, and then continue passing them along. I'd need something that can do this before the inputs get to the raw i...
stackexchange/codereview
When updating my clearcase (snapshot) view I get the following symlink errors: Unable to resolve symlink "setups.cmd". The symlink target will not be loaded. Unable to resolve symlink "setup.sh". The symlink target will not be loaded. Unable to resolve symlink "setupwithdomain.doc". The symlink target will not be load...
stackexchange/codereview
I our web application is compatible with Firefox 3.6+ We have a Firefox installed on one of our local machiens and on the top of the about page, the version is set to 3.6.10 which is what we expect. On the bottom of the about page, the version is set to: Gecko/20100914 Firefox/3.0.1 Because it's set to 3.0.1 it gets p...
stackexchange/codereview
I am using a NAnt build script to call NDepend with the required command line arguments. <exec program="NDepend.Console.exe" basedir="${NDependPath}"> <arg line="${NDependProjectFilePath} /indirs ${NDependInDirs} /outdir ${NDependOutputDir}" /> </exec> But what I am looking for is to get NDepend to recurse through ...
stackexchange/codereview
I have a program which works normally. Then I downloaded some code from http://github.com/matej/MBProgressHUD to show a progress meter when doing something. This is the code that makes the progress meter pop up. [HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES]; This will show a prog...
stackexchange/codereview
I was working with entity framework in a database first style. Each time I wanted to update my edmx file I did just that, ran update model. The problem I now have is that I've lost my database (long boring story, it was on a disk that's been formatted and I don't have a backup). I thought I would be able to use the 'Ge...
stackexchange/codereview
I wonder, if C#.NET is managed language, why does it produce .dll file and not some .mdll or something? Or is dll compiled to native code? Would this be even possible? I mean, to have dll witj calls to managed libraries? Thanks.
stackexchange/codereview
I'm looking to initialize a global array of stucts in C within the header file however it keeps complaining when compiling. Here's my struct typedef struct { char input[100][100]; int count; char name; }INPUT; extern INPUT[] global; Thanks
stackexchange/codereview
i need to build diagram builder in js to be cross browser , what do you think will be the best light drag and drop frame work ?
stackexchange/codereview
I have a DataTable-Property: Public Property Files() As DataTable Implements Presenter.ISearchSetup.Files Get Return _files End Get Set(ByVal value As DataTable) _files = value RaiseEvent OnPropertyChanged() End Set End Property Private WithEvents _files As DataTable Now I add a...
stackexchange/codereview
I wrote a Facebook app in PHP and need to be able to allow the user to upload an image to my server. I have used this code: <?php include_once('facebook.php'); $appapikey = 'API KEY HERE'; $appsecret = 'SECRET KEY HERE'; $facebook = new Facebook($appapikey, $appsecret); $fb_user = $facebook->require_login(); if((!emp...
stackexchange/codereview
How can I alert the value selected by user from a select drop down box in Javascript. In this example I want to store the value inside a variable and alert it to the user. <script type="text/javascript"> function processmyform() { var chosenAnimal = // what goes here alert(chosenAnimal); } </script> <form ...
stackexchange/codereview
I wrote this this method to download a webpage given a URL. It is designed to download HTML only. If I want to do error checking and allow HTML only how should I do this? public static String download(URL url) throws IOException { InputStream is = url.openStream(); BufferedReader reader = new BufferedReader...
stackexchange/codereview
I want to control the system settings "auto brightness", setting it ON or OFF. I'm able to control the brightness level but only if AUTO is OFF. From what I read until now there is a SCREEN_BRIGHTNESS_MODE in Settings.System but only for API level 8 or higher and also not recommended to mess wit it. But currently my ph...
stackexchange/codereview