instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
This is actually an interesting question, and there's an easy (but ugly) fix to it (see below). So I'm asking if there's a better way to do it. What I'd like to do is making an object constructor return something else rather than a new instance. Here's an example of what I'm trying to achieve: $GLOBALS['object_cache']=...
stackexchange/codereview
hi guys i am an infant for image processing technique in java , i have decided to develop one project in image processing so i need what are the algorithms are followed and also which one is easier to develop please some one guide me it may be great for me.....and also which technology is best for image processing jav...
stackexchange/codereview
After some research, I've decided to use the Liang-Barsky line clipping algorithm in my 2D game. Google did not deliver on any VB.NET implementations of this algorithm but plenty C/++ ones. Therefore, as I have knowledge in C++, decided to port one found on Skytopia over to VB.Net. Unfortunately, it does not work with:...
stackexchange/codereview
I'm using (trying) GlassFish v2.1.1 + MySQL connector 5.0.8 to teach myself J2EE. I try to develop some simple Web application with JPA persistence. Just when the server starts, deploys go smooth and everything, but after several deploys it starts acting weird, throwing all kind of exceptions and failing predeploy. For...
stackexchange/codereview
Time goes by, but still no perfect solution... See if someone has a bright idea to differentiate bot from human-loaded web page? State of the art is still loading a long list of well-known SE bots and parse USER AGENT? Testing has to be done before the page is loaded! No gifs or captchas!
stackexchange/codereview
I have a problem piping a simple subprocess.Popen. Code: import subprocess cmd = 'cat file | sort -g -k3 | head -20 | cut -f2,3' % (pattern,file) p = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE) for line in p.stdout: print(line.decode().strip()) Output for file ~1000 lines in length: ... sort: write fai...
stackexchange/codereview
There are some obvious tips and resources about this, but I can't find any direct examples. http://www.sqlite.org/faq.html#q18 says one can override the NOCASE collation, and the like, lower, and upper functions. I've done so, in a Django testcase, but in my test none of them are actually called. from django.test impor...
stackexchange/codereview
The following query is in SQL: SELECT r.reservation_no, f.flight_no, r.departure_date, f.departure_time, f.duration FROM flights f, reservations r WHERE f.flight_no=r.flight_no AND r.customer_ssn="234567"; Print the results to the screen in table form. I need to make it in such a way that it can be compatib...
stackexchange/codereview
I'm integrating a component template for a customer. He is using custom templates for com_user / login & reset views. His site is also using a lot of modules. How can I activate these modules for the component in total, instead of a menu item? In the module template (user/login/tmpl/default.php) I wrote: <jdoc:include ...
stackexchange/codereview
I have following template code: class ClassName{}; template <class T> class TemplatePtr { public: void operator=(T* p) { } }; class TemplatePtr_ClassName: public TemplateePtr<ClassName> { public: ~TempaltePtr_ClassName(); }; void Test() { TemplatePtr_ClassName data; data = new ClassName; } ...
stackexchange/codereview
Let's say that I have the methodInfo for something like Nullable<int>.HasValue. Is there anyway to convert it to Nullable<string>.HasValue? I know for a regular generic method I can do methodInfo.GetGenericMethod() but I don't see a way to do it for the type from the method, without doing more reflection overhead. If I...
stackexchange/codereview
I am trying to get a jQuery lightbox, Yoxview, to integrate with a Coverflow image gallery called Contentflow. My issue is that I only want the Yoxview lightbox to open when the contentflow image is in the active, centered state. This allows clicking on lateral images to have them flow into the active, center position,...
stackexchange/codereview
New to Android development. I'm wondering if its possible to programmatically draw an icon to put in the notification bar? What if we want the icon to display some dynamic text for something like battery level? If anyone has a code sample it would be nice. Thanks.
stackexchange/codereview
Can I build a control that basically acts "like a MasterPage"? What I mean to do is, say I have a grid like this in a number of pages: <asp:UpdatePanel ID="AnnouncementsPanel" UpdateMode="Conditional" runat="server"> <ContentTemplate> <asp:GridView ID="AnnoucementsGrid" runat="server" AutoGenerateColumns="f...
stackexchange/codereview
when i compile the code below the compiler give the error:A field initializer cannot reference the non-static field, method, or property in this code(which have stars) KingPiece kingPiece = new KingPiece(***siyahsah1***,ChessColor.White); can anyone help me? class PiecePosition { public enum ChessColor { ...
stackexchange/codereview
I need a quick way of forcing my C# Windows Forms application to not scale fonts when a user choose a larger or smaller percentage in the OS settings. Is this even possible?
stackexchange/codereview
I've read the NSCopying docs but I am still very unsure about how to implement what is required. My class Vendor: @interface Vendor : NSObject { NSString *vendorID; NSMutableArray *availableCars; BOOL atAirport; } @property (nonatomic, copy) NSString *vendorID; @property (nonatomic, ret...
stackexchange/codereview
I'm working on a image stabilization by using optical flow. The algorithm that I've used is like this; first of all I have found good features to track in OpenCv "cvGoodFeaturesToTrack" and then I've estimated the optical flow by using this function for OpenCv as well "cvCalcOpticalFlowPyrLK". Now I want to stabilize ...
stackexchange/codereview
If I add a component class to my project containing some common controls, how can I display an instance of it in a panel in my main form? I use this to create an instance of my class: Component test = new Component1(); where Component1 is the name of my Component class Then how could I do something like: panel1.Contr...
stackexchange/codereview
i'm new to specman. how do i use the output_from() function. and what does it do?
stackexchange/codereview
Does there exist a routine in Delphi that rounds a TDateTime value to the closest second, closest hour, closest 5-minute, closest half hour etc? UPDATE: Gabr provided an answer. There were some small errors, possibly due to the complete lack of testing ;-) I cleaned it up a bit and tested it, and here's the final(?) v...
stackexchange/codereview
<li><a href="<%= UTIL.getServletPath("/SetupPage?PG=setupusersettings") %>"> <span>Settings</span></a> public String getServletPath(String fileName) { if(!fileName.startsWith("/")) fileName = "/" + fileName; return getContextPath() + fileName; } public String getContextPath() ...
stackexchange/codereview
I have this in my table TempTable Id Date 1 1-15-2010 2 2-14-2010 3 3-14-2010 4 4-15-2010 i would like to change every record so that they have all same day, that is the 15th like this TempTable Id Date 1 1-15-2010 2 2-15-2010 <--change to 15 3 3-15-2010 <--change to 15 4 4-15-20...
stackexchange/codereview
We have several services, each of which should ideally operate independently of each other. The primary use of the services is to support our webapp. We are searching for the best way to use ibatis with those services. Our first approach, was to have one project with the SqlSessionFactory and have all service impleme...
stackexchange/codereview
I am using two 3rd party frameworks. I want to access a new class from both frameworks. The first framework uses a nested namespace like: namespace space1 { namespace space2 { class 3rdparty{ } } } the second framework doesn't use any namespaces. If I try to call my own class from the first fr...
stackexchange/codereview
What's a good way to limit the number of words that can be entered in an android EditText view?
stackexchange/codereview
Does anyone know how to do this and what the pseudo code would look like? As we all know a hash table stores key,value pairs and when a key is a called, the function will return the value associated with that key. What I want to do is understand the underlying structure in creating that mapping function. For example, i...
stackexchange/codereview
I am working on a project about a frequency-hopping tranceiver. I want to implement a phase lock loop on FPGA i.e. a digital PLL. I am multiplying the incoming signal with a certain frequency and passing it through a LPF. Now I give this low frequency to DDS. I want my DDS to work like a VCO and lock to incoming phase/...
stackexchange/codereview
I am testing Devise with Rspec using Micheal Hartl source code (railstutorial) Whereas the confirmable module is enabled, I don't understand why this test pass: spec/models/user_spec.rb require 'spec_helper' describe User do before(:each) do @attr = { :username => "ExampleUser", :email => "user@e...
stackexchange/codereview
On my site I have set two Content Types as Organic Group nodes. Sports Group Education Group There are also various other content types on the site, set to be standard group posts.To allows users to post content into groups, which then references that group. I have then enabled the Group Details block to show on ea...
stackexchange/codereview
Possible Duplicate: Sorting XML file based on XML nodes & XML comments using XSLT Hi All, I need help in sorting an XML file based on xml nodes and ONE more thing is i have to place their comment tags corresponding to that node. For Example: Input XML File is <?xml version="1.0" encoding="UTF-8"?> <!-- catalog main ...
stackexchange/codereview
I'm creating 5 forms and docking them to a panel called DockTarget during run time using something like procedure TManager.InitChild; begin Child := TChildWindow.Create(Self); Child.ManualDock(DockTarget); end; after all five children are created and docked I'm calling Settings.DockSettings.Seek(0,soBeginning...
stackexchange/codereview
I'm really lost. How can I approach this problem? Beginning with $1 of capital, you choose a fixed proportion p of your capital to bet on a fair coin tossed repeatedly for 1000 times. Your returns is doubled if the toss lands head and you lose your it lands tail. For example, if p=0.25 and for the first toss your bet $...
stackexchange/codereview
I have two tables: objects object_features ------------- ------------------- id id name object_id term_id What I want to achieve is, giving a list of features, get all objects that has all of them. I'm trying thi...
stackexchange/codereview
I generate a rather complex NSAttributedString in my iOS 3.2 application (iPad), including formatting options of type CTParagraphStyleSetting, in particular with values for kCTParagraphStyleSpecifierMinimumLineHeight and kCTParagraphStyleSpecifierParagraphSpacing. When I try to draw this attributed string into a non-r...
stackexchange/codereview
I was wondering where it is possible to find implementation as illustrative examples for commonly used architectural patterns/idioms For example Logging Exception Handling Archiving/Caching User/Role/Policy/Permissions Business Rules/Constraints Data Access Objects Objects dirty/update etc.
stackexchange/codereview
my program is database program, when i run it, on consol i got message as follow, Uploading DataBase.apk onto device 'emulator-5554' [2010-11-08 13:48:03 - DataBase] Installing DataBase.apk... [2010-11-08 13:48:42 - DataBase] Success! [2010-11-08 13:48:43 - DataBase] /DataBase/bin/DataBase.apk installed on device [201...
stackexchange/codereview
I am developing a facebook application in asp.net using the facebook developkit downloaded from codeplex.com website. I am practicing a sample application in SDK 3.02\samples\IFrame. They have give an attribute called RequiredAttribute = true in IFrameMaster.Master.cs, which will access the basic information. But I w...
stackexchange/codereview
Is it possible to have 2 domain objects for one controller. In that case, how would you map them. For eg. If I have LoginController, and 2 domain classes for the same viz Login.groovy and LoginSearch.groovy. In such a case how would you map them?
stackexchange/codereview
my android application works well but it's performance(speed) is slow. In my logcat i saw frequent garbage collection operation like 11-02 15:07:20.647: DEBUG/dalvikvm(12571): GC freed 295 objects / 38448 bytes in 93ms Is this the reason for low performance?? How can i improve my applications performance??? anybody pl...
stackexchange/codereview
I have the following Fluent Mappings: public ScanDeliverySessionMap() { Id(x => x.Id); ... ... HasManyToMany(x => x.ToScanForms) <--- IList<Form> ToScanForms ---> .Table("ToScanForm") .ParentKeyColumn("SessionId") .ChildKeyColumn("FormId").Casc...
stackexchange/codereview
I'm working on a program that requires the user to input an integer. How do I prevent the user from entering a non-numeric value? I tried using the IsNumeric() function but I get an error before I can use it. I get the error at the console.read, before I can call the IsNumeric() function. Here is my code: Dim num As In...
stackexchange/codereview
I'm looking for an effects library that I can drop in to my existing GWT app really, really easily. I want to add the library to my build path and then start writing things like FX.fadeOut(thisWidget) to replace thisWidget.setVisible(false). Is there anything solid and small available for GWT that can do this kind of ...
stackexchange/codereview
I have a Spring CommonsPoolTargetSource defined for a bean. I'm trying to understand how pooling works, and when an object is returned the the pool. Specifically, if I have a worker, which takes a pooled object and invokes two methods on it, as follows: public class MyWorker { @Resource Foo pooledFoo; voi...
stackexchange/codereview
Before I submit my first app to the Windows Phone 7 Marketplace, I would like to know whether I should modify the AppManifest.xml file. My app comprises of two assemblies (the app + class library) and I was wondering if I have to use Deployment.Parts in the AppManifest in order to pass the certification process. Anybod...
stackexchange/codereview
Is there a way to set some predefined Macros for my local installation of Code::Blocks. To elaborate on that, basically I would like to have certain blocks compiled only at pc and not anyplace I send the code to. One way to achieve this is as follows: #define MYPC #ifdef MYPC //do something #else // do something else...
stackexchange/codereview
i have the following queries common on few methods of the controllers. so is there a way to organise it ? i will need all the variables in the controller so i cant create a private method and return it. // Checks if the User is logged in if yes gathers the ID $id = $this->_loggedIN(); // Find the ItemID fr...
stackexchange/codereview
I'm trying to set up Haystack with Whoosh but am getting this value error "ValueError: dictionary update sequence element #0 has length 9; 2 is required" when I run the count method on the SearchQuerySet object in ./manage shell >>> sqs.count() Traceback (most recent call last): File "<console>", line 1, in <module> ...
stackexchange/codereview
When I click on project properties I can set Warning level (More Warnings) and Command Line -> Additional Options (-std=c99). But I want that all my C project have that kind of options by default without manually setting them everytime I create new project.
stackexchange/codereview
HI, I'm trying to add user to to Database from Spring MVC controller. and I'm getting the following exception: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow cr...
stackexchange/codereview
Hopefully a quick question here. I have setup a "LayoutPage" custom class (based on MovieClip) and I am attemptimg to create a "selected" behaviour. When I assign my "addEventListener(MouseEvent.CLICK,toggleSelection)" from within my custom class, everything works as expected, clicking any object of that class does dis...
stackexchange/codereview
I want to upload data (not a local file) with Flex (4.1), and show what the progress is of the bytes sent. Now I use a URLLoader, but I know that URLLoader was designed to download data, I can connect a listener to ProgressEvent.PROGRESS but that has no effect. I also know there is a FileReference object which support...
stackexchange/codereview
Here's a template I made. I believe it is self-explanatory template <class N, class I> std::list<N*> selectiveList(I element, std::list<N*> & container, I (N::*f)() const) { typename std::list<N*>::iterator it; std::list<N*> selectiveListing; for (it = container.begin(); it != container.end(); ++it) if ((...
stackexchange/codereview
I would like to move a git repo I have to darcs. I have not been able to find docs or projects that explain how to do this; it looks like most users want to go the other way. In addition, being able to control a git repo from darcs would be cool to.
stackexchange/codereview
Using SSIS 2008 R2, I have an OLE DB source with around 30 fields. Ultimately my destination is an Excel spreadsheet however I have a number of transformations along the way, including Lookups, Derived Columns, Data Transformations and Script components. At the moment I am stuck on Lookups. In my source data I have 6 ...
stackexchange/codereview
I have written a JavaScript regular expression to validate a comma separated list of tags. A tag can contain characters A-Z, a-z, 0-9, space, hyphen and apostrophe, and is 3-50 characters long. Here is what I have: ^[a-zA-Z0-9\- ']{3,50}(,[a-zA-Z0-9\- ']{3,50})*$ I want to extend this to allow the user to provide no t...
stackexchange/codereview
I seem to always use these lines when i am doing a select in PHP $product_query = "Select ProductID from productinfo where PartName = '".mysql_real_escape_string($data[0])."'"; $product_result = mysql_query($product_query) ; $product = mysql_fetch_assoc($product_result) ; $my_product_id = $product['ProductID']; Th...
stackexchange/codereview
I need to 'scale' text to fill an antire HTML5 canvas. It appears that the scale() method does not affect text. I've seen approximation methods with iterative loops on the measureText() method but this doesn't get me exactly what I need. Ideally I'd like to fill both horizontally and vertically without conserving the a...
stackexchange/codereview
I am trying to get a script to run for a local user while logged in to have there user account require them to change their password once they log of then log back in. I have about 40 different users that all have there own local internet connection so i don't have active directory for these computers where i can easil...
stackexchange/codereview
I think I have a fairly easy issue to fix but I can't seem to get it to work as I need. When running the web app through Visual Studio I get a URL such as: http://localhost:50261/Controller/Action But when I deploy it to IIS the URL is setup like so: http://devServer/AppName/Controller/Action. I'm having an issue with...
stackexchange/codereview
I need to remove a bunch of function prototypes from several .h files, and I was wondering if there is some kind of bash script/program to look for the prototypes that are not in the .c file and automatically remove them. This is really useful for source code cleaning purposes when you have a big project and you did no...
stackexchange/codereview
<% form.inputs do %> <% @account.account_preference.editorial_attributes.each do |key, value| %> <%= account_pref.input "editorial_#{key}".to_sym, :as => :radio, :collection => options_for(Editorial, key.to_sym), :wrapper_html => { :class => "compact" }, :label => key.titleize %> <% end %> ...
stackexchange/codereview
I'm trying to gauge the CPU utilization level during a long-running process. I suspect that everytime I run task-manager to view the data, the process' CPU utilization goes down because taskmanager has a higher priority. If I give my process RealTime priority, then task manager completely locks up and I cannot use it...
stackexchange/codereview
class ClassA { public: ClassA(ClassB *p) b(p){} ~ClassA(){delete b;} ClassB *b; }; Is this kind of design a good one?
stackexchange/codereview
I've set up the map to load an MKAnnotation when the map loads, but it will only show the pin, and not the text that I've set up inside the annotation. Is there a fake event I can call to make it show at once, or even a property?
stackexchange/codereview
I am writing a simple unit test to check if the proper view name is being returned by an ActionResult in VB.Net MVC 1. The controller requires a service and I am trying to Mock the service but keep getting this error. Unable to cast object of type 'Moq.Mock`1[SRE.Web.Mvc.INotificationService]' to type 'SRE.Web.Mvc.INo...
stackexchange/codereview
I've got a situation where I need to copy several tables from one SQL Server DB to a separate SQL Server DB. The databases are both on the same instance. The tables I'm copying contain a minimum of 4.5 million rows and are about 40GB upwards in size. I've used BCP before but am not hugely familiar with it and have be...
stackexchange/codereview
For example, I want to have a method that, depending on the first argument passed, can take either an int or a char as the second argument. The way I thought of doing it is to have an if right after the method it calls to check what the first argument is, it can be one of 4. At this point, if it's of say, type 1 or 2 t...
stackexchange/codereview
I have notice that quite a few application show version/history informations before installation. And I wonder how they do it. Also, which may or may not be related, Titanium Backup has a full version history on AppBrain. Again I wonder how that is done. Does anybody know? Since titanium Backup has a funny star in the ...
stackexchange/codereview
how can i replace the ' character in php to - in order to save it to mysql database?
stackexchange/codereview
Connection verification failed for data source: HEMJOBS03 java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: localhost:90. Reason: Connection refused: connect The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLSe...
stackexchange/codereview
This is what I used to display a KML-file in Google Maps: HTML <div id="map_canvas" style="width: 600px; height: 400px"></div> Javascript function map_initialize() { var myLatlng = new google.maps.LatLng(52.200874,6.009521); var myOptions = { zoom: 7, center: myLatlng, mapTypeId: google.maps.MapTypeId....
stackexchange/codereview
I am trying to run Selenium tests (PHP) from the command-line. I can only find ways to run HTML tests on stackoverflow. java -jar selenium-server.jar -htmlSuite "*firefox" "http://10.8.100.106" "C:\mytestsuite.html" "C:\results.html" Is there a way to do the same for a PHP testsuite? Currently I only know how to run ...
stackexchange/codereview
i'm sending values from one page via jquery's ajax to a php page. I'm hoping to store the recieved values into a db. so far this is my php page: <?php $supp_short_code = $_POST['supp_short_code']; $om_part_no = $_POST['om_part_no']; $description = $_POST['description']; $price_each_nett = $_POST['price_each_net...
stackexchange/codereview
I have deployed my application to WebSphere Application Server 7, it uses the default OpenJPA 1.2.2 library in the application server, however, I cannot get it to log, I have this in my persistence.xml <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xml...
stackexchange/codereview
I'm working on ASP.NET 4 and with Visual Studio 2010. This project is using Entity Framework. I'm using MS SQL Server 2008 (by mistake) and a colleague 2005. I've accidentally clicke the "Update model from database" button and the DB (which is sql server 2005) took my 2008 db. So, when my colleague tried to run the app...
stackexchange/codereview
I'm developing a preference pane in 10.6 Snow Leopard and Xcode 3.2.3. As is popular nowadays, I want to add a helper application to this preference pane. Both the application and preference pane should be able to communicate in real time (notification centre, defaults database, etc). How would I go about doing this? I...
stackexchange/codereview
I want to implement in my linux c++ application, inotify with signal. I want my application to retrive an event when there is a change in a file. (without polling) from inotify man page: Since Linux 2.6.25, signal-driven I/O notification is available for inotify file descriptors; see the discussion of F_SETFL (...
stackexchange/codereview
I have an xsd file running some crystal reports, and I need to be able to send in a conectionstring to the xsd to tell the reports what database to connect to. Is this possible?
stackexchange/codereview
This is driving me mental. I'm using MarkerCluster with google maps v3, and it works fine in FF, however when I (and the client) kick it up in Chrome or Safari the clusters arn't there. No errors, just not working in webkit. A few notes: it's coming from some ajax-loaded json and it's in jquery. This is the function ta...
stackexchange/codereview
I've added AVFoundation.framework I've written "#import " at the top of the file. I've used the class AVCaptureSession AVCaptureDevice AVCaptureDeviceInput... in my code. But when I build it,Xcode told me the errors that "AVCaptureSession undeclared" "AVCaptureDevice undeclared" ... What's wrong with it? What should I...
stackexchange/codereview
I´d like to create a function that checks if a "post" (wordpress) is older than 7 days. I have the following code so far: function is_old($start) { $now = date("Y-m-d"); } $start contains the date which I want to check if is more than 7 days prior to $now. How can I do this?
stackexchange/codereview
I have a Pylons app that I'm using SqlAlchemy declarative models for. In order to make the code a bit cleaner I add a .query onto the SA Base and inherit all my models from that. So in my app.model.meta I have Base = declarative_base() metadata = Base.metadata Session = scoped_session(sessionmaker()) Base.query = Ses...
stackexchange/codereview
I'm trying to run this in the Rails 3 console, but when I do, nothing happens. What's wrong with it? Thanks for reading. Note.find_all_by_user_id(19).each do |a|; a.user_id = 1;a.save; end; EDIT: Should have been Note.find_all_by_user_id. I've changed the line above. Same problem occurs though. Note.find_all_by_user_i...
stackexchange/codereview
Is it possible to use Google street-view in a Flash application?
stackexchange/codereview
I am unable to run a basic template project because I get the error: This operation returned because the timeout period expired. I can see the emulator, but it is doing a full OS boot every single time I try and run the application.
stackexchange/codereview
Redis Vs Hazelcast If my app: Have a lot of http requests (6,000 per minute, I collect clicks info) that needs to be saved Have a lot of http requests that query the data previously saved. My Questions are - Which one between Redis and Hazelcast should I chose to store and query data - which one is faster for reads a...
stackexchange/codereview
I am looking at learning to program a Java EE/SE web application with the following components: JBoss nHibernate JSTL I'm sure there are other pieces. That's all I know at the moment. Would I be better off, with Netbeans or Eclipse? Netbeans always seemed more friendly to me but I've never made anything big with i...
stackexchange/codereview
Intro Apparently, I've been doing an "unorthodoxed" Visitor pattern my whole programmer life. Yes, I dispatch to a concrete composite element visit method from the Visitor's Visit method. I think this is how I learned it, but now I can't find any examples of it, and the source I learned it from is gone. Now, faced with...
stackexchange/codereview
Im using Spring MVC by itself till now, works great, but i hear from friends that JSF is also good, has some good visual stuff, even though i dont really know much bout JSF. So my question is: Is it possible to mix Spring MVC with JSF? If it is, is it a good thing to do or theres a better way to do it?
stackexchange/codereview
I have done like this but I am having trouble with shellscript I have written. I am confused with tail command functionality and also when I see output of error.log on terminal it shows lines with 'e' deleted from words. I have written like this please guide me how can I get my problem solved. I want to read this erro...
stackexchange/codereview
For example, I've checked out the froyo-release branch of Gallery. I imported it as a new project targeting Android 2.2 SDK. I'm getting the following compile errors (among others): The import android.provider.DrmStore cannot be resolved The import import android.media.MediaMetadataRetriever cannot be resolved From wha...
stackexchange/codereview
I'm trying to develop a program that simulates the Terminal in Linux. My problem is that I can't clear the screen in the default Eclipse console. After a lot of searching, I've found a library called JCurses that can do the task. But I can't get it working in Eclipse. I've searched for a tutorial, but it seems there is...
stackexchange/codereview
I have a log file and want to create a webpage (possibly Python but not strictly) that will work much like unix "tail -f filename" command works (show new log lines when they are written to file). So that user will continuously see log right in browser. How would you implement this?
stackexchange/codereview
I am creating a table in HTML and trying to assign the cells a border. Here is how it appears. See that weird border in 2nd row, last cell. That's the problem I am having. <table class="info"> <tbody> <tr> <td>Some text</td> <td>Some text</td> <td>Some text</td> ...
stackexchange/codereview
I have to make a script in php.When i will send an email from my server(www.mydomain.com) to customer mail id (mycustomer@gmail.com), when mycustomer will read my mail i will get an message that mycustomer has read mail.more explain... When my mail will be delivered to mycustomer gmail.He will click on mail subject for...
stackexchange/codereview
Each import in .idl file generate following output: 64 bit Processing file.idl Because of that I have two pages of output for every idl file processed. Is there any way to reduce this flood? Ideal for me is that same what c++ compiler do - only one line of output with input file name if there was no warnings or errors....
stackexchange/codereview
I have this sort of code in a desktop app This is just a JPanel that contains buttons and that sort of thing. class ApplicationPanel { private Listener listener; public ApplicationPanel(){ this.listener = new Listener(this); } } This adds the events to the controls in the JPanel above. class Listener ...
stackexchange/codereview
I have a bash script which serves as a driver basically. For some reason Ubuntu cannot assign the Bluetooth Serial port on it's own. The script's function is to connect up a bluetooth device, then assign it a place to be accessed in /dev/bluetooth serial. Finally, when the device is disconnected, or terminated by pre...
stackexchange/codereview
With MacVim, I use the Monaco font at size 10, which under the standard MacVim config is NOT anti-aliased. When I turned on Advanced Rendering in MacVim preferences (advanced tab), Monaco 10pt is now anti-aliased, which is not what I want. Is there a way to turn off font anti-aliasing in MacVim?
stackexchange/codereview