instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I keep getting this error when I try and run this script. It has run just fine for several days. It is in a Google Docs Spreadsheet. TypeError: Cannot call method "getRange" of null. (line 0) ss = SpreadsheetApp.getActiveSpreadsheet(); function onOpen() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var menuEnt...
stackexchange/codereview
What are the complete set of factors that affect image caching in web browsers? How much control does a web developer have over this, and how much is browser settings? Are there different considerations for other types of assets (i.e. scripts, audio)? Thanks
stackexchange/codereview
I created a new xml file, and had an errant ? in it that prevented R.java from regenerating. I tried Cleaning the Project, and Fixing the Project Properties but no luck. Then I realized the XML was creating the R.java from recreating itself, so I deleted the XML file and the R.java was back. Now though, I am getting a...
stackexchange/codereview
I feel pretty stupid for asking this, but I'm doing a form where the user enters some input and sometimes the input is a percent symbol, say 5%. When this gets passed along as part of a GET request, like this: http://kburke.org/project/company_x/?id=4&var1=1&ops=23255&cashflow=25000&growth=5%25&pv=100000&roe=20&profitm...
stackexchange/codereview
is it possible to use Paperclip without a model? I just need the ability for an admin user to upload a pdf to a specific dir and that pdf can be overwritten when a more current pdf is uploaded. I'm on rails 2.3.5. Thanks.
stackexchange/codereview
Given a text block like yada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yadayada yada On Tue, Nov 16, 2010 at 9:23 PM, Tekkub <tender+xxxxxxx@tenderapp.com> wrote: ...
stackexchange/codereview
Is there a way to control the load order of images on a web page? I was thinking of trying to simulate a preloader by first loading a light-weight 'LOADING' graphic. Any ideas? Thanks
stackexchange/codereview
Is there a way to add an image in my main app, so that it is on top off a popWindow? The equivalent of the Z-index should render it on top. So, I've got a popWindow and I want to add an image on top of the popWindow. If in my main app I use: var floatingImage:Image = new Image; floatingImage.source = image_path; fl...
stackexchange/codereview
I have a script that parses some XML (adf) stuff. Sometimes we receive broken XML data (ie- syntax, no ending tag, etc.). SimpleXMLElement throws an error and kills my script, how could assign something like $xml_body = new SimpleXMLElement ($adf_xml); and catch the parse exception? Uncaught exception 'Exception' wi...
stackexchange/codereview
I have a brain cramp trying to figure this mapping out. Here's my db: CUSTOMER CUSTOMERFAMILY CUSTOMER PK SITE_ID -----------PRIMARYSITE_ID -- PK SITE_ID MEMBERSITE_ID -------------| This creates a relation where a Customer can only have one parent (since t...
stackexchange/codereview
I have the following table: Videos ID(Int) Industries(Varchar) 11 3,5,8 22 5 33 1,3 And this is the desired outcome: Search In Industry Field Found IDs 3 11,33 1,8 11,33 5 11,22 1,5 ...
stackexchange/codereview
I started debugging my application in IE7 recently, and noticed a ton of jQuery and javascript is not loading properly. But if I take snippets of the specific function out of my javascript.js file and hard-code them at the bottom of the page I'm working on.. it ends up working! My big question is what one step can I ta...
stackexchange/codereview
I am using PHP to connect to a local C++ socket server to keep state between a web app and a couple of daemons. I can send data to the socket server, but not receive from it; it just blocks on socket_read() and hangs indefinitely. Am I forgetting something dumb (like a NULL character or a different combination of new...
stackexchange/codereview
How can I program a bat file that would be capable of putting file.dll that is in the same folder that a .bat file is in into the windowsMainDir/system32 folder but only if the file does not already exist?
stackexchange/codereview
I have to simulate the roulette game for an exercise (without grade) our lecturer gave us. It have to be a multithreading client-server application. I'm designing the server (the client is quite simple, it only have to send the bet's requests) but I'm stuck. I have two thread functions, the croupier: this one pull ou...
stackexchange/codereview
There appears to be many places to change the session timeout for an ASP.NET application. For example, At the Application Pool level containing the application, At the Application Pool node level containing all appPools, In the web site properties dialog, ASP.NET tab, Edit Configuration, In the web site properties dia...
stackexchange/codereview
I have the follow XML File: <Questionario> <Relacoes Marca="SADIA"> <Questao> <IDEtapa> 1 </IDEtapa> <IDQuestao> 1 </IDQuestao> <Tipo ID="1"> <V1></V1> <V2></V2> <V3></V3> <V4></V4> </Tipo> ...
stackexchange/codereview
I was tidying up some code I wrote a long time ago, putting it into methods and the like, when I tried this to get an input string and LPCWSTR from an input prompt for a directory search. void GetInfo(string &stdStr, LPCWSTR &wStr) { cout << endl << "Enter String: "; getline(cin, stdStr); string sTempP = s...
stackexchange/codereview
In MS SQL Server 2008. How do I count the number of rows that have a certain field in common. Example, lets say I have the following table. UserAccount_ID Attribute_ID 786 11 797 10 797 5 797 6 797 11 555 11 1003 10 1003 5 1003 ...
stackexchange/codereview
I'm having some issues with a stored procedure I've written in my SQL2000 database to query an Oracle database via OpenQuery(). The procedure 1) creates a cursor from a table (Job) on my SQL2000 database, 2) then iterates through that cursor one at a time, passing the cursor value (JobID) to a OpenQuery(). 3) for eac...
stackexchange/codereview
I'm on my way learning IMAP using PHP. Right now, I'm learning imap_search function. I have question specifically on ALL criteria. I'm using it like this: $emails = imap_search ( $mailbox, 'BODY "lamaran"' ); $emails = imap_search ( $mailbox, 'ALL BODY "lamaran"' ); I got the same result using both line. My Question i...
stackexchange/codereview
New language is interesting only if I can use new libraries. So I want to know what new libraries I can use in .net with F#. If F# is compatable with ML/OCaml what Ocaml libraries are ported to F# or can be ported. I'm interesting in signal processing/voice recognition, logic programming/SLD resolution libraries in .NE...
stackexchange/codereview
I rewrote my config from .ini to .xml and I've got a problem with my modules. When my configs was stored in .ini I wrote resources.modules[] = and zend loads all my modules and models of it when bootstrapping. How I can use it in .xml? Now I simple write <resources> <modules></modules> </resources> and it does ...
stackexchange/codereview
Do you know any alternative to SharePoint in C# and open source?
stackexchange/codereview
I have a list of 50,000 files (full file paths). I want to re-order these into folders, 1,000 files per folder using a batch file. Folders just need to be named 000, 001, 002, 003 etc. All I need is for Excel to write "000" for the first 1000 files, 001 for the next thousand, 002 for the next thousand until there are ...
stackexchange/codereview
I compiled google v8 into v8.lib using VS2005. Can I link this in C++ Builder 2007?
stackexchange/codereview
There are certain contracts I know that the static analyzer cannot possibly prove. I can exclude certain kinds of contract violation errors from an entire function, but this is too broad-brushed. I can exclude certain violation errors by using the baseline.xml functionality, though this is essentially impossible to aud...
stackexchange/codereview
I'm working on an iPhone that heavily interacts with a server. I'm at the stage now where I'm considering how to react to things like network failure and session timeouts. The two most common tasks that will occur is response to network issues are: 1 - A message informing the user that the net cannot be reached and ask...
stackexchange/codereview
i'm sure there is a simple way to solve this problem, but I can't figure out. I got a TabBarViewController with several Views. In some of the Views i loaded Tableviews with XML based content. My XML Parser works fine, I tested it before in a separate Projectfile. The Problem is that my TableViewController, for which I ...
stackexchange/codereview
How can I combine a open(Filename, {delayed_write, Size, Delay}) with an index on where to write this data to? I want to wait until I receive a certain amount of data and then write it to a position in the file. Also is {read_ahead, Size} the opposite of {delayed_write, Size, Delay}? I would like to read a certain amou...
stackexchange/codereview
when I used NumPy I stored it's data in the native format *.npy. It's very fast and gave me some benefits, like this one I could read *.npy from C code as simple binary data(I mean *.npy are binary-compatibly with C structures) Now I'm dealing with HDF5 (PyTables at this moment). As I read in the tutorial, they are u...
stackexchange/codereview
I have a silverlight application which makes use of RIA Services to communicate with the server and I am using membership API with Forms Authentication. The problem I am facing now is that the app throws exception when it tries to access the server via RIA after the original login has expired (authentication timeout). ...
stackexchange/codereview
I would like to apply a class to each div with a certain id if that id ends with a even number. Also i want to apply a different class to the ones that end with a odd number. Ideally it would be great if that can be achieved with jquery. Here is a example. I want to add class "Red" to all divs with id "item1" where the...
stackexchange/codereview
I am trying to built something like this: http://tourdeflex.adobe.com/flex4.0/TextLayoutFrameworkBasic/sample2.html User can not copy content from textarea in flex3. How can i implement this functionality? Many Thanks
stackexchange/codereview
I've seen some example of using a Pixel Bender for mixing two tracks together (per shader passes). However, would it be technically possible to write a Pixel Bender kernel that could do this? Filter LP / HP / BP (with Cutoff and Resonance parameters); Delays (with milliseconds timing and feedback parameters); Reverb ...
stackexchange/codereview
I would like to persist ASP session data in JSON format. I have written this code : Dim piece_ : Set piece_ = JSON.parse("{""code"":"""",""quantity"":""0"",""printed"":""false"",""familles"":""[]""}") piece_.set "code", Collection(key).code piece_.set "quantity", Collection(key).quantity piece_.set "f...
stackexchange/codereview
I'm working on a menu system and am working on some complex issues. The menu is generated from a array. This array is included in a pastebin because it's really big. I want to search in the array and get the hierarchical path of the value I'm searching while also getting the values next to the parents you run trough. A...
stackexchange/codereview
Possible Duplicate: Road distance,Actual distance between two places Hi, I want to calculate the driving distance between two locations [the user's specified locations] in my app, before user starts the driving. I used many formulas and getDistanceFrom in CLLocation also, but I am not able to get the perfect the dri...
stackexchange/codereview
I created a Calendar, then add it a calendar Webpart that shows it in another page. The problem is that the webpart is not showing it correctly in the Day and Week views. Month view is just fine. It looks that its showing 3 columns. Here is how it looks in the week view
stackexchange/codereview
Is there a way, in SQL Server, to declare a table variable without knowing the table definitions? Exempli gratia: DECLARE @Results TABLE INSERT INTO @Results EXEC MyProc @param1 = @myValue or DECLARE @Results TABLE SELECT INTO @Results EXEC MyProc @param1 = @myValue or DECLARE @Results TABLE EXEC MyProc @param1 = @my...
stackexchange/codereview
When using "git add" with a file pattern it only adds recursively the untracked files, and ignores the changed ones unless they are in the current folder. Example: $ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <fil...
stackexchange/codereview
I Have 15 names, and what I want to do is to divde the names in three rows (5names on each row), at the moment Iam using <ul> and <li> tags is there some possible way to have three rows 5 names on each row? using still the li and ul tags?
stackexchange/codereview
I have seen several things about capturing frames from a webcam stream using python and opencv, But how do you capture only one picture at a specified resolution with python and opencv?
stackexchange/codereview
if i am creating pages Dynamically with PHP and my URL, Title Tag, Meta Tags, Body Contents & Text all are for one single entity\tag\keyword and all the generated data is legit... will the search engines consider it as a separate page present in my website
stackexchange/codereview
I am using Entity Framework + SQL Server DB and am using partial classes with DataAnnotations to validate data. For things like Required and Range, this works fine, but I am unable to get the DataType validators to work. Here is an example of the (custom) annotation: [DataTypeWholeNumberAttribute(ErrorMessage = "Zip m...
stackexchange/codereview
I am getting a CPU spin in emacs elisp, within the C# flymake module. (Flymake is the module in emacs that periodically runs a build, then highlights any syntax errors or warnings in the current buffer.) I'm about to wade into the code, to look for likely spots where a spin could occur. While I'm at it, does anyone ha...
stackexchange/codereview
I have this function that send data to a php file, but for some reason, it seems like the php file isn't getting the data that jquery sent to it. Here is the jquery code: <script type="text/javascript" src="JS/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".h...
stackexchange/codereview
I would like to use with on an object that uses __getattr__ to redirect calls. Howerver, this does not seem to work with the method __enter__ Please consider the following, simplified code to reproduce the error: class EnterTest(object): def myenter(self): pass def __exit__(self, type, value, traceback)...
stackexchange/codereview
Sometimes when IIS restarts the app pool it will start a new instance of my application before the previous instance is shut down completely. This causes me alot of problem so i wonder what i can do about it. The course of action goes something like this. (spanning about 20 seconds) Application is running, let's call ...
stackexchange/codereview
I want to set the shipping module in virtuemart. There is a problem in shipping.. As of I know, Virtuemart calculates the whole weight of the products added to cart by an user and then displays a shipping rate corresponds to the weight and the country where the user is from. The shipping rates are set in the backend b...
stackexchange/codereview
under Mac OS X I have a problem with QGraphicsView and OpenGL. Sometimes, not everytime, when the QGraphicsView gets updated, then there is a flickering. Without OpenGL it's all fine. But I need OpenGL. Under Win 7 and Ubuntu it's all fine. I'm using QT 4.7 with PyQt 4.8.1. I tried it on a Macbook Pro 2010 with Mac OS ...
stackexchange/codereview
I have this snippet: view here edit here How can I make the "x" stay in the middle of the circle on all supporting browsers (at least firefox3+ and chrome) Snippet: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Backbone: Tody</title> <style> .delete...
stackexchange/codereview
I'm curious to find out how the latest JVMs would handle garbage collecting memory reserved by the following method. public List<Player> getHallOfFame() { ArrayList<Player> listToSort = new ArrayList<Player>(map.values()); Collections.sort(listToSort, comparator); return listToSort.subList(0, 5); } At worst I c...
stackexchange/codereview
I have to transform my Stopwatch "Variable" into seconds ? Stopwatch czasAlg = new Stopwatch(); czasAlg.Start(); //Do semothing czasAlg.Stop(); Decimal Tn = czasAlg.ElapsedMilliseconds/(decimal)n;
stackexchange/codereview
The following script gives me the number of unique elements in 4th field. awk -F'\t' '$7 ~ /ECK/ {print $4}' filename.txt | sort | uniq | wc -l Similarly I can find the unique elements in 2nd Field. But how do I calculate the number of unique items that are in 4th field but not in the second field. In other words, t...
stackexchange/codereview
I try to modify ssh session logging patch to sshd from kdvelectronics site. Code hasn't changed much from openssh 4.x to 5.x , but now sshd segfaults when script_open function calls ( as gdb says ) Core was generated by `sshd: root [priv] '. Program terminated with signal 11, Segmentation fault. #0 0x00007f687...
stackexchange/codereview
Let's say that I have two .Net applications running on a single machine. Both applications access a static property in a class. Considering the following scenario in sequential order: Application A FooClass.MyStaticString = "A"; Application B FooClass.MyStaticString = "B"; Application A Console.WriteLine(FooClass...
stackexchange/codereview
So i got this for powerset: powerset([], []). powerset([H|T], P) :- powerset(T,P). powerset([H|T], [H|P]) :- powerset(T,P). This generates all sets of a list. Is it possible to generate all sets in list order. Example: List = [a,b,c] I want to get [a],[a,b],[a,b,c],[b],[b,c],[c] Note there is no [a,c] in this list o...
stackexchange/codereview
What is both the naming and formatting standard for global variables in JavaScript? For example: var global_var // ? var _global_var // ? var GLOBAL_VAR // ? var _GLOBAL_VAR // ? ... Note: I am NOT talking about constants, just simply variables that have global scope.
stackexchange/codereview
I understand that it's possible (and I have done it) to return javascript and jQuery code (which of course is javascript... hehe) when doing a jQuery ajax request and running it once it reaches the browser. What I'm wondering is if I return data, let's say a form, that I present in a dialogcontainer. What should I de...
stackexchange/codereview
I have some C code using curl that I want to use to download a csv file. When I use it though, instead of getting and writing the file to disk, it writes the HTML of the webpage or doesnt write anything at all. Here is my code: size_t my_write_func(void *ptr, size_t size, size_t nmemb, FILE *stream) { return fwrite...
stackexchange/codereview
I am looking for some reference on average latencies for lock cmpxchg instruction for various intel processors. I am not able to locate any good reference on the topic and any reference would greatly help. Thanks.
stackexchange/codereview
Every so often, when I save a file using emacs I open the file to find a weird string of characters inserted at the beginning of the file. I have noticed this on multiple computers, so I don't believe it is specific to my machine. I'm running Ubuntu 9.04 with GNU Emacs version 23.1.1. Here is a sample of what I found t...
stackexchange/codereview
I have a c# application that is using a custom DLL (written in C, built with CL). the DLL has many printf's that I'd like to be able to view while running my c# app. So far I havnt been able to figure out how to view the output from the DLL in visual studio (2010 or 2005). I have a test app in C that runs the dll from...
stackexchange/codereview
Using Advantage Database Server SQL, I need to be able to join free tables that are in separate folders. Is there a way to do this?
stackexchange/codereview
How can I run any program and be able to handle its write to disk requests with my program so that it can't write anything without my permission? Is it possible to do this with C#?
stackexchange/codereview
how can I make the 5th box work with "checked" or "not checked"? var price_1_startup = 800; var price_1 = 0; function upgrade_1(str) { if (str == 1) {price_1 = 0;} else if (str == 2) {price_1 = +125;} else if (str == 3) {price_1 = +200;} else if (str == 4) {price_1 = +325;} $("#price_1").hide().htm...
stackexchange/codereview
We've written an app that uses the MPMoviePlayerController to play movies streamed from a server. It works fine on a bunch of devices we own (2 iPads, 3 iPhones) and a few others at our customer site but for one particular Japanese fellow, he gets no sound and no volume control? Any suggestions? PS I did ask him to re...
stackexchange/codereview
I have a text file that I'd like to embed within a resource in Win32, but with Unicode characters - that is, each character takes 2 bytes. How can I do this? The file only contains ASCII characters. Is there an indication or flag whether or not a file is a Unicode file? I have now as resource.rc: FILE FILE_TYPE "text.t...
stackexchange/codereview
It seems that with an object like this: #<Course id: 1, name: "Targeting Triple Negative Breast Cancer", description: nil, disclosure: nil, created_at: "2010-11-11 14:43:31", updated_at: "2010-11-11 14:43:31", picture: nil, course_reference_id: nil, authors: "Lisa A. Carey, M.D.", volumn_number: nil, publication_date: ...
stackexchange/codereview
I have class that has an image <a class="proceed-btn right" onclick="validateall();" style="cursor: pointer;">Proceed To Next Step >>></a> WHICH HAS THIS CSS .proceed-btn { background:url("images/proceed-btn.gif") no-repeat scroll 0 0 transparent; height:35px; width:275px; } then on the same page I have these i...
stackexchange/codereview
I recently updated a number of tables in the database to use OnDelete=Cascade, however, when I went to update my edmx file via Update model from database I noticed that the OnDelete was not properly updated. After a bit of searching, I found the following 'tip' from http://msdn.microsoft.com/en-us/library/bb738695.asp...
stackexchange/codereview
i am trying to change the color of the cell using the following code, however it displays all the cell's as white font instead of the gold rgb color code i have. if (row == 0) cell.detailTextLabel.text=@"An blah blah"; cell.textLabel.textColor = [UIColor colorWithRed:139 green:136 blue:120 alpha:1];
stackexchange/codereview
I'm trying to build a basic video player with a playlist using the OVP Player. So far I have figured out how to feed in the new video source using ExternalInterface, but I can not figure out how to listen for the Flash event "EVENT_END_OF_ITEM". How do I listen for Flash events in Javascript (and thus jQuery)? OVP has ...
stackexchange/codereview
I would like to retrieve the records in certain dates after d/mm/yyyy, or after d/mm/yyyy and before d/mm/yyyy, how can I do it ? SELECT date FROM table WHERE date > 1/09/2008; and SELECT date FROM table WHERE date > 1/09/2008; AND date < 1/09/2010 It doesn't work.
stackexchange/codereview
My app has couple of normal views (V1, V2), without a navigationController, but when and ADD button is pushed creates a view with a navigationController like this: CreateNewEventViewController.m - (void)viewDidLoad { [super viewDidLoad]; tableViewController = [[NewEventTableViewController alloc] init]; n...
stackexchange/codereview
I use JSON.NET on deserialization into CLR class. Everything is ok with deserialize JSON into class, in class constructor I try make a BitmapImage and set to the class property Photo. Problem is properties BitmapImage Photo is still null, Uri is good. I try use this uri without class constructorto create BitmapImage o...
stackexchange/codereview
Can someone help me extracting a 2D matrix of integers from a string like the one below in Objective C? 1 1 0 0 -1 -1 0 1 1 0 0 -1 0 1 0 0 0 -1 -1 1
stackexchange/codereview
Anyone know how to get an excel cell value with open XML SDK 2.0, knowing the row and column position e.g. (A2), through Linq?
stackexchange/codereview
I've developed an application in C# (.NET 3.5) that collects a lot (e.g. 40 channels, each sampled @ 400 Hz/32 bits per sample for 24 hours) of sample data from various sources. Samples are in the format DateTime/double (x/y) and there may be several million samples per channel. Data are stored in DB4O files. Now I nee...
stackexchange/codereview
Originally i wanted to ask if it's faster to sort Integers than Strings. But i have answered this question myself and i'm suprised of the big difference. Why is sorting and BinarySearch Integers as much faster compared to Strings? The (VB.Net) Test with 1.000.000 Int32/Strings: Private Function CheckIntBinarySe...
stackexchange/codereview
What is the semantics of compare and swap in Java? Namely, does the compare and swap method of an AtomicInteger just guarantee ordered access between different threads to the particular memory location of the atomic integer instance, or does it guarantee ordered access to all the locations in memory, i.e. it acts as if...
stackexchange/codereview
Im implementing a Widget which is basically a list of buttons (which represent a file structure). It looks like this: [[recentFolder] // bar [(stretch) [folderA], // foo [folderB], // programs [folderC], // c: (stretch)] [rootDir]] // my computer I hope you can see the three widgets...
stackexchange/codereview
I had been trying to rotate an image around its center in using pygame.transform.rotate() but it's not working. Specifically the part that hangs is rot_image = rot_image.subsurface(rot_rect).copy(). I get the exception: ValueError: subsurface rectangle outside surface area Here is the code used to rotate an image: de...
stackexchange/codereview
I've never come across the need to attempt the following such routes, where a user can visit another's home page, or their own (admin) home page. Here are the routes I have: routes.MapRoute(null, "Home/Me", new { controller = "Home", action = "Admin" }); routes.MapRoute(null, "Home/{userID}", n...
stackexchange/codereview
I have a question. I've done in XML ImageView. Unfortunately, the "holds" on the left side of the screen on the phone. I wish this picture could shift to the right place. I would like to point to the X and Y position of the image shifted to the indicated place. How do I do this? Please explain in detail because I am a ...
stackexchange/codereview
I installed all the needed tools and I wrote a simple YouTube downloader for WP7. The problem is with playing.. I tried several mp4 formats (listed here http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs) with that code: new MediaPlayerLauncher() { Media = new Uri("http://localhost/asd.mp4"), C...
stackexchange/codereview
SOLUTION: I was pointed at the wrong database thanks for the help. the count below returns 0 but when i run it manually there is a result. by manually i mean copying the SQL that is echo'd by my code and pasting it into the mySQL command. <? $host="localhost"; // Host name $username="userName"; // Mysq...
stackexchange/codereview
I was trying to develop a method pipeline using asynchronous method invocation. The logic for the pipeline is as follows There are n data in a collection that have to be fed into m number of methods in a pipeline Enumerate a collection of T Feed the first element to the first method Get the output, feed it to the seco...
stackexchange/codereview
I am using this slice of code (shown below) in an attempt to populate the object literal named Parameters inside the for loop. I need the key:value pair to be assigned in conjunction with the loops iterating i variable, as such: {key_1:chunks[1],key_2:chunks[2]}. However, my code isn't working. The 'key_'+i is not bei...
stackexchange/codereview
In my application I am developing a sort of tile system. Instead of doing my tiles manually I am planning on having UIImageViews that "snap" to a specific location. Here's my question: How can I round my new location to a factor of (in my case) 16?
stackexchange/codereview
In my program I have a custom view object. Inside the view class is a method called foo. For some reason when I call foo from my activity, it doesn't fire. Here is the code: XML of the custom view: <com.company.application.MyView android:id="@+id/my_view" android:layout_width="wrap_content" android:layou...
stackexchange/codereview
my attribute value is coming in html tag .can any body tell how to parse the value any help would be appreciated
stackexchange/codereview
here my code- $things = serialize($_POST['things']); echo $things; require 'database.php'; $q = "INSERT INTO tblslider(src) values($things)"; mysql_query($q, $link); if($result) { echo "Slider saved successfully."; } Output- a:4:{i:0;s:10:"651603.jpg";i:1;s:11:"7184512.jpg";i:2;s:11:"3659637.jpg";i:3;s:10:"569839.j...
stackexchange/codereview
I've recently had to make a change to a core module that means that my error pages are sent using HTTP 1.0 and the rest of my site is HTTP 1.1. Background is here and here. I've seen advice that indicates that making one site speak different versions of HTTP for different pages is a Bad Idea, eg here, but they don't sa...
stackexchange/codereview
Maybe I am just not reading the MSDN documentation correctly, but given a function that takes in one string parameter and returns type T, how can this be specifed as a shared function using Func()? MSDN says Func(Of In T1, Out TResult), but all of their examples use the same data type, i.e., Func(Of String, String). I...
stackexchange/codereview
does scheduled recycling an application pool affects HttpContext.Application / Cache? I can't find reference for that.I guess yes, as it causes worker process to restart, I want to make sure. I'm talking about iis 6.0 (w3wp.exe). Thanks , Pawel
stackexchange/codereview
I am started evaluating the symantec scanengine 5.2 for our application. Its a web portal where users can upload the file. I am currently using C# API comes with scanengine and using StreamScanRequest for scanning the streams, since we are passing the byte array uploaded(file) from users. But in the documentation and ...
stackexchange/codereview
Anyone found a good way to make asynchronous calls to the db via entity framework? Use background worker thread? This is a WPF application. I know in RIA services there is a loadcompleted event that does not seem to exist in entity framework's object context. Thanks!
stackexchange/codereview
I have a VBA script used to process Word documents. The first thing the program does is to create an index of the documents in a defined set of folders. It then goes through the list processing each of the indexed documents. The problem I am having is that it will sometimes decide that a particular document cannot be f...
stackexchange/codereview