instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to cross compile a source for Tilera and I got the following error while linking.
All these errors are related to C++ STL(Standard Template Library).
Is there any difference in linking process of a STL library?
Errors are:
gtpu_t. a: In function `stlp_std::_Atomic_swap_struct<0>::_S_swap(unsigned int volatil... | stackexchange/codereview |
Working on an Android application, which needs to execute a google web search from within a ListView activity and display the results in that List View.
Such search would always be for the same "static" subject, such as "...bowling alleys in Chicago...", so, the user will not be entering any search criteria.
What is th... | stackexchange/codereview |
I've seen numerous examples about how to read XML files in Java. But they only show simple XML files. For example they show how to extract first and last names from an XML file. However I need to extract data from a collada XML file. Like this:
<library_visual_scenes>
<visual_scene id="ID1">
<node name=... | stackexchange/codereview |
I want to redirect all IE users to a specific page that tells them we don't support IE and that they should try another browser. How can I do this using rails 3 routes and still allow public users to view the public area of the site?
My routes are something like this...
MyApp::Application.routes.draw do
constraints(N... | stackexchange/codereview |
is it possible to with a formula or vba to delete an entire row where some string exists in a field
for example, if A1 has "string1" and A234 has "string1" then i want to keep only 1 of that row
| stackexchange/codereview |
I'm using a function to add an onClick event to a <div>, like:
onClick='function(param)
How can I check now if this event is set at all? div.onClick doesn't do it's job.
EDIT: I tried now this:
if (typeof div.onClick === 'function')
...and this:
if (!typeof div.onClick === 'function')
and both cases are false.
| stackexchange/codereview |
I Want to create a new mode (Debug, Release and a new one) in my project. After that I will need a variable that is only used in that new mode, so I can create a variable for all and set different value for Debug/Release (i.e. 0) and for the new one (1).
How can I solve this?
What i have:
set (CMAKE_CONFIGURATION_TYPES... | stackexchange/codereview |
There is the following line command:
statdump -zdl %db% > "%ckpdb_dir%"\statdump_%db%.log
the result of the Statdump is sent to the log file, but I would like that if there is some error, for example that the statdump is being used already by another process, and then I get the message "The process cannot access the ... | stackexchange/codereview |
Possible Duplicate:
FAQ : Undefined Behavior and Sequence Points
#include<iostream>
#include<stdio.h>
int main(){
int myVal = 0;
printf("%d %d %d\n", ++myVal,myVal,++myVal);
myVal = 0 ; /*reset*/
std::cout<<++myVal<<" "<<myVal<<" "<<++myVal<<std::endl;
return 0;
}
I got the output 2 2 2 in b... | stackexchange/codereview |
I am looking for a tool to draw Control Flow Graph for C# code..
Something like AVRORA but for C#
Any ideas?
| stackexchange/codereview |
I converted my D2010 EXE into hydra plugin DLL. This DLL is using few other DLL functions which contains string parameters. So, i used sharemem as the first unit.
I then created a Hydra host application and loaded this plugin. Forms built into the plugin are loaded. But I am getting some Access violations and the app... | stackexchange/codereview |
In my base.html template which is imported in every Django template, I have a block with the Google Analytics script:
<!-- GOOGLE ANALYTICS -->
<script type="text/javascript">
bla bla...
</script>
I would like to have this script only included when in production, but not during development. Is there a solution fo... | stackexchange/codereview |
I have a data table in my database where I store various settings. Since they are of any type (even complex object graphs) I decided to store their values as serialized JSON strings.
Let's say that I serialized a List<ItemBase>. Serialized string looks just fine. But the problem is that list items are of various types ... | stackexchange/codereview |
BACKGROUND
I'm creating an AJAX chat system. It looks something like this:
Mike - hi Jane - 5 minutes ago
Jane - hi Mike - 4 minutes ago
Mike - how's it going - 3 seconds ago
Jane - I'm doing good - 1 second ago
Javascript polls the server every minute and the server responds with 10 of the newest messages. Attached ... | stackexchange/codereview |
I'm querying a table with a SQL query (table is decided dynamically). All the tables implement the ITableIsFile interface. Here is the problematic code.
string sql = "Select * from " + file + " where userID = '" + currAgentTM.systemuserid.Value
+ "' and CallStatusID = null";
var records ... | stackexchange/codereview |
What libraries would you recommend that helps remove boilerplate code, when using Guice from integration tests?
E.g. AtUnit
| stackexchange/codereview |
I noticed that you can call submit() in event handlers of form elements. For example,
<input id="myInput" type="button" onclick="submit()" value="Test" />
clicking the button generated by the code above will submit the form. The funny thing is, I can't call submit() outside the event handler. There is no submit membe... | stackexchange/codereview |
You can write an AppleScript and save it as an application, and then place it on the dock. But is it possible to add menu items to it so that when secondary clicked it show these menu items? If so, how to define them, and define their actions?
Thanks
| stackexchange/codereview |
I am creating a website which is not completed yet. Somebody suggested me to put up some dummy pages on the site so that google confides in it and the page rank could improve if the site is there for a while.
But if i do not change the contents and keep the website stagnant, will then google negatively rank the websit... | stackexchange/codereview |
For a project I need to make a map in Java that a robot can navigate through. Preferably, I'd like to store the map in a 2D-array, but I don't know how to go from the 1 bit bitmap to an array in Java. Can you help me out?
| stackexchange/codereview |
I have to generate results of searching i Vaadin.
Probably the fastest way to do it is to put results into table, but I need some custom layout and the FormLayout for every row would be the best.
Unfortunately if I put rows formatted by FormLayout into table - the generation of the results takes about 15-20 seconds.
If... | stackexchange/codereview |
/*
patString: it$
input: this is it
the output at 2 to the match operation at 1 is false, why?
*/
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.io.Console;
public class Test {
public static void main(String args[]) {
Console con = System.console();
String... | stackexchange/codereview |
I have a list which is made up of the following elements
<1, 2-3, 4-5, >6
when I sort it I get
<1,>6,2-3,4-5
but would like to get it in the proper order.
I coded this whichs works properly however I find it to be grossly verbose and would love to bring it down to 2,3 lines of code
_data.Sort(delegate(SourceEntity a1... | stackexchange/codereview |
I have one Materialized view on one server which is created by DB link.
There is one job running on that Mview. (created with dbms_refresh.make earlier).
Now I have created 3 new fields in original table.
My queries are.
1) Do I need to drop and create Mview again, if yes, do i need to create Mview log on main server ... | stackexchange/codereview |
I have class MyForm which inherited from QMainWindow.
Here's my code:
std::auto_ptr<MyForm> pForm(new MyForm(3,3));
QTest::keyPress(&pForm, Qt::Key_0);
However when I use QTest::keyPress on it, I'm getting:
error: no matching function for call to keyPress(std::auto_ptr*, Qt::Key)
Any ideas?
| stackexchange/codereview |
In the following expect script how to get the exit status of rsync in the expect script
if [$? -eq 0] throws an error as
invalid command name "$?"
while executing
"$? -eq 0 "
invoked from within
"if [ $? -eq 0 ]"
(file "./tmp544.sh" line 7)
#!/usr/bin/expect -... | stackexchange/codereview |
hello frnds i need to pass a table name as parameter to stored procedure
CREATE PROCEDURE six @tablename nvarchar
AS
SELECT * FROM + @tablename
Go
exec six Entry_sixsigma_mag
it gives error like
Msg 102, Level 15, State 1, Procedure six, Line 3
Incorrect syntax near '+'.
Msg 208, Level 16, State 1, Procedure six, Li... | stackexchange/codereview |
I want to install mono on an embedded system (arm board) it has no ethernet connection, so i need to do a local installation, (i can transfer data / files to the board with sdcard).
Board Data:
32 Kbytes of Internal ROM
64 Kbyte of Internal SRAM
64 Mbytes of SDRAM memory (32-bit bus width)
256 Mbytes of NAND Flash memo... | stackexchange/codereview |
Im trying to adapt some code that I have found online that uses this function..
$common.parseUnit
Does anyone know where it lives as at present I am getting an "$common.parseUnit is undefined" error when the code hits that line.
Thanks.
| stackexchange/codereview |
I've written a class that's responsible for calling a third party WCF service and it works fine. Our application can be configured with the proxy settings of the local network, so all that remains is to use those settings (if they have been set) when making the call.
I've had a look around and can't see anything that c... | stackexchange/codereview |
How would i go about storing structs and also ints in an array?
/*a struct to keep block information*/
struct header{
int freeSpace;
struct header *nextHead;
struct header *prevHead;
};
int myinit(int *array, int size){
array[0] = size;
/*initial block*/
struct header root;
root.freeSpace... | stackexchange/codereview |
I come from a .Net world so I'm used to just hovering over a variable while debugging and seeing what its value is.
In Objective-C I am incredibly confused on how to do that.
If I hover over it, I get a small popup with lots of information...that doesn't help me at all.
For example, I have an object called "myServer" a... | stackexchange/codereview |
I put this class together, but it is not working to actually run a build. I inserted some other logging and no errors are being raised. I declare myself as a noob on Ruby so hoping some lovely Ruby Expert can spot any idiotic error I have!
require 'rubygems'
require 'albacore'
require 'albacore/support/albacore_helper'... | stackexchange/codereview |
I am trying to implment url Routing .net 4 into my new website and am a bit of a beginner at .NET. I seem to have it working fine but I noticed an issue for images that are on the page. If i go to a page that is actually:
www.mydomain.com/portfolio.aspx?id=3
but the url shown is:
www.mydomain.com/portfolio/3/category/... | stackexchange/codereview |
Create an xml document from InputStream which contains xml data. Is it possible?
| stackexchange/codereview |
I hope in a good manner :-)
I wrote this piece of code.
What I wished to do, is to build something like "cache".
I assumed that I had to watch for different threads, as might many calls get to that class, so I tried the ThreadLocal functionality.
Base pattern is
have "MANY SETS of VECTOR"
The vector holds somethi... | stackexchange/codereview |
I have a class, let's call it class A, that is performing a calculation which returns a value of int value, and another class in my system, class B needs to use int value for further calculations. My plan is to use a third class, class C, where the variable will be defined, to pass the variable between A and B, with th... | stackexchange/codereview |
Deleting previous tuples from flights
Error: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationExcepti
on: Duplicate entry 'AAH196' for key 'PRIMARY'
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Dupl
icate entry 'AAH196' for key 'PRIMARY'
at sun.reflect.NativeCons... | stackexchange/codereview |
I have the HTML:
<div>
<span class="label"><a href="/index/1">Bookmix Offline</a></span>
<span class="button"><a href="/settings/">Settings</a></span>
<span class="button"><a href="/export_all/">Export</a></span>
<span class="button"><a href="/import/">Import</a></span>
</div>
and CSS:
span.button {
... | stackexchange/codereview |
I'm working on Zend application, but have no much experience with Zend, so just relying on my RubyOnRails experience.
From couple articles I've found that most of validation is implemented on Forms level - with Zend_Form. But it looks a bit weird for me - how about to have a validation on model level - create a model ... | stackexchange/codereview |
We all know there's CSS support in AS3. But actually it's not CSS, but just SS. Is there a way to implement cascading?
For example I have
Compare <em>regular italic</em> and <strong>bold text or event <em>bold italic.</em></strong>
How can I define special fonts for regular italic and strong italic?
upd: or how is i... | stackexchange/codereview |
I have a very simple question to ask.
I am using an adjacency matrix (2D array) in java to create a small graph with nodes and edges.
My problem is that when I instruct the program to iterate through the adjacency matrix,
using a simple nested loop, I experience the problem of edge overlapping.
To be more specific, wh... | stackexchange/codereview |
I want to run a program from inside a bash script, such that it opens in a new command line window. How can I do this?
| stackexchange/codereview |
I have a base class, SpecialClass. Lots of other classes inherit from it, like WriteSpecialClass and ReadSpecialClass. Instances of these classes are serialized and deserialized, after being casted to/from the base class. Therefore, I have lots of repetitious code like this (for serializing):
SpecialClass sc = null;
i... | stackexchange/codereview |
I have a static HTML site that is going to run off CD. It's going to have two different viewing modes, which I'm going to switch between with JavaScript. I'd like to maintain the viewing mode during the session. It's a JavaScript-powered document reader thing.
I'm using the query string and a hash to dynamically link t... | stackexchange/codereview |
I've got a java application deployed to a Jetty container, and I want to access its jmx MBeans through a shell script. I am trying to tie Nagios monitoring to the values contained within the MBeans and also periodically run MBean operations.
I've looked into jmx4perl because it has a script specifically created for ho... | stackexchange/codereview |
I need write a parser manually. Can`t choose between LL(*) and LR (maybe try Earley?). Should I use bottom-up parsing, because grammar for LL will be rather difficult?
| stackexchange/codereview |
Pretty simple, but can't really find anything on how to do this. Anyone have any tips or helpful links? thanks!
| stackexchange/codereview |
I have this line in bash:
echo "a=-1"|perl -nle 'if (/.*=[0-9]*/){print;}'
and get:
a=-1
Wait..I didn't say perl should match on the -. I made a minor change to:
echo "a=-1"|perl -nle 'if (/.*=[0-9]*$/){print;}'
and it correctly ignores the line. Why?
| stackexchange/codereview |
I'm new to programming in general and references in particular. I want to manipulate individual objects in an array by reference, so that I'm not working on mere copies of the objects I wanted to stick into the array. My question is how to do that.
For example, suppose I have these lines of code:
$obj0 = blah;
$obj1 = ... | stackexchange/codereview |
Suppose I want to display certain content only if I know the user coming to my website has a valid Google Account and it's logged into that account.
Is there any way to do this in Javascript? I know that the Facebook API provides ways to tell the status of a user (logged in Facebook) and I'm sure I've seen sites doing ... | stackexchange/codereview |
I was wondering if there is a way of replacing plain text in a div.number-plate, with a image for every character(one by one)? I am using JQuery
Any help is greatly appreciated, Thanks
| stackexchange/codereview |
Using the grails Quartz plugin (latest stable version, 0.4.2), I have four different Jobs that run fine in my development environment, most of them every minute.
However in the production environment, they run for a few minutes and then "die" - they just don't run anymore. There is no Exception thrown or similar. The r... | stackexchange/codereview |
In PHP, by default no cache related headers are sent.
HTTP/1.1 200 OK
Date: Fri, 19 Nov 2010 11:02:16 GMT
Server: Apache/2.2.15 (Win32) PHP/5.2.9-2
X-Powered-By: PHP/5.2.9-2
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 26
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html
Now... | stackexchange/codereview |
Why we have to setup a boundary string?
What is the purpose for?
any rules on it?
| stackexchange/codereview |
The following contract does not generate an operation in the metadata, yet If I remove the reply action or set it to "" the metadata now generates the operation correctly. Why?
[System.ServiceModel.ServiceContractAttribute(Namespace="http://Test/Publish", ConfigurationName="IFCRPublish")]
public interface IFCRPublish
{... | stackexchange/codereview |
I've just came up with an idea to solve a problem and wanted to share it. Sorry if too banal.
So, a big C++ project I am reviewing, contains many includes which relies on symbols from other includes but which don't include the required includes. Any slight change in build-procedure results in "missing symbol" failures.... | stackexchange/codereview |
I want to know how many active developers are working on the following frameworks: Symfony, Zend Framework and CakePHP and the orm Doctrine. I tried to find this information on repositories but no success...
| stackexchange/codereview |
I'm trying to get my photos and status updates in my iphone app. But it seems that after about 10-15 API calls you can't go to the next page anymore. I noticed that Facebook does not give everything in one graph call, they'll give you this thig at the end of each API call:
"paging":{"previous":"https:\/\/graph.
faceboo... | stackexchange/codereview |
I would appreciate if someone can point me the recommended ways of passing multiple (say 10) parameters from client to a webservice. I have the requirements for the server side, so once I figure out the best way to pass data, I can expose the webmethod on the server side (.NET). FYI, I have a SOAP client that is implem... | stackexchange/codereview |
I'm allocating memory for several PWideChar on my main executable file
var
pwcValor: PWideChar;
begin
pwcValor := AllocMem( sizeof(WideChar) * Succ(Length(pValor)));
StringToWideChar(pValor, pwcValor, Succ(Length(pValor)));
pMetodo(pCodigo, pCodigoParametro, pwcValor);
All of these variables are sent over to a... | stackexchange/codereview |
After reading this, this and this I think I somewhat get what they mean with versioning data contracts. Is it so that the recommended approach is to have my data and message contracts implement an interface and set the DataContract(Name = "SameValue") for different namespaces?? I would then create a new class with the ... | stackexchange/codereview |
I have downloaded eclipse 3.4 (java version) for MacOSX (carbon). I have tried to 'update' to the erlide, but see many (duplicated) options (many erlide, options that say 'only for erl SDK updates', etc.) Sometimes I get 403 errors when attempting to access http://erlide.org/update and http://erlide.sourceforge.net/u... | stackexchange/codereview |
I wrote a piece of code to add a ringtone from a URL in Android 2.1. In Froyo it does not want to work at all.
sendBroadcast(new Intent(
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri
.fromFile(file)));
ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA,
file.getAbsolutePath());
values.... | stackexchange/codereview |
How to achieve something like that:
@WebService(endpointInterface = "ru.citc.techtest.cxfconcepts.HelloWorld")
public class HelloWorldImpl implements HelloWorld {
public String sayHi(DOMSource xml) {
return "Hello";
}
}
I need a raw XML for processing (SAX or DOM). In same time I want to leverage exis... | stackexchange/codereview |
I want to use the highest possible resolution timer using c#. For example, I want to raise an event every 11 ticks (I've heard that tick is the highest possible counter in pc). I tried timer and found that minimum elapsed time is in milliseconds. I looked at stopwatch but stopwatch doesn't raise events.
Thanks.
| stackexchange/codereview |
Is it possible to use an NSString in a switch statement?
Or is it better to just use if / else if?
| stackexchange/codereview |
I'm writing a BHO add-on for Internet Explore (8 and 9). And I followed this tutorial explaining how to write add-on that hides all images on page.
The problem is that these images are hid after the page is downloaded. So for a second there is the full page and then all images disappear.
I have to make it that when an ... | stackexchange/codereview |
I installed the page route module and it works great, but the only problem is that the submit/next/back buttons are always displayed on top.
I have this custom module installed, which I thought would ensure that the profile node form (content profile node) and the CCK group field specified (group_personal) would move u... | stackexchange/codereview |
In Oracle, is there an easy way to perform this in a single query, or is this the correct approach?
SELECT MAX(ID) INTO n_FOO_ID FROM FOO WHERE BAR = n_InputVar and ConditionalFlag IS NULL;
IF n_FOO_ID IS NULL OR n_FOO_ID = 0 THEN
SELECT MAX(ID) INTO n_FOO_ID FROM FOO WHERE BAR = n_InputVar;
END IF;
What I'm tryi... | stackexchange/codereview |
In order to get the Weblogic initial context to query the task database i am doing the following:
Properties h = new Properties();
h.put(Context.SECURITY_PRINCIPAL, "weblogic");
h.put(Context.PROVIDER_URL, "t3://localhost:17101");
h.put(Context.SECURITY_CREDENTIALS, "weblogic");
h.put(Context.SECURITY_AUTHENTICATION, ... | stackexchange/codereview |
Surprisingly for me
new string[count];
is filled with nulls. So I came up with
var emptyStrings = Enumerable.Range(0, count)
.Select(a => String.Empty)
.ToArray();
which is very verbose. Isn't there a shorcut?
| stackexchange/codereview |
I am having 2 Radio Buttons.(For Ex : ID and Name)..
<%=Html.RadioButton("Emp","1")%>
<label>ID</label>
<%=Html.RadioButton("Emp","2")%>
<label>Name</label>
If i click the Name,
<p>
<%:Html.LabelFor(m => m.MyDate)%>:
<%:Html.EditorFor(m => m.MyDate) %>
</p>
the above control should be visible... | stackexchange/codereview |
I've been tasked with extracting some structured information from hundreds of human readable documents (mostly MS Word) and to put it into a database. The data is pretty much embedded in tables throughout the entire document but there's a lot of text between the tables and although the documents are very similar in str... | stackexchange/codereview |
I am new to Android and I have been trying to reuse the tutorial on the Android developer website about developing a TabActivity App but, unfortunately, it never worked, even when I constructed it the exact same way as it is described…
Using the debugger it seemed the problem came from the main layout.
-> setContentVie... | stackexchange/codereview |
I have some simple questions, I have a client-server application and data sent on the wire.
I'd like to be able to recover the data and handle it properly.
struct T1
{
int id;
int foo;
};
struct T2
{
int id;
char foo;
int bar;
};
Let's take these structures, they are sent on the network preceded by an int... | stackexchange/codereview |
I wasn't sure how to call this. Basically I have a Label widget. It has an auto size feature. The problem is I do not know who calls setSize(); I need to know if the class called it or if the user of the label called it because you cannot resize an auto sizing widget. I cannot directly change the size because, well 1, ... | stackexchange/codereview |
I want to store the the user's ID in a session variable to use across the application. I don't see how I'd do that with the default security feature? It authenticates itself and I don't know (if) there is a callback function or something? That we can use to do our house-keeping
Any help is deeply appreciated
| stackexchange/codereview |
I asked this question earlier with way too much code.
The ViewController initializes a UIView chain, Controller>>View>>SubView, in the ViewController. After the SubView is initialized the ViewController is set as its delegate:
aSubView.delegate = self;
NSLog(@"$@",aSubview.delegate), returns the ViewController, so I k... | stackexchange/codereview |
I am a Java and C# programmer. Recently, I am working on C++ project. I am having a problem of how to write the sample code following in C++. The sample code following is to sort a property of a struct:
public struct Person
{
public string name;
public int age;
}
Add some Persons to a list and sort by the age:... | stackexchange/codereview |
I'm having trouble running powershell with a script that should use a variable number of parameters.
The script file looks like this:
param( [string]$paramString )
$params = ConvertFrom-StringData $paramString
$params
Running the script directly in powershell yields the expected result:
[PS] C:\some\path>.\test.ps1 "... | stackexchange/codereview |
Is this even possible in PHP?
If not, what is the highest precision available?
| stackexchange/codereview |
I want to traverse an STL map. I don't want to use its key. I don't care about the ordering, I just look for a way to access all elements it contains. How can I do this?
| stackexchange/codereview |
I'm on IIS6 > ASP .NET > C# > WebService
I have to put in Cache a lot of data (thousands of serialized object of about 2MB each).
How does IIS6 manage HttpContext.Current.Cache - does it save in RAM or temp file?
Can I compress data before caching?
What are the alternatives of HttpContext.Current.Cache?
| stackexchange/codereview |
Suppose I have to access a some pattern of digit using javascript. Please have a look.
For Example :: Pattern needed :: Fomat - $12.00 only
If user enters the value 123.12 => Output = $123.12
If user enters the value 123.1 => Output = $123.10
If user enters the value 123.1237 => Output = $123.12 :: Here I am unable to ... | stackexchange/codereview |
I want to build a simple DNS Proxy in C, which accepts DNS Queries from UDP Port 53, forwards the query to Google's DNS server TCP port 53 to do the lookup, and then returns the answer offered by Google.
Yes, this is a school project and I'm so confused that I don't know where to get started.
Thanks for helping!!
| stackexchange/codereview |
In single solution we having 100 projects, if we build solution its taking lots of time to build. I want to know do we have options to increase speed of visual studio build process.
Language used for development c#.
| stackexchange/codereview |
I was just wondering how you can echo a range of dates in PHP
ideally i want the system to display this week wednesday to next week wednesday
for example
17/11/10 to 24/11/10
can anyone point me in the right direction?
| stackexchange/codereview |
public CArm(Vector3 at, string name) : base(name)
{
}
Is there any other way to call base parent constructor within the brackets instead of doing : base(name)?
I'm not sure if this was another language but I recall something like super(); inside of the constructor to call the base class.
Thanks.
| stackexchange/codereview |
I tried below command its work properly
C:\Documents and Settings\users>mvn -v
Apache Maven 3.0 (r1004208; 2010-10-04 17:20:56+0530)
Java version: 1.6.0_21
Java home: C:\Program Files\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows... | stackexchange/codereview |
If you have a base class defined as follows:
public abstract class BaseMessageObject<T> where T : Entity
{
public string Message { get; set; }
public abstract BaseMessageObject<T> BuildMessage(T entity);
}
and you have a base class for HTMLObjectMessages defined as follows:
public abstract class Ht... | stackexchange/codereview |
I have a WCF service hosted on IIS and it accepts connection like this http://host/myservice.svc/GetCount?method=?,
i have bunch of html pages that sitting on the public domain and will be calling the above services and anyway could easily view the html source code and find out the url for those services.
so my questi... | stackexchange/codereview |
I have a jQuery library code in jquery.xyz.js .
I have an html file which uses the function defined in jquery.xyz.js in this manner .
<html>
<body>
<script type="text/javascript">
document.write("This is my first JavaScript!");
$(function(){ $("ul#xy01").xyz(); });
</script>
</body>
</html>
But the jQuery is not... | stackexchange/codereview |
I have a Sprite object defined as follows:
@interface Sprite : NSObject {
CGFloat x; // x location
CGFloat y; // y location
CGFloat r; // red tint
CGFloat g; // green tint
CGFloat b; // blue tint
CGFloat alpha; ... | stackexchange/codereview |
var data = [];
var id = 23;
var num = 12;
var dog_trialset = 15;
var cat_trialset = 23;
problem from here
data.push({id:{num:num, dog_trialset:dog_trialset, cat_trialset:cat_trialset}});
ajax post to php
[data] => Array
(
[0] => Array
(
[id] => Array
(
... | stackexchange/codereview |
Here is my html:
<div class="top_pane">
<span class="button"><a href="/settings/">Settings</a></span>
<span class="button"><a href="/export_all/">Export</a></span>
<span class="button"><a href="/import/">Import</a></span>
</div>
and css:
span.button {
float:right;
margin-right: 10px;
}
div.top_pan... | stackexchange/codereview |
I'm looking for a way to include html in a mail_to link, so that I can automatically include a banner in the body of this email.
Thanks for any hints
Markus
| stackexchange/codereview |
So I am having a strange issue with Java.
I'm reading a writing files, so the path is important to me. I would like all files to be written and read from the relative path (i.e in the folder with the rest of my class and java files).
I write files like so:
FileWriter fw = new FileWriter(outfile,true);
fw.write(data);
f... | stackexchange/codereview |
I seem to remember there was a website where you could view other websites from. Does anyone know its address?
The idea being that maybe your own firewall blocked a URL. So you go to this site, enter a URL and it displays your requested URL in an iframe. The net effect is your are viewing the site as though you had gon... | stackexchange/codereview |
I have a large number of products I want to display in a pdf, with category headers. If a category doesn't fit on the current page I want to move it to the next. For this I'm using Prawn's group method.
Product.all.group_by(&:category).each do |category, products|
pdf.group do
# Simplified the data a bit for this... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.