instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
For my project I am sending the HTML value from one text editor. For that I had set the character set to UTF-8. Here I am sending value through URL. In the text editor I am Providing the facility of changing the color of text. Now when I change the color of text then on the servlet page where I had to get those values...
stackexchange/codereview
I am pulling from a JSON feed and I just want to display a maximum of 10 characters of the string and then do a ... afterwards. How do I do that with JQuery?
stackexchange/codereview
parseFloat(1.51e-6); // returns 0.00000151 parseFloat(1.23e-7); // returns 1.23e-7 // required 0.000000123 I am sorting table columns containing a wide range of floating-point numbers, some represented in scientific notation. I am using the jQuery tablesorter2.0 plugin which is using 'parseFloat' for cells that start...
stackexchange/codereview
I'm adding a JavaScript-powered sub-window to a site. Basically, part of the UI is positioned off the left edge of the screen until the user triggers a link; then it's moved into a visible position. I have a series of five test cases, but haven't got the reputation points to link them individually yet. For accessibilit...
stackexchange/codereview
what js/jquery code would make below list toggle children when clicking "+" ? <ul> <li id="1" parent="0"><a href="#">1</a></li> <li id="2" parent="0"><a href="#"> + </a><a href="#">2</a> <ul parent="2"> <li id="23" parent="2"><a href="#">2.1</a></li> <li id="50" parent="2">...
stackexchange/codereview
I'd like to modify the value of my Sliding Expiration time span based on how much memory is available. If the site's traffic is high at any point in time, more data will be added to the cache than during quieter periods. During those quiet periods I can increase the sliding expiration time span, thus allowing data to b...
stackexchange/codereview
This is best illustrated with an example: class Cat { } class Dog { public static implicit operator Cat(Dog d) { return new Cat(); } } I want to tell, for an arbitrary object, if I can cast it to Cat. Sadly I cannot seem to use the is/as operator. void Main() { var d = new Dog(); if (d is ...
stackexchange/codereview
Where download ws2_32.dll version 2.2 for run function WSPRegisterMemory? I have winxp sp3 and installed lastest platform SDK and Windows Driver Kit but all ws2_32.dll have version 2.0 and i have "error LNK2019: unresolved external symbol _WSPRegisterMemory@20" in VS when i compile project. But example which check wi...
stackexchange/codereview
Using MySQL. How can I find the average of the min_amount and max_amount columns while grouping by year(my_date) and month(my_date)? Currently I'm planning on putting the sum of the columns in an array then average them using PHP. Is there a way to get the average of the 2 grouped columns with an SQL query instead? $sq...
stackexchange/codereview
What's the proper syntax for adding a recomposed tuple to a list? For example, if I had two lists: >>> a = [(1,2,3),(4,5,6)] >>> b = [(0,0)] Then I would expect the following to work: >>> b.append((a[0][0],a[0,2])) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: list indices must be...
stackexchange/codereview
I want to build Regex in C#, the Regex maches char and swap it to another clone char. (e.g. swape 1 to 2,but 2 to 4 etc.) How can I do it? Thanks
stackexchange/codereview
I'm sending some html via jQuery, and in this html are various values that need to be quoted, and in one instance, there's a nested value, so I have to be able to send both kinds of quotes. Here's some mock code: var myVar = "<tag value='foo' value2="config={'bar':null, 'foo2':true}" />"; How can in ensure that the do...
stackexchange/codereview
I am a newbee in C I wanted to know the max memory allowed by an application. So I wrote a little program like the following. I have a machine with 16GB total memory and 2GB is used and 14GB is free. I expected this program to stop around 14GB, but it runs forever. Want am I doing wrong here? #include <stdlib.h> #incl...
stackexchange/codereview
This is to collect from the experience that the community has done information on the aspect of Profiling web Application. Some years ago I worked at a very large project in C++/Java with the a CORBA ORB and we were using Rational Purify/CodeCoverage to instrument, detect memory leaks and discover bottlenecks on server...
stackexchange/codereview
Hey, I'd like to know how to upload my zope site on my ftp. I have a domain, and I like to upload it, like a upload normal files on my ftp. Thanks.
stackexchange/codereview
How i can write a regular expression for validate a "right Human Name": My definition of human name (in this case): I need validate Hispanic names: Something like Maria, John, jon, Andrés will be valid, but something like 'NNNNNatalia' doesn't I mean this is valid: Diego Diego A. Diego A. Sanabria This is not valid...
stackexchange/codereview
I have a plain text file with a number of lines (new line character is \n) Some of these lines start with a varying number of sequential repeating whitespace characters \\s. I want to replace each \\s with &nbsp;. Example file: This is a line with no white space at the beginning This is a line with 2 whitespace chara...
stackexchange/codereview
I would like to know if an application created under enterprise license can be submitted to appstore under a new standard developer license. The case is that I want my application to be tested by apple to avoid last minute surprises/rejections. My plan is that I would apply for an enterprise license, submit the app to ...
stackexchange/codereview
Is there something about CASE statements that automatically breaks a query that uses MINUS? I'm comparing a live pull of a data set to a previous cache of it, and even though the CASE statements in the live pull return pure VARCHAR2 results, I get a type mismatch between them and the static values in the cache table, w...
stackexchange/codereview
We are trying to use HBase to store time-series data. The model we have currently stores the time-series as versions within a cell. This implies that the cell could end up storing millions of versions, and the queries on this time-series would retrieve a range of versions using the setTimeRange method available on the ...
stackexchange/codereview
The following snippet of html and jquery works in: Firefox, Safari and Chrome, both in OSX and XP (all browsers latest production updates. I'm using the java debugger in safari, firefox and IE8 But in IE8, the contents of CCC is not moved!! I do not have IE6 or IE7 to test with. <html> <head> </head> <body> <div c...
stackexchange/codereview
So when JScript is different from JavaScript, how does IE interpret jQuery, and all the other JavaScript-s ? Is it better to replace the JavaScript with JScript for IE? Are there any performance diferences?
stackexchange/codereview
I have a header file for a game that declares a two-dimensional array for a board. #ifndef GAME_H_ #define GAME_H_ static const int columns = 15; static const int rows = 15; int board[rows][columns]; #endif /* GAME_H_ */ I get an error: error: variably modified 'board' at file scope
stackexchange/codereview
I want to implement a data structure which looks something like this. {{RowID, N1, N2, N3}, {RowID, N4, N5, N6}, {RowID, N7, N8, N9}} And goes on. It basically is a table in Java with 3 columns and RowID. What data structure should I use and how do I implement it as in code?
stackexchange/codereview
I am currently reading On Intelligence by Jeff Hawkins. His memory-prediction framework is very thought provoking and is a promising explanation as to what intelligence may be. Are there any other theories, along similar lines, that attempt to provide an all encompasing theory of intelligence?
stackexchange/codereview
I have the following: Schema create_table "mouldings", :force => true do |t| t.string "suppliers_code" t.datetime "created_at" t.datetime "updated_at" t.string "name" t.integer "supplier_id" t.decimal "length" t.decimal "cost" t.decimal "width" t.decimal "depth" end create_table "suppliers",...
stackexchange/codereview
When I'm using the post thumbnail feature in wp3 and set the thumbnail size to e.g. 230x160 wp crops the image from the top left corner to the set size. Sometimes this is sadly just the wrong part of the image. Is there any way to give the backend user the chance to choose the part of the original image which should be...
stackexchange/codereview
This program "FindMIn" takes two values as its parameters and returns the smallest value.  I'm trying to change my program so that it takes in three values as parameters and returns the smallest of three values. This is what I have so far But how?? #include <iostream>        using namespace std;     //function protot...
stackexchange/codereview
We have a complex SSIS job and in each transaction we have to inserts around 30K+ records in SQL server. The package is using the local transactions with trans start and rollback statements. I am bit puzzled with this transaction rollback behaviour where it is NOT clearning 2-3 records from one of the table when it rol...
stackexchange/codereview
As my question says, after changing files and adding new files in my repository, I normally commit files with git, but sometimes I need all the modified / changed files copied to a folder for organizing-myself reasons. Any option?
stackexchange/codereview
I'm attempting to user System.Windows.Forms.DataVisualization.Charting to create a line chart. I've been using the System.Windows.Controls.DataVisualization.Toolkit for a while now but would like to get rid of all of my .Net 3.5 references. I cannot find any sources for examples of charts using DataVisualization.Char...
stackexchange/codereview
Sometimes, when I use content assist in Eclipse to override a method of superclass (or auto-generate method stub in any other way), the generated method signature has all types fully-qualified, has "{}" right after signature (without wrapping) and has ";" after the method. For example: public void doSomething(com.c...
stackexchange/codereview
I am trying (desperately) to get a customer authentication provider working for my WCF service. So far I have the following code; web.config <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="MyNamespace.CustomUserNameValidator, MyNam...
stackexchange/codereview
I have a little program in mind: void main(void) { printf("Password"); gets(pass); if(!strcmp(pass,"Something")) //execute program in the same binary else printf("Wrong password"); } I need a password to run a program, the program must be in the same executable, and considering that i don't have the source co...
stackexchange/codereview
I use python 2.4 and django 1.2.2 and apache 2.2.3 Write httpd.conf section like this: <Location "/mysite/"> PythonPath "['/home/usr/www'] + sys.path" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite...
stackexchange/codereview
dear all..i have a complicated case that must be have some troubleshoot. i have some input form which connected to input data table. <input type="text" id="model" name="model"/> <input type="text" id="serial" name="serial"/> <input type="text" id="lot" name="lot"/> <input type="text" id="line" name="line"/> i have on...
stackexchange/codereview
This is a paragraph from broken thorn operating system development series. There are 3 lines of code. It will take 512 byte to load up to second line and 514 bytes up to third line. How can we calculate this? If possible kindly give me a link where I can read it in detail. Thanks in advance. In Assembly Language, we c...
stackexchange/codereview
I wrote a method to standardize a USPS address. To test it, I want open(URI.encode(uri)) on line 45 to return a mock, specified response in case you're not connected to the Internet, etc. How do I do this with Rspec? Do I need to break up the method into two? I am averse to breaking up methods into parts unless I am re...
stackexchange/codereview
When an Android device is tilted and goes from portrait to landscape mode, do the values returned in the DisplayMetrics object (i.e., from getDisplayMetrics()) reflect that in that widthPixels now has the larger dimension and heightPixels the smaller?
stackexchange/codereview
I am using linux trying to find all files that contain the phrase "Hello" in them (not the filename) and then delete them all. How can I do this?
stackexchange/codereview
1 quick question, recently I came across a new concept in java called JMS. I would like to know where it exactly applies and I have a doubt that JMS is an abstraction or an implementation. If so how would I can use this? Can any body help me in understanding this. Thanks in Advance. :)
stackexchange/codereview
Is there a connection between how casting is done and the concept of polymorphic behaviour?
stackexchange/codereview
We have a .net application which uses asp.net SQL membership provider for authentication purpose. We are now introducing a java application which needs to be integrated with the .NET application in terms of authentication, so users wont have to login again going from the java to the .net application. What would be the ...
stackexchange/codereview
I'm having trouble figuring this function out: Define a function maybeA :: [(String, a)] -> Maybe (String, a, a) that takes a list of pairs. If the input list has two pairs (a1, b1), (a2, b2) such that a1 = a2, the function returns a tuple containing a1 and b1, b2. Otherwise it returns Nothing. Example: maybeA [("a", ...
stackexchange/codereview
#include<stdio.h> int main() { FILE *fp,*fs; fs=fopen("c.dat","w"); fp=fopen("c.dat","w"); putc('a',fp); putc('1',fs); close(fs); close(fp); return 0; } Irrespective of the order execution putc('a',fp);putc('1',fs); putc('1',fs);putc('a',fp); co...
stackexchange/codereview
I know about the hash use of the => operator, like this $ cat array.pl %ages = ('Martin' => 28, 'Sharon' => 35, 'Rikke' => 29,); print "Rikke is $ages{Rikke} years old\n"; $ perl array.pl Rikke is 29 years old $ and I thought it was just syntax to initialize hashes, but in answers to How can I quali...
stackexchange/codereview
I wrote a simple app for the BlackBerry and tested with the 9630 simulator. How do I get a UI design that is compatible with all the simulators?
stackexchange/codereview
I am hoping you guys can help me with this. I have the following code </textarea> <br />Word Count: <input type="text" name="c" value="311" size="5" onkeyup="cnt(document.script.w,this)" /> </form> <script type="text/javascript"> var myNumValue = document.getElementById('c').value; var myNum = p...
stackexchange/codereview
I'm working as an user. I want to know if the other user making any INSERT, UPDATE, DELETE on any specific table. How to find out ? is there any SQL to do so ?
stackexchange/codereview
According to MSDN: http://msdn.microsoft.com/en-us/library/ms649052%28VS.85%29.aspx Adds the specified window to the chain of clipboard viewers. Clipboard viewer windows receive a WM_DRAWCLIPBOARD message whenever the content of the clipboard changes. But I don't want any window, I just want to hook the clipboard sile...
stackexchange/codereview
We have set of common spring application context configuration files. Depending on the deployment (We deploy one module or multiple module), bean injection classes will change e.g. <bean id="tagService" class="com.ekaplus.service.tag.TagService" > <property name="mdmTagService" ref="mdmTagService" /> <prop...
stackexchange/codereview
This is a design question, to whet the guru's appetite. In a previous version, the code was using a path definition, i.e. /../../ to provide instructions on how to build artbitary xml documents. The documents had to be correct according to xml schema, so the path's were essentially xpaths, being read and used in switc...
stackexchange/codereview
I see a lot of questions and answers re order and sort. Is there anything that sorts vectors or data frames into groupings (like quartiles or deciles)? I have a "manual" solution, but there's likely a better solution that has been group-tested. Here's my attempt: temp <- data.frame(name=letters[1:12], value=rnorm(12), ...
stackexchange/codereview
Could you point me a way in which I can render a barcode in PS without the help of any external plugin or class file ? Thanks
stackexchange/codereview
I was trying to generate a MSI file via a visual studio 2008 project which will install a/multiple cab file(s) to windows mobile via activesync(CeapMgr). I used this as a reference : http://msdn.microsoft.com/en-us/library/aa446504.aspx However when I install the application to the mobile phone(via activesync) by usin...
stackexchange/codereview
I know some think I shouldn't redefine non-virtual functions from inherited classes, however, what I'm doing now is using that very role-migration concept, and it is fairly special case where it fits quite nicely. What I want is this (oh, and this is C++): class A { public: void f() { doSomethingA(); } }; class B : p...
stackexchange/codereview
Or can we have asynchronous code that executes in the same thread.
stackexchange/codereview
I'm making a Flash application right now that is so far built entirely using ActionScript 3 (in Flash Builder) and (a little bit) in Flash Professional. I need to use Web Services to handle certain things in the application, but there is no AS3 library for Web Services. There is, however, a Flex library for handling W...
stackexchange/codereview
I wan't to connect to remote web page (that has login form) with HttpWebRequest. I am using this tutorial: http://www.byteblocks.com/page/How-to-submit-requests-to-web-sites-programatically-using-HttpWebRequest.aspx ,but I don't know where RequestAttributes class belongs to?!? Is there any better way to do this? The r...
stackexchange/codereview
What I'm trying to find a way to do is load some data from xml, and load it on a page dynamically with a click on a link. Is this possible? Is there anyway someone can point me in the right direction? Is it possible to make a link call a javascript function?
stackexchange/codereview
Given an original image of: This resizes to look as such: ALL the images being stores on the server are correct with BLUE gradient background. But when it is resized and served it shows with black background! And darkened considerably. On my local server there is no problem, it only does this on the live server! My...
stackexchange/codereview
I am trying to get the knack of good system design. As there is no hard and fast rules for good system design, I request you to give me some valuable suggestions. I prepared an imaginary system and prepared a design for that. Please let me know if you think if this design is good or bad. Is there a better way? I used A...
stackexchange/codereview
I'm trying to do some jQuery which will find images inside text, wrap the image inside a div and then move it to another div, yet I can't seem to get it working. Here's the code that I have so far which works: $(".newsIntro").find("img").wrap("<div class=\"newsImage\" />"); But, when I try to move it, either all image...
stackexchange/codereview
I have a usercontrol (ascx) that I want to dynamically add to a page. Neither the control nor the page has a namespace (thanks crappy vendor). When I use the following, it tells me it cant find the "type or namespace" StayTunedControl = (UserControler_StayTuned)LoadControl("~/UserControler/StayTuned.ascx"); ...
stackexchange/codereview
simple really.. I am have been asked to do a mobile site (straight html + css (+ maybe jquery mobile later on)). The site will need to support the new type smart phone and the old type Nokia/(Symbian OS) with the web browser. Doubts and reservations aside as to anyone without a smart phone would bother visiting this si...
stackexchange/codereview
I right-click tablix and go to Filters in property page. There are 2 data parameters, @StartDate and @Enddate If I add a new filter as "ActionDate between @StartDate and @EndDate, error thrown telling mismatched data type I Add a new filter "ActionDate between Parameters!StartDate and Parameters!EndDate, no data is s...
stackexchange/codereview
Using Entity Framework 4 I want to create a base interface for my objects so that the properties of the base interface get implemented as fields in the table for each derived class (not in its own table), and then deal with the derived classes using the interface. For example, have an interface and some classes like s...
stackexchange/codereview
I'm trying to create registration form using Spring MVC and Velocity as view. in the view there are inputs: username email password confirmpassword birthday -> format MM/dd/yyyy when user submit the form, my controller validate the form input/command. if there some error, it will show back to the view and print the bir...
stackexchange/codereview
I have set up NHibernate to run in a windows service with MS Sql Server 2008. I use a regular TransactionScope to ensure that the operation is atomic. NHibernate is set up to create a session factory per assembly. I want to write changes to objects from 3 different assemblies. Everything works fine when I work with on...
stackexchange/codereview
I've made a Visual Studio Setup Project with Visual Studio 2008 (SP1) for an Office 2007 AddIn. The setup only copies files to a per-user location (LocalAppData) and only writes registry settings to HKEY_CURRENT_USER, but when run under Windows 7, the MSI asks for admin credentials just before it begins copying files. ...
stackexchange/codereview
The source tags inside my video element need to be self closing so the iPad doesn't start whinging. I type in <source src="myVideo.m4v" /> TinyMCE keeps changing it to <source src="myVideo.m4v" ></source> though. How can I tell it to stop?
stackexchange/codereview
My app creates a puzzle grid using table layout, tablerows and textviews. I want a user to be able to save this grid to the SD card so that it can be printed or copied or loaded onto another device. How do you save a view so that when it's printed it will look like it does on the android screen?
stackexchange/codereview
What would the javascript RegExp be for anything that is not a - or any word character? I tried [^-\w], but I got a console error. Any ideas?
stackexchange/codereview
I am trying to update a db using the Data Compare functionality in VS. Once I setup which tables I want to update I can use Write Updates and my DB is updated. However, when I Export to a .sql file and try to run it from SSMS I don't get anything in the Messages window and I don't have a Results window. At the bottom ...
stackexchange/codereview
I'm getting the following error when trying to connect to my exchange server at Microsoft Online. I couldn't see how to get access to the underlying XML and I wondered if this error is caused because exchange is just serving the standard OWA login form, rather than an XML response that the EWS API expects. How can I ch...
stackexchange/codereview
How do you remove all elements from the dictionary whose key is a element of a list?
stackexchange/codereview
I am not sure if REFind is working correctly. I am basically trying to determine if a string starts with a certain name I perform some actions, but I am unsure if I can use REFind in a conditional sense. My code is below, and it should return at least 2 successful results. <cfloop list="#form.fieldnames#" index="field"...
stackexchange/codereview
Ok so I've got a problem I've been working on for the last week or so and have tried everything I know or could find. I am using YUI 2.x editor where users will be doing some heavy formatting. I have an external button on the page that needs to wrap the selected text in a <span> when the user clicks it, but it must d...
stackexchange/codereview
I've built a new sharepoint site page using the example I found here: Link The purpose of the page is to add a new user to the aspnet membership database that serves as the authentication provider for my sharepoint site, which uses forms based authentication. I've slightly customized the asp createuser control. The sha...
stackexchange/codereview
I have another problem I can't seem to solve..., or find on this site... I have an object (called DataObject) with a map, declared as follows: std::map<size_t, DataElement*> dataElements; Now i have a copy function (used in the copy constructor): void DataObject::copy(DataObject const &other) { //here some code t...
stackexchange/codereview
I've got some code that performs some legacy 'database' operation and then processes the result. I want to write a unit test that checks the method that calls the legacy code without interacting with the 'database'. My code looks something like this: public static bool CallRoutine(LegacySession session, /* routine ...
stackexchange/codereview
How do i convert a eps file to System.Drawing.Image in C# i have tryed to use ImageMagickNET but that didn't work-.-
stackexchange/codereview
I have a directory with roughly 100000 files in it, and I want to perform some function on all files beginning with a specified string, which may match tens of thousands of files. I have tried ls mystring* but this returns with the bash error 'Too many arguments'. My next plan was to use find ./mystring* -type f but...
stackexchange/codereview
I've got the following problem: I'm using Google Maps on my site. I've attached the following eventListener to the map itself: google.maps.event.addListener(map, 'bounds_changed', scheduleDelayedCallback); The event bounds_changed is called every time someone drags the map. My Problem is, that it is called several tim...
stackexchange/codereview
I have an application to which I want to add a progress bar. It works in most cases. In one case the time is actually taken because of binding and layout work which is asynchronous, so my progress bar is hidden before the work is actually done. Its rather large list of items shown within a scroll view. I can't use ...
stackexchange/codereview
I've been trying to get the pre-compiled Boost 1.44 to work with an empty project of mine. So far I have gone to property manager and set "C:\Program Files (x86)\boost\boost_1_44\lib" in the Additional Include Directories but when I try to use: #include <boost/thread/thread.hpp> I get 1>.\Watchdog.cpp(9) : fatal error ...
stackexchange/codereview
I have a java application on Websphere that is using Apache Commons FTPClient to retrieve files from a Windows server via FTP. When I deploy the application to Websphere running in a Windows environment, I am able to retrieve all of the files cleanly. However, when I deploy the same application to Webpshere on Linux,...
stackexchange/codereview
I have an application that was working fine with ror 2.3.x. I am having trouble upgrading to Rails 3 with serialization. The code looks like this class PaymentTransaction < ActiveRecord::Base serialize :response end The response is supposed to contain the ActiveMerchant::Billing::Response. With rails 3 for some rea...
stackexchange/codereview
Ok so I am trying to turn my hit counter to round thousands to a single digit too display 3 thousand hits as 3K for example, like the Facebook Share and Twitter Tweet Buttons do. Here is my code. Any idea what I am doing wrong? $postresultscount = (($resultscount) ? $resultscount->sumCount : 1); $k = 1000; $L = ''; if ...
stackexchange/codereview
Do I need a slash before or after the /somefolder/(.*) below? I want to redirect everything coming into a folder to another website address. Do I need the RewriteCond in here somewhere also? Options +FollowSymLinks RewriteEngine on RewriteRule somefolder(.*) http://www.differentsite.com$1 [R=301,L]
stackexchange/codereview
The reason I ask is because I was doing the following in AppDelegate.m: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Add the view controller's view to the window and display. window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]...
stackexchange/codereview
I am planning on doing a small arduino project and would like to know if what I'm thinking would work with a regular arduino board. I'm thinking of buying an Arduino Uno for my project, along with an IR LED and an IR sensor. So here's what I want to go with this: I want to point the LED towards the sensor, so that the ...
stackexchange/codereview
I have a question. Currently i start jboss with -P property that links to file with properties. In this property file i have property - mongo.server.list=127.0.0.1. In Spring configuration i try to set this property as value of constructor of bean. But spring treat ${mongo.server.list} as value itself. Here is the code...
stackexchange/codereview
I am looking for a clean way to list the (8 bit) integers whose binary representation is not the same as another integer up to rotation and reflection. For example the list will probably start as 0 1 (2=10b is skipped because you can rotate the bits in 1, therefore all powers of 2 are skipped. Also every number except ...
stackexchange/codereview
I am new to html 5 geolocation, Is there any site or examples where it shows how, i can use html geolocation api to track the location of other devices. Also, for example how can i use use HTML5 geolocation to find the nearest car dealer say 5 or 10 miles from me? Any examples sample would be really helpfull. thanks...
stackexchange/codereview
It's general question nothing related with code. I want to know that video which i am playing is flash video or not. Are there any way we can get idea about it? Can we get idea from source code ?
stackexchange/codereview
I'm currently working on a project for my studies. I'm trying to solve a simple puzzle game by using breadth first search. After I have found the optimal solution I want to simulate a series of keypresses (using awt.Robot) to solve the game. Is there a way to bring a window with known title to the foreground. I'm usin...
stackexchange/codereview
Basically I have a string with the value: Bruce Lee, Jackie Chan, Micky Rourke, Vinnie Jones, what I'd like to do is convert the above into something like: Lee, B., Chan, J., Rourke, M., Jones, V. I'm sure this can be done but i'm totally new to string manipulation and iPhone development. NSScanner seems useful but aft...
stackexchange/codereview
I'm compiling my application with Delphi 2010. My problem (it may not be a problem for anybody else) is that when you open that EXE with any resource editor you can see RCDATA which holds forms data. I don't like an idea of my program being "exposed" so I want to ask you is there any trick to remove that information fr...
stackexchange/codereview
Using Grid to display pictures around edge of screen. <Image Source="...." Grid.Row="0" Grid.Column="0"> <Image.Tooltip> <TextBlock>Some narrative..</TextBlock> <TextBox Name="ToolTipText" Grid.Row="1" Grid.Column="1" /> On MouseOver I want the tooltip to appear in TextBox, but it aways appears centered o...
stackexchange/codereview