instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am selecting from an attribute table with the query below.. The problem is i require a formatted string based on a condition.. 1.) String formatted starting with the string "Reply:" 2.) Follow the above string with: Framed-Route + Framed-IP or Framed-IP is route is not set or Pool-Hint Below is...
stackexchange/codereview
It has been a long time since I have programmed in C++, but I recently wrote a little C++ function and am having a little bit of trouble. The function returns a struct, Result, that have some strings in it. I thought I allocated memory for the strings, but jsonResult is sometimes partially overwritten. //The struct...
stackexchange/codereview
I obtain data written in several languages from database and show it in silverlight datagrid, but all the non-latin symbols (e.g. Russian, French, German) is displayed as '?'. How can i resolve this issue? Thanks.
stackexchange/codereview
What is a static library and why are they important when developing for the iPhone?
stackexchange/codereview
I am using git repository with heroku server. I want to commit my changes on heroku server for this i run the command, git add . git commit -m 'latest updates' git push heroku It give me following error, ! [remote rejected] master -> master (pre-receive hook declined) error: hooks/pre-receive exited with error code 2 ...
stackexchange/codereview
sorry if my english bad... anyone can tell me how to setting ftp service via web using python... i want my site can control the ftp service like sinology diskstation.. like enable/disable ftp service, control how many connection, add or remove user, etc. i use linux and python+django or just give me where to find the a...
stackexchange/codereview
Is it possible to use a PHP constant within a PHP function? // in a different file DEFINE ('HOST', 'hostname'); DEFINE ('USER', 'username'); DEFINE ('PASSWORD', 'password'); DEFINE ('NAME', 'dbname'); // connecting to database function database() { // using 'global' to define what variables to allow global $...
stackexchange/codereview
I am a web developer working mainly with C# on ASP.NET (Webforms and MVC).. I have worked previously with PHP and Other Frameworks and languages of the sort.. I am currently looking and focusing all my development on 2 platforms.. One Proprietary and Industry Class Framework (ASP.NET MVC) and One Opensource and Free Fr...
stackexchange/codereview
Pretty simple but specific question here: I'm not entirely familiar with the JPEG standard for compressing images. Does it create a better (that being, smaller file size at a similar quality) image when the X dimension (width) is very large and the Y dimension (height) is very small, vice versa, or when the two are nea...
stackexchange/codereview
I'm running the latest cygwin on windows 7 (32-bit), and trying to build an open-source project, RtAudio (it doesn't currently build on this platform). One of the problems I've worked around is an error on the line #include <tchar.h>. My build line is: g++ -O2 -Wall -Iinclude -DHAVE_GETTIMEOFDAY -D__WINDOWS_DS__ -c R...
stackexchange/codereview
when i type $ gem in my terminal (mac osx) it says -bash: /usr/bin/gem: No such file or directory yes, i know theres no such file or directory, its in /opt/local/lib/ruby/gems/1.8 why is it looking there? $ echo $PATH /opt/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/mike/.local/bin:/opt/...
stackexchange/codereview
I have a listbox in which I use a ListBox.ItemsPanel - WrapPanel. <ListBox ItemsSource="{Binding Path=Applets}" Margin="10,92,10,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled" > <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Vertical" IsItemsHost="True...
stackexchange/codereview
I'm working on a project for my Software Engineering class at my University with a couple teammates. For details about the program we're creating check our website. It's a C# Windows Form Application developed in Visual Studio 2010. We are having trouble retrieving some of the graphics card information we are looking f...
stackexchange/codereview
Dim CCoptions As campaignCreateOptions = New campaignCreateOptions() CCoptions.from_email = "chimpmail12@gmail.com" CCoptions.from_name = "dummy" CCoptions.to_email = "vettr@gmail.com" CCoptions.subject = "HelloWorld" CCoptions.list_id = "0fd2345g" CCoptions.title = "who am i?" Dim CCcon...
stackexchange/codereview
I know that Mono supports the AjaxControlToolkit but I don't know how to integrate it into MonoDevelop. I added AjaxControlToolkit.dll, System.Web.Extensions.dll and System.Web.Extensions.Design.dll as References in the project but when I build the project I get the warning: /Users/user1/Projects/FirstProject/Default....
stackexchange/codereview
I went in to myapp.xcdatamodel and added an attribute to an entity. I then try to run my app and it dies at this line: self.managedObjectContext = [delegate managedObjectContext]; do I need to do something special after saving the xcdatamodel file?
stackexchange/codereview
Assuming the following HTML: <tr id="record_1" > <td id="name_1"><a href="#" id="logNameAndValue">Charles Dickens</a></td><td id="value_1">A Christmas Carol</td> </tr> How can I print out name=Charles Dickens value=A Christmas Carol by partially using the following jQuery: $('#logNameAndValue').click( function(event)...
stackexchange/codereview
I'm making a canvas-based app for Facebook, which requires publish_stream permissions. At the moment, I'm checking the extended permissions in Javascript, and requesting additional permissions if necessary. However, if the user denies the request, I'm left in a funny situation where the user can see the app, but can't ...
stackexchange/codereview
I have two processes that work with data in the same table. One process inserts daily, one by one (pure ADO.NET), about 20000 records in the target table. The second process calls ( periodically, every 15 minutes ) a stored procedure that Detects the duplicates in those 20000 records by looking at all the records 7 d...
stackexchange/codereview
Given: a class with properties like SomeNumber that, internally can be null (i.e. int?), but externally, you typically don't want to handle that special case, and pretend they start out as zero. So far, we're always returning a non-nullable version, i.e. int. I'd like to add an option to have a nullable version. The ea...
stackexchange/codereview
What is the difference between NtCreateProcess and ZwCreateProcess? In ntdll.dll, both NtCreateProcess and ZwCreateProcess point to exactly the same address
stackexchange/codereview
I have a query that has the following var myvar = from table in MyDataModel where..... select new MyModel { modelvar1 = ..., modelvar2 = (from..... into anothervar) } What I want to do is have modelvar2 be a join between the resul...
stackexchange/codereview
This recursive function seems to work properly, adding to the result list the exact letters I want it to, B and C, and then when it finishes, it correctly sees that the last element has been reached. It then executes the base case, and an error occurs which I cannot explain. What is causing this error? (define(pre...
stackexchange/codereview
In SQL you can describe a binary relation with a table like Husband | Wife We know that an husband can have only one wife, and viceversa, so that's a 1:1 relationship, and you can specify costraints such that if you add an husband that is already in the table you get an error, right? If you add a third column like thi...
stackexchange/codereview
I am a backend Rails developer of an API that services several iPhone clients. I'm not an iPhone dev. I have a need to accept binary data (several image files in this case) from the client via a POST request to the API. To get the file content (file metadata other than image type is not relevant here), what tools migh...
stackexchange/codereview
Say I have a TreeMap<String, Treeset<Song>>, where object Song has three String fields and an internal CompareTo method. The keys for the map are unique words in the lyrics that are not common words such as "she", "the", "if", or "on". There are multiple copies of Songs in the map, since there are an average of 60 wo...
stackexchange/codereview
I'm would like some advice on the best data persistence solution to use for an application that will run on the desktop (WPF) and on Windows Phone 7, sharing data between both applications. Ideally I would like to use the Entity Framework. I have considered the following technologies: Sync Framework 4.0 - only CTP a...
stackexchange/codereview
How I copy a image to internal memory and recover after that?
stackexchange/codereview
I need the window position right after I created a pygame window: window = pygame.display.set_mode((width, height), 0, 32) pygame.init() By default, the window starts at 0,0 - but I also need x,y if the user changes the window position. Any ideas?
stackexchange/codereview
I have ZF 1.11 running with no problems and followed the instructions in their performance guide to remove the require_once statements. I have added the autoloader to my index file as they say (on a side note, I don't see why this can't go in the boostrap), but now my plugins aren't being found. For example, a form is ...
stackexchange/codereview
I have a class called PointF and it has a constructor that takes a Point, and I keep getting "possible loss of data warnings". How can I show that my intention is in fact to make a float value into an int, among other tings? I tried static_cast and (float) but they did not fix the warning. For example: int curPos = cei...
stackexchange/codereview
What do "-1L", "1L" etc. mean in C ? For example, in ftell reference, it says ... If an error occurs, -1L is returned ... What does this mean ? What is the type of "1L" ? Why not return NULL, if error occurs ?
stackexchange/codereview
I am getting the error "Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)". Doesn't byte + byte = byte? Also I notice when I remove the +rgb.Green it works // rgb.Red, rgb.Green, rgb.Blue are byte types // h, delta are double rgb.Red = Convert.ToByte(Math.Round((h -...
stackexchange/codereview
Assuming I have one Connection per JVM (implemented as a singleton) as a derivative of the docs which recommend having one Connection as it's a heavy object. From the docs: ... a connection is a relatively heavyweight object. Most clients will do all their messaging with a single connection... A JMS client ...
stackexchange/codereview
A development shop has a range of ASP.NET projects using SQL Server 2000, 2005, 2008. 2008 R2 databases. How would you design, develop, maintain, version control, fill with test data, stress load, test, automate, maintain in sync with production such range of databases? Does recent Visual Studio 2010 Ultimate or Data...
stackexchange/codereview
+ (NSArray *)motivations { static NSArray *motivations = nil; if (!motivations) { motivations = [[NSArray alloc] initWithObjects:@"Greed", @"Revenge", @"Bloodlust", @"Nihilism", @"Insanity", nil]; } return motivations; } The above code is from 'Learn Cocoa on the mac'. The book states that the initial assignment t...
stackexchange/codereview
I'm building a hashmap class that can have string keys and ints, bools, strings or pointers of different types as its values, and I want it to work. For the program I'm using it for I create the pointer and pass it into the hashmap. The problem comes when I need to destruct the map. If the type for the hashmap is a poi...
stackexchange/codereview
I'm getting an error when my content contains the table markup below. Here is the error message: Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: Unexpected end tag : col in Entity, line: 2 Which is referencing this line in my code: $dom->loadHTML(strtolower($post->post_content)); My content contains this tabl...
stackexchange/codereview
I am supposed to write codes to simulate the working of three Encryption techniques:- Caesar Cipher, Columnar Transposition and RSA. I made an interface named Encryption public interface Encryption { public String encrypt(String key, String message); } and made two classes viz. CaesarCipherEncryptor and public c...
stackexchange/codereview
I would like to get some opinions on when/if it is ok to put code in codebehind. I've only been at this for less than a year now. So, I still consider myself very "green". I come from a Delphi background. So, the learning curve has been tremendous to say the least – learning WPF, XAML, C#, Unity, Prism, MEF, .NET, MVVM...
stackexchange/codereview
I'm trying to get a grip on C++/Rcpp as an extension to R for heavy computational tasks. Ultimately, these C++ libs should be integrated in a package, and therefor I'm looking for a setup / combination of tools / IDE that I would need to work easily. I know much is taste dependent, but still it would be nice to know my...
stackexchange/codereview
If there is an item that has a read lock on a table for a whole minute, then other items can still read that same table uninterrupted. So I can have this timeline A makes a read lock for a minute B, C, D, E ... and many more still read from that table without a problem But say that T asks for a write lock. T has to wai...
stackexchange/codereview
I run CruiseControl.NET and am trying to construct an XSL stylesheet that extracts certain information about broken unit tests from the XML build log. For each broken unit test, I would like to obtain in XSL the unit test's name, the class name in which the unit test resides, and the failure message. Currently, I can o...
stackexchange/codereview
I have implemented Dylan Verheul's Autocomplete 1.6 JQuery plugin on a web page. I am using the autocomplete on 20+ different input boxes on the page. A class name is being used as the selector. The autocomplete works fine on each of the different input elements, though I am having trouble getting the ID of the curr...
stackexchange/codereview
I have a prosperity application written in-house in PHP for collaboration (Basecamp knock off). We're looking for a way to add IM chat (facebook or gmail style chat), is there a opensource solution we could use with great documentation and a easy to use API? Platform: Linux, PHP 5, MySQL, SmartyPHP and Zend Framework...
stackexchange/codereview
Hey guys, I have 2 Solr servers set-up, the master is identical to the slave except for the 4 lines of XML that make it a master. The slave however errors when you try to start it, I have the following set-up to make it a slave: <requestHandler name="/replication" class="solr.ReplicationHandler" > <lst name="slave"> <s...
stackexchange/codereview
I'm having trouble with my program crashing. I get that "Program.exe has stopped working" windows pop-up which mentions my exception code is c0000005. When I return to the output from the application in Qt, it shows: C:\Users\Me\Desktop\project\project-build-desktop\debug\project.exe exited with code -1073741819 I've ...
stackexchange/codereview
EXPLAIN EXTENDED SELECT `board` . * FROM `board` WHERE `board`.`category_id` = '5' AND `board`.`board_id` = '0' AND `board`.`display` = '1' ORDER BY `board`.`order` ASC The output of the above query is id select_type table type possible_keys key key_len ref rows filtered Extra 1 SIMPLE boar...
stackexchange/codereview
Ok, let me start off by saying that I'm don't have the slightest clue how to start off with this. I have an sqlite database. For simplicity lets just say that the table that I want to read is 'data' and data contains two fields, say (id, name). How could I go about creating a shell script to read the information from t...
stackexchange/codereview
I defined a path in a file called unittest.xml in the following way(line 26): <path id="tasks.path"> <pathelement location="${publish.home}/INSIDE/UnitTest/testinganttasks.jar"/> </path> next I tried to use the path in the following way: <classpath> <path refid="tasks.path" /> </classpath...
stackexchange/codereview
I'm interested in formulae made up from lots of conjunctions (part of a larger problem). I want to write a program that takes something like this: :- get_params(conj(conj(a,b),c),X) and returns a list of all the parameters of the conjunctions i.e. X=[a,b,c]. At the moment I can do :- get_params(conj(a,b),X) to get X=...
stackexchange/codereview
UPDATE: Please note. The question I have asked was answered. Unfortunately for me, the issue is quite bigger than question in the Title. Apart from adding new entries to the map I had to handle updates and removals at the same time. The scenario I have in mind seems not possible to implement without one or the other: a...
stackexchange/codereview
As a newer programmer, I've discovered the magic of NSlog, and use it all through my code. It's been extremely helpful (along with NSZombieEnabled) in debugging. I can see a definite performance hit on the simulator as it prints out all this stuff. I don't think I see any such hit on devices, but I'm not sure. So doe...
stackexchange/codereview
I am using the following code to create calendar controls on textboxes that have been dynamically created using cloneNode. The problem is that in IE it seems to add the behavior twice to the textbox causing it not to work. Is there a way that I can remove this behavior before it is added in ie only to prevent it from...
stackexchange/codereview
What is targetNamespace's function? <schema xmlns="http://www.w3.org/2001/SchemaXML" targetNamespace="http://www.example.com/name" xmlns:target="http://www.example.com/name"> I understand that xmlns="http://www.w3.org/2001/SchemaXML defines the Schema XML namespace. I also understand that xmlns:target=...
stackexchange/codereview
Can someone please direct me to a site where step-by-step instruction is given on how to apply ford-fulkerson method on a graph to find the maximum flow. Thank you so much in advance.
stackexchange/codereview
I have a C# project in VS 2008, that is being rebuilt every time I build the solution, even though nothing in this project, nor any of its dependencies, was changed. This is causing a huge problem, because the solution is pretty large (>100 projects), and this one project is very low down the dependency chain, so it i...
stackexchange/codereview
Does anybody know how to completely remove an iframe border? I am using Firefox 3.x and the iframe is set to completely occupy the browser window - height="100%" width="100%" I have already set frameBorder="0" and scrolling="no" but there is some space remaining at the border between the window and the iframe. Is the p...
stackexchange/codereview
If you do a generic repository for an Entity in Entity Framework 4, you would start by querying the entity: public IEnumerable<E> GetEntity() { return _container.CreateQuery<E>( ... ); } in that ... above we need the EntitySetName, which is usually the plural form of E's name. However, it's not always just as eas...
stackexchange/codereview
I'm developing a TabBar based application, the first view being load is a webview, during this time my app delegate is parsing a pretty big xml in NSThread, i'd like to block one specific view Controller from being load from my Tabbar until my NSTread finish his job. I'have implemented Tabbar method delegate "didSelect...
stackexchange/codereview
I have a page with nothing on it but this form: <form method="post" action="/sign-in"> <input type="text" id="username" /> <input type="password" id="password" /> <input type="submit" /> </form> After entering values into "usernamed" and "password", when the form is submitted via the submit button, I get t...
stackexchange/codereview
I am working in a previously existing grails project that has some search functionality built into it. It has created a new Sql object using my SQL Server datasource, and it seems like it is attempting to call a stored procedure like so: def qResults = sql.rows(spCall) where spCall is a String and looks like this: ...
stackexchange/codereview
I have written a custom edit field with border using JDE4.2.1 This field is then added to a VerticalLayoutManager and instanciated as such: BorderEditField bef = new BorderEditField("Enter a value: ", null, 6, BorderEditField.FIELD_RIGHT | BorderEditField.FILTER_NUMERIC); However no matter which st...
stackexchange/codereview
I am new to SilverStripe. I would like to know a good place where I can start making modules for SilverStripe; some good tutorials to get me started.
stackexchange/codereview
I'm writing an image effects library which exposes the functionality using fluent notation. Some simple effects are fast (borders, drop shadows, etc.) but some of the more CPU intensive calls are slow (blur I'm looking at you) Now, taking blur as an example, I've got the following method: Public Function Process(By...
stackexchange/codereview
I am needing to set 3 color variants of the background of a line chart along the y-axis of a chart as (low=yellow, medium=orange and high=red). Many offer background images, ability to change single background color, alternating rows, etc... Is there a charting library for php that allows for that level of customizati...
stackexchange/codereview
I need to extract a list of keywords from a MySQL database. Each keyword is separated by a comma. I need to read it from the blob, then add it to the array. How would this be done?
stackexchange/codereview
I am trying to get jQueryWTP to work with Elipse 3.5.2. I followed the instructions and the new jar file was created (org.eclipse.wst.jsdt.core_1.0.201.v2010012803.jar). I replaced this new jar file with the old jar file in the Eclipse plugin directory. However, when I started Eclipse I saw an error with this jar fi...
stackexchange/codereview
What is the more "correct" way to define <img>'s width and height? Will it be directory through the tag with its "width" and "height" attributes, or would it be better to do it via CSS img { width:...; height... } ?
stackexchange/codereview
Currently whenever a user uploads a file through our website, it gets put in a folder such as: www.domain.com/Uploads/Docs/filename.doc However, I'd like to move this to a subdomain such as: uploads.domain.com/Docs/filename.doc This is mainly because I'd like to keep the files uploaded by the user, totally seperate fr...
stackexchange/codereview
My machine is using a WiFi connection for internet, and the LAN card is idle. it's not behind a proxy or firewall, but somehow, my emulator's browser isn't loading any page. meaning that the emulator can't connect to the internet. I searched a lot but with no luck. what might be the possible reasons? Please help. Thank...
stackexchange/codereview
I am trying to update a column with DECIMAL(5,2) datatype. However, SQL Server seems to be rounding it and not storing the decimal places. For example, one of the values is 1.53 and its getting stored as 1.00 in the table. Here's the query DECLARE @MaxLike DECIMAL (5,2), @MaxComment DECIMAL (5,2), @MaxFavourite DECIMAL...
stackexchange/codereview
this is probably the most basic question in the world, but I cannot figure it out. I would like to simply display a users First name, and Email adress from my table. I have tried using a loop, but that was entirely worthless considering I am only selecting one row. I know this is a menial question but I could not find/...
stackexchange/codereview
Is there some way I can tell whether window.location.hash is defined? If it is set, then I will be getting the value of the variable, and using it to display extra content on the page.
stackexchange/codereview
I have a txt file which contains some url's: [http://igu.org.ru/ International Geographical Union - Russian National Committee] [http://www.geografos.org Colegio de Geógrafos - España] [http://www.geografs.org Col.legi de Geògrafs - Catalunya] [http://www.geografs.org] now I want to transform this external links in th...
stackexchange/codereview
Can somebody explain the reasoning behind the following tests ?? >>> 1 and True True >>> {'foo': 'Foo'} and True True >>> {} and True {} >>>
stackexchange/codereview
I have TableController class - for controlling the UITableView, and TableCell class - for controlling the custom cell. Inside each cell i have a button with onTouchInside event. I want to update some of the variables of the TableController. The problem : The variables declared in the TableController class are not known...
stackexchange/codereview
How to find user from django_session? django sets a cookie named 'sessionid' which stored in django_session table as session key. django_session table also contains session data corresponding to each session key.
stackexchange/codereview
I'm trying to export a csv file via phpmyadmin, below are the option I'm selecting, Fields terminated by , Fields enclosed by " Fields escaped by \ Lines terminated by AUTO Replace NULL by NULL Yet when i export the file, if the field contains a comma, the data shifts to the next column cell.
stackexchange/codereview
I have the following code: Decimal initialBalance; DateTime dailyDate = ctx.DailyBalances.Max(c => c.DailyDate); if (dailyDate != null) initialBalance = ctx.DailyBalances.Where(c => c.DailyDate == dailyDate).Select(c => c.FinalBalance).FirstOrDefault(); else initialBa...
stackexchange/codereview
I was reading through the java.util.concurrent API, and found that CountDownLatch: A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes. CyclicBarrier: A synchronization aid that allows a set of threads to all wait for each other to reach ...
stackexchange/codereview
I'm currently using TinyMCE 3 on a site, but have noticed it's pretty bloated (many files to download, etc.). I'm working on improving the site's download time, etc. One of the things I want to do is replace TinyMCE with a more lightweight solution. My requirements are basic: Bold Italic Unordered list Ordered list Bl...
stackexchange/codereview
Showcase content/ I want to allow users to showcase their content within particular groups.i.o.w choose content they have created and make show particular CCK fields witin a OG. Example: a user created node X, he then wants to show node X to everyone else in the group. He clicks on a button in the group, called showc...
stackexchange/codereview
The apps that I build frequently have 'social media service' requirements; e.g. Twitter bit.ly Facebook For most of these services, I need to have an API key of some sort. I'm trying to work out the best way of including these API keys in the application binary. The desired level of security depends on the possible a...
stackexchange/codereview
i need to remove red rectangle around combobox. I have setup combobox in xaml like (below) this and i`m trying to override of the Validation.ErrorTemplate. <ComboBox x:Name="comboPodkategoria" Margin="0,3,0,0" IsSynchronizedWithCurrentItem="False" ...
stackexchange/codereview
I am using Tapestry 4.1. I have a process running in the background. Once the process completes, I want to refresh a text in my UI. I am new to tapestry. It would be helpful if somebody can point out tapestry components I can use for this purpose.
stackexchange/codereview
I bumped into a situation I've never had to address before. I have a customer who needs to make an ajax request to a URL. For internal reasons, that URL redirects to another URL whose status code needs to be accessed. Is this kind of multi-request scenario handled natively by Ajax requests? A quick test using jQuery se...
stackexchange/codereview
In our library we have a number of "plugins", which are implemented in their own cpp files. Each plugin defines a template function, and should instantiate this function over a whole bunch of types. The number of types can be quite large, 30-100 of them, and can change depending on some compile time options. Each insta...
stackexchange/codereview
I have a django application and I would like to apply SSL to the admin pages. Since the admin page are the only pages needing SSL I want to do this using the apache configuration files and not using SSLMiddleware. My (partial) apache configuration files look like this: <VirtualHost *:80> . . DocumentRoot /h...
stackexchange/codereview
I want to allow my company’s customers to integrate our Google App Engine application into their domains. For example, let’s say one customer owns the domain coolcustomer.com and wants to make our app accessible at service.coolcustomer.com. This article discusses how to set up multi-tenancy internally, but does not ...
stackexchange/codereview
I have created an experimental fast rectangular object tracking system; it will be used for headtracking and controllling objects in 3D engine (Ogre3D). For now I am able to show to the webcam any kind of bright colored rectangle (text markers are good objects) and system registers basic properties of this object (hue...
stackexchange/codereview
im having this problem...i wonder if any of you have any ideas how to solve it? I have to seperate Lesson Name, Teacher name and Classroom. Progr.al.Janek ManderÕ 405 Arv.võr.Tom KülaotsÕ 205 Progr.al. is Lesson name, Janek Mander is Teacher name and Õ 405 is Classroom. Arv.võr. is Lesson name, Tom KÜlaots is Teacher n...
stackexchange/codereview
Flv seems like can't be use with loader but NetStream. But I wanted to play the video only after I have completely download it (smooth viewing with no buffering time). How can I do it with NetStream? And Can I have multiple video load at same time, and play it according to some array arrangement?
stackexchange/codereview
I have created a table that displays the results from a MYSQL database. At the end of each row, I have added a button that when clicked on inserts the session username into the database. Apart from the session username I want to insert all the other details present in the table ROW in which the button is present. How ...
stackexchange/codereview
This is an interview question: "Given a directory with lots of files, find the files that have the same content". I would propose to use a hash function to generate hash values of the file contents and compare only the files with the same hash values. Does it make sense ? The next question is how to choose the hash fu...
stackexchange/codereview
I was wondering if there was an awk/sed regex that I can use to detect any lines that contain non-english characters, for example: あと1つのスマッシュが見つからへん…もう寝よう ความหวังดีของคนเรา สุดท้าย Το θερμόμετρο χτυπάει LA #MACIF a félicité #DotYou pour le site http://www.roulonspourlavenir.com , un petit compliment dans un monde de b...
stackexchange/codereview
Confused by a problem with ExternalInterface.addcallback. Mainly because I have it ALWAYS working locally, when I test in a browser, but the moment I deploy to a server it stops working. I've added trace commands and confirmed that ExternalInterface is in fact available before adding the callback, and an alert command ...
stackexchange/codereview
Originally the AS3 script would trace some words for a certain string I typed in the textfield (ti). I want to know how to display and image, instead. I know in AS2 it was loadMovie but I don't know how to do this in AS3. And would the loadit in the newvid function be the movieclip that changes or something else? (O go...
stackexchange/codereview
I have a button that creates a new thread. That thread contains the following. foreach (DataRow r in results.Rows) { var item = new ResultItem(this) { Image = r[1].ToString(), Video = r[2].To...
stackexchange/codereview
I'm trying to populate items in a dropdown list. I've achieved getting values from my database, but I can't add them in a dropdown list. public List<String> getNames(){ List<String> polNames = new LinkedList<String>(); try { String query ="SELECT names FROM clinics"; Stat...
stackexchange/codereview