instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
This seems simple enough, but can't see to find any information on it. All I want to is view the table definition for sysobjects in Object Explorer along with all of the other system tables. I know I can jus select * from sysobjects, but I want to see all of the other system table definitions as well in object explor...
stackexchange/codereview
I was wondering if its possible to to connect (thro' SSO) to a locally (in my env) hosted application from a java web application running on google app engine. Assume I have an application based on a tool/framework which cannot be moved on to the app engine due to the app engines various restrictions. Is it feasible ke...
stackexchange/codereview
While working on a content management system, I've hit a bit of a wall. Coming back to my data model, I've noticed some issues that could become more prevalent with time. Namely, I want to maintain a audit trail (change log) of record modification by user (even user record modifications would be logged). Due to the inc...
stackexchange/codereview
Can anyone tell me how to write a verilog code for DWT of an image and download in to fpga. Actually my project is to write a verilog code to perform discrete wavelet transform of a medical image, can anyone frame the logic or if have the code can you send me, please I am using xilinx virtex 2 pro..
stackexchange/codereview
I need a solution for this, I am using bPopup plugin But, I believe that it's a simple jQuery function. I need to pass single variable, say sales id when someone clicks the tag Following is the function code, please suggest me some way to achieve it $("a.sales_info").bind("click", function(){ $("#popup").b...
stackexchange/codereview
I'm currently creating a simple console-based game in which the player can move between different rooms, pick up and use items, and eat food. In the game's current state that's about it. What I need help with is: Creating a good "Event" class for my game. The way I'd like it to work is that every item and room should b...
stackexchange/codereview
The goal is to rsync (or using any other tools that give the desired result) only files that are created or modified after a date. I succeeded using this command on OS X 10.6.5: find . -newermt "2010-11-23 16:52:50" -type f -exec rsync -vuptn '{}' ../rsync_test/ ';' I don't think -newermt is working on ohter OS than OS...
stackexchange/codereview
I started using Ant, that ships with Eclipse. It annoys me, that I get hundreds of warnings in the lines of: [javac] warning: java\io\BufferedInputStream.class(java\io:BufferedInputStream.class): major version 51 is newer than 50, the highest major version supported by this compiler. [javac] It is recomm...
stackexchange/codereview
How can I stream an MP3 in a html page? I am looking for a solution, which does not allow user to download of MP3 content, while allowing user to play it.
stackexchange/codereview
<asp:CheckBox oncheckedchanged="chk1_CheckedChanged" ID=chk1 CssClass='<%# Eval("UserID") + "," + Eval("IsB") %>' runat="Server"/> I got this check box on my page..if I need to assign these two values of CommandArgument in CssClass attribute ie <%# Eval("UserID") %> and <%# Eval("IsB") %> to two strings in my code beh...
stackexchange/codereview
I am using Sphinx to document a web service. I would like to show a formatted JSON web response using the code-block directive, which Spinx does via Pygments, but JSON doesn't have a syntax highlighter in Pygments. What language do you suggest I specify instead? HTML? JavaScript? .. code-block:: javascript { ...
stackexchange/codereview
not sure what i'm doing wrong but it's not stopping after one click. <script type="text/javascript"> $(document).ready(function(){ $(".header").one('click', function(){ $("#fourlocs").effect("scale", { percent: 152, direction: 'horizontal' }, 700); }); }); </script>
stackexchange/codereview
How in the world do I get rid of these buttons?
stackexchange/codereview
Picture a canvas that has a bunch of points randomly dispersed around it. Now pick one of those points. How would you find the closest 3 points to it such that if you drew a triangle connecting those points it would cover the chosen point? Clarification: By "closest", I mean minimum sum of distances to the point. This...
stackexchange/codereview
Well, i have 2 view controllers the fist has three buttons each one represents an image on an array of images. When a user presses a button moves on the second view controller which has just an IBOutlet UIImageView to view the image. How can i do this programming trick using the UIImagePickerController? here are my fil...
stackexchange/codereview
I have a webview control that needs to support the fling gesture in Android in order to bring up a new record (load new data). This is occuring in a class that extends Activity. All the examples I've seen show how to implement gesture support for a textview, but nothing for webview. From what I've read Webview is anoth...
stackexchange/codereview
I am wondering if Python has the concept of storing data in the default variable in for loop. For example, in perl, the equivalent is as follow foreach (@some_array) { print $_ } Thanks, Derek
stackexchange/codereview
We're 5 people who want to start developing a big project. It's an in-house enterprise iPad app only specifically for our company and nobody else. We know how to develop apps with normal Xcode projects but have never used SVN or anything like that before. Bad think I know. But now we want to do it the right way. Are th...
stackexchange/codereview
Can I change the IMEI of an iPhone4? It is just a hypothetical question, I am preparing for a little presentation to show off how easy it is to "hide" yourselves from anyone unwanted (even the carrier) and how people use this to do not pay for their phones, and because of this, I want to show off how easily it can be ...
stackexchange/codereview
i have a multilingual android app, where i have put the different translations in the strings.xml in the respective directory. now i also have a custom xml file, where i would like to reference texts like this: <?xml version="1.0" encoding="UTF-8"?> <rooms> <room title="@+string/localizedtext" /> </rooms> now when...
stackexchange/codereview
I have some problems in printing ticket by dot matrix printer. I have EPSON LX-300+ I am using VB.NET 2008 and Crystal Reports I am using rpt.PrintToPrinter(1, False, 1, 1) method to print My problem is when I print my ticket, the alignment is perfect but the printer eject the latter size of ticket papers. It should ...
stackexchange/codereview
I am writing a command line application in VB.NET. This application is calling another one, msxsl.exe, to run an XSL transform. I am using the Process class to do this: Dim process = New Process() process.StartInfo.FileName = "msxsl.exe" process.StartInfo.Arguments = "base.xml test.xsl -o styled.xml" process.StartInfo....
stackexchange/codereview
I'm working on application for Windows Mobile 6.5 and would like to be able to launch the Bluetooth Manager from my application using System.Diagnostics.Process.Start(file, args), but I cannot determine application I need to launch. I've been looking at the remote process viewer to determine what application is being r...
stackexchange/codereview
Can anyone provide me a query to select the list of all tables in a db that doesn't have their names in uppercase?
stackexchange/codereview
I am having some trouble with the facebook like api. I am creating the like button with the following code: <fb:like href="http://www.nettunes.co.za/artist_profile.php?ref=fb&amp;amp;artist_id=<?PHP echo $row->artist_id;?>&amp;amp;show=albums&amp;amp;sub_section=song&amp;amp;id=<?PHP echo $row->song_id;?>" layout="box_...
stackexchange/codereview
In Hibernate a lot of Basic value types. One of them is 'yes_no' and 'true_false'. And I was wondering what the fundamental difference between these two types? I see that in the database for the type of 'yes_no' written 'Y or N' and from 'true_false' written 'F or T' and no more difference. Then why do we need these t...
stackexchange/codereview
Actually deferred name resolution is about tables in stored procedures. But I noted that sometime I CAN create UDF which refers to not-existent UDF, in other cases I CAN NOT. I didn't find any mention when not-existent UDF names allowed and when they are not. It doesn't depend on UDF type (scalar/table-valued). Looks ...
stackexchange/codereview
We keep our mysql schema files in source control. We keep current base and delta files, and whenever a new version is released, we take a delta files, merge them into base, clear them, and create appropriate migration scripts for production data. We have a good enough set of scripts to do this. My question is - is the...
stackexchange/codereview
I need to add external source code into my Eclipse project. Project Properties>Java Build Path>"Link Source..." seems to be appropriate. But it is necessary to add all the "source" folders of the folder that I link. It is a very complicated Folder structure, where "source" folders are located in different parent folder...
stackexchange/codereview
Can anyone help? I have a change event on a textbox and a click event on a button - all html. Now if I click the button, the click event happens - great! But I if change something in the textbox and then click the button, the event from the Change event happens which is great but I never get the click event in the butt...
stackexchange/codereview
This question is a more specific version of a previous question I asked Table CREATE TABLE Test4_ClusterMatches ( `match_index` INT UNSIGNED, `cluster_index` INT UNSIGNED, `id` INT NOT NULL AUTO_INCREMENT, `tfidf` FLOAT, PRIMARY KEY (`cluster_index`,`match_index`,`id`) ); The query I want to run ...
stackexchange/codereview
Let's say we have an app that needs to display a list of places and which runs on 3 Threads: Main Thread Main Thread Background Sync (to sync places with a server) Geocoding thread (to geocode places in the background) In all 3 threads I have dedicated NSManagedObjectContexts(MOCs). If each MOC can change the under...
stackexchange/codereview
I am looking for a Drupal solution that permits the following functionality file upload to a secure directory - secured by user or role allow user to embed uploaded files anywhere they want within a html 'page' or 'story' node - not just a list of documents in the middle or end of the page. security - prevent non-aut...
stackexchange/codereview
I'm trying to make a BDC connection in Sharepoint 2010 to an Oracle Database using an assembly. When unit testing the assembly, it works perfectly, but when using it in the BDC, I get the following exception: 'The provider is not compatible with the version of Oracle client' The rest of the BDC model works fine; if I r...
stackexchange/codereview
I've used Linq against some collection objects (Dictionary, List). So if I want to select items based on a criteria I write a Linq query and then enumerate the linq object. So my question is that is Linq eliminating looping the main collection and as a result improving the performance?
stackexchange/codereview
I am trying to stretch an HBITMAP with alpha and draw it to anther hdc. I'm using StretchDIBits and then AlphaBlend, as shown in the code below. The problem is that AlphaBlend fails and returns false. 1. Does anyone knows what could be the reason? 2. Is there a better why to stretch and draw a transparent image? void A...
stackexchange/codereview
I would like to create a multilingual android application. Is there a way to detect what language the user prefers? Is there a recommended way to manage multiple languages on Android or should I reinvent the wheel?
stackexchange/codereview
I'm trying to handle the onchangeview event for bing maps In the js intialize method I have the following code: map = new Microsoft.Maps.Map(document.getElementById("mapviewer"), { credentials: bingMapsKey, center : new Microsoft.Maps.Location(42.3508, -71.0717), zoom: 12 }); //Microsoft.Maps.Events.ad...
stackexchange/codereview
I want to do a multiple outer join on a table with 3 others. The join is niddeclaration. The goal is to obtain a declaration with everything in relationship with it in my schema. The existing code did one outer join with the old syntax : where A.x= B.x (+). The 'new ' syntax left outer join seems to do exactly the same...
stackexchange/codereview
I have an ASMX webservice with a number of methods which will return XML. The service returns various different objects and I have created a wrapper object which contains information about the request e.g: [Serializable] [XmlRoot("response")] public class DtoWrapper<T> { [XmlElement("error")] public bool Error ...
stackexchange/codereview
This code (source: http://www.doctrine-project.org/documentation/manual/1_0/hu/component-overview:connection:flushing-the-connection) $conn = Doctrine_Manager::connection(); $user1 = new User(); $user1->username = 'Jack'; $user2 = new User(); $user2->username = 'jwage'; $conn->flush(); is resulting 2 insert queries...
stackexchange/codereview
I have a bunch of restaurants in an Excel. All these restaurants have Lat/Long co-ordinates. Sadly in this Excel their phone number is missing. If I want to book a reservation at a particular restaurant, I'll have to find out manually. Is there some service which legally allows me to return the address along with phon...
stackexchange/codereview
I am using a GridView. Four items in a column. Each element is composed of the following layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:layout_widt...
stackexchange/codereview
Hey I wanna save the order of my list to the sql server database in jquery drag & drop using asp.net c#. How can I do this?
stackexchange/codereview
I just discovered a very strange behaviour. I have a class with a string property. In the setter of this property I compare the old value with the new value first and only change property if the values differ: set { if ((object.ReferenceEquals(this.Identifier, value) != true)) { ...
stackexchange/codereview
Greetings, I am curious if there is any good plugin or project that allows users to add/remove event timegaps and pin the places and possibly generate some sort of output to save to the server side. I have found today's timetable however it is not dynamic where users can slide between events or add new event to a tim...
stackexchange/codereview
Info: I am working with a C#.NET 3.5 winforms application and using Infragistics ultrgrid 8.2 in it. The grid has 5 columns, of which first three are readonly and 4th and 5th are valuelisted dropdowns. The 4th column is called "From". What do I want to achieve: When form launches, I want to set focus to first row cell ...
stackexchange/codereview
really sorry if this is obvious or covered here - have been searching endlessly and can't get the answer clear. i am using dj gem 2.0.3 (collective idea) // rails 2.3.5. dj working great locally using rake jobs:work. but ... script/delayed_job does not work. i seem to recall searching and finding this is a version is...
stackexchange/codereview
If the expected result of the method being tested exists in the official documentation of the method, then indicating the expected result in the test names would be redundant. In fact, if the purpose is to document the method, then the documentation should be written in the method's XML documentation which would provid...
stackexchange/codereview
I am using perfoce TextMate bundle to work with perforce from my TextMate editor. As far as I understood, you can only work with one client spec at a time. So I was wondering if anybody figured out a way to work with multiple client specs, without changing the P4CLIENT environment variable in TextMate.
stackexchange/codereview
I have a pool of immutable encryption helper objects which contain instances of the java JCA Cipher and MessageDigest objects: AlgorithmInstance( Cipher encCipher, Cipher decCipher, MessageDigest digest ) { ... } private BlockingQueue< AlgorithmInstance > pool = new ArrayBlockingQueue< AlgorithmInstance >(poolSize); V...
stackexchange/codereview
How to set up a post commit hook in svn that run "xterm -e unison &" after I commit? cheers daniel
stackexchange/codereview
I was wondering, how I can use JQuery, to execute a same code, when either a page is loaded ready, or a page is visible to user due to back button clicked? $(document).ready(function(){ // Work only first time page loading. // How about when user click on back button and come to this HTML page? alert('You c...
stackexchange/codereview
In PostgreSQL, is there a way to get all of the tables that a view/table depends on based on its use of foreign keys and access to a given table? Basically, I want to be able to copy the structure of a view/table using a script and want to be able to automatically get the list of tables that I would also need to copy i...
stackexchange/codereview
I have a many to many relationship between two models, Order and Product. There is a joining table called Lines so that users can add quantities to the products they'd like to order. I have products nested within orders so my routes look like the following: resources :orders do resources :products, :controller =>...
stackexchange/codereview
Test conducted in Magento Enterprise version 1.9.0.0 First Problem When I try to create new profile under Advanced profile in admin and try to save it, I get following error: Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl() in D:\wamp\www\ent\app\code\core\Mage\Adminhtml\Block\Widget\Grid....
stackexchange/codereview
C# Visual Studio 2010 Express: When my application starts up, even before showing my GUI, I get following error in a dialog box: Fatal Problem: Value cannot be null. Parameter name: source This seems to be related to some user settings in the application. I changed a setting type from String in StringCollection, but I...
stackexchange/codereview
Would you write the following simple container any other way or it's totally sensible as it is: template <typename T, bool small_> struct TransType { typedef const T& param_type; }; template <typename T> struct TransType<T, true> { typedef const T param_type; }; template <class T> class Container:public TransTy...
stackexchange/codereview
Is there a liveperson agent for android? Specificly one which pushes notifications to your phone when people request a chat.
stackexchange/codereview
Hi all I want this div to dissapear when it show up. It is working now this way, but since sometimes the div is added after a load() I would need to merge it somehow with a live() I guess.... //Fade out the result alert. $('.Alert').delay(6000).fadeOut(500); Any ideas of how to do this? Thanks in advance
stackexchange/codereview
import java.io.UnsupportedEncodingException; import java.util.Arrays; public class Main { public static void main(String[] args) { try { String s = "s"; System.out.println( Arrays.toString( s.getBytes("utf8") ) ); System.out.println( Arrays.toString( s.getBytes("utf16") ) ); System.out.println( Ar...
stackexchange/codereview
I have a regex for validation of urls. But I don't want to match urls containing the character "@". How can I solve that? regexp = /((ftp|http|https):\/\/)?(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
stackexchange/codereview
I have a JTable that starts the editing automatically when pushing a key. The already inputted text will also be deleted, so that if you start typing only your typing gets the current value. That works, but my problem is, that every key starts that editing, like capslock, numlock, esc and stuff like that. How can I exc...
stackexchange/codereview
My question is rather simple, but I could not get it resolved after trying a lot of things. I have two data frames. >a col1 col2 col3 col4 1 1 2 1 4 2 2 NA 2 3 3 3 2 3 2 4 4 3 4 1 > b col1 col2 col3 col4 1 5 2 1 4 2 2 NA 2 3 3 ...
stackexchange/codereview
I am trying to call JSON-data from a remote Server, but the server doesnt return valid JSONP formed data, only valid JSON data. ( confirmed with validators ) If i make the getJSON request( with &callback=? ), i get the valid JSON returned, but it doesnt trigger the callback function because it isnt valid JSONP. Is ther...
stackexchange/codereview
I would like to create an alphanumeric id field which takes for example the first two letters of the name of a project and then starts from 10000... So in practice if I enter a name in a form called "institute" the id field should look like "IN10001" and should increment when i select another name starting with"in.." ...
stackexchange/codereview
I am using the following code for Ajax dropdown suggest(some what similar to google suggest). It is working good. [source]: http://www.dynamicajax.com/ of this code code in html <html lang="en-US"> <head> <style type="text/css" media="screen"> body { font: 11px arial; ...
stackexchange/codereview
So I've got a directory that looks something like this: home\ setup.py some_python_file.py ext\ __init__.py c_file1.c c_file2.c ext_header.h Obviously the header file is necessary to compile the c files, but the problem is that I can't get the setup script to include...
stackexchange/codereview
Consider the following program: #include <iostream> template<int s> class Pack { public: Pack(){} char data[s]; template<typename X> operator X&(){ return *reinterpret_cast<X*>(data); } template<typename X> operator X const&()const{ return *reinterpret_cast<const X*>(data); } }; int main() { const...
stackexchange/codereview
Does a linked server connection on SQL Server 2008 get shared between connections to the SQL Server? I am wondering this because I have a SQL Server 2008 with a linked Sybase server. If I open up Management Studio and connect to the SQL Server and execute the following exec('select id into #tempTable from test') AT LI...
stackexchange/codereview
i have created a TabWidget TabWidget tabWidget = new TabWidget(this); tabWidget.setId(android.R.id.tabs); and a FrameLayout FrameLayout frameLayout = new FrameLayout(this); frameLayout.setId(android.R.id.tabcontent); how make framelayout above tabs? **what is the equivalent code to "android:layout_ab...
stackexchange/codereview
I have the next code: jQuery(document).ready(function(){ var total = 0; $('.commission_plan').each(function(){ total = total + Math.floor($(this).val()); }); $('#payment_total_amount_hidden').val(total); $('#payment_total_amount').text('Total: '+total); $('.commission_plan').change(func...
stackexchange/codereview
I am using VS2010 .Net4 Linq-to-EntityFramework and would like to explicitly eager load some child data. I would like to provide functionality similar to that of DataLoadOptions or LoadWith which are available for Linq-to-SQL IIUC, but are not available to Linq-to-EF. (As an aside, this is so that I can record data to...
stackexchange/codereview
Google's Guava is very useful for Java programming. I needed an equivalent library for C#. I could not find one. So I have started a open source project to port Guava to C#. You can see the details for this project at its home page. Now, Questions are How do I promote my project to get more developers / users / eyebal...
stackexchange/codereview
It really annoys me that whenever I move my mouse to the gmail window to reply to an email, my status in chat becomes available automatically. Gmail provides no way to disable this default behaviour. So I am thinking to write a greasemonkey script to disable this. Basically, I am thinking to enable this only when my mo...
stackexchange/codereview
In my iphone app, I want the user to enter his email address. I need to send this email address to my website which uses Joomla. What should be done on iphone side as well as Website(Joomla) side for this? Please Help and Suggest. Thanks!!
stackexchange/codereview
where can I find the colors (and their RGB values) of different pages in the Facebook iPhone app? For example, one the launcher page, the color is some kind of blue, what exactly is its RGB combinations?
stackexchange/codereview
I have gained some knowledge on Spring[Spring in Action] & Hibernate(through google) and want to apply the same to a Open source project so that i can learn how it is used in a real project. When i searched on sourceforge.net for projects using Spring framework, it showed very big projects like adding enhancement to th...
stackexchange/codereview
I've run into an error with Python. Please see the code examples below. I run event_timer.py and I get the following error message. Both of the files listed below are in the same folder. Traceback (most recent call last): File "E:\python\event_timer\event_timer.py", line 7, in timer = EventTimer() TypeError: 'm...
stackexchange/codereview
As the title states, I'm trying to call a web service written in ASP.Net (Same solution, but different project in visual studio) from javascript. Since I added the web reference for the service prior to this for calling it in VB.Net, I tried to use this reference by directly calling it. In the body of the Default.aspx ...
stackexchange/codereview
I can I check if FeedItem::populate_from_friend_to_user is called inside the user class? it "should auto populate feed after user.add_friend" do @user.add_friend(@friend1) @user.should_receive('FeedItem::populate_from_friend_to_user').with(@friend1, @user) end With the above code I get: undefined m...
stackexchange/codereview
For example, I have 2 models: Purchase (belongs_to :users) User (has_many :purchases) I want to select all users that have at least one purchase. In SQL I would write like this: SELECT * FROM `users` WHERE `id` IN (SELECT DISTINCT `buyer_id` FROM `purchases`) And one more question: are there any full documentation or...
stackexchange/codereview
I want to use PHP writing git hooks but have some problem. I use Windows 7 LAMP packet and git bash. So, if I run the next script (pre-commit hook) through git shell: https://gist.github.com/713716 it works fine and there is 123 on the screen. But if I use: git commit I have the next error: error: cannot spawn .git/...
stackexchange/codereview
It sounds silly, but lets say my predicate largest/2 returns the largest element in a list...the output should look like this: ?- largest([1,2,3,4,5], X). X = 5. false. I implemented largest, and it works like above except it doesn't output "false". How do I make it so it also outputs this "false." value? This is for ...
stackexchange/codereview
Just a quick question that I am having trouble phrasing well enough to google sucessfully. Is is possible in acegi security + Spring to keep the "full" targetURL post login? i.e. if a user tries to go to "http://www.mysite.com/mypage.html*#search~789*" to have acegi/spring navigate them back to that point post login in...
stackexchange/codereview
In our application we need to handle browser close event. When a user directly closes the browser, we should give him an alert message and stop him by directly closing the window based on some conditions. This we have handled through body onunload event. The problem is we are getting the alert message but after showin...
stackexchange/codereview
I have a combobox that is bound to a dataset that then uses a datatrigger to insert a separator when it encounters a '-' in the data (example in this question). The background of the menu has custom color, set by using a resource dictionary. The color in this case is #FFF8F4C5 If I add a separator to a non databound s...
stackexchange/codereview
I have this piece of code to send JSON data to a php file using JQuery but its not working. Its showing no error in console but do not output. If I use var_dump, it outputs array (0){ } in php file. Here is JQuery code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html>...
stackexchange/codereview
I am trying to use the below to load data from a specific <div> from a page that contains <ul><li> structure into a <div> on this page. What is currently happening is that it "seems" to try and load the menu before the data is there. I say this because my menu pops up on the page first with a NULL, which is the defau...
stackexchange/codereview
I use code like this (described in Link) to delete an entity: Category stub = new Category { ID = 4 }; ctx.AttachTo("Categories", stub); ctx.DeleteObject(stub); ctx.SaveChanges(); However, this fails when the object with ID=4 is already loaded into the context by some previous operation. Is there any way to check a...
stackexchange/codereview
i have a editText, so how do i check if the editText contain like "http://www."? Is this possible to see if a component contain a specific string? Thank-you PS. is it also possible to change android:theme(like no title) at runtime?
stackexchange/codereview
My jquery code is this var job=909; var id=0; var x=0; var maxx=50; $(document).everyTime(4000,function(x){ var div= "#ttt_"+x; $(div).hide().load('http://localhost/feed_001.php?job='+job+'&id='+id); var tlHeight = 60; $(div).animate({height: tlHeight},750).fadeIn(2500); x = x + 1; if (x == max...
stackexchange/codereview
i have tried using a timertask to refresh a line(after every 1 second) drawn with fixed point coordinates. But the line doesn't appear to refresh...is there anything wrong in my code? LineRefresh.java: package LineRefresh.xyz.com; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; pu...
stackexchange/codereview
I have 3 textbox for hour,minutes and seconds and one Vscrolbar for up and down values .I am making an interface of selection of time similar to system time on windows.If user will select Hour textbox and again he will click on Vscrollbar to upward then my hour text values should be increase and same for second and min...
stackexchange/codereview
Is there any way I can refresh the parent window when a popup window is closed without adding any javascript code to the popup window? I have a page parent.php on which users can click "open popup" to open a popup window. This popup window shows some flash content and its not possible for me to add something like wind...
stackexchange/codereview
Is it possible to center a multiline <div> horizontally, while its contents remain aligned to the left (text-align:left), without specifying display:table and without having to know the pixel width of the <div> (it should become as wide as needed)? It has to work in Firefox 3 and Chrome. I have the following working so...
stackexchange/codereview
how to find if this string : 132,139,150,166,176 is in this one? : 132,139,150,166,176,131,140,151,165,175
stackexchange/codereview
my situation..... i have this url http://www.example.com/index.php/category?catid=3 i want to have this rewritten to http://www.example.com/bikes/3 my rewrites on the website are enabled....so i have nice urls on the website for the products the pages i want to be rewritten are my own modules for pages with text i have...
stackexchange/codereview
I have a python cgi-script that checks if a process is active, and starts it if this process is not found. The process itself is a webserver (based on web.py). After I ensure that the process is running, I try to make a url request to it. The idea is to redirect the results of this request to the requester of my cgi sc...
stackexchange/codereview
When using clean read (Read committed)... Will a select query be interfered by another DML (Insert, Update, Delete) query ? If yes, can you provide some cases. I'm using SQL Server 2005. What is the possiblity the below query will be yield incorrect data. The query does not use any joins, it just fetches data from ...
stackexchange/codereview