instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Lets say I have a really simple html form: <form action="./whatever.php" method="POST"> <input type="submit" name="TheButton" value="Apples"> </form> Which of course makes the button the user sees say Apples. I want the post request to be TheButton=Oranges ... Is there a simple way to deal with this in HTML, or wi...
stackexchange/codereview
Given the following HTML file: <!DOCTYPE html5> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#form').submit(function(e) { // put your breakpoint here to look at e...
stackexchange/codereview
I have a collection of ComboBox declared as below. val cmbAll = for (i <- 0 to 4) yield new ComboBox(List("---", "Single", "Double")) And I try to listen to one of it via listenTo(cmbAll(0).selection) However, I can't actually perform the reactions. reactions += { case SelectionChanged(`cmbAll(0)`) => /** action he...
stackexchange/codereview
There was a hack, such as: <DIV style="HEIGHT: 148px; overflow: auto;"> <DIV style="HEIGHT: 579px"> </DIV> </DIV> Bang, there is a scroll bar 148px tall. However, in ie8 standards mode this no longer works. I can switch to ie7 compat mode, but this breaks other things. Does anyone know some other hack?
stackexchange/codereview
I am new to JBPM. I am using jbpm4.4 this is my basic example code: ProcessEngine processEngine = new Configuration() .buildProcessEngine(); NewDeployment deployment=processEngine.getRepositoryService().createDeployment().addResourceFromClasspath("com/pardis/jpdl/test.jpdl.xml"); String deplo...
stackexchange/codereview
I have an ajax form like so: <% using (Ajax.BeginForm("Comments", "Comments", null, new AjaxOptions {UpdateTargetId="main", OnSuccess="createSuccess" }, new{ @id="main"})) {%> <%: Html.ValidationSummary(true, "errors") %> <fieldset> <legend>Fields</legend> <div class="editor-label"> ...
stackexchange/codereview
I would like to be able to send an actual SMS message from a shell using just the command line and not relying on any apk to do so. I am interested in sending this message between phones, not from the emulator to the phone. For example, by running the command: service call phone 2 s16 "1234567890" I can place a call...
stackexchange/codereview
i have a very big text file, am using fgets() to get the contents of the file line by line. but i need to delete some text from the file if certain condition is met. ex: hello world am string number 1 hello world am string number 2 hello world am string A hello world am string B lets say a condition is met in string 1,...
stackexchange/codereview
How do i give default color for text in html ? To explain more in detail...We have dreamweaver or notepad++ or dojo tools or visual studio or any other tool...when we start typing anything..by default it gives color for specified text..Another good example is stack overflow..when some one asks a question...there will b...
stackexchange/codereview
I'm trying to deploy an app on heroku. My trouble is to install hattachement_fu plugin. I ran the following command to install it directly on the server. heroku plugins:install http://github.com/technoweenie/attachment_fuand" and I get the following message : Unable to load plugin: some_plugin: uninitialized consta...
stackexchange/codereview
I am new to the MVC way of programming so please bear with my basic question ! I have a Status class with a default constructor (in an ASP.NET MVC application). public Status() { this.DatePosted = DateTime.Now; } I noticed Fluent NHibernate calls this constructor each time it fetched a list of existing Status obje...
stackexchange/codereview
My intent is to create a library/API for small scale distributed multi-user game /simulation. i have created couple of applications using java RMI, i tried to keep them simple and to achieve decoupling and now i want to transform those or want to derive/extract from them a generic template. Can somebody please shed li...
stackexchange/codereview
Is it possible to get a list of all available servlets in an app? I'm writing a web application that will expose a lot of servlets and I want to use HttpUnit to test each one to see if it is returning (or not!). As lot of it will return a simple XML response, it would be really helpful not to write a test case for each...
stackexchange/codereview
im trying to load a sxml file... i manage to do that in scheme. now i want to go through it using recursion and located items that i want. my code is like this, (define file (read(open-input-file "test1.sxml"))) (define myfunc (lambda (S) (if (eq? "foo" (car S)) (display "found\n") (display "not...
stackexchange/codereview
Is there any alternative for WSO2?
stackexchange/codereview
I am trying to deploy my project using mod_wsgi. Unfortunately I get: [Wed Oct 27 15:32:33 2010] [error] [client 10.13.3.64] Exception in WSGI handler: [Wed Oct 27 15:32:33 2010] [error] [client 10.13.3.64] Traceback (most recent call last): [Wed Oct 27 15:32:33 2010] [error] [client 10.13.3.64] File "/home/project/...
stackexchange/codereview
Is there any way an iPhone app can remember the path it took to get to a particular page. For instance Home -> Subcategories page with parameter Category = Electronics -> List of products with parameter Category = MP4 players -> Product page with parameters productId = 398483 and productName = iPod Touch 8GB so that i...
stackexchange/codereview
My library offers a callback point where my library users can register to get information. The general form of the callback is an int followed by various parameters whose type depend on the int value. Therefore, I defined the callback type and the function to set it as follows. typedef void (* callback_func_t)(int type...
stackexchange/codereview
What is the best way to send XML data to web services jax-ws? One of the way I could make out is to convert xml into String from client side and send it as a String to WebService. I don't think this is the best way / best practice .
stackexchange/codereview
I am using source safe to maintaine my code. Recently I copied my code to another machine. But everytime i build my project i am getting below error: Problem generating manifest. Could not load file or assembly 'D:\WorkingFolder\Project\SubFolder\obj\Release\SubFolder.exe.manifest' or one of its dependencies. An attemp...
stackexchange/codereview
How to initialize and make condition for 2 variables in single for loop in Flex let keep i and j are two variables
stackexchange/codereview
how can I make certain rows editable and certain rows non-editable of a datawindow? I am adding the rows using pfc_addrow() event of the datawindow, and I want some of them to be editable and some of them to be non-editable. Is there any way to do it?
stackexchange/codereview
I have an ASP.NET Image control declared as: <asp:Image runat="server" ID="SortOrder" AlternateText="Ascending" ImageUrl="~/images/sort_ascending.gif" CssClass="Ascending" EnableViewState="true" /> My JavaScript code is: function ReverseSort() { var img = window.event.srcElement; if(img.className == "Ascendi...
stackexchange/codereview
I saw an example on MSDN where it would let you specify the default value if nothing is returned. See below: List<int> months = new List<int> { }; int firstMonth2 = months.DefaultIfEmpty(1).First(); Is it possible to use this functionality with an object? Example: class object { int id; string name; } code: Lis...
stackexchange/codereview
Why I get this segmentation fault?: >>> import gtk >>> a = gtk.Window() >>> a.show() >>> b = gtk.Dialog("hellooo") >>> b.show() # here the dialog appears >>> b.show() Segmentation fault
stackexchange/codereview
I need to add a large portion of new generated xml to an existing xdoc but only for my nodes which contain a particular value for one of their children. Here's an example: XDocument originalXML = GetEntityXml(ref exportTile); XDocument newXML = testr(); XElement xe = new XElement("...
stackexchange/codereview
I have a div with several images inside, and I would like to center this vertically. I can give a specific width and height do the div. No prob. I also accept js if I must to. I'm just wondering, from the MAZE of those examples, can I have a simple one. The div as width of 600 and height of 500. Thanks in advance, MEM
stackexchange/codereview
I am having trouble with catching and gracefully handling commons fileupload's FileUploadBase.SizeLimitExceededException or spring's MaxUploadSizeExceededException when uploading large files. From what I can tell these exceptions are thrown during data binding, before the controller is actually reached, therefore resu...
stackexchange/codereview
I'm pretty new with EJB's and GWT but I've been using Java for a little while. My question is: How do I get GWT and EJB's running all together on eclipse? I keep getting pretty severe memory issues with it all together. It consumes 600mb of VM and 200mb of mem and every other operation I do (i.e. open a .java file or b...
stackexchange/codereview
I recently converted my SQL Server database into SQLite DB. But when I try to open my SQLite using .Open() it throws me this error: Data Source cannot be empty. Use :memory: to open an in-memory database Edit: added connection string: ConnectionString = @"Data Source=D:\XXX.db;Version=3"; connection = new SQLiteConne...
stackexchange/codereview
i understand basic concept of cache , but one thing i cant able to understand , even i saw some example , assume , my first request is 9am , now new update information coming to cache , then another same content request from other user , now system get content from cache file instead of DB, example 1 : i set the cach...
stackexchange/codereview
I was upgrading the OS on one of our build from Centos 5.3 32bit to Centos 5.5 32bit. After doing the package update I rebooted, checked out a clean copy of the source, built and ran the unit tests. All unit tests which rely on our MemMap base class began to fail. The crash occurs when we attempt to set the value of ...
stackexchange/codereview
I can't seem to get this to work. I am looking for a regular expression that will validate a password. Allowable characters are a-zA-Z0-9, but the sequence must have at least 1 number and 1 capital letter. Can this be done?
stackexchange/codereview
following this tuturial to make the red box draggable http://www.diffusedreality.com/content.html almost got it but now it's not working... the point is to make the search box draggable after the test with the red box http://peersource.sfrails.net/
stackexchange/codereview
How do I 301 redirect, for example: a subdirectory /Blog/ to /blog/ with .htaccess?
stackexchange/codereview
I tried "Jet Profiler for MySQL", but I did not like
stackexchange/codereview
running the cmd command schtasks /query /fo LIST Gives me a list of all scheduled tasks running on my system. Example: HostName: CHESTNUT105B TaskName: Calculator Next Run Time: 12:00:00, 10/28/2010 Status: Running HostName: CHESTNUT105B TaskName: GoogleUpdateTaskMachineCore Next Run Time: ...
stackexchange/codereview
When writing a statement select * from tableName you get all the fields, however I want to get all the fields in the statement for better code, is there a tool to do it faster in SQL Server, to get select f1,f2,f3 from tableName which are all the fields in tableName
stackexchange/codereview
Is it safe to use position:absolute in a email template?
stackexchange/codereview
I'm logging exceptions to a database using a DatabaseTraceListener from Enterprise Library (code is pretty much as described here). Now I want to create another field in the database table and log some custom information (user id) there. From what I understand I have to subclass CustomTraceListener and LogEntry, but I ...
stackexchange/codereview
I am using this Spreadsheet gem to export xls file. I have the following codes in my controller: def export @data = Data.all book = Spreadsheet::Workbook.new sheet = book.create_worksheet :name => "data" contruct_body(sheet, @data) book.write "data.xls" end In this way, I can fill in the data and save it ...
stackexchange/codereview
I wrote the code bellow and need the asociated .PGP file to have the text http:// included. the PGP file is namely read by Autocad which requers the "http://" in its text to be able to launch the desierd webpage. problem is , is that VBA is Auto formating the http:// as a code entatie and not writting it to the text ba...
stackexchange/codereview
I am still learning the ropes of Objective C and iPhone development. My weak point is memory management - any help will be much appreciated. In the code below, where can I release the NSMutableArray listOfViewControllers? Keep in mind the function createTabs can be called within the app multiple times and the tabs are ...
stackexchange/codereview
Why would these queries return difference results: SELECT * FROM ProjectStatus PS WHERE 0 = (SELECT COUNT(*) FROM Project P WHERE P.ProjectStatusKey = PS.ProjectStatusKey) SELECT * FROM ProjectStatus PS WHERE PS.ProjectStatusKey NOT IN (SELECT P.ProjectStatusKey ...
stackexchange/codereview
My post title almost states it all: How do I download a file from an FTP server using FTP over SSL using .NET? I have read a bit and there are several 3rd party components to purchase that wrap up this functionality. The deal is, this is a very specefic need and is not going to grow much, so if downloading a file fro...
stackexchange/codereview
I have a uiwebview in a navigation bar which is in turn inside a tabbar item. I want to know how to hide the tabbar and navigation bar the moment the user takes off his finger from the screen just like hiding the toolbar in the default photos app in the iPhone. I should also be able to show the tabbar and the navigatio...
stackexchange/codereview
I'm trying to get JDBC transaction rollback when using Spring-test without success. When I run the following the SQL update is always committed. package my.dao.impl; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.an...
stackexchange/codereview
How do I specify that CMake should use a different link_directories value depending on whether the target is 32-bit or 64-bit? For example, 32-bit binaries need to link with 32-bit Boost, 64-bit binaries need to link with 64-bit Boost.
stackexchange/codereview
We are looking for a way to collect usage stats of our users web browser/OS configuration in regards to accessibility to better understand the range of users we have. If I can find a way to collect this data via javascript then I can capture it in via our analytics tool (same as google analytics variables). These are s...
stackexchange/codereview
Got an issue that is specific to Chrome; it's moving the focus from my html inputs to the first user element in a dynamically rendered form. Example: HTML_SELECT_00 HTML_SELECT_01 INPUT_TEXT_00 Problem: If you place the cursor in INPUT_TEXT_00 (using the mouse), as soon as you let go of the mouse button, the focus will...
stackexchange/codereview
I got a weird error when I try to create a Screen object. Before It worked without any problem, but I got this error when I added a new attribute to the User class. This attribute is related to Screen in a relation many to many through user_screens. This is the error: "InvalidRequestError: One or more mappers failed t...
stackexchange/codereview
I'm trying to write a web app that uses Javascript to perform a fairly complex calculation (involves factorials and Bessel functions). When I run the script in IE, it gives me a warning that the script is unresponsive or taking a long time, and asks if I want to continue running it. I've read that to get around this,...
stackexchange/codereview
As i understand Haskell does not have a global state, so is there any way to write a function f that will return f(n - 1) + 1, where n is a number of function call and f(1) = 0. It should not accept any arguments and used like func f Prelude> f () 0 Prelude> f () 1
stackexchange/codereview
I am writing an rspec for an address model that has a polymorphic attribute called :addressable. I am using factory girl for testing. This model has no controller because I do not wish to create a standalone address but that doesnt stop the rspec from creating a standalone address. My model, factory and rspec are cl...
stackexchange/codereview
We have SiteMinder configured in our environment and I've been given an ASP.NET website to support. Where do I begin to learn SiteMinder? I have some background in ADFS, but need to translate my skills to this product.
stackexchange/codereview
Disk benchmarks typically have a chart that shows the I/O throughput increasing as the queue depth increases. I'm assuming that what's going on at the hardware level is that the disk controller is reordering the requests to coincide with where the magnetic head happens to be. But how can I increase the queue depth in...
stackexchange/codereview
I know that designing state machine generators for regular expressions is not trivial, but what about simple strings (when I say a simple string, I mean something like "abcd" -- something without any regular expression syntax). I was thinking of writing a simple string matcher using state machines, but I wanted the sta...
stackexchange/codereview
Of these two designs for a crossroad database #Street street_id | street_nm #Crossing crossing_id | x | y | street_id_1 | street_id_2 VS #Street street_id | street_nm #Crossing crossing_id | x | y #street crossing relationship street_id | crossing_id Assuming every crossing has only exactly two roads, is there a rea...
stackexchange/codereview
I am trying to set a page break on a sub report that is acting as a cover page. Does andybody out there know how to do this ? Right now, I stretch the height of the report to force the page break. I am using Visual Studio 2008 (SQL Server Business Intelligence Development Studio), SQL Server 2008 R2. Much appreciated ...
stackexchange/codereview
I have a JS object that look something like this. function Product() { this.prop1 = 1; this.prop2 = 2; } function Work(values) { this.prodID = 0; this.anotherProp = 1; this.updateProductID = function(newProdID) { var sourceURL = "the URL here"; alert("ID is: " + this.product.prodID...
stackexchange/codereview
Imagine collecting all of the world's high-school students' grades each month into a single table and in each student's record, you're required to include the final averages for the subject across the student's class, city and country. This can be done in a post-process, but your boss says it has to be done during dat...
stackexchange/codereview
What is the difference between CAStreamBasicDescription and AudioStreamBasicDescription? Thanks.
stackexchange/codereview
I would like to control a subset of files and only allow some of them to be installed if run with a command line switch for instance. Is this possible? For example if (some condition) install full set of files else Install other set of files Alternatively I can just run another installer but then I have to pas...
stackexchange/codereview
There is a shortcut in IntelliJ I'm looking equivalent in Eclipse, it is called 'Go to symbol'. CTRL-ALT-SHIFT-N lets you start typing and glob up classes, method names, variable names, etc, from the entire project. Does someone know if there is such thing in eclipse?
stackexchange/codereview
<> - read this as a template; I can do this: void f() {} //Here I'm declaring a fnc as a <> param template<void (*fnc)()> struct Factor { }; int main() { Factor<f> fac; return 0; } but I cannot do this: #include <sstream> template<class R, class T> R make_(T first, T second) { std::stringstream interpret...
stackexchange/codereview
I've implemented a Service in my android app that starts a timer (using the standard java.util.Timer and java.util.TimerTask mechanism) to do some processing in the background on a pre-defined interval. public class BackgroundProcessingService extends Service { private int interval; private Timer timer = new Timer();...
stackexchange/codereview
When you have an object that provides events and you use a deepclone (serialisation) approach to cloning the object, how do you do it when there are events on the object that are actually attached. If my object declares an event, but nothing is attached then object can be cloned without issue. BUT if the object has had...
stackexchange/codereview
What defect rate can I expect in a C++ codebase that is written for an embedded processor (DSP), given that there have been no unit tests, no code reviews, no static code analysis, and that compiling the project generates about 1500 warnings. Is 5 defects/100 lines of code a reasonable estimate?
stackexchange/codereview
Is this a stupid question, or can I specify g++ to use a program between the preprocessor and compiler? Alternatively, I know that I can just run the preprocessor on a file (hence all the files). Then I am guessing there is a switch to run only the compiler. So I can manually invoke these two and put my program between...
stackexchange/codereview
How to save the value of INPUT in variable to not to write a lot of duplicate code? like var input = $(this).val(); full example <div id="form"> 1. <input type="text" value="title" /> 2. <input type="text" value="value" /> </div> $(function(){ $('#form input:eq(0)').bind({ focus: function(){ if($(...
stackexchange/codereview
I have a very specific situation where a javascript page creates a new window with a meta-refresh in it which goes to a php page which has 1 variable with everything that the javascript page has put in it. Like so: form.write('<meta http-equiv="refresh" content="0;URL=contentreq/index.php?data='); Very long text wit...
stackexchange/codereview
I have a WCF data service and I am trying to use the UpdateObject method on the DataServiceContext client. When I call the SaveChanges method, I get the following error page: Unauthorized: Access is denied due to invalid credentials You do not have permission to view this directory or page using the credentials that ...
stackexchange/codereview
The short question: Does Castle Windsor have something similar to Spring.Net's "Lookup Method Injection" that can be configured from XML, which provides the ability to fetch transient instances from the container without the class being aware of the IoC container? The long question: I'm a long time Spring/Spring.Net us...
stackexchange/codereview
I've written quite a long C# program using Linq to Sql and my data are stored in an MDF file located near my program's EXE. A part of my program has a form for backing up the database files simply by copying the MDF and LDF files into a user-specified folder. However if I query the database and then try to replace the ...
stackexchange/codereview
I would like to access a soap webservice from a class in a Flex (AIR) Library Project. How can I instantiate a WebService and get data from a SOAP WebService.
stackexchange/codereview
I am using XOM to canonicalize some XML. But there are some strange characters prepended to the output. The core of the code is as follows: String result; outputstream = new ObjectOutputStream(bytestream); Builder builder = new Builder(); Canonicalizer canonicalizer = new Canonicalizer(outputstream, Canonicalizer.EXCLU...
stackexchange/codereview
I'm trying to get back into programming, specifically console games. I'd heard that curses was good for that, so I found a curses tutorial and I'm getting into that. I'm using C++, and naturally I wanted to take advantage of std::string, but functions like getstr() only accept char*. Is there any way to pass a string a...
stackexchange/codereview
I'm writing a class in python and I have an attribute that will take a relatively long time to compute, so I only want to do it once. Also, it will not be needed by every instance of the class, so I don't want to do it by default in __init__. I'm new to Python, but not to programming. I can come up with a way to do...
stackexchange/codereview
I'm working on a Google appengine project and I've encountered a quandary. The following should (if the regex's are normal) redirect everything which does not contain the word "test" to the MainPage class, and the rest to the TestPage class. application = webapp.WSGIApplication( [ ...
stackexchange/codereview
I have stubbornly decided to learn Xlib programming for Linux GUIs, just for fun & the gained experience. I'm young and have lots of time to read useless stuff. Nobody seems to want people to learn this, though, as everywhere I look, askers are being bombarded with suggestions of using a toolset instead - usually Qt or...
stackexchange/codereview
<li class="checkinUserPhotoImageContainer" id=""> <img src="<%=checkin_image['image_url']%>"/> <span class="delChkPhotoImgOut"> <span class="delChkPhotoImg"></span> </span> </li> <li class="checkinUserPhotoImageContainer" id=""> <img src="<%=checkin_image['image_url']%>"/> <span class="del...
stackexchange/codereview
Basically I have code that checks if any checkboxes with a given class are selected. If one of those isn't, another checkbox doesn't get selected (parent). Logic for each checkbox { if this isn't checked then uncheck checkbox A if all siblings aren't checked uncheck checkbox A // recursion for grandparents as well. } ...
stackexchange/codereview
I'm quite new to git. I have a repo setup on a server (A) where access is via ssh rsa keys. I have a few users there including myself. Now I do git clone on my local machine and get a local copy, make changes, and push origin master, everything works fine. The problem I'm experiencing is that our testing server (server...
stackexchange/codereview
how to find the file is created or updated current date/day
stackexchange/codereview
I made a program basing on JeasyOpc source code, whan i try to use it on localhost there is no problem it works fine (i can see the opc server and can read signals from it). Than i tried to read signals from a another computer in our Lan - not working. I configured the DCOM as required but nothing helps. I even downloa...
stackexchange/codereview
I'm trying to add 10 more elements to my struct that has been already malloc with a fixed sized of 20. This is the way I have my struct defined: #include <stdio.h> #include <stdlib.h> #include <string.h> struct st_temp { char *prod; }; int main () { struct st_temp **temp_struct; size_t j; temp_struct = m...
stackexchange/codereview
I have this remote database of artists. About 6,000 entries for now. I want my app to: download a JSON-formatted index of the artist names (~95kb) import that data to CoreData provide suggestions/auto-complete when the user adds a new artist I've done this before, but not on such a big scale. Will it become problem...
stackexchange/codereview
I would like to add to UIImageView the capacity to set an image with an url. As result I would like to do something like. [anImageView setImageWithContentAtUrl:[NSURL URLWithString:@"http://server.com/resource.png"]]; So I created a category (code below). NSString *kUserInfoImageViewKey = @"imageView"; NSString *kUser...
stackexchange/codereview
I'm running a procedure which takes around 1 minute for the first time execution but for the next time it reduces to around 9-10 seconds. And after some time again it takes around 1 minute. My procedure is working with single table which is having 6 non clustered and 1 clustered indexes and unique id column is uniqueid...
stackexchange/codereview
Been scratching my head on this for a while.... I have a PDO object with pdo->setAttribute(PDO::ATTR_AUTOCOMMIT,0); as I want to use FOR UPDATE with some InnoDB tables. Reading the MySQL documentation, FOR UPDATE will only lock read rows if: You are in a transaction You are not in a transaction and set autocommit=0 ...
stackexchange/codereview
I've copied an existing joomla site from one domain to another, but when I hit the menu items it redirects to the old domain articles. Where is the setting to change this? Thanks
stackexchange/codereview
Is there a decent mechanism for doing asynchronous I/O using sockets on Android? I'm aware of the existence of nio channels, but they don't work for me because I need to be able to use MulticastSockets and BluetoothSockets, neither of which support channels. I'm aware the answer is probably that there isn't one, but as...
stackexchange/codereview
I need to synchronize the data that "one client" updated and need to be refreshed on "other client" (on another room) of the same application. 1 - Which is the best approach to doing this? I was thinking on SqlDependency but the application can also run on other database engines (I dismiss it) I also think of a timer ...
stackexchange/codereview
This seems really dumb. I've tried a bunch of different ways and it's just not working. I have a WinForms app with a WebBrowser control. If I try with a raw html file on my desktop using the same src string, the src I put together works fine. But plugging the same stuff into the WebBrowser control won't work. Here's my...
stackexchange/codereview
I made a mistake when using Leaks instrument that I thought total living objects is byte of memory, so I updated my post! [Updated] Hello All, I am facing with a problem that: My application present realtime data by using UITableView which may contains maximum 34 customized cells, so when receiving update data, I have ...
stackexchange/codereview
Imagine a scenario where - All the users on the website can be affiliated to each other, i.e. something like be "friends" with each other and all. The Database i want to design should be able to handle connections like these - Suppose A is a friend of B (also implies B is a friend of A) wants to connect with D who is a...
stackexchange/codereview
I recently read that the content provider content://sms shouldn't be used to access the SMS store, as there could be some mobile phones that might not know how to deal with it. So, what would be the best way to access the SMS database in Android? How can I access mmssms.db (this should be the database I need to deal wi...
stackexchange/codereview
I have a hierarchy in my website project as below: [CustomControl1 - folder] - CustomControl1.ascx - CustomControl1.css - CustomControl1.js I load css and js files dynamicaly based on which controls are used on particular page. I am doing it by using following code: protected void Page_Load(object sender, EventArgs e)...
stackexchange/codereview
I have 2 app pools one for asp.net 2.0 one for asp.net 4.0 does doing an iisreset recycle these pools? or do I have to recycle them by hand?
stackexchange/codereview
First of all, sorry if this might be a stupid question. I'm very new to the world of MySQL, so... Anyway, my question is this: I'm planning on having a database that deals with (for now) two types of users, let's say Admins and Users. My aim is to have ONE table containing all users, aptly named "users". Below is a rou...
stackexchange/codereview