instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
If I left-click on a jquery draggable element, the mousedown event never reaches my custom handlers. However, if I left-click, the mousedown event DOES reach my other handlers. Any idea as to what might be causing this?
stackexchange/codereview
On a Silverlight page there are a number of instances of a custom control. I can easily get an instance of the custom control by its name: MyCustomControl mcc = (MyCustomControl)this.FindName(namestring); But how could I get a list of all the instances of this custom control on this page?
stackexchange/codereview
How to integrate PHPUnit with PHP Pro custom php framework? I need how to get the framework environment just how we get in Zend Framework. There are tons of tutorials available for Zend but not for custom framework like PHP Pro Also PHPUnit does not give example with MVC framework.
stackexchange/codereview
i am using move_upload_file function to move the file to my folder,its work fine but i want compressed zip format.plz any body help...
stackexchange/codereview
In order to input data into SAS it is required to be in the following format: Country Year Indicator_1 Belgium 1900 x1 Belgium 1901 x2 ... Belarus 1901 x1 However, most of my data comes in the following format: Country 1900 1901 1902 ... etc Belgium x1____x2___x3 ...etc Belarus x1____x2___x3 ...etc Is there an ...
stackexchange/codereview
I'm trying to get the CPU serial or motherboard serial using C or Python for licensing purposes. Is it possible? I'm using Linux.
stackexchange/codereview
i want to add facebook sdk in my android sdk with eclipse(windows 7). i am trying with https://github.com/facebook/facebook-android-sdk this url to fetch the repository. But it shows no file found at the location, Can anybody help me?
stackexchange/codereview
I'm trying to create a new Eclipse Project where I can test android classes without having to start the emu or connect a device. I imported the android libraries, but I can't get it to work... My project only contains one java file where I use an android class, I only want to start it as a simple java app. The error I ...
stackexchange/codereview
I was recently asked if I could find an algorithm to compute the minimum cost spanning tree of a given graph, where the total cost of the spanning tree is given by the product of the edge costs rather than by their sum. There are several algorihms to compute the regular minium spanning tree, but I am unsure of how to ...
stackexchange/codereview
I have two submit buttons on a page using MVC 3 with client-side validation. There's a text box that is mapped to an object that has data annotations that make it required. As long as I'm trying to click the Save button it works fine. It ensures that the textbox is filled-in. However, when I try to click the Delete but...
stackexchange/codereview
I'm stuck with a service, which can't be found using it's explicit component name in the starting intent sent by startService(). The classes are in the same project and package. The explicit service calling with its component name is intentional, because it's supposed to be a private service, and the startService/stopS...
stackexchange/codereview
How do you compare an old version of a source safe project to the current one. I want to look at all the differences in the project since we went live.
stackexchange/codereview
I'm trying to build web Service integrated in DispatcherServlet insted of MessageDispatcherServlet, according to Spring ws it's possible. I'm just tying to follow tutorials and implement code according to tutorials. Tomcat starts normally. However, I have page 404 when I'm trying to access web service using http://[hos...
stackexchange/codereview
Friends, my android application runs in debug mode only even if i click the run button of the eclipse or run it by touching on its icon on the device. what will be reason for this?? anybody has any idea about it??
stackexchange/codereview
Can you share your thoughts how would you implement data versioning in Cassandra. Suppose that I need to version records in an simple address book. (Address book records are stored as Rows in a ColumnFamily). I expect that the history: will be used infrequently will be used all at once to present it in a "time machin...
stackexchange/codereview
I am trying to run a thread continuously and not have it become blocked by the tcl main event loop. Here is a simple example of what I'm trying to do: #!/bin/sh #\ exec tclsh "$0" "$@" package require Thread set ::a_thread [thread::create {thread::wait}] proc start_a {} { thread::send $::a_thread { puts "Runn...
stackexchange/codereview
I have just installed Aptana studio 2, and it looks really nice. I would like to separate my work into editing the local development server, and editing the production server. That way I don't end up accidentally editting the production server with development changes. I believe that in order to do this I would need th...
stackexchange/codereview
I am trying to insert rows into my database, but nothing gets persisted. Here is my helper class: package com.android.cancertrials; import java.util.Calendar; import java.util.GregorianCalendar; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.dat...
stackexchange/codereview
How do you test to see if your program is working and able to connect with server? I tried stackoverflow server's ip through port 40 and it fails after a min at connect(). test.exe 64.34.119.12 echo 40 Program arguments take a syntax: <Server IP> <Echo Word> [<Echo Port>] Also, can you test without having to connect t...
stackexchange/codereview
For a project I have to implement a bitset class. My code thus far is: Header File #ifndef BITSET_H_ #define BITSET_H_ #include <string> #include <cmath> using namespace std; // Container class to hold and manipulate bitsets class Bitset { public: Bitset(); Bitset(const string); ~Bitset(); // Returns...
stackexchange/codereview
For 2 mp3 streams, is it possible to mix two streams of same bitrate with different mixdown values without uncompressing and recompressing it? For example, if we have two songs that are already encoded in mp3 192 kbit, and we want to create crossfade of length 5 seconds, we should mix last several frames from one song ...
stackexchange/codereview
Well, thats exactly what i would like to know. Is there any possibility to send a direct message? I came to know that facebook has deprecated sending messages to users inbox but there's gotta be way. We could ask for 'email' extended permission to email them but we wanna send to their facebook inbox only. We would lik...
stackexchange/codereview
Why does this short PHP script: <?php $args = array( 'api_id' => $_GET['api_id'], 'method' => 'getProfiles', 'sid' => $_GET['sid'], 'uids' => $_GET['viewer_id'], 'v' => '3.0', ); $req = $_GET['api_url'] . '?sig=' . calc_sig($_GET['viewer_id'], $arg...
stackexchange/codereview
I'm trying to make a simple game. I have a class for the screen buffer, a class for the images, and a class for the sprites. My question is this: Since every sprite needs to "belong" to some image (the sprite only holds the coordinates within some image, and a pointer/reference to an image), should I pass the image cla...
stackexchange/codereview
Prawn/prawnto is cool stuff to generate pdf file. But I am not able to render formatted text exactly as they are. Prawn is rendering all the html tags <b>, <i>, <p> as string. Below is the code i have written pdf.text "#{@product.name}", :size => 20, :style => :bold pdf.text "<b>Ashis Rai<b>" and want to see the result...
stackexchange/codereview
For lambda expresssion ()=>getItem("123"), is it Func(bool) or Func(string,bool), suppose getItem return bool.
stackexchange/codereview
I have a program that accepts HTTP post of files and write all the POST result into a file, I want to write a script to delete the HTTP headers, only leave the binary file data, how to do it? The file content is below (the data between Content-Type: application/octet-stream and ------------KM7cH2GI3cH2Ef1Ij5gL6GI3Ij5GI...
stackexchange/codereview
I can snap a picture with the iPhone programmatically by calling [UIImagePickerController takePicture:], but when I do the iPhone plays a loud recording of a shutter click. When I google for how to turn off the click, I find advice to rename the sound file that the iPhone plays. It seems to me for my app to do that wou...
stackexchange/codereview
i'm working on an Silverlight-Project, where i have some files in my XAP (in this case xml's) but the number of files can change and i don't even know the name of the files, but i want to read this files at runtime.. I know that due to Silverlight-Limitations it's not possible to scan a directory automatically, but may...
stackexchange/codereview
Question is how much it costs to create an ArrayList from a HashMap.values() Collection? Or creating the values Collection alone? Assuming Map.size() > 100k. Objects could also be held in ArrayList (instead of HashMap) all the time which has implications in other parts (modifications of elements, easy by key). The Arra...
stackexchange/codereview
i have implemented character limit from http://sourceforge.net/tracker/?func=add&group_id=103281&atid=738747 i have given maxlength of 10 chars.when i am going to insert 11 char its inserting blank space. as i have also implemented how many chars are inserted. so it showing 11 chars in statusbar of TinyMCE. please pro...
stackexchange/codereview
Working with MYSQL in C#: I have a collection of parameterized IDbCommands I would like to execute. The are a mixture of updates, inserts, and deletes, right now I am doing: using (IDbConnection connection = Connecter.CreateConnection()) { foreach(IDBCommand command in m_commands) { command.Connection = co...
stackexchange/codereview
I have a bunch of binary files that contain data in the following format: i\xffhh\xffhh\xffhh\xffih\xffhh\xffhh\xffhh\xffhh\xffhi\xffii\xffjj\xffjj\xffjj\xffjk\xffkk\xffkk\xffkl\xffll\xffmm\xffmn\xffnn\xffon\xffno\xffop\xffop\xffpp\xffqq\xffrq\xffrs\xffst\xfftt\xfftt\xffuv\xffvu\xffuv\xffvv\xffvw\xffwx\xffwx\xffxy\xff...
stackexchange/codereview
I'm getting an error below in the class a declaring a new pointer of type b. Please help. #include <iostream> namespace B { class b; } class a { private: B::b* obj_b; public: a(){} ~a(){} void create() { b* obj_b = new b; } }; class b { private: a *obj_a; ...
stackexchange/codereview
How do I map these existing tables to the classes below? I have the following tables: CREATE TABLE dbo.UserContact ( UserContactId int NOT NULL IDENTITY (1, 1), UserId int NOT NULL, ContactId int NOT NULL, UserContactTypeId int NOT NULL, FromDt datetime NULL, ThruDt datetime NULL, CreateDt datetime NOT NU...
stackexchange/codereview
I am posting this question after reading other similar questions about my problem but not really understanding how I can use the information. I have been mainly writing this code to see how I can use SqlDataAdapters to update a database from a GridView. I am writing my GridView in my aspx page as follows: <asp:GridView...
stackexchange/codereview
My application is a monitor that may run in the background while the user is away, and its purpose is to visually alert the user when some changes have occurred. MessageBoxes seem a little obnoxious, so I figure a Balloon Tip will accomplish the task without messing with the focus in case they happen to be doing someth...
stackexchange/codereview
I'm writing a small module that will add a product to the cart automatically (based on certain criterias). However if the user subsequently removes that automatic product from the cart I need to know so that I don't add it again in the current session. Does the cart object hold anything that can tell me if a product ha...
stackexchange/codereview
I have a form with radio buttons in it. Before the form submits I need to check that 10 radio buttons are checked. This code does the trick (i.e. I get the alert back when 10 have been checked) but I can't work out where to put my return true and return false statements to stop it or let it submit if my count has reach...
stackexchange/codereview
A part of my xml-file: <table> <row id="aant"> <radio id="radaant"> <omschrijving>test radio</omschrijving> <omschrijving>part 2</omschrijving> <table> <row id="testrow"> <radio id="testrad"> <omschrijving>test r...
stackexchange/codereview
I have some dates/events in a database, and I'd like to pull them out ordered by month (year doesn't matter) - right now all the timestamps are in unix in a column named eventDate. How can make that query? SELECT * FROM calendar ORDER BY eventDate Obviously that sorts them, but I want to make sure all events across al...
stackexchange/codereview
Consider following JavaScript code (tested in Firefox): function f(a) { if (a == undefined) { alert('undefined'); } if (a == null) { alert('null'); } } f(); Both alerts are shown, suggesting that both statements are true. Could you provide a reasonable explanation?
stackexchange/codereview
I want to center a big movieclip (1400 px wide) on my stage on stage resize. This big movieclip moves to the right on certain events so I can't use code like this: currentPage.x = ((stage.stageWidth/2) - (currentPage.width/2)) Is there a way to maybe use its offset from 0 (the left side of the stage 'viewport') and us...
stackexchange/codereview
Hi I work with netbeans. I have written a code which has two classes (1) Demo (2) mainFrame which extends javax.swing.JFrame at first, my mainFrame will be run and it will show a panel that you can put some points on it and then when you click a button ; the dimension of all points will be store in a list , then I will...
stackexchange/codereview
Is there any update in the upcoming C++0x standard on named parameters in templates and/or functions? For example, I would like to be able to write the following: having defined previously: template<class T = int,class Policy_1, class Policy_2> class X { }; then in main: X<Policy_2: NoReturn> x; this same with fun...
stackexchange/codereview
I'm setting up a web interface for a testing server. Some of the tests involve opening a specific file, capturing the screen, and then saving the resulting image. I use Runtime.getRuntime().exec() and Robot for this. If I access the server through remote desktop and run the tests, everything works out fine; the file is...
stackexchange/codereview
Apologies if this is straightforward, but I've been looking for a little while now and can't find a simple, efficient solution. I have a two-dimensional Python list of lists which only consists of 1's and 0's. e.g.: a=[[0,1,0],[0,1,1],[1,0,1]] I wish to return, at random, the indices of a random element which is = 1. ...
stackexchange/codereview
Browsers have limitation on the length of the URLs. IE has limitation that Url length should not exceed 2K characters. When I form a $filter equals query, I could compare with multiple input values. In such a case the length of the Url would exceed 2K. Does OData sets any limits on the length of the Url? Thanks
stackexchange/codereview
Please see the code below:- #!/usr/bin/python # Filename: total.py def total(initial=5, *numbers, **keywords): count = initial for number in numbers: count += number for key in keywords: count += keywords[key] return count print(total(10, 1, 2, 3, vegetables=50, fruits=100)) Can some...
stackexchange/codereview
We're just starting with SVN (were using CVS before :shame:) and I have a problem with merging my branch back to trunk. I've created Branch1 from trunk, made some changes and merged it back (without any problem). Then I decided to make another branch for second feature, and I made it from Branch1 by mistake. (I should...
stackexchange/codereview
i am getting a serious issue Program received signal: “EXC_BAD_ACCESS”. Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib") kill quit The Debugger has exited with status 0.(gdb) Note: Problem occurs when i am...
stackexchange/codereview
I wants to implement fading/floating of buttons like that of MediaController play/pause buttons if screen is not touched for 'n' sec. Is it possible for me to implement this on my custom image button?
stackexchange/codereview
I have two animations of a goalkeeper with two different states (with ball and without ball). After keeper jumps I want to switch to a different action but I want to stay at the same frame index. I mean if goalkeeper collides with the ball in the frame 19, the second action should start at frame 19 too.
stackexchange/codereview
I was just wondering if someone can show me the correct way of selling pdf files online through paypal, Basically I'm using a php shopping cart and the shopping cart connects to paypal, just wondering once the pdf file names have been added to the shopping cart and have been paid through paypal how can I redirect the u...
stackexchange/codereview
I need to clear all records in a table if the data exist for one hour. to know the start time, I have a column "StartTime" with "date" data type. I think I need a timer to do this, how can I do this in oracle ?
stackexchange/codereview
Would anyone be able to compare and contrast the two solutions? I don't know much about Seam or JSF, though I am familiar with the way GWT works and very much like the theory of it. Primary concerns: Scalability / performance Cross-browser compatibility Learning curve Productivity WYSIWYG UI building Capacity to code ...
stackexchange/codereview
Hi I have a panel that you can put some points one it and by clicking on a button ,lines will be drawn between points.also there is a button that when you click on it ,all lines will be deleted and points will be on your panel (just lines are deleted) how can I do this. is there any special method for this? thanks I w...
stackexchange/codereview
I have an object on which I want to apply lighting. It is described in a text file with its vertex coordinates. I read the following in the the OpenGL Superbible: void m3dFindNormal(M3DVector3f vNormal, const M3DVector3f vP1, const M3DVector3f vP2, const M3DVector3f vP3); To use this function, pass it a vector to ...
stackexchange/codereview
I am using a dialog with a textarea. Upon clicking the ok-button the textarea's value gets sent to a server via ajax. The first time the user writes to the textarea the value gets read correctly, but upon all subsequent actions the value being sent is the same as the first time as if the user had entered the same strin...
stackexchange/codereview
I have a function which fixes capitalization for those naughty users that insist on making everything UPPERCASE! I want my function to only be called when a string contains an uppercase word of 3 or more uppercase letters. Can this be done with a regex? examples: for example: I = false, DEAL = true, Welcome = false
stackexchange/codereview
I have a table called TABLE1 which have 5 columns that I rarely use and design-wise should be separated from that table. Therefore, I created a new table called TABLE-REF where its primary key (called refID) is actually the ID of the corresponded columns in TABLE1. That way I separated these 5 columns from my main tabl...
stackexchange/codereview
I'm developping a newsletter module in my website and i begin with Symfony 1.4 version. I would like to send my emails to multiple recipients. I tried this simple solution (with the realtime delivery strategy): $message = $this->getMailer()->compose(); $message->setSubject('My subject'); $message->setTo(array('email1@...
stackexchange/codereview
I'm using Memcached with PHP, the code is like this : $m = new Memcache; $m->connect('myserver', 11213); $key = ... // calculate key $value = $m->get($key); if($value) return $value // calculate $value $m->set($key, $value, 3600); #var_dump($m->get($key); Now weird thing is like this : if I uncomment the var...
stackexchange/codereview
While I was doing a search to identify the differences between SQL Server editions I have found a post in ASP.NET forums that says: "SQL Server Express tends to be slower compared to SQL Server Web edition. This is due to the limitations imposed in SQL Server Express which is basically meant for only development enviro...
stackexchange/codereview
Is there any library in .net for common utils like the one from apache in java?
stackexchange/codereview
I can retrieve the Appointment.TimeZone for items with: PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...); ServiceResponseCollection<ServiceResponse> response = Exchange.LoadPropertiesForItems(items, propertiesAll); But not Appoin...
stackexchange/codereview
I want to be able to play ogg encoded files using JavaSound. I assume that the easiest way is to add dependency to Vorbis SPI and play it like a regular wave file. However my project is managed using maven, but vorbis spi is not available on public repositories. What is the easiest way to add this dependency to my proj...
stackexchange/codereview
I am designing a website and am debating if I should go with rails or django, my preference leans towards django but the fact that heroku makes deployment and sys admin tasks very easy I might go with rails+heorku. Can linode provide a nice platform ...
stackexchange/codereview
In my BlackBerry app, I invoke a permission request for RECORDING feature for the app when it is first launched. It works fine with BlackBerry Storm. However, when I install and run the app on BlackBerry Torch, after the app asked permission for Recording, it popups a dialog box about Application Permission Request as ...
stackexchange/codereview
I have an existing model and initially generated the database from this model and had populated the existing tables with some data. Now I've added a new table to the model. Is there a way to update the database from the new model without losing all the data in the existing tables? Thanks.
stackexchange/codereview
I have a Django application with a model that includes address fields. I want to implement a "closest location" search. Specifically, I want the ability to find the model objects closest to a zip code. I know this is a broad question but I would really like to know where should I start. I looked at GeoDjango, but after...
stackexchange/codereview
On any platforms, what is the best face recognition opensource library for videos.
stackexchange/codereview
I have this new MVC application which I have installed on Windows 2008 Server. And get the following message when I run the localhost. I have checked in the Bin folder, and can confirm that the Systems.Web.MVC is there. And the version of the file is, 2.0.50217.0 And in the web.config I have defined this assembly, ...
stackexchange/codereview
Suppose I have the following <httpErrors> collection in a web.config: <httpErrors> </httpErrors> Yep, nice 'n empty. And in IIS 7, my HTTP errors page looks like this: Beautiful! (I've highlighted 404 simply because that's the example I'll use in a sec). Now, I run the following code: errorElement["statusCode"] = 404...
stackexchange/codereview
How to play Flash(flv) file in android's ImageView? i need to develop game which plays flv file as background.
stackexchange/codereview
I have a Radio button List and Text Box both with validation. <asp:RadioButtonList ID="member" runat="server" RepeatDirection="Horizontal"> <asp:ListItem>Yes</asp:ListItem> <asp:ListItem>No</asp:ListItem> </asp:RadioButtonList> <asp:requiredfieldvalidator id="unionvalidator" runat="server" controltovalidate="m...
stackexchange/codereview
There's a question already discussing how to add project/solution bindings to TFS, however it seems to only apply to Visual Studio 2008 (I am unable to find the "Change Source Control" dialog in VS2010). I have a solution and source code on my local machine already in TFS, however it does not have TFS bindings (the thi...
stackexchange/codereview
I'm working with several functions which need to pass a variable back and forth. Should I use a global variable or another method instead? I would also appreciate an example or two on how to implement it. Thanks, Elliot Bonneville Psuedocode of my functions: function GetXML() {//this would be a function which reads in ...
stackexchange/codereview
For example, I'd like to turn "hello" into list(104, 101, 108, 108, 111) or list("h", "e", "l", "l", "o") So far I've created an empty list, used foreach and appended every item to the list myself, but that's not really a concise way to do it.
stackexchange/codereview
I'd like to hear some advice on designing the tables in this database... Let's say I have 3 tables: Shirts, Pants and Shoes They all have the same fields: Name, Description, Manufacture, Material and ID I can't simply put the IDs as 1, 2, 3, 4 for each of them so I've decided to a notation: shirt001, shirt002, pants001...
stackexchange/codereview
How do you call optional protocol methods? @protocol Foo @optional - (void) doA; - (void) doB; @end Now we have to check each time we want to call doA or doB: if ([delegate respondsToSelector:@selector(doA)]) [delegate performSelector:@selector(doA)]; That’s just silly. I’ve come up with a category on NSObject th...
stackexchange/codereview
Is there a simple way of getting a LaTeX url to display in italics, i.e. emph{\url{http://www.stackoverflow.com}}? FYI I am also using \urlstyle{same} right before, which keeps the style looking like the document default style, but I don't want to set my document default to italics.
stackexchange/codereview
How do I create a Dictionary where I can store functions? Thanks. I have about 30+ functions which can be executed from the user. I want to be able to execute the function this way: private void functionName(arg1, arg2, arg3) { // code } dictionaryName.add("doSomething", functionName); private ...
stackexchange/codereview
I have implemented a Customised ListView using BaseAdapter and Lazy loading concept to load the images for the list items. I am working with the RESTFul services . The webservice method defines the no of items in each page(20 items per page) & the total no of pages present(5 pages). Now , I am able to load the first pa...
stackexchange/codereview
I have a series of nested UL's that are like this: <ul class="categorySelect" id=""> <li class="selected">Root<span class='catID'>1</span> <ul class="" id=""> <li>First Cat<span class='catID'>2</span> <ul class="" id=""> <li>cat in First<span class='catID'>3</span> <ul class=""...
stackexchange/codereview
I am trying to embed some python code in a c++ application i am developing with ms visual studio c++ 2010. But when i run the program, it exits with code 0x01 when i call Py_initialize(). I dont know how to find out what went wrong. the help file says, Py_Initialize can't return an error value, it only fails fataly. Bu...
stackexchange/codereview
I am writing a program which utilises the System.Reflection namespace of the Microsoft .NET 4.0 Framework, however there is a piece of information that I require which I cannot find or does not exist in the namespace. In Visual Studio when you access a type's members the IntelliSense provides a brief description of the...
stackexchange/codereview
If from a function I am returned a multidimensional array like this.. array(0 => array('a' => 5), 1 => array('a' => 8)) But I just really need the contents of the key 'a' what is the best way for me to convert. Current I have been doing something like.. $new_array = array(); foreach ($multi_array AS $row) { $new_...
stackexchange/codereview
when it is said "the DOM is ready" is the same as saying "the page is loaded" ? Regards Javi
stackexchange/codereview
I'm noticing some conversations not getting closed, staying in CONVERSING state. The strange thing is, the queue is configured to process only 1 message at a time. In practice, however, there are 2 conversations in CONVERSING state, one which is really doing some work, and another one which seems to be stuck. One thing...
stackexchange/codereview
For the theme search box used in Drupal, the text-field is as follows: <input type="text" class="form-text" id="edit-search-theme-form-1"> As I am developing a site for mobile, I want to change the input type of the text-field to search. Would anybody know how to go about making this change? Thanks, Mark.
stackexchange/codereview
Now, I have to admit, I'm totally new to Ruby on Rails and don't quite understand every concept. I have installed Devise for authentication and followed this guide to include sign up and log in links in my views. Here's what I did in my application.html.erb: <ul class="hmenu"> <%= render 'devise/menu/registration_ite...
stackexchange/codereview
Trying to figure out how long time was spent in a commit in a Git post-commit hook. I've got a post-commit git hook that submits information over an API about the commit. What I want to do is figure out how long time was spent on the commit. Roughly. My assumption is that a rough value can be figured out by finding th...
stackexchange/codereview
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\solutionvs10\test\test\bin\Debug\db2.mdb;**Jet OLEDB:Database Password=secret**") cn.Open() ''# codes cn.Close() I used V S 2010 The above is my code......u can see that it is Ms Access DataBase....(password protection) How i can create a setup...
stackexchange/codereview
I'm getting a strange error on a colleague's box. CGLib is auto-proxying a service class for spring AOP logging, and at runtime it says 'unresolved compilation error: must override a superclass method" on the fastclass by cglib proxy class. In the offending class, I'm using @override annotations when I implement an in...
stackexchange/codereview
I need to connect to a ftp site and download a bunch of files( max 6) named as D*.txt. could you please help me code this in Ruby ? The following code just ftp = Net::FTP::new("ftp_server_site") ftp.login("user", "pwd") ftp.chdir("/RemoteDir") fileList= ftp.nlst ftp.getbinaryfile(edi, edi) ftp.close Thanks
stackexchange/codereview
How to make that, many applications from the same developer will use same store. It would be very usefull in case of synchronization procedures with use same data from same database. Is it even possible to do this? I guess I have to do something with boundle identyfier. Maybe something with * mark. Regards, David
stackexchange/codereview
I just upgraded my MVC2 project to MVC3 and used the NuGet library package reference to install ninject. This created an appstart class and i used the following code to inject my IMembershipService class. public static void RegisterServices(IKernel kernel) { kernel.Bind<IMembershipService>().To<AccountMembershi...
stackexchange/codereview
I'm using standard python logging module in my python application: import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger("log") while True: logger.debug('Stupid log message " + ' '.join([str(i) for i in range(20)]) ) # Do something The issue is that although debug level is not enable, ...
stackexchange/codereview
When I use "$module->prune( 'PPI::Token::Whitespace' );" and save the results in $file is there an ease way back to working code for the saved code? I tried "Perl::Tidy" and it looks much better after this but id does not fix all. #!/usr/bin/env perl use warnings; use 5.012; use PPI; my $file = 'my_file.pm'; my $modu...
stackexchange/codereview