instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am going to be generating images once every minute or so from a low resolution camera. I would like to take runs of 10 to 20 images and compress them for transmission over a very bandwidth limited channel. I have looked at using x264 but it feels like over kill.
Given that my images are 320x240, with high level of r... | stackexchange/codereview |
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
This error is seen only when running application in iPhone/iPad device and not on simulator.
Any help?Thanks in advance..
| stackexchange/codereview |
I want to calculate the size in bytes of the http response headers and data in PHP.
Any help would be appreciated
| stackexchange/codereview |
I want to receive the Android broadcast messages. Is there a list of all intents?
| stackexchange/codereview |
Hi
I created the new application in Twitter & enabled xOuth support for the same.
Previously the application Default Access type was "read only". U sing the consumer key & secret I made my iphone application & it is now on app store.
Now i want to change Default Access type to "read-write" mode, as read only applicati... | stackexchange/codereview |
Ok so im having a bit of an issue here.
basically Im reading shared memory but thats not the problem.
I have a change.c function that lets me change a struct studentdata shared memory if I enter their "ID" number.
problem is, it's showing it's not matching, EVEN THO IT IS.
#include <stdio.h>
#include <string.h>
#includ... | stackexchange/codereview |
How can i remove an ImageView added on a dynamically created UIView, so that i can add another ImageView on my UIView.
| stackexchange/codereview |
I am writing a application and it should be protected with a password. Instead of building a new one, Is it possible to use the Android's Pattern lock screen from application with different patterns?
| stackexchange/codereview |
I've just starting using JAutodoc which is really rather nice. I'm now customizing the output and was wondering if its possible to customize the type comment based on the name of the type. Essentially, I'm looking to have one comment for JUnit test classess (whose class names all begin "Test...") and another type com... | stackexchange/codereview |
I have the following code that I use in a Query to update a table called ListClientCasePresentingIncidents which uses a function called fnSplit to split a comma seperated nvarchar named @CasePresentingIncidents.
IF ( @CasePresentingIncidents <> '' )
INSERT INTO ListClientCasePresentingIncidents
( P... | stackexchange/codereview |
Lets say I have three Activities in my App.
1) Signup Activity
2) AccountActivate Activity
3) Main Activity
Order 1 -> 2 -> 3 (User Signs Up -> if Sign up is successful -> Enters PIN and activates account -> if activation successful -> lands in Main Activity
Now here is the problem.
Once I am in Main and the activatio... | stackexchange/codereview |
I'm using this code with jquery
$(".tab").css({'background-color': '#f3f6ed', 'border': '4px solid rgba(0,0,0,0.1)', 'border-bottom': 'none'});
It's to change the style for a tab when I click on it. It works in browsers expect for explorer (stupid microsoft..) I get "invalid argument"
Not sure how I can fix this.
| stackexchange/codereview |
I am rendering a Tree using Jason array that i get from a jsp page. So the tree has root node and 3 nodes and each node has more than 5 children and some of the children has same id and same text. It renders properly and no issues in display.
I am trying to make the user select child nodes of only one type (one of 3 no... | stackexchange/codereview |
I try to rewrite my Application using the MVVM pattern.
I have a window to show related documents for different objects with static methods like this:
public partial class ShowRelatedDocuments : Window
{
private ShowRelatedDocuments()
{
InitializeComponent();
}
public static void Show... | stackexchange/codereview |
I would like to insert comments into my xml document with a Groovy MarkupBuilder. How is it possible?
| stackexchange/codereview |
I have included the proper
Header Files ,
Header Gard
but i cannot instantiate a specific class
Getting Error
error C2065: 'ClassName' : undeclared identifier
Sample Code
Class A{
//instantiate class B
}
Class B {
//need to instantiate Class A
}
| stackexchange/codereview |
I have an iPad app that works both on and offline but when I am offline there are web service calls that will need to be made once online availability is an option again.
Example:
A new client is added to the app, this needs to be sent to the web service but since we are offline we dont want to slow the user down so ... | stackexchange/codereview |
So basically i've never worked with CSV files before, but im making a program thats going to be calculating and outputting ALOT of data to files (8 separate files)
Basically it's going to do a formula. then output it as something like: (| means seperate column)
int | int | int | float | string | int | int | int | float... | stackexchange/codereview |
so I followed the tutorial at
http://icodeblog.com/2008/08/08/iphone-programming-tutorial-populating-uitableview-with-an-nsarray/
It compiles and run successfully but it only shows Fruits at the top and no items.
Same thing happened when I followed another tutorial. Does anyone know how to fix this or what the proble... | stackexchange/codereview |
Before I re-invent the wheel (poorly), I'd like to know if there is a some existing Java code for wrapping text lines to a given maximum width. Ideally it would:
respect existing linebreaks
break up lines that exceed a maximum length on word boundaries
break up words whose length exceeds the maximum line width by inse... | stackexchange/codereview |
I'm getting a 1064 error when trying to call a stored function from within a stored procedure. It only happens on the line where I try to do this: SET account_id = get_account_id(user);. What is the problem and how can I fix it?
Account ID Stored Functions:
CREATE DEFINER=`aaron`@`%` FUNCTION `get_account_id`(user VA... | stackexchange/codereview |
I have a composite control that has a couple of private fields that reference values in the cache and these private fields are called during the constructor method. Since a string key is used to identify the value in the cache, I must have a way of storing that string key in such a way that it is available at the time... | stackexchange/codereview |
I have got mail message with following subject in my Gmail accout:
"400, значение, значение"
Here is the code I use to grab mail:
imap = Net::IMAP.new('imap.gmail.com', 993, true, nil, false)
imap.login(LOGIN, PASSWORD)
imap.select("INBOX")
messages = imap.search(['ALL']).map do |message_id|
msg =imap.fetch(message_... | stackexchange/codereview |
Actually I have done a regexp for this, in order to avoid fake names (at least not with some weird symbols). I'm doing this in PHP. The regexp is:
/ [ \ ^ < , \ " @ \ / \ { \ } \ ( \ ) \ * \ $ % \ ? = > : \ | ; # ] + /
But it's failing and I don't know why (just don't detect the symbols). All I want is, if some of thos... | stackexchange/codereview |
Suppose all forms in your application has this structure:
<div id="result_messages"></div>
<form action="/action">
<!-- all the form -->
</form>
A submit button for this form looks like this:
<input type="button" onclick="$.post( '/action', $(form).serialize(), function (data) {
$('#result_messages').html( data ); ... | stackexchange/codereview |
Imagine I have 3 rows in a sqlite table.
While reading these 3 rows I also want to insert new rows depending on the values in these 3 rows.
I do a select on these rows and use sqlite3_step function to get each row.
The problem is that sqlite3_step loops through more than 3 times, I think because it also sees the newly ... | stackexchange/codereview |
So I'm going to switch from Authlogic to Devise. Since I only have a couple of test accounts, I thought it would be best to simply remove all the Authlogic stuff and my users table, then setup Devise. I'm using Rails 3. Apart from removing authlogic from my gemfile, removing the user and user_session models/tables, is ... | stackexchange/codereview |
Imagine I've got 100 numeric matrixes with 5 columns each.
I keep the names of that matrixes in a vector or list:
Mat <- c("GON1EU", "GON2EU", "GON3EU", "NEW4", ....)
I also have a vector of coefficients "coef",
coef <- c(1, 2, 2, 1, ...)
And I want to calculate a resulting vector in this way:
coef[1]*GON1EU[,1]+coef... | stackexchange/codereview |
I'm working on windows XP with Visual C++ 2008 Express Eition.
Im trying to include:
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
and getting alot of errors like:
1>c:\program files\microsoft sdks\windows\v6.0a\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\pro... | stackexchange/codereview |
I am using the XMLParser class, which contains an array with XMLElement objects. The XMLElement is being allocated using the autorelease operation. However, for some reason I'm getting a memory leak (using instruments) on this line:
self.currentElement = [[[XMLElement alloc] init] autorelease];
I'm also releasing the ... | stackexchange/codereview |
This question came up on the etherpad-open-source-discuss mailing list and I thought it would be useful to have it here.
| stackexchange/codereview |
Here's the problem: we have a family (approx. 8) of websites, each hosted on a different subdomain of a single domain common to every member of the family. E.g.,
ecommerce.my_domain.com
forums.my_domain.com
signup.my_domain.com
For various reasons, each subdomain is administered separately from the others--i.e., dif... | stackexchange/codereview |
I have one dataset in which i have say 10 rows..
I want to skip data of first two column means whatever data is there in that first 2 column
sholud not present in that dataset how to do this..?
| stackexchange/codereview |
how to install xmpp python lib in ubuntu?
i downloaded this lib file
http://archive.ubuntu.com/ubuntu/pool/main/p/python-xmpp/python-xmpp_0.2-rc3.orig.tar.gz
when i say make install its giving me error
ubuntu@ubuntu:/media/DATA/ubuntu/xmpppy-0.2-rc3$ make install
Add here commands to install the package into debian/py... | stackexchange/codereview |
I know this for normal integers, but is there for such a thing as indices?
Random dice = new Random();
int n = dice.nextInt(6);
System.out.println(n);
| stackexchange/codereview |
I'm writing a query where I group a selection of rows to find the MIN value for one of the columns.
I'd also like to return the other column values associated with the MIN row returned.
e.g
ID QTY PRODUCT TYPE
--------------------
1 2 Orange Fruit
2 4 Banana Fruit
3 3 Apple Fruit
If I GROUP this table by ... | stackexchange/codereview |
How can I make a <h3> fade out or just hide itself on my page after a few seconds once the page has loaded?
| stackexchange/codereview |
I'm looking for a rather arbitrary answer, so this might more be a discussion. I'm wondering what the best practise for commenting my C# code in visual studio is. Right now I'm using the triple /// to generate the xml and use sand castle to build a chm or html file. But my problem is that I use code comments for two re... | stackexchange/codereview |
I have a table cell being displayed that shows a users image, name and some text. The user's image is 50x50, but I want a border around it so I set the view to center the image and set the frame to 52x52 and then set the background color of that view to my border color. That shows a 1 pixel border around the image.
I... | stackexchange/codereview |
does anybody knows why I am not reaching this alert??
<h:selectOneMenu id="lang" binding="#{mybind}" onSelect="javascript:alert('Reacheable??')" >
in documentation says that it is available.
Thanks in advance
| stackexchange/codereview |
I've recently created a new class for my iPhone application which will hold information read from a text file containing the street address and GPS points of points of interest.
The issue though is that whenever I add code to initialize the class my application loads up and the instantly quits with no errors in the con... | stackexchange/codereview |
Do all Mac OS X versions (above 10.4) have python preinstalled?
| stackexchange/codereview |
When querying a table in sql server, im trying to fetch only the current page of records. However I need the total number of records that would be returned for the particular query to calculate the number of pages. How to do this efficiently without writing another query to count the records.
WITH allentities
... | stackexchange/codereview |
I am trying to figure out the best way to determine if a given Date is 10 days or less from the end of the month. I am basically building functionality that will display a message if the month is almost over. Thanks!
| stackexchange/codereview |
I have a custom listview row that contains a number of textView components. Instead of the "standard" single text item, I have created a item where each listview row contains several bits of information. For this example, I have a record id, a name, and a description for each row in the listview.
I have my listview p... | stackexchange/codereview |
I'm using html5 websockets, dev.w3.org/html5/websockets/, and php socket functions, php.net/manual/en/ref.sockets.php. My problem is that messages sent from the client using websockets to the server are being truncated to a maximum of 1449 bytes. When I set net.ipv4.tcp_timestamps to 0, a couple extra bytes are receive... | stackexchange/codereview |
I want to transmit data via POST to a remote script. A set of data is generated with Javascript and I would to know what's the best practice for gathering data before sending it. I tried to use:
<ul>
<li>Item added at runtime</li>
</ul>
I included all of these in a form, but I can't access the information on the serve... | stackexchange/codereview |
I'm implementing value types which represents a distance (or length).
There's an enum that represents the different units of measure, eg:
public enum DistanceUnit
{
Millimeter,
Centimeter,
Meter,
Kilometer,
Inch,
Foot,
Yard,
Mile
};
These measurements fall into one of two systems - either met... | stackexchange/codereview |
I have a simulated enum as follows:
public class Sport {
public static const BASEBALL:Sport = new MyEnum("Baseball", "Baseball ...");
public static const FOOTBALL:Sport = new MyEnum("Football", "Football ...");
public var label:String;
public var description:String;
public function Sport(label:Str... | stackexchange/codereview |
say I want to time a memory fetching from device global memory
cudaMemcpy(...cudaMemcpyHostToDevice);
cudaThreadSynchronize();
time1 ...
kernel_call();
cudaThreadSynchronize();
time2 ...
cudaMemcpy(...cudaMemcpyDeviceToHost);
cudaThreadSynchronize();
time3 ...
I don't understand why my time3 and time2 always give sa... | stackexchange/codereview |
In my Rails application, user may have custom page templates (not for the application) which are stored in public/user_templates/user1/
the view .erb file is also stored there in the user template folder. There is an images folder inside every template folder. How can I use the relative paths of the images in the .erb ... | stackexchange/codereview |
<input type="submit" value="Share" />
In Chrome/Safari:
http://img514.imageshack.us/img514/619/btnwebkit.png
In FF:
http://img220.imageshack.us/img220/347/btnff.png
Can someone please tell me why they don't look the same?
Even, when I set the font-size, font-family, padding and margin, the button in FF will always l... | stackexchange/codereview |
Does anyone have a recommended pseudo-algorithm for, given a string containing an address:
Break apart the address apart into a Street variable, a City variable, a State variable, and a Zip variable
The address string may be formatted in a number of different ways. For example, it may be comma separated or it may be se... | stackexchange/codereview |
How do I specify Xml or just in-memory storge for Entity Framework models? The connection string requires a provider (usually a SQL provider string). But it won't let me omit the provider.
I realize I could completely throw away the designer generated objects and go pure POCO, but then I'd have to implement my own seri... | stackexchange/codereview |
Good day...
Still a beginner question. I mostly asking to save myself hours of trial and error... I had those already and there was no result.
What I wanna do... I have a controller that has an action, of course. I want to send this action two IDs, it should make some database entry of those. No problem, the action wor... | stackexchange/codereview |
Scenario: In an Access project a main form has to be positioned and rearranged depending on the size of the Access-Application window. This should be done using VBA.
As far as I know there is no way in Microsoft Access VBA to capture the Restore/Maximize-Event of the Access-Application window (I refer to the Access Win... | stackexchange/codereview |
I have a website page that uses tables for layout and I am trying to convert it to CSS (never used before)
The navigation is 6 forms with different images placed besides. I know I can give each of these an id and position using css but there must be a less clunky way?
I was wondering If I can create a class which spec... | stackexchange/codereview |
I have declared a local variable named cont in a function named validate.
I am calling a function process from inside validate.
I am sending the string 'cont' as argument to validate function.
In the process function using the string 'cont' i want to access the javascript local variable's value like window['cont']. Bu... | stackexchange/codereview |
Are there any scientific studies (and conclusions) about the impact of mastering a new programming language over previously learned programming languages? I'm particularly interested if mastering various languages can decrease average productivity.
| stackexchange/codereview |
I would like to use php to pass a keyword phrase to a function and have the function parse a block of text and return the keyword density of the input phrase as a percentage of the total word count of the text block.
| stackexchange/codereview |
How can I add SOAP Headers to Spring Jax-WS Client?
Specifically, I have a Jaxb object I would like to add to the header but xml examples would be appreciated.
I am using Spring's JaxWsPortProxyFactoryBean described here. Also, I am generating my client as described here which is working less the headers I need to add... | stackexchange/codereview |
We are developing a webapp that needs to send out emails written in Java/Groovy. Currently, we are persisting each email to a database before we call the Java Mail APIs to send the mail to our SMTP server.
I want to send out email asynchronously. I want to persist the email and then have another process pick up the e... | stackexchange/codereview |
I'm receiving this error on my jsp file - 'Can not find the tag library descriptor for "/struts-tags"'
Strange thing is my app still seems to work.
I'm following the tutorials at - http://struts.apache.org/2.x/docs/using-struts-2-tags.html
Here is the code.
<%@ page language="java" contentType="text/html; charset=ISO-8... | stackexchange/codereview |
I am trying to be familiar with the complexity evaluation of algorithms. In general I think that is a good/elegant practice, but in the specific I need it to express time complexity of my C++ code.
I have a small doubt. Suppose I have an algorithm that just reads data from the beginning of a std::vector until the end... | stackexchange/codereview |
I want to add a QWidget based class(composed by buttons and labels an so on...) to my QGraphicScene scene in a special position and respecting the graphic style of my scene.?
I am using QT 4.7.
| stackexchange/codereview |
I am developing an application in ASP.NET 3.5 and IIS 7. I have written an HTTP Module to perform URL Rewrite, for instance, I want to rewrite a username to an Account ID "~/Profiles/profile.aspx?AccountID=" + account.AccountID.ToString();
See below:
using System;
using System.Collections.Generic;
using System.Data;
u... | stackexchange/codereview |
Here's my current code:
print(list[0], list[1], list[2], list[3], list[4], sep = '\t')
I'd like to write it better. But
print('\t'.join(list))
won't work because list elements may numbers, other lists, etc., so join would complain.
| stackexchange/codereview |
1- Which one is better to use for streaming video ? TCP or UDP socket and why?
2- While streaming live, audio and video are coming from the server separately, so how can i make sure that the video i display and the audio I play on the device are in sync?
| stackexchange/codereview |
I've got wads of autogenerated HTML doing stupid things like this:
<p>Hey it's <em>italic</em><em>italic</em>!</p>
And I'd like to mash that down to:
<p>Hey it's <em>italicitalic</em>!</p>
My first attempt was along these lines...
<xsl:template match="em/preceding::em">
<xsl:value-of select="$OPEN_EM"/>
<xs... | stackexchange/codereview |
I am running a dynamically built SQL statement and putting the results in a datatable. I then need to display these results as a table in a partial view. I would normally create a List<> object and strongly type it to the page, but in this case I do not know what the final sql will be, since it is built by the user at ... | stackexchange/codereview |
We have about 7-8 tables in our Android application each having about 8 columns on an average. Both read and write operations are performed on the database and I am experimenting and trying to find ways to enhance the performance of the DataAccess layer. So, far I have tried the following:
Use positional arguments i... | stackexchange/codereview |
We are developing an Eclipse plugin that is split into several Eclipse Projects. We want to export some of the classes that are defined in these external projects (via Export-Package in MANIFEST.MF). The problem is that Eclipse gives an error "Package xxx does not exist in this plug-in".
To give an example, let's assu... | stackexchange/codereview |
I try to add an Apache login and pass authentication.
It works ... well, not as intended.
I have 2 server names, one ssh and a "normal" one.
This is how I've done it so far :
<Directory />
AllowOverride AuthConfig
order deny,allow
allow from XX.X.X.XXX 127.0.0.1
deny from all
AuthName "Login/Pass"
AuthType Basic
AuthUs... | stackexchange/codereview |
I really want to build a web application; something simple, maybe a database of Pokémon cards for instance?
I've heard excellent things about Django. Where would be the best place to start?
| stackexchange/codereview |
i need to know best practice for avoid connection timeout when using LINQ to SQL in .net applications specially when returning IQueryable<T>from data access tiers or layers.
I get "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled conn... | stackexchange/codereview |
I followed this link to create custom ribbon tab/group/controls in a custom web part.
The custom ribbon tab/group/control renders when web part is displayed on the page, however, all the buttons are disabled.
What I did:
During OnLoad event, initialized List of IRibbonCommand with all my button command id; initialized... | stackexchange/codereview |
I want to have a class that defines my parameter data for a stored procedure. It's going to be a very simple object:
public class MyQueryData : SprocObjectBase
{
public int Value1 { get; set; }
public string Value2 { get; set; }
public bool Value3 { get; set; }
...
}
It will inherit from a base class with sh... | stackexchange/codereview |
Why do some folds in vim are saved some not while some are being saved? I have the following in my .vimrc:
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
Example:
I make these 2 folds in a file:
+-- 2 lines: if(!bRet)---------------------------...
return bRet;
}
+----------- 5 line... | stackexchange/codereview |
Below is a static example of me triggering the scroll event.
It will alert the 'Dynamic Selector', the alert result in this case is:
#WordPanel #AZ-List div div div.ui-jqgrid-bdiv
(That's right its the same as the static select ive typed in the example below)
$("#WordPanel #AZ-List div div div.ui-jqgrid-bdiv").scroll(... | stackexchange/codereview |
i have a view model with a property like this one :
[RegularExpression(@"^d\+$", ErrorMessageResourceType = typeof(Resources.Validation), ErrorMessageResourceName = "NumberValidationMsg" )]
public int? Number {get; set;}
NumberValidationMsg resource is set to "Only numbers allowed !".
but when I try to enter something... | stackexchange/codereview |
I have a code:
Box box_general = Box.createHorizontalBox();
Box box_panel1 = Box.createVerticalBox();
Box box_panel2 = Box.createVerticalBox();
JPanel jpanel_1 = new JPanel();
jpanel_1.setPreferredSize(new Dimension(50, 152));
jpanel_1.setOpaque(true);
jpanel_1.setBorder(BorderFactory.crea... | stackexchange/codereview |
Is it possible for javascript or html to create a drop zone for images to be dragged into by a user? I suppose it is an image placeholder that will accept images dragged into it while the page is live?
| stackexchange/codereview |
I'm working on an app for iPhone, and the data model looks a little crazy - 16 entity types. Could you offer any advice for masking complexity like this from the user? I know all these need to be there, but I'm trying to make it look simple, cause otherwise people will not understand.
The Tricks I have figured out so f... | stackexchange/codereview |
Is there a technique for adding a text footer the bottom of each page when it is printed? For example "Copyright My Company 2010" - I know there is probably a way to do this with a background image using CSS, but I would really like to use text for this portion so the client can edit it. Any ideas?
| stackexchange/codereview |
The title of this question is a very rough version of the query that I'd like to execute.
I've deleted project tasks without a user id, and I now want to delete tasks related to the projects that I've just deleted. Of course I probably should have just done it all with one query ... will take any suggestions for that... | stackexchange/codereview |
when loading content via ajax requests,
If the response is:
<div id="container">
<a href="http://www.google.com">To Google</a>
<a href="http://www.yahoo.com">To Yahoo</a>
<a href="http://www.digg.com">To Digg</a>
</div>
With the jquery loaded, and after content loading, i call a function that do the follow... | stackexchange/codereview |
I would like to show / hide certain fields in my Drupal view based on whether the current user is the author of the node being viewed.
I installed the Views Custom Field module which seems to allow this, but I have no knowledge of PHP, so wondered if anyone could help me with the PHP code.
| stackexchange/codereview |
How to set tooltip at runtime in MFC Treeview ?
I am creating treeview like this :
m_pTreeview->Create(WS_CHILD | WS_VISIBLE | WS_TABSTOP |
TVS_SINGLEEXPAND,CRect(38, 82, 220 ,250), this, IDC_NDS_TREEVIEW);
Any help is appreciated..
| stackexchange/codereview |
I have been searching high and low for a solution to this problem. I fetch dynamic positions of markers and show the map positioned and zoomed baased on the City that has been selected in my application. If I then scroll or zooom the Google map and then request an update of the markers position (by fetching the xml) I ... | stackexchange/codereview |
This works fine when I run it by hand:
#!/bin/bash
eval `ssh-agent`
ssh-add
/usr/bin/scp me@server:~/file ./
exit 0
However, when the cron runs the file is never touched. I know the ssh keys are right - replace that scp with an ssh and it runs fine.
| stackexchange/codereview |
<% if(empRecNum != null && !(empRecNum.equals("")))
{
empSelected=true;
}
boolean canModify = UTIL.hasSecurity("PFTMODFY") && empSelected;
%>
<script type="text/javascript">
function add(){
alert('hello');
df('ADD');
}
</script>
On the click of add butt... | stackexchange/codereview |
I want to start a project for Android but i really like to build it using Maven. Does Google provide support for Maven or plan to support it? It would be great if anybody know at least an archetype for Maven that I can use meanwhile. Thanks in advance.
| stackexchange/codereview |
I have the following macros header file (system.h),
#define rt_metadata 8000
#define dir_metadata "db\metadata"
and resource file (system.db.metadata.rc)
#include "system.h"
SY_ALLOWDATE rt_metadata db\metadata\SY.AllowDate.xml
How do I replace the db\metadata with dir_metadata in the resource file so that it w... | stackexchange/codereview |
I'm part of a team designing the server for a client/server model naval warfare video game (University course). We have a fairly concrete (well, I think) system design, but there is one aspect that bothers me.
The basic layout of the system is:
Server [thread] (handles incoming connections)
|
Game [thread] (deals with ... | stackexchange/codereview |
Hey, I want to add custom buttom to the django admin site, and the users must be administrators, I do not expect you tell me how to do in each step, but please brief write the right approach, if you also can provide some reading URLs, that's gonna be awesome.
| stackexchange/codereview |
I'm looking for a way to replace a string in php that exactly matches with the subject.
For example I got a file named 'hello-world.txt' having three lines:
'http://www.example.com/'
'http://www.example.com/category/'
'http://www.example.com/tag/name/'
and I need to replace the 'http://www.example.com/' with 'http://w... | stackexchange/codereview |
I have to declare n = 01. But whenever I try it's getting changed to 1.
What should I try?
| stackexchange/codereview |
I've got some old code on a project I'm taking over.
One of my first tasks is to reduce the final size of the app binary.
Since the contents include a lot of text files (around 10.000 of them), my first thought was to create a database containing them all.
I'm not really used to SQLite and Core Data, so I've got basica... | stackexchange/codereview |
I have a need to use the DOS command FINDSTR to search in all our source code files mixed with other types of files such as PDF, exe, dll, etc.
I do not need to search those binary files. Is there a way to exclude binary files?
My command looks like
findstr /r /n /o /s /g:c:\projects\vsssearch\muafinddata.txt /d:c:/pro... | stackexchange/codereview |
I'm trying to use cl-pdf for some fairly basic PDF generation, but I'm getting tripped up at the examples (which is embarassing to say the least).
When I run the first example included in the package
(defun example1 (&optional (file #P"/tmp/ex1.pdf"))
(pdf:with-document ()
(pdf:with-page ()
(pdf:with-outlin... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.