instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I try to convert unsigned long long to string like this
unsigned long long Data = 12;
char Str[20];
sprintf(Str, "%lld",Data);
when i want to see
but i always see 00
Str[0],Str[1]....;
whats the wrong !!!
| stackexchange/codereview |
I want create a new launcher in the Application -> Game menu with bash shell.
How can I do that ?
| stackexchange/codereview |
3 months ago i developed a WPF Application offline,and now i need to host this Application online.
This app gets the function to Add,Edit,Delete,Search (and so on ...) records in the database so it use a Databinding and now i need to host it online so the client can connect on the web to insert or update the data .
Can... | stackexchange/codereview |
Hi!
I have a WCF Service that runs over TCP with Certificate security like this :
<binding name="netTcpUserNameMessageSecurity" portSharingEnabled="True" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2... | stackexchange/codereview |
This is a long shot, but I thought I might try before starting the dirty work.
I've got a project to build an application which will, for a defined input stations (vertices) and lines (edges), that is, a real map of some public transportation, schematize a given map into a metro map. I've done some research on the prob... | stackexchange/codereview |
I am a first year student and learning setter and getter at school.
When I run it, it is ignoring the following statement:
String Origin = scan.nextLine();
and then it goes to the next line.
Here is the main:
import java.util.Scanner;
public class FlightTest
{
public static void main (String [] args)
{
... | stackexchange/codereview |
Is there any reason why the server process does not give any output in the following code?
require 'socket'
server = TCPServer.open(3000)
loop{
puts "waiting for connection"
client = server.accept
puts "connection!"
client.close
puts "client closed"
}
I connect via:
nc localhost 3000
in a windows... | stackexchange/codereview |
You must know WP 3's multi-level menu configuration feature on the dashboard.
I was wondering how WordPress is doing that. Yes, I know they are using jQuery UI. But still, how? Is there any documentation?
Or is there any plugin or anything that shall help me?
Thank you all.
| stackexchange/codereview |
I have a system that keeps running out of disk space because that garbage collector doesn't free the objects that hold the file handles fast enough. (Files are created and deleted all the time, but since the process still has an open file handle, the OS keeps it on the disk).
The objects are shared, so a simple try { .... | stackexchange/codereview |
What is the most basic approach to implement a liquify filter like the one photoshop has , in java ?
| stackexchange/codereview |
Currently I do something like this:
class Foo {
// Declare Fields
[FieldName("F_BAR")] public int? Bar;
[FieldName("F_BAZ")] public int? Baz;
[FieldName("BLARG")] public double? Bee;
// And a custom selector
public static string FooFields() {
// which looks something like:
... | stackexchange/codereview |
I'm using basic scaffold structure. What I need, is to add 'moderate' action and view by changing published to true. In my idea, on moderate.html I should get the list of all unpublished entries with the ability to change and save their parameters.
Here are parts of my code:
#names_controller.rb
def moderate
@name =... | stackexchange/codereview |
I'm writing my first device-specific application which is a Windows Phone 7 panorama app. I'm currently still busy on the UI as I'm playing around with the features then I stumbled upon a problem that I couldn't fix. You see, I have two checkboxes for some sort of login form. One is a "Remember me" and the other a "Sig... | stackexchange/codereview |
I want to Implement Logging future using log4net for my asp.net mvc application..
Can any body has the Sample project so that I can take a look? and where do i need to find out the dll's for log4net?
Thanks
I Used this link to implement Loging for my application
http://www.codeproject.com/KB/aspnet/log4net.aspx
How do... | stackexchange/codereview |
I am trying to evaluate couchdb and its potential for solving the sync problem on Android but I can't find any documentation that answers my questions regarding how replication to Android devices works.
It looks like the focus todolist couchapp is intended to demonstrate what I am looking for. Does it automatically sy... | stackexchange/codereview |
I am trying to get paginating to work with jQuery. I am using the will_paginate gem. It works normally (with no javascript). I tried following a railscast (http://railscasts.com/episodes/174-pagination-with-ajax) but I am still having a problem.
show.js.erb
$('#comments').html("<%= escape_javascript(render "comments/co... | stackexchange/codereview |
I currently have two tables, one with documents, and another with ratings
doc_id | doc_groupid | doc_name | doc_time
and then
rating_id | rating_docid | rating_score
where rating_score is either -1 or 1.
What I need to do is have a single query that retrieves every column in the document table WHERE groupid = #, but ... | stackexchange/codereview |
I have a simple user control, which is essentially just an AutoCompleteBox with some custom logic.
For a specific instance (a collection of Persons), I want it to look like this:
<sdk:AutoCompleteBox Name="myACB" ItemsSource="{Binding People}" FilterMode="StartsWith" MinimumPrefixLength="2" ValueMemberBinding={Binding ... | stackexchange/codereview |
On behalf of zefrank @ pumpkins.zefrank.com:
I reported a bug to ze that if you continue to draw on the pumpkin, it will redraw the parts you already cut out. He said that if you draw any filled object in flash it will happen.
Is there another way to structure the drawing code so this doesn't happen?
Here's an example... | stackexchange/codereview |
Can any help with this, i have an app, i want to show tooltip when application is minized & mouse hover over it.
Thanks
| stackexchange/codereview |
I can't seem to render a template outside of a controller in my Rails 3 application. The googling I've done has been helpful, and I eventually found some useful info at http://www.swombat.com/rails-rendering-templates-outside-of-a-contro. However, this seems to be broken in Rails 3. Does anyone have any ideas how I can... | stackexchange/codereview |
I'm developing an app using android 2.1.
I have a problem with using session cookies to login to a RESTful web service. The code works fine on the emulator, but when I run it on my HTC Magic, the cookie logic doesn't work. I've confirmed that the magic is receiving cookies in the headers by listing them (see attached).... | stackexchange/codereview |
Hi I have made a game and I have used OpenGL for its graphics.the OS is ubuntu 10.04.
The game is multiplayer.For its testing I am unable to find any tool/software for low bandwidth and high latency.I mean I want to find the appropriate network conditions so as to run my game !
Can sm1 please tell me any good links to ... | stackexchange/codereview |
I tried using 6%2, but its always giving the value as 2 and not 0. Why and how can I get a solution to this?
| stackexchange/codereview |
I am willing to build a small questionnaire and I was just wondering, how the database structure should look like... I mean I have different possibilities for the answers - checkboxes, drop-down-menus, input-boxes, etc., so as for the questions. And how should I save the questionnaires itself? Should I make for each di... | stackexchange/codereview |
I got the BASE64 encoded text by using crypto.signText method. but that dose not contain original to data which is signed.
can anyone tell me how to update that encoded text to attach data to it.
| stackexchange/codereview |
H
I need to customize two datepickers.
First shold have:
minDate: last ten days of this month (or if easier: 20th of this month)
maxDate: 10th of next month
I can only set then as given in "manual" like this: +1m +2w +5d. But that is not good in my case since I do not need to go relative to current data.
Any idea?
I ... | stackexchange/codereview |
I'm looking to embed Solr as a library in a .Net app. I understand that there is an embedded Java client which queries a Solr core directly, and I could potentially run this on IKVM, however, I'm looking for something which has been translated. I also have looked at Solrnet, but it appears to be only a client to an htt... | stackexchange/codereview |
I've submitted an app a few days ago and it's still waiting for review. In the meantime I've done some improvements... could I submit that new binary now or is that going to reset my waiting time so that I basically start from scratch again?
| stackexchange/codereview |
The problem: I have a data entry form. I would like to save the data without page roundtrip or UpdatePanels.
The solution:
- the 'Save' button calls a javascript function which serialize all the fields content (client side)
- the javascript function calls a web method (server side)
- the web method deserialize the dat... | stackexchange/codereview |
It should:
Expand vertically whenever new lines are added with the return key.
Wrap long lines and expand vertically for wrapped lines as needed too.
Have a nice pretty border just like UITextField.
Support placeholder text just like UITextField.
Support friendly actions like UITextField.
| stackexchange/codereview |
I've been trying a program from codeproject, about ptr_vector, and while compiling, the above error is shown.
Googling shows no hope to solve this problem. Could anyone here help out?
Here's the entire code (am compiling with gcc 4.2.2)
#include <iostream>
#include <string>
#include <boost/ptr_container/ptr_vector.hpp>... | stackexchange/codereview |
I'm trying to add to the code for a single layer neural network which takes a bitmap as input and has 26 outputs for the likelihood of each letter in the alphabet.
The first question I have is regarding the single hidden layer that is being added. Am I correct in thinking that the hidden layer will have it's own set of... | stackexchange/codereview |
I would like to edit and update a form. However, im not sure how to display the data from the dbase for radio button or drop down list.
For example if its a input text field :
Pages : <input type="text" name="txtpages" id="txtpages" value="<?php echo $rows['pages'];?>" />
How do i do this for a radio button/ drop dow... | stackexchange/codereview |
Using the jQuery UI Slider, I'm trying to figure out how to make it so that the slider stops working once certain conditions are met. Any ideas? I thought stopping event propogation in the "start" part would work, but ...it doesn't. So I'm still clueless and lost.
<script type="text/javascript">
$(document).ready(... | stackexchange/codereview |
Is there an API to get a user's voicemail number on iPhone?
| stackexchange/codereview |
I'm new to CSS, so this question maybe is stupid, but...
I have a web page (the code below is a simplification), where I put some structure and a css for positioning. If you look, in the code the content comes before the headers (not the html headers, the "pages menus"), but with CSS I put that menus on top of the page... | stackexchange/codereview |
Since working with Android I'm curious about how I can let Android do everything in respect to orientation change (layout vs. layout-land).
Currently I have to feed the correct number of db columns and views to the cursor adapter. Is this the correct way or do I miss something? How do you guys do that?
Please have a lo... | stackexchange/codereview |
I'm trying to parse an xhml file using SAXParser in Java, but gets an exception:
"java.net.MalformedURLException:
unknown protocol: g"
The line made that exception was:
SAXBuilder.build(Destination)
While Destination is the full path to the xhml file.
The beginning of the xhml file is as followed:
<?xml version="... | stackexchange/codereview |
I'm using Mozilla Rhino 1.7r2 (not the JDK version), and I want to call a JS function from Java.
My JS function is like this:
function abc(x,y)
{
return x+y
}
How do I do this?
Edit: (The JS function is in a separate file)
| stackexchange/codereview |
I'm currently working on some core animation stuff for the iOS and really enjoying myself. This question is regarding the many different ways one can implement an animation. Say you would like to rotate a UIView a few times but with different timing functions for each animation cycle. To the best of my knowledge there ... | stackexchange/codereview |
If I compile a .NET satellite assembly with localised resources, does the assembly itself know which language it is for, or is this implied in the folder in which it appears?
If I decide to create a localised assembly where all strings are enclosed by '@' symbols for testing if all of my app is localised and then insta... | stackexchange/codereview |
Its best to just show what I'm trying to achieve. This isn't meant to be functional, just describe the problem.
Here's what my tomcat web app currently accepts...
/.../mywebapp/doSomething.jsp?id=somenumber.
I want it to look like
/.../mywebapp/somenumber
What is this concept called, and does anyone have a good r... | stackexchange/codereview |
I don't really have a solid understanding of Setters and Getters for objective-c. Can someone provide a good guide for beginners? I noticed that this comes into play when trying to access variables in another class, which I am trying to do right now. I have two classes, lets say A and B. I have a NSString variable in A... | stackexchange/codereview |
I have a project ongoing at the moment which is create a Windows Service that essentially moves files around multiple paths. A job may be to, every 60 seconds, get all files matching a regular expression from an FTP server and transfer them to a Network Path, and so on. These jobs are stored in an SQL database.
Current... | stackexchange/codereview |
I have been struggling to write a simple code to sort an array of char in C and been failing miserably. This is what I have so far:
int main()
{
char line[128];
char word[128];
int i=0;
int j;
int length;
while(fgets(line,sizeof line,stdin) != NULL)
{
length=0;
i=0;
while (line[i]!='\0')
... | stackexchange/codereview |
Hi
I have a div container having some string,Some child div have a text like "Welcome", I want to make that container div disabled i.e not clickable, If that container child div have "Welcome" string.
My Markup is like this.
<div>
<span>some text</span>
<span>some text</span>
<div>
<span>some text</span>
... | stackexchange/codereview |
I am looking for a tool that will allow me to execute unit tests over all possible interleavings (spelling?) with a program that was written with Task Parallel Library constructs. Alternatively, how could I run CHESS with dotNET 4.0?
| stackexchange/codereview |
At the moment it seems that a RIA Domain Services class can not return a sinlge custom type.
There are parts of my app that needs just that, so think the only way to get that is to call back to a simple silverlight-enabled WCF Service, which i beleive will not have a problem returning a custom type. I don't see where ... | stackexchange/codereview |
Can someone check a xml reply string. User said it is not XML compatible and has bad header. When I do a view source, I see this
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response><task_no_added>54</task_no_added><errorMessage></errorMessage></response>
http://itpscan.info/XML/add_item.php
Here is head... | stackexchange/codereview |
I'm developing a solution to retrieve poison messages from a backout queue in Websphere 6.1.
My question is: when this msg (ie. TextMessage) is re-queue from a regular queue to backout queue, what is the queue name in msg.getJMSDestination() and msg.getJMSReplyTo()?
For example:
I've got a msg with destination to myQue... | stackexchange/codereview |
I'm working on script taken here to load a page in div but the script starts to run and in middle al functions stop itself. If I move the lines of code up it run the first new lines and then it stops.
My code is:
function loadDemo(path) {
$.get(path, function(data) {
alert("Chiamata la funzione get per " + path + "!... | stackexchange/codereview |
There are many, many questions and quality answers on SO regarding how to prevent leading zeroes from getting stripped when importing to or exporting from Excel. However, I already have a spreadsheet that has values in it that were truncated as numbers when, in fact, they should have been handled as strings. I need t... | stackexchange/codereview |
The struct looks like this:
template <class Node_entry>
Node<Node_entry>::Node(Node_entry item, Node *add_on)
{
entry = item;
next = add_on;
}
And the *new_rear pointer does not get initialized, but &item is filled with user input.
Error_code Extended_queue::append(const Queue_entry &item) {
Node<Qu... | stackexchange/codereview |
This is a follow up question to Char* vs String Speed in C++.
I have declared the following variables:
std::vector<std::string> siteNames_;
std::vector<unsigned int> ids_;
std::vector<std::string> names_;
I call this function tens of thousands of times and is a major bottleneck. Is there a more efficient way to compa... | stackexchange/codereview |
Lately I've been a lot into agile methodologies. Some papers I've read at Martin Fowler's website looked thoroughly unflawed to me to say the least, and I was wondering what agile practices are most suited to game development, particularly for small-budget, small-sized and inexperienced team projects (bold because it's... | stackexchange/codereview |
How do I create a form that spans over multiple pages? I would like to ask a large amount of questions, and based on the answers of previous questions, new specific questions will be asked.
| stackexchange/codereview |
I am working on a distributed animation of moving BALLS with RMI.
My goal is to move multiple balls in a way, so that multiple clients observe the same movement/position of balls, i m using ball object which is remote object.
The ball is moving fine, when it is only one, but when i m trying to increase the number of b... | stackexchange/codereview |
I'm trying to change the color of a horizontal progress bar (foreground). I came across this example and am trying to model my XML file off it. However, I get a compiler error at the following statement:
myProgressBar.setProgressDrawable(R.drawable.progress_horizontal);
The error is "The method setProgressDrawable(D... | stackexchange/codereview |
Let's say that I have this text my db.
<P>word1</P>
<P>word2</P>
<P>word3</P>
<P>word4</P>
How I can detect the number of <p> elements after I get my text from my db?
Thanks
| stackexchange/codereview |
i have to change the internet explorer icon in the title with customized image not the one which appears on the address bar.
| stackexchange/codereview |
This javascript works fine in Chrome and Firefox but not in IE8:
<script type="text/javascript">
$(function(){
$("#button").button();
$("#radioset").buttonset();
$('#ciao,#dialog_link, ul#icons li ').hover(
function() { $(this).addClass('ui-state-hover ui-corner-left '); },
function()... | stackexchange/codereview |
Hy, I developing ASP.Net for some years now and every time (very often) I code a new asp.net application I need to make sure that all the texts (labels, buttons, … ) I use in the Application must be managed and updated by an admin. Therefor I implemented a own simple component, which updates the data to a Strings table... | stackexchange/codereview |
Hi I am using a Java script variable
var parameter = $(this).find('#[id$=hfUrl]').val();
This value return to parameter now
"{'objType':'100','objID':'226','prevVoting':'" // THIS VALUE RETURN BY
$(this).find('[$id=hfurl]').val();
I want to store objType value in new:
var OBJECTTYPE = //WHAT SHOULD I WRITE so ... | stackexchange/codereview |
I have a project with many calculations involving a lot of real world units :
Distance;
Temperature;
Flow rate;
...
This project involves complicated and numerous calculation formulas.
That's why I supposed the use of custom types like Temperature, Distance... can be good for code readability. For example:
Temperatur... | stackexchange/codereview |
I want to call other method or other technique before action call in asp.net mvc 2.
Because I want to set property in variable then to call action in controller.
can any one guide me if possible.
| stackexchange/codereview |
Is there a better way to write this than using BitConverter?
public static class ByteArrayExtensions
{
public static int IntFromUInt24(this byte[] bytes)
{
if (bytes == null)
{
throw new ArgumentNullException();
}
if (bytes.Length != 3)
{
throw n... | stackexchange/codereview |
I am trying to copy a record from one SQL Server table to another.
Both tables have the same structure, one of the columns is of type xml.
Source table has a large xml content in of the rows, about 2.5Mb.
I saved the content of the xml column into a file, see map.zip attached or download it from
https://docs.google.co... | stackexchange/codereview |
I have just started playing with unit testing / mocks using Moq, and ran into a problem..
I have a Service layer named "CustomerService" which have following code:
public interface ICustomerService
{
Customer GetCustomerById(int id);
}
public class CustomerService : ICustomerService
{
private IRepository<Custo... | stackexchange/codereview |
Possible Duplicates:
Stupid Question Regarding If-Else's Simultaneous Execution in C++ or C
Is it possble to execute both if and else part of an if — else control statement ?
Hello everyone..
I had a question in an interview like this which i couldn't answer.
Consider Following code block.
Assume necessary header f... | stackexchange/codereview |
i'm using magento version 1.3.2.4
I want to change a product shipping as free shipping. All other products will be charged for shipping. for this i have done the following steps
Here’s what I did to offer free shipping on one specific product:
First, turn on Free Shipping in your Admin Panel > System > Configuration > ... | stackexchange/codereview |
I'm looking for a simple gadget/widget to add to my site. It should allow me to display some sort of themometer showing funds raisted.
Can someone please recommend a good one?
| stackexchange/codereview |
I need to retrieve text from a remote web site that does not provide an RSS feed.
What I know is that the data I need is always on pages linked to from the main page (http://www.example.com/) with a link that contains the text " Invoices Report ".
For example:
<a href="http://www.example.com/data/invoices/2010/10/invoi... | stackexchange/codereview |
Here is my code:
<ul style="list-style: none; position: relative;">
<li style="float: left;"><span style="position: relative; left: 5px; ">one</span></li>
<li style="float: left;"><span>two</span></li>
<li style="float: left;"><span>three</span></li>
</ul>
All li elements contain a span, but the first one ... | stackexchange/codereview |
I have a dialog box which I programatically alter the height of. The problem now is that I'd like to allow the user to expand it horizontally if they want to see more information.
How can I stop the dialog from resizeing vertically if I allow the user to resize it?
| stackexchange/codereview |
i just wanted to know how to enable client side validations for dropdowns in asp.net mvc 2.
The scenario would be that the dropdown will contain a "Select" item and the list of other items..,The user should select other items... the validation should fire when the user does not select the other items
public class Facil... | stackexchange/codereview |
When "make check" for GCC4.5.0, such error was occured:
make[1]: Entering directory `/home/username/tool/gcc-4.5.0'
/bin/sh: line 0: cd: host-x86_64-unknown-linux-gnu/fixincludes: No such file or directory
make[1]: *** [check-fixincludes] Error 1
make[1]: Leaving directory `/home/username/tool/gcc-4.5.0'
make: *** [do-... | stackexchange/codereview |
We are in the final preparations for releasing a product and we have to touch up the user guide.
The current one we have is an amalgamation of some MS Word and some OpenOffice.org documents. While it's sufficient, we going to massively re-do it after the release in readiness for the following release.
We haven't really... | stackexchange/codereview |
I have a following fairly simple scenario:
Some data needs to be written into a DB (pretty big collection) that can be partitioned. But I have two problems:
Easy one: would like to have an option to print the progress bar, so that would like to know how many records have been inserted so far from time to time (kinda s... | stackexchange/codereview |
I would like to know how to retrieve video format using AssetLibrary and display on uilabel? i read on forum to use ALAssetPropertyRepresentations but im just lost. some help please?
| stackexchange/codereview |
If you click on the navigation links on Hardly Code's website the browser scrolls to another section of the page.
Can anyone point me to some good reading materials for recreating this effect? I am using jquery, and want the animation to be as smooth as is it on hardlycode.com
| stackexchange/codereview |
Hi i am very new to pidgin.Is it possible to do voice/video chat through talk using pidgin on windows??As in bolgs i found that its possible on linux but nor sure about windows.If its possible please tell me how is it possible.I already installed pidgin on windows but no option for voice/video chat is comming.
| stackexchange/codereview |
I have created a facebook iframe app using Flash on the client and .net on the server. I am using fluorineFX to communicate between the two.
I need to get the exact facebook server time from my server. This is for authenticating the user on my server so I don't want to get the time from the client and then pass it to t... | stackexchange/codereview |
I'm developing a Symfony 1.4 plugin and I noticed that plugin routes get matched before app level routes. Is it possible to have app level routes evaluated first?
| stackexchange/codereview |
So I'm building an app using PHP and MongoDB which will have a fair bit of traffic in both reads and writes.. After a couple of months there should be around 2500 reads a second and 200 writes per second (not sure how that really rates in terms of traffic compared to others, though).
I'm a bit curious on what to do whe... | stackexchange/codereview |
I've just started using Seed for development. One thing that Seed's web page mentions is that it "Maps C-isms (say, out arguments, or enums) to things that make sense in JavaScript." Unfortunately, I can't find any documentation or examples for how out arguments should work. So, for example, the following call in Seed:... | stackexchange/codereview |
This is a valid enum
public enum myEnum
{
a= 1,
b= 2,
c= 3,
d= 4,
e= 5,
f= 6,
g= 7,
h= 0xff
};
But this is not
public enum myEnum
{
1a = 1,
2a = 2,
3a = 3,
};
Is there a way I can use an number in a enum? I already have code that would populate dropdowns from enums so it would be quite handy
| stackexchange/codereview |
In Ruby both expressions seem to do similar things:
'it' =~ /^it$/ # 0
'it' =~ /\Ait\Z/ # 0
# but
/^it$/ == /\Ait\Z/ # false
So I an wondering what is the difference between ^-\A and $-\Z and how to choose which one to use?
| stackexchange/codereview |
http://www.nagare.org/
As far as the type of product and framework usage, think something like Facebook (it's not exactly a social network, but close enough for evaluation in this context).
Basically, I'm just looking for something robust, scalable, easy to work with (small learning curve is a plus), compatible with ol... | stackexchange/codereview |
And exact the media type then save the captured image with correct extension?
| stackexchange/codereview |
I have a subForm, aContinuous Form, filtered by the field JobItemId, that has a field Price, after price is updated I wish to determine the new total of Prices for JobItemId and pass this for processing elsewhere.
I have this code:
Private Sub Price_AfterUpdate()
Dim TotalCost As Currency
Dim strFilter As String
... | stackexchange/codereview |
I have an Android app with a ListView, and each row in the list has a TextView and a Button. What I want to do is add an OnClickListener to each Button in the ListView, but I can't figure out how to get some sort of reference to every Button... Can anyone please give me a hint?
Here's my XML that's bound to the ListAda... | stackexchange/codereview |
Look at the following two examples:
<foo>some text <bar/> and maybe some more</foo>
and
<foo>some text <bar/> and a last <bar/></foo>
Mixed text nodes and bar elements within the foo element. Now I am in foo, and want to find out if the last child is a bar. The first example should prove false, as there are text afte... | stackexchange/codereview |
I'm not sure what is wrong with this setter function declaration because the other setter functions in the same class have the same syntax and they don't cause errors. I thought it may have been syntax errors in lines before this declaration, but I've checked those too and can't seem to find the cause. Here is the code... | stackexchange/codereview |
I'm working on a 'C' code base that was written specifically for one type of embedded processor. I've written generic 'psuedo object-oriented' code for things like LEDs, GPIO lines and ADCs (using structs, etc). I have also written a large amount of code that utilizes these 'objects' in a hardware/target agnostic manne... | stackexchange/codereview |
In Ruby, how can I programmatically determine which class/module defines a method being called?
Say in a given scope I invoke some_method(). In the same scope I'd like to invoke a function find_method(:some_method) that would return which Class, Singleton Class or Module defines some_method.
Here's some code to illust... | stackexchange/codereview |
is there anyone that can help me with java program I spent hour troubleshooting?
I have no problem reading the file into a string array but I don't seem to know how to use switch or maybe if statement to store each line in an Array of Objects.
Write an application with a main that reads a file (from the command line)... | stackexchange/codereview |
How do you establish a constraint where, one column (not the primary key) has to have the same value as another table's column. I'm not quite sure how to phrase it so here's an example:
Ex:
I have three tables, Employee, Director, Division and Department
The structure for the tables are as follows:
Employee
Id
Name
D... | stackexchange/codereview |
I have a class that has many settable/gettable attributes. I'd like to use reflection to set these attributes, but I have 2 questions about my implementation
Here is some stripped down code from my class
class Q {
public String question_1;
public String question_2;
public String question_3;
public String answe... | stackexchange/codereview |
I want to make a GStreamer application which takes a xml file process its content which provides information like image url, its weight and the duration for which it is going to be displayed on the screen.
The xml file can be clearly processed in C using libxml. But how can we create a slideshow of the images using th... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.