instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have this code public List<CalendarData> GetCalendarData(DateTime day) { List<CalendarData> list = new List<CalendarData>(); using (dataContext = new VTCEntities()) { DateTime test = new DateTime(2010, 10, 20, 17, 45, 0); var data = from z in dataContext.Reservati...
stackexchange/codereview
Im trying to put the contents of a simple command in to a bash array however im having a bit of trouble. df -h | awk '{ print $5" "$6 }' gives percentage used in the file systems on my system output looks like this: 1% /dev 1% /dev/shm 1% /var/run 0% /var/lock 22% /boot 22% /home 22% /home/steve I would then like to...
stackexchange/codereview
Little background: I have a JTextField called reading. It is located on a JFrame panel. reading = new JTextField("waiting for entry"); What I am trying to do is amend the JTextField to where it creates a blinking effect. Appears, and then disappears. I want that to alert the user that it needs attention. So is there...
stackexchange/codereview
Hey there, i was wondering what the AS3 experts would do to perform this task: save user data (registry form) locally, and then be able to read it or export it into something client can read. Thanks in advance, i am quite new to the AS3 approach to this things, thing to notice is this project is pure AS3, and deployed ...
stackexchange/codereview
I'm really struggling with a choice between the GWT Tree widget, which has been a part of GWT for ages; or the new CellTree, which is introduced by GWT 2.1. The tree I want to present to the user is not particularly large, but I am very concerned about responsiveness. The data at the nodes of the tree will be editable....
stackexchange/codereview
I have already read this question : Rails.env vs RAILS_ENV I have added rails-dev-boost plugin (http://github.com/thedarkone/rails-dev-boost) and it internally uses Rails.env.development? to check and bypass its scripts if its not development. This is generally okay. But I also use Spork Testunit (http://github.com/tim...
stackexchange/codereview
I've been learning SQL for about a day now and I've run into a road bump. Please help me with the following questions: STUDENT (**StudentNumber**, StudentName, TutorialNumber) TUTORIAL (**TutorialNumber**, Day, Time, Room, TutorInCharge) ASSESSMENT (**AssessmentNumber**, AssessmentTitle, MarkOutOf) MARK (**AssessmentNu...
stackexchange/codereview
I would like to trim an x amount of characters from the left of multiple folders. Imagine having these folder names: 01.a-foldername 02.b-foldername 03.c-foldername After being processed by the VBscript they become: a-foldername b-foldername c-foldername
stackexchange/codereview
how can attachment sends through mail command in linux with mail command either with mail -s or -v option also how please confirm how to download the attachments from it . and how one should knows with mail command that attachment is present with the particular mail
stackexchange/codereview
I have this code requesting some folder info from a mysql DB: function gotoDir(pmcat_id, pcat_id){ $('#slideshowContainer').html('<img class="loader" src="/javascript/ajax-loader.gif">'); $.post("/publish/includes/content.includes/functions.slideshow.php", { updateSlideshowDir: 1, pmcat_id: pmcat_id, ...
stackexchange/codereview
I am using Xcode's SplitView template. I have changed the rootviewcontroller to be a UIViewController and I have modified to the NIB so that it has a tableview and a few other controls. I want to create another tableview and search control in the NIB. Is this possible - can you have 2 tableview's in one NIB? If yes, ...
stackexchange/codereview
i'm attempting to make a purchase ordering system for work in php, mysql and jquery. I've got a "running total" working great but i've come to the point where if the user is happy and wants to proceed to order the products they've selected i want to take the items at the bottom of the screen (attached picture to see wh...
stackexchange/codereview
I need to convert an int to a 2 byte hex value to store in a char array, in C. How can I do this?
stackexchange/codereview
I need parse assembly qualified name without using AssemblyName, because I get System.IO.FileLoadException (the assemblies are not available). I only manage strings not assemblies. If I have a string, I want get strings like the following for asm1 and asm2 string variables. FullName = "CalidadCodigo.ParserSQL.Reglas.A...
stackexchange/codereview
In NSI, how can I make one section depend on another? Our installer has four visible sections (components): * Client * Database * Server * Interface All components depend on Client, so it is mandatory. In addition, Server depends on Database and will fail to install if Database is not present.
stackexchange/codereview
How do I create a filter in Django Admin to only display records where an integer value lies between two values? For example, if I have a model Person, which has an age attribute, and I only want to display Person records where age is between 45 and 65.
stackexchange/codereview
I cannot figure out why Enumeration does not yield any results Dim Configuration = From Setup In XElement.Load("C:\xml\setup.xml").Elements("settings") Select Setup For Each Setting As String In Configuration 'Do something Next And here is the Xml file located at C:/xml/setup.xml <?xml version=...
stackexchange/codereview
First off I am a beginner in Android development; I have been doing a lot of research into how to get the various tasks I am trying to complete. I have yet to find any similar issue to this, which is why I am asking it. This is a multipart question. Overview of program and problems: I have a program (for Android 2.1 an...
stackexchange/codereview
I've been trying to install the library using brute force - trying different combinations of the things people have posted in mailing lists (I'm too lazy to list them out one by one, but I think I tried the most of them. I can list that too if it helps anyone.). The results have varied from a harmless message of a miss...
stackexchange/codereview
I'm currently building an intranet engine for a project I've got on the go at the moment, and I'd like to save myself a little time by generating header images from code where possible, however, I'd like it to match our concept image. What I'd like to achieve is below: My issue is I've not the faintest how to create t...
stackexchange/codereview
I am trying to record a stream from a webcam using Expression Encoder 4 SDK in WPF I can capture the video & audio streams and record these to disk however they are only recording at a base resolution of 320x240 the webcam is capable of capturing at 720p, how can I record at this resolution. Any help would be appreciat...
stackexchange/codereview
I am trying to do this code in my CodeIgniter application : <?php class Inventory extends Controller { function current_stock() { //do something } function add_stock() { //do something-else ****then do function current_stock()***** } } How do I execute another function...
stackexchange/codereview
I am new to SQL Server and just joined a company where somebody had created the following stored procedure which I cannot understand. I would like all of you to help me to understand what is going on in this procedure and what can be the alternate way of doing it. Procedure [dbo].[SP_GetUserIncompleteCheckList] ( @Gro...
stackexchange/codereview
I would like to have the same Makefile for building on Linux and on Windows. I use the default GNU make on Linux and the mingw32-make (also GNU make) on Windows. I want the Makefile to detect whether it operates on Windows or Linux. For example make clean command on Windows looks like: clean: del $(DESTDIR_TARGET...
stackexchange/codereview
with the below code, I'm able to add a page fragment to an other page. The page contains a form to be posted to a certain action method. $("#ul-menu a").click(function () { $.get($(this).attr("href"), function (response) { $("#dialog-div div").replaceWith($(response)); }); return false; }) Instea...
stackexchange/codereview
My app can not connect to 4G on HTC EV0 device. How app can access network through CDMA 4G?
stackexchange/codereview
As I guess, most of you know that we have the following encodings for files: ANSI UTF-8 UTF-8 is recognized by adding three chars at the beginning of the file but those chars causes some troubles in PHP Language as you know So we use UTF-8 Without BOM (Instead of UTF-8) Here is my question: How can we write a new ...
stackexchange/codereview
So a UISlider works great to change/choose values but it just doesn't look that great. What i'd like to implement is more like a horizontally spinning dial. I already have all the graphics I need and i've already implemented the scroll view to slide my image left and right. The problem at this point is that unlick in a...
stackexchange/codereview
I'm getting a deprecation warning from Rails 3 in development.log as follows: DEPRECATION WARNING: Calling a method in Rails::Application is deprecated, please call it directly in your application constant MyApp::Application. (called from ... config/environment.rb:5) When I go to config/environment.rb, I ge...
stackexchange/codereview
Do I design the basic skeleton HTML and start from there by inserting components and actions through java code ? Plan on building the whole thing as a java program by designing the nitty gritty details using java code ? Or is there a better way that I don't know about ? Apart from that, how easy or complex is it main...
stackexchange/codereview
I have this in my the middle of my show.html.erb <script type="text/javascript"> $(document).ready(function(){ $("#map<%= shop.id %>").gMap({ markers: [{ latitude: <%= shop.lat %>, longitude: <%= shop.lng %>, html: "<%=h shop.name %><br/><a href='http://maps.google.com/maps?q=<%=h shop.address_geo %>' target=...
stackexchange/codereview
I am using the below piece of code to get the Row Count from an Excel file after applying AutoFilter method. But it always returns me 1 as Row count. Please help Excel.Range rngFilter = (Excel.Range)applicationObject.get_Range("Staffing", Type.Missing); rngFilter.AutoFilter(1, "Transition", XlAutoFilterOperator.xlAnd, ...
stackexchange/codereview
I need to somehow round down float values with a precision of two decimal points, for futhur computation. For example if I have 0.1098 I need it to become 0.10 and if i have 0.1176 I need that to become 0.11. Pretty much I guess I need to truncate my floats to 2 decimal points
stackexchange/codereview
Say I get an ActiveRecord object from the console by performing a simple *.last, or other find command. Is there an easy way to then reference >> u = User.last => #<User id: 6, ... > >> [here!] At [here!] I'd like to type something like %.name or $.name to access the previous object. Possible?
stackexchange/codereview
So my user signs up from the Android App on his phone and after sign up is successful I trigger a mail to be sent to the signed up email address with an Activation Passcode from my PHP script. Here is the line of code that I use which is pretty trivial. mail($to, $subject, $message, $headers); The mail is sent correct...
stackexchange/codereview
I am trying to write a regex in Java to get rid of all heading and tailing punctuation characters except for "-" in a String, however keeping the punctuation within words intact. I tried to replace the punctuations with "", String regex = "[\\p{Punct}+&&[^-]]"; right now, but it will delete the punctuation within wor...
stackexchange/codereview
I need to do a huge replacement on my site 400+ items with the new asynchronous tracking. pageTracker._trackEvent('footer_search', 'search', 'search-footer'); Im using aptana and it has a regex replacement, it needs to look like this, notice the [ ]. _gaq.push(['_trackEvent', 'footer_search', 'search', 'search-footer...
stackexchange/codereview
recently I had a job interview. I had two tasks: 1) to refactor a JavaScript code // The library 'jsUtil' has a public function that compares 2 arrays, returning true if // they're the same. Refactor it so it's more robust, performs better and is easier to maintain. /** @name jsUtil.arraysSame @description Compares...
stackexchange/codereview
I'm running a script made in Groovy from Soap UI and the script needs to generate lots of files. Those files have also in the name two numbers from a list (all the combinations in that list are different), and there are 1303 combinations available and the script generates just 1235 files. A part of the code is: filena...
stackexchange/codereview
I am trying to build an android application for a message board. To display formatted html for the post contents I have chosen the TextView and the Html.fromHtml() method. That, unfortunately, covers only a few html tags. The unknown tags are handled by a class that implements TagHandler and has to be generated by myse...
stackexchange/codereview
I have a python3 program that I'm making which uses a sqlite database with several tables, I want to create a selector module to allow me to chose which table to pull data from. I have found out that I can't use parameter substitution for a table name as shown bellow, so I'm looking for some alternative methods to acco...
stackexchange/codereview
I have this query: SELECT * FROM article WHERE (state = 2 OR state = 3) AND category_id = 100 ORDER BY mod_date DESC And I have defined this index: category_id_idx: state category_id mod_date When I run the query with an EXPLAIN, it returns this: id: 1 select_type: SIMPLE table: article type: range possible_key...
stackexchange/codereview
basically I want to know if the view controller I'm in is the root view controller or not. If its not I want to put a button in the nav bar that says "back" (as if it were a proper back button - this bit I know how to do). Before you ask, I have removed all the titles from my view controllers - I didn't want them to sh...
stackexchange/codereview
I have a dialog box that is: JOptionPane.showMessageDialog(null,"Once medicine is given, measure temperature within 5 minutes." ,"Medication" ,JOptionPane.PLAIN_MESSAGE); When the user presses 'ok', it goes straight to a Jframe that ask the user to input the temperature using a slider and then pressing a button that ...
stackexchange/codereview
Perhaps I'm going about this all wrong, but I'm trying to get all the matches in a string for a particular regex pattern. I'm using re-matcher to get a Match object, which I pass to re-find, giving me (full-string-match, grouped-text) pairs. How would I get a sequence of all the matches produced by the Match object? In...
stackexchange/codereview
I'm trying to transform my primary link menu block in a jquery accordion menu (link text). I've tested the Accordion Menu module for Drupal, but it does not function for me. For my Primary Links Block I would have more or less this html output: <ul id="accordion"> <li> <a href="#rece...
stackexchange/codereview
im trying to figure out how to find related topics items using mysql & php, this is my table for topics topics{id, topic, founder,vote_up, vote_down date} for instance say i was on topic page of php topic {3,php,getaway, 6, 8, 20.06.2009 ect] how would i find all the related topics to this topic
stackexchange/codereview
Working on a menu display where the letter "m" takes the user back to the main menu. How can I have it so that it works regardless if the letter "m" is uppercase or lowercase? elif choice == "m":
stackexchange/codereview
This is my code. v=dom.find("ul:first").outerHeight(); // the height of the first li element // instead of taking the height of the first li element, it should loop through all // li elements and set v to the element with the biggest height The comment in the middle of the code pretty much ...
stackexchange/codereview
Can I have functors in C? I mean for example in C++ I can do: struct Rules { operator()(/*maybe some args*/) { } }; Some (fictitious) algorithm: int sort(iter beg, iter end, Rules); Can I do identically in C?
stackexchange/codereview
I have a real simple question that I can't seem to find an answer to. I want to compress two XPath statements (that are getting attribute values). I learned about the | operator, hearing how it returns node sets. var getdata = xmldoc.evaluate ( '/foo/bar[@world=\''+hello+'\']/child::*/attribute::name |/foo/bar[...
stackexchange/codereview
i am working with an pageCollectionin silverlight ,i have some remove and addition work in to the pagedviewcollection's object i was able to remove from collection as below _pageCollection.RemoveAt(_index); but i am not able add an item to the pageCollection .how to add an item to the _pageCollection. i feel it ...
stackexchange/codereview
I've been having some trouble getting NSNumberFormatter to work properly. I'm compiling in iOS4 with the Three20 Framework. All of the NSNumberFormatter selectors require something called NS_AVAILABLE as a second parameter on the selector: [numberFormatter setCurrencyGroupingSeparator:(NSString *)string __AVAILABILITY_...
stackexchange/codereview
I have an Excel macro that takes an exceedingly long time. It seems to crash Excel (I get a Not Responding message in the taskbar) when I leave it unattended, but if I put a breakpoint that gets hit every five or ten seconds, it's OK. Trouble is, I'll need to step on from the breakpoint about a quarter of a million t...
stackexchange/codereview
select name from emp_profile; Result: tom@rj6.com In the above result how to determine whether there are trailing spaces in it or not
stackexchange/codereview
I am trying to send C++ ojbects through a tcp connection: My objects are all serializable, using boost serialization. The TCP server/client is made with boost asio. Basically I would like to send message like that would contain the message type (the type of the object being sent) and the data itself (the serialized ...
stackexchange/codereview
I am new to Silverlight and I'm required to create a video player on urgent notice. (Story of my life) The custom video player should play .wmv files uploaded on another server. I've been trying to find tutorials and it's just nowhere to be found. Can anyone be so kind to point me in the right direction?? I'm using Vi...
stackexchange/codereview
For a long time I have used a grey background color in Eclipse, and it's awful. But I have really no idea how I can switch back to a default white background. I have looked in Window > Preferences under the General and Java tab, and tried with Restore to Defaults on them, but it doesn't work. The color settings in Ecli...
stackexchange/codereview
I am trying to find a solution to using array_map('mysql_real_escape_string', $data); on multidimensional arrays, If $data is multidimensional, php returns an error. cheers
stackexchange/codereview
In long server processes, server can progressively write responses, like: Copying 100 files completed, after 10 seconds: Archiving files completed, after 30 seconds: Deleting temporary files completed, and .... Is it possible to fetch this stream before the ajax is completed and show it to the user?
stackexchange/codereview
I've got a Flex 3 app targeting Flash Player 9. Can I download the Flash Player 10 debug version and use it. Would I need to change any settings? (I don't want my app to target Flash Player 10). Thank you. -Laxmidi
stackexchange/codereview
I am trying to connect to my CouchDB database on Cloudant using Node.js. This worked on the shell: curl https://weng:password@weng.cloudant.com/my_app/_all_docs But this node.js code didn't work: var couchdb = http.createClient(443, 'weng:password@weng.cloudant.com', true); var request = couchdb.request('G...
stackexchange/codereview
My project is a console client. I start in the console and then display the form. I use the code below to display a blank form (I will add controls later) to the user. But the form is displayed, but it is stuck (not active). What should I do? Console.WriteLine("Starting form"); Console_Client.Main mainform = new Main()...
stackexchange/codereview
I usually don't commit unnecessary files, such as .user and .suo files, to the repository. I'm unsure about whether .testsettings and .vsdmi files are regenerated by Visual Studio if absent.
stackexchange/codereview
In Android Spinner, I can set selection to a particular Item in the code (using setSelection(int)). This will end up calling OnItemSelectedListener, which is fine. But when the user selects an item from the screen, by clicking the spinner and the item, I want to handle this as a different event, because the logic in my...
stackexchange/codereview
I'm sure this has been asked before, but I searched and couldn't find an answer. Is there any way I can enable editing of Forms while debugging in Visual Studio 2008? Currently, when I'm debugging, all of the controls and properties are locked to prevent editing. This is very annoying when I'm debugging and trying to ...
stackexchange/codereview
We do use TFS to do automatic build and tests with our checkins. Today we verified old builds we have done last week. We were seeking one specific : 2010/10/27 (5). For some kind of reason it was not showing when we opened TFS/Project/Builds in visual studio (or the build tab in TFS Web). Here is a screenshot that show...
stackexchange/codereview
I am writing an Android app and I need to download a csv file for a graph. I am not sure if I need to either put the two columns to two array strings or import them to the DB then just query. I am leaning towards just putting them to strings since the csv file will change constantly. My two issues are: I need to l...
stackexchange/codereview
To clarify, here's the situation: I'm building a really simple CMS that will become the base for several apps I have plans to create in the future. I'd really like to be able to create a page called "About" (which will be mostly static) and automatically be able to access it at "/about", without having to modify routes...
stackexchange/codereview
So, I have a IIS machine with PHP and I need to grab the data from a URI that is returned in JSON format, ie: http://finance.google.com/finance/info?client=ig&q=NYSE:GOOG The trick is, I can't use cURL to do it. Is there a way to do this so that I have a var that I can then use json_decode() on?
stackexchange/codereview
I have a rails application deployed to jboss as a war packaged using warbler. The application has been working great for a while now. I am looking to change the rails application so that rails, all gems and their dependencies are vendor'd. To that extent I have it working great and can boot the application locally usi...
stackexchange/codereview
I'm working in a multi-user git environment. My workflow is to work in a branch, and pull from the remote into local master, then rebase my working branch, merge the branch with local master, then push to the remote repo. In the most recent pull there 6 new commits, one of them my code needs to take precedence over. ...
stackexchange/codereview
I'm trying to set a property on a custom DropDownList: <custom:ReferenceDropDownList ... ValidityDate="<%# Application.CreateDate %>" /> Even though I can see that Application.CreateDate has been set in the Page_Load method on the containing UserControl, the code-behind in the DDL never seems to pick it up. protected ...
stackexchange/codereview
I am starting a nsb saga using IAmStartedByMessages. On the handle of this particualr message i am doing some kind of business logic if some cases fail i don't want the Saga to be persisted. How can i achieve this? Thanks, Ajai
stackexchange/codereview
How to display images from a folder in a gridview whose path is stored in ms sql database?
stackexchange/codereview
How can I add custom commands to the cmake when invoking something like cmake -G"Visual Studio 9 2008" I wish to be able to handle the case when the supplied library finder / configurator works wrong and I want to override the corresponding variables like set BOOST_DIRECTORY = C:\boobs\ to solve problems like no boost...
stackexchange/codereview
I'm going through a programming book and one of the examples is about fibonacci numbers, and how a recurring function finds the fibonacci number for the nth one along. The code looks like this: Int fib (int n) { If (n<3) Return (1); Else Return (fib(n-1))+(fib(n-2)) } Now this isn't exact because I'm typing from my p...
stackexchange/codereview
I'm looking for a good syntax highlighter for my site that uses PHP & MySQL and Jquery. A syntax highlighter that does not let the code overlap but allows the user to scroll like here on stackoverflow.
stackexchange/codereview
I have 2 external process to run(2 console exe) that provide output to console. I am running these apps on wpf application. I capture console output and use it as input. here how i do 1. run first process. capture the console output. 2. do some work using the first process output. 3. run the second process after i hav...
stackexchange/codereview
I have an Axis2 Object returned from my Java code. How can I convert that object to XML or output it as XML in the console? I know there is lots of 3rd party libraries available to serialize objects to XML - but how to do it with the Axis2? Update: From this link I found the solution. One needs to get an OMElement li...
stackexchange/codereview
I want to create a widget around an ajax API that I host on my server. The widget would be served by my server, too, and placed on 3rd party web sites. The widget has to have access to the hosting page's DOM (because it accesses form data on the page) so it must be embedded using a script tag rather than in an iframe. ...
stackexchange/codereview
I am using telerik controls in my c# asp.net project. I am trying to disable a div in a telerik navigation menu from the .cs file. For example: if (Emp_Role == "1" || Emp_Role == "5") { DivLeave.Visible = true; } I try run the project I get this error: CS0103: The name 'DivLeave' do...
stackexchange/codereview
We are about to release an ASP.net MVC website in the near future. Im wrapping up functionality testing and now onto performance and load testing. My question is how much load testing is appropriate? It is going to be a high traffic website. I looked at purchasing neoLoad but the cost is crazy. But there doesnt seem to...
stackexchange/codereview
There are a number of network types defined in TelephonyManager: NETWORK_TYPE_GPRS NETWORK_TYPE_EDGE NETWORK_TYPE_UMTS NETWORK_TYPE_CDMA NETWORK_TYPE_EVDO_0 NETWORK_TYPE_EVDO_A NETWORK_TYPE_1xRTT NETWORK_TYPE_HSDPA NETWORK_TYPE_HSUPA NETWORK_TYPE_HSPA Is there any info out there that describes what range of speeds you...
stackexchange/codereview
I'm filtering out certain nodes in my XSLT transform, and among those remaining I need to insert a element if a certain sub element is missing. Here is what I have. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLS...
stackexchange/codereview
I have a piece of code that checks a time and then adds hours based on the daylight savings time value. Dim CommentDateTime as Date = "11/2/2010 8:21:42 PM" If CommentDateTime.IsDaylightSavingTime Then 'do something Else 'do something else End If The problem that I'm having is that IsDaylightSavingTime behaves d...
stackexchange/codereview
Hello I have quite a strange problem using quicktabs. I used the framework theme to develop a custom look for my site. I used quicktabs in the center content area to create a tabbed look for placing links within the body. Everything is working fine. However, when I view the site in IE8 at a resolution if 1024*768, ...
stackexchange/codereview
I have this code: using System; using System.Text; using Tamir.SharpSsh; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { SshExec exec = new SshExec("192.168.0.1", "admin", "haha"); exec.Connect(); string outp...
stackexchange/codereview
How can I make the password optional into the registration and login when authenticating a user (if no password then it will just use the e-mail) using Devise. Although if they register with a password (or update it later) it should then be require for login. How can I accomplish this using Devise? Note: I'm using Rail...
stackexchange/codereview
I have a class CField and a class CBoard containing a 2d array of CField. When I do this: board(0,0)->Is (CField::CHECK) I get a segfault in Is() method. GDB points me right after the &, so I think it's related to it. What's the cause? Full code: http://pastebin.com/vetShYsL - header http://pastebin.com/pGNPpa8N - sou...
stackexchange/codereview
Is there anything wrong with a union having one or more methods? Or anything to watch out for? (I can see constructors/destructors being problematic for schizophrenic reasons)
stackexchange/codereview
I've heard different things. Seems like Microsoft experimented with a beta service, but I don't know if it's still available, or ever made it into production. If Windows Live ID is an OpenID Provider, where is the endpoint?
stackexchange/codereview
Go to https://liquor.com/cask-bulleit/, then click BUY to get into the SSL enabled pages in Chrome. Why is it that ONLY in Chrome I see the https crossed out (http://screencast.com/t/xcamgjats1kJ) when I am on the SSL required pages? Seems weird that I don't get any errors in Firefox or Safari, yet in Chrome I do. The ...
stackexchange/codereview
Hi I have a COM DLL implemented in ATL and now I want to develop a test exe in C# to test the features. How can I call a COM-DLL from C# application ? I have tested with LoadLibrary() but AFAIK this is for Win32 native DLL. Also I'm not sure that CoCreateInstance is called somewhere in LoadLibrary()? [DllImport("kerne...
stackexchange/codereview
I have main activity window in my app, which displays three icons on it, also there are 3 home screen widgets in this application. is there a possibility for long press on one of the icons in the main activity, to do the same behavior as when you install the program shortcuts from the application menu when dragging sho...
stackexchange/codereview
I'm using the example shown in this post. It's working great, but I have trouble getting the indicator to show. Is there anyone that can explain why it doesn't work? Here's my code, mostly the same as above link: <script type="text/javascript"> $(document).ready(function() { $('.edit').editable(submitEdit, { ...
stackexchange/codereview
I am working on a silverlight 4 project, where the goal is to play back video from files on the local PC (these files are downloaded first, and then played). The problem I am having is that for relatively large video files (i.e. 350 MB+), the media element 'hangs' for about 8-10 seconds once the source has been set. F...
stackexchange/codereview
We have all heard that one should never rebase published work, that it’s dangerous, etc. However, I have not seen any recipes posted for how to deal with the situation in case a rebase is published. Now, do note that this is only really feasible if the repository is only cloned by a known (and preferably small) group o...
stackexchange/codereview
I am trying to setup a “checkout/order” page within a site in which logged in users earn points/credits. Once they earn a certain amount of these points they can then go to a shopping cart and pay with these points only. (No money changes hands, so no paypal/checkout/shipping/taxes etc are involved). I have done a 'sho...
stackexchange/codereview
I am debugging a WCF project with two-way communication. I have a callback with data that I store in an array the client, a WinForm, and use that for painting a control. As you can guess, the data disappears from writing in the array (really a list) to when I read the data. For debugging I would like to see if I am w...
stackexchange/codereview