instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
if(document.getElementById('txt1') != null){ $("#txt1").val(document.getElementById('txt1').value.toUpperCase()); } How can i convert this statement to Jquery Completely
stackexchange/codereview
I work with Hibernate Search 3.1.1.GA. I am trying my luck at fuzzy queries. This query works (it retrieves records containing Shakespeare): lastName:shakespere~0.1 But this one does not: firstName:shakespere~0.1 lastName:shakespere~0.1 I create a BooleanQuery and stuff it with FuzzyQuery instances with Occur.SHOULD....
stackexchange/codereview
Can someone give me an example of using the FileReader API go get contents of a file in chrome? It seems to be returning undefined for me. <!doctype html> <html> <script> function handle_files(files) { console.log(files) reader = new FileReader() ret = [] for (i = 0; i < files.length; i++) { file = files[i]...
stackexchange/codereview
How can I execute a image_tag method in a Rails console Run the console $ rails c Load helpers include ActionView::Helpers Execute the command image_tag('test.png') I got a strange error. Please help!
stackexchange/codereview
I'm writing an application that occasionally records the user's voice. During recording, I would like the application to pause whatever music happens to be playing (pandora, ipod, etc) and when recording is finished, I want it to resume that music for the user. Using MPMusicPlayerController's pause/play methods works ...
stackexchange/codereview
I've been searching around trying to find an approximate date for the standardization of CSS 3 and HTML 5 to no avail. Does anyone know when W3C plans on updating the standards or have an estimation?
stackexchange/codereview
I just downloaded the new xcode for OS 4.2 and build my old code on it, everything is fine except setNavigationBarTint, I have used a SplitViewController and in that I am using the following line to change the color of the navigation bar :- [self setNavigationBarTint:[UIColor blueColor]]; But it does not work, for lan...
stackexchange/codereview
I'm looking for any direction on a really quick and dirty webpage. I'm going to have two static items, say person A and person B. I would like to click a (+) or (-) button next to each of them which then increments or decrements an integer that's displayed relative to each person. Anyone having a quick tut or anything ...
stackexchange/codereview
I use jQuery to get jsonData from the server. I don't know what the data is. I would like to get the string value of the JSON object and write it in a textarea tag so I can debug. How? Please and thank you. P.S. I am using .NET MVC and jQuery
stackexchange/codereview
Basically I have created an "Adorner" class for Silverlight which allows the user to Move, Scale and Rotate any object it adorns. The way this works is the Adorner watches for any mouse events on it's child element and responds accordingly. This works great for simple elements like ellipses and rectangles. But I have a...
stackexchange/codereview
First, this can be a general algorithm for any language, but I'm learning C and if there is some C specific features, I'd like to know! I'm writing a function that will allocate enough memory for a given number of bits; into a long long * variable. The number of bits cannot be < 1. I tested the algorithm : int bits; /...
stackexchange/codereview
I'm using MySQLTuner.pl to optimize my site.... though I'm not entirely sure how to resolve some of these issues and am wondering if someone can help me out. I'm running 16GB of RAM with the following MySQL settings: key_buffer = 1024M max_allowed_packet = 16M thread_stack = 192K thread_cac...
stackexchange/codereview
i am writing a commercial WPF application that needs to be copy-protected. since this is WPF, I am considering porting it to a Silverlight OOB application, if possible. one thing that i am not sure about is whether OOB application is easily "hackable" and can be manually copied to another machine without going to the w...
stackexchange/codereview
swfobject.embedSWF("flash/main.swf", "myContent", "100%", "100%"... It turns out the above doesn't work,how can I instruct to swfobject that I want the swf to be as wide/high as possible?
stackexchange/codereview
It possible to check if the cursor is hovering on an element. Something like $("#divId").is("hover"); NOTE: I just want to check not set event.
stackexchange/codereview
I have this Facebook application profile page: http://www.facebook.com/developers/editapp.php?app_id=122313254494566#!/apps/application.php?id=122313254494566 which is associated with my iframe-based Facebook application, Gem Spinner: http://apps.facebook.com/gemspinner/ My understanding from reading recent Facebook do...
stackexchange/codereview
Basically I have 2 methods that are similar in functionality. The only difference is the class container that are different. What I am trying to achieve is to unify these 2 methods and somehow have the container be dynamic. here are the 2 methods: -(NSMutableArray*) parseRequest:(NSArray*)elements { NSMutableArray ...
stackexchange/codereview
After playing around with links in Rails for a view hours i've managed to actually get a link to invoke a method in my controller. But i still don't understand why all my other attempts failed. Im hoping you could help me out with that. I have the scaffold "Cars". When in the show view for a car, id like to click a lin...
stackexchange/codereview
I am copying an image to the clipboard like this: using (MemoryStream ms = new MemoryStream()) { chart1.SaveImage(ms, ChartImageFormat.Bmp); Bitmap bm = new Bitmap(ms); Clipboard.SetImage(bm); } How do I print the image?
stackexchange/codereview
How would I set a Grid Column to be sorted at startup? I cannot seem to find a property on the RadGridView to tell it that I want Column one sorted Descending at startup. The grid just comes up with no sorting.
stackexchange/codereview
I'm running a rails3 project with an external asset host for all javascript, images, swfs etc. This is on a completely different domain. So know I tried to embed some SWFs using swfobject. In development (same host) everything works fine, but in production (different hosts) it doesn't start the flash (firebug shows the...
stackexchange/codereview
I want to do a test load for a web page. I want to do it in python with multiple threads. First POST request would login user (set cookies). Then I need to know how many users doing the same POST request simultaneously can server take. So I'm thinking about spawning threads in which requests would be made in loop. I ha...
stackexchange/codereview
I know this has been asked here countless amount of times, I've looked around trying to implement the given solutions. #footer { min-width: 900px; text-align: center; position: absolute; } Its the very last div on the page. I'm testing it out here blog.0arrays.com (a default theme for tumblr), but the footer jus...
stackexchange/codereview
How should you use WebKit's WebView with a modal dialog? [_webView setMainFrameURL:[NSString fromStdString:url]]; [_nsWindow makeKeyAndOrderFront:nil]; return [NSApp runModalForWindow:_nsWindow]; The preceeding code is only working on Mac OS 10.6. Using 10.5 this is not navigating to the specified URL. Without the run...
stackexchange/codereview
I am developing a project using C#.net. Here in master page I have a button for search which will redirect to different pages in the project. I am using "~/searchpage.aspx" for redirecting to other pages which some pages are in root folder and sub-root folders. All pages are inheriting the master page file. Response.Re...
stackexchange/codereview
I have a class library that contains a number of classes. I would like to dynamically create an instance of one of these classes, set its properties, and call a method. Example: Public Interface IExample Sub DoSomething() End Interface Public Class ExampleClass Implements IExample Dim _calculatedValue as ...
stackexchange/codereview
I've been coding a website for the past 6 months using HTML/CSS/PHP/MySQL/Javascript. I'm coding all independently and finding it hard to interact with all of these technologies. For instance, I have been writing PHP code to echo HTML output. I find this very messy and hard to maintain. Also, I'm finding myself do...
stackexchange/codereview
I am currently working on a strongly-typed update view in ASP.NET MVC2. In addition to properties the user can update, there are also some properties that the user should not be able to update, but I would like to display on the page anyway (for example, a created on date). Here is an example of how I am displaying th...
stackexchange/codereview
So, I'm self-taught in the art of LaTeX, which means there are some really simple things that I just haven't ever figured out. One thing that I've always wanted to know was how to add to a sort of global preamble where I can add custom declarations and the like that will automatically be included when I render a docume...
stackexchange/codereview
My class Movie has @OneToOne relationship with Director and a @ManyToMany relationship with Actor. All these classes (Movie, Director and Actor) classes are cached in read-only mode, and so are the collections. I use Hibernate’s second level cache with ehCache. The relationships are LAZY, so I have the following proble...
stackexchange/codereview
I have a table "prices" with columns : year, janprc, janqty, febprc, febqty ... (prices and quantyties for all the months in a year) what I need is to create a view "monthlyprices" with the columns : year, month, price, quantity using data from the table above. how could i do that ? Thanks!
stackexchange/codereview
I am using libcurl to create an http connection to a server. During initialization I have specified an idle timeout value of 5 seconds and also specified as progress callback function. I was expecting cURL to abort the connection after 5 seconds of inactivity and to stop calling the progress callback but I found that c...
stackexchange/codereview
I have a stirng in one column. Column Name is PreviousStageIDs. In this column I have a String data as 12150, 13250. I want to run SQL statement to seprate 12150 using quama as condition. Means in this string when quama found then sql must take all the data before quama. Help me in this matter.... Thank in advance. JAY...
stackexchange/codereview
I know that hash functions make calculations, and the final result is string with fixed length. They are used to verify that files are the same - downloaded files, for example. There is hash presented by the owner of the file, and so the integrity check in this case is comparison of the 2 hashes. So is this the only fi...
stackexchange/codereview
I'm using the JUNG API for graph visualization. I cannot figure out how to change the edge label of an edge in the graph. The situation is that the graph has already been created in the program. I keep dropping edges and nodes and I've found a way to animate those things and update them in the graph. Some of the demos ...
stackexchange/codereview
I'm looking for something like built-in arithmetic operators that has a return value in Prolog (specifically in SWI-Prolog). E.g. if you run A is (1+2) + (3+2)., it returns A = 8.. How can I define func operator to do something like + operator? E.g. A is (2 func 3) func (4 func (2+1))..
stackexchange/codereview
I was wondering if there is an easy way to put entire lumps of text in tags in Notepad++. For example, say I have the following: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Is there a way how I can select the text in each line and then press a hotkey or something, and have all the text I just selected enc...
stackexchange/codereview
I'm looking to create a simple jquery game. It starts like this, the user enters a number in a text field. <form> <input type="text" id="MyNumber" value="" /> <button id="getit">Play</button> </form> <div id="randomnumber"></div> After the click the play button, a series of numbers will appear in the div id r...
stackexchange/codereview
Linux. Tcp socket. When does a send()/write() command fail? Does it return -1 only if the TCP send buffer in the kernel overflow?
stackexchange/codereview
How does one go about securing parts of an HTTP request, say their Session ID? I know you can use HTTPS, but then your servers must decrypt all of the request. Wouldn't it be ideal to only encrypt the required parts of a request? Are there any frameworks or resources out that that allow you or inform you how to do this...
stackexchange/codereview
We are using acegi security for my spring application. Can you please help how to make user to session time out by 5 mins and go back to login screen? I tried to configure session-timeout in web.xml. But it is not working. Thank you for your help and time. I realized that i need to keep 5 min = 300000 mill secconds on...
stackexchange/codereview
I am returning IList from Business layer. But in viewmodel I have to use Find function. One method is to convert IList to List. But is there anyway to add "Find" method to IList
stackexchange/codereview
I'm working on an C# WPF application that will be on a Windows 7 machine with an APC 1500 UPS attached. On power loss, I need the app to respond with certain shutdown activities before Windows 7 shuts it down. Can I deal directly with windows events or do I need to interact with the APC software? If Windows, what e...
stackexchange/codereview
I am trying to develop OpenGL programs with C++ on Mac using Netbeans, and there are some compilation errors: "/usr/bin/make" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .build-conf "/usr/bin/make" -f nbproject/Makefile-Release.mk dist/Release/GNU-MacOSX/sdl_test mkdir -p build/Release/GNU-MacOSX rm -f build/...
stackexchange/codereview
i have to import unmanaged dll into my C# application, I want to know what is the diferent between IntPtr and ref, and what you recommnded me to use and why? Note that both ways are working to me. For example: [DllImport("mydll.dll", CallingConvention=CallingConvention.Cdecl)] static extern Result Init(IntPtr versionIn...
stackexchange/codereview
I'm migrating from Authlogic to Devise. UPDATED: The migration of devise tries to re-create the table users, so i changed as you can see below the create_table to change_table and drop table at the end to remove what i add The problem is when I run rake i get an error . This is the error I get when running rake. == ...
stackexchange/codereview
I'm trying to write a function that will take select the first element in the table that satisfies a criteria. For example, if I am given the following table with times in the first column and number of people infected with a disease in the second, I want to write an argument that will return the time where at least 1...
stackexchange/codereview
I am using IMAP to receive some emails from gmail and then parse them with the new Rails 3 ActionMailer receive method. raw_email = imap.uid_fetch(uid, ['RFC822']).first.attr['RFC822'] email = UserMailer.receive(raw_email) email is now a Mail::Message Class and to:, :from and :subject works fine. However I can't fig...
stackexchange/codereview
This is a follow-up to this question. I am working on a low level C app where I have to draw text. I have decided to store the font I want to use as an array (black and white, each char 128x256, perhaps), then I'd downscale it to the sizes I need with some algorithm (as grayscale, so I can have some crude font smoothin...
stackexchange/codereview
I have a page with an Open Graph image tag: <meta property="og:image" content="http://childhumor2.homeip.net:9009/_ah/img/RYCF7Ty7wODp9R-N_QIWYA===s200"/> The image is a GAE blob and the URL comes from calling get_serving_url. The URL works fine normally. Now, if someone likes this page, the thumbnail image that is...
stackexchange/codereview
I've made a few changes here but I'm still not getting what I expect to get. For example, when I substitute a for 1, b for 2 and c for 2, I should get -1+i and -1-i but when I run code it gives me -0.73205+i and - 2.73205+i. How do I fix this? #include <iostream> #include <iomanip> #include <cmath> using namespace std...
stackexchange/codereview
I created myFile.mdf using SQL Server Management Express and saved some data to it using vb.net. When I tried to open it in SQL Server Management Express, It did not open it saying there is no editor available for it. How to open this file? Thanks Furqan
stackexchange/codereview
How do you make a gtk.ToolButton disabled so that it is 'greyed out'? Like this: How do you make it enabled again?
stackexchange/codereview
In the #define what does the L mean ? #define NT_DEVICE_NAME L"\\Device\\SIOCTL"
stackexchange/codereview
I have such piece of code: namespace NetHacking { interface IPlugin { void Execute(PluginData data); } public class PluginData { private readonly string ConstString = "Const data"; public void Print() { Console.WriteLine(ConstString); } } [StructLayout(LayoutKind.Explicit)...
stackexchange/codereview
I would like to run a bash script that recursively cleans up every filename in a directory. For example I have the filename: The.Sarah.Jane.Adventures.S04E07.The.Empty.Planet.Part1.WS.PDTV.XviD-BiA.[sharethefiles.com].avi The.Sarah.Jane.Adventures.S04E08.The.Empty.Planet.Part2.WS.PDTV.XviD-BiA.[sharethefiles.com].avi ...
stackexchange/codereview
I'm a little confused about making Free (lite) and Paid (full) version of an iPhone app. The reason I ask is because I'd like to have two versions for my app: a Free ad supported version and a Paid version, and I'd like to accomplish that with two different targets. Since they will be two different apps in the App Stor...
stackexchange/codereview
i am using a separate framebuffer object for color picking 2d objects in opengl. i am curious if its possible to only draw to the framebuffer and read the color when needed. what i am doing now is in the main render loop i draw the scene to the main framebuffer and then render just the selectable objects to the "picki...
stackexchange/codereview
Assume I have the following rules: unify('test', 'this is a test'). run :- write('Enter something: '), read(X), unify(X, Y), write('The answer is '), write(Y). And then I run it as follows: ?- ['unify.pl']. % unify.pl compiled 0.00 sec, -48 bytes true. ?- run. Enter something: test. The answer...
stackexchange/codereview
I would like to use ASP.net, C# and SQL to display a list of games with radio buttons like below (the x is the radio). One team can be selected for each game. game 1:   x team 4   x team 2 game 2:   x team 6   x team 1 game 3:   x team 5   x team 3 The game list is stored in a table in an SQL database. So far, I ...
stackexchange/codereview
I've been working on trying to write a function that will grab the POST values of any given form submission, pop them into an array, loop through the array using trim, addslashes etcetera pass that value back to a variable where it can then be passed to a database. Now the hurdle I have atm is getting all the input,tex...
stackexchange/codereview
I have work that needs to be done in this order: In main activity: -Show progress dialog -Fetch and Parse XML from web -dismiss dialog -Switch to ListView activity that uses array from parsed XML in first activity My problem is that because I have my fetching/parsing work in an ASyncTask, the main activity immediately ...
stackexchange/codereview
For my MIDI player, I wanted to print 10 times in a second to get an accuracy of the timing but, the program consume quite a large amount of memory, how do I fix the code? public void tick(int seconds) { timer = new Timer(); timer.schedule(new tickcount(), seconds * 100); } class tickcount extends TimerTask {...
stackexchange/codereview
In the definition of kthread_create a task is waken up, does any one know what is this task doing ? struct task_struct *kthread_create { struct kthread_create_info create; create.threadfn = threadfn; create.data = data; init_completion(&create.done); spin_lock(&kthread_create_lock); list_ad...
stackexchange/codereview
I m using map in my application. How to create a custom annotation in iphone? plz give the link to the source...
stackexchange/codereview
I have specified the standard shortcut-generating natives in my installation XML file: <natives> <native type="izpack" name="ShellLink.dll"/> <native type="izpack" name="ShellLink_x64.dll"/> <native type="izpack" name="WinSetupAPI.dll"/> <native type="izpack" name="WinSetupAPI_x64.dll"/> </natives> How...
stackexchange/codereview
I'm just looking for info on how the os handles interrupts in a distributed environment.
stackexchange/codereview
I've got a table where I need to auto-assign an ID 99% of the time (the other 1% rules out using an identity column it seems). So I've got a stored procedure to get next ID along the following lines: select @nextid = lastid+1 from last_auto_id check next available id in the table... update last_auto_id set lastid = @...
stackexchange/codereview
I don't know if there are any Ubercart guru's out here, but here's my question: I'd like to give discounts to customers who order more then 1 of the same product. Lets say the prices are as follows: 1 product - $5 each < 10 products - $4.50 each < 100 products - $4 each Anyone knows how to realise this? I thought ...
stackexchange/codereview
I have this mdx query: with member [Measures].[MemberName1] as '[dequipo.jequipo].CurrentMember.Caption' select NON EMPTY {[Measures].[MemberName1]} ON COLUMNS, Hierarchize(Union({[dequipo.jequipo].[All dequipo.jequipos]}, [dequipo.jequipo].[All dequipo.jequipos].Children)) ON ROWS from [Ctrabajo] I want the values o...
stackexchange/codereview
Im trying to use the php function 'readfile(path_to_image)' to dynamically display an image. While its working with php script file encoded as ANSI, it fails when the same script file encoded in UTF-8 (or even included in a file that uses UTF-8). Any idea how to solv this? Sorry, the code is as follow: header('Content-...
stackexchange/codereview
Then the user uses TAB or SHIFT-TAB to "jump" to a certain text-box and that text-box happens to have a value in it, then that value will be auto-selected. I would like to disable this behavior. I assume that can be done inside the focusin event handler: $("input:text").focusin(function() { // "un-select" the ...
stackexchange/codereview
Currently attempting to debug with KDbg / gdb the source code for Towers of Hanoi from http://www.kernelthread.com/projects/hanoi//html/asm.html (great resource) Since I wanted to review how the stack is used within this problem, I assembled it with NASM and used GCC to link it. However, I noticed that in KDbg, the cur...
stackexchange/codereview
I'm trying to use the .Net confgiuration model to handle the ability to load and merge together a heirachy of configuration files in a similar way to how the heirachical ASP.Net web confgiuration files are merged together. Thanks to the excellent Unraveling the Mysteries of .NET 2.0 Configuration series of articles I'v...
stackexchange/codereview
I have created a edit control with ES_PASSWORD . I want to change the color of my static box to grey. case WM_CTLCOLOREDIT: { HDC hdc = (HDC) wParam ; SetBkMode( hdc, RGB(65, 65, 65)); return (LRESULT)GetStockObject(NULL_BRUSH); } But still by edit control is white color :( Ple...
stackexchange/codereview
I know that's a mouthful in the title, but here's what's happening... I'm using Eric Martin's SimpleModal plugin in my project. When a modal popup is shown, I want to show the cursor as busy, not on the popup itself but on the overlay for the background. This is fine; it works, I added cursor:wait to the overlay div's ...
stackexchange/codereview
In cakephp, I want to import a vendor php file which contains different classes eg(class A class B, class C, each having __construct() method), in my component.I want to create objects of each class in the component and call respective class function in my controller. What is the correct process to implement it.
stackexchange/codereview
I've developed a project in LabVIEW. Now i need to convert the entire project into C#. I can convert all the VIs which is developed by me. But in my project i referred some of NI's VI for exampleGet DAQ Device Information.vi . How do i get the functionality inside thist VI. Or Does NI provide any dll for this.
stackexchange/codereview
I have one project using NHibernate 1.2. I know it's old, but I've used it since I'm working off NHibernate in Action, which targets that same version. I've been thinking I should update my understanding of the tool, as well as the tool itself. But I wonder what the differences are between versions. I know 2.1 has been...
stackexchange/codereview
Hey all, I have the following setup in my webroot: /issues (Trac install) /myapp (Cake install) What I want to happen is that when I go to http://example.com/, it will pull up the cake app - basically, redirecting ^(.*) to myapp/$1 (but invisibly - the URL for users/login is http://example.com/users/login). I...
stackexchange/codereview
are there any way to get list of background processes and handle them at iPhone iOS4 on my own program? which part of apple api include that ? is it possible at all? or OS defends this processes ? pls give me some guide or advice thank you very much
stackexchange/codereview
i created new joomla module "hello world". And how make that, his show only i push on the menu, for example "Hello worl mod" link. In short, how to add a module to the menu. Thanks
stackexchange/codereview
This function uses jQuery to modify the contents of a DOM element. What am I doing wrong? function updateScore() { alert("Test score is: " + bucket.score); $("#testScore").innerHTML = 'Current score is: + bucket.score'; } The alert runs, but nothing else does. I have a <p> with the id testScore, but it doesn't...
stackexchange/codereview
So my AnkhSVN got broken. It showed me some cryptic error message which I don't remember. And then it was no longer visible anywhere in VS (for example in context menus in the solution explorer). I managed to fix it though. Will post answer.
stackexchange/codereview
In the past few days I have one question: In MFC, we create an application object derived from CWinApp. We create this object globally. So the MFC framework will use this object to start the application. But I don’t know how the frame work comes to know about my global object. Please explain me the internal mechanism ...
stackexchange/codereview
While building a little sample program with Microsoft VisualStudio 2008 I noticed an odd thing about the deduction of types passed to templates. Consider this example: template<class T> void f( T v ) { x; // trigger a compile error (void)v; } template<class T> void g( T v ) { f( v ); } void h() { int i;...
stackexchange/codereview
I have a an application layout template with: <%= yield(:railed) %> To handle contact in the right rail (right column 300px). In the actualy DEF SHOW page I use: <%- content_for(:railed) do -%> HTML STUFF goes here <%- end -%> The issue I'm having now is that for one of my controllers, Im using AJAX to hit DEF Show,...
stackexchange/codereview
I know that there is a supported Scala DSL for Camel. Apart from that Is it realistic to replace Java (the language) completely by Scala for a Camel based project? Which kind of known problems are known to exist? Which workarounds exist for those problems (other than using Java)? I am mainly looking for less boilerpl...
stackexchange/codereview
Very basic question. I plan to do our builds via Hudson and have android apk files available for download there. Is R.java in the /gen directory something that you check-in with you VCS? Or is it something that needs to be ignored and android sdk will generate every time if it doesn't exist?
stackexchange/codereview
Looking into the Const::Fast source I noticed that it used the built-in function Internals::SvREADONLY internally. Is it safe to use that function directly in my Perl script? It seems to be present in core from Perl 5.8. my $PI = 4 * atan2 1, 1; Internals::SvREADONLY($PI => 1); $PI = 2.718; # Modification of a read-o...
stackexchange/codereview
Following is not working <asp:TemplateField HeaderText='<%=class.getText("Address")%>' SortExpression="FirstName">blah blah</asp:TemplateField> I cannot use "#" as this is not databind element i.e HeaderText='<%#class.getText("Address")%>'
stackexchange/codereview
For e.g in SQL I have: CONVERT(VARCHAR(10), mydate, 120) CONVERT(DECIMAL(18,2), cost) Is there an equivalent for these in Oracle?
stackexchange/codereview
Can anyone shed some knowledge on this? My answer is no, it is not true, because SHA1 has a strong collision resistant property.
stackexchange/codereview
How to remove all flash objects from html with regex , code needed at c# Regex will remove all html objects from html so there will be no flash based objects at results
stackexchange/codereview
When I go on the Crystal Report page in my asp.net application, it only shows the Crystal Report viewer, and on the page text box it shows the 1 digit like 1/1 on clicking on the text box and pressing enter the report shows up....what could the problem be? It is kind of refreshing the report through the Crystal Report...
stackexchange/codereview
In a form I'm building using Zend_Form on Zend Framework project, I need to have a variable number of textareas. I need them to be posted with the array notation so I can use them. Without Zend_Form, this is easily done adding square brackets to the name of the textareas: <textarea name="mytext[]">one</textarea> <tex...
stackexchange/codereview
I want to extend Windows 7 Explorer.exe (32/64 bits) where does one start? I want to modify UI adding new menu items and perhaps add new windows directly inside of current window. Is it related to "Basic Folder Object Interfaces"? Any help URLs, Books anything appeciated!
stackexchange/codereview
SQL2008. I have float values in a table which need to be overriden folowing set of rules. Rules are in another table. However the rules are hierarchical i.e. - I need to apply most strict of all suitable rules per each row in main table. Here is the example... Rules table (B and C can be NULLS) A B C Value 1 ...
stackexchange/codereview
Consider the following algorithm for topological sort given in my textbook: Input: A digraph G with n vertices Output: A topological ordering v1,v2...vn of G, or the non-existence thereof. S is an empty stack for each vertex u in G do incount(u) = indeg(u) if incount(u) == 0 then S.push(u) i = 1 while S i...
stackexchange/codereview
I have a databound button that has a TargetNullValue: <Button Content="{Binding Path=NextItem, Mode=OneWay, TargetNullValue='None'}" /> That works fine, and when NextItem is null, the button shows "None." But I want to bind the null value to something. To simplify things, let's assume that I have a property on my View...
stackexchange/codereview