instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
In my telerik grid i have a column that has an html.actionlink pointing to a delete function. Now, i dont delete it right away, it stays until the user explicitly says save changes. Is it possible to have the color of the row change depending on a value in the row? So that the user knows which elements are to be delete...
stackexchange/codereview
It appears that JSON.NET is writing invalid JSON, although I wouldn't be surprised if it was due to my misuse. It appears that it is repeating the last few characters of JSON: /* ... */ "Teaser":"\nfoo.\n","Title":"bar","ImageSrc":null,"Nid":44462,"Vid":17}]}4462,"Vid":17}]} The repeating string is: 4462,"Vid":17}]} ...
stackexchange/codereview
I can't get the actually LazyLoad plugin to work for me so I am trying to write my own with. Currently I have a list of images loading inside of a DIV. They are pulled by a PHP query to the mysql database. The DIV scroll is set to auto. The code I am using is: <div id="b1" style="overflow:auto;"> <?PHP $result = mysql_...
stackexchange/codereview
Anyone know the Applescript snip that will open a new email with the file attachment that has been dragged/dropped on the Applescript script? (Google hasn't been a help.) I've found commands that open a new email and prompt for the file attachment, set theAttachment to (choose file without invisibles) and snips that ...
stackexchange/codereview
I used Phonegap to create a simple webpage as an iPhone app. I'm using the latest version of XCode and iOS SDK 4.1 to make this, and the latest version of Phonegap as of today. I want my iPhone app to always launch fresh, not resume, every time the user taps the icon on their home screen. Is there any easy way to set t...
stackexchange/codereview
How can I find the intersecttion between 2 arrays in C#, in a fast way?
stackexchange/codereview
Is it possible to log properties of exception with NLog? For example SocketException has properties such as ErrorCode, HResult, NativeErrorCode, etc that are specific to only this type of exceptions. It is possible to log them without explicitly logging (i.e without using Log(e.ErrorCode)) them and using just ErrorExce...
stackexchange/codereview
I was wondering if there was a class available that can retrieve lyrics for a song title? Is there any iPhone compatible API available? Regards
stackexchange/codereview
In Firefox if I use frames[i].document.readyState it will say complete even though the frame is executing Javascript. Is there a way to detect if Javascript is executing in a frame?
stackexchange/codereview
Does anyone know how to connect to an ODBC database in Octave? The database package doesn't seem to install properly. I found this bug here: http://savannah.gnu.org/bugs/?30090 Is there any other method? I am actually trying to connect to SQL Server and am using Windows 7 (not linux unfortunately, at my work place!). I...
stackexchange/codereview
I'm having some issues debugging with Eclipse. As soon as I launch the debug server, my CPU rockets by 40% - 50%. How to get by this?
stackexchange/codereview
I have this XAML code: <ListBox DataContext="{Binding Tables[Suppliers]}" ItemsSource="{Binding}"> </ListBox> In the project I have the following code: namespace Suppliers { class DBServer { public const string TableSuppliers = "Suppliers"; } How can I use Suppliers.DBServer.TableSuppliers in th...
stackexchange/codereview
I have a method whose argument should be "a List of anything". The method will not modify the contents of the List. Is it more correct to define this method as void foo(List<?> list) { } or void foo(List<Object> list) { } and what exactly is the difference?
stackexchange/codereview
I am new to Ruby and RoR. I have a clean Linode instance with an Ubuntu image, and I want to compile Ruby from source instead of using apt-get. I have googled for instructions of doing this, but after some tries I keep on getting errors regarding missing zlib and some other packages when I try to run some tutorials sam...
stackexchange/codereview
I created a map app that uses a very large image as my map. It shows high resolution tiles when the user zooms in to a certain degree and a lower-res bitmap of the whole image when zoomed out past 50%. It works OK, on my origional droid sometimes I can see a very slight lag due to the new tiles being drawn into and fro...
stackexchange/codereview
I'm looking through an API written in C++ and I'm confused as to what the following parameter type means: void*& data Does that mean the user would pass in a reference to a void pointer? If that's true, what's the point? I mean void* is already indirected so why would you ever want to redirect it again?
stackexchange/codereview
can some one tell me or give me a link where i can learn how to use get and set color in java or android? I mean, ARGB, RGB, FF and things like that. I know that a=alpha g green b blue r red but i dont know how to set colors.
stackexchange/codereview
Today i tried to write a program which checks some checkboxes for me on a webpage and then clicks on a button. For this purpose i tried to use the webbrowser, but how can I set the state of a checkbox there? Searching the internet for hours but no luck only managed to navigate to the webpage with the checkboxes.
stackexchange/codereview
I'm looking for a PHP script that loops through all of the files in a directory so I can do things with the filename, such as format, print or add it to a link. I'd like to be able to sort the files by name, type or by date created/added/modified. (Think fancy directory "index".) I'd also like to be able to add exclusi...
stackexchange/codereview
HI, I use perl DBI do() which will execute the below SQL block like below which executes in SQL SERVER 2005 eval { my $result = do(<<SQL); BEGIN TRAN UPDATE table1 SET col1 = 999 where date = '2010-08-27' DELETE FROM table1 where date = '20...
stackexchange/codereview
I am using graphics.h library to implement the a shutdown button on the display screen.The problem I am facing is that the color function(setfillcolor()) is not working by which I want to color the area between the two circles in red.My compiler is turbo C. void shutdown(void) { setcolor(RED); circle(5...
stackexchange/codereview
In Ullman's book of compilers, in shift reduce parsing, following definition of viable prefix is given : "The set of prefixes of right sentential forms that can appear on the stack of a shift-reduce parser are called viable prefixes. An equivalent definition of a viable prefix is that it is a prefix of right sententi...
stackexchange/codereview
I believe the question have emerged as my irritation of doing twice as much work as I could imagine is necessary. I accept the idea that I could be lacking experience with both MySQL and PHP to think of a simpler solution. My issue is that I have several tables (and I'd might be adding more) and of these is a parent ta...
stackexchange/codereview
I am trying to execute a osql command from Java program to restore database as follows. public void restore(){ Runtime.getRuntime().exec("cmd /c start osql -S PC-NAME -U username -P password -i createdb.sql } When I call method restore, the command prompt gets opened, osql gets executed and then command prompt become...
stackexchange/codereview
I'm trying to debug an unmanaged EXE through an ActiveX interface. The problem is that I'm using Activator.CreateInstance(Type) to create the ActiveX object of my application. The behavior I'm debugging is in the loading of this application. As a result, my debug session prematurely terminates when the timeout for this...
stackexchange/codereview
I have some nested elements as such: <div id="knownID"> <div class="knownClass"> <span> <nobr> <span class="knownClass2"> <span> ... </span> <--- this keeps expanding deeper and deeper <span></span> <--- this is the one I need!!! </span> </nobr> </span> ...
stackexchange/codereview
I have the following problem, the string from the Autocad DXF file does not compare with the string in my AS3 file even though they are absolutely identical. As a simple example private function onComplete():void { myTextLoader.load(new URLRequest("Drawing1.dxf")); myTextLoader.addEventListener(Event.COMPLETE, ...
stackexchange/codereview
I am replacing lighttpd with nginx on my development server. I got it working with PHP and SSL, but I'm stumped by what should be a simple rewrite. I need to rewrite URLs from http[s]://dev.foo.com/signup/123456 to http[s]://dev.foo.com/signup/index.php?attcode=123456 The rule I am using is: rewrite ^/signup/([0-9]+)...
stackexchange/codereview
Hey there, so far i have this, it toggles my footer down and up, but i want the content of the footer to fade out and new content fade in when it's toggled down. I can't for the life of me work it out, please help! - thanks $(document).ready(function() { $('#footertab').toggle(function() { $('#footer').animate({ ...
stackexchange/codereview
http://www.fireviews.com/testing/tabs_and_toggles.html The buttons with + signs are supposed to be drop-down toggles, and the mini-tabs below them should function as tabs. And at the bottom, the sample images should load (not just the spinning loader) and when clicked they should magnify the image, not go to another pa...
stackexchange/codereview
I am writing a little gui application with Tkinter, which requires me to have a path to icon files. I am planning on embedding the file into the exe that I make with py2exe, and then retrieving it from there. The only problem is that I need to know where that file is. Does anyone know a way of getting the currently run...
stackexchange/codereview
i installed wordpress on my localhost (wamp on windows 7) but javascript is not working on my admin area any help ? EDIT i'm tracking the problem it seems it's from /wp-admin/loadscripts.php line 123 "get_file" function .. when it's getting the javascript from the file it replaces " with \" it did preg_replace but it ...
stackexchange/codereview
How can i listen to Ultrasonic sound in Android platform?
stackexchange/codereview
I'm making a class called PanelsList that is basically a TabControl without the headers on the top, so the pages can only be changed programmatically. Each "tab" will be and instance of a class called PanelsListItem that derives from Panel. I also made a class PanelsListItemCollection that implements ICollection and IC...
stackexchange/codereview
Are they both same? Thanks. $user = $_POST['user']; $user = mysql_real_escape_string($user); $result = mysql_fetch_array(mysql_query("SELECT * FROM accounts WHERE id='$user'")); vs $user = $_POST['user']; $result = mysql_fetch_array(mysql_query(sprintf("SELECT * FROM accounts WHERE id='%s'",mysql_real_escape_string($u...
stackexchange/codereview
I'd like to write an interceptor for the Apache CXF JAX-RS implementation that inspects the target service/method for a particular annotation and does some special processing for that annotation. I can't seem to find anything in the interceptor documentation that describes how to do this. Does anyone have any ideas? Th...
stackexchange/codereview
I have an application that I use to run Exchange Powershell commands inside C# code like below. This is an example of the relevant lines I use to run the powershell command. RunspaceConfiguration rsConfig = RunspaceConfiguration.Create(); PSSnapInException snapInException = null; //load Ex...
stackexchange/codereview
I've got an interesting idea for an outside of the box use of the mic port on an android phone. I'm brainstorming ways to use an android phone to log roast temperatures inside my coffee roaster. The thought popped into my head. A microphone is a low-voltage and so is my thermocouple. So I started looking through th...
stackexchange/codereview
I have a text: " Csuklási roham gyötörheti a svédeket, annyit emlegetik mostanság ismét a svéd modellt Magyarországon." In that original text there are no line breaks at all. When I email this text (with gmail), I get it encoded as the following: Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: q...
stackexchange/codereview
I am updating an app that initially was compatible with iOS 2.0 and up. As Apple dropped support for releases < 3.0, I am being forced to drop support for 2.0. Some beta testers using iPod Touch second generation are complaining the software is not running well. These guys report their iPod Touch 2nd Gen to be model A1...
stackexchange/codereview
I am running an AdWords campaign and I am having trouble with the conversion tracking code. Basically, I believe I know what the problem is but just do not know how to fix it. When a user signs up for the website, they have to fill out the registration form. After they fill out the registration form, it will take them ...
stackexchange/codereview
Got this code in my controllers (void)viewDidLoad method self.purchasesPerClassification = [NSMutableDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"Moo",nil] forKeys:[NSArray arrayWithObjects:@"MooKey",nil] ...
stackexchange/codereview
So, have the chance to do my first "real" database, just thinking to myself what I should think about... any suggestions? Select DB (using MySQL) Select DB engine based on needs (using MySQL, know MyISAM vs InnoDB) CREATE TABLE documention for DB using Column definition (select right datatype) Model data to be normali...
stackexchange/codereview
My Qt project links to a library that is linux-only. When the project is run under linux, I wish to have a signal fired on an event using a type defined in that library. A complication that I have, though, is that the project must also build in Windows. Obviously, this signal and the slot catching it wouldn't exist ...
stackexchange/codereview
number = droid.readPhoneState()['result']['incomingNumber'] What are 'result' and 'incomingNumber' in this syntax -- are they not parameters? How are they related to the function readPhoneState? import android droid = android.Android() droid.startTrackingPhoneState() number = droid.readPhoneState()['result']['incomi...
stackexchange/codereview
I made a browser program for a archive type with the .mpq extension, which is highly used in Blizzard games. It is like an explorer but only explores files inside MPQ archives. Now, we all know how Windows Explorer browses .zip archives and I'd love to make it open the .MPQ files with so many rich features. Is this e...
stackexchange/codereview
I'm trying to get a BufferedImage from raw samples, but I get exceptions about trying to read past the available data range which I just don't understand. What I'm trying to do is: val datasize = image.width * image.height val imgbytes = image.data.getIntArray(0, datasize) val datamodel = new SinglePixelPackedSampleMod...
stackexchange/codereview
I have a data table as follows ID Key Value -------------------------- 1 F1 2 2 F2 5 3 F3 1 Using a TSQL in SQL server 2005, how can I convert this to a XML as <Values> <F1>2</F1> <F2>5</F2> <F3>1</F3> </Values> Please help.
stackexchange/codereview
For example if I have 2 aggregate roots AR1 and AR2, and AR1 updates AR2 in some way - what is the proper way of storing that change in the repository? Should AR1 call the repository store method?
stackexchange/codereview
I'm reading about linked lists and their implementation in C on Wikipedia. I haven't picked up on them as quick as other C concepts. In the list_add() function, I am wondering why it says... n->next = *p; /* the previous element (*p) now becomes the "next" element */ I don't really understand the comment. Why would th...
stackexchange/codereview
I have a small web application configured with Guice, Jersey and EclipseLink, and run this application on jetty (8.0.0.M1) during development. There are about 10 (small) JPA managed classes (entities and embeddables), and about 20 classes total. The initial startup takes 15 seconds + 5 seconds for the first requests. ...
stackexchange/codereview
I have an interface IComplex with many methods and properties, I wish to create a “mock” that makes the “Config” property return an object of my choose, while passing all other calls onto a “real” instance of IComplex. Just to make this a bit harder we are still using C# V2!
stackexchange/codereview
I installed Titanium from appcelerator and built the "KitchenSink" example application. All works well, I'm just wondering where does the javascript code ends up in a built app. I grep-ed the Xcode project and also the result application as I found it in Library/Application Support/iPhone Simulator/....KitchenSink.app,...
stackexchange/codereview
With help in the question Fast and flexible iterator for abstract class I created an abstract GridIterator for an abstract class GridData. Now I am able to use any concrete subclass of GridIterator to iterate through any concrete subclass of GridData. However, during testing I found out that the virtual operator++ and ...
stackexchange/codereview
I have a custom property in Episerver inherited from LongString. The value of property is saved for the first time and retrieved correctly. But on successive save the value is not updated, before SaveData() the properties LoadData() keep calling and resetting the value to old value and so no new value is saved to DB. ...
stackexchange/codereview
Possible Duplicate: How do I remove the “Personalize this Page” option in WSS 3 with feature code? Hi, I have to take out the "personalize this page" from the login drop down on the sharepoint site, at the top right hand corner. How can I do that? Thank you
stackexchange/codereview
echo round(3.33); returns me 3. Is there any method available which returns the higher number, in this case 4? Thanks, Kay
stackexchange/codereview
Is it possible to force the <select> element's dropdown box to always display values downwards? The user needs to see the data in the form above while selecting from dropdown.
stackexchange/codereview
What is the best way to copy record in the same table ? Something like that: Address address = AddressDAO.get(id); address.setId(null); AddressDAO.add(address);
stackexchange/codereview
A B C A1 1 2 3 B1 4 5 6 C1 7 8 9 Using the above (like table) going to get the value for the given header value. ex: if(column=" A" && row = "B1") then value="4" without using a often if loops,Is there any idea to fetch the values using C#. Note: The above is not a table or structure getting for...
stackexchange/codereview
Possible Duplicate: How to render PDF in Android Does any one know how to open a office documents(.doc,.xls) and pdf files in android? I have open a doc from my own app - any ideas?
stackexchange/codereview
I an using tabslayout.I choose tabcontentfactory to load views from xml layout. Like in an activity we have oncreate method which acts as onLoad so that i can fill datasource to various views. But in tabcontentfactory approach,I can not do this since oncreate has already been fired which is mainly used for creating tab...
stackexchange/codereview
I have created a iPhone App using the Titanium Framework. The app has totally 4 screens. I do not use any database at all. But my application size seems to be around 5.7 MB. Is there any way to reduce the size of the application?
stackexchange/codereview
(Inspired by a comment from nakiya) Many STL algorithms take a range as a pair of iterators. For instance, for_each(begin, end, &foo);. Obviously, if distance(begin, end) >= N, and begin is a random-access iterator, then for_each(begin, begin+N, &foo); applies foo only to the first N elements. Now is there a clean, gen...
stackexchange/codereview
I tried to create an activity indicator using the following code CGRect frame = CGRectMake(160, 160.0,40.0,40.0); progressIndicator = [[[UIActivityIndicatorView alloc] initWithFrame:frame]autorelease]; [progressIndicator startAnimating]; progressIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhi...
stackexchange/codereview
I'd like to use a .dll with a delphi application, but I'm curious if a delphi package is more flexible than dll?
stackexchange/codereview
The Delphi DocWiki page for Code Examples points to http://radstudiodemos.svn.sourceforge.net/ as the address for "RAD Studio demos and samples in the Sourceforge Subversion repository". On this page there is a web view of the Subversion folders. But which address do I need for the Subversion checkout operation?
stackexchange/codereview
Suppose I have a function CL-USER> (defun trimmer (seq) "This trims seq and returns a list" (cdr (butlast seq))) TRIMMER CL-USER> (trimmer '(1 2 3 VAR1 VAR2)) (2 3 VAR1) CL-USER> Notice how, due to QUOTE, VAR1 and VAR2 are not resolved. Suppose I want to resolve the symbols VAR1 and VAR2 to their valu...
stackexchange/codereview
I've added a lightbox jQuery script and all is working soooo BEAUTIFULLY, until I realised that this script add the lightbox script to ALL tags on my website. This is a major pain if I want buttons, images, headings, logos, whatever to link to an HTML page within a document :( Is is possible to change something in the...
stackexchange/codereview
is it possible to capture what's going on in an android screen as video, either on the device itself or the emulator? thanks!
stackexchange/codereview
I am trying to save the states of an UISwitch for each cell in my UITableView. Is there a way to do this? I was thinking of using the NSUserDefault but I'm not too sure about saving the values with a given name and then retrieving that state when the cells are created. Any suggestions would be nice! Thanks, Kevin
stackexchange/codereview
I have a jar that executes endlessly because i create a thread and the i join() the edt with this thread. If i run this jar with double click on lets say windows a javaw process is created that runs forever and i can continue working which is what i want. Now if i try to run the jar from cmd with java -jar myJar.jar t...
stackexchange/codereview
I'm creating a page that allows the user to select a time slot from a schedule. I would prefer to do this with some sort of table layout (vs. using drop down/combo boxes). But I'm having trouble figuring out which path to take because the schedule is layed out like this. So M,W,F are the same and T,TR are the same lay...
stackexchange/codereview
Suppose you have to create a simple 2D animation, like the drawing of a graph where the nodes can change their position. I was wondering how it would be different to create something like this using Java Swing or a bitmap based framework, where you can only draw points and lines I mean: does Swing offer more than si...
stackexchange/codereview
I followed this tutorial and successfully installed Emacs, STk, Quack. The question is how can I load my program like I do in Racket? In Racket I can edit my code in the upper window, type some codes, save and run. Then the lower window will automatically loaded the code I just wrote. Then I can play with it. I've trie...
stackexchange/codereview
I have an inline ordered list that contains an image and some text. I'd like the text to be centered vertically next to the icon. Here's a quick example with 1 and three lines of text. 2 lines should also be nicely aligned vertically. |----| |----| Somewhat | | Link | | longer |----| |----| Lin...
stackexchange/codereview
I can find out where Firefox is installed as follows; query this key to get the current version: HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox CurrentVersion ... then query this key to get the installed path (where "nnn" is the version number obtained above): HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firef...
stackexchange/codereview
I have an MVC 2 project where I recently consolidated the auto-generated membership/roles database with my primary database. I have an EF4 model generated from the primary database and it contains a table called Books. Now that I've consolidated the two, I setup relationships between Books and aspnet_Users so that I ca...
stackexchange/codereview
I'm using Git to version a series of binary files. They compress pretty well, but my central repos do not seem to be compressing when I push to them. They're eating up a decent amount of my quota, so I was looking to see if there was a way to force the remote repo to do a GC. Is this possible? I'm working on Project Lo...
stackexchange/codereview
I want to search for a line which starts with lets say a and ends with z. In-between any number of any character can come. How can i write an expression for this? ( I dont want to explicity mention any digits, any special chars, any alphabets ) I don't to do something like ^[0-9,a-z,A-Z,list all special chars]*$.
stackexchange/codereview
$ getconf BUFSIZ getconf: Unrecognized variable 'BUFSIZ' Is there a standard way to determine the value of BUFSIZ from a shell? It's easy enough to write a simple C program to output the value, but I don't quite understand why getconf doesn't do it.
stackexchange/codereview
I'm working on a project that will use windows role providers and I want to limit functionality to certain AD groups. With MVC, I could use an AuthorizeAttribute above my action methods and redirect accordingly. Is there something similar I can do for a standard web forms application (.NET 3.5) that doesn't use MVC?
stackexchange/codereview
hi i have implemented UIPageControl on top of UIViewController , and i'm trying to implement at the vary left side of the page control a UISearchBar and UITableView i spend so time on the internet looking for a solution . what i need to do ?? to put the UISearchBar on UIView or there is something else?
stackexchange/codereview
I have a jquery combobox. When user selects an product it redirects user to product info page. Unfortunately it does not work as expected. I used a normal select it works great. (function( $ ) { $.widget( "ui.combobox", { _create: function() { var self = this, select = this....
stackexchange/codereview
so I have a Win32 consol project using libraries like openCV and FFmpeg (builds). I have DLLs, .Libs, heders for tham all. How to set visual studio project not to use DLLs but only lib files?
stackexchange/codereview
I've got trouble on how to print my hash contents. Code snippet as this, #!/usr/bin/perl -w use strict; use warnings; my (%data, $keyword); while (my $line = <DATA>){ next unless $line =~ /\S/; chomp $line; if ($line =~ /^Keyword/){ $keyword = $line; } else { push @{$data{$keyword...
stackexchange/codereview
I want to put a validation that the user always enters a value in the textbox before submiting the form. But the check that I have put allows user to enter white spaces and continue submitting the form. So, how to put the check so that the user in not able to submit the form if there are only white spaces in the textb...
stackexchange/codereview
I am getting this error when I run my perl script: Can't use an undefined value as filehandle reference at scr line 44. Line 44: open my $fh, "|-", "mail", "-s", $subject, $owner, "-c", $sendto or die "$0: could not start mail: $!"; Everything looks okay. What does the error mean?
stackexchange/codereview
I have already import my gwt project into svn server but the problem is how could I checkout this project as gwt project in eclipse from another machines? Thanks
stackexchange/codereview
This is what I'm trying to do: public class DataBuilder { public DataBlock create() { DataBlock block = new DataBlock(); for (Extender extender : this.getExtenders()) { extender.extend(block); } } } Some time later: DataBlock block = new DataBuilder().create(); Every extender will add some speci...
stackexchange/codereview
HI I am trying to install magento on my wamp server. Have done settings in C:\WINDOWS\system32\drivers\etc\hosts also. Bt still getting error: Notice: Trying to get property of non-object in D:\wamp\www\magento\app\code\core\Mage\Core\Model\Config.php on line 1125 Notice: Trying to get property of non-object in D:\wa...
stackexchange/codereview
I am currently doing a SQL assignment but a certain task has mentioned that we need to implement validation and verification for our tables in the database which we created. However we did not learn anything about this topic and after googling for hours I only found the check constraints which you can give in the crea...
stackexchange/codereview
I'm almost at my wit's end with this. I can't get xcode to recognize that it's supposed to sign the @#$% app! I (think) I have my cert and provisioning file setup correctly. I've selected the appropriate target, and am using the Device Based SDK. The project builds without errors, but when I look at the Build Log, afte...
stackexchange/codereview
So I have some textual data which contains links, now what is the proper way to convert them into anchors when that data is being displayed. The one way that I see is to do smth like this raw(urlize(h(data)))... Maybe there is better way? P.S. I don't want to use redcloth
stackexchange/codereview
Is it possible to find the element that currently has the focus in a cross-browser way? In IE, it is possible to do $(x).blur(function(evt) { alert('Focus goes to ' + evt.toElement.id); }); and I need to do something similar in other browsers. As an alternative, if its possible, I could do a setTimeout and then investi...
stackexchange/codereview
I'm an old developer (Active since the Z80 days) starting fresh with Android. The Android Developers page recommends installing Eclipse before installing the Android SDK. It also states "There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further notice." The Eclipse downl...
stackexchange/codereview
If I use this: window.onunload = unloadPage; function unloadPage() { alert("Hello world"); } This would cause an alert even when going to pages within the site. Any way to use this but only when the user leaves the site/domain?
stackexchange/codereview
Here, the listbox is loaded sample Text. My Model.aspx will be public class Employee { public string Id { get; set; } public string Name { get; set; } } public class MyViewModel { public string[] SelectedEmployeeIds { get; set; } public IEnumerable<Employee> Employees { get; set; } } HomeController...
stackexchange/codereview
I am using Jqgrid 3.6 beta version with asp.net and i wanna add dynamic context menu on row selection.When ever user rightclick a row in jqgrid he wants to see some menu like file,edit and other menus. I have completed using single page i.e. both the jqgrid and its parent(JS files) are in single page . But in my main A...
stackexchange/codereview
I am trying to copy data from table "tb_A" to itself (with different primary key). When "tb_A" table is insert new record, I have written a trigger to populate another table "tb_B" with one record. I ran the following statement. INSERT INTO [tb_A] ([NAME]) select top (20)[NAME] from [tb_A] I was expected 20 ...
stackexchange/codereview