instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I just need some advice about using tags. I'm working on a website right now and the users can post videos, images, audio and information about themselves.
I never worked with tags before on a normal website (did work with them on wordpress, youtube etc..), so I need some advise to start designing my database.
What is... | stackexchange/codereview |
Students can be in many different classes. Each class has many different student. A student can have many grades but only 1 grade per class--every (student, class) pair has one grade.
Should I layout the (MySQL) database like:
students (student_id, student_name)
classes (class_id, class_name)
students_classes (student_... | stackexchange/codereview |
I would like do this in a script task. For example i would like to be able to do something like this:
For each file as file in strDirectory
file.delete
next file
| stackexchange/codereview |
I guess this problem is really about performance, but I'm trying to get a rough sanity check as well.
I display a map view (although whether it's a map view or something else could change, and I hope is immaterial), and on top of the map view I have a transparent view subclass. In this view's drawRect: method I draw on... | stackexchange/codereview |
I’m always afraid whenever I see any regular expression. I think it very difficult to understand. But fear is not the solution. I’ve decided to start learning regex, so can someone advise me how I can just start? And if there’s is any easy tutorial?
| stackexchange/codereview |
Got the strangest problem, and it does not make sense. I have been through the code like many times and at my wits end trying to figure out what the issue is. Basically testing a site with firefox and safari, they behave differently. This may make sense for Javascript or CSS.
However, this is django code that is not ev... | stackexchange/codereview |
I'm trying to make a class called LoopingInt. It stores two integers, one being the maximum value of the integer, and the other being a stored integer. When the integer falls below 0 or above the maximum value, it "loops" back around. So if you add 3 to a LoopingInt with a value of 4, and the max value is 6, the int... | stackexchange/codereview |
Is there some simple, easy to use C++ library or just a class for compression?
It should be something easy to use and fast. Compression ration can be worse.
| stackexchange/codereview |
.NET 4.0 - C# Application needs to pull messages out of Exchange Server 2007. We are using EWS Managed API 1.0. Also the app needs to push messages to the Exchange Server 2007.
| stackexchange/codereview |
I'm trying to find a way to change stylesheets based on what season it is with jquery because at this point it is unknown if I can use php or ruby at all on this site. Thanks for your responses!
| stackexchange/codereview |
My Website: A search intensive location based social network. So at a high level are components like we see on facebook - profiles, feeds etc. On a low level I am drilling down right to reservations at hotels across the world, restaurants etc. So lots of data, lots of searches, lots of analytic, lots of reads/writes.
C... | stackexchange/codereview |
$ ghc -V; cabal -V
The Glorious Glasgow Haskell Compilation System, version 7.0.1
cabal-install version 0.8.2
using version 1.8.0.6 of the Cabal library
Here's the error:
$ cabal install vector-algorithms
Resolving dependencies...
Configuring vector-algorithms-0.3.4...
Preprocessing library vector-algorithms-0.3.4...... | stackexchange/codereview |
Possible Duplicates:
What is a framework? What does it do? Why do we need a framework
What is the difference between a class library and a framework
Although I referred to various sources, I still can't understand the proper definition. What is meant by "application framework"?
| stackexchange/codereview |
I have developed a dating website built on top of the Google App Engine, to which I would like to add instant messaging, and possibly/probably audio and video conferencing.
Given that the users on the website do not want to share their personal details or real contact information, I am handling all of the login inform... | stackexchange/codereview |
Possible Duplicate:
posix timer_create() function causing memory leak on linux
I am using posix timer_create() function for timer functionality in my application. I am using SIGEV_THREAD option for timeout scenario. But the thread created by kernel at run time when timeout happens in not exiting. There is no problem... | stackexchange/codereview |
I am developing a web application using JSP, but it seems that Java EE is very big for my application. I'm only doing something like a blog.
Can I use a pure JSP and ignore Java EE and the JavaBean and start a pure JSP project?
| stackexchange/codereview |
I must do the following:
var someType = ObjectFactory.GetNamedInstance("myNamedInstance");
where someType can be any implementation of ICommand.
so I registered some of them:
For(typeof(ICommand<>)).Use(typeof(Command1)).Named("myNamedInstance1");
For(typeof(ICommand<>)).Use(typeof(Command2)).Named("myNamedInstance2")... | stackexchange/codereview |
I have a view and I want to query my view like that to hint some index from a base table,can I do that?
I mean:
--view
create or replace view temp_view
as select col1,col2,col3
from table1,table2....
I have an index on table1.col1 called "index1".
I have a query:
--query
select *
from temp_view
where col1=12;
And w... | stackexchange/codereview |
How can I create a circular path in my iPhone application on which I can detect finger touches?
| stackexchange/codereview |
How do I log into a local server using the XMPP protocol? (iPhone SDK)
| stackexchange/codereview |
Please tell me how i put html code in my iphone app
i have to show some Hyperlinks on my app
(Please don't suggest me to use UIButton)
please provide help or sample code for it if possible
| stackexchange/codereview |
I want to take a list of images from any web page(my task at university) using unix script. I am new at unix scripting, so all I managed to find was with command: w3m -dump http://www.myweb.com . But this command doesn't give me any html tags so I could know where the images are and to get them with grep. I also tried ... | stackexchange/codereview |
I have combo box with datasource. I want to use only can choose items not write in it.
How can I make that?
| stackexchange/codereview |
When you create foreign key constraints with Access (through database schema editor), you have a choice to enable or disable the following options (actual captions may differ, I only have localized version of Access available):
x Enforce data integrity
x Cascade updates
x Cascade deletions
In DDL, the latter two c... | stackexchange/codereview |
I have a use case in my application, where after certain point, I need to associate an data with an activity. So whenever an intent with an action and the data type is fired, my activity can be opened. I know that it is possible to associate a data type with an activity statically via AndroidManifest.xml.
Is it possib... | stackexchange/codereview |
I'm new to flash, and using Macromedia flash 8.
I'd like to use in-built DateChooser component in my flash project.
So How do I bind an even handler on selection of any date? let's say I want to display selected date in another dynamic text element.
| stackexchange/codereview |
I have 3 Oracle users A, B, C and want to use B (as intermediate) to import a table from C to A. When connected to B, I can run "create table A.T1 as select * from T1@C". But when I put the sql statement into a procedure that B creates/owns, I keep getting "ORA-01031: insufficient privileges". As sysdba, I have granted... | stackexchange/codereview |
When I had used following code, I got the message "Failed to validate oauth signature and token"
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.twitter.com/oauth/access_token"]];
[request setHTTPMethod:@"POST"];
NSString *postString = @"oauth_consumer_ke... | stackexchange/codereview |
So I understand the use of the ActionLink HTML helper, as well as most of the parameters. I am still in the process of wrapping my head around the complete range of uses for the object routeValues parameter.
However, my question is that it seems for the routeValues parameter you could specify the object as either th... | stackexchange/codereview |
The following command
selenium.click("link=Identify Awards");
opens a popup however the the test does not continue
I have placed
selenium.waitForPopUp(null, "1500");
selenium.windowFocus();
selenium.selectPopUp("Search -- Webpage Dialog");
After the click command to no avail
the link is to a goes to a java function.... | stackexchange/codereview |
I have configured result as follows : Its my custom result type.
<result-types>
<result-type name="myBytesResult" class="blahblah.MyBytesResult" />
</result-types>
<action name="myAction" class="blahblah.MyAction">
<result name="success" type="myBytesResult">
<param name="pptId">${pptId}</param>
</... | stackexchange/codereview |
I know how to do it between 0 and 100, but I can I set the floor?
This is how I do 0 - 100..
int randomNum = (int) Math.ceil(Math.random() * 100);
| stackexchange/codereview |
I will roll up my sleeves and stop asking mulitple questions and start coding. I want to learn ASP.NET and PHP. Which one do you recommened me to start with and why?
I have taste of the two of them and have worked with them but just a little.
Thank you.
| stackexchange/codereview |
Most of the Java web application we run in our shop for software development purposes need to have some kind of an APP_HOME directory created where the web application can do work. The applications I am thinking of here are things like Hudson, Nexus, Confluence, JIRA, etc. Perhaps these applications are special becau... | stackexchange/codereview |
I am trying to understand working of pci_resource_start function
So I browsed code via cscope and searched for string pci_resource_start
and got following in pci.h
#define pci_resource_start(dev, bar) ((dev)->resource[(bar)].start)
I am not able to understand how does this above macro works.
How does it above macr... | stackexchange/codereview |
Code:
$.ajax({
type: "POST",
url: "students/login",
data:{"data[Student][email]":_email,"data[Student][password]":_password},ss
beforeSend: function(){
$("#confirm").text("");
},
error: function (xhr, status) {
alert(status);
},
success: function(msg){
if(msg == "... | stackexchange/codereview |
how can i create time in this format (DATE_ISO8601) in C# ?
2009-05-18T16:34:09.423-0700
thank you!
| stackexchange/codereview |
How can I delete few characters from a file using C program?
I could not find any predefined functions for it.
To understand the purpose, I am trying to send a file through a socket, if N bytes are sent successfully, I want to delete those bytes from the file. At the end, the file will be empty.
Any other way to do thi... | stackexchange/codereview |
I have a form where users add dates to a list. I can easily validate a single date, but how do is use sfValidateDate to validate an array/collection of dates?
sfValidateDate returns an error for obvious reasons.
I've experimented with this:
$this->setValidator('dates_list', new sfValidatorSchemaForEach(new sfValidatorD... | stackexchange/codereview |
I'm making an app that has a .mdb database file whose Build Action is Content and Copy to Output Directory is set to Always, but when I published it and tried to run it, the app couldn't find the database file. I checked where my app was installed and I found the .exe file in a folder called "sdre..tion_cbcedce3d840a9c... | stackexchange/codereview |
I'm completely new to rails.
While learning I came across the use of the flash variable for maintaining data for the next postback when redirecting.
My questions are
when should this be used.
how does rails maintain it for me, does it make a round trip to the user and back or is it maintained server side.
if it is ma... | stackexchange/codereview |
I got license for Visual Studio 2010 professional 2010 - Russian
So can I use English version ?
| stackexchange/codereview |
I am trying to load some addins to the NUnit Gui Runner, however it doesn't identify any addin at all even that they are all inside the addins directory.
I even compiled their examples and tried to load them but still nothing.
Am I missing something here?
| stackexchange/codereview |
So, this works:
.h
public slots:
void addMenu(QString passedName);
signals:
void clicked(const QString &text);
.cpp
signalMapper = new QSignalMapper(this);
signalMapper->setMapping(button, QString("passed_value"));
connect(button, SIGNAL(clicked()), signalMapper, SLOT(map()));
connect(signalMapper, SIGNAL(mapped(QStr... | stackexchange/codereview |
I noticed that in Java that when you pass an array into a function, it modifies the original array. I am trying to implement the backtracking method that uses recursion and I want each call to it to have its own array copying the contents of the array passed in.
For example, say I have an original array and I go throug... | stackexchange/codereview |
I have a dictionary (it's mutable if that makes a difference) which contains nsarrays, which in turn contain (subclass of NSObject)s
I have implemented initWithCoder and encodeWithCoder like this:
-(id)initWithCoder:(NSCoder *)aDecoder {
self = [super init];
self.Title = [aDecoder decodeObjectForKey:@"Title"];
... | stackexchange/codereview |
I'm having a very weird problem.I'm working on an assignment that involves building a simulation of figures moving on a 2d "chessboard". Each figure is represented by an object implementing the Runnable interface.
The problem is that when I attempt to run each object in a different thread like so:
ArrayList< Thread... | stackexchange/codereview |
I have the following code which copies worksheets to a new workbook. This currently copies the sheets with all the formulae etc. After this I loop though each worksheet in the resultant workbook to copy and paste values. Is there a way to create the worksheets with the values only the first time round?
Sheets(Array("EQ... | stackexchange/codereview |
Why this onclick event doesn't fire in Firefox, while it fires in IE ? What is the equivalent working construction for Firefox ?
<a href="" onclick="invoke(this); return false;">link</a>
Regards
| stackexchange/codereview |
I have a problem understanding how to build view models based on the following models
(I simplified the models to be clearer)
public class Hit
{
public bool On { get; set;}
public Track Track { get; set; }
}
public class Track
{
public ObservableCollection<Hit> Hits { get; set; }
public LinearGradientBrush ... | stackexchange/codereview |
Just for curiosity/convenience: C# provides two cool conditional expression features I know of:
string trimmed = (input == null) ? null : input.Trim();
and
string trimmed = (input ?? "").Trim();
I miss another such expression for a situation I face very often:
If the input reference is null, then the output should be... | stackexchange/codereview |
I want to learn more about a MVVM framework but I don't have a lot of time to devote. Does someone have experience with Caliburn (or micro Caliburn) and MVVM Light Toolkit and can give some reasons to start with one framework over the other? This would mainly be for Silverlight development.
Or perhaps is there anothe... | stackexchange/codereview |
My email address on www.email.it has been disabled because I haven't used it for a long time.
Now, when I go on a FB, I get this message:
"Our systems have detected that xxxxxxx@email.it is no longer a valid email. "
So my question is:
How these systems can detect if an email is valid ?
| stackexchange/codereview |
I have the following simple entity:
package net.plus.msodb.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(schema="msodb", name="mso")
public class Mso ... | stackexchange/codereview |
I am looking for just the tinyest bit of help deciphering the following code ( it was an example taken from - http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg17197.html ). I assume it is ok to repost here based on the contents of that post. Please don't be put off by the length of the code I am including, ... | stackexchange/codereview |
I'm looking to see how I can use the IIS PowerShell Cmdlet New-WebAppPool to specify the version of the .NET Framework to use. Currently, it defaults to v2.0, however I am using MVC, and this will not work because that's a v4.0 feature. We really want each site to have its own Application Pool, and it seems we must c... | stackexchange/codereview |
I did a simple application in the blackberry OS 5.0.0
Is my app has support for all devices? If not, suggest better way to make my app support for all versions.
| stackexchange/codereview |
I use Rails 3 and paperclip. My logic allows user to upload an image. That works fine unless the user selects a file that is not an image.
If the user picks a text file, for instance, validation passes but ends up with this error:
5 errors prohibited the profile update:
Profile pic content type is not one of image/jp... | stackexchange/codereview |
I'm sorry if this may sound like a really dumb question but I'm just beginning the grasp the concept of object oriented programming and I am kind of confused about the singleton pattern for php.
How would I incorporate a query along with saving the results from the rows fetched saved as variables into the singleton pat... | stackexchange/codereview |
i am very new to Programming and i am just reading the documents.
For the little project i have read some Perl books and a PHP-Cookbook.
But i have choosen some recipes and believe it or not: it looks pretty awful on the screen. I guess that i now need some assistance -
With my little knowledge is is hard to do the ... | stackexchange/codereview |
I've got a website that I wrote in python using the CGI. This was great up until very recently, when the ability to scale became important.
I decided, because it was very simple, to use mod_python. Most of the functionality of my site is stored in a python module which I call to render the various pages. One of the ... | stackexchange/codereview |
I have a trivial legacy C win32 GUI app that makes calls to the win32 GUI API. I have reqritten the C demo app as a Java applet, and I now want to now change the graphics portion to its Java equivalent.
I have gone through the graphics functions and this is the list of win32 API functions being used:
CreateEllipticRgn... | stackexchange/codereview |
I work in a team on a Visual C++ project. Following advice we got we're tracking the project's .sln file with our SCM. It turns out that each time I pull from my partner (yes, we use git) and open the solution in VS, the .sln file is updated. The part being updated is the long id that appears several times (in this cas... | stackexchange/codereview |
A short while back I asked a question here about how I could calculate when a heading was longer than one line within a given container, and subsequently wrap each of these lines in a <span>:
Use Javascript/jQuery to determine where a heading breaks to the next line?
I chose an answer which worked great for me, at leas... | stackexchange/codereview |
you know any reason why a function won't accept any number higher than 4?
This is all I'm doing. Works for 0-4, but once I hit 5 or higher, I get "A term is undefined and has no properties." But if I just put the number 5 in there, it all works just fine, so it's not an issue with the xml.. for some reason the function... | stackexchange/codereview |
How can i quickly find out the list of various tables that are having foreign key constraint to the primary key of a particular table.
Kindly guide...
| stackexchange/codereview |
I found niceedit text editor as simple as i wanted. It includes the file upload plugin. It uploads the file to imageshack. I would like to change its upload path. but how don't know. Where can i set the path?
| stackexchange/codereview |
I want to find country, city, latitude and longitude from IP address using php. I am using this url and it is returning data in xml format.
http://www.ipgp.net/api/xml/122.163.6.58
The data is coming like this:
<IpLookup>
<Ip>122.163.6.58</Ip>
<Code>IN</Code>
<Country>India</Country>
<Flag>http://www.ip... | stackexchange/codereview |
How do I use SQL to flip the value of a bit for rows meeting certain criteria?
For example, my SQL is
SELECT * from Attributes WHERE (IsValid = 'TRUE')
This query gives me all the records where I want to flip the IsValid bit. Now that I have the rows, I want to flip the bit to FALSE. How do I do this?
| stackexchange/codereview |
I am not sure on how to search this on google. Maybe someone could explain instead. How does a website, like stack overflow, have urls "http://stackoverflow.com/questions/..somenumber../the-title-of-the-question-or-something-like-that
and its able to bring up that webpage with that question. Could someone explain t... | stackexchange/codereview |
I googleed this question a lot and the answers are inconsistent and none helped. So I thought I could get a little more help here.
I need to code a little app in Java for my next class which gets data from a MS Access database(mdb) using ODBC. My OS is Windows 7 Ultimate 64bits. I know there is a odbcad32 in SysWOW64 f... | stackexchange/codereview |
What's diff in term of functionality are there between addins and Visual Studio Packages ?
| stackexchange/codereview |
I am trying to import into Eclipse a web project that uses Spring, Hibernate, and JSPs. This web application was developed also in Eclipse, and for some reason, when I try to import into my workspace, I am able to import it as a standard project, which prevents me from running it on Tomcat.
I need to import this proje... | stackexchange/codereview |
My iis service is calling a console app. This console app references a DLL.
When I check the error output I get this :
Could not load file or assembly 'file:///c:\windows\system32\inetsrv\MyDll.dll'
What is the correct way to call the executable:
So far I've tried this:
using (var p = new System.Diagnostics.Process()... | stackexchange/codereview |
Sorry for my question. Actually I didnt knew about the JSON, I want to parse the XML file by some new technique. Can anyone help?
| stackexchange/codereview |
my program breaks and says this
Unhandled exception at 0x00f85069 in Monopoly.exe: 0xC0000005: Access violation writing location 0x0000000c.
i made a win32 wrapper. i have two WndProc one is static and the other one not. the static WndProc calls the nonstatic WndProc. when i try to get messages it works fine but when... | stackexchange/codereview |
Good morning! Recently I bought an Arduino board to make sort of "light control" in my room. Here is the code of the firmware I wrote:
int control = 0;
int pin = 0;
void setup()
{
Serial.begin(9600);
for(pin = 0; pin <= 13; pin++) pinMode(pin, OUTPUT);
}
void loop()
{
control = Serial.read();
if (control > 0 ... | stackexchange/codereview |
a student class for example
i had them in an array
how can i put the array into the linked list..??
| stackexchange/codereview |
I tried to add a tooltip for this <a href="#">$0.05</a> tag which is append through jQuery. Here is the full code:
$("#btnadd").click(function() {
// Made it a local variable by using "var"
var addkey = document.getElementById("txtaddkey").value;
if(addkey!=""){
$('<... | stackexchange/codereview |
my Ant database schema export task is:
<!--export a DB schema-->
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="project.classpath"/>
<target name="schemaexport"
depends="compile, copymetafiles"
description="Exports a generated schema to ... | stackexchange/codereview |
I have a many DB integration tests that are using the following annotations for transactional rollback:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:ApplicationContext-DAOs.xml"})
@Transactional
The tests pass, but when I run them Spring deems it necessary to log at INFO level to... | stackexchange/codereview |
I am using a 3rd party library that dynamically creates instances of Java classes and populates those instances with the help of Introspector.getBeanInfo. Certain requests may result in 5 or 6 successive calls to Introspector.getBeanInfo. I have found that when the application is idle for about an hour or so the firs... | stackexchange/codereview |
Once you create a trigger with the create trigger code, how do you get it to show up in the "Database Triggers" folder? I refresh and nothing shows. I know it's there because I can see two database counts when I update the table.
| stackexchange/codereview |
I have a nested list:
{{9, 8, 7}, {8, 7, 6}, {7, 6, 5}, {6, 5, 4}, {5, 4, 3}, {4, 3, 2}, {3, 2, 1}}
I need to sort the lists within the list to create:
{{7, 8, 9}, {6, 7, 8}, {5, 6, 7}, {4, 5, 6}, {3, 4, 5}, {2, 3, 4}, (1, 2, 3}}
How do I do this?
| stackexchange/codereview |
I was inspired by Multiple Backgrounds with single element and try to do that...but failed.
This is my sample code in jsfiddle.
Image(blue bird) in the :before element never goes down to main(white bird) element. Here goes what I tried with :before.
content:url() or background:url()
z-index: -1 or arbitrary smaller ... | stackexchange/codereview |
What Textmate theme do you use and why? Just curious as to the best textmate themes out there and which ones you guys prefer?
Thankyou in advance ;-)
| stackexchange/codereview |
All other browsers are working well except for IE6. I have textareas in a JS form that aren't viewing correctly in IE6. I'm using Jquery framework for javascript. I wish to have a horizontal line at the bottom of each textarea to make it look like the user is completing the sentence. In IE6 this line isn't visible unti... | stackexchange/codereview |
I'm using TLF to lay out a dictionary entry. It's working fairly well, but I need finer grained control of layout than I'm able to achieve through setting style properties on FlowElements, primarily for horizontal spacing and setting padding on SpanElements independently of their parents.
The solution that seems most p... | stackexchange/codereview |
I'm trying to use Android SDK's SQLiteQueryBuilder to join two tables, let's call them t1 and t2, and query that table based on an attribute from each table, say t1.att1 and t2.att2, equaling a certain value. I'm a little confused on the syntax when it comes to the selection. Help is appreciated. Thanks!
| stackexchange/codereview |
I am trying to create a bootable partition in Windows. I need to be able to do this from Windows XP through Windows 7. Ideally I would be able to do it both for FAT32 and NTFS depending on if the device is smaller than 32 GB (FAT32) or larger (NTFS).
On Vista and 7 I have a script that can do this using diskpart.exe,... | stackexchange/codereview |
How can I launch a facebook app from my app in android?
| stackexchange/codereview |
I've the following code to interactively parse System.in for arrow keypresses:
Scanner sc = new Scanner(System.in);
String str;
if ((str = sc.findWithinHorizon("\\G\\033\\[C", 0)) != null)
System.out.println("RIGHT ARROW");
else if ((str = sc.findWithinHorizon("\\G\\033\\[D", 0)) != null)
System.out.println("LEFT A... | stackexchange/codereview |
I have the string str
char *str = "100.10b.100.100";
I want to count the occurrences of '.' in str, preferably a one-liner. (If possible no loops)
My approach would be the standard strchr:
int i = 0;
char *pch=strchr(str,'.');
while (pch!=NULL) {
i++;
pch=strchr(pch+1,'.');
}
| stackexchange/codereview |
I want to show a particular div with particular id on the page. I am able to show the div with class information but when I try to access it by giving div id then it is not working, this is how am trying to access it from javascript.
if((document.getElementById("apMain.stageId").value) == "11"){
doShow();
... | stackexchange/codereview |
i don't understand Adobe's documentation for the SelectableList class:
The SelectableList is the base class
for all list-based components--for
example, the List, TileList, DataGrid,
and ComboBox components.
SelectableList isn't a base class for ComboBox:
SelectableList > BaseScrollPane > UIComponent > Sprite > ... | stackexchange/codereview |
Searching around for some test&set and test&test&set LOCK implementations on ASMx86 (x86 architecture) Assembly to use in my C codes. I don't want implementations in C, but plain assembly.
Please point me to some useful ones.
Thanks in advance!
| stackexchange/codereview |
I am trying to run Cucumber tests against a database that is already populated with data. It's basically a copy of our production database.
For some reason I have some tests failing which seemingly is coming from the fact that it can't find the data. Any idea on how to make this work and why it wouldn't like "pre-seede... | stackexchange/codereview |
I would like to initialize a short to a hexadecimal value, but my compiler gives me truncation warnings. Clearly it thinks I am trying to set the short to a positive value.
short my_value = 0xF00D; // Compiler sees "my_value = 61453"
How would you avoid this warning? I could just use a negative value,
short my_value =... | stackexchange/codereview |
What is the best (shortest) way to read the next non-blank (not space/newline/tab) character from a file in a C program?
I realize I could probably use gets followed by strtok, but it seems like there has to be something more concise.
If so, let me know; if not, let me know that too.
Thanks.
| stackexchange/codereview |
I'm writing a ruby app that stores ancestry type data. I.e. Family tree.
For the rest of the application I'm using MongoDB for storage as it lends itself to a hierarchical structure, however ancestry data doesn't quite fit that model, even though it is hierarchical in a sense. I'm curious if anyone has a suggestion on ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.