instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a WPF app that is currently driven completely from XAML. All fields, datagrids everything are bound from XAML using ObjectDataProviders objects. I have a DataAccessLayer (DAL) imported into the project. The calls to retrieve data using the ODPs are being used to display the data are all working. Is it possi...
stackexchange/codereview
I have a client who wants a page to have their terms of service hidden at the bottom of a page with the following criteria: 1) on normal page load, the tos should be hidden with a js trigger next to the title to toggle the display 2) if an internal link was clicked, either a)from the current page or b)from an external ...
stackexchange/codereview
I had this working an hour ago but must have changed something. How should I call a ajaxLink using ZendX so that any javascript in the response html get's executed? I tried with processData since I think I used that but now it doesn't work. <?php echo $this->ajaxLink('Click me and I will run the returned javascript cod...
stackexchange/codereview
I have this code here: $("#order").validate({ rules: { name: { required: true } lastname: { required: true } address: { required: true } telephone: { required: true digits: true } emai...
stackexchange/codereview
I am trying to bind a grouped linq statement to a asp.net listview. Problem is when the result is been returned to my list view my result look like this. System.Linq.Enumerable+WhereEnumerableIterator1[TransactionDetail] 20.5 System.Linq.Enumerable+WhereEnumerableIterator1[TransactionDetail] 7.3 My code is nothing spe...
stackexchange/codereview
I am new to QT. i am working on the Graphics. i am using QWidget for drawing graphics(For drawing graphics in QWidget paint event). i need to draw background and foreground graphics. Background is fixed graphics. foregrounds i am drawing lines. Each 100 millisecond i need to draw 20points. This drawing time is 8 sec. ...
stackexchange/codereview
Say I have an image that is 1000x1000. On top of the image, I want to place, say, the letter "A". Here are the details: Bottom value is 160 (meaning, the bottommost part of the "A" is sitting 160px from the top of the image) Left value is also 160 (meaning, the leftmost part of the "A" is sitting 160px from the left o...
stackexchange/codereview
I'd like to share my build version in the app but I can't get that thing to work... this is a part of my .pro file... LITERAL_HASH = "foo"; BUILD = "$${LITERAL_HASH}{\"sexy Installer\"},(0x12345678),1,0,3"; DEPLOYMENT.installer_header = $$(BUILD); message(bar .$$(BUILD).) and when I run qmake from Qt menu the output ...
stackexchange/codereview
I use inline Javascript quite a bit, usually in WordPress themes that I make. I had not heard of wrapping inline Javascript in //<![CDATA[ ... //]]> up until a few months ago, and I have been doing this stuff at a fair level of competency for a few years. I googled around and I hear that people use this because their J...
stackexchange/codereview
What I want to do is just raise a exception in HSQL 2.0. As in Oracle we can use : .... EXCEPTION WHEN OTHERS THEN raise_application_error(XXX) .... After read HSQL official documentation and tried what I can imagine , I still didn't get a clue. Is there anybody can give a suggestion ? Thanks!
stackexchange/codereview
I am interesting in: can i load 32bit x86 dll as a second AppDomain into 64 bit application environment? For more details: 1) Main exe is 64 bit C# pure .net 4 app; 2) Module is third party .net 2.0 wrapper of some unmanaged x86 dll; So can i create second 32bit AppDomain in 64bit .net 4 process and load 32bit module i...
stackexchange/codereview
We've got a project in source control: $/Project/Trunk/Project.sln most of the projects live under the trunk $/Project/Trunk/Website $/Project/Trunk/BLL etc. The problem is, they all reference DLLs stored in $/Project/Common When I try to build using the build agent, I get an error saying it can't find the DLLs in ...
stackexchange/codereview
I need to append a parameter in the url called by a ajax call. I need something like this: jQuery(document).ajaxStart(functionThatAppendsParameterToUrl);
stackexchange/codereview
With current C compilers, is it still true that using the array syntax (a[i]) is slower than using pointers (*(p+i))?
stackexchange/codereview
Why do I get this error message? "WaitAll for multiple handles on a STA thread is not supported." Should I use [MTAThreadAttribute] attribut? Update: Dosn't work with WPF applications! Note: It error is at line WaitHandle.WaitAll(doneEvents); I'm using a standard WPF project. private void Search() { const int C...
stackexchange/codereview
If we take the code below: Shape p1 = new Square(); Square c1; if(p1 instanceof Square) { c1 = (Square) p1; } What does it mean to prefer polymorphism to instanceof, and incidentally, why is it better? Edit: I understand what polymorphism is; what I'm missing is how one would use it rather than instanceof.
stackexchange/codereview
Is it possible to set a constraint in a Doctrine model, so that all queries using that model include this requirement? For example, if I have a Car model and I want to ensure that all results retrieved using the model have active = 1 set in the database. I could define this in each individual query, but it seems like t...
stackexchange/codereview
I'm a Scheme newbie and trying to make sense of my homework. I've a function I made earlier called duplicate, and it looks like this: ( DEFINE ( duplicate lis ) (IF (NULL? lis) '()) ((CONS (CAR lis) (CONS (CAR lis) (duplicate (CDR lis)))) )) A typical i/o from this would be i: (duplicate '...
stackexchange/codereview
I am a content editor new to Sharepoint and have to build a registration form for a training department. As there is no need to access a db, I have been told InfoPath is not required, is this correct? If not using Infopath, can I just build a form using html in either a content web part or page content area? I have in...
stackexchange/codereview
I want to call a bitmap from a method in my main class and am unsure how to do it - I have a method: private void detectFaces() { Bitmap bitmap565 = Bitmap.createBitmap(width, height, Config.RGB_565); if (facesFound < 1) { Intent k = new Intent(main.this, False.class); ...
stackexchange/codereview
This is the point from ISO :Standard Conversions:Array-to-pointer conversion: $4.2.1 An lvalue or rvalue of type “array of N T” or “array of unknown bound of T” can be converted to an rvalue of type “pointer to T.” The result is a pointer to the first element of the array. Can any one explain this, ...
stackexchange/codereview
so I have a field you can type in. After you type you press ok, and it will send an ajax call to save.php and it inserts into the database (with php), and then output what you have type. And then ajax call on succes grabs the output and alerts it (success: function(msg){ alert(msg) }). the response is in html. Works go...
stackexchange/codereview
Here is my situation. I have a server application designed for multiple users to use, so there are a lot of read/write operation a the same time. And the responses need to be FAST. Currently I cached all the data in memory so the data reading/writing operation is as fast as we expected.To prevent the data lock from cau...
stackexchange/codereview
i am building a web application and have an intermidiate understanding of mysql. i'm trying to wrap my head around a problem i see. my system may be in usage for 10 years. i'm concerned about running out of auto increment values. will it be possible to archive or dump old data out of the system to open up old auto incr...
stackexchange/codereview
I use PHP/MySQL/XHTML to create new entries: I have those fields in the HTML form: title city tags price How can I add a map for each entry? (to display the city position from google maps) I need to store the position into mysql or just using javascript?
stackexchange/codereview
Is it possible to send additional custom headers (for example with a wsgi app) before Apache serves static content (image/js/css) ?
stackexchange/codereview
I want to add a menu item along side the [view] [edit] [files] ... menu links at the top of the user profile page. When a user clicks it, it should behave like the others, in that it doesn't just launch to a new page, but the menu item they clicked on (let's call it "Funky Button") turns greyish and the user remains i...
stackexchange/codereview
I'm trying to set the scroll position on a page so the scroller is scrolled all the way to the top. I think I need something like this but it's not working: (function () { alert('hello'); document.body.scrollTop = 0; } ()); Any ideas?
stackexchange/codereview
I got a strange behavior after running the datanucleus enhancer. And then trying to generate the EntityManagerFactory, I ran in an java.lang.VerifyError, which is method: setItem signature: (Ljava/lang/Object;)V) Incompatible argument to function" type="java.lang.VerifyError">java.lang.VerifyError: (class: de/suur/wr...
stackexchange/codereview
This is a follow-up to my previous question on Clojure static typing. I browsed the Java source code for the compiler and there are several places where it checks the value of *warn-on-reflection*, but when I compile the following code, I only get a run-time error: (defn div-2 [^String s] (/ 2 s)) Are there any circum...
stackexchange/codereview
I'm having a problem with my OS, I put in to a culture that the date form is dd-mm-yyyy but when I retrieive the datetime in visual studio it keeps getting me the english date format mm-dd-yyyy. The worse in my case, is that when I run my program in different machines, some get me the right date format, and some give m...
stackexchange/codereview
Does anyone have any pointers for implementing the following: I want to cheaply enable multi-factor authentication on an asp.net website. I want people to be able to use an app on their phone (iPhone at the very least) to generate the token used alongside their username/password to login to the site. I do not want the ...
stackexchange/codereview
I'm trying to load an swf placed on Amazon S3 (b.com) into an swf on a different domain (a.com), and it throws this error SecurityError: Error #2121: Security sandbox violation: Loader.content:http://www.a.com/loader.swf cannot accesshttp://b.com/loadee.swf. This may be worked around by calling Security.allowDomain. at...
stackexchange/codereview
in Microsoft Visual Studio 2008, I want to set C++ directories (includes, libraries, etc.) for a solution (*.sln) from command line. Until Visual Studio 2003, I've successfully relied upon /useenv option of devenv.exe, started from command line. This does not seem to work on Visual Studio 2008 Professional Edition. ...
stackexchange/codereview
I'm currently using the CURRENT_DATE when inserting into my table field for the Date. Pull just the Month and Year two digit month and four digit year (ex $mon = 01 and $year 2010)
stackexchange/codereview
We have a native program, written in Delphi 2007, a Win32 .EXE file. This program hosts the .NET runtime, and loads a bunch of assemblies we've written. So if I copy that executable into the bin\Debug directory, configure the .NET project with which executable to start, I could debug this in 2008. Basically, breakpoint...
stackexchange/codereview
First the question, then some background. We're using Visual Studio 2008, C# 3.0 and .NET 3.5, and TFS 2008 as our VCS. If I execute this command against our TFS database, to show information about a merge commit: tf changeset 13469 /noprompt I get output like this (redacted): Changeset: 13469 User: Lasse Date: 12. ...
stackexchange/codereview
How can I sort this list in descending order? timestamps = [ "2010-04-20 10:07:30", "2010-04-20 10:07:38", "2010-04-20 10:07:52", "2010-04-20 10:08:22", "2010-04-20 10:08:22", "2010-04-20 10:09:46", "2010-04-20 10:10:37", "2010-04-20 10:10:58", "2010-04-20 10:11:50", "2010-04-20 ...
stackexchange/codereview
I wonder what sort of things you look for when you start working on an existing, but new to you, system? Let's say that the system is quite big (whatever it means to you). Some of the things that were identified are: Where is a particular subroutine or procedure invoked? What are the arguments, results and predicates ...
stackexchange/codereview
I know that variations on this question have been asked, but I've tried all suggested solutions to no avail. We are trying to connect to a WCF service that uses basic authentication and transport security (unfortunately, these things can't be changed). I have not been able to find a way to add our credentials to the ...
stackexchange/codereview
I need to write a UDF that would try to cast a varchar to a bigint and return either that bigint or zero if failed. The problem is - I can't find a way to silence casting error when the string is not a valid number. TRY CATCH doesnt work inside functions and I don't know what else to do.
stackexchange/codereview
I am sorry for my question may looking a old repetitive questions but I as I am starting Linq to SQL I want to discuss how many layers (architecture) should I use ? I am working on web mostly web sites and small to medium scale web applications. I understand dividing application into layers help its maintainanace and e...
stackexchange/codereview
Can anyone help me with a LINQ query. I have converted most of it but i have a sub query in the stored procedure and i can't figure out how to do it.. basically this is the old stored procedure (truncated for ease) SELECT M.Period AS 'Period' , C.Code AS 'Group' , C.ClientCode AS 'Code' , ...
stackexchange/codereview
Hello there fellow scriptors, I have been trying to customize the datagrid component. So far I have been able to customize the cells using a custom cellRenderer. I would like to change the way the header looks by using a custom headerRenderer as well but from all the ones that I have tried to make don't work. This is m...
stackexchange/codereview
I have a little probleme with Haystack. I have a search form and when it's submited,i do a research in 3 models, so I simply use : SearchQuerySet().models(Video,User,PlayList).auto_query(query) Now i need to filter() objects from PlayList's model. but if i do : SearchQuerySet().models(Video,User).auto_query(query).mod...
stackexchange/codereview
I'm parsing an OBJ-file in Android and my goal is to render & display the object. Everything works fine except the correct texture mapping (importing the resource/image into opengl etc works fine). I don't know how to populate the texture related data from the obj-file into an texturebuffer-object. In the OBJ-file I'v...
stackexchange/codereview
Yesterday I found that I needed to add self to an object as it was causing a problem. I've been adding self to a few other objects today, it compiles and seems to work fine when I do. But I'm wondering if maybe I shouldn't be always adding self ?
stackexchange/codereview
I have a properties (Java world) file with comments and key=value. I simply want to take backup of the file and edit few key=value. I need to edit the key in loop as the number of keys are not fixed and also the key names differ partly which is not a problem, but i am struggling to know how to maintain the format of th...
stackexchange/codereview
how to vertical centering in gwt by using vertical panel.. or pls sugest me is there any way for doing vertical cetering
stackexchange/codereview
Ok, so I want to have the characters from below in my html page. Seems easy, except I can't find the HTML encoding for them. Note: I would like to do this without having sized elements, plain ol' text would be fine ^_^. Cheers.
stackexchange/codereview
How can you calculate large factorials using C#? Windows calculator in Win 7 overflows at Factorial (3500). As a programming and mathematical question I am interested in knowing how you can calculate factorial of a larger number (20000, may be) in C#. Any pointers? [Edit] I just checked with a calc on Win 2k3, since I ...
stackexchange/codereview
I am using FBConnect in my iOS app, with the latest version of FBConnect-iOS. The github docs claim that no "resume" function is available for fbconnect sessions because the developer is not responsible for storing the access_token information. Link Here This is all well and good, and I can grab the access_token string...
stackexchange/codereview
I am facing a weird problem with a text field on my page. This HTML structure is generated by some Java code (which is very cluttered and written years back). The problem I am facing is, when I click on the text field (Highlighted in the snapshot), the cursor positions itself on the second field instead of the very fir...
stackexchange/codereview
My NSThread's selector is a wrapper for a potentially long-running C++ method. I want the thread to respond to the - cancel message, which requires checking in with the NSThread object itself and asking if it isCancelled. How can my C++ code send messages to the NSThread it's running on?
stackexchange/codereview
I'm working with the Google Groups on Knockout's forums for help with this too - but I figure a bigger audience can never hurt the situation. I am trying to get KO to work with a situation using jQuery UI's 'Sortable' plugin. I have my code posted here. http://www.pastie.org/1285716 Attempting to use a custom binding.....
stackexchange/codereview
i have tow dropdownlists in formview when i select from the first dropdownlist i take the value and postback to the same page with this line response.redirect("addtabs.aspx?SECID="+dropdownlist1.selected value.tostring()) and thi second dropdownlist take th SECID and fill it self with sqldatasource with this parameter ...
stackexchange/codereview
I have troubles with Drupal 7 and file uploading. My code that doesn't work: function test_form($form, &$form_state){ $form['#attributes'] = array('enctype' => "multipart/form-data"); $form['podcast'] = array( '#title' => 'Audio file', '#type' => 'file', ); $form['submit'] = array( '#type' => 'submit', ...
stackexchange/codereview
Assume you are using Chrome, when I press Cmd+F or Ctrl + F... I type a char, it searches the whole page and highlight the text for me. It searches instantly. What kind of algorithm is Chrome using? Why it can type and search so fast? any ideas on that? Thank you.
stackexchange/codereview
I have a textfile, containing something like: 12,34 EUR 5,67 EUR ... There is one whitespace before 'EUR' and I ignore 0,XX EUR. I tried: grep '[1-9][0-9]*,[0-9]\{2\}\sEUR' => didn't match ! grep '[1-9][0-9]*,[0-9]\{2\} EUR' => worked ! grep '[1-9][0-9]*,[0-9]\{2\}\s*EUR' => worked ! grep '[1-9][0-9]*,[0-9]\{2\}\s...
stackexchange/codereview
I am using a CellTable with "on grid" editing in my application. Editing existing rows works fine. However I now am struggling to support adding a new row to the bottom of the table in a non-hacky way. What is the best way to do this? My (hacky) solution: My code that responds to RangeChangeEvent's to load the data kee...
stackexchange/codereview
i'm having the above problem when switching my activity. In the first activity i have a GalleryView showing all my images and an ImageView show the selected image from the gallery. Now i want to switch to the next activity and keep the same image from the ImageView on screen in the second activity. Here is how i show m...
stackexchange/codereview
ImageMagick creates some pretty large PNGs. GraphicsMagick is a lot better, but I'm still looking for the best options to use with convert to obtain the smallest filesize png. I have here a large png with a small filesize, and passing this through IM convert I have been unable to reach that filesize, let alone get it ...
stackexchange/codereview
I have some code in C# which I want to use in other project (coded in C++). From what I researched, I need to create a .lib but MSVS only creates .dll (I think..). I think is possible to use the .dll by using LoadLibrary() over C++ but seems not very friendly. 1 - Can I create the .lib in MSVS? If not, how can I create...
stackexchange/codereview
Why these two tecnologies? Which are the key decisions choosing one of them? Guidelines and scenarios? ASP.NET MVC3 provides several capabilities that Silverlight4 does not: ... Silverlight4 provides several capabilities that ASP.NET MVC 3 does not: ... More: what does HTML5? And ASP.NET WEB APP? Can someone explain? ...
stackexchange/codereview
Is it possible to group/ungroup data in a static HTML page, like you can in Excel? I have a requirement to allow grouping/ungrouping of data like in Excel. If it is not possible in a static HTML page, kindly suggest to me the best way to do it in order to get the same result in an HTML page.
stackexchange/codereview
I have a sitemap file for search engines: <?xml version="1.0" encoding="utf-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitem...
stackexchange/codereview
I'm trying to create a very simple android screen with the following content: top banner, webview and bottom banner. for some reason, i can't do it. my xml look like: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/FrameLayout02" xmlns:android="http://schemas.android.com/apk/res/android" a...
stackexchange/codereview
I declared a nsmutablearray and assign some object but when retrieving object it gives memory location.Here is the code. NSMutableArray *arrCondiNum = [[NSMutableArray alloc] init]; [arrCondiNum addObject:@"2"]; [arrCondiNum addObject:@"4"]; [arrCondiNum addObject:@"6"]; [arrCondiNum addObject:@"8"]; for(int i = 0;i<[...
stackexchange/codereview
I use gstreamer for playing RTSP stream from IP cameras (like Axis.) I use a command line like this: gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin ! autovideosink and it work fine. I want to control it with a gui in pygtk so I use the gstreamer python bindings. I've ...
stackexchange/codereview
I am trying to create an *nix executable from a Perl script that uses a CPAN module named Text::BibTeX. I have been trying to use pp, to pack everything, with no success. I have tried pp -o outfile src.pl pp -M Text::BibTeX -o outfile src.pl But it's not working. Or better the executable works on my machine, but not...
stackexchange/codereview
I'm just wondering about the following 2 approaches. First: SomeViewController *someViewController = [[SomeViewController alloc] init]; [self.navigationController pushViewController:someViewController animated:YES]; [someViewController release]; Second: SomeViewController *someViewController = [[SomeView...
stackexchange/codereview
I just discovered the weirdest bug in some javascript code dealing with RegExp.test. I had a regular expression regexp declared inside a function and I had a closure that had a reference to regexp and I was using the closure to iterate over an array of strings to test them with the help of collect from prototype.js, i....
stackexchange/codereview
I am a newbie and am having problems with creating class instances. Here is the setup. I have one class that loops through an array. (i will call this the "outer class" as my terminology is not up to speed yet!). On each loop, it creates an instance of another class. (which I will call the "inner class") currently, my...
stackexchange/codereview
Is there a free alternative to Soundbooth for adding cue-points to audio tracks for use in Flash? I seem to remember that you can add them to the file itself (I think). I know you can do this with FLV. Just checking before I buy SB..
stackexchange/codereview
I'm loading a detailed view of an article when clicking on a row in a UITableView. When clicked, it loads the object with the data and I pass that object to the next controller being pushed on the stack. However, when I do this: - (void)showArticle { [aTitle setText:[[self article] title]]; [aTitle setBackgroun...
stackexchange/codereview
Short Version Is there a way to force (or provide a hint to) Microsoft Access to perform an insert (through an updateable query) in a certain order (between tables), or to tell it that one column in a query depends on (the auto-generated value of) another column in that query? Longer Version When I insert values into a...
stackexchange/codereview
I added a homecontroller to an application using mvc. I think it should only work when I type localhost/home However it works even when I just type localhost anyone know why? public class HomeController : Controller { // // GET: /Home/ public ActionResult Index() { ...
stackexchange/codereview
i went through the sigaction function in stevens but was unable to understand .please anyone explain it in brief the usage and application .thanks.
stackexchange/codereview
I am not sure what is wrong with the following syntax. I would like to query my DataContext for the following data: Show me everything that has nothing in FilesAccesses and nothing in FileAccessGroups. Also show me everything that has my user ID in FilesAccesses. Here is the syntax I am trying to use. It fails on the |...
stackexchange/codereview
I'd like a toolbox thing sort of like the widget tree in the designer. As far as I can tell, for the categories it simply adds a top level tree item to itself. Also afaict, it is a basic subclass of QTreeWidget, so I should be able to see what it's doing and make the same calls on a QTreeWidget to get the same behavio...
stackexchange/codereview
I'd like to have git automatically push local changes to the upstream subversion repo when a commit is made. The SVN repo authenticates using Kerberos, so there's no need to hardcode a password or anything into the commit hook. The obvious way to do this is to put "git svn dcommit" into the post-commit hoook, but unfor...
stackexchange/codereview
How can I ignore files like this one .tmp_index.html.36436~
stackexchange/codereview
I'm a UX developer at a retail company, we use Websphere Commerce for our e-com sites. The app dev guys are in complete control of the HTML output we have to file bugs with them to get something as simple as an ID changed in HTML. HTML and front end performance isn't their specialty and things get implemented poorly be...
stackexchange/codereview
I have a document library list. I created folders in that list and uploaded some files to those sub folders. How to get all these files which are in sub-folders in that document library list using SPQuery?
stackexchange/codereview
I am trying to identify the content displayed inside a frame using QTP. I am asking from the Page all the frames that match the description and get a collection of frames. I take the first frame from the collection but from some reason it seems that the Object doesn't exist, and therefore I can't reach the content disp...
stackexchange/codereview
I'm new on Selenium, new here and my english is not the best. I'm using selenium with .NET ... I have a HTML page like this but the number of the events are different: <div id="eventContent" style="text-align: center;"> <div class="event" id="event-8971062"> <ul> <li ...></li> ...
stackexchange/codereview
It's possible to deploy XNA games to Xbox360 without AppHub/XNA Creators subscription ? It cost 99$ which isn't expensive, but I don't want (at this time) sell my game at marketplace. Thanks.
stackexchange/codereview
Is it possible to record an audio file directly to a server without FTP? Looking for the fastest method. FTP has the delay of connecting to the server, which I'd like to avoid. @Jolta to answer you question, its taking about 10-15secs or so from 1. writing the wav file , 2. ftp connection 3. uploading of file. Yes it v...
stackexchange/codereview
This sends data only once which seems irrational to me as it is in a for loop: char* hello; for (int i = 0; i < 10; i++) { hello = "Hello world!\n"; if (UDT::ERROR == UDT::send(client, hello, strlen(hello) + 1, 0)) { cout << "send: " << UDT::getlasterror().getErrorMessage(); } } Shouldn't it ...
stackexchange/codereview
We are considering options for implementing a single sign-on for a few web applications, of which some are CakePHP (1.3) and others are not. I'm hoping for advice or comments from people who have done this before. Here's the idea: Access to the CakePHP app is controlled by the server AuthType. If the user isn't authen...
stackexchange/codereview
The original code is a bit complex, but it boils down to something like this: for each (var person : Person in someArrayList.toArray()) { for each (var friend : Person in person.friendArrayList.toArray()) { trace(person.name + " is friends with " + friend.name); } } There are 3 persons: A is frien...
stackexchange/codereview
My team currently uses Microsoft Visual Source Safe 2005 for its versioning/file management. Most of our work is Excel files and other binaries which contain code. We place very little raw code (plain text files) in the repository. We're looking at switching away from VSS for all the usual reasons and looking at MS Te...
stackexchange/codereview
using an observe_field helper, i am saving data and making a spinner visible while updating. in addition, i would like to update a div. could it be done with a condition inside the observe_field helper like so? <%= observe_field 'act_feb', :url => { :controller => :prep, :action => :toggle_feb }, :method => :pu...
stackexchange/codereview
Is it possible to do the following without a creating a view in between? I.e. by just joining these SELECTs directly? CREATE VIEW temp_first AS SELECT MIN(DATE) AS mindate,id FROM mytable GROUP BY id # SELECT *, t.mindate FROM aggregate_analysis a JOIN temp_first t ON t.id = a.id WHERE (.... ) ORDER BY mindate DESC
stackexchange/codereview
I have moved my published asp.net files from C:/xyz/mywebsite to c:/intepub/wwwroot/mywebsite. In one of the functionality of the website, we are creating a txt file and then editing that text file in the root folder. When I moved it to new location, I got an error of "cannot create file, premission denied...". Then I...
stackexchange/codereview
I know that /Interface \d/ occurs three times on the page. But I don't know how to test for this with Capybara in Cucumber. Here was my first attempt: Then /^(?:|I )should see \/([^\/]*)\/ (\d+)(?:x|X| times?)?$/ do |regexp, count| regexp = Regexp.new(regexp) count = count.to_i if page.respond_to? :should pag...
stackexchange/codereview
I am curious if the code I am using here is a good way of doing this. Basically I am creating a simple model object (in the MVC sense) by lazy instanciating it from within my ViewController. The idea being that the first time I call [[self dataModel] doSomething]; it creates a new (or reuses an existing) object. I was ...
stackexchange/codereview
In a class constructor, I am trying to use: if(theObject != null) this = theObject; I search the database and if the record exists, I use theObject generated by Hibernate Query. Why can't I use this?
stackexchange/codereview
I'm getting error: Connection must be valid and open when I start this program. I searched on google and only found 2 people that have the same error. Is it possible to fix this ?? Thx using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Data.Odbc; using System.Dat...
stackexchange/codereview
I have a bunch of access tokens for my facebook applications. Can anyone tell me if there is a process where I can know what extended permissions I have used during the authorization prcess. ie during the token creation process. I could find noting like that using Graph API. I hope u understand this question. Thank you...
stackexchange/codereview