instruction stringlengths 34 36.1k |
|---|
I just need to see what is stored, in realtime, in some particular variables and struct used by an application written in C.
I need something like the stack tracer that comes with the ADT plugins for Eclipse as part of the Android sdk.
|
I just started a job where I'm writing Python after coming from a Java background, and I'm noticing that other developers tend to quote strings using single quotes ('') instead of double quotes (""). For example:
line1 = 'This is how strings typically look.'
line2 = "Not like this."
Is there a particular reason for th... |
I want to provide my app under GNU GPL v3, but I would be glad if people couldn't change its name or its logo. Can I provide my app under the GNU GPL v3 licence, while the app's name and logo are under another type of licence like CC BY-NC-ND 3.0? (The logo and name is used in the app source and design.)
|
I'm learning Lisp, and I've just gotten to let, which I don't quite understand (the implementation of).
A common definition for it is given in terms of lambda as a macro. However, nowhere have I seen that let must be implemented as a macro or in terms of lambda.
Is it possible to define let without using a macro or ... |
At last team meeting I heard from managers that we need to create proof of concept (POC) before main prototype and integrate this concept with the main system for proving a new feature.
Could you explain me the main features or this method?
Do you use the POC in your projects before implementation?
What is the main ad... |
Possible Duplicate:
Why are objects passed by reference?
Doesn't C# send the objects themselves? So unless it's some kind of swap function for primitive typed variables - why would I send an object by reference?
|
I am about start my first project with client, However I will work as a consultant. So do I need to get developer certificate and post my client's app in app store? Or I should ask my client to get the license and then I help them deploying the app on their name?
They don't want company name to be my organisation but t... |
Scene: A company has many factories X, each emits a message to the same receive port in a Biztalk server Y; if all messages are processed without much delay, each will trigger an outgoing message to another system Z.
Problem: Sometimes a factory loses its connection for a half-day or more and, when the connection is re... |
Recently, i had to understand the design of a small program written in a language i had no idea about (ABAP, if you must know). I could figure it out without too much difficulty.
I realize that mastering a new language is a completely different ball game, but purely understanding the intent of code (specifically produc... |
My understanding of OAuth (2.0) is that its a software stack and protocol to allow 2+ web apps to share information about a single end user. User A is a member of Site B and Site C; Site B wants to fetch some data from Site C about User A, and this is where OAuth steps in.
So first off, if this assessment is incorrect,... |
I've recently faced this problem in a dynamic programming curriculum, and I honestly have no idea about how to determine the appropriate state.
You're given N (1 <= N <= 70) paragraphs and M (1 <= M <= N) figures. Each paragraph i requires PL_i (1 <= PL_i <= 100) lines and references at most one figure. Each figure is ... |
I bought the de-facto book for learning about data structures and algorithms (CLRS). The book is though quite good but the singularity is in the proofs. The book is filled with Lemmas, theorems, peculiar symbols and unimaginable recurrence relations which are very hard to understand. I am able to somehow get the algori... |
I've been reading some papers from the early 90s about a US Department of Defense software reuse initiative called the Defense Software Reuse System (DSRS). The most recent mention of it I could find was in a paper from 2000 - A Survey of Software Reuse Repositories
Defense Software Repository System (DSRS)
The DSRS i... |
I would like to know what storage concepts are used for mobile or handheld devices, where an app is operated on?. AFAIK one of them is SQlite.
Can anyone shed a light on this concept? perhaps links and resources will be much useful to many of new developers. Thanks a ton.:)
EDIT: My target would be Android and ios OS.... |
When I did my undergraduate studies in elecrical engineering, there was this book called "Basic Electricity" by Van Valkenburgh. If you read that book cover to cover, your fundamentals in electrical engineering would be bulletproof. I would recommend it all my juniors and I absolutely loved it.
Is there such a book in ... |
I know there was a technical term for this. I'm just can't remember what it was.
If the title needs clarification, here is what I mean; If this is the old code:
Result foobar(Param1,Param2,Param3) {
code that does abc
code that does xyz
code that does asdf
more code that does something
}
and it's changed into:... |
I'm trying to write a multi threaded/processes application and it need to know how to monitor a process from another process all the time.
So here is what I have, I have a 2 processes, each with multiple threads that handle the network part, then another 2 process also with multiple threads that interact with DB and w... |
With all the controversy surrounding scheme r6rs, I stuck with r5rs and I am wondering why the designers decided to not implement a module system. How does one organize code in this?
|
I've been working hard on trying to develop a general solution to my problem, but I cannot seem to formulate a proper algorithm for it, at least one that doesn't take a ton of inaccurate grunt work building a lookup table.
I have a solution already for the specific requirement, but it requires the software's configurat... |
When you are writing JavaScript unit tests, where do you put all the test code?
I see two potential approaches:
Leave all your test code with your regular web project and explictly don't release the code to production.
Maintain a separate project that runs all your tests.
I see pros and cons for both. I'm curious w... |
I've got a friend who does IT at a local non-profit where they're using a custom web application which is no longer supported by the company who built it. (out of business, support was too expensive, I'm not sure...) Development on this app started around 10+ years ago so the technologies being harnessed are pretty o... |
I found that Windows 8 allows packaging and deploying of Metro applications and it can be installed by clicking on a ".bat" file. How will it technically be ensured that the applications can be installed through Windows Store only?
Can't the developers just host the package at a different location from where users can ... |
In Ext 3/4 filesystem, if I have a log file open and being appended to, if another process tries to read it (e.g. with cat), what happens?
Can the reading process read part of / an incomplete write?
Is reading-during-writing safe and won't disrupt the writing process? Or is there a chance the logs can be corrupted by... |
I have written an ASP.NET WebForms portal for a client. The project has kind of evolved rather than being properly planned and structured from the beginning. Consequently, all the code is mashed together within the same project and without any layers. The client is now happy with the functionality, so I would like t... |
Ok, I need to test the speed of my solution in a web browser, but I have some problems, there are 2 versions of the web solution, the original one that is on server A and the "fixed" version that is on server B.
I have VS2010 Ultimate, so I can make a web and load test on solution B, but I can't load the A solution on ... |
I recently (about two months ago) read an article that explained some user interface paradigm that I can't remember the name of and I also can't find the article anymore.
The paradigm allows for decoupling the user interface and backend through message passing (via some queueing implementation). So each user action res... |
I'm working on a system where we rely a lot of "admins / managers" emailing users from the database. One of the key features is being able to email several people at the same time, with specific information relevant to each of them. Another key feature is to be able to hand-craft emails, because it tends to be be neces... |
I have come across this programming idiom recently:
const float Zero = 0.0;
which is then used in comparisons:
if (x > Zero) {..}
Can anyone explain if this is really any more efficient or readable or maintainable than:
if (x > 0.0) {..}
NOTE: I can think of other reasons to define this constant, Im just wondering... |
I have created a small application which has a three tier architecture and I have business object classes to represent entities such as User, Orders, UserType etc. In these classes I have methods that are executed when the Constuctor method of, for example, User is called. These methods perform calculations and generat... |
In addition to create list using parentheses, Clojure allows to create vectors using [ ], maps using { } and sets using #{ }.
Lisp is always said to be a very extensible language in which you can easily create DSLs etc. But is Lisp so extensible that you can take any Lisp dialect and relatively easily add support for C... |
I want to sort the months of the year starting at any month, but January needs to show up after December if January isn't the starting point. Can I do that in an array or do I need a special data structure or algorithm to do that?
|
I'm thinking of developing a pluggable test and assessment module. This tool will be used especially for desktop application projects to report and log errors, bugs, missing features and suggestions from testers.
The tool will be plugged to the application by putting a small icon to the application itself. When pressed... |
I'm reading the r6rs Scheme report and am confused by the explanation of continuations (I find it to be too dense and lacking of examples for a beginner).
What is this code doing and how does it evaluate to 4? Why does call/cc want an argument that's a function of one argument? How is call/cc's argument used?
(+ 1 (c... |
Does anyone happen to know of some guidelines for writing up a document for coping with possible disaster scenarios ? By disaster I mean anything that could lead to loss of work, time or eventually a client.
I seem to remember reading an article along these lines but, unfortunately, I can't find it anymore. So I'd appr... |
Usually the problem of having possible multiple inclusions is solved with a series of #ifdef #ifndef but the pragmas just solves this with a single line, apparently they are really useful and can make the code better in terms of readability.
Why they are not part of the C++ and C standards? there is a better way to avo... |
I'm working on a website that features many different types of emails. Users have accounts, and when logged in they have access to a setting page that they can use to customize what types of emails they receive.
However, I'd like to also give users an easy way to unsubscribe directly in the emails they receive.
I've lo... |
I have done some searching on Google, but haven't come up with much as of yet. I am wanting to take a set of point data, which I had previously been using to create weighted points for a heat map through the Google API, and turn them into a contour map to overlay on the Google Maps API. I haven't seen anything in Googl... |
I've been developing an app for the iOS platform, and as I've been going along, I've noticed that I've done a terrible job of keeping my files (.h, .m, .mm) organized. Is there any industry standards or best practices when it comes to organizing files for an iOS project?
My files include custom classes (beside the v... |
I'm starting a new Java project which will require a RESTful API. It will be a SaaS business application serving mobile clients.
I have developed one project with Java EE 6, but I'm not very familiar with the ecosystem, since most of my experience is on the Microsoft platform.
Which would be a sensible choice for a JAX... |
Possible Duplicate:
Code maintenance: keeping a bad pattern when extending new code for being consistent, or not?
To keep things simple let's say I am responsible for maintaining two applications, AwesomeApp and BadApp (I am responsible for more and no that is not their actual names).
AwesomeApp is a greenfield proj... |
I have a bunch of functions that are used across multiple ASPX files. I want to condense these down to one file to be used for all the ASPX files. I have a few ideas but I want to know what the accepted method to doing this would be. I have an idea to just create a class to put them in.
However, I was wondering if i co... |
I am trying to learn some LISP and I have read a lot about the importance of LISP macros so I would like to get some working experience with them.
Can you suggest a practical application area that would allow me to use macros to solve a real-world problem, and to understand the usefulness of this programming construct?... |
I hope this isn't too general of a question; I could really use some seasoned advice.
I am newly employed as the sole "SW Engineer" in a fairly small shop of scientists who have spent the last 10-20 years cobbling together a vast code base. (It was written in a virtually obsolete language: G2 -- think Pascal with graph... |
I have a legacy PHP application that was written in 2004 and uses MSSQL as a database backend.
At this stage MSSQL is still supported by PHP but only just via a Microsoft driver. I have looked at converting to mysql via automated tools, which work quite well, but I have quite complex views which need a lot of individu... |
I am trying to compile and install every custom module under it's own designated folder. (ex: /myApps/myLinux/compiled_app)
I had luck with Python so far, where my Python is compiled from source and lives in:
/myApps/myLinux/python2.5 and "python2.5" -> /myApps/myLinux/python2.5.6-gcc463
So I can access this Python thr... |
I have been following Coursera's course on Algorithms and came up with a thought about the divide/conquer algorithm for the closest pair problem, that I want clarified.
As per Prof Roughgarden's algorithm (which you can see here if you're interested):
For a given set of points P, of which we have two copies - sorted in... |
I have written applications that are very small scale and the code I write works fine for them. But I have often wondered how the server side code I write would scale up from 100s of queries per day to millions.
Also when looking at possible jobs/projects, people are often looking for developers with experience in this... |
I need to use FIFO in my application in linux+C, I have multiple threads and processes, I read some where that writing to a FIFO is atomic below some value (I believe 4k) especially I'm writing max of 300 bytes, Am I safe here?
|
Okay, the question title may be a bit cryptic. But it aptly describes what I'm looking for:
I think every experienced coder went through this numerous times: You get a binary file format specification, you implement the reader for it, and… nothing works like expected. So you run your code in the debugger, go execute th... |
I'm working on my CMS (in PHP platform) for a long time now. The main program is done and I'm currently developing the Installer part. Installation itself will be fairly simple:
Upload all files
Verify that the "content/" dir has correct permissions
Check if ALL files are intact and not modified [This is the subject o... |
I just read that there will be two versions of Windows available: Windows RT and Windows 8.
Could someone please describe what the differences between Windows RT and Windows 8 are? And how these differences may affect developers creating apps for one or the other?
Also, what is WinRT?
|
Background
The longer I work on a project, the less clear it becomes. It's like I cannot seperate various classes/objects anymore in my head. Everything starts mixing up, and it's extremely hard to take it all apart again. I start putting functions in classes where they really don't belong, and make silly mistakes such... |
From my understanding creating an application that runs on multiple architectures requires virtualization, and virtualization reduces performance since it creates a layer of abstraction.
With Windows 8 supporting both Intel and ARM architectures should we expect slower performance with a WinRT app versus a .Net app run... |
A webservice that I call returns a list of data. The data from the webservice is updated periodically, so a call to the webservice done in one hour could return the same data as a call done in an hour. Also, the data is returned based on a start and end date.
We have multiple users that can run the webservice search, a... |
I want to learn Cloud Computing and Big Data at home.
Is it possible to learn these technologies on home PC?
Which technologies to learn in Cloud Computing?
Which technologies to learn Big Data (Hadoop)?
|
I am a C#, WPF developer and would like to know and understand the Microsoft UI Stack. I could not find much on the internet. I guess that this would be a huge topic, and might not be feasible to explain here, but any suggest online reading would be greatly appreciated.
|
What is actually the role difference between ProductOwner and StakeHolder ?
|
I know that static methods/variables are associated with the class and not the objects of the class and are useful in situations when we need to keep count of, say the number of objects of the class that were created. Non-static members on the other hand may need to work on the specific object (i.e. to use the variable... |
Background
I've used VCS (mainly git) in the past to manage many existing projects and it works great. Typically with an existing project, I would check in each change I make to the code that either optimizes or changes the overall functionality (you know what I mean, in suitable steps, not every single line I change).... |
We've got a job queue system that'll cheerfully process any kind of job given to it. We intend to use it to process jobs that each contain 2 tasks:
Job (Pass information from one server to another)
Fetch task (get the data, slowly)
Send task (send the data, comparatively quickly)
The difficulty we're having is that... |
Justed stumbled across CRaSH and although it looks mighty interesting, I'm wondering why a Java developer should invest time & energy into learning (yet another) shell language. What sort of standard- and cool-applications can CRaSH be used for? Is this like a Groovy-version of Jython?
I guess, when the dust settles, I... |
I have the following setup in my project:
public class WebApiApplication : System.Web.HttpApplication
{
public static ISessionFactory SessionFactory { get; private set; }
public WebApiApplication()
{
this.BeginRequest += delegate
{
var session = SessionFactory.OpenSession();
... |
Typically when creating a simple tool or something that has to use a database, I go through the fairly long process of first creating a webservice that connects to a database then creating methods on this webservice that do all the type of queries I need.. methods like
List<Users> GetUsers()
{
...
}
User GetUserByI... |
I have written a nifty little web app (in Java/GWT/JS) and have been experimenting with the idea of making it available through Facebook as a Facebook App as well.
After spending some time reading Facebook's developer docs, it seems like I can just create a Facebook App to point at any URL I want and use that as the ap... |
I had a great idea for a new javascript keyword "delay", but I don't know what I can do to bring it to the new specification. Also I want to know what you guys think about it and if it's even realistic.
What does the delay keyword ?
The delay keyword does nothing more than stop the execution of the current stack and im... |
I have an object that takes in data and spits out a transformed output, called IBaseItem.
I also have two parsers, IParserA and IParserB. These parsers transform external data (in format dataA and dataB respectively) to a format usable by my IBaseItem (baseData).
I want to create 2 systems, one that works with dataA a... |
I've been reading up on EJBs (3.x) and believe I understand the basics. This question is a "call for confirmation" that I have interpreted the Java EE docs correctly and that I understand these fundamental concepts:
An EJB is to an App Container as a Web App (WAR) is to a Web Container
Just like you deploy a WAR to a ... |
1)
In fact if two responsibilities are always expected to change at the
same time you arguably should not separate them into different classes
as this would lead, to quote Martin, to a "smell of Needless
Complexity". The same is the case for responsibilities that never
change - the behavior is invariant, and t... |
a)What is the difference between SRP and SoC? Perhaps that SRP is applied at class level, while SoC can be applied at system, subsystem, module, class or function levels.
b) If answer to a) is yes, is then SoC applied at class level a synonym for SRP?
thank you
|
As my firm makes the transition to using SFDC as our main operational system, we've spun together a couple of SFDC portals where we can post customer-specific documents to be viewed at will. As such, we've had the need for pseudo-ETL applications to be implemented that are able to extract metadata from the documents ou... |
I'd like to consider myself a fairly experienced programmer. I've been programming for over 5 years now. My weak point though is terminology. I'm self-taught, so while I know how to program, I don't know some of the more formal aspects of computer science. So, what are practical algorithms/data structures that I could ... |
What is the most maintainable and efficient way to architect a web application who's purpose is to host and generate websites which can be customized to a certain degree?
There are a lot of these style of applications in the wild that generate all kinds of sites, from sites that host World of Warcraft guilds to other s... |
Here is the scenario. I am making a custom blogging software for my site. I am implementing a search feature. It's not very sophisticated - basically it just takes the search phrase entered and runs this query:
$query="SELECT * FROM `blog` WHERE `title` LIKE '%$q%' OR `post` LIKE '%$q%'";
Which is meant to simply sear... |
The probjem is that I have two sets of bugs top fix on the project. One to deploy in 5 days, and one to deploy in 10 days.
I am going to solve all the bugs before the fifth day but I do not want to deploy the last 5 before the release date (in 10 days).
How can I work on two separate codes and the merge all the modific... |
I am wondering what is the best way to handle the situation of marking a bug as resolved and providing a version of component/product in which this fix can be found.
Context
For a project I am working on, we are using Bugzilla for issue tracking, and we have the following:
A product "A" with a version number like vA.B... |
Possible Duplicate:
Is there a canonical book for learning Java as an experienced developer?
I am looking for book to get up to speed with (start with) a Java language. I am experienced (more than 15 years) C# and C++ programmer with a bit of Python, so I don't need a book which starts with a programming concepts fo... |
Many of the times my compiler shows errors like Lvalue or Rvalue Required.
What are the Lvalues and Rvalues in C or any programming languages?
Is a pointer constant a rvalue?
|
I'm trying to find out ,that is there any relation between different types of UML diagrams, for example, once you developed a use case, should it be an event for each of them in a sequence diagram, or is there any exact relation between the use case and class diagrams.
By the way my main focus is on the below diagrams:... |
Just started diving into Objective-C and IOS development and was wondering when and the correct location I should be declaring variables/properties. The main piece of code i need explaining is below:
Why and when should i be declaring variables inside the interface statement and why do they have the same variable with ... |
Is there any difference between the two topics? I have seen companies asking for Good Programming knowledge some Good Programming logic.
I have seen this in Job profiles for a developer – for e.g. "good Programming logic", "strong Programming knowledge".
I believe that Programming knowledge is related to knowledge abou... |
I want to know if the structure for an ASP.NET website I'm working on uses a design pattern for it's web pages. If it is a design pattern, what is it called? The web pages have the following structure:
UserDetails page (UserDetails.aspx) - includes UserDetailsController.ascx user control. UserDetailsController.ascx in... |
What's the best way to give the end-user of my web application the ability to open, edit and save (via browser) word documents that are stored in my database?
I have this working by doing an html conversion of the file (via Aspose Words) but this method seems not even close to flawless and i'm trying to improve this. I... |
I have been looking for an efficient String trie implementation. Mostly I have found code like this:
Referential implementation in Java (per wikipedia)
I dislike these implementations for mostly two reasons:
They support only 256 ASCII characters. I need to cover things like cyrillic.
They are extremely memory ineffic... |
Can the Strategy design pattern entirely replace delegates?
In Java, for example, there are no delegates. Is it possible to gain all the features of delegates by using Strategy design pattern?
Edit: I see there is some ambiguity in my question. By delegates I mean the feature of the language, C# for instance.
|
I have joined an ongoing project, where the team calls their architecture "component-based". The lowest level is one big database. The data access (via ORM) and business layers are combined in various components. E.g., there's a component for handling bank accounts, one for generating invoices, etc. So every component ... |
Summary:
We are looking to expand our use of email for notification purposes. We understand it will generate more inbox volume, but we are being selective about which events we fire notification on in order to keep the signal-to-noise ratio high.
The big question we are struggling with is designing a system that guara... |
I need to prepare an internal product release road-map for product being built via scrum methodology, and have some difficulty correlating sprints to the road-map.
The main problem is that as I don't have effort estimations for every story, because these prepared immediately before each sprint, so I don't know what wil... |
I am learning assembly language for x86 architecture. But, i am unable to find any practice problems so that i can test my skills. Can you suggest me some practice problems or some small assembly language project to improve my skills.??
thanks in advance
|
I've been reading Martin Fowler's note on Continuous Integration and he lists as a must "Everyone Commits To the Mainline Every Day".
I do not like to commit code unless the section I'm working on is complete and that in practice I commit my code every three days: one day to investigate/reproduce the task and make som... |
I have two objects that represent a 'Bar/Club' ( a place where you drink/socialise).
In one scenario I need the bar name, address, distance, slogon
In another scenario I need the bar name, address, website url, logo
So I've got two objects representing the same thing but with different fields.
I like to use immutable o... |
I'm addicted to VC++ since 2008, and I begin to work for my current company from 2011 when I graduated in Mathematics. Now I still love VC++, it is a wonderful programming language.
I'm a little confused whether it's a good idea to continue with Windows Programming.
I'm in Beijing, China. Of course, I come from China. ... |
What would you choose as the default Ant target?
In the context of a small visual tool with a user interface, open source.
I was thinking about jar because the project's distributable is the jar file.
But someone prefers to have help as the default target, to show the available targets.
Or maybe another target? I doubt... |
I am willing to work on a personal project that I would like to release publicly. I am working with Silverlight and have experience with XAML, as it is my full-time job.
It is enjoyably for me to create UIs in Blend and XAML. I am also a big fan of C# language. I don't know what I would do without LINQ now.
Anyways, I... |
I've been programming (obsessively) since I was 12. I am fairly knowledgeable across the spectrum of languages out there, from assembly, to C++, to Javascript, to Haskell, Lisp, and Qi. But all of my projects have been by myself.
I got my degree in chemical engineering, not CS or computer engineering, but for the fir... |
I have a legacy C code on my hands, and I am given the task to filter dead/unused symbols and paths from it. Over the time there were many insertions and deletions, causing lots of unused symbols. I have identified many dead variables which were only being written to once or twice, but were never being read from.
Both... |
JavaFX has provided a bunch of new Property objects, such as javafx.beans.property.DoubleProperty which allow you to define fields which can be automatically observed and synchronised.
In many JFX examples, the MVC model class has a number of these Property fields, which can then bind automatically to the view.
However... |
I have a website to design. I have information on how the page should look and interact. The problem is I'm not good in front-end design, and have put many many hours to get the hang of the stuff. Currently I use the CSS from sample sites in github to style my site, which seems to be an un-ethical way.
Question: how d... |
Over time I could understand two parts of SOLID – the “S” and “O”.
“O” – I learned Open Closed Principle with the help of Inheritance and Strategy Pattern.
“S” – I learned Single Responsibility principle while learning ORM (the persistence logic is taken away from domain objects).
In a similar way, what are the best re... |
Is it possible to fetch commit messages from bitbucket via json or something so that a project manager can see what the changes are without having to look at the code. If it's possible can you give me some ideas on how to do it.
|
I'm learning T-SQL. From the examples I've seen, to insert text in a varchar() cell, I can write just the string to insert, but for nvarchar() cells, every example prefix the strings with the letter N.
I tried the following query on a table which has nvarchar() rows, and it works fine, so the prefix N is not required:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.