instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
UPDATE: SO I am getting the error whenever I have all meta tags like HostType,AspNetDevelopmentServerHost,URLToTest. So when I comment these tags I can run the test but I need to have these tags to have the connection string available for controller to connect to database. I created a basic unit test by just right clic...
stackexchange/codereview
I am writing a game app for Android, where a question word with four different alternatives will show that the user can choose between. I have a database and i can insert from the app, but what would be the easiest way to use a select statement, and then parse the response and populate the five different positions in t...
stackexchange/codereview
How to make a php socket client that needs to perform socket_sendto to linux C socket server which has following struct typedef struct { UI2 todo; char rz[LNG_RZ + 1]; char saId[LNG_SAT_ID + 1]; char user[LNG_USER + 1]; char lang[LANGLEN + 1]; S...
stackexchange/codereview
what is the maximum interval for a timer to work in C#? is it the maximum value of int 32? can i change it to int 64? If i change, that is ONE big IF, will a timer still be working?
stackexchange/codereview
I want to sort the elements in my list and have the option of filter them the same way MS Excel does. So it should be able to keep the filtered elements in the table and apply a filter within those results as well. Also be able to sort them without refreshing the whole table. Any help is greatly appreciated!
stackexchange/codereview
i use core data in my app. i have 4 columns(id,name,description,specs). I want to full text search across all these columns. Is it possible with core data? If anybody can provide me reference to tutorial or code snippets. Thanks
stackexchange/codereview
How do I modify the style of the li element using DOM? <div id="tabbed-boosts"> <ul> <li>test1</li> <li>test2</li> <li>test3</li> </ul> </div> getElementById('tabbed-boosts').childNodes will get me to the UL, how do I modify the LI? Also needs to work in IE6...
stackexchange/codereview
I am always getting no bytes sent, with an errno of 22 (EINVAL, Invalid Argument) with this code. The destination_host is set elsewhere and known to be valid, so I really don't see what is going on. MAXMSGSIZE is 1000. No errors, or warnings. I am compiling with -Wall -Werror -pedantic char *data_rec; u_int data_le...
stackexchange/codereview
How can I do login with google adsense in an iphone app? Someone can show me the code? or tell me something about? Thanks
stackexchange/codereview
I've got a repeating NSTimer that I invalidate manually some time before I dealloc the object that owns the callback that is invoked by the timer. I verify that when I invalidate the timer, the callback is not being called anymore. When the object deallocs, an instant later I get an EXC_BAD_ACCESS. The crash is corr...
stackexchange/codereview
How to parse xml without freezing GUI in iphone SDK ? during parsing user can interact with gui components. But as i have seen most of the times GUI become freeze when xml parsing performed.
stackexchange/codereview
I have a method, that returns a group of accounts Public Shared Function GetAllNotesByUser(ByVal UserID As Guid) As Account (??) Using db As New MyEntity Dim query= (From A In db.Account _ Where A.aspnet_Users.UserId = UserID _ Select A) Return query End U...
stackexchange/codereview
The following is a debug session on Perl 5.12. Does this make any sense? Does UNIVERSAL cache a version of the @ISA variable, which if forever uses thereafer. Back before Class::ISA was deprecated, I used to call Class::ISA::self_and_super_path to get the internals to relook at the @ISA array. Since it is now considere...
stackexchange/codereview
I have VS2010 Pro installed through DreamSpark. I really don't want anything more than I need on my PC, but the WP7 SDK insists on installing VS Express for development. Can I just install the SDK without VS Express?
stackexchange/codereview
In order to improve speed of chat application, I am remembering last message id in static variable (actually, Dictionary). Howeever, it seems that every thread has own copy, because users do not get updated on production (single server environment). private static Dictionary<long, MemoryChatRoom> _chatRooms = new Dicti...
stackexchange/codereview
I'm not sure why, but if you have an element with contenteditable enabled, the first time you enter a space, it'll append a <br> tag into the element. If the element has a space in it by default (<p contenteditable="true">this is a test</p>), it'll be fine, but as soon as the user hits that spacebar (or even copy+past...
stackexchange/codereview
I have a problem regarding static variables. It is said that the life of the static variable is beyond the bounds of the function (if defined in a function). But a pointer to it must give the value if it exits. But it does not work. #include<stdio.h> int *p; int main() { clrscr(); test(); printf("%d",*p); ...
stackexchange/codereview
Please explain in detail with examples. Thank you
stackexchange/codereview
Error SQL query: -- -- Database: `work` -- -- -------------------------------------------------------- -- -- Table structure for table `administrators` -- CREATE TABLE IF NOT EXISTS `administrators` ( `user_id` varchar( 30 ) NOT NULL , `password` varchar( 30 ) NOT NULL ) ENGINE = InnoDB DEFAULT CHARSET = latin1; MyS...
stackexchange/codereview
I use the following program to write to a fifo: #include <iostream> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> using namespace std; int main() { unlink("fifo1"); if (mkfifo("fifo1", 0666) ...
stackexchange/codereview
I have a Customized UIAlertView.I have a UITextField in that AlertView, which becomes the firstResponder as soon as it is shown. Now I need to dismiss the keyboard for that UITextField when user touches somewhere else in the AlertView. I have touchesBegan event for that. Everything is in place and works fine, except wh...
stackexchange/codereview
I've got a python list alist = [ [0, 4, 5, 5], [2, 2, 4, 5], [6, 7, 8,13]], [ [3, 4, 5, 5], [2, 2, 4, 5], [6, 7, 8,999] ] I need the result is alist = [[0,4,8,13], [3, 4, 8, 999]] It means first two and last two numbers in each alist element. I need a fast way to do this as the list could be huge.
stackexchange/codereview
A) My way so far: sqlCommand.CommandText = "INSERT Table1 ([column1],[column2],[column3])" + " SELECT [column1],[column2],[column3]" + " FROM Table1 WHERE Id =" + param + ";select scope_identity() as id"; B) I wish to do something like this: INSERT INTO "table1" (* (without the ID-c...
stackexchange/codereview
is it possible to make CSS Layers shaped like the following image... i know we can have images of this shape and with transparent backgrounds we can have Layers shaped like these... but no i want CSS Layers to actual borders like these shapes... is there a way CSS, jQuery or anything.... Note: by 'shapes like these i...
stackexchange/codereview
I want to normalize PCM WAV files from client side(Silverlight). I am using ASP.NET MVC on the server side. And I found a C program here https://neon1.net/prog/normalizer.html Does anyone know that if there are similar C# libraries that I can use directly?
stackexchange/codereview
The system I'm building is attempting to read Microsoft Access DBs from a different system. I essentially need to be able to read the data, parse it, and do something with it. If I could somehow load it into an associative array, a database, or anything else, that'd be great. Our users will have to import these files t...
stackexchange/codereview
How do I find the minimum and maximum of the axis in a MATLAB plot?
stackexchange/codereview
What is OPDA Certificate? Because during installation of unsigned symbian apps, it gives an error. "unable to install a protected app from an unknown supplier" So what does this certificate contains actually????? And after signing the application with this OPDA certificate and the key, the application works....
stackexchange/codereview
I have an AJAX-heavy ASP.NET web application developed using .NET 4.0, using TFS as our source control. We recently upgraded our dev tools to use VS2010 and TFS 2010 exclusively, but now every time a file is checked out, we see visual studio reloading all the symbols, and all the sessions being dropped. After putting s...
stackexchange/codereview
I intend to make a service where in people could submit tasks(specifically transcoding tasks) to the system and they should get serviced soon but at the same time it should not starve anyone else, ie it must be fair. If a person submits 2000 tasks the system should not cater to only him all the time but instead do a ro...
stackexchange/codereview
hello i have a webpage that refreshes automatically when user clicks the "Calculate button" which calls a javascript function. There is a onLoad event in the body tag. I also use a bit of jquery. http://gist.github.com/644498
stackexchange/codereview
I have installed CF9 development edition and would like to change the web folder to Sites on my mac rather than wwwroot in the coldfusion 9 folder. Any ideas how I can achieve this? Thanks, R.
stackexchange/codereview
I have a reporting component in the administrator of a Joomla site. The user can choose from a dropdown list of available report types, which then calls a function to run the query and output a CSV file. For the most part this works. However, for one report, I'm getting a different number of results through the Joomla ...
stackexchange/codereview
I am having a problem, but I cannot figure out what I'm doing wrong. I'm not sure if it's a problem with my loop, or the cin buffer is not being cleaned. I am doing a program that transforms a C-style string to uppercase, however if the user enters more than 11 characters, then the function should only display the firs...
stackexchange/codereview
I am trying to use RubyMine to run the tests in an existing project. Unfortunately, whenever I attempt to do so I receive the message that No tests were found and the bottom of test console output I see the message: Errors running test:units and test:functionals! Empty test suite. Process finished with exit code 1 I...
stackexchange/codereview
I wanted to move a sql file to my staging server that was related to some coding. I overlooked the fact that it was 1Gig in size and committed the file. I don't remember if it ever finished committing but I continued committing other changes from different files. Now when I'm on my staging server and I fetch or pull th...
stackexchange/codereview
I have text which shows course numbers, names, grade and other information for courses taken by students. Specifically, the lines look like these: 0301 453 20071 LINEAR SYSTEMS I A 4 4 16.0 0301 481 20071 ELECTRONICS I WITH LAB A 4 4 16.0 0301 481 20084 ELECTRONICS I...
stackexchange/codereview
Greetings, I just converted an ASP.NET Web Site Project to a Web Application Project in VS 2010. After I run the application though it seems that my class polymorphism broke. I don't have a clue as to why this could occur. So in the following code when I call base.OnLoad(e) I am getting errors in the base class becau...
stackexchange/codereview
My client needs to read some queries using Excel or something like it, so I need to generate XLS calling in some queries in stored procedures. Basically I have the SP, I have the View Done, and the query working fine, but I don't know how to make an xls or an xlsx with the SP itself. Is there any good practice or some...
stackexchange/codereview
I'm using jQuery-UI's accordion plugin with hash tag navigation, but I'm running into a problem. Each page of my site has an accordion widget on it. The URLs in the second level of my main navigation menu are supposed to open the correct panel of the accordion using the accompanying hash tag, and they are written like ...
stackexchange/codereview
What is the best method for splitting or extracting the css properties out of as string and into an object? var cssProperties = 'background:green;content:"Content;";color:pink;'; The above should result in the following var theObject = { background:'green', content:'"Content;"', color:'pink' } Unfortunate...
stackexchange/codereview
I have started a web forms project using nHibernate and objectdatasources; however, I've learned that there are some limitations that I understand but do not know to handle. These limitations include 1) objectdatasources require parameterless constructors and 2) properties of the business object cannot be read-only. Th...
stackexchange/codereview
i have a query like this SELECT TOP 10 * FROM NEWS WHERE newsid > AAA ORDER BY newsid desc; this query is very slow for some values of AAA for example it is fast for 1,000,000 and 1,400,000 but it is slow for 1,355,316 I am confused!!!
stackexchange/codereview
Im using Google Analytics Dashboard Control which are available at http://gadashboardcontrols.codeplex.com/ Issue is its working fine when im connected to internet but if im using it on a machine that doesnt have internet access then it shows Server Error in '/' Application. The remote name could not be resolved: 'ww...
stackexchange/codereview
I have a class that represents a pretty complex object. The objects can be created by many ways: incremental building, by parsing text strings in different formats and by analyzing binary files. So far my strategy was as follows: Have the constructor (__init__, in my case) initialize all the internal variables to None...
stackexchange/codereview
Im a student who is really new to functional programming. Im working on a banking application where the data has been already defined as, type Accountno = Int data Accounttype = Saving | Current | FixedDeposit deriving (Show,Read) type Accountamount = Int type Name = String type Account = (Accountno, Name, Accountty...
stackexchange/codereview
I have a numpy array and want to convert it into an ITK image for further processing. How do I do this without using the PyBuffer extension to WrapITK. I can't use that because I get a bunch of errors when compiling: .../ExternalProjects/PyBuffer/itkPyBuffer.txx: In static member function ‘static PyObject* itk::PyBuf...
stackexchange/codereview
Running my site on IIS7 and looking to improve my Yslow rating. Working with asp.net. I am able to cache static resources in the web.config but is it possible to the following also: Set the etag on the resources eg. javascript, images, css files etc Add expires header to the above static resources Set gzipping on compo...
stackexchange/codereview
I have a custom Google Search included on a html page. like http://www.******.com/search.htm?cx=partner-pub--00000000000-c77&cof=FORID%3A10&ie=ISO-8ds3-1&q=software&sa=Search&siteurl=www.******.com%2#1342 When I am using same url in browser I get results. I want to call it by simple dom html parser then it is returni...
stackexchange/codereview
I'm looking for a data format for text files with hierarchical information. These files will be created primarily by human input (rather than generated by programs), but will be read primarily by programs. The main requirements are: Very simple and uncluttered syntax. (Example: levels of hierarchy defined by tabs woul...
stackexchange/codereview
With Forms Authentication when the app needs to redirect to sign-in page is there an event or any extensibility point that will let me do additional work to the request before it redirects to the sign-in page? I would like to send additional information in the query string that could vary such that it wouldn't work to ...
stackexchange/codereview
I'm working in a website that is going to work like a landing point, providing a specialized service for many other websites. Users log-in to different sites and those sites have links to my website. Now, I want to create my website using asp .net, and also I want to be able to use SSO (Single Sign-On) so the users doe...
stackexchange/codereview
I am parsing a file and I would like to store it in a lookup structure in a way that I can lookup with two keys. I have a User Entity that has name, email and id, types are irrelevant. I would like to store it in a Dictionary<User, id> so I can get the user id by looking up with User. I also want the other way around, ...
stackexchange/codereview
Do the latest versions of these gems not work with each other any more? It appears that something may have gotten out of whack in my bundle. undefined local variable or method `node' for #<Capybara::Driver::RackTest::Node:0x103e19390> (NameError) ./features/step_definitions/web_steps.rb:35 ./features/step_definitions/w...
stackexchange/codereview
What are the UML 2.0 rules regarding private/protected functions on sequence diagrams? Do we show them (those functions) on those diagrams? Are they marked in any special way to indicate that they aren't public?
stackexchange/codereview
I have 2 sets of data as following: default_products - A set of active record objects retrieved from memcached owned_products - A set of active record objects retrieved from the database Retrieving the data is fast and i get around 30-40 req/s when just returning either one of the arrays yet as soon as i do the followi...
stackexchange/codereview
What are the most important points to be aware of, and the workarounds, when gradually migrating an existing Java codebase to Scala? With a (potentially very long) intermediate phase where both languages are in use. The sort of things I'm thinking about are: different collection hierarchies Java constructs that Scala...
stackexchange/codereview
I have installed DBD::Pg version 2.17.1 but still still getting error while using below code $res = $conn->prepare($query); $res = $res->execute(); @tuple = $res->fetchrow_array; error: Can't call method "fetchrow_array" without a package or object reference at test.pl line 69. Please suggest.
stackexchange/codereview
I have created a custom wizard control that dynamically loads usercontrols as you progress though it. The wizard is behaving as expected in all environments (PC/MAC) and browsers I have tested however a client is reporting that she is unable to complete the wizard. What I know about the issue: It always fails on the s...
stackexchange/codereview
I am trying to parse an xml file using SAX with Android and the problem is that the function characters(...) is getting called multiple times with what appears to be the same data just offset by a few characters. As you can tell from the output below the first time it gets called with "\talabama" and the second time it...
stackexchange/codereview
I have a base class (ex: Class1) containing a list of another base class (ex: ClassA). Each child class of first base class (ex: Class1AA, Class1AB,..) containing a list of child class of second base class (ex: ClassAA, ClassAB,...) The client must never know which child class is using, then i don't think i can use gen...
stackexchange/codereview
I have a Tkinter GUI where there is a Scale object. I have a callback assigned (by the command constructor parameter) to perform an action when the user changes the scale position. However, there is also a case where the value represented by the scale is modified externally, and so I set the scale position using Scal...
stackexchange/codereview
I have 3 tables: Users (id, name) Orders (id, userId) Orders_Items (id, orderId, status) At first I wanted to list all users with their respective count of orders like this: A, 1 order B, 5 orders That's easy, I'm doing a "select name, count(id) from users, orders where users.id = orders.userId group by name". Now,...
stackexchange/codereview
I have a database with a lots of relationships between Tables and a Silverlight client that connects to my server with WCF service on ASP.Net side. First i used LINQ to SQL as a robust mapper tables to object and in a WebMethod that returns a List<Foo> of my Database's object(suppose GetFoo()). The Foo has lots of rela...
stackexchange/codereview
class Article(models.Model): # usefull staff category = models.ForeignKey("Category") class Category(models.Model): parent = models.ForegnKey('self') I want to display categories selector as a <select> field with sorted category tree in it. It should look like top level category1 lower level1 lower...
stackexchange/codereview
How to reset date Type for Compare Validator in ASP.Net i am using the dd/MM/yyyy format for the Calendar Extender of a textbox, where as Compare Validater looks for MM/dd/YYYY format. so how to change date format of Compare Validator.
stackexchange/codereview
I'm currently looking into automating a software build process that includes a database schema defined in MySQL Workbench. Using Workbench's scripting capabilities, I'd like to open a Workbench document and export its schema as an SQL CREATE script. What I'd like to know is if there is a function that exports the entir...
stackexchange/codereview
I am looking at writing a jquery plugin that takes a number of input elemts such as input elements, textareas, select html elements etc and once the enter key is pressed in any of the above items, a input button is triggered. As such, the button is set as the default for the fields. Any tips on doing this?
stackexchange/codereview
I have four divs on a popup and each click makes a ajax call to the back end and paints the right hand side. All four clicks are div by id clicks. When user clicks on div i want to disable the other three divs till this ajax complete. Once the ajax succeeds i want to enable the click events for the other three divs. Li...
stackexchange/codereview
I have a MySQL DATETIME field that holds the date of birth of a user. I want to use that date to display the age the user in years. Is there a method of the Time core helper to do this? Also, why when you add a DATETIME field to a form in Cake does it not let you select a date less than 1990? Thanks, Jonesy
stackexchange/codereview
Trying to pass a form value into a global var to be use in two functions but get this error document.PostReply is undefined or the javascript just crashes because getReplyId is undefined within the functions. No matter what I have tried I get one or the other errors Can anyone see why the form value "ReplyID" is not be...
stackexchange/codereview
I have assigned a logo image of my software to HBox as follows - <mx:HBox id="logoBox" width="98%" textAlign="left" backgroundSize="100%" horizontalAlign="left" height="18%" backgroundImage="images/img_header_new_3-bg.jpg" verticalAlign="bottom" backgroundColor="#1573A4"> Now I need to change the backgroundImage to s...
stackexchange/codereview
foreach (var filter in filters) { var filterType = typeof(Filters); var method = filterType.GetMethod(filter, BindingFlags.IgnoreCase | BindingFlags.Public | BindingFlags.Static); if (method != null) { var parameters = method.GetParameters(); Type paramType = parameters[0].ParameterType;...
stackexchange/codereview
I have mapped *.xyz extension to my own custom handler in asp.net and can run it on Windows asp.net. How can I do the same thing on mono (Linux/Apache - ubuntu)? I have this in my web.config: <httpHandlers><add path="*.xyz" verb="*" type="MyCustomHandler,...">... I also added similar things to mod_mono.conf and seve...
stackexchange/codereview
I'm using javamail for imap search by subject on Gmail. I use the subjectTerm class to create a searchTerm object and pass to the search function. Search works fine for subject strings which are pure alphanumeric. As soon as I put in a single quote or a dash in the search string the search fails. IMAPSSLStore imapSslS...
stackexchange/codereview
Background: On a recent website, I'm using a jQuery driven dropdown menu in addition to a Flash scrolling animation. Note: I am only using the Flash animation in IE only as I created an equivalent, jQuery based animation for all other browsers (because, surprise, IE didn't handle the jQuery version). So please look at...
stackexchange/codereview
We all know the basic rules for static array: int size = 20; char myArray[size]; is not legal. And. const int size = 20; char myArray[size]; is OK. But, what about this. int f(const int size) { char myArr[size]; } void main() { f(2); f(1024); } MSVC says it is an error, gcc seems to compile and execute it...
stackexchange/codereview
I need to set up ASP.NET and connect it to some demo (northwind) data. Considering all the versions of SQL, what is the most current /efficient way to get a database into a project and do a select against it? This question arose once we discovered we could download a MDB and a MDF format of northwind...
stackexchange/codereview
Okay I have a simple Javascript problem, and I hope some of you are eager to help me. I realize it's not very difficult but I've been working whole day and just can't get my head around it. Here it goes: I have a sentence in a Textfield form and I need to reprint the content of a sentence but WITHOUT spaces. For exampl...
stackexchange/codereview
Usually I'd put my criterias/hql queries in a repository/dal class related to the entity, but lately I'be been thinking of adding another abstraction that represents what a query is, this would give me the possibility of adding common behavior to all queries (e.g. pagination) in a base class, etc. so these are my compo...
stackexchange/codereview
Some background information: I am creating a Silverlight WCF RIA Services Project. I started off by creating a Silverlight Business Application and adding a Domain Service Class and an ADO.Net Entity Data Model to hook up to my SQL database. Inside of the SQL database I have about 15 tables. I am pretty much just doing...
stackexchange/codereview
I have to GestureDetectors in my program. One works beautifully, the other doesn't. As far as I can tell they're both implemented the same way. Here's the code for implementing the one that isn't working: myExcuseGestureDetector = new GestureDetector(new excuseGestureDetector()); excuseView.setOnTouchListener(new View....
stackexchange/codereview
Is there a nice way to retriev the time format e.g. 24h or 12h from within an android app?
stackexchange/codereview
I've added the Overlay effect of jQuery Tools to my site, using the "Minimum Setup". Unfortunately when the user wants to close it, he must target this tiny circle on the upper right. Usability suffers this way. It would be far better if the user could simply click anywhere to close it. Can I modify or add some code so...
stackexchange/codereview
Has anybody used/evaluated both of these libraries and can tell me the difference? Otherwise has anyone here used SmartXLS for reading/creating/updating excel files and can tell me his experience? The later is considerably cheaper than the former.
stackexchange/codereview
Not sure if it is a duplicate. Given a data structure having first N integers and next N chars. A = i1 i2 i3 ... iN c1 c2 c3 ... cN. I need an in-place algorithm to rearrange the elements as A = i1 c1 i2 c2 ... iN cN.
stackexchange/codereview
I have a datetime field called time in my MotionRecord model. I try to set it using this command: MotionRecord.create({:time=> "2010-10-15 15:10:24", :chart_id=>1}) Oddly enough this results in the following input: <MotionRecord id: 1, time: nil, chart_id: 1> I'm not sure what I am doing wrong. Edit: This is my mode...
stackexchange/codereview
i'm using YQL to send data back to an iPhone app i'm developing. I've got a JSON parser on the iphone and a PHP page on my webhost. This is the PHP: <?php header('Content-type: application/json'); $arr = array(); $result = $_GET["q"]; $yql_base_url = "http://query.yahooapis.com/v1/public/yql"; $yql_query = "s...
stackexchange/codereview
I have create a thread using pthread. My worker routine is a infinite loop. What is the design pattern to terminate and clean up all the resources of the pthread when my main programme exit? pthread_create(&thread, NULL, worker, NULL); void* worker(void* arg){ while(true){ //do something } } Thanks
stackexchange/codereview
I am using winform with c#. I have formA and formB. formB is a smaller window that have a textbox and a button to save whatever is written in the textbox. So Im in formB calling a save function from a class that was define in formA. How would I do it ? Thanks, J
stackexchange/codereview
I am looking for a proven approach for management of configuration file (app.config and web.config) and its contents for .NET applications. The objectives are: Keep the file's content encrypted to eliminate unwanted change by unauthorised way. Have a user interface to change tags, values for particular sections Manage...
stackexchange/codereview
I recently converted a VB6 program to VB.NET. This program is used to communicate with the Superlogics PCM Series DAQ card that the company no more produces and has no support for VB.NET. My program was running fine in VB6 but has problems in VB.net due to the the functions in the external .dll file (I am not sure thou...
stackexchange/codereview
I have a View which has a list of items bound to my ViewModel (MVVM pattern). Let's say it looks like that: <ScrollViewer Width="Auto" Height="Auto"> <ItemsControl ItemsSource="{Binding Path=MessageLog}" Grid.IsSharedSizeScope="True" ScrollViewer.CanContent...
stackexchange/codereview
I know blocking a website is a popular question but none of the answers I've seen address my particular situation: I want to block a website (to be selected by the user, which must also have Admin rights, on Windows XP), without forcing her to restart her browser. The well known technique of modifying the hosts file r...
stackexchange/codereview
I'm trying to make alterations to an existing project, and I've found a project in the solution which is full of generated classes. Problem is, nobody here can tell me what generated them, so I'm pretty much left with pasting one of the classes in here and hoping someone will be able to tell me where they came from. T...
stackexchange/codereview
With git is possible to jump back to early versions of a project. Now, to work with these early versions, they depend often on old versions of libraries. Is it possible to circumvent problems like these: /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/gem_dependency.rb:220:in `specification': can't activate ha...
stackexchange/codereview
I am encrypting data (health care industry) using the aes encryption classes in the .net framework. What are some of the recommended locations for safely storing the key? I have it in the web.config for development, but that does not feel production worthy, to say the least.
stackexchange/codereview
I'm trying to change the following query into one that deletes the returned rows. SELECT bad_rows.* FROM votes as bad_rows INNER JOIN( SELECT MIN(id) as min_id, votes.object_id, votes.user_id FROM votes WHERE is_archived=FALSE AND votes.direction < 20 GROUP BY votes.object_id, votes.user_id, votes.content_...
stackexchange/codereview
I'm trying to use smart-operator.el in emacs. I've put the following into my init.el file: (add-to-list 'load-path "~/.emacs.d/dotemacs_git/smart-operator/") (require 'smart-operator) (smart-operator-mode 1) That doesn't seem to turn on smart-operator-mode automatically ... I still have to do M-x smart-operator-mode ...
stackexchange/codereview
I know that by defualt IIS won't server App_Data or bin folders content to the public. How to set one more folder to don't server to public?
stackexchange/codereview