instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a user model in my Sinatra application that requires the user to enter an email a password and a confirmation of the password. Something along the lines of this: class User include DataMapper::Resource property :id, Serial property :email, String, :required => true, :unique =>...
stackexchange/codereview
The Problem, in short I am encountering lag (resulting in a time out) when calling a domain service query. What am I doing ? I have a Silverlight 4 application. The app depends heavily on Domain services. Replication Everything starts off fine. The app loads up and runs authentication against a domain service a-ok. I ...
stackexchange/codereview
How to get Popup notifications? As i have observed all the notifications are added in the status bar, but i want the notifications in popup, how can i do that? I also want to add speech to text feature for the notifications. Please someone help me, if u have idea on this.
stackexchange/codereview
How can i Match arabic letters with regexp in php My Code $name = $_GET("name"); if (arabic letters only and spaces) // using regexp
stackexchange/codereview
I developing an android application in which i want to integrate faceebook and twitter. I want to post pre-written message on wall of logged in person just on click on "wall post" button. Can anyone help me. Thanks in advance. sunit
stackexchange/codereview
The following code works fine in Firefox and IE but it doesn't work in Google Chrome, anyone have an idea of how to make it work? or an alternate way to move a window in Google Chrome? Thanks! <html> <head> <title>Open windows for clicks</title> </head> <script type="text/javascript"> function moveWindow() { th...
stackexchange/codereview
I have a string in the pattern yyyy-MM-dd hh:mm a and i can get the time zone object separately in which the above string represents the date. I want to convert this to the below format. yyyy-MM-dd HH:mm:ss Z How can i do this?
stackexchange/codereview
I'm creating a button like this: <%= button_to "Remove", { :controller => 'notes', :action => 'destroy', :note_id => @note.id },:confirm => "Are you sure?" %> This is the output: <form method="post" action="/notes/destroy?note_id=436" class="button_to"><div><input data-confirm="Are you sure?" type="submit" value="Rem...
stackexchange/codereview
I have an already created DataTable object which i am using for my girdview (asp.net) i also need to bind a column of that object to a DropDownList. The datatable has the correct details in the column but the column contains more that 1 of the same name in the column - hence I would love to just do some kind of SELECT ...
stackexchange/codereview
I'm making an iPhone version of an existing Rails app. I'd like to make the mobile version accessible via a subdomain such as iphone.mysite.com. I know I can use formats and the respond_to block for individual erb files, such as index.iphone.erb as show here: Creating an iPhone optimised version of your Rails site usi...
stackexchange/codereview
We currently have an old Installshield project file (ism) handed to us by our client, created in an unknown older version of Installshield Pro. It needs updating for a new release, but all we have available is Installshield Express 2011. (The install definitely does not actually use any feature unavailable in Express...
stackexchange/codereview
I'm trying to add a custom image to an MKMapView as an MKOverlayView - I need to restrict users from being able to scroll outside the bounds of the overlay. Are there any existing functions to do this? Or any other suggestions? Thanks, Matt
stackexchange/codereview
I am trying to implement Lucene with cakephp and following this guide http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/ Am getting this error ConnectionManager::loadDataSource - Unable to import DataSource class .ZendSearchLuceneSource i have placed the Vendor files in app/vendors/Zend/ Added thi...
stackexchange/codereview
I want to offer my users a rich query functionality so they can dynamically add Where clauses, change sort orders and groupings. oData seems to be the best technology for the job, but I don't know how to implement it correctly in a MVC application. 1) How can I connect a feature rich client that supports oData with a ...
stackexchange/codereview
I just want to hide/show the inlines in admin interface like providing classes': ['collapse']}). Is there any way to achieve this?
stackexchange/codereview
I read about wxRuby and Shoes but never used them. I want to learn ruby by developing a real-world serious Windows application. Among the available frameworks, which one is widely used and acceptable, rich in libraries and comes bundled with .exe builder?
stackexchange/codereview
My code is below: $.getJSON('https://ajax.googleapis.com/ajax/services/search/images?q=Google&v=1.0', function(json) { alert(json); })​ You can try this code here: http://jsbin.com/ofaru3/edit The ajax is error imagesFailed to load resource How cna I fix this problem? Thanks!
stackexchange/codereview
As a back-end guy, I'm not up to date with GUI libraries and techniques. I'm well aware of the HTML, CSS & JavaScript trinity and use it occasionally for trivial cases. What I want to build is an html page with a static structure that monitors a server. The page contains some fields, tables and trivial controls. It s...
stackexchange/codereview
I have a Host which has a many-to-many relationship with services. The relation is through a join table "hostServices". I would like to fetch te services related to a Host via a "fetched property". But how do I define the predicate? I now did something like 'ANY hostServices.host.name == "$FETCH_SOURCE.name"' and I ha...
stackexchange/codereview
My question is related to this thread. Here is the code #include <stdio.h> int main(int argc, char *argv[printf("Hello, world!\n")]) {} I accidently saved it as a *.cpp file and tried to compile it with g++. But I got an error and a warning. error: expected ',' or '...' before 'argv' warning: second argument of 'in...
stackexchange/codereview
As an example, I have two models: Household and Person: from django.db import models class Household(models.Model): address = # ... class Person(models.Model): household = models.ForeignKey(Household) name = # ... How can I search for Households by names of Persons inside the Django admin?
stackexchange/codereview
I'm wanting to have my app (on launch) load a view that I have created over the top of the original view, then when a button is clicked the top view will disappear and show the main view underneath. I know this is terribly simple, but how would I do this? Maybe push the view in viewDidLoad?
stackexchange/codereview
Simple question. I have tried searching on Google and after about 6 searches, I figured it would be faster here. How big is an int in SQL? -- table creation statement. intcolumn INT(N) NOT NULL, -- more table creation statement. How big is that INT(N) element? What's its range? Is it 2^N or is it N Bytes long? (2 ^ 8N...
stackexchange/codereview
Is there any way to generate a sub system diagram of an application from its visual studio solution? I am not looking to generate a class diagram.
stackexchange/codereview
My organization uses maven for all our projects. Every time we create new maven project, the artifacts are downloaded from maven central repository. But i want to create organization level local repository where all the maven artifacts are available and when new maven project created should look for the artifact in loc...
stackexchange/codereview
My requirement is taking in news articles and determining if they are positive or negative about a subject. I am taking the approach outlined below, but I keep reading NLP may be of use here. All that I have read has pointed at NLP detecting opinion from fact, which I don't think would matter much in my case. I'm won...
stackexchange/codereview
I am completely new to Python-- never used it before today. I am interested in devloping Python applications for the web. I would like to check to see if my web server supports WSGI or running python apps in some way. Let's say I have a .py file that prints "Hello world!". How can I test to see if my server supports...
stackexchange/codereview
I am trying to find a great resource to study for functional dependency and normalization. Anyone have any idea where should I look to? I am having difficulty differentiating whether a FD is in 1NF, 2NF or 3NF? I've been reading Wikipedia and used Google search to find good research, but can't find any that explains ...
stackexchange/codereview
I have two fields (Utter and Misery) in Table Massconfusion in database A that I need to move to two fields (also named Utter and Misery) in a table also called Massconfusion database B. There are two keys (Primary and subkey) that keep this data sorted correctly with the rest of the information in Database A and B. (...
stackexchange/codereview
I am trying to make Innodb as my default engine and I changed this in the my.cnf file. I set default-storage-engine=InnoDB in my.cnf file and restarted mysql but still it's not taking it. Even after restarting the server, it's still showing default engine as MyISAM. show engines +------------+---------+- | Engine ...
stackexchange/codereview
In my app I'm using "HandleError" whereby if an error happens, my "Error.vbhtml" view renders. This is working great, except now I want to also log the error. I've built a custom HandleError Class, Inherited the HandleErrorAttribute, and Overridden the OnException method. Now my error gets logged, but the Error.vbhtml...
stackexchange/codereview
I have a dialog box with a check-box and a button. I want to make the button enabled/disabled depending on the state of the check-box. I have tried achieving this using ON_UPDATE_COMMAND_UI: ... DDX_Check(pDX, IDC_CHECK1, bFlag); ... ON_UPDATE_COMMAND_UI(IDC_BUTTON1, OnUpdateButton1) ... void ColorDialog::OnUpdateButto...
stackexchange/codereview
I'm currently working on a form which includes some file inputs to upload pictures. There is an onchange() event for those inputs that submits the pictures to an iframe, then dynamically loads the uploaded pictures into the form, with fields to be modified for them (like name and geo-localization). Since I can't nest f...
stackexchange/codereview
I've got the following crash log from two testers, different devices (3GS and 4) and versions (4.1 and 4.2 GM): Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 Crashed Thread: 0 Thread 0 Crashed: 0 libSystem.B.dylib 0x000792d4 __kill + 8 1 libSystem.B.dylib ...
stackexchange/codereview
I have an Message Driven Bean, which receives Audit messages. These messages also have information about the system being audited. When a message is received, the MDB can create the system if it does not exists or reuse an existing system. My challenge is that when a lot of messages from a new system are received simul...
stackexchange/codereview
I am looking at installing my ASP.NET app on my client's Microsoft Small Business Server Premium Edition, but I've never used it as a platform. Are there any limitations or restrictions I need to be aware of? Thanks
stackexchange/codereview
I have tried a lot and have reached a dead end. I have a to show multiple gridviews on one page and all these are getting populated dynamically. i have figured a way to populate the gridview dynamically and display them, but i cannot get how to modify these values and display them as i want. here is the code. for .asp...
stackexchange/codereview
here is my html form <form action="formmail1.php" method="post" enctype="multipart/form-data"> <li> Name<br /><input name="name" type="text" id="name" size="50" maxlength="50" /> <br /> First and Last Name<br /><br /> </li> <li> Phone<br /><input name="phone" Type="text" id="email" size="12" maxlength="12"/><br /> ...
stackexchange/codereview
I have to create an XML file dynamically based on the user input. Here is what I came up with and I am struck up with two issues. if there is a collection of same element (MaxOccurs = 10) (For example if the user entered 4 accounts then how should my code be) If there is a choice option. Based on the element chosen t...
stackexchange/codereview
In the following code I get the expected results - (int)getInt{ NSRange intRange = NSMakeRange(0,3); char buffer[4]; [stream getBytes:buffer range:intRange]; [stream replaceBytesInRange:NSMakeRange(0, 3) withBytes:NULL length:0]; return (int) ( (((int)buffer[0] & 0xffff) << 24) | (((int)buffer[1] & ...
stackexchange/codereview
I am looking for a java code that generates javadocs HTML. I made an API for my application, the APIs can be invoked via URLs http://myurl/servletAPI?method=getData&param1=2010&param2=AC,BD,CLD http://myurl/servletAPI?method=insertData&param1=AC,BD,CLD I have few methods and each method with different number of par...
stackexchange/codereview
When I am using xhprof profiling PHP code, it works fine. I reference the documentation written by Lorenzo Alberton, http://techportal.inviqa.com/2009/12/01/profiling-with-xhprof/. But you know that we always have many Ajax calls in a web application. When I try to include header.php and footer.php in this article, how...
stackexchange/codereview
I originally submitted and was approved with the 4.1 SDK. I upgraded to the 4.2 and was making some fixes, and when I tried to submit to the App Store I got this message: "Filename may not contain whitespace." My info.plist had the default ${Executable} as the Executable File property. I went ahead and changed it. T...
stackexchange/codereview
I'm given a shell of a program and have to fill in a few functions. I have two structs I am given that are automatically created and passed to the functions I must define. typedef struct { char data[20]; } msg; typedef struct { int seqnum; int acknum; int checksum; char payload[20]; } pkt; Sa...
stackexchange/codereview
I want to separate the stylus position from the mouse position in a win32 application. I'm using the wintab sdk and I've seen articles about distinguishing between mousebuttondown/up events coming from the pen/eraser or mouse. But I haven't been able to find anything that lets you use the stylus as a second device. I ...
stackexchange/codereview
I'm looking for a GWT table component with header sorting, grouping with subfooters and normal footer. I basically want to sum fields for all the groups as well as a total sum in main footer. Anyone know if there exists any good table component for this, or do I need to build my own. I'm not looking for any commercial...
stackexchange/codereview
I just created this dojo widget and now I want to attached an event to it can I see how it is done: var filteringSelect = new dijit.form.FilteringSelect({ id: "test", }, "test"); I want to attached an onfocus function to it.
stackexchange/codereview
I'm attempting to implement a specific type of version control for several of my models (fundamentally different from what acts_as_versioned and vestal_versions provide). What is the best way to implement a virtual ActiveRecord model that's driven by multiple conventional ActiveRecord models, where the model data do no...
stackexchange/codereview
I have two models related by a foreign key: # models.py class TestSource(models.Model): name = models.CharField(max_length=100) class TestModel(models.Model): name = models.CharField(max_length=100) attribution = models.ForeignKey(TestSource, null=True) By default, a django ModelForm will pres...
stackexchange/codereview
I'm simply curious, as to why HTML has an anchor tag used to preform GET requests specifically without ability to change HTTP request type, or otherwise why not use the form submission convention, as we may have the possibility of get-variables anyway. More interesting is how anchor tags link to #id sections of the sam...
stackexchange/codereview
Im trying to simulate a touch on as UIWebView, how can I programmatically fire a touch event at a certain location? (x and y coordinates) Just call touchesBegan? Ideally I'd like to do it without any javascript hack because in the future it may not be a uiwebview
stackexchange/codereview
I am using jQuery to take data from an xml file and save it to a string. The string is a switch statement which I want to become a function. $.get('type.xml', function(xml) { var cases=[]; $(xml).find('type').each(function(){ index=parseInt($(this).find('earn').text()); if($.isArray(cases[index])){ case...
stackexchange/codereview
Book Essential WCF claims that NetTcpBinding.MaxConnections limits the number of connections to an endpoint. Thus if property is set to value of 10, then only 10 concurrent connections will be allowed to that endpoint. But the following blog http://kennyw.com/work/indigo/181 claims this property this property doesn’t...
stackexchange/codereview
I'm developing an Android application with OpenGL and JNI (all OpenGL stuff is in C code). Imagine I've drawn a cube. I want that user can push his finger over the cube and can rotate the cube and move it around the screen. Is there any way to do that? How can assign an event listener to touch and move events only when...
stackexchange/codereview
We have slony replication set up, and the replication on the slave has fallen behind by 10 days. On investigating I noticed that the sl_log_1 table has 25K records, but the sl_log_2 table has over 100 million rows, and they keep going up. How do I go about troubleshooting this? I am a newbie to slony, and would appreci...
stackexchange/codereview
i have a form with few fileds and a submit button... when i click on the submit button the form should validate and throw me an error of missing data but whats happening is that, it post the data and than validate the form what should i do to validate the form and then post the form? <body> <form class="cmxfor...
stackexchange/codereview
I've been having crazy hell with getting Galleria to load in an initially hidden iframe without manually refreshing said iframe. I am getting an error in Error Console from galleria.js, reporting 'Width & Height not found', so I've tried to set them manually about five different ways, including: <script> Galleria.loadT...
stackexchange/codereview
I am using OpenPOP I am trying to retrieve mail from an in office exchange server. This is my code popClient.Connect(host.Host, (int)host.Port, (bool)host.Ssl); popClient.Authenticate(host.Username, host.Password); Prodlem is the SSL Certificate is created in iis 7 and isnt a valid certificate is there any way for ...
stackexchange/codereview
My Delphi7 program is in a non-English language and uses some Win1250 ANSI characters extensively. (aáíóőű) I have noticed that under English language Windows XP/Vista/7 systems many accented characters appear non-accented (ie.: o instead of ő, u instead of ű) in Form and Label Captions. On localized Windows XP/Vista s...
stackexchange/codereview
I am having a tableView which lists the contents directory which includes jpg, pdf, zip, mp3, mp4, sql,.. files and even folders. For the next step, I should have a detailView which displays some properties of the selected file such as fileName, fileSize, filePath, fileType. Everything works perfect. But actually my p...
stackexchange/codereview
A shuffle function is defined as Shuffle( A[n-1],A[n-2].....A[1],A[0]) = A[n-2]A[n-3]......A[1],A[0],A[n-1] where i in A[i] represent the I th bit in the binary representation of the index in the array . The For example , the shuffle of the third element in an array is fifth array element. i.e.. Shuffle(A[010]) = A[...
stackexchange/codereview
I might be going about this in totally the wrong way but this is what I'm doing: I have 2 custom web parts: a company calendar and an appointment list. Both are visual webparts and both contain an UpdatePanel control. The calendar provides a date and the appointment list consumes a date. When the selected date in the c...
stackexchange/codereview
In a Firefox Addon I delegate the User to a new URL through window.content.wrappedJSObject.location = 'http://newlocation/'; What I am asking for is a load event binding for the site-change. I tried window.content.addEventListener('load', function() { }); .. which won't work.
stackexchange/codereview
How can I check f a keyword exists in a div? for instance, this is my html, <div class="item"> <div class="title">How to check if a keyword exists</div> <div class="author">John J, 1990</div> </div> I tried with this method below but obviously doesn't work! if ($('.item .author').text('John J').length > 0) { aler...
stackexchange/codereview
I was wondering what does the xml:base attribute do and what are it's values in XHTML5. and does the xml:base attribute have any restrictions?
stackexchange/codereview
I Was searchin the web for this but finaly made it by myself. Just copy to viewdidload to show the reminder after the app opened the third time NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES); NSString *documents = [path objectAtIndex:0]; NSString *counterPath = [document...
stackexchange/codereview
Is accessing a content database is not a 'best practice/advisable' or it 'should' not be done as Microsoft does not support it? I just want to know if it 'can' be done in the worst case or it 'should not be done' at all.
stackexchange/codereview
i am suppose to solve this question but i am stuck. Write a program to find the time period(s) of the largest price drop(s) when a list of price(s) is given. For instance, if the list is [300,301,303,299,300,298,301,305], then there is one period of the largest price drop: from time 2 with price 303 to time 5 with pric...
stackexchange/codereview
table 1 id name class 1 ab A 2 cd A 3 ef B 4 ab B 5 cd B table 2 name test marks ab 1 90 ab 2 70 cd 2 80 cd 3 85 ef 3 85 ef 4 60 Hi, I have 2 tables above, my question is what is the most efficient/best or sim...
stackexchange/codereview
I'm new to unix. I need to copy file over ssh. This is what I do me@localhost ~ $ ssh you@remotehost Then I established ssh so I get you@remotehost ~ $ I'd like to use scp to copy files from localhost to remotehost. Once I have ssh connection, how do I change to prompt back to me@localhost so that I can use the scp c...
stackexchange/codereview
EDIT 3: I've gotten this working by ignoring the advice given below and listening on the window, but only when an input, text field, or textarea is not focused. I'm not sure if this is the best way to be handling this issue, though. http://jsfiddle.net/gXPES/5/ EDIT 2: I've tried addressing the keydown issue by applyi...
stackexchange/codereview
I need to write a scraper in Java + Groovy.. I was wondering if something able to parse HTML documents and select the informations I need through simple CSS selectors (instead that going through the whole document tree and manually select what I need) exists? Something like Nokogiri for Ruby, just to give you the idea ...
stackexchange/codereview
I have a new row added to table with a buttton click and we have select element for each row and with name "code[]".I have to make the value "ABC" as selected when a new row is being added to the table alert($('#mytabl tr:last :input').find('input[name="code[]"]').children($('option[value=ABC]')).attr('selected','s...
stackexchange/codereview
This question is in relation to: python, subprocess: reading output from subprocess If P is a subprocess started with a command along the lines of import subprocess P = subprocess.Popen ("command", stdout=subprocess.PIPE) we can read the output P produces by P.stdout.readline (). This is a blocking read though. How...
stackexchange/codereview
The recent updates to the Facebook application have broken some of the custom URL schemes, up until recently calling: fb://profile/12345 would open the FB iPhone app to the profile of the user with facebookID 12345 This is however, no longer the case. I have been trying to find out if the URL has been replaced by a d...
stackexchange/codereview
I'd like to know if someone has experienced some issues with HttpHandlers at Arvixe hosting provider. I have set my web site running in asp.net 4 integrated mode, httphandlers are set correctly into the web.config and they work in my windows 7 IIS7 pc. On the hosting space the httphandlers don't seem to work. Maybe som...
stackexchange/codereview
I have the following: public class Foo<T extends Grok> extends ArrayList<T> { } How can I find the class name represented by T at runtime? For instance, let's say I allocate like this: Foo<Apple> foo = new Foo<Apple>(); Is there a way I can get Apple as the class name used in the constructor of Foo?: public Foo() { ...
stackexchange/codereview
I have a javascript function that goes like this: function change_one() { var one = document.getElementById("one").value; document.getElementById("tag").value=one; } It works fine until there are two elements the same id. I'm using php to fetch stuff from mysql and while it's looping thru, it's echoing input tags tha...
stackexchange/codereview
Can I have multiple ViewModel for a View in WPF? Because some times we need to show the view only in simple view format and sometimes the same view has to shown in editable format. Hence we can create seperate view models for each. So is there any way to hook 2 diffrent view models to a view?
stackexchange/codereview
shilps.java:198: cannot find symbol symbol : method setDate(int,java.lang.String) location: interface java.sql.PreparedStatement ps.setDate(2, "2010-05-31"); ^ shilps.java:231: cannot find symbol symbol : method setDate(int,java.lang.String) location: interface java.s...
stackexchange/codereview
I am having a small problem and i don`t know the reason. I set that 1- If you click Print button then print.php page will be printed automatically. 2- if you submit a form then print.php page will be printed automatically. Problem is on second option. Page gets printed automatically perfect but if i click Print button...
stackexchange/codereview
I have a legacy Java application, where its performance bottle neck is due to the usage of Calendar. As Calendar is a mutable object, we have to clone every-time we get it. public Calendar getCalendar() { return (Calendar)calendar.clone(); } We also discover that in our application, we didn't use the time zone inf...
stackexchange/codereview
I have a python script which has probably 100 or so regex lines each line matching certain words. The script obviously consumes up to 100% cpu each time it is run (I basically pass a sentence to it and it will return any matched words found). I want to combine these into around 4 or 5 different "compiled" regex parsers...
stackexchange/codereview
I am looking for some advice. I have been developing for about 11 years on the Oracle EnterpriseOne platform and am now making the leap to c#. So I am no stranger to programming but there are a couple of concepts I am struggling to tie up in my head when creating c# ASP.NET webpages. I have the following scenario: So I...
stackexchange/codereview
I'm writing a desktop app that could be used to manage a dance academy. My Core Data model contains such entities as Student, Teacher, Class, Invoice, etc along with the various relationships between them. My planned UI consists of a vertical split view with an iTunes-like OutlineView on the left hand-side. When yo...
stackexchange/codereview
I have an iPhone app with a Core Data object that has a "color" attribute. I'd like to get a list of all the values for color that have been saved. A simple SQL statement SELECT DISTINCT(color) FROM myObjectTable would easily do this. How can I do this in Core Data without loading all the objects (of which there may...
stackexchange/codereview
I'm having some problems using tablesorter to sort a table that is generated inside an hta. I don't know how to enable tablesorter on the new table.Bellow is a test html file. For testing purpose i recommend using IE because contains VBS. Thx! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www....
stackexchange/codereview
I'm trying to program an nginx module that discounts traffic from a Mysql database , upon a user based criteria. I don't know where to start I just know the concept of it, probably calling upon the event for sending bytes (let's say every 10 mb or so use a mysql library in C and do a query to discount the traffic) Is i...
stackexchange/codereview
I would like to use UriMatcher to match custom http links. I have following code: UriMatcher mUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); mUriMatcher.addURI("myLink", "http://a.b.c/?id=", 1); mUriMatcher.addURI("myLink", "http://d.e.f/?id=", 2); int match = mUriMatcher.match(Uri.parse("http://a.b.c/?id=123")); B...
stackexchange/codereview
I have a parent form which "saves" the settings and changes user puts. But I also have a logo upload form inside the parent form. When I try to upload the logo and submit my upload it seems that my form does not process anything. If i put the upload form outside the parent form, it works. I can't process forms which a...
stackexchange/codereview
I want to retireve the selection and check the node of the selection. I'm trying following code. But I think, I'm not able to point to the selection and so the code fails. <head> <script type="text/javascript"> function SelectAnchorNode () { if (window.getSelection) { // Firefox, Opera, Google Chrome...
stackexchange/codereview
I had been trying really hard about initializing a 1 dimensional array without knowing its size, but dont get it; Please tell me how can I declare a array whose size will dynamically increase as per the requirement in C#. I mean, want to do something like this class A { int[] myarray; int i=0; while(i<5) ...
stackexchange/codereview
How to customize the left hand navigation in sharepoint. Check this site, in this site if you see the left hand navigation opens and collapses, by clicking on a link(say MBA financing) you will see some other links will be appeared. To do the similar, how to do this in Sharpeoint 2007. Regards, Abhimanyu
stackexchange/codereview
i have problem with my code.. when i get value of question[i].. for example: if i have a question that taken from database and shown in row of table like 'What is your name'.. then i put in a hidden type... when i post that form .. i call back question .. it must 'What is your name' but i got only first string it is 'W...
stackexchange/codereview
How can I view the SQL Server Transaction Log File (.trn)? I'd like to be able to look inside the trn file at the individual transactions. Some records were deleted from a database and I need to know when, how and by who. Thanks Neal Edit: I have .bak files from before and after the deletion, and .trn files from during...
stackexchange/codereview
From that I've read you can assign a onClick handler to a button in two ways. Using the android:onClick XML attribute where you just use the name of a public method with the signaturevoid name(View v) or by using the setOnClickListener method where you pass an object that implement the OnClickListener interface. The la...
stackexchange/codereview
I have been trying for the last few days to get my map GeoWebCache layers from Geoserver to display GetFeatureInfo in a popup event. When I was using WMS layers, GetFeatureInfo was working as requested. Ever since I started caching my layers using GeoWebCache, I am unable to GetFeatureInfo. So far I think I am suppo...
stackexchange/codereview
I have this web page, say Home.html, that has links to other employee-related web sites. There is one, say www.SomeSite.com/HR.xyz, where it has a form to login. There are 3 fields: UserId, Password, and Company. The company is always the same, e.g. MyCo. How can I update the Home.html page so that when the user cl...
stackexchange/codereview
How can we center a popup window opened via JavaScript's window.open function on the center of screen (the exact x and y coordinates of which will depend on the current screen resolution)?
stackexchange/codereview
I have the following block of code public ActionResult Tabs(SearchViewModel svm) { if (Request.IsAjaxRequest()) { svm.Summary = _entitySearchService.GetSearchDataSummary(svm.Search); return PartialView(svm); } else { return RedirectToAction("QuickSearch", "Search" ...
stackexchange/codereview