instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
on my server I host my personal git remote-side projects (with gitosis), and I have built a web interface to browse the repositories (something like Github). On the remote-side, you are not allowed to do a lot of stuff, because a working tree is missing, and this is correct: btw, for a repository explorer, with few com...
stackexchange/codereview
It looks to me like composite components' attributes don't allow generic types. Here's a simple test case: <cc:attribute name="stringList" type="java.util.List&lt;java.lang.String&gt;" /> The error I get is, java.lang.ClassNotFoundException: java.util.List<java.lang.String> (If I replace the &lt; and &gt; with < and ...
stackexchange/codereview
This is something I have wondered for a long time. Take the following example: struct matrix { float data[16]; }; I know what the default constructor and destructor do in this specific example (nothing), but what about the copy constructor and the copy assignment operator? struct matrix { float data[16]; ...
stackexchange/codereview
I have this code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.apod_eso2); File f = new File(Environment.getExternalStorageDirectory() + "/Database.sqlite"); CursorFactory factory = null; db =SQLiteDatabase.op...
stackexchange/codereview
I have a count down timer that when it goes off (to zero) it checks to see if the app has focus. If not it launches a notification in the notification bar. When you click on the notification is re-opens the app. Now all of this works fine but if the screen happens to go off, the timer keeps going and the notification i...
stackexchange/codereview
I'm trying to import a vcard into the android contacts. Within the contact manager there is an option to import a vcf file stored on the sd-card into the contacts. How can this be triggered via code? Thanks, Prateek
stackexchange/codereview
I used the script where the image array has static images. I want to convert it dynamically by finding my images names from index.aspx.cs files which are stored in hidden fields. my hiddenfileds has value: uploads/../uploads/M_Banner_3-JO633939707781250000.jpg;uploads/../uploads/M_Banner_4-JO634014944056581250.jpg;upl...
stackexchange/codereview
I am developing an application that runs on a network. It needs to contact to database (access database) very very often, which is stored in server. Around 30 Client computers contact the database almost every 2-3 seconds. I need to know could there be potential manifest problem in with the application? Could there wil...
stackexchange/codereview
Dear all, i've got following script here (don't blame me i don't know javascript at all) $$('#status').each(function(item) { var state = item.innerHTML if (state == "ON_GOING"){ item.replace('<img src="layout/images/ongo.png"/>'); } if (state == "PAUSED"){ item.replace('<img src="layout/images/pause.png"/>'...
stackexchange/codereview
I am using Microsoft Word 2007. I open up some document with VBA and I need to do some work on them. However when a file is just opened, VBA do this repagination and doesn't wait for it to finish before continuing. So what would happen is that my code would then error because it think the opened document is only a f...
stackexchange/codereview
I'm writing end-to-end tests for my tool, which is written in Python. The tool reads a file as input. I want to test its exit code, and its output. This is a fairly common idiom, and I've seen it done in several ways. In the PHP project, each test is a file, and has lines like: INPUT:, EXPECTED:, EXPECTED_REGEX:, etc. ...
stackexchange/codereview
I have the below Delphi code to provide a friendly wrapper for the CreateProcess API call. function StartProcess(ExeName: string; CmdLineArgs: string = ''; ShowWindow: boolean = True; WaitForFinish: boolean = False): integer; const c_Wait = 100; var StartInfo: TStartupInfo; ProcInfo: TProcessInformation; begin ...
stackexchange/codereview
I have the ability to drag and drop external events to the calendar with the default behavior of start time being where the event was dropped. I would like to set the default behavior to also set the end time for the event to be 1 hour after the start time. This seems trivial but I can't seem to get it working. Below i...
stackexchange/codereview
I've got a WordPress site installed here: http://www.r-bloggers.com And I wish to install another WordPress site under the /lang directory: http://www.r-bloggers.com/lang/ I created the subfolder and uploaded the files, but when I navigate to the folder, the site keeps telling me it's a 404 page of the root directory ...
stackexchange/codereview
Hello i just deployed my application to the remote server. I am receiving this error : Server Error in '/please_god' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this reque...
stackexchange/codereview
Anybody know how to set the value of an XmlUpdate MSBuild task so that the output is wrapped in a CDATA section? I've tried: Value="&#60;![CDATA[@(Readme)]]&#62;" and Value="&lt;![CDATA[@(Readme)]]&gt;" But both output HTML encoded < and > tags. Many thanks Matt
stackexchange/codereview
How to Get MAC address programatically in c# for a windows mobile 6.0 device? The System.Net.NetworkInformation is not supported in ,net compatc framework 3.5.
stackexchange/codereview
I am trying to caculate the current style of an element: function cssIsLoaded(c) { if (window.getComputedStyle) { return window.getComputedStyle(c, null).display === "none"; } else if (c.currentStyle) { } return true; } (function() { var cssload = document.createElement("div"); cs...
stackexchange/codereview
I'm building a login window using javascript (JQuery) which complies to very strict design guidelines; it exhaustively uses CSS-floats in order to position the screen elements. This javascript is hosted from a central location and implemented by ~1000 websites. It works very well, but there are some websites that have...
stackexchange/codereview
I am developing a manged HTTP Module that will intercept requests to and response from IIS 7. The intercepted messages will be modified based on a set of business rules by a custom filter. The business rules will be stored in a configuration file. The messages must be intercepted web site wide. This includes any app...
stackexchange/codereview
let's say i have a very long string. the string has regular expressions at random locations. can i use regex to find the regex's?
stackexchange/codereview
I have a combobox that i need to edit its error template to show a red border when there is a validation error. I am using the following style <Style TargetType="{x:Type ComboBox}" > <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> <DockPanel> ...
stackexchange/codereview
i created a user-control that would be a button . On my form i have placed multiple such buttons . My question is : How do i determine in my user-control class who called me (i.e. what button ) ?
stackexchange/codereview
NOTE: i did a complete rework of my question. you can see the original question via the change-history. i'm in the need of a "mighty" queue, which provides following functionalities: i have a certain scope for a group of objects. that means that Group A, Group B, ... will have their own queue i'm filling a queue in ...
stackexchange/codereview
I'm trying to run a native query through JPA that uses a ':' character. The particular instance is using a MySQL user variable in the query: SELECT foo, bar, baz, @rownum:= if (@id = foo, @rownum+1, 1) as rownum, @id := foo as rep_id FROM foo_table ORDER BY foo, bar...
stackexchange/codereview
does anyone know the difference between these two assemblies? Is the web assembly just better data access tools for the web?
stackexchange/codereview
I have a page where on button-click a popup shows (it is a div with an iframe containing content to be printed). The problem i got now is to set the size of the popup/div so that it will have the same width/heigth relation as the printed result (it will be printed to A4 always). Does anyone know how i calculate this si...
stackexchange/codereview
I'd like to know if SET FMTONLY ON can be used within Oracle queries. When I'm using like this: SET FMTONLY ON select * from department I'm getting a message as such: Line 1: SQLPLUS Command Skipped: SET FMTONLY ON select * from department I'm looking for a statement in Oracle that that returns only metadata to the...
stackexchange/codereview
How can I use the variable drawMax in a different class? public int DrawNumberSetting (int drawMax) { System.out.print ("Please enter the maximum number of draws you want to play: "); drawMax = scan.nextInt (); return drawMax; }
stackexchange/codereview
I have an action with a FilterModel passed to it. I use a search to pass the filter to the action or I call the action without passing a filter to it. When I call it normally, the filter is instantiated (which I did not expect to happen). How do I check that no filter was actually passed? My model: public class Product...
stackexchange/codereview
All of the examples I can find of urlpatterns for django sites have a separate entry for incoming urls that have no leading slash, or the root folder. Then they handle subfolders on each individual line. I don't understand why a simple /? regular expression doesn't permit these to be on one simple line. Consider the ...
stackexchange/codereview
How can I know if google spiders or another spiders visit my page ? <?php if ("this is a spider") { header('Location: index.php'); exit; } ?>
stackexchange/codereview
i want to generate a unique number from a table. It has to be thread safe of course, so when i check for the last number and get '3', and then store '4' in the database, i don't want anybody else just in between those two actions (get the number and store it one higher in the database) also to get '3' back, and then al...
stackexchange/codereview
I'm getting some behavior with a container object's children I just don't understand. I'm making four display objects children of an mx:Canvas object. When I call getChildren(), I see them all in order, right where I think they should be: 1 2 3 4 The fun begins when I call swapChildrenAt(0,1); that's supposed to swa...
stackexchange/codereview
Problem: We have character entities come to our systems in various formats (Ex: &amp; and &amp;amp;) and we need to convert them to a standard XML character entities if needed (&amp &lt; &gt; &apos; &quot;) and then maintain them as entities through a couple of separate tranformations. Given XML of: <rootelm> <testda...
stackexchange/codereview
Can someone please confirm for me that if I add a user to several groups, and then call RemoveUser, that the user will in fact be removed from the security_UsersToUsersGroups table? I ask because, in my case, using the latest code, I am seeing that my user Is not being removed from this table. The only delete query bei...
stackexchange/codereview
I have a dll exposed via COM to VBA macros in my Excel workbook. In the dll, the primary function takes as input a bunch of data from various cells in the worksheet, and produces a table of outputs to be displayed elsewhere on the same excel worksheet. I am trying to figure out how to have this function called any ti...
stackexchange/codereview
So I have setup a MySQL database with table with one record. My Solution is made up of three projects (1 domain model library, test library and my Web project). In my MVC project I have implemented NHibernate with all necessary Dll's, and In Web project root: nhibernate-configuration.xsd nhibernate-mapping.xsd nhibern...
stackexchange/codereview
I want my app to be invalidated 1 year after the first installation. I am using a webservice for storing device id for apns and thought about storing the first install date with it. but i thought maybe there is a way/method for setting a validation period at sdk or at app store while submitting the app. Is there any si...
stackexchange/codereview
I already know how to preload an image with Image.onload. But what about preloading a style.background image? I need this for a game that's going to be preloading sprite sheets for different levels of a DHTML game. I've had no success figuring out how to get style.background to use an Image object. So how do I preload ...
stackexchange/codereview
After googling for a while, I'm aware that there quite a few ways to copy an array to another in Java, namely using System.arraycopy. However a few of my friends tried to use this: boolean a[][] = new boolean[90][90]; boolean b[][] = new boolean[90][90]; /* after some computations */ a = b This produces a rather non...
stackexchange/codereview
Ruby on Rails: I would like to call a controller on the localhost, but the server said !!! Missing the mysql gem. Add it to your Gemfile: gem 'mysql', '2.8.1' The problem ? When I hit 'gem list' command then I got a list witch is containing the mysql 2.8.1 . So the gem is INSTALLED ! WHY can't it see by the webrick ? T...
stackexchange/codereview
I have a button labeled "Upload image", when you click the button it opens a pop-up window with a small image uploader in there. When you upload an image, I want it to say "Insert into post" in the pop-up window and when you click that it then inserts the filename of the image into the post. I've already got a way to g...
stackexchange/codereview
I tried this: s = soup.findAll("table", {"class": "view"}) But it is giving me the table. But I need the table inside table. <table class="view" > <tr> <td width="46%" valign="top"> <table> <tr> <td> <div style="adasdasd"> <div class="abc">dasdsadasdasdas</div...
stackexchange/codereview
I'm new to Python and have what is probably a very basic question about the 'best' way to store data in my code. Any advice much appreciated! I have a long .csv file in the following format: Scenario,Year,Month,Value 1,1961,1,0.5 1,1961,2,0.7 1,1961,3,0.2 etc. My scenario values run from 1 to 100, year goes from 1961 ...
stackexchange/codereview
Compare... NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:[performer methodSignatureForSelector:@selector(playFile:)]]; [invocation setSelector:@selector(playFile:)]; [invocation setTarget:performer]; NSString* string = [NSString stringWithString:@"reverse.wav"]; [invocation setArgument:&string ...
stackexchange/codereview
Is there any way to set the priority of PHP mail()? I looked at the online manual but I can't find any reference to it. By priority, I mean High, Normal, Low or 1, 2, 3 in the headers. So the recipient knows the urgency of the mail. Thank you!
stackexchange/codereview
I have a C# Windows forms application that runs a Trivia game on an IRC channel, and keeps the questions it asks, and the Leaderboard (scores) in Classes that I serialize to XML to save between sessions. The issue I have been having is best described with the flow, so here it is: User X Gets entry in Leaderboard class ...
stackexchange/codereview
I've tried a number of different ways to do this, they all result in the same error. Here is one set of commands: $s = New-PSsession -ComputerName ServerA $job = Invoke-Command -Session $s -Scriptblock { Start-Process -FilePath "C:\Scripts\ArchiveEventLogs\ver4.5\7za.exe" -ArgumentList "a", "C:\Scripts\Eve...
stackexchange/codereview
I am using the jQuery tablesorter plugin. I am wanting to store how a user has sorted the table on the page and automatically sort that way the next time the page loads. To do this, I first need to be able to find the sortList object that stores how the table is sorted. For the life of me I cannot figure out how to ...
stackexchange/codereview
Somewhere in the bowels of my code I have something like: logger = logging.getLogger('debug0.x') The way I understand it, this should only respond when I have previously done something like: logging.basicConfig(filename='10Nov2010a.txt',level=logging.DEBUG, name='debug0') note that name has been defined as debug0. Ho...
stackexchange/codereview
I want to build a website that is a simple password generator and that has a nice design. passwordbird is a simple password generator and http://www.atebits.com/ has a design that I really like. What languages should I use for this project? My main goal is to gain experience in building websites; I don't expect for it ...
stackexchange/codereview
Dear all, the question like this one has been already asked, but among the answers there was no explanation of the problem which I see. The problem: the C# Programming Guide says: A static constructor is used to initialize any static data, or to perform a particular action that needs performed once only. It is called ...
stackexchange/codereview
I'm sending out AJAX request for a XML file to plot a chart. The problem is everytime the response comes back, the chart refresh itself, even if the XML is exactly the same. I would like to use Javascript to check the content of the reponse XML with the cached XML, and only push to the chart if there are changes, dont ...
stackexchange/codereview
I just upgraded one of our web apps to ASP.NET 4.0. It is using CssFriendly for the Menu and a few pages that have Trees on them. When I try to run on my local machine (Win7 x64, IIS7) I am getting: error occurred during the processing of a configuration file required to service this request. Please review the speci...
stackexchange/codereview
Please help me to convert this query into cakePHP find statement -- mysql> select auctions.id, auctions.price, products.target_price, (auctions.price / products.target_price) as target_ratio FROM auctions LEFT JOIN products ON auctions.product_id = products.id ORDER BY target_ratio DESC; In particular, I've having di...
stackexchange/codereview
Why does the following code not produce three lines, all with similar gradients? <html> <body style="background: black;"> <canvas id="Test" width="516" height="404"> </canvas> <script> var ctx = document.getElementById('Test').getContext('2d'); ctx.lineWidth = 8; function addC...
stackexchange/codereview
The language I am working in is Javascript on HTML5-compatible browsers. My understanding is that WebSockets require a socket server to transport push notifications and messages back and forth between clients. Is there an actual peer-to-peer capability with HTML5 that does not require a socket server? Has anyone seen ...
stackexchange/codereview
This doesn't give the full URL, which breaks as it's in a mailer <%= link_to @conversation.title, conversations_path %> This gives me the full URL, which is good: <%= conversations_url(:only_path => false) %> How do I get the best of both worlds? I want to link_to but have the full path? Thanks
stackexchange/codereview
I am using this code for table delegates my application crashes when I scroll table till last row i.e langTable if sometime application not crashes then I am not able to scroll the table - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { NSLog(@"Test 0"); if (tableView==langTab...
stackexchange/codereview
You know those iPhone applications that fatten your face, make you look older, etc... How do they work? If I wanted to know how to code something similar in Objective C, where would you point me to start on the implementation of that portion of code? If you are well versed in PHP, how would you do it in GD or similar? ...
stackexchange/codereview
I have a problem when try to load the big animation with about 54 images (320x480 each image) into CCSpriteFrameCache, I can't use plist for this. How can I make the animation work? At this time, my animation can't work on iPhone 2G, 3G, and iPod. Thank for your help, John
stackexchange/codereview
...../PluginLoader.h:34: multiple definition of 'Dummy_Func_For_Generating_FUNCTION_NAME_Macro()' The above error is output for the below code. I have include guards in my file. And everything else compiles fine. EDIT: What I was trying to achieve was to check if __PRETTY_FUNCTION__ was defined, and if it was, use it ...
stackexchange/codereview
My razor view is failing to compile with the following error: Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name '...
stackexchange/codereview
I'm trying to load raphael.js (downloaded and run locally) into an HTML file but the script refuses to exit, erroring out with this in my JS console: Uncaught TypeError: Cannot call method 'appendChild' of null bV on raphael.js:7 a on raphael.js:7 (anonymous function) on raphael.ht...
stackexchange/codereview
I have one test that needs to work more then 1 minute (VS2008, MSTest, tests are launched from the VisualStudio): const int TestTimeout = 1; [TestMethod] [Timeout(10*60*1000)] // 10 minutes public void Login_ExpirationFail_Test() { IAuthenticationParameters parameters = new AuthenticationPa...
stackexchange/codereview
Is there a tool or plugin to track PMD, CheckStyle & Findbugs noncompliance report for each developer Thanks KR
stackexchange/codereview
What would be the typical content of an analysis made before development actually starts and what are the different steps taken during a software project? I'm asking because I'd like to do an exhaustive end-of-studies work so this becomes second nature. Any links related to the topic are welcome.
stackexchange/codereview
I want to write a code to draw a filled oval where ever the mouse is clicked inside a panel. I used to develop some codes but unfortunately when I tried to do the next click the whole panel blanked and new point appeared. I want to keep the previous points and add some new ones by the next user’s click on the panel. Ho...
stackexchange/codereview
I am new to video streaming and am working on a project to broadcast video to android phone over internet, and users to view the video at the same time may reach 100. After looking around for a while I think using rtsp streaming for the phone client may be convenient(Am I right?) and so I have to choose a server, My c...
stackexchange/codereview
Now I want to update table. Assumes that, I have PurchaseOrder and PurchaseOrderDetails. I have one field called Status in PurchaseOrder table and Matched_Status Field in PurchaseOrderDetails. I need to update Status field to "1" if all PurchasedItems Quantity and Amount are same when we issue invoice. If PurchaseItems...
stackexchange/codereview
How can I detect when user has uninstall my addon on FF4 (for cleanup process)? While it's working well on FF3, it does not work on FF4 beta... I've tried this code sample: https://developer.mozilla.org/en/Addons/Add-on_Manager/Code_Samples Does anyone know how to solve this? Do you know of addon that support FF4 and h...
stackexchange/codereview
I am trying to write a method that is the same as mysqli_real_escape_string in PHP. It takes a string and escapes any 'dangerous' characters. I have looked for a method that will do this for me but I cannot find one. So I am trying to write one on my own. This is what I have so far (I tested the pattern at Rubular.com ...
stackexchange/codereview
I am trying to write a BCD Adder in Verilog, but I am having trouble with one of the modules. Specifically, the adder that takes two BCD digits and adds them. So, the idea is if the sum of the two digits is less than or equal to nine, then it is correct. However, if it is greater, then an offset of 6 has to be added. H...
stackexchange/codereview
Hi I have multiple UIButtons (foo and bar) and when pressed each invokes a different instance method (doSomethingFoo and doSomethingBar). Here is the code I have working: CGRect fooImageRect = CGRectMake(38.0f, 192.0f, 130.0f, 25.0f); UIButton *buttonFoo = [[UIButton alloc] init]; buttonFoo.frame = fooImageRect...
stackexchange/codereview
I was wondering what C# does when you for example cast an object to an int. object o = 10; int i = (int) o; Much appreciated :)!
stackexchange/codereview
I want to receive a drop from the URL in IE in a winforms control. I get no drag enter event. Does anyone know ho to do this ?
stackexchange/codereview
Which performance testing tool supports web pages with Kerberos authentication? Tools which just fallback to NTLM is not enough.
stackexchange/codereview
If I am posting a distributed NSNotification, can I safely release the object passed in as the "object" property? What about this scary mention in the doc that there is "no guarantee" of delivery for distributed notifications?
stackexchange/codereview
My 'create' function in my 'Message' controller is something like this: def create @message = Message.new(params[:message]) @message2 = Message.new(params[:message]) @message.sender_deleted = false @message2.sender_deleted = true if @message2.save ... else logger.debug("SAV...
stackexchange/codereview
I have a dropdown list which has items bound to it using sql datasource. In the database i have the numeric values corresponding to each item. Now there are many such dropdown list's and on selection of each item i want to form a 14 digit numeric code,which i need to use further for some more functionality. How can i ...
stackexchange/codereview
I have a WPF C# application that contains a button. The code of the button click is written in separate text file which will be placed in the applications runtime directory. I want to execute that code placed in the text file on the click of the button. Any idea how to do this?
stackexchange/codereview
I recently developed a simple application for displaying a list of files to some users based on access levels and allowing them to download them etc. This application was developed to be hosted inside a large corporation with heavy security policies and is fairly mission critical.. The application is very basic, it ch...
stackexchange/codereview
I'm working in local branch and want to try my changes on staging server, but I don't want to commit these changes. Can I commit local changes. I know about deploy:upload recipe. I need a way to deploy several files or whole working derictory. Thanks.
stackexchange/codereview
How can I get the source of a webpage that is currently running in an instance of firefox using delphi ? I would like to do this without making firefox the active window first if that is possible but just grabbing the source is my primary question. TIA, Dave
stackexchange/codereview
I've got a problem using System.Windows.Interactivity.Interaction attached behavior class (from Expression Blend SDK 4). I'd like to define a pair of triggers for System.Windows.Window class in XAML Style element. But as the TriggersProperty field of System.Windows.Interactivity.Interaction class is private and there i...
stackexchange/codereview
1) As far as I can tell, only transport protocol supported by WS-* specs is http? If so, is there a particular reason why WS-* doesn't also support other transport protocols ( tcp etc )? 2) Assuming we use a non-ws.* compatible binding/protocol ( ie non compatible security, transfer, encoding etc protocols ), how is t...
stackexchange/codereview
I'm trying to create a wordcloud with the Google's visualization sample: <link rel="stylesheet" type="text/css" href="http://visapi-gadgets.googlecode.com/svn/trunk/wordcloud/wc.css"/> <script type="text/javascript" src="http://visapi-gadgets.googlecode.com/svn/trunk/wordcloud/wc.js"></script> <script type="text/javasc...
stackexchange/codereview
Is there any good component for Delphi to create a frame like the messenger frame around a photo?
stackexchange/codereview
In the Java Servlet API, what is done to ensure that someone's session id is not stolen? For example, if I had an active session and someone somehow get a hold of my session id, could they use it?
stackexchange/codereview
I have a CoreData database full of objects that relate to each other. EntityFoo - attribute: uniqueId, relationship: one-to-many to other EntityFoo objects, relationship: one-to-many to other EntityUnresolvedRelationship objects EntityUnresolvedRelationship - attribute: uniqueId, inverseRelationship: back to EntityFoo ...
stackexchange/codereview
I want for my program to be able to launch another copy of itself, this new Thread(){ public void run() { main.main(new String[]{}); } }.start(); is what I have thus far. And it works. (The main class, in main.java launches the rest of the program and serves a back-end throughout general operati...
stackexchange/codereview
#include <ctime> #include <iostream> #include <cstring> int main() { struct tm tm ; //memset(&tm, 0, sizeof(struct tm)); strptime("1 Jan 2000 13:00:00", "%d %b %Y %H:%M:%S", &tm); time_t t =mktime(&tm); std::cout << ctime(&t); return 0; } g++ -Wuninitialized -O2 test.cpp doesn't warn about tm not having been initiali...
stackexchange/codereview
I'm relatively new to javascript. I'm using appcelerator's titanium SDK to create a mobile app though, and it uses only javascript. Anyways, I have a hierarchy menu system that I'm creating. I have data arrays filled with submenu items. Each data array is filled with a different submenu. When I click on a menu item, i...
stackexchange/codereview
I have a table where i have ID,matchid,point1,point2. I need to get the ID which has the maximum points but the problem i am facing is i need find max record depending on sum of both (point1+point), I have no idea how I can get the max with the combination of 2 columns i have tried query such as, SELECT MAX(column1+col...
stackexchange/codereview
Google Translate Tools let you embed a translation dropdown in your website that lets users translate pages. However, this preference is only for that page...as soon as they click to a different page on the site, they have to re-select the language. Any ideas on how to make this preference persistent? Is there an opti...
stackexchange/codereview
I am hosting a WCF service using HTTPS, and I am running into a problem with the address being set to the netbios name of the machine I am running it on. This is easily remedied if I just want to use HTTP by adding a host header, but unfortunately, you cannot add host headers to HTTPS bindings. (you can on the command ...
stackexchange/codereview
I'm currently working on an ASP.NET MVC 2 project which needs several instances of the same SQL Server 2008 R2 database (One in production using SQL Replication, the others being it's development counterpart, allowing schema updates and testing of our applications locally before production release, one instance with SQ...
stackexchange/codereview
In the following Javascript I have to keep finding the mainFrame from the Popup pages, is there a better way to do this? function sendRefreshMessage(data) { var myObj = null; myObj = document.getElementById('slPlugin'); if (null != myObj) { try { //perform operation on myObj } ca...
stackexchange/codereview
I'm trying to set childForm as the child of the main Excel window using the SetParent API through PInvoke: Form childForm = new MyForm(); IntPtr excelHandle = (IntPtr) excelApplication.Hwnd; SetParent(childForm.Handle, excelHandle); childForm.StartPosition = FormStartPosition.Manual; childForm.Left = 0; childForm.Top =...
stackexchange/codereview