instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am just learning the Entity Framework and have made some good progress on incorporating it with my layered code structure. I have 2 visual layers, a business layer and a data access layer.
My problem is in passing entity object between layers. This code sample does not work:
// BLL
public static void Test1()
{
L... | stackexchange/codereview |
My Cocoa application needs to handle Get URL events. I think I correctly followed the steps in this answer to modify Info.plist and write & register a URL handler method.
Problems:
When I go mytesturl://anything in Safari while my app is running, it pops up a window asking if I want to open my app. And if I say yes,... | stackexchange/codereview |
I'm trying to use an NSDate variable captured in another method. After much reading and searching I thought I found the answer on this site: http://www.everydayone.com/2009/08/nsdate-as-global-variable/. I first tried declaring the variables in the AppDelegate.h as specified in the article. The result was 2 failures in... | stackexchange/codereview |
I am trying to create a simple button example, but when I add this code:
mButton = (Button) findViewById(R.id.button1);
it wont update my R.id file. I've tried everything including making sure automatic build is on, cleaning the project, and updating the SDK. This happens in both 1.6 and 2.2 projects.
Here's what full ... | stackexchange/codereview |
Many programmers use devise as their authentication solution and I would like to get their advice:
Devise is already tested, but I want to know if there is something to test by myself (integration/unit/funtionnal tests?) for a standard devise integration with my knowledge
(I'm not familiar with shoulda and cucumber, ... | stackexchange/codereview |
I have the following C application:
#include <stdio.h>
void smash()
{
int i;
char buffer[16];
for(i = 0; i < 17; i++) // <-- exceeds the limit of the buffer
{
buffer[i] = i;
}
}
int main()
{
printf("Starting\n");
smash();
return 0;
}
I cross-compiled using the following versi... | stackexchange/codereview |
I have been working with an Windows application which reads from the 'nonpaged pool' to increase performance. In this case the nonpaged pool is the area of memory where the network drivers write data as they grab it off the wire.
How does Linux handle memory which network drivers (or other drivers) which require high ... | stackexchange/codereview |
Hi I have a question, I want to do an upload script that can take rather big files 500MB, 1GB
and upload it with resume functionality. Is this possible with just PHP or is there other solution like Java Applet, Flash and which one would be best for this case?
| stackexchange/codereview |
I'm trying to iterate over the properties of an ActiveRecord object. I've been searching online but I keep coming up blank. I thought I was getting warm with object.to_enum, but despite the fact that this returns an Enumerator object, I still get the error saying that 'each' is undefined for my object.
Calling object.... | stackexchange/codereview |
At the moment I'm coding a web application that imports image data from Google Maps via the Static API - http://code.google.com/apis/maps/documentation/staticmaps/ - into an HTML5 canvas.
Unfortunately, I've run into the problem of not being able to manipulate the pixel data from Google Maps due to cross domain restri... | stackexchange/codereview |
I have tried to write a code in object model using C#.Net for accessing a sharepoint list items and document library, I have to set allowunsafeupdates property to be true.
Is it massive security problem to the whole site..
Could anyone clarify this ...
| stackexchange/codereview |
In Flex 3, introspecting a web service resulted in a constructor that allowed the location of the web service to change at runtime. It appears that the Web Service introspection tool now only allows the single WSDL URI that was specified in the WS Wizard. It this the case or am I just missing something?
Flex 3 intros... | stackexchange/codereview |
Hey guys, So I recently got a VPS, just so I can start gaining experience. But I'm looking for a service/program where I can code on my PC, then when I'm done, I run a script or do a command or something to have it updated to my VPS.
I thought I was looking for Git, but apparently git does not do what I'm looking for.
... | stackexchange/codereview |
In TFS 2010, how can one mark a changeset so that it cannot be merged from one branch to another? For example, so it doesn't show in the "merge wizard" in Visual Studio when using the "Selected changesets" option. Basically, I want it to look like the changeset in question has already been merged into another branch.... | stackexchange/codereview |
Let's assume I am in charge of developing a Scrabble game, being that one of the principal requirements of the client is the ability to later try out different ways and modes of the game. I already made a design that is flexible enough to support those kinds of changes. The only question left is what to expose to the c... | stackexchange/codereview |
I need the user to be able to be able to modify the port for downloading FTP information - but I can't find a way of changing this in FtpWebRequest.
| stackexchange/codereview |
I have my own class based in QWidget. I put this widget in QMainWindow and I need catch mouse click on this widget.
I tried:
connect(my_widget, SIGNAL(clicked()), this, SLOT(exit(0)));
But nothing is happening. How can I do it?
| stackexchange/codereview |
Is there any method of retrieving only windows on the taskbar?
I want to make a custom "taskbar" that will group APPs in any order (not just in common order like default windows task grouping).
| stackexchange/codereview |
Drupal by default does not allow trailing slash for pages and articles. Is it possible to allow trailing slash using a plugin?
| stackexchange/codereview |
I have tabbar-based application. When I put in my plist UIBackgroundModes (my application is supposed to support voip), the GUI doesn't load. It sucks on Splash screen and doesn't load the first tab view. When i remove the UIBackgroundModes property from info.plist, it works fine. More than that, pressing the home butt... | stackexchange/codereview |
I have a SQL Server server which has around 50 databases on it.
I wish to create a new Login for a client who wishes to have access to their database.
But I don't want to give them access to the other 49 databases.
How can I do this?
| stackexchange/codereview |
I start with a td cell like this
<td>
<span>123</span>
<input style="display:none;">
</td>
I'm looking for a way to style this so that the orignal content is hidden, the input box is shown and overflowing instead of resizing the td, and keeping the td sized to just its original content.
State A, which I have now, look... | stackexchange/codereview |
I have been trying to load the url http://friscotxcoc.weblinkconnect.com/cwt/External/WCPages2/wcevents/eventsstartpage.aspx?oe=true&ce=true into a webview but it shows up an error 'Entity nbsp not found'.
The link works properly over Safari (Machine as well as simulator) but doesnt load properly when loaded through a ... | stackexchange/codereview |
Please provide me with any good link of tutorial or code on:
how to provide server side events with image map in asp.net MVC2.
| stackexchange/codereview |
I would like to give progress to the user while Jasper reports is filling a compile report.
Basically I would like to get progress while this is executing:
JasperFillManager.fillReport(JasperReport rpt, Map params, JRDataSource src)
Is there anyway to achieve this?
| stackexchange/codereview |
i have a textview at the bottom of my screen but when menu clicked, i need to move the textview just above the menu, so that every one can see the textview,now when i clicked menu ,it cover the textview ,any solution for this problem
| stackexchange/codereview |
Hi Please any one Help me out of this..
i am using listview adapter for displaying image list with check box, that allows to select multiple image form list.. code works good for images list not more than screen but if image is more than screen (for scrolling) it throws null pointer exception.. following is my code.
(a... | stackexchange/codereview |
One of the interviewers asked to impress him with the JavaScript and CSS skills. He provided a link to two websites and asked to write a JavaScript application (page or pages) that takes content from one or both of these websites and demonstrates my command of jQuery and CSS. It doesn’t have to be useful to end-users, ... | stackexchange/codereview |
We've been spending increasing amounts of time battling with the limitations of Microsoft's XSLT 1.0 processor. I think the time has come to start using XSLT 2.0. Saxon seems to be a good choice. The problem is - the Visual Studio integrated XSLT debugger is wonderful, and nobody wants to stop using it.
My question - i... | stackexchange/codereview |
I need a WPF control with zooming enabled? I am currently using WPFmediakit and it works good but is there a way to do zoom using multiples of doubles.
| stackexchange/codereview |
I am using the httpwebrequest class in .net cf with credentials for digest authentication. I have set the Preauthenticate property to true. I understand that the first request will not contain any authentication and subsequent requests will but this does not happen in .net cf.
However, this happens just fine in the ful... | stackexchange/codereview |
I have found a problem. When i click on HorizontalLayout (which contains MenuBar) then dashed border (in Firefox) or solid border #CC540A (in Chrome) appears around it. In IE7 and Opera everything is ok - it does not occur there.
screenshot available here:
http://img257.imageshack.us/img257/5056/problemvaadin.png
or he... | stackexchange/codereview |
I have a widget, its setup so that when I click on it, it opens some settings in an activity.
views.setOnClickPendingIntent(R.id.btnActivate, pendingIntent);
This configures some settings for the application. What I want to achieve is to have the widget update its view to reflect the changed settings when the Activit... | stackexchange/codereview |
I asked this question in the chat room. but no answer so i am posting the question here.
The question is, for example take the word abcd
it has 4 charcters. by adding the ' . ' in between the characters you can write it as a.b.c.d
rules
can use only 1 dot between characters
can use multiple dots in the word
Edit: th... | stackexchange/codereview |
Does anyone know what measurement units are used by Silverlight/WFP? For example, if I create a new button and set its height to 150, is that 150 pixels? points? millimeters?
I design all of my applications in Adobe Illustrator before proceeding to code, and although I try and set everything to the dimensions in my Ill... | stackexchange/codereview |
Posted my problem here too.
A beginner..I am doing a school map app.
First of all I have background with 4 buttons ( level3, level4, level5, level6).
I try and click all the buttons, normally after clicking 3 of it, the next one will crash.(each level button goes into a level map, whereby clicking the room image button... | stackexchange/codereview |
I don't know why I never found myself having to use a debugger to step through my program and see what was going on, probably because I'm used to using interpreted languages such as PHP where it becomes very easy to add debugging code (print_r) and see changes live.
However with this new Java project I feel like I must... | stackexchange/codereview |
I have a text box for user to enter 6 character hex color value, a validator & a converter attached to it. Up to here, everything works fine. But I want to bind a textbox's Background color to the color specified by the text box (ElementNames Background & Foreground), and it does not seem to work.
When I debug/step th... | stackexchange/codereview |
In chapter 7.7 (Punctuators) of the ECMAScript spec ( http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf ) the grid of punctuators appears to have a gap in row 3 of the last column. This is in fact the space character punctuator, correct?
I understand that space characters may be inserted optiona... | stackexchange/codereview |
I have a tcpclient connection setup capturing a continuous http stream. For some reason after the first few bytes are read, the stream does not get any data for a long time. Is there a problem with my code?
Dim tclient As TcpClient = New TcpClient(url, "80")
nstream = tclient.GetStream()
If nstream.CanRead Th... | stackexchange/codereview |
Iphone 4 MFMailComposeViewController
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setMessageBody:@"Welcome" isHTML:NO];
[controller release];
My app to be crash.
Wat i did wrong
Regards,
Arun
| stackexchange/codereview |
I would like to implement a copy of std::stack< boost::shared_ptr<T> >. Is there any way to do it without 3 copies? Here is the code:
template<typename T>
void copyStackContent(std::stack< boost::shared_ptr<T> > & dst,
std::stack< boost::shared_ptr<T> > const & src){
//// Copy stack to tempor... | stackexchange/codereview |
In order to make PowerPoint presentations 1. readable, and 2. searchable, I'd like to somehow convert them to wiki markup (we're using ScrewTurn).
I'm expecting some manual steps.
One idea was to upload a slide as a PDF to Google Docs and make it use its native doc format, and then use Google's HTML in I love wiki, but... | stackexchange/codereview |
I'm trying to develop and run 2 test projects (which use the same web application) at a time . When I run 2 different tests with 2 NUNIT-GUI instances a problem occures, because IE shares sessions and 1 test affects the other (logs out the user from the application). I found that Watin can create seperate processes of ... | stackexchange/codereview |
Hello this is my first question of stack overflow, so forgive me if i do anything stupid.
Well my problem is that I'm working on a level editor and i want to use a PropertyGrid control to edit properties of tiles/entities etc.. so everything works so far, the values show correctly, update when changed trough code but t... | stackexchange/codereview |
i am trying to implement gdata map api in my android project.. but i am unable to solve this error
"java.lang.VerifyError: com.google.gdata.client.media.MediaService"
i am using all the libraries required to implement gdata apis
MapsService myService = new MapsService("createMap"); error is coming due to this line
is... | stackexchange/codereview |
I'm using OpenEJB 3.1.3 embedded in Tomcat 5.5.26 and I use hibernate 3.6 as a JPA provider.
Here's my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
... | stackexchange/codereview |
I have lot of lists: for example:
Categories, and subCategories, in my case some Categories has subcategories,
So What I want to do, is if the categories has subcategories I want to clean the recently list and show the subcategories,
(This can be solved by creating new activity for only subcategories, but I would say... | stackexchange/codereview |
What is best way to do event base programing in Java. Is there any tools or API available for the same.
| stackexchange/codereview |
I'm developing an audio application. It plays sounds in the background and I want it to turn off when an incoming call happens but not when the screen locks.
My first chance was to call player.stop() on onPause as I thought it will do the trick when incoming or other applications will run on top.
But I found that scre... | stackexchange/codereview |
Can anyone tell me what is the meaning of the number from the ST_MODE function?
Example:
>>>import os
>>>stat = os.stat('/home')
>>>print stat.st_mode
16877
it prints 16877. What is that for?
| stackexchange/codereview |
I am starting development of the new project and since I am new in the WCF world I want to ask your advice.
I am going to implement web-service which will provide data for WPF client and for ASP.NET site. Web site and web service should be hosted in the Windows share hosting (not didicated server) and this fact is bot... | stackexchange/codereview |
Suppose, I have this paragraph:
<p>this is a paragraph containing link to an image at http://lol/atme.png :)</p>
I want to replace http://lol/atme.png with an image element.
How do I do that?
Its like removing the text, but adding a image element in place of that text.
Help will be greatly appreciated.
| stackexchange/codereview |
I am new to extjs. I like to know, Is it possible to do dynamic vtype validation like below code...
customRegEX = /^[a-z0-9]/i
customMsg = 'Must be an alphanumeric word'
function ConstructVtype(customRegEX,customMsg)
{
var custExp = customRegEX;
Ext.apply(Ext.form.VTypes, {
AlphaNum: function(v,fiel... | stackexchange/codereview |
I encounter this error:
<BEA-000117> <Received a stale replication request for object ...>
I went through the documentation and it says that I need to tune garbage collection. How do I actually tune garbage collection? I thought Java garbage collection is automatic? Or do I actually need to change those JVM memory se... | stackexchange/codereview |
I use ServiceMix 4.2 on my local Windows machine for development.
Now I installed a FUSE ESB 4.3 in a Linux environment and start it via SSHing on the linux machine. After leaving the karaf console the container always shuts down. How can I leave the karaf console with ServiceMix running?
(Might be just configuration... | stackexchange/codereview |
I use a TransactionScope in a thread to dump data in my SQL Server database.
using (TransactionScope scope = new TransactionScope())
{
// Dump data in database
scope.Complete();
}
The transaction is a long transaction (~40 seconds) because the large amount of data. This is normal.
When I do an Abort() to stop ... | stackexchange/codereview |
i want to check that user upload file is image or not.
how i can check the type of file is image or not. are any way exist to do this.
| stackexchange/codereview |
Coming from a Java background, I'm still don't quite understand the semantics of Objective-C methods as opposed to their syntax. Take as an example the following method:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
Easy enough. There is a method named numberOfSectionsInTableView which takes a UIT... | stackexchange/codereview |
I'm working on a personal project which is an RPC (client-server) in C++. The RPC will communicate over TCP/IP or HTTP. The spec of the RPC is here :
http://groups.google.com/group/json-rpc/web/json-rpc-2-0
I'm wondering if there is an existing design pattern (or a combination of pattern) that could help me to produc... | stackexchange/codereview |
Hi
I have created a popup using Popup class in silverlight. I wrote a class of type UserControl and I added this usercontrol to the popup by using Child method of Popup class.
Following is the XAML code of my UserControl class
<UserControl x:Class="MyProject.PopupWindowContent"
xmlns="http://schemas.microsoft.com/winf... | stackexchange/codereview |
I have a simple page where I want to filter a ListBox based upon a value(s) in a textbox - both are in an UpdatePanel.
This works correctly, however, after the postback the textbox had lost focus...so I set focus back in the page_load.
Then I noticed that the cursor was now at the beginning of the text when I want it a... | stackexchange/codereview |
I have this HTML markup
<a href="#" title="">
<img src="#" title="image1" />
</a>
<a href="#" title="">
<img src="#" title="image2" />
</a>
<a href="#" title="">
<img src="#" title="image3" />
</a>
and I need to take the title of each image and put it on their "a". I tried to do it with this function
$(f... | stackexchange/codereview |
Good Morning (Afternoon, evening, i dunno what time it is when ur reading this .. lol but its 8:30 AM here :) )
I was yesterday in a Meetup about android programming and The presenter had a sample code about how to create an app with database access in android..
We talked about various classes, methods and so on.
Lets ... | stackexchange/codereview |
I have a <textarea> that I want to print the contents on the page below it. When it does this I want to make random words be omitted.
I have accomplished this. My problem is I want make it recognize when the enter button has been pushed in the <textarea> and display that below. I want those to not ever be omitted. I ha... | stackexchange/codereview |
I have an user interface where an item get deleted, I would like to mimic the "move to folder" effect in iOS mail. The effect where the little letter icon is "thrown" into the folder. Mine will get dumped in a bin instead.
I tried implementing it using a CAAnimation on the layer. As far as I can read in the documentati... | stackexchange/codereview |
When I logout from my site using FB connect, Facebook account also logged out. I need a alternate logout option, so that only fb session of my site destroyed, not from the actual fb site.
| stackexchange/codereview |
I have a website where the user can upload an excel spreadsheet to load data in a table. There can be a few 100k rows in the excel spreadsheet. When he uploads the file the website needs to insert an equal amount of rows in a database table.
What strategy should i take to do this? I was thinking of displaying a "Pleas... | stackexchange/codereview |
I have to check HeapSort algorithm time in C# , my problem is that I Know I must use System.Timers , because I don't know how to measures the algorithm time.
I have to check the algorithm time for table contains 1000 ,10 000 , 100 000 and 1000 000 integers.
Help me good people please.
This is the code:
using Syste... | stackexchange/codereview |
I'm using the following script to move a <tr> from any position in a table to the top of that table. This happens after an ajax form is submitted. The form's--not the button's--class is "top"
$(".top").click(function() {
var thisRow = $(this).parent().parent();
var firstRow = thisRow.parent().find("tr:first").n... | stackexchange/codereview |
I've described a grammar in a .wy file, but how can I build the parser?
Also, sorry if this question is too simple, but I'm having a bad time figuring out how to use CEDET. Are there any docs besides the gentle intro and the info files?
Thanks!
| stackexchange/codereview |
Has anyone used DX Auth for Codeigniter bundeled examples?
After following Installing DX Auth library with bundled examples on http://dexcell.shinsengumiteam.com/dx_auth/installation/index.html
I added a route $route['auth'] = "auth"; in config/routes.php, uploaded /controllers/auth.php, added $autoload['libraries'] =... | stackexchange/codereview |
After I make two C# HttpWebRequests that throw an exception because of "(500) Internal Server Error 500", the third attempt throws a time out exception. Why doesn't it throw another (500) Internal Server Error exception?
When I restart my application, it throws two 500 errors and then starts timing out again.
This is m... | stackexchange/codereview |
my css is
@charset "utf-8";
* {
margin: 0;
padding: 0;
}
body {
background-color: #FFFFFF;
}
div#header {
background-color: #969696;
height: 80px;
}
div#mid-bar {
background: url(images/home.jpg) left no-repeat #6f6565;
height: 200px;
padding: 10px 0 10px 0;
}
#searchbox {
float: le... | stackexchange/codereview |
Attempting to improve the perforance of my jquery - so step 1 for me is to optimize my selectors. I have been using jsperf.com which has been helpful but is there any web browser plugin that I can use that will do similar as jsperf? ie. I can enter several different selectors and it tell me which is the slowest etc or ... | stackexchange/codereview |
I am using Eclipse to work with PrimeFaces like this:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="/template/ui.xhtml">
I saw Boz... | stackexchange/codereview |
How to make the hardware beep sound with c++?
| stackexchange/codereview |
Functions added to selectors using .live() are not working consistently in Google chrome extensions. For example, I have a simple function that looks like this:
$("#sampleSelectID").live('click', function() {
alert("CLICKED!");
});
and the alert does not fire. If I debug the extension there are no javaScript err... | stackexchange/codereview |
I've used http://www.fontsquirrel.com/ to create a @font-face kit.
It works fine, but the result on windows is different from the result on mac.
On windows the font seems to have a wrong anti-aliasing:
this is the result on Mac with FF, Chrome or Safari (all updated to last version).
this is the result on Windows wit... | stackexchange/codereview |
I started thinking about this after receiving an answer for this question. This is a bit tricky to explain, but I'll do my best.
I'm building a small(ish) 2D game engine. There are certain requirements that I need to satisfy, since this engine has to "work" with existing code that others have written for a different en... | stackexchange/codereview |
Thank you in advance.
I'd like to upload some bitmap image from my android app.
but , I can't get it.
Could you recommend some solutions for it.
or collect my source code?
ByteArrayOutputStream bao = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 90, bao);
HttpC... | stackexchange/codereview |
I'm generating dynamic types using ILGenerator.Emit. I am generating a method body that will store the types of the method arguments in an array. To actually store the elements in the array I am looping through parameters of a given method and building up the necessary IL to store the elements. On the second iteration ... | stackexchange/codereview |
IE8 is caching a lot of data. My application is working fine in other browsers.
IE8 even cache data which are submitted using post method.
I try to append a random number in url, set no cache header in pages but all in vain. I am so frustrated by this issue. I am not using ajax. This is normal web application using spr... | stackexchange/codereview |
I have a button.
The button is constructed from the StateListDrawable (made of 3 9-patch images).
I need to add an extra drawable that will reside on the button's right side, and i need it to be aligned with the button's right side.
I tried to use the following:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:... | stackexchange/codereview |
I'm trying to get up and running using project.vim but for some reason, none of the keybinding requiring a capital letter seem to be working.
For example \C, which should create new project fold recursively, just acts like normal C, but \c operates as expected. Same thing with \R and \r.
I'm using MacVim with Vim 7.3 (... | stackexchange/codereview |
I have the following code , which gets a return value from a function as char*
cDestDrive = ReadFromRegistry(HKEY_CURRENT_USER,NDSPATH,szDestPathRoot);
I am able to read the value inside cDestDrive till the time I am assigning it. The moment I am assigning it:
CString strServerAddress = cDestDrive;
the value of cDe... | stackexchange/codereview |
I have the following code:
public partial class AuditLog : IBusinessEntity
{
public BusinessEntityType EntityType { get { return BusinessEntityType.AuditLog; } }
/// <summary>
/// Constructor accepting parameter initialization arguments
/// </summary>
/// <param name="us... | stackexchange/codereview |
I've been wanting to create a simple text-manipulating extension for Visual Studio for a while, and now I've finally found some time to look into how extensions are written. What I have in mind could be accomplished through VBA macros, but I'd rather implement it as a "real" extension; as a learning process, and becaus... | stackexchange/codereview |
Is there a facebook friend selector widget or plugin that shows the UI for all the friends of the user, in which the user then selects one or more friends. After that facebook gives me list of ids of selected friends ?
fb:multi-friend-selector only works within the context of sending application request as for as I kn... | stackexchange/codereview |
Having trouble getting spork running on Win7-x64/Ruby1.9.2p0:
gem install spork
ERROR: Error installing spork:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing dependencies based off of your operating ... | stackexchange/codereview |
Where in the Kohana framework can I find out the version information?
Everything I look at in the tutorials opposes to what I view in my application. I believe this to be a version issue as the methods and calls are slightly different between the documentation and my install.
| stackexchange/codereview |
I am developping a C/GTK application. I will soon be releasing a new version, and I thought it would be useful to include some update mechanism to it so that the application will be able to update itself.
I really only need something simple; it is sufficient if it only worked on Windows, since on Linux the application ... | stackexchange/codereview |
I implemented the Lavalamp menu in my website, and I wanted to do this: when the users click in some link in the menu, then the hover stays in that link.
The lavalamp effect is working.
The jquerycode I have is this:
<script type="text/javascript">
$(function() {
$("#menutop").lavaLamp({
fx: "b... | stackexchange/codereview |
I have a report in MS Access with 4 image controls. In the format event of the detail section I have code that sets the picture property based on the values of fields in DAO.recordset. Below is an example of my code.
For i = 0 To 3
If Not rs.EOF Then
Me.Controls("img" & i).Picture = blobGet(rs!phBlobId)
... | stackexchange/codereview |
I have an app that has multiple UI Dialogs... How can I smartly make sure you can't open 2 dialogs. So whenever you open a Dialog it closes any currently open UI Dialogs.
| stackexchange/codereview |
I am getting the following error when I try running my program in the emulator:
emulator: ERROR: the user data image is used by another emulator. aborting`
Any idea on how to fix this?
Thanks!
| stackexchange/codereview |
The following code doesn't work, I assume because the locals() variable inside the comprehension will refer to the nested block where comprehension is evaluated:
def f():
a = 1
b = 2
list_ = ['a', 'b']
dict_ = {x : locals()[x] for x in list_}
I could use globals() instead, and it seems to work, but tha... | stackexchange/codereview |
Is there a way to fire a Javascript function as soon as the user logs in. I am using asp.net authentication. When the user logs in, regardless from where i want to fire off JavaScript:Chat_OpenMessengerDialog(). This will open up my CuteSoft messenger window.
So i just want to automatically open the chat messenger when... | stackexchange/codereview |
I have a page like Order - Order lines. Order represents by some textboxes and ddls, Order lines represents by GridView.
I want to let users add order lines without save changes to database. For example: he adds 4 order lines, fill order info and then hits Save button. Only an that moment all information should be save... | stackexchange/codereview |
I work in a c# wpf application in which I want to do several things. I'm working with byte arrays to compose MIDI Show Control messages (specified in the MSC Specification 1.0).
The structure of this message is that a 0x00 byte is like a comma between all the parts of the message. I compose a message like this:
byte[]... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.