instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
just came a across a situation where I needs to store heap-allocated pointers (to a class B) in an STL container. The class that owns the privately held container (class A) also creates the instances of B. Class A will be able to return a const pointers to B instances for clients of A.
Now, does it matter if these poi... | stackexchange/codereview |
Sorry for the extremely bad title. What I'm looking for is the notepad++ feature where I can highlight words on right clicking and choosing one of the 5 styles (so that all instances of that word get highlighted with that color), in some editor in linux (Red hat). I know this might be a stupid request, but I find that ... | stackexchange/codereview |
I would like to prevent loading of malicious DLLs that may be possible through access of the current working directory as described in http://msdn.microsoft.com/en-us/library/ff919712(VS.85).aspx
The solution implemented in our C++ apps was to make a WinAPI call to SetDllDirectory(""), which would effectively remove th... | stackexchange/codereview |
Is it possible to partially apply a function such as bprintf and prevent it from being restricted based on its initial use?
I'd like to do the following:
let builder = new System.Text.StringBuilder()
let append = Printf.bprintf builder
append "%i" 10
append "%s" string_value
| stackexchange/codereview |
I'm confused because this isn't done through xcode. I must find the project folder in finder and then really move files into those *.lproj folders. Is that correct? Or is there a way to see those *.lproj folders in Xcode like Groups and then just drag&drop the files in there?
| stackexchange/codereview |
I want to have a construct in a stored procedure that defines a temporary table one way in one branch of an if-else and another way in the other branch, but this won't compile b/c it says the table is already created. I am imagining something like the following:
if
begin
IF OBJECT_ID(N'tempdb..#tbl') IS NOT NULL DR... | stackexchange/codereview |
I'm using fb:comments as described here.
Comments work fine but I can't find a way to be notified when a new comment is added. Is there a way to easily find new comments (without visiting my 3000 articles each time)?
I know FB did some changes to the way notifications work but I hope they left a way to do this.
| stackexchange/codereview |
For class we have a grid and a bunch of squares on the grid that we need to detect and travel to. We start at (0,0). We scan tiny regions of the grid at a time (for reasons regarding our data structure it's mandatory), and when we detect squares that we need to travel, and then we travel. There are 32 locations on the ... | stackexchange/codereview |
Given the following sample table schema
Customer Table
CustID
1
2
3
Invoice Table
CustID InvoiceID
1 10
1 20
1 30
2 10
2 20
3 10
3 30
The objective is to select all customers who have an InvoiceID value of 10 and 20 (not OR). So, in this example customers w/ CustID=1 and 2 w... | stackexchange/codereview |
I Want to optimize the following function using SIMD (SSE2 & such):
int64_t fun(int64_t N, int size, int* p)
{
int64_t sum = 0;
for(int i=1; i<size; i++)
sum += (N/i)*p[i];
return sum;
}
This seems like an eminently vectorizable task, except that the needed instructions just aren't there ...
We can... | stackexchange/codereview |
This design problem is turning out to be a bit more "interesting" than I'd expected....
For context, I'll be implementing whatever solution I derive in Access 2007 (not much choice--customer requirement. I might be able to talk them into a different back end, but the front end has to be Access (and therefore VBA & Acce... | stackexchange/codereview |
Hello I'm currently working on a 2D platformer game.
I would like to have per-pixel collisions between my player (a Rectangle) and a freeform terrain (uses slopes, a BufferedImage).
I am a bit confused on the concept to check if any part of my rectangle
collides with the terrain.
Currently I'm trying to see if a part o... | stackexchange/codereview |
I am trying to bind the value of a ConverterParameter. Currently finding it too tricky...
Codebehind
public static readonly DependencyProperty RecognitionProperty = DependencyProperty.Register("RecognitionToEdit", typeof(Recognition), typeof(RecognitionInstancesWindow), null);
public Recognition Recognition
... | stackexchange/codereview |
I have two images overlayed and i copy pixels from bottom image to top image while ACTION_MOVE. My goal is to give erasing feeling to the user but sometimes it doesn't copy(erase) some parts and it gets worse if touch event is fast( dragging finger fastly).
This is the code i am using for copying pixels
mutable.getPix... | stackexchange/codereview |
I really like a certain Silverlight feature that I've seen in a couple of sites. I would like to know what this "concept(s)" is/are so I can do more research and implemented it on my own. If you see the attached image, I like those expandable sections, reference (1) and (2) sections. They are circled in red and the ... | stackexchange/codereview |
I want to fill a table with a list of results. But not sure how to tell the template that it's time to close current and start a new one, after 3 products was already displayed in current tr....
Would be happy if somebody could advice on it. I am running django 1.1.1
| stackexchange/codereview |
I've started reading The Pragmatic Programmer, which I am enjoying and learning heaps form but I'm having difficulty understanding the difference between tracer bullets and prototypes. Are tracer bullets like having all of the views of an application there but not yet adding the entire functionality?
Thanks
| stackexchange/codereview |
I am a senior undergrad majoring in CS. At the moment I am taking a Computer Architecture class. We need to do a project. I want to do something related to CUDA, where the performance of the computation will have a moderate increase compred to a serial implementation.
I am really interested in databases so I decided to... | stackexchange/codereview |
I have a set of questions, of which I do not have an answer to.
1) Stripping lists of string
input:
'item1, item2, \t\t\t item3, \n\n\n \t, item4, , , item5, '
output:
['item1', 'item2', 'item3', 'item4', 'item5']
Anything more efficient than doing the following?
[x.strip() for x in l.split(',') if x.strip()]
2) C... | stackexchange/codereview |
In Objective C, when using the function NSIntersectionRange with one of the arguments being zero length, does the result equal the other argument? Didn't see this when I searched so I wanted to clarify it for others.
| stackexchange/codereview |
I need to add "WITH NOLOCK" when using ActiveRecord? I know there is a way to do it nHibernate, but couldn't figure this out in ActiveRecord.
Thank you for your help.
Regards,
| stackexchange/codereview |
I have seen this problem off and on while running the Eclipse (Galileo) under Fedora 11-13, whether the target is my device or an emulator. But now with my new device, the HTC T-Mobile G2 (Android 2.2), I see it much more frequently: I successfully download the app (complete with lots of Log.d() calls), the system succ... | stackexchange/codereview |
I've got a webpart page where the user selects a company. This is the provider webpart for other webparts.
At the bottom the page my customer wants a list of documents related to the selected company. Each company got its own document library, so I need to somehow set the document library for the document list.
How ca... | stackexchange/codereview |
I am using Xampp.I am trying to access from another system in the LAN. And My Ip address 192.168.1.2.And When I am trying to connect
http://192.168.1.2/phpmyadmin
I got the phpmyadmin page.But when I am trying to connect using
mysql_connect('192.168.1.2','root','')
It throws an error
could not connect to database(1... | stackexchange/codereview |
My spring mvc application has one single ContentNegotiatingViewResolver that defines JsonView for rendering json resonses:
<mvc:annotation-driven/>
<context:component-scan base-package="world.domination.test"/>
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
<property name="med... | stackexchange/codereview |
i was made some python script and i want to make this script to exe file.
but when compiling this script to exe, some error encounter i was try to resolve this problem
but no luck.
following is script source
if anyone can help me really much appreciate!
# -*- coding: utf-8 -*-
import lxml,cookielib,urllib,configobj,s... | stackexchange/codereview |
I am making an application that has Activity which communicates with a single service, and is used to start, stop or change settings of that service. I used a singleton approach from this tip.
My problem is that busy-waiting is not working for me and I can't attach a listener to the service because activity gets blocke... | stackexchange/codereview |
I'm getting an error with this query:
MERGE INTO edw_clctns_equip_dim d
USING psa_equipment_status_history
ON ( dw_equipment_id = TO_NUMBER (d.clctns_equip_source_id)
AND d.active_ind = 'Y')
WHEN MATCHED THEN
UPDATE
SET clctns_initial_status_date =
(SELECT MIN (effective_date)
... | stackexchange/codereview |
this is my array:
$myarr = array(
4 => 3,
2 => 9,
7 => 8,
1 => 1
);
when i do :
asort($myarr);
$myarr becomes:
array(
1 => 1,
2 => 9,
4 => 3,
7 => 8
);
This is not how it is supposed to work,right? the values shou... | stackexchange/codereview |
suppose following code:
<asp:FormView runat="server" ID="frmMain" DataSourceID="odsMain">
<ItemTemplate>
<asp:ObjectDataSource runat="server" ID="odsInner" />
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource runat="server" ID="odsMain" />
Which ObjectDataSource would be executed? odsInner or odsMa... | stackexchange/codereview |
I have a map view which has overlay items on top of them. The overlay items have an action when they are taped on.
The problem is when I use pinch to zoom if it my fingers happen to be at a location of an item when I lift them the onTap() is called. how could i prevent this?
Thanks,
Jason
| stackexchange/codereview |
Very simple but didn't have enough time to do a quick search. Kindly help me with the following.
public class myKeyValue
{
public int myKey { get; set; }
public int myValue { get; set; }
}
IList<myKeyValue> is what gets javascript serialized.
Following is what browser gets in one of its in-memory variable.
[{... | stackexchange/codereview |
how do i put text in a text box that shows up on start i used the following but it dont work?
TextBox1.Text = "enter your name here!"
the text box remains empty?
ta-
| stackexchange/codereview |
I need a javascript regex replace function to turn
<font anything_possible><span anything_different_possible></span>
into
<span anything_different_possible></span><font anything_possible>
I tried many combinations but failed. Any help appreciated.
| stackexchange/codereview |
Looking at the source, I see that a ViewContext is instantiated inside the ViewResultBase.ExecuteResult() method and is passed a writer.
ViewContext viewContext = new ViewContext(context, this.View, this.ViewData, this.TempData, output);
But when the view is rendered the writer is passed into the View.Render() method... | stackexchange/codereview |
i am trying more than 2 hours to install thrift with cassandra but it is not even configured..when i am configure using command ./configure it show the error as:
configure: error: Cannot find php-config. Please use --with-php-config=PATH
configure: error: ./configure failed for lib/php/src/ext/thrift_protocol
i cant fi... | stackexchange/codereview |
This should be really simple but what i'm doing is pulling data from a mysql db in php into a table and what i'd like to do is when i click a cell in the ID column, for it to turn white. i can get that to work but once it does one it doesnt do another!?
$('#addtocart').click(function(){
$('#addtocart').... | stackexchange/codereview |
When are declared values bound to properties of a user control in WebForms?
I have a user control which has a public property which is an enum type. In my aspx page I'm setting it's value declaratively. In the ascx I'm outputting the value to the page using <%= %> syntax. The value that is output by the echo syntax is ... | stackexchange/codereview |
I have a table using Doctrine's Searchable behaviour, which works well for single word queries. However I've noticed that when a query includes a space, the page hangs and I can't get any response out of refreshing the page etc.
If I open Activity Monitor on my Mac, or SSH then 'top' in Ububntu, MySQL is running a proc... | stackexchange/codereview |
Can you recommend me a way or tell me the most common practice to create a sample portion of a data-base as an xml file so that I can use it from my unit tests without worrying about Db state to be persistent?
Is there any frame work to overcome such a scenerio including the functionality that after each test I can get... | stackexchange/codereview |
Possible Duplicate:
How to determine if a decimal/double is an integer?
I have a variable of type double and am wanting to check whether it is an integer.
At the moment I have
public bool CheckIfInteger(double number)
{
return number.ToString().Contains(".") == false;
}
Is there a better way?
UPDATE: Sorry I di... | stackexchange/codereview |
I got the following PHP code:
$webUrl = WEB_URL_CONSTANT;
$webUrl = str_replace('%op%', $operator, $webUrl);
$webUrl = str_replace('%subno%', $msisdn, $webUrl);
echo $webUrl;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $webUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = ... | stackexchange/codereview |
I'm supposed to take a list of words and sort it, except I need to group all Strings that begin with 'x' first.
Here's what I got:
list_1 = []
list_2 = []
for word in words:
list_1.append(word) if word[0] == 'x' else list_2.append(word)
return sorted(list_1) + sorted(list_2)
But I have a feeling there is a much mo... | stackexchange/codereview |
Here's my code
<asp:LinkButton ID="createChart" runat="server" OnClick="createChart_onClick"></asp:LinkButton>
<asp:UpdatePanel ID="result" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="submit" />
</Triggers>
<ContentTemplate... | stackexchange/codereview |
i hv written this piece of code. but it is for html checkbox and txtbox. i want to hv the same functionality with asp.net txtbox and checkbox.how to do it?
<script type="text/javascript">
$(document).ready(function() {
var checkbox = $('#notify');
var textfield = $('#notifyemailaddress');
checkb... | stackexchange/codereview |
I inflated a ListView as the contentView in a PopupWindow.
If I don't set the width & height, I can't see the PopupWindow.
If I set them like this:
setWindowLayoutMode(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
The layout is being set like "fill_parent". Why?
The layout attributes of th... | stackexchange/codereview |
I have something along the lines of this:
object[] parameter = new object[1];
parameter[0] = x;
object instantiatedType =
Activator.CreateInstance(typeToInstantiate, parameter);
and
internal class xxx : ICompare<Type>
{
private object[] x;
# region Constructors
internal xxx(object[] x)
{
this... | stackexchange/codereview |
UIWebview load the content very slow.
WebView=[[UIWebView alloc]initWithFrame:self.view.bounds];
WebView.delegate=self;
[WebView addSubview:spinner];
[self.view addSubview:WebView];
NSString *decodeString=[@"www.google.com" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[WebView loadRequest:[NSURLReq... | stackexchange/codereview |
I need to pass 300 or less strings from anchors of tags on page to jquery's:
var availableTags = [
"my tag",
"my tag1"
];
Taglist
Server gives me a taglist only of a certain format were the number of tags is 300 (or less). Every anchor is put in the div. That div has a static class "tagItem":
<div class="tagItem">
<a... | stackexchange/codereview |
I am very new to Maven and would like to see an example of how one uses the maven jar plugin. I already visited here but did not find any examples. On the documentation page, there were some parameters listed for this goal but what I was looking for is how one places them in the 'goal' or 'executions' tag. Thanks.
| stackexchange/codereview |
I have a C#/ASP.Net solution in VS (2008) with several projects within it. When I try to compile it I get one error only:
Attempted to access an unloaded AppDomain
No line code, no project name, nothing. Just such error.
How can I pin down this error -- i.e. the cause, or even better -- how can I solve it and continu... | stackexchange/codereview |
The Code -
while($row=mysql_fetch_array($result))
{
<div class="feed_element">
<span class="feed_title">
<?php echo $row['user_id'];?>
</span>
<span class="feed_content">
<?php echo $row['feed_content']; ?> ... | stackexchange/codereview |
I've seen that the Datagridview doesn't enable one to copy and paste the text of more than one cells, is there a simple setting to enable that or do I have to use the key handler and clipboard data store to include that functionality.
A user wants to copy 3 cells within a row and be able to paste the text of them in a ... | stackexchange/codereview |
I'm starting a database application. The application should connect over http to a mysql database. The application should display the database records table-like. Some dialogs are necessary (reflects a database-record). I'm thinking of a dialog-based MFC application with some functions available via menu and which conn... | stackexchange/codereview |
I'm using jQuery and the fragment identifier to create a state change depending on which part of a one-page site the user is currently looking at.
I've finally got this to work but as both Safari and Chrome won't display the fragment identifier I can't make it into a variable and therefore the system breaks down.
Is th... | stackexchange/codereview |
Is there a way to save a search pattern to a register and then conjure it up with some quick command?
I'm thinking of the way vim uses named registers with q and @, and named marks with m and '.
| stackexchange/codereview |
I am doing this:
<% Html.RenderPartial("SomePartial", Model); %>
My Model has a property UserID
In my partial I try this:
<%= Model.UserID %>
but I get this error:
CS1061: 'object' does not contain a definition for 'UserID' and no extension method 'UserID' accepting a first argument of type 'object' could be found (ar... | stackexchange/codereview |
Take this example:
customer.Salary = Convert.ToDecimal(string.Format("{0}! ", Console.ReadLine().ToString()));
(1) Why in C# we need to always put .ToString() to get it right?
(2) Convert.To... Doesn't it creates overheads unnecessarily?
Further in the below given code: It gives error: "Input string was not in a co... | stackexchange/codereview |
I am reading the C programing guide and all of a sudden it starts talking about pipes. Can someone simply tell me what a pipe is.
| stackexchange/codereview |
How can I use something like jQuery & PHP to reorder elements within an xml file?
The jQuery plugins below allow html table rows or list items to be swapped about, but I have no idea of how to save those changes back to an XML file with the click of a button.
www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/
ww... | stackexchange/codereview |
I tried this way,but seems not working:
{if $i == 1}
$value = $recommend[3];
{/if}
Does smarty support assignment operation?
| stackexchange/codereview |
How can I add new rows from:-
Column A Column B Column C
11 Size S
11 Color Yellow
11 Type Q
22 Size M
22 Color Blue
22 Type W
33 S... | stackexchange/codereview |
I would just like to find out which is the best practice when deploying to IIS 7 with ASP.Net 2 applications.
We deploy around 7 WCF net.tcp consumed web services on IIS 7 and then also have a website running under IIS 7.
When we deploy with TFS we copy over the released code to the specified folders under IIS. Would t... | stackexchange/codereview |
I have the following query:
EXPLAIN EXTENDED SELECT *
FROM (
`photo_data`
)
LEFT JOIN `deleted_photos` ON `deleted_photos`.`photo_id` = `photo_data`.`photo_id`
WHERE photo_data.photo_id = 'UKNn'
AND `deleted_photos`.`photo_id` IS NULL
I unfortunately have to use binary to compare this photo_id (which is being handed t... | stackexchange/codereview |
Is there a way to get Windows Phone 7 to “broadcast” its physical location automatically?
I’m trying to work around the fact that the GPS data will only be available to my app when the app is actually running. Ideally, it would somehow be possible for the user to configure the phone to continuously broadcast the locati... | stackexchange/codereview |
Using ASP.Net, VB.Net
When i close or exit the page, it should show the pop up message like "page closing"
Need code help
| stackexchange/codereview |
I need to save contents of StyledDocument, formatted with standard styles (e.g. bold, italic, various font sizes). And so there is my question - is it possible to output it into HTML someway?
| stackexchange/codereview |
I get a black screen with the above setup. I have tried RealVNC and TigerVNC clients too on windows with the same result.
Any ideas?
Thanks
| stackexchange/codereview |
Using ASP.Net, VB.Net
In my web page, i want to attach the file.
How to attach the file
Need code help
| stackexchange/codereview |
I want to have a diagnostic to ensure that my application will not be blocked to access the remote server because of the proxy setting. Is there a way to get the list of a blocked websites in proxy server from the client (.NET)? I suppose I could use WebRequest and try to call simple echo method in the server and whet... | stackexchange/codereview |
In Entity Framework v1, can I create an array of complex property?
Assuming I've a "Question" entity can it have an array of "Answers" (that compose from text and timestamp)?
| stackexchange/codereview |
I'm looking for a function in Scheme to replace a element in an equation by a value.
Exemple : '(+ a b c a) with (1 2 3) should give me '(+ 1 2 3 1). (I don't want to resolve the equation, it was just an exemple)
Basically, I want to say that a=1, b=2, c=3
To proceed, I extract the variables of my first list in anothe... | stackexchange/codereview |
I have the following code in C#:
IList<string> myList = null;
myList.Add(temp);
temp is a string that is decalred elsewhere and is not null (I checked it). I keep getting the following error at the line myList.Add(temp); "Object reference not initialised to an instance of an object"
What am I doing wrong here???
Upda... | stackexchange/codereview |
have two strings, String1 = hello String2 = world, I want to call a class Hello and send to the two strings. The class should return a boolean value and a string. If the boolean is true it should do the followig:
System.out.println("Hello to you too!");
Can someone help me out with this code?
| stackexchange/codereview |
Is there a way to run or simulate running Java statements (kind of like IDLE - the Python GUI) without compiling and running the executable? I want to quickly test statements to see if they work. Thanks.
| stackexchange/codereview |
I have a HTML <textarea> that I want to be able to make when the user pushes enter in the textarea it results in a linebreak when the string is stored in a variable and printed on the page.
How would I do this? I have seen it done before but I am not sure how to do it.
| stackexchange/codereview |
id date
1 1288006344
2 1288010391
3 1288010752
4 1288011379
5 1288013258
6 1288014043
7 1288014555
8 1288015611
9 1288019119
10 1288020490
11 1288023483
12 1288029300
13 1288031668
14 1288032090
How to count total last 7 days?
Thank you !
| stackexchange/codereview |
I'm a little intimidated by the wealth of knowledge displayed on the front page of this website, but it gives me hope that I'm talking to the right people. I had a pretty rotten experience with one of our programmers today, and I'm hoping that you might be able to offer some advice.
I'm an office admin (primarily cler... | stackexchange/codereview |
It is generally discouraged to use the message id returned from the JMS provider as the correlation id with which a message is published onto a queue. How have people generated their correlation ids for a request/response architecture?
| stackexchange/codereview |
I have a table AccountSecurity which is a many-to-many table that relates Account entities and Securities. When I write the query below it returns all Securities that satisfy the where clause. However each Security instance in the list no longer has the reference to the AccountSecurity it came from. So when I do lis... | stackexchange/codereview |
I have a jar with the following structure
com
merc
test.class
lib
xyz.jar
applicationContext.xml
test.class uses xyz.jar. Using ant java task, how do i include the lib folder in the classpath, so that I can execute test.class
Thanks
| stackexchange/codereview |
I want to use XMLRPC mechanism between my Flex app and my XMLRPC Python Server.
My server :
class ServerMockUp(SimpleXMLRPCRequestHandler):
# Services path declaration
rpc_paths = ()
myServer = SimpleXMLRPCServer(("localhost", 80),
requestHandler=ServerMockUp,
logRequest... | stackexchange/codereview |
I have a site that uses javascript to launch a css overlay of a google map (see [link deleted because I can only have one at a time] and click the 'Enlarge' button under the map).
This doesn't work on the ipad. I believe it has something to do with this not being a link, but using the jquery live('click',.. approach... | stackexchange/codereview |
I currently have some code that looks like:
-(UIView)someMethod {
CGRectMake(0,0,100,100);
UILabel *label = [[UILabel alloc] initWithFrame:rect];
return label;
}
While it works it obviously leaks memory and needs to be fixed. I thought the fix would be:
UILabel *label = [UILabel initWithFrame:rect];
But the com... | stackexchange/codereview |
I'm considering using Google Chart API. Is the API stable? Is the service uptime any good? There are no warranties about it on the Terms of Service. Has anyone known of large downtime periods?
| stackexchange/codereview |
I am trying to create a Blend behavior related to ComboBoxes. In order to get the effect I want, the ItemsPanel of the ComboBox has to have a certain element added to it. I don't want to do this in every ComboBox that uses the behavior, so I want the Behavior to be able to inject the ItemsPanelTemplate programmatical... | stackexchange/codereview |
i have just created a new project and this models and the fixtures below:
culture:
id: ~
code: { type: CHAR, size: 6, default: 'it', required: true }
text: { type: VARCHAR, size: 50, default: 'italiano',
required: true }
folder_prod: { type: VARCHAR, size: 50, default: 'itali... | stackexchange/codereview |
I have a shared web server setup among friends. Each website has its own database. I'd like to be able to delegate user management for each of those databases to the owner of the database. That way they can create accounts for their web applications to access their specific tables yet not wander around if the specif... | stackexchange/codereview |
What is the best method to take screenshots of the webbrowser control in a win form app (C#) even if the application is not visible or computer is locked? The current method I am using (which comes from csExWB2) generates black screenshots every so often.
| stackexchange/codereview |
I have registration box,and I want users to register via ajax.
Is it safe to send password via jquery ajax?
If not,can someone explain what to do to secure password data,any example?
| stackexchange/codereview |
Ive been messing around with the UILabel code and NSTimer and WordArray, and have still not been able to figure out how to code them the way i need them.
I need to have the UIlabel change every 1min, which i figured out, but I also need the UILabel to change to the next word in a list of 100 words, can anyone show me a... | stackexchange/codereview |
I am currently trying to get CMake to run on my Windows 7 (64-bit) system. I want to compile TagLib for later use with a Qt application I am working on. I would like to compile it with MinGW (not Visual C++ as in this other question).
I download the installer (cmake-2.8.3-win32-x86.exe) and install it (I also opt to ad... | stackexchange/codereview |
Lets say I have a page on the same domain that I put inside an iframe. In the iframe, I have added data to an element, something like this:
HTML
<div id="data"></div>
Script
$('#data')
.data('test1', 'this is test data 1')
.data('test2', ['John', 'Smith'])
.data('test3', {
alert1: function() {
... | stackexchange/codereview |
Yahoo's Best Practices for Speeding Up Your Website states:
Put Scripts at the Bottom
That there are two types of scripts in my Django application:
Scripts included in my base (e.g. inherited) template; and
Scripts written inside templates instantiated by templatetags
Scripts to support UI controls are necessarily ... | stackexchange/codereview |
I have a TextView in my home screen widget. Can I use the following selector as the background of the TextView so the TextView can be highlighted when clicked? I know I can do it in Activity, but I am not sure about home screen widget. Thanks.
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schem... | stackexchange/codereview |
I understand that the Twitter API documentation is fairly substantial, but I was wondering if there is simple way to access Twitter API which is similar to Facebook's API?
For instance, we can access facebook's APi as follows:
https://graph.facebook.com/btaylor?access_token=dfjsmdjfsmjfsmljfd
Notice the parameter acce... | stackexchange/codereview |
I'm doing K&R exercise 6-4, which is:
6-4. Write a program that prints the distinct words in its input sorted into decreasing order of frequency of occurrence. Precede each word by its count.
What I decided to do is create a struct called dstncFreqNode6_4:
struct dstncFreqNode6_4
{
char *word;
int count;
str... | stackexchange/codereview |
I wrote following code:
void *produce(void* arg)
{
buffer* buff = (buffer *) arg;
while (1)
{
pthread_mutex_lock(&mutex);
if (elements_produced == JOB_SIZE)
{
pthread_mutex_unlock(&mutex);
pthread_exit(NULL);
}
elements_produced++;
while (buff->in_buff == CAPACITY)
{
pthread_cond_wait(&cond_e... | stackexchange/codereview |
I have a website in which i have used a custom font in css it works fine on PC but on mobiles like Iphone that font does not load. Any idea how can that be enabled on all mobile devices?
I will appreciate your answers in this regard.
| stackexchange/codereview |
According the the MSDN documentation, Set() and Reset() on ManualResetEvent (or any EventWaitHandle) returns a boolean indicator whether or not the operation was successful.
Under which circumstances can this call return false, and what am I supposed to do if it does?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.