instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
string Name = ""; for(int i; i < 10; i++) { Name = NameList[i] + "what?"; Console.WriteLine(Name); } //Or this one: for(int i; i < 10; i++) { string Name = NameList[i] + "what?"; Console.WriteLine(Name); } Which one would use less memory? Someone asked this in the comments of this question and I wa...
stackexchange/codereview
I am using a jquery feed scroll similar to Foursquare's home page. The script works perfectly until I added facebook like buttons. Within each feed, I have a Facebook like button. Each time a new feed is scrolled, the page reloads itself. Is there away to make the page stop loading itself with the facebook like butto...
stackexchange/codereview
Can Coda do code navigation like Espresso or Dreamweaver where, if you click a div or any block tag, you can click to see the whole block of code, or collapse the block?
stackexchange/codereview
I'm working on a touch panel web page (for my home automation) that is going to run on both the iPad and the iPhone. What I'm wondering about is the ability to dynamically set the size of my touch icons based on the screen size. If I'm on the iPad, I need the icons to be 150px by 150px, but if I'm on the iPhone, I nee...
stackexchange/codereview
How to simulate bit fields in Scala? The bit fields are used to access some bits of one type (like this in C link). I know it's possible to write with bit operators, but I think there a better way if not consider the performance. Thanks for every hint that might give.
stackexchange/codereview
During a recent discussion (see comments to this answer), R.. recommended to never create aliases for pointer-to-const types as you won't be able to deallocate the referenced objects easily in a conforming C program (remember: free() takes a non-const pointer argument and C99 6.3.2.3 only allows conversions from non-q...
stackexchange/codereview
I'm having problems with validating this code with the W3 validator. The problem is with the <form> tag. I need the <form> tag to overlap several <div> and <span> tags because I have many different input fields and such, but I'm also using the Form2 and Form3 with input fields and such so I need to use </form> before t...
stackexchange/codereview
This code is supposed to skip white space and return one word at a time. A couple of questions on this code: When the code gets to the *word++=c; line I get a core dump. Have I written this line correctly? and is return correct. And Do I need to somehow allocate memory to store the word? //get_word int get_word(cha...
stackexchange/codereview
I am running Workflow 4 activities, and using SQL Durable Instancing to persist the Workflow when it's suspended. I am intermittently getting an InstanceOwnerException, which is remedied by recreating the instance store. Is there any way of avoiding this exception in the first place? System.OperationCanceledException: ...
stackexchange/codereview
So I'm wondering if there is an answer in pure .NET for representing a collection of arbitrary data types. I know there's the old, late-bound, VB6 Collections, but I was looking for something like Generics, but either without having to specify the type at compile time, OR finding a clever way to allow the code to dete...
stackexchange/codereview
I have some code to implement interface in C# public interface Intfc { void xyz();} public class BaseClass : Intfc { public virtual void xyz() { Console.WriteLine("In Base Class"); } } public class Derived : BaseClass { public override void xyz() { Console.WriteLine("In Derived Cl...
stackexchange/codereview
Here is my scenario: Assume we have an SVN repo with the following content: myfolder myfolder\file.txt Now I create two checkouts of this repo, co1 and co2. In co1 we modify file.txt. In co2 we: svn delete myfolder svn commit Create a new folder named myfolder svn add myfolder svn commit Now if I attempt an update i...
stackexchange/codereview
I have two tables - incoming tours(id,name) and incoming_tours_cities(id_parrent, id_city) id in first table is unique, and for each unique row from first table there is the list of id_city - s in second table(i.e. id_parrent in second table is equal to id from first table) For example incoming_tours |--id--|------name...
stackexchange/codereview
I am building a faceted search with Lucene.NET, not using Solr. I want to get a list of navigation items within the current query. I just want to make sure I'm pointed in the right direction. I've got an idea in mind that will work, but I'm not sure if it's the right way to do this. My plan at the moment is to create h...
stackexchange/codereview
I am trying to estimate how long it will take to migrate a Classic ASP application to .NET and came across hundreds of COM functions written in VB 6. A majority of these functions only do parameter validation and actually calls the SQL server. Is this something that should be replace with an ORM? (Linq, nHibernate, En...
stackexchange/codereview
I need to send a WM_KEYDOWN message to all the Child Windows in my MDI app. The idea being that a particular key press refreshes a window and I want to refresh all child wnds at just a single key press. Other than refresh there would be couple of more such functions like right/left/up/down arrow keys etc. that need to ...
stackexchange/codereview
Say I have a CheckBoxList on a page reflecting table data. A user unchecks previously checked items, and checks ones that were not checked. I want to update the database with LINQ2EF so that the records remaining match the newly submitted checked items. In other words, when the page submits, I get a String[] of checked...
stackexchange/codereview
This is just a test application, There is only a AppDelegate class to create all I did was create a Window based app, set the supported orientations to only the landscape in the info.plist, and then add the following code: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)la...
stackexchange/codereview
What would be the best database/technique to use if I'd like to create a database that can "add", "remove" and "edit" tables and columns? I'd like it to be scaleable and fast. Should I use one table and four columns for this (Id, Table, Column, Type, Value) - Is there any good articles about this. Or is there any othe...
stackexchange/codereview
I wanna connect to aspnetdb but it makes an error says "Login failed for user" this is the connection string in web config : <add name="UserProfiles" connectionString="Data Source=KIA;Initial Catalog=aspnetdb;Integrated Security=True;" providerName="System.Data.SqlClient" /> and this is my code: SqlConnection conne...
stackexchange/codereview
I am having a little play with an ORM but I am struggling to get off the starting blocks. I am familiar with Zend_Db and was hoping Doctrine would work in a similar way but with more flexibility. I've followed the various tutorials, to integrate Doctrine with Zend Framework, which are available. All these tutorials mor...
stackexchange/codereview
i need to statically embed web browser in c++ , webkit is good idea , is there any easy c++ wrapper around this kit , i know the Qt version but i can only dynamically link it and its no good for me.
stackexchange/codereview
I have a scenario where in strings and numbers are combined into a single entity. I need to search based on the string or the number. How do I go about with the data structure for this? I thought of coming up with a hashing for strings and search tree approach for numbers. Can you please comment on my choice and also s...
stackexchange/codereview
I would like to know which UML Sofware has been used to create the UML Diagram on the Wordpress Developper Website : http://codex.wordpress.org/images/8/83/WP_27_dbsERD.png Thanks!
stackexchange/codereview
OK, So I have tried this with & without a virtualenv: uwsgi --home /home/auston/new_proj/ --socket /tmp/uwsgi2.sock --chmod-socket --module app_wsgi --pp /home/auston/new_proj/nikeshere --logto /tmp/uwsgi.log --master --processes 4 -P Pretty much no matter what, I get this: *** Starting uWSGI 0.9.6.5 (32bit) on [Thu O...
stackexchange/codereview
how do you change the colour of the Navigation Bars, Tab Bars? Everytime I change it, I dont get the colour I want, It either gradient red, or gradient white/silver. But unable to do it, default gradient blue and grey both look good but try changing it any other colour and it looks terrible. Any tips? how to do gradien...
stackexchange/codereview
I want Rails 3 to dynamically grab assets depending on current domain: mysite.com - assets.mysite.com mysite.ru - assets.mysite.ru Is it possible out of the box? Or I should implement it manually?
stackexchange/codereview
Alright, so I'm trying to create a simple RPG game, and my map reading code seems to be off. This is the map reading line: Integer.parseInt(map.data.substring(Map.MAP_START + ((playerPOS - map.width)/2) - 1, Map.MAP_START + ((((playerPOS - map.width)/2) - 1) + map.dataLen))); Now the only tiles in the map are 01 and 0...
stackexchange/codereview
I work with data that comes from multiple sources that I have no control over. These sources tend to have duplicates in the "key" values. I need to keep any of these duplicate values form matching in a join. Using the following data T1 | ID | FirstKey | SecondKey | ThirdKey | AdditionalColumns | +----+----------+--...
stackexchange/codereview
How can i check if my image link is valid for both IE and FF? For example this link works just in FF, no image is displayed in IE browser. I checked the image and the color space is RGB. So image space problem is excluded. Thanks.
stackexchange/codereview
This is my parent pom.xml: [...] <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0</version> <configuration> <archive> <manifestEntries> <SCM-Revision>${buildNumber}</SCM-Revision> </manifestEntries> </archive> </configurati...
stackexchange/codereview
I am trying to perform a SELECT query using a GROUP BY clause, however I also need to access data from multiple rows and somehow concatenate it into a single column. Here's what I have so far: SELECT COUNT(v.id) AS quantity, vt.name AS name, vt.cost AS cost, vt.postage_cost AS postage_cost FROM vouchers v INNER J...
stackexchange/codereview
I'm trying to make a redirect from a non-www version of the link to the www one. Its working fine for something like http://mywebsite.com but it fails for a request like http://mywebsite.com/artists/metallica/ or even a complex one. The whole .htaccess file is bellow. Any clues? Options +FollowSymLinks RewriteEngine O...
stackexchange/codereview
I need to export data from php to Excel, and be able to format various items in the excel spreadsheet. So far, the best library that I have found is PHPExcel. However, it seems very heavy, and somewhat slow. Granted, it is very powerful. Is there anything a bit more lightweight and faster, that allows me to export to e...
stackexchange/codereview
I have two ordered lists of the same element type, each list having at most one element of each value (say ints and unique numbers), but otherwise with no restrictions (one may be a subset of the other, they may be completely disjunct, or share some elements but not others). How do I efficiently determine if A is order...
stackexchange/codereview
If anyone has used one of these systems could you give me a feedback on the pros and cons for both? Also are there better tools out there besides these? Alpha Five Outsystems agile development Omnis Studio from Tiger Logic Thanks in advance, Jimmy
stackexchange/codereview
I've been writing mail software for years and now I'm being asked to deliver mail to mobile phones. You can send a multipart/alternative type email so you can send both html and text versions of the email. Has there been a standard introduced that supports a 3rd type geared towards mobile devices? I've been searching b...
stackexchange/codereview
I have a list of pairs of objects. Objects can appear in the pair in either order. What is the most efficient algorithm (and implementation?) to find all bags (ie sets with duplicates permitted) of pairs between the same objects. For my purpose the object references can be assumed to be pointers, or names or some simil...
stackexchange/codereview
I'm getting this error message from my compiler: undefined reference to `Pawn::Pawn(Piece::Color)' This occurs when I do this: // board[][] contains pointers to Piece objects board[0][0] = new Pawn(Piece::BLACK); Here's part of the Pawn class: // Includes... #include "piece.h" // Includes... class Pawn : public Piec...
stackexchange/codereview
I am working on a project for my college where I need to bind data from database into the combobox. I need to store the roll no / enrollment no in the "value" field of combobox and name of the student in the "text" property of the combobox. My code is : #region Fill Combo Box //Fill Combo Box. public st...
stackexchange/codereview
I've written a library in which I do some introspection on Java fields to have their annotation list (and more specifically to see if they have one or more specific annotations (like - say, @Id, @Child, @Parent). Here is an example of the kind of code I use : @Override public <T extends Annotation> T getAnnotat...
stackexchange/codereview
I try to send a photo and GPS location to server via PHP here is the PHP part:Copy from here Saving the Uploaded File The examples above create a temporary copy of the uploaded files in the PHP temp folder on the server. The temporary copied files disappears when the script ends. To store the uploaded file we need to c...
stackexchange/codereview
Free and stable is the winner. My plan is quite trivial - just put all the data in memory and use the cluster without changing the application code. Then, for persistence, I could just dump the data from nodes in a regular disk-access database. The only thing is, that since I demand in-memory storage, there is no possi...
stackexchange/codereview
This seems rather obvious to me, but I just wanted to make sure. In terms of memory used when the foo function is stored, would it better to do this: function foo(){ var hey = {}; hey.a = 1; hey.b = 1; alert('done'); } or function foo(){ var hey = getHey(); alert('done'); } function getHey(){ ...
stackexchange/codereview
I have a PathsHelper that overwrites foo_url and foo_path by processing additional parameters as well as the context from the current url. This is included in ApplicationController. Right now, I have: describe ApplicationController do describe "#foo_url" do ... end describe "#foo_path" do ... end end ...
stackexchange/codereview
I'm finding tons of good, cross-browser answers on how to set the caret position in a contentEditable element, but none on how to get the caret position in the first place. What I want to do is know the caret position within a div on keyup. So, when the user is typing text, I can, at any point, know the caret position ...
stackexchange/codereview
Given a Map, how do I look up all keys associated with a particular value? For example: Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 5); map.put(2, 2); map.put(3, 5); Collection<Integer> keys = map.values(5); // should return {1, 3} I'm looking for something similar to Google Collections' Bi...
stackexchange/codereview
Short.parseShort(String s, int radix) exists, as does Integer.parseInt(String s, int radix) and Long.parseLong(String s, int radix). Integer.toString(int i, int radix) and Long.toString(long l, int radix) exist. Short.toString(short s), Integer.toString(int i) and Long.toString(long l) all exist. So why is there no Sho...
stackexchange/codereview
My problem is best explained with examples: This works: $(startContainer).parents().each(function(index, parentNode) { if (parentNode.isSameNode(commonContainer)) return false; console.log("start vert struc: " + parentNode.nodeName); }); While, this does not work: $(startContainer).parentsUntil(commonContainer...
stackexchange/codereview
Possible Duplicate: How can I make Eclipse file search not include svn directories? I would like to perform a search but exclude all .svn directories from the search. How could I do that? By the way, I have the Subversive plugin installed in Eclipse, if it's needed.
stackexchange/codereview
Are there any compelling reasons for me to upgrade to Maven 3 immediately? Nothing stands out from the release notes. Have you upgraded to Maven 3 yet? If so, what benefits did you see?
stackexchange/codereview
Hi I am trying to sent an email to some addresses i did that using the System.Net.mail the problem is that i need to make the mail message different for each recipient because i need to put a link inside the email that contain the id this user, the problem is the large number of recipient that i cant use a loop to invo...
stackexchange/codereview
I need some help in PHP to create short urls just like StackOverflow creates when we comment any long URL in comments on a question. StackOverflow shortens http://www.noupe.com/how-tos/10-ways-to-automatically-manually-backup-mysql-database.html long url to short urls like this noupe.com/... I require similar kind of...
stackexchange/codereview
I want to delete a particular row fro two tables with the help of single query..
stackexchange/codereview
Not yet a developer, just trying to find out if an android app can do what I need.. What I need: Simple app that displays a full frame of a single color onscreen at a certain intensity at a fixed frequency! I need it for a synchronization purpose with as high a resolution as possible (achieved by changing an intensity ...
stackexchange/codereview
How can i send the email using mailx command including the HTML code? for example: mailx -s "Report" << EOF Report Generated <table width="600"> <tr><td width="30%">&nbsp;&nbsp;</td><td width="35%" style="font-size:7pt;">Definition</td></tr></table>EOF however the mail did send, but which is not as html code.. Anybody...
stackexchange/codereview
I'm aware of the limitations of loading an assembly dynamically during run-time that prevents it from being unloaded. Instead it's been suggested that, if this is a requirement, that I should instead load modules in other application domains and then execute code across the domain boundries. How can I ease this develo...
stackexchange/codereview
I'mm writing gtk code. I often have short callbacks that don't need to be closures, as they are passed all the parameters they need. For example, I have this in a loop when creating some gtk.TreeViewColumns: def widthChanged(MAINCOL, SPEC, SUBCOL, expandable): if expandable: return w = MAINCOL.get_width() S...
stackexchange/codereview
I'm trying to monitor the average temperature in a fabrication every hour to ensure quality control. How can I write a script that looks at the temperature inside the plant as a function of time, and outputs the times when the temperature drops below 10 degrees Celsius and when the temperature is above 80 degrees Cels...
stackexchange/codereview
something weird is happening! is a couple of days that my users are experincing a "logging out" isses, the error message is: Event code: 4005 Event message: Forms authentication failed for the request. Reason: The ticket supplied was invalid. Here the data: the website is running on 3 server behind a load balancer yes...
stackexchange/codereview
I am trying to develop a WebSite for my Church. I don't have much experience in IT, but I have a home page with html and css right now. I would like to have a database that I could hook it up to.. Are there any basic tutorials on how to do this? I am running linux mint. and My website is PHP. How could i hook up a ...
stackexchange/codereview
Is it all right to use <marquee> HTML element yet? I mean, is it supported by all browsers yet? I know Twitter is using it, I think it's quite good for announcements and I'd like to use it, but I don't know if it will work properly yet. Does anyone know?
stackexchange/codereview
Can I call a non-member static templated function from a static member function where the definition is split into header and cpp: // zero.cpp class Zero { static void zero() { one(5); } }; // one.h template <typename T> static void one(T& var); // one.cpp template <typename T> void one(T& var) { } // main.cp...
stackexchange/codereview
I have an UIViewController class with two labels and a UIImageView set as IBOutlets, and I have this outlets connected in my xib, I have double checked they are connected properly, however when I check the their value in the debugger they are 0x0 so I cant change them programatically. Any ideas on what I might be doing...
stackexchange/codereview
We have an existing web page which lets users upload images to the server. We would like to stretch it out so that iphone users can also upload images in this web form. Any ideas or third party tools? I also found http://www.cliqcliq.com/support/quickpic/ but there no sample in coldfusion. Thanks!
stackexchange/codereview
I am learning Rails, at the moment, but the answer doesn't have to be Rails specific. So, as I understand it, a secure password system works like this: User creates password System encrypts password with an encryption algorithm (say SHA2). Store hash of encrypted password in database. Upon login attempt: User tries ...
stackexchange/codereview
As other questions have noted, when you detach and re-attach an object, any child objects are gone. I thought doing this: db.Properties.MergeOption = System.Data.Objects.MergeOption.OverwriteChanges; would cause subsequent reads to fully repopulate the object and graph when it was read in, but no such luck. Is there...
stackexchange/codereview
At this moment, I am the only person working on a project in svn. To stay legit, I am suppose to make changes to a branch and then merge those changes into trunk: so my branch and trunk are basically identical. Currently I have two working copies, one for the branch and one for trunk. I make the changes to the branc...
stackexchange/codereview
Seems like a pretty common use case for developers, but there is no setting for this?
stackexchange/codereview
When this program is run, the "stderr" line is displayed before the "stdout" line. Why? I thought dup2 would make stderr and stdout use the same file descriptor so there should be no problem with buffering. I'm using gcc 3.4.6 on Solaris 10. #include <errno.h> #include <stdio.h> #include <unistd.h> int main() { in...
stackexchange/codereview
I need to update the record status(field name IsActivate-this holds the status of record) but needs to check first if the data is used in another table(meaning table is having a relationship with another table).If the data that I want to update is used in another table, update is not allowed else it should be updated.H...
stackexchange/codereview
I need to ensure that only one copy of my Perl script is running at a time. According to the suggestions here I wrote a sub to do the check: sub check_instances { open my $fh, '<', $0 or die $!; unless (flock($fh, LOCK_EX|LOCK_NB)) { print "$0 is already running. Exiting.\n"; exit 1; } }...
stackexchange/codereview
What does the following error message mean? AttributeError: 'NoneType' object has no attribute 'tk'
stackexchange/codereview
Is this code a good solution to randomise a two-dimensional array and write out all the symbols on the screen? If you have a better tip or solution please tell me. int slumpnr; srand( time(0) ); char game[3][3] = {{'O','X','A'}, {'X','A','X'}, {'A','O','O'}}; for(int i = 0 ; i < 5 ; i++) { slumpnr = rand()%3; ...
stackexchange/codereview
I have an id field (int type) and varchar field. I have to concatenate both columns and store the result to another column with data type nvarchar; Is this possible?
stackexchange/codereview
I have created a custom button using this code setup : function(ed) { ed.addButton('Tittle', { title : 'Tittle', image : './images/T.jpg', onclick : function() { ed.focus(); var c = ed.selection.getNode().nodeName; if(c!="TITTLE...
stackexchange/codereview
Currently I fetch rows with the help of mysql_fetch_array() (and the LIMIT/OFFSET) (ie. while ($row = mysql_fetch_array($res)) { ... }); but the last row is not needed as it was to be fetched in order to make sure there is at least one more row left - it is not for display.
stackexchange/codereview
I am currently learning Spring. So far I have created a basic application consisting of Hibernate/JPA entities, DAOs and classes that perform business logic. This I am calling the service layer. If I now wish to use SpringMVC to add a web front end to this application, how should I separate the two? i.e. do I need ...
stackexchange/codereview
I want to get the absolute url of a given action in Django 0.96 (using Google App Engine). I have this url configuration: from django.conf.urls.defaults import patterns urlpatterns = patterns('framework.facebook',(r'^canvas/invite_friends$','views.inviteFriends'), ) In my template: window._url = '{% url views.inviteF...
stackexchange/codereview
How do I make my form a "system modal dialog" as in Windows XP? "Turn off dialog" so no operation can be made in Windows except in my form in C#.
stackexchange/codereview
I have read a number of books on DOCTYPE declaration and the three variations: strict, transitional and frameset. But I am still not able to fully understand their difference and indeed am not sure which variation I should use when creating my website. In particular I don't understand the difference between strict and ...
stackexchange/codereview
Is there a way to have a single full-screen picture load when the cocoa app is launched? What I mean by that is a full-screen picture, without the menus and stuff that cocoa automatically attaches to apps.( For example, I want to build an app that when the user clicks it - it brings up a picture of say, a zombie, comp...
stackexchange/codereview
Here's a really strange problem: Apparently, the specific sequence of bytes which translates to ASCII "PUttttt", if sent over a TCP socket doesn't make it to the client at all. I've included the sample code used to demonstrate the problem below in hopes that someone might have an idea as to why this is happening. The ...
stackexchange/codereview
This is kind of a follow to my other post about Unity (http://stackoverflow.com/questions/3998559/irepository-iservice-unity-in-an-asp-net-mvc-application-reference-question). Basically I'm trying to register a generic type in the web.config. I've read a few posts and this SEEMS like it is configured correctly. <uni...
stackexchange/codereview
Are you having a problem figuring out how to get interface info on Mac OS X using ioctl/SIOCGIFADDR/SIOCGIFCONF? I had a lot of trouble getting code that worked fine on Linux to work on Mac OS X today.
stackexchange/codereview
I am familiar with vbscript, I am looking for a few ideas on how to do this. I am open to trying other scripting languages. The graph does not have to be incredibly fancy. Any suggestions would be greatly appreciated.
stackexchange/codereview
I have a webview in my app that generally works fine for loading websites. But I cannot get www.gmail.com to work: when I open www.gmail.com I see the login page, try to login, afterwards the screen goes black and my app/process is killed. I don't see much in my logcat, just some strange debug information is being dump...
stackexchange/codereview
Does anyone could put me a very basic example of an asp.net web application which is vulnerable to the padding oracle attack.
stackexchange/codereview
I'd like to add 15 minutes to Time Object, so that 09:46 would become 10:01. Time time = new Time(); time.hours = 9; time.minutes = 46; time.minute += 15; This doesn't work... :-/
stackexchange/codereview
Using the following if statement I am trying to check whether the day of the week is Friday if(($uur < 12) && ($min < 30) && ($datum == date('Y-m-d', strtotime('Friday')))) { $proceed = FALSE; $errorWoensdagVrijdag = "<div id='row_form_dropdown'>Error Message</div>"; } The dates are being inserted using a fo...
stackexchange/codereview
Let us say that I have two Xcode projects open on a Mac and I am going back and forth between them. Is there any hot key that can do this (rather then constantly using the mouse). Something analogous to COMMAND + TAB to flip through applications.
stackexchange/codereview
I would like to create a vector of functions using a two agruments function 'func', for instance this one: func = function(number, coefficient) { return(coefficient*number) } here is how I create the vector of functions: vector_of_functions = NULL for (i in 1:4) { vector_of_functions = c(vector_of_functio...
stackexchange/codereview
I'm using JavaScript to inflate a span of left-aligned text until it fills its container, or until it reaches variable thresholds in either height or width. This process results in a widely varying font-size. My problem is that, with certain characters, there is a small amount of padding on the left... and while norma...
stackexchange/codereview
In solaris when open call to char special device file is made in user space, the driver's open call is called with only two parameters. 1. major and minor number and 2. flag that contains read/write etc.. Is there any way to the get the name of the opened device file in driver's open call. or Is there any way to get th...
stackexchange/codereview
I have two tables first one consist of id`s which are associated with names 1 - Car 2 - Train 3 - Plain ..etc The second table consists of two fields user_id and an id from the first table (for example 1) 1 2 1 3 I`m trying to repopulate selected checkboxes when user goes to the page
stackexchange/codereview
Are entities required to be mapped to a table or can they map to a stored procedure? I have an entity that does not map to any specific table, instead it maps to a stored procedure. I am getting the following error: Schema specified is not valid. Errors: Model.msl(6,6) : error 2062: No mapping specified for insta...
stackexchange/codereview
We are trying to set up a Mamp Pro installation ( on Mac ) which allows us to access PhPmyAdmin over the lan. We can access the htdocs folder to edit it's contents using standard sharing so that is not a problem. The problem is that we can't seem to the access the PhPmyAdmin of this installation. I've googled for sever...
stackexchange/codereview
I have a UINavigationController loading in the first tab of a UITabBarController. I'd like add a refresh button on the right side of the UINavigationItem. My dim understanding is that one has to set properties like titles and buttons on a nav controller before it's added to the control hierarchy. I have no problem a...
stackexchange/codereview
I want to know what could be the best way to make multi-site with single back-end. I mean to say that I have a global shopping cart (say www.abc.com), and some regional shopping carts (say www.abc.fr, www.abc.in etc) and I want to manage them with single back-end. Should I use a single database and site-id in my tables...
stackexchange/codereview
Hi I want to put my NIC into promiscuous mode. Why? Because I wrote app which is able potentially to detect sniffing in my local network (send modyfied appropriately ethernet packets). I just want now check it out, so in my second comp I want to set up promisc mode. There's Windows 7 and simply Dell Wireless 1397 WLA...
stackexchange/codereview