instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have two programmers who make changes to the same project. Their commits interchange, but they mostly work on different parts of the project (although very often they modify the same files): Commit 1 - Programmer A Commit 2 - Programmer A Commit 3 - Programmer B Commit 4 - Programmer A Commit 5 - Programmer B C...
stackexchange/codereview
How can I delete a tuple with key from a list? Ex: TupleList = [ {apple, {0,0,0}}, {orange, {0,0,0}}, {bannana, {0,0,0}}] Then I need to delete the tuple whos key matches orange. So I should get back [ {apple, {0,0,0}}, {bannana, {0,0,0}}] Im looking for a BIF instead of a function as I am using right now. Thanks ...
stackexchange/codereview
In one of my Rails applications I'm sending emails through the Gmail SMTP server and everything just works, mails are not going to spam and so on ... But there's one thing that concerns me, the 500messages/day limit the SMTP has, currently I'm over 350/day. I didn't find any official Google page where they talk about t...
stackexchange/codereview
I use a Servlet to stream an image from the database and I use the tag for display as follows: <h:graphicImage url=”/servletUrl?para1=name1&para2=name2”/> The problem starts if I include the 2nd parameter (&para2=name2) and I get the following error message: The reference to entity "para2" must end with the ';' delim...
stackexchange/codereview
I have one bit of javascript that fires off an ajax request, the result of which gets loaded into a popup dialog. This is the same javascript in all cases, but in one case, the route fails. From the new_army_list page: Started POST "/army_lists/preview" for 127.0.0.1 at 2010-10-13 21:42:15 -0400 Processing by ArmyLists...
stackexchange/codereview
Im facing a problem with jQuery in the Internet Explorer 7 and 8, while trying to add a option to a existing select: var s = document.getElementById("category"); s.options.add(select_option); But IE just says: Object doesn't support this property or method and points to s.options.add(select_option);
stackexchange/codereview
I'm seeing this in particular when using the jQuery-1.4.3 externs file. The javadocs for that reads /** * @param {(string|number|function(number,number))=} arg1 * @return {(number|jQueryObject)} * @nosideeffects */ jQueryObject.prototype.width = function(arg1) {}; I have a call that looks like this: var w = ...
stackexchange/codereview
I want to use ajax to retrieve some JSON from another page, but I want to pass along the same GET params that were used to request the original page. How do I do that? Does JS store them in a dict somewhere? Or is there a jQuery solution? $.ajax({ url: 'mysecretwebpage.com/supersecret', data: ??? });
stackexchange/codereview
I have the following lemon grammar (simplified from the real grammar): %right ASSIGN . %nonassoc FN_CALL . program ::= expression . expression ::= expression ASSIGN expression . expression ::= function_call . [FN_CALL] expression ::= IDENTIFIER . function_call ::= expression LPAREN RPAREN . [FN_CALL] I'm not able t...
stackexchange/codereview
Im having a a few javascript gremlins, for some reason my jquery ajax post request is not going out at all. All of my code 'looks' ok, but javascript is not my strong point, can anybody see where im going wrong? $(".deleteWeek").click(function(e){ var answer = confirm("This will delete the selected week...
stackexchange/codereview
I employ email validation to grant people full use of the site. The trouble is, sometimes these emails get spam-boxed, or never arrive, so I get many people complaining that they cannot confirm their account. Was wondering if there are other (creative) ways to offer secondary validation option to users who didnt get th...
stackexchange/codereview
Was wondering if there is an easier way to see the queries are being being run by my models? I know the alternate options are xDebug and Firebug but was wondering an easier method. Anyone? Thanks
stackexchange/codereview
Hey, Easy question for ASP.NET profenssionals: I have a few dynamic generated textboxes in a row. In this row is also a image with an eventhandler "onclick". I will create a relationship between the textbox and the image. I click on the image, choose a value and then the textbox will be filled. Currently my controls ha...
stackexchange/codereview
I'm building a phone application in j2me. In it, I need to get the contacts from the phonebook. There is an API for that and the line I tried to use was contactList = (ContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_ONLY, name); Apparently, it doesn't work in my phone (Sony Ericss...
stackexchange/codereview
i have a code as public class BooleanTest { public BooleanTest() { super(); } public static void main(String args[]){ BooleanTest bt = new BooleanTest(); bt.doProcess(); } private boolean method() { return false; } private void doProcess() { Boolean obj...
stackexchange/codereview
HI ! I guess everything is in the question ... I was just wondering if there is a nice way in Python to shorten this pattern : something = get_something() if something: do_a_thing_with(something) Meaning that I would like to enter in the if context only if the variable something is not None (or False), and then i...
stackexchange/codereview
I'm trying to build a navigation menu. I am receiving an array with a structure like this: [ [ Title = A Sub items = [ Title = B Sub items = [ Title = C ] ] ], [ Title = A Sub items = [ Title = B Sub items = [ Title = D ] ] ], ] I nee...
stackexchange/codereview
I have been working with rails3 and have been trying to create a simple survey application but some issues have come up. I can create questions just fine but when it comes to creating a survey that people can take I come accross some issues. For one the answers aren't being assigned a :user_id or :survey_id. The follow...
stackexchange/codereview
I finished writing my test for FirefoxDriver, and compiled to a runnable jar packaging all the required libraries into the single test.jar file. while running java Tester.jar I get the following error: Exception in thread "main" Could not find the main class: Tester.jar but Tester.java has a main class. How to fix this...
stackexchange/codereview
Followup on answer to an earlier question. Is there a way to further reduce this, avoiding the external String.Split call? The goal is an associative container of {token, count}. string src = "for each character in the string, take the rest of the " + "string starting from that character " + "as a substring;...
stackexchange/codereview
Hey guys, I really am stuck here. I keep getting an error on this code and I have absolutely no idea why. Basically what I am trying to do is check a form for a field called quantity_# with # being a number. If it finds it I want to go through all those fields and add them onto a 2 dimension array so I can store the ac...
stackexchange/codereview
Currently I am attempting to search a database to grab certain events. My query is as such SELECT * FROM events WHERE summary ILIKE E'%test%' AND start_time > '2010-10-01' Simply put I need the query to look through a database of calendar events and return anything with a summary with 'test' in it and after the beginn...
stackexchange/codereview
I need to write an expection that if a string is null, then fire this exception. How to write this? Eg. str = get_str() if get_str() returns None or nothing. It should raise an exception.
stackexchange/codereview
Suppose we have 2 types, mapped to a Database via EF 4. Schedule 1.....1 Visit Also, we have third custom view type public class ScheduleView { public Schedule Schedule { get; set; } public Visit Visit { get; set; } } So we can write the join query var query = Context.Schedule.Join(Context.Visit ,/*Schedule ...
stackexchange/codereview
Code in PHP to convert SVG into Other Image Formats and opposite??
stackexchange/codereview
I need to import (restore) a collection generated with mongodump into an existing database and I'd like the records to be merged into the existing collection. Does mongorestore merge the records in the same collection or it will drop the existing collection before restoring the records?
stackexchange/codereview
I am new to Restlet development, trying to add headers to do a HTTP request. I tried the following code, but got "400 bad request, the header is not valid" String url = "http://xxxxx"; Client c = new Client(Protocol.HTTP); Request request = new Request(Method.GET, url); HashMap attributes = new HashMap(); attributes....
stackexchange/codereview
Now I develop a plug-in for WindRiver workbench. When I export my plug-in, only a xx.jar file is generated. I wonder how to export my plug-in in a folder exclipes with the content ".exlipsextension" and subfolder "plugins".
stackexchange/codereview
How can I check to make sure my variable is an int, array, double, etc...? Edit: For example, how can I check that a variable is an array? Is there some function to do this?
stackexchange/codereview
I'm building a database that makes use of lots of many-to-many relations. For example, I have part items and machine items where each part goes into many machines and each machine has many parts. The purpose of this database is to be able to input a list of parts and get back a list of machines composed of only parts...
stackexchange/codereview
I've noticed on viewing the source of my Rails app that a lot of information is publicly available that shouldn't be - specifically a Google Analytics script that contains my GA account number, and the authenticity tokens for my forms. Are there any guidelines on hiding this kind of code in the source?
stackexchange/codereview
I have a strange problem, I'm sending an SQL query through PHP: INSERT INTO `lib_plex` (`id`, `active`, `lastUpdated`, `entry_date`, `entry_ip`, `address`, `city`, `state_iso`, `zip_code`, `plex_type`, `price`, `has_garage`, `has_indoor_parking`, `has_outdoor_parking`, `has_pool`, `has_fireplace`, `average_nb_room`, `c...
stackexchange/codereview
I have a server which is throwing WebFaultException try { ... } catch (InvalidPasswordException) { throw new WebFaultException<String> ("This is a bad password", HttpStatusCode.Unauthorized); } So far so good. However when this WebFault is caught in another C# project (...
stackexchange/codereview
I am looking to implement a mechanism that combines bitmaps together in a variety of complex ways, using ternary raster operations like you can in Windows. The idea is to be able to blt an image to a destination using any kind of combination of the source, brush, and destination pixels (source AND destination, source A...
stackexchange/codereview
which language most suitable for working with cookies and inner page structure with ajax? thanks
stackexchange/codereview
I have a page where onclick on a button displays the text content from the file in the text area on the page javascript function function displayOutput() { <?php $logfile = "hello"; $fh = fopen($logfile, 'r'); $size = filesize($logfile); if($size == 0) ...
stackexchange/codereview
So in rails, if any of the input is not valid, the page returns back to the input page and red errors will show up next to that input_text or textarea. For example, <% validates_presence_of :email %> It will say the error at the top, and the email input text turns into red. However, when I separately made a valid ...
stackexchange/codereview
I am attempting to utilize the USPS API to do some address verification/validation. I'm sending this XML to http://testing.shippingapis.com/ShippingAPITest.dll: <AddressValidateRequest%20USERID="xxxxx"><Address ID="0"><Address1></Address1><Address2>6406 Ivy Lane</Address2><City>Greenbelt</City><State>MD</State><Zip5></...
stackexchange/codereview
I have one C++/CLI project, a GUI application, which is compiled in mixed mode (managed+unmanaged). Now I want to write a custom user control using C# and compile it to become CSharpA.dll. my question is: Can this dll be used by my C++/CLI project easily? How would I do that?
stackexchange/codereview
I want to write a regular expression which matches anything between () (()) (()()) ((())) ()()() etc.
stackexchange/codereview
This code seems to create an array with a range from a to z but I don't understand what the * does. Can someone please explain? [*"a".."z"]
stackexchange/codereview
<?php $prev_path = "./../../."; $dont_redirect = true; require_once "${prev_path}./config.php"; session_start(); function http_digest_parse($txt){ $needed_parts = array("nonce"=>1, "nc"=>1, "cnonce"=>1, "qop"=>1, "username"=>1, "uri"=>1, "response"=>1); $data = array(); $keys = implode...
stackexchange/codereview
I'm pretty new with ADFS and and Custom Role authorization so any help (and a lot of patience) would be greatly appreciated. I'm trying to set up ADFS with custom authorization. I have the ADFS set up to return me a claim, from there I can get a username from the name token. However, I already have an existing roles ta...
stackexchange/codereview
For my C class I've written a simple statistics program -- it calculates max, min, mean, etc. Anyway, I've gotten the program successfully compiled, so all I need to do now is actually test it; the only problem is that I don't have anything to test with. In my case, I need a list of doubles -- my program needs to accep...
stackexchange/codereview
I am trying to open multiple processes in a Perl script on Windows. Program structure would look some thing like this... my($chld1_out, $chld1_in); my($chld2_out, $chld2_in); my($chld3_out, $chld3_in); my @cmds1=(); my @cmds2=(); my @cmds3=(); $pid1 = open2($chld1_out, $chld1_in, 'ex1.exe')or die $...
stackexchange/codereview
I am using Jcrop and I wan't to dynamically change the aspect ratio for the selection based on user input, so I guess the way to go is to use Jcrop api. Thing is that if I use it as a jquery function it works ok: $('#cropbox_full').Jcrop({ onChange: update_full_dimensions, onSelect: update_full_dimensions }); But ...
stackexchange/codereview
I've done some searching around the documentation, and spent a while on the net but cannot find a solution to this! I want the alert to tell me which iteration of each() it was on when the .thumb is clicked. EG: There are six .thumb's I click on number 3, the browser pops-up 3! What actually happens is regardless of wh...
stackexchange/codereview
I am trying to build a dynamic predicate with Entity Framework by mapping an enum to the column field: In the where clause i have entered ?? as i am not sure what to put there, i want this be dynamic like in this article, although that doesn't work me in EF on;y linq to sql: How to specify dynamic field names in a Lin...
stackexchange/codereview
I am using following jquery method $('form').submit(function(){ $('#universities_selected option').each(function(i) { $(this).attr("selected", "selected"); }); }); when we submit form this method is called and it checks all the entries in multi select list "universities_selected" and set the...
stackexchange/codereview
I've been working on a program in Visual Studio 2010. I'm still having compatibility issues I've mentioned here before. Is there a way to downgrade my C# project so that I can open it with Visual Studio 2008 (without copying the code over and recreating the form)? For those who'd like to know, the problem I'm having is...
stackexchange/codereview
I am trying to use jQuery to do some validation on a form; I need a method where I can validate if all controls in a have been filled out \ selected. The CheckBoxLists my application supports are giving me a hard time as it seems like jQuery likes to address each checkboxes individually, but what I really need to do i...
stackexchange/codereview
I am using .NET 2.0 with PlatformTarget x64 and x86. I am giving Math.Exp the same input number, and it returns different results in either platform. MSDN says you can't rely on a literal/parsed Double to represent the same number between platforms, but I think my use of Int64BitsToDouble below avoids this problem and...
stackexchange/codereview
I have a startup considering building a Java backend and a Rails frontend. The Java backend will take care of creating a caching layer for the database and offer other additional services. The Rails frontend will mostly be for creating the webapp and monitoring tools. What startups/companies out there are using this ki...
stackexchange/codereview
Is it viable to run Wordpress in a RAMDISK for performance reasons?
stackexchange/codereview
Hey. I am trying to disable the Context Menu in a TextCtrl widget under wxpython (prevent the context menu from coming up when right clicked). If I create my on Menu and bind it to the right mouse click it will always show my menu but if I dont create menu under right mouse click event it automatically creates a standa...
stackexchange/codereview
I have a .NET 3.5 Compact Framework application that uses MSMQ. We are running this application on an Intermec CN3, Windows Mobile 5.0 device. However, when our application first tries to active the MSMQ service with ActivateDevice (pinvoke), the application crashes and we get the error report message: A problem has o...
stackexchange/codereview
Running python on Snow Leopard, and I can't import the 'time' module. Works in ipython. Don't have any .pythonrc files being loaded. Scripts that 'import time' using the same interpreter run fine. Have no idea how to troubleshoot this. Anyone have an idea? [wiggles@bananas ~]$ python2.6 Python 2.6.6 (r266:84292, Sep 1...
stackexchange/codereview
1) Is it important to set the correct mime type for a web service response? 2) what is the correct mime type for a, a) XML response? b) JSON response? application/xml text/xml application/json application/x-javascript text/javascript text/x-javascript text/x-json
stackexchange/codereview
I'm not sure what I'm doing wrong here... I have a custom HashTable that has a method that allows someone to delete a "partNumber" (a value) from the HashTable. The delete method is as follows: class COSC202HashTable : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; //.... ...
stackexchange/codereview
I am writing a Message Handler for an ebXML message passing application. The message follow the Request-Response Pattern. The process is straightforward: The Sender sends a message, the Receiver receives the message and sends back a response. So far so good. On receipt of a message, the Receiver has a set Time To Re...
stackexchange/codereview
Maybe I'm just not getting it, but I have a service that is deployed to an IIS 6 machine. That machine has a LAN address and a Public internet address. How on earth am I supposed to be able publish this service with both accessible? Address 1: http://serverName/ServiceName/Service.svc Address 2: http://www.companyName...
stackexchange/codereview
I have a program written in Fortran 90/95; after invocation it always reads a certain data file. For the users' convenience I'd like them to just have to place this file in the same directory as the executable itself, without making them set some environment variable/extend $PATH, and without forcing them to use a cert...
stackexchange/codereview
I have updated my android sdk with samsung galax tab addon , it installed successfully . problem is that when i open galaxy tab emulator, it displayed portion of emulator ,i.e; bottom of emulator is not visible. i thnk it is problem with desktop resolution , but resolution of desktop is 1280 X 1024 . Can any one tel...
stackexchange/codereview
I want to create a batch file that I can run from the desktop. This batch file should execute a stored procedure in MySQL. This is what I have so far: cd\ cd Program Files cd mysql cd mysql server 5.1 cd bin mysql.exe -h host_ip -u login --password=password mysql use database_name \g mysql call sp_stored_proc_name \g ...
stackexchange/codereview
From the command line, I want to create an at job to run a mysql query. As you can imagine searching on google or here stackoverflow for "at" is difficult. This works fine and the query runs like it ought to: mysql -e 'MY QUERY;' but if I do this: at 17:30 mysql -e 'MY QUERY;' At 5:30 I get a mail that tells me "UPD...
stackexchange/codereview
I have this code(class in class) in java (andorid) public class History extends Activity { public Integer Type; private static class HistoryAdapter extends BaseAdapter { //I don't know how to access variable "Type" here Integer num = Type;// error . . . } . . ....
stackexchange/codereview
How to get $base_url to show the correct url for my Drupal site when I'm running a cron job? Do I have to set the global $base_url manually for that to happen? Do I have to run the cron job as a registered user? When I run mysite.com/cron.php by hand everything seems to work fine: $base_url is set to the correct url....
stackexchange/codereview
Which is favourable, efficient and faster? storing information in xml format and retrieving it or storing information in a db on android? and also, in terms of portability, xml could be stored as an asset...can the same be done with db? do db come in as default package in all phones. application involves dealing with o...
stackexchange/codereview
My 'LocalClient' app is in a corporate LAN behind an HTTP proxy server (ISA). The first Azure API call i make - CloudQueue.CreateIfNotExist() - causes an exception: (407) Proxy Authentication Required. I tried following things: Added the <System.Net> defaultProxy element to app.config, but it doesn't seem to be work...
stackexchange/codereview
I'm trying to do this: class Foo(Base): id = Column(Integer, primary_key=True) class Bar(Foo): id = Column(Integer, primary_key=True) class FooBarAssociation(Base): foo_id = Column(Integer, ForeignKey('foo_table.id')) bar_id = Column(Integer, ForeignKey('bar_table.id')) foo = relationship(Foo, ba...
stackexchange/codereview
I'm trying to launch a WCF service over SSL on IIS 6 through a load balancer. My initial problem was an obvious and pretty well discussed one - the address shown on the WSDL page pointed to https://SERVERNAME/WebServices/mydomainws.svc instead of www.mydomain.com. The answer to this problem is to add a host header va...
stackexchange/codereview
I have just lost pretty much a day and a half trying to get pull replication going for an off site server. After experiencing the pain that was this experience I am now thinking it shouldn't be this hard so maybe I am doing it wrong. I never did get it to work, I had to go to push replication. Here is the situation. ...
stackexchange/codereview
Are there are any pseudo-random number generators that are easy enough to do with mental arithmetic, or mental arithmetic plus counting on your fingers. Obviously this limits to fairly simple math - it needs to be something someone of average mathematical ability can do, or maybe average ability for a programmer, not a...
stackexchange/codereview
Right now we are using the PeterBlum SelectedIndexCondition to control whether or not some controls are displayed using the following snippet: PeterBlum.DES.MultiFieldStateController fsc = new PeterBlum.DES.MultiFieldStateController(); PeterBlum.DES.SelectedIndexCondition cnd2 = new PeterBlum.DES.SelectedIndexConditio...
stackexchange/codereview
<DataTemplate x:Key="dirtSimple"> <TextBlock Margin="10,0,0,0" Text="{Binding Path=CurrentBook.Published, StringFormat=d}"></TextBlock> </DataTemplate> <ControlTemplate x:Key="lbWrapPanelTemplate"> <StackPanel Orientation="Horizontal" Margin="2" Background="Aqua"> <ItemsPresente...
stackexchange/codereview
I have a a long which has the time in UTC format as a timestamp for some data, now I want to convert it to this format: month 1-12 Day 1-31 24 Hour format 0-23 minute 0-59 second 0-59 subsecond nanoseconds 0-999,999,999 now the nanoseconds can obviously be set to 0 as it doesnt need to be that accurate. What is the be...
stackexchange/codereview
I have a tarball, and i want to remove all .tcl, .bat , .log files except pkgIndex.tcl in it. if i do tar --delete -f mytarball.tar --wildcards *{.tcl,.log,.bat} my pkgIndex.tcl will be deleted, how to put that as exception in my pattern wildcard? Just tried tar --delete -f mytarball.tar --wildcards *{.tcl,.log} --...
stackexchange/codereview
I need to animate shopping cart images from a listing page into a set position (basket) on the top right of the page. (A fly to effect if you will so people can see the item going into the basket) I have only ever used set vales for animate so Im not sure where to start. Obviosuly each image/product clicked will need a...
stackexchange/codereview
I'm trying to work out how to do the following: [CustomAnnotation(thisVariableShouldBeInjected)] public class MyClass { // Normal class stuff } Now the data annotation is decorating a WCF service class, which itself has constructor injection going on. Ideally I'd like to inject the annotation with a value using th...
stackexchange/codereview
I'm using Quartz.NET in a Windows Service I am creating, and I'd like a way to iterate over all jobs to detect whether it is paused or not. How do I check if a job is paused? I can't find a suitable method in the JobDetail class. Thanks
stackexchange/codereview
Im looking to write a new application in ruby/python which uses a feed from bloomberg and am stuck trying to find any documentation for using (or even setting up) Bloomberg Server API with either of these languages. Does anyone have any good links to tutorials for this or maybe some boilerplate code to get set up? Or i...
stackexchange/codereview
I was checking out HTML5 new javascript commands and there is something similar to: var els = document.querySelectorAll("ul li:nth-child(odd)"); This allows you to find all elements by css syntax. But I sure Jquery also has something a little similar to this. The question is, as browsers are getting better javascript ...
stackexchange/codereview
I'm wanting to know if there's a way to stop push notifications, or at least stop their sound during nighttime? I don't want to silence the phone, because I need the alarm to sound in the morning. It'd be nice if I could specify that push notifications should only come through between certain hours, or be quiet during ...
stackexchange/codereview
it is possible to deactivate the InternetExplorer Silverlight Add-On? Later I want to open the Internet Explorer with the Powershell command: $ie = New-Object -ComObject InternetExplorer.Application
stackexchange/codereview
Is there an easy way to start a static function (not main) of a class in a few clicks in Eclipse? Can do it in main function, but is there another way? E.g. right click on a needed function in the Outline view and select [run with arguments..]
stackexchange/codereview
I'm working on a CMS system that receives urls like this: /parent1/parent2/child/ Now it's easy to check only the child but in my opinion you should also check if the parents are correct and in the right order. The problem is that I'm unsure on how to do this. I'm using mysql. this is how that table would look: CREAT...
stackexchange/codereview
I am having a problem with restful routes and singular resources, originally I had this code in the show view on my account resource. <%= link_to book.title, book_path(:search => book.title) %> and it worked fine, then I changed account to be a singular resource, e.g from map.resources :accounts to map.resource :acco...
stackexchange/codereview
I am planning on creating a commercial fleet/asset tracking web app, but got discouraged when I found our about the high price Google and Microsoft charge to use their services in a commercial setting. I found Openlayers, and it claims to be free, so I am wondering if anyone has had experience using it commercially? I...
stackexchange/codereview
If a parameter is a reference to an object, will the asynchronous invocation be passed the reference or a copy of the object (by marshalling)?
stackexchange/codereview
I'm currently running into a bit of a problem. I'm trying to write a program that will highlight occurrences of a word or phrase inside of another string, but only if the string it's being matched to is exactly the same. The part I'm running into troubles with is identifying whether or not the subphrase I'm matching th...
stackexchange/codereview
I have a table with a GUID primary key. In ActiveRecord it is setup with a PrimaryKeyType.GuidComb. Is it possible to create this record with a manually assigned PK? If I set the primary key in the record and run Create() a new ID is assigned. If I run Save() I get an error (as one would expect). The why: This tabl...
stackexchange/codereview
I'm looking for temporal libraries for Java, i.e. libraries which allow to store multiple historical version of the same concept. I'm looking for a library which has an API to do something like: Instant i1 = Instant.valueOf("2010-01-01"); Instant i2 = Instant.valueOf("2010-01-02"); Attribute<String> a = .... a.setVal...
stackexchange/codereview
I am deploying a website using MSDeploy so using something like the below code. "%ProgramFiles%\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:package=WebAppServer.zip -dest:Auto -setParamFile="was_params.xml" -verbose > webappserversync.log Is there anyway to set th...
stackexchange/codereview
ok i need to make a whole background image so that it resizes with the window and keeps the same proportions i need to do this only using css does anybody know how i have looked but cannot find a working solution. i tried some suggestions on here too but does not seem to work for me either thankyou
stackexchange/codereview
I need to create a Flex component similar to ComboCheck (by Arcadio Carballares). What I need is a ComboBox with CheckBox and TextInput instead of Checkbox's label. If CheckBox is selected the TextInput is enabled and editable, other way it's disabled. Do you have an idea of the easiest way to achieve it?
stackexchange/codereview
How to we setup scratchbox for android to do cross compilation?What type of target do we choose?
stackexchange/codereview
I have a program in Delphi 2010 that uses a JET (mdb) database via ADO. I would like to be able to extract the definitions of some of the queries in the database and display them to the user. Is this possible either via SQL, some ADO interface, or by interrogating the database itself (I don't seem to have rights to M...
stackexchange/codereview
I'm attempting to write a unit tests for an ASP.NET MVC 2 post action that takes a view model as its sole parameter. The view model is decorated with validation attributes such as [Required]. I'd like to test two scenarios. The first scenario is when a valid set of data is passed in (ie, all required properties have va...
stackexchange/codereview
I wish to write tests for our Seam Framework-based web site's internal search engine that uses Hibernate + Lucene indexing (on DB2) for queries. What is the best solution for populating the data source before the TestNG suite is run when the project's data model is quite complex considering entity relationships and fie...
stackexchange/codereview
I am passing the edited value and retrieving it back but I dont get back the id value.. how do I get back the value for Id...The id value will actually remain the same..all I need to do is pass it back again... public ActionResult EditValue(int id) { ViewData["id"]=id; ViewData["Value"]=GetOriginalVal...
stackexchange/codereview