instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have developer account in tell studio , I tried some basic snippet its working fine, finaly i tried record tag, but its not working , eve NOINPUT TAG also not working , This is my snippet , <vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"> <form id="form-record"> <record name="greeting" beep="true" ...
stackexchange/codereview
Indeed.com groups duplicate job postings by title and description. Here is an example of what I am talking about. How would I go about doing something like that? Is it just a simple Group By statement or something else entirely?
stackexchange/codereview
How do I upgrade my Visual Studio 2010 project from Silverlight 3 to Silverlight 4? When I choose the properties for my project and then choose the "Silverlight" tab I can see that I have a drop-down menu to change the "Target Silverlight Version" but I only have a "Silverlight 3" option. Thanks for answering a noob q...
stackexchange/codereview
I have a string input by the user, this is string is treated to have only numbers, such as: "3472042". I then convert this string to a double value, but I want it to be formatted as a money value, like: 3.472,042 Just like DecimalFormat in Java if that helps. I tried some things with NSNumberFormatter but no luck. Can ...
stackexchange/codereview
Sending emails in .NET is simple - create MailMessage and send using SmtpClient. But how do I check my Inbox i.e. get list of emails that have arrived to me?
stackexchange/codereview
I'm using OpenLayers to display a map in a web page. I am using tiles from CloudMade, but the same issues occur with the Mapnik tiles from OpenStreetMap. I'm trying to restrict the map so that the user cannot zoom all the way out to world view -- I want them to stay at roughly a city level zoom at minimum. I have tried...
stackexchange/codereview
I'm developing a game for iOS. I'm using cocos2d libs. I want to have an object, that have 3 parts - beginning, ending and the middle. I've got the image with these components. And the object can be stretched, when created. But only the middle part should be stretched, the beginning and endings should have no scaling. ...
stackexchange/codereview
I have a plugin that I have been using for quite some time, and it basically just uses Sockets to send a request. The problem is, when you use the plugin on a game server, you have to login to SteamCommunity.com on the machine first to store the cookie. I want to convert it to C++ to alleviate that step by connecting t...
stackexchange/codereview
I'm trying to do something that I thought would be relatively simple in WinForms, but it's not turning out that way. Here's what I want to do: Have a ComboBox's dropdown values populated from an array. For example: Dim versions As String() = New String() {"3", "4"} cmbVersion.DataSource = versions Simple, no problem. ...
stackexchange/codereview
SDK level 8 (Froyo) has introduced the native capability for the MediaPlayer to connect to a streaming source, like Shoutcast. Previous SDK versions were able to do workarounds, such as run a local proxy on the device (see NPR). I took the same approach as NPR and am using a StreamProxy. However, NPR first checks if th...
stackexchange/codereview
I have an image prepared with transparency, like this: With two UIviews, I configure the background colors as so: self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; self.dashedView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"red_square.png"]]; I expect the red square to be...
stackexchange/codereview
What is the preferred way of removing the last n characters from a string?
stackexchange/codereview
How do i track mouse-events on non-rectangular graphics drawn on a panel? When using rectangular graphics or graphics that can be contained within a rectangular bounding box, i just use Rectangle.Contains. What do i do with non-rectangular shapes.
stackexchange/codereview
Currently, I work in an existing php web application with sybase database connection. The web site is built using HTML, CSS, JavaScript, Photoshop, Flash, PHP, IIS, and Sybase. I would like to add some web pages to this web application so I take a copy of one web page like AboutUs.php for Example and I determine a cert...
stackexchange/codereview
I am using JFreeChart to generate bar charts. Everything is working find, but I have one very minor issue: the left side of the bar is overlapping the y-axis. I would prefer to have the bars sticking (but not overlapping) to the axis. If my description is unclear: everything would be perfect if the bars move 1 pixel to...
stackexchange/codereview
I understand I can get my script files from their CDN for my asp.net application, but what's the best way to implement this? It says that requests will be redirected to the CDN if I enable the property of the script manager, but what does that actually mean? At the moment we have lots of pages which reference JQuery, s...
stackexchange/codereview
I am wrting an android application which displays some buttons dynamically in a linear layout with vertical orientation.When ever we click on any button a new activity should start in the same frame . How can this be possible ? can anyone help me in solving this issue.I will be waiting for reply. Thanks in Advance,
stackexchange/codereview
i need to create a folder named log after giving the path in a textbox like D:\New Folder without giving the hardcore path in the code like var _logFolderPath = @"D:\New Folder\log"; and after that i need to create two text files ba.txt and ra.txt in that log folder This is my code DirectoryInfo Folder = new Directory...
stackexchange/codereview
I'm using the jQuery UI Datepicker to implement a simple calendar. In it I have the callback beforeShowDay to a custom function so I can highlight different types of days on it (working days, bank holidays and such), however, the classes I return don't seem to be applied. Here is the code to initialize the datepicker: ...
stackexchange/codereview
I would like to store an object into a SQLlite database. I am looking for how to best do it in order to ensure that if I need to updata/change this object in the future that users of the new and old object layout will be minimally impacted. In other words I want to ensure that making changes to the object will have min...
stackexchange/codereview
I am working with GAE and have a user table. Now I want to model friend relationships between users. I am thinking of having 3 properties user1, user2 and request_status, but the problem is in querying to find a particular user's friends. Since GAE does not allow OR filtering, I have to merge two queries. Clearly that ...
stackexchange/codereview
Browser is Firefox 3.0.10. I am requesting a page using Ajax. The response is in progress may be in readyState less than 4. In the meantime I am trying to reload the page. The request ends, giving an empty response. I used alert to find what string has been given as response text. I assume that by this time the ready s...
stackexchange/codereview
I have 5 anchor tags on my page. Now when one of these tags gets clicked I want to call a JavaScript function, in this function I need to find out which of the anchors was clicked. How can this be handled? I want to do it in pure JavaScript or with dojo.
stackexchange/codereview
Just did this on-enter-submit the form jQuery script. Before you start flooding "Don't it allready do this?" - yes if you have an actual submit button it does. But i'm using <a> tags styled as buttons to submit the form. Unless javascript is disabled a <noscript> will reveal an actual standard looking submitbutton. It ...
stackexchange/codereview
Sometimes when I search some phrases in Google (e.g "My Custom Search Phrase"), I see some very interesting results. Sites that look like: http://www.example.Com/My_Custom_Search_Phrase/ or: http://www.example.Com/My_Custom_Search_Phrase.html Actually, I don't like these sites. I know it's a SEO trick and pages are ge...
stackexchange/codereview
In Xml schema I can choose the following in respect to a namespace: Force Elements to be qualified Force Attributes to be qualified Force both Elements and Attributes to be qualified. What is the best option and why?
stackexchange/codereview
On my local machine, I run a python script which contains this line bashCommand = "cwm --rdf test.rdf --ntriples > test.nt" os.system(bashCommand) This works fine. Then I run the same code on a server and I get the following error message 'import site' failed; use -v for traceback Traceback (most recent call last): Fi...
stackexchange/codereview
Good morning everyone, I've got an issue when trying posting on my facebook wall from an application developed on an Android phone. Here's the problem: Sometimes different "strange" error message appear like "error with HelloIdahoFalls.com" or "HelloSiouxCity.com" or "HolyPlanets Connect" and so on. I really don't know...
stackexchange/codereview
Could anyone help me on why FLVPlayback isn't working properly in MVC views? I think i narrowed it down to the "hard coded" skin url file not being correct. Where should I put the skin file( e.g. skinOverAllNoCaption.swf) so that flash can find it? Or are there any alternative approaches to somehow setting the skin fi...
stackexchange/codereview
my device doenst work at all when i load an project that contains any mapkit framework files it says ld: warning: in /APP/MapKit.framework/MapKit, file was built for i386 which is not the architecture being linked (armv6) and it doesnt let me test it on the device, however when i load this on my simulator it works. Any...
stackexchange/codereview
I have an HTML table. In each cell there is an image followed by some text. Something like this: <td> <img src='image.gif'>This is a test </td> I have to run a jQuery Ajax call and during this call I want to change the image to a loading image that I have (loading.gif) and then return it to the regular image (image....
stackexchange/codereview
Can someone explain to me Ruby's use of pipe characters in a block? I understand that it contains a variable name that will be assigned the data as it iterates. But what is this called? Can there be more than one variable inside the pipes? Anything else I should know about it? Any good links to more information on it? ...
stackexchange/codereview
Can I make a customer self-service product selection tool for the web/AIR with just Flash/Actionscript 3 without having to use a separate database like SQLite? Essentially, after selecting a general category, the client drags and drops the tag words relevant to their needs into an adjacent box and a list of products t...
stackexchange/codereview
Hey all - I am using a flipper in my main xml file to view multiple layouts in my app. For instance, if something = 1, the user is shown one version of the flipper, where if something = 2 the user sees a different version. Is there a way I can view the layout of the xml file for the other flippers I have rather than th...
stackexchange/codereview
I've created an outlook plugin to add mailitems to my program. Now it would be nice the icon (pictogram) of the mail changes after i added it in the software. So you could see which mails are added into the program and which not. Is that possible? (I created the plugin with AddInExpress in Visual Studio 2010, c#)
stackexchange/codereview
I have some html/php pages with large amount of data. It takes few more extra seconds to load from the server. Is there any way to show "loader animation" for html pages/php pages using jquery? After completely loading the html/php page, the "loader animation" should be hide. Thanks in advance
stackexchange/codereview
I have a Record that I would like to store for each Item that add to a Listbox. Would I need to make the record a class instead to accomplish this? TServerRec = record ID: integer; DisplayName: string; Address: string; Port: integer; end; procedure TMainForm.PopuplateServers; var server: TServerRec;...
stackexchange/codereview
After created IronRuby project in VS2010 by using IronRuby v1.1.x, I was able to use almost .NET library by importing them. But can't actually compile ironruby into exe/DLL. I see the build option but can't build any exe or DLL from IronRuby project. Please help !
stackexchange/codereview
I need to determine if a user's current NSDate (local time zone) falls in the range of two NSDates belonging to other time zones. For example: I'm in California, and it's 20:00 PST. A coffee shop in New York is open between 08:00 and 00:00 EST. The coffee shop is stored as those exact values and sent in the XML along w...
stackexchange/codereview
I'm using a plugin called cloud zoom. the problem is, it attaches itself to anything with class="cloud-zoom" when the DOM is ready. My problem is I don't attach that class to DOM elements at render time. It is appended dynamically. So I need somehow to mix .live() with it to make it work: $(document).ready(function () ...
stackexchange/codereview
I want download this video on my PC ( also in HD format ): http://www.youtube.com/watch?v=d4RiUy23e9s So I want the URL of the .flv, .avi, .mp4 or whatever to download it with wget or other download manager. How can I do this ? I don't want get the url throught programs o webtools like keepvids.
stackexchange/codereview
I am looking for a CMS that allows me to export the site as static HTML (i.e. the site must be able to work without the CMS itself). I want to be able to create the site on my PC and then upload the exported static HTML to a hosting server. I must mention that I do not want to use site downloaders to "pull out" the con...
stackexchange/codereview
I've been following Beej Networking guide and in the server section there is portion of code where it has called a function fork(). if (!fork()) { // this is the child process close(sockfd); // child doesn't need the listener if (send(new_fd, "Hello, world!", 13, 0) == -1) perror...
stackexchange/codereview
Hey. I've got an HTML textbox, but when I press enter, it causes a postback. I'd rather it either do nothing or 'click' a hyperlink anchor. How do I stop the textbox from causing a postback when the enter key is pressed? Tthanks I have: <input id="textbox" type="text" /> <a href="#">Locate</a>
stackexchange/codereview
Imagine you're debugging a function within a function. You would be on level 2 (Browser [2]). Is there a way to quit level 2 and go to level 1? Q will drop you out of any debugging, so I'm looking for something that would just quit the current level.
stackexchange/codereview
As a part of our CS grad project, we are developing an android application that receives push recommendations from our server based on geolocation logic & social-networking APIs. We still have lots to learn & following are the choices we have made: Poll for recommendations as normal HTTP requests Push the data in XML ...
stackexchange/codereview
We all know the solution to scroll to a position from the top of the viewport: $("html, body").animate({scrollTop:240}, 'fast'); Is there a way to scroll similar to scrollTop, just from the bottom of the viewport? What I want to do: on a click event the page should scroll to a div anywhere in the body, it should stop ...
stackexchange/codereview
foreach ($videoFeed as $key => $videoEntry) { if ($key == 0) { $flashUrl = $videoEntry->getFlashPlayerUrl(); } } The videosFeed contains the last videos of a given youtube feed. If I upload a video I know that the last uploaded video will be the one that as the key 0. The only reason for this is because, on t...
stackexchange/codereview
I have a richtextbox and when is full I want automatically scroll to the bottom, It is possible? Do this with xaml?
stackexchange/codereview
Hi i new to java i stuck here please help me... my problem is "I wrote a class to write the .properties file it is working fine when i run through normal application.But the problem is when i am using this in jsp means i have create object to this class and used it in my jsp but Iam unble to modify/wr...
stackexchange/codereview
I'm creating a web request in ASP.NET and I need to add a bunch of data to the body. How do I do that? var request = HttpWebRequest.Create(targetURL); request.Method = "PUT"; response = (HttpWebResponse)request.GetResponse();
stackexchange/codereview
I have a flash application that I have been working on for 11 months, and would like to translate it to a different language / platform, preferably Python and OpenGL. One of the main features in my program is to draw flash vector graphics (or display objects) and then redraw them to a bitmap texture. Is there any way t...
stackexchange/codereview
is it possible to call c# methods written in managed code (maybe in a class or a library) from a native c code (and how)? thx edit: with "c#" i mostly refer to mono or even portable.net and the OS is Linux
stackexchange/codereview
I need to get the rectangular counter of a sobel edge detected and threshold binary image, Does anyone know any suitable algorithm to get the count, which can be implemented using c sharp.
stackexchange/codereview
which background process helps in writing the undo data to undo tablespace /system tablespace?
stackexchange/codereview
What is the simplest way to create a Django template tag which displays the Django version on a template? I want to put the following in a Django template and have it output the Django version (in my case, base.html): {{ django_version }} I know that the following Python code outputs the Django version in a shell, bu...
stackexchange/codereview
I am developing an ASP.NET application in which I need to provide support for two databases, MySql and MS SQL Server 2005 and 2008 (one database will be used at a time). How will I configure the ASP.NET app to connect with different databases without reinstalling the app (i.e. using configuration)? How will I configur...
stackexchange/codereview
I am working on WPF TreeViews. I am able to add the new Items under tree, but I am not able to delete them from the list. In my code I am trying to get the index of the selected tree item and trying to Remove it. But the code is returning Index "-1". This results in an ArgumentOutOfRangeException. Please help to fix ...
stackexchange/codereview
I've looked at the usage, but haven't understood from it how to configure multiple servers. I added separate server elements to settings.xml - but I don't understand how to specify a different URL for every server. The URL element belongs to the global plugin configuration. How do I configure multiple server URLs?
stackexchange/codereview
Does anyone know the proper way to query azure table storage for a null value. From what I've read, it's possible (although there is a bug which prevents it on development storage). However, I keep getting the following error when I do so on the live cloud storage: One of the request inputs is not valid. This is a ...
stackexchange/codereview
I used TabLayoutPanel widget in my GWT project but it is not working in ie. somewhere i read if i use RootLayoutPanel instead of RootPanel it will work. but for usnig RootLayoutPanel I should use some standard doctype in my html page. which of doctype i can use in my GWT project? RGDS
stackexchange/codereview
I've got some perl source code here, how do I build it on Windows, to get a windows binary that I can work with?
stackexchange/codereview
I'm trying to reference Rails.root in my application.rb but it is nil, why is that?
stackexchange/codereview
One of the .jar files I am using only works with the 32-bit java virtual machine on windows. I installed the 32bit versions of eclipse and the jdk but it is still getting the same error. What commands would I use in the run configuration to specify 32-bit virtual machine for running the application that uses this .jar ...
stackexchange/codereview
Everytime I view the source of ASP.NET website I found alot alot of HTML markup generated. I even tried Visual web Developer and design a simple page and then do the same thing with PHP and I found ASP.NET generates more HTML! Now, how can ASP.NET be faster if it is generating HTML in this way!
stackexchange/codereview
I need to get an anchor tag to delete a session in php + log the user out of Facebook. Before I used Facebook connect, I was using this php code to destroy the session: if(isset($_GET['logoff'])){ $_SESSION = array(); session_destroy(); header("Location: /"); exit; } And this for the anchor tag: <a href='...
stackexchange/codereview
In the following post I followed the examples to create my httprequest and list files from webServer directory: C# HttpWebRequest command to get directory listing I'm trying to use the example there to list files from my web server. I can list the files from the example server quoted on the link, but my server just sh...
stackexchange/codereview
Anyone got any good hints for working with an RTree in Perl? Either a pure RTree implementation which is performant or something I could hijack from a GIS project? Or would it be easier to use something like SQLite's spatial index support? Cheers
stackexchange/codereview
Is this how i write to reach the div phone in this code with nested divs? CSS #pagewrap #pagemain .content .colrow .container .col548 #contactInfoArea #phone { } HTML <!-- Start: Pagewrap --> <div id="pagewrap"> <div id="header"> <div class="headerWrapper"> <div id="headerTopItems"> <a class="mainLink" h...
stackexchange/codereview
Hi All Please tell me how to resolve Javascript Error 'Type' is undefined in 'MicrosoftMvcAjax.js' Please help.
stackexchange/codereview
Currently, I'm using GEdit as my text editor for editing Ruby and Javascript source codes. I would like to give GVim a try to be my editor choice. I have tried to follow https://github.com/akitaonrails/vimfiles and few others instructions, but I don't get any luck, when I source ~/.vimrc, then I always get: bash: /home...
stackexchange/codereview
I am certain that this problem can be solved with relative ease but I am struggling to find the problem. My code simply reads all the words from a file then stores each word, word position, start and end of sentence in an array. The array is output to another text file. I can read in all the info up to the last sentenc...
stackexchange/codereview
We have been given an array of size N that contains integers in the range 0 to N-2, both inclusive. The array can have multiple repeated entries. We need to find one of the duplicated entries in O(N) time and constant space. I was thinking of taking the product and sum of all the entires in the array, and the product...
stackexchange/codereview
I decided to learn Python Gui development and, as PyQt is non-free, the choice was PySide for it. But, unlike PyQt, PySide doesn't have any tutorials or screencasts, just documentation useless for very beginners. I have no Qt experience, so even setting up development environment in Ubuntu is a problem. Could you advic...
stackexchange/codereview
My app uses two databases (separate files). To handle these databases I have created two Helper classes which extend SQLiteOpenHelper, one for each database. I am now going to add a third database and wonder whether I need to create yet another Helper class (and if I used a 4th and a 5th database would I need even more...
stackexchange/codereview
I use this code to change each symbol in a string with different symbol: $test = "უნდა არ არ ყაზახმა ერთი ორსავეს დათვალიერებული. გულის ჩავარდნილი დაეძებდა მათი"; $qart = array("/ა/", "/ბ/", "/გ/", "/დ/", "/ე/", "/ვ/", "/ზ/", "/თ/", "/ი/", "/კ/", "/ლ/", "/მ/", "/ნ/", "/ო/", "/პ/", "/ჟ/", "/რ/", "/ს/", "/ტ/", "/უ/", "/ფ...
stackexchange/codereview
I currently work with some code that is repeated - more specifically, code that deals with the creation of model objects from DataRows and DataTables. I thought it would be safe to create Extension Methods to cut down on this repeated code, and add some syntactic sugar. What I had Before (simplified): public List<MyOb...
stackexchange/codereview
I want to get all events from all calendars, how do i iterate thru all calendar folders and then all events for each calendar?
stackexchange/codereview
I have a soap webservice that returns something like this: ListResult{id=123; result=ListItem{currencyID=2; currencyISO=EUR; desc=description; hasEMagazine=true; hasPrintMagazine=true; incentiveB=0; incentiveE=1000; objectCatalogID=123; objectID=12345; objectTypeID=1; picURL=url; priceB=222 ; priceRB=anyType{};0 sortID...
stackexchange/codereview
i need to write a php variable at the top of php file after the php tah( <?php $test = "this is a string"; ?> After appending the variable, the above content shoud be like, <?php $subscriptionId = "123456789"; $test = "this is a string"; ?> Could not make it work using fwrite. Please suggest solution ...
stackexchange/codereview
User selects a date from the date-picker and the date is put into a text-box. But when i choose a date some date should check another text box date and give me the difference. The selection-change event does not fire (as expected). protected void dtpleavestartdate_SelectionChanged(object sender, EventArgs e) { stri...
stackexchange/codereview
I'm trying this with my Nexus One. I have the android SDK and have used the command adb pull /data/data/com.myapp.android/databases C:\pulls but all I get is pull: building file list... 0 files pulled. 0 files skipped. Also, it seems no matter how much data I add to the tutorial NotePad app I installed, the data size...
stackexchange/codereview
I have issue with vector tables(Interrupt tables) which are in Bootloader code and could not be accessed by my Application code. Well, the main issue is that the address of ISRs is different in Bootloader and Application code. So, my application fails to start. Any suggestion of how can I make my application code to fi...
stackexchange/codereview
I've got an aspx masterpage and want to include Google's jQuery script. However, to test it's working, I've got the below code in the head of my masterpage. However, none of the content pages display the alert. What am I missing? <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jq...
stackexchange/codereview
I have a .Net service running on IIS 6 and WCF that I want to create two endpoints for. One secured with HTTPS and Basic authentication that will be accessed from our DMZ and one endpoint with no security that will only be accessible from the internal secure network. A firewall and maybe .Net filters will ensure that t...
stackexchange/codereview
I'm trying to speed up a Drupal 6 site that's running several modules. I'm looking at the queries on specific pages and see that the site is running queries that don't need to be run on some pages. Looking into it, it appears some of the modules contain code that basically says "When someone visits page X, run this que...
stackexchange/codereview
I tried several mod_rewrite but I asking your help, because this is a complicated matter. Wordpress has its own permalink structure that uses mod rewrite to make the url’s search engine friendly. I have 2 plugins. 1. Turns a page into a subdirectory. So domain.com/page/ turns into page.domain.com 2. The second one is a...
stackexchange/codereview
I wish to produce the Cartesian product of 2 lists in Haskell, but I cannot work out how to do it. The cartesian product gives all combinations of the list elements: xs = [1,2,3] ys = [4,5,6] cartProd :: [a] -> [b] -> [(a,b)] cartProd xs ys ==> [(1,4),(1,5),(1,6),(2,4),(2,5),(2,6),(3,4),(3,5),(3,6)] This is not an ac...
stackexchange/codereview
I am making a very simple httpservice request w/ a php file that is on my remote server: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:halo="l...
stackexchange/codereview
Need to run the toggleSlide() jquery function when the user selects a value in the dropdown menu. In Firebug i get the error "selectMenu is not a function" but i am not sure how to correct this as I am very new to javascript. This is my Javascript: <script type="text/javascript"> $("#selectMenu").bind("change", fun...
stackexchange/codereview
I have a problem with a Batch script im trying to make. I've searched soon the whole Internet reading about diffrent ways to remove text from within a text file, but I can't seem to get it right. The code I have problem with is: :delete set /p dnr=Write what you want to delete? for /f "tokens= delims= " %%c in (documen...
stackexchange/codereview
I am trying to fetch the message from the RabbitMq's queue but only first time it gives me the message count and then it is not giving me any count.I am using scala language and uses its actor.Any kind of help will be appreciated. code as follows def act { loop { FACTORY = new ConnectionFactory() // pr...
stackexchange/codereview
I still can't really figure out if I should go with Mercurial or Git. Git is directly supported by Xcode, and Mercurial isn't. So it might be clever to stay with Apple and use what they prefer. Since Git and Mercurial are pretty much the same thing though, I see no big reason why to use Mercurial anyways. But now the p...
stackexchange/codereview
I have a problem where I am using ASP.Net to write a cookie. The code is correct and works great in Firefox and also works in IE on other machines. My machine, however, does not want to play ball. I have reset the settings in IE to no avail. The only thing that makes it work is when I uncheck the Protected Mode in ...
stackexchange/codereview
I'm working on a stored procedure and at one point I want to check my table variable to see if there are exactly zero rows with a specific field equal null. In other words, for every row in my table, this field has a non-null value. I'd like to not do it by checking count(), but by using EXISTS. Currently I'm doing t...
stackexchange/codereview
To make my rails website work, even when the Database in down. in the def rescue_action_in_public(exception) function i catch the Mysql:Error exception and render a page, which doest have any database reference ,like def rescue_action_in_public(exception) when Mysql::Error, Errno::ECONNREFUSED, Timeout::Err...
stackexchange/codereview
I converted a RGB-image both in MatLab and OpenCV to the Lab-colorspace to do some color manipulation in Lab-space. In MatLab I get good results, but in OpenCV the result image is messy. I checked the results of the conversion rgb2lab for the RGB-value [0 255 0] in MatLab and OpenCV, the results are the same. But when...
stackexchange/codereview
Probably quite easy question, but I've just started working with ZF. I have created a class class Application_Paginator_Adapter_DoctrineQuery implements Zend_Paginator_Adapter_Interface and I've added this class to a file application/paginator/adapter/DoctrineQuery.php. When I try to create object of that class inside ...
stackexchange/codereview
I want to run a test that tests the order of the elements I want the order to be ascending by date. Here is my cucumber feature scenario and the step for the last sentence. Scenario: Order of the events should be Ascending Given I am signed into an account called "Gorilla Tech" as a customer When I follow "Re...
stackexchange/codereview
I am writing a program in PHP that uses file uploading and file downloading. The one problem is that the files can be any type, and I don't know how to make it so that the link makes a download popup appear. How do I do this? Thanks! Nerd With a Vengeance
stackexchange/codereview