instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've been reading about generic methods, and thought I understood how the generic type argument would constrain the method parameter types, but when I tested out some of the ideas with actual code, I got unexpected results. Here is a simple generic method that I don't understand:
private static <T> void foo(T[] t1, T[]... | stackexchange/codereview |
For the purposes of code review, after an existing source file is modified, we only review lines of code that have been changed in those source files.
After I make changes to source files in a repository, I must communicate the lines of code that have changed in a source file before we do our peer code reviews.
I am ... | stackexchange/codereview |
I have a third party service which have async DoAsync() operation and Done() event. How can I create my own sync DoSync() operation?
I want smth like this (in pseudocode):
operation DoSync()
{
DoAsync();
wait until Done();
}
| stackexchange/codereview |
I'm new on Tortoise SVN so maybe this question could seem silly...
Is there a way to create a "real" patch with Tortoise SVN?
I mean, I'd wish to export only latest files, so I can upload only them, instead of uploading everything every time.
How can I do that?
| stackexchange/codereview |
I have two collections of objects of different type. Lets call them type ALPHA and type BRAVO. Each of these types has a property that is the "ID" for the object. No ID is duplicated within the class, so for any given ID, there is at most one ALPHA and one BRAVO instance. What I need to do is divide them into 3 cat... | stackexchange/codereview |
I have written a simple app for Android and when I first created the project I selected v2.2 for the build target. I have found out that my app does not work on v1.6, it runs for a few seconds then crashes.
So I guess I am using some commands that were not implemented in 1.6. So I need to find out what these commands ... | stackexchange/codereview |
Is there a generic way to cast int to enum in C++?
If int falls in range of an enum it should return an enum value, otherwise throw an exception. Is there a way to write it generically? More than one enum type should be supported.
Background: I have an external enum type and no control over the source code. I'd like t... | stackexchange/codereview |
Contents of events<xyz>.log:
<log>
<time>09:00:30</time>
<entry1>abcd</entry1>
<entry2>abcd</entry2>
<id>john</id>
</log>
<log>
<time>09:00:35</time>
<entry1>abcd</entry1>
<entry2>abcd</entry2>
<id>steve</id>
</log>
<log>
<time>09:00:40</time>
<entry1>abcd</entry1>
<entry2>abcd</e... | stackexchange/codereview |
I am trying to create a modal window with hidden content using thickbox
It opens the window fine , not sure whys its not showing the content inside the id="hiddencontent".
i am following as suggested in the examples for inline http://jquery.com/demo/thickbox/#
-thanks
<html xmlns="http://www.w3.org/1999/xhtml">
<head>... | stackexchange/codereview |
I remember there being a "Isolated Storage Browser" utility, but can no longer find it. Is there really one?
How can I list, view & open files (NOT prgrammatically) in isolated storage?
| stackexchange/codereview |
Has anyone managed to get the LinkedIn API working from within a coldfusion application?
There are some threads in the Linkedin Developer's community, but any actual working examples or complete code are missing.
In the end I'm looking for a solution to import LinkedIn profiles to our recruitment solution - and also fe... | stackexchange/codereview |
I am looking for a free (for commercial use) library for syntax coloring written in c/c++. Are there any out there?
| stackexchange/codereview |
I'm programming a web application using sqlalchemy. Everything was smooth during the first phase of development when the site was not in production. I could easily change the database schema by simply deleting the old sqlite database and creating a new one from scratch.
Now the site is in production and I need to pres... | stackexchange/codereview |
In my grails application I have an sql query that selects column data from 1 database based on a column in another database.
Thus it is interacting with 2 databases in the SAME query.
Is there a way to pick data from 1 database based on data retrived from another database.
In a scenario like this, how would you put dow... | stackexchange/codereview |
I'm trying to develop an open source application to be sort like a centralized configuration management for all Unix platform like for example (changing root password, SSH configuration, DNS settings, /etc/hosts management.... and others).
I need your feedback for what do you recommend to use as the interface for all t... | stackexchange/codereview |
So here is the problem I am trying to solve - I have an Object with two integer fields that I want to cache
public class MyObject {
int x;
int y;
....
}
Now the field x is what I mainly match on - but there can be duplicates in which case I want to fall back on the second field (so that this.x=that.x and this... | stackexchange/codereview |
I've just started learning Objective-C and made a little compass app that will display a direction when it falls into a range of headings. It works just fine, but I wonder if there is a more concise way of writing it using NSRange. After a lot of looking, it seems like NSRange is used more for string functions rather t... | stackexchange/codereview |
I have a class Foo that contains a map and provides begin() and end() functions to iterate over it:
class Foo {
typedef std::map<int, double> Container;
typedef Container::const_iterator const_iterator;
Container c_;
public:
const_iterator begin() const { return c_.begin(); }
const_iterator end() const { ret... | stackexchange/codereview |
I am creating a SQL Static Code analyzer.
Should the following query be considered as containing a cartesian join:
select t2.*
from test1 t1,
test2 t2,
test3 t3
where (t1.col1 = t2.col2
and t2.col3 = t3.col4)
or
(t1.col1 = t3.col2
and t2.col2 = t1.col1)
| stackexchange/codereview |
I'm trying to learn a little of the mindset of functional programming in F#, so any tips are appreciated. Right now I'm making a simple recursive function which takes a list and returns the i:th element.
let rec nth(list, i) =
match (list, i) with
| (x::xs, 0) -> x
| (x::xs, i) -> nth(xs, i-1)
The function... | stackexchange/codereview |
I am trying to write a complicated stored procedure for the first time. My goal is to get the count with some condition from 2 tables.
Consider Merchant table and Email table.
Email table saves the Email invitations sent by the Merchant. Merchant table has all the Merchant Info along with Email IDs.
My goal is to get ... | stackexchange/codereview |
I have a situation where someone can create a job content type. I've added a CCK field that is related to the 'organisation' content type. So when someone creates a new job posting they can choose which organisation the job is for in that field (auto completed). The problem is I can create a new job and select any orga... | stackexchange/codereview |
For now, it's only draggable within viewpoint.
| stackexchange/codereview |
I was thinking of including functionality to allow users to click on dates in the "important dates" section of my app, but was wondering if it is safe to assume that most phones have Google calendar pre-installed.
I was planning on writing a custom filter to Linkify the dates and pass them to the calendar app as an ev... | stackexchange/codereview |
I had just thought I resolved a problem, but it seemed another one cropped up--or at least the same problem in another form. Now when I try to rebuild everything as suggested in the answer to that question, all Qt Creator shows in build issues is a one line collect2: ld returned 1 exit status
Here's some of the compile... | stackexchange/codereview |
All I need is a simple login page that will check against the username and password of a simple User entity class.
Is that possible with Java EE 6? In the tutorials they always store the users on the glassfish server.
| stackexchange/codereview |
I try outline the pros and cons of CSS compared to tables and learn in which case to use which. Then advantages using css instead of table and files
CSS is for information and tables for data (fuzzy which is which)
CSS you can enlarge infinitely since it's code
CSS you can make multilingual easily just input the te... | stackexchange/codereview |
I want to show notification on my website using Pines Notify jQuery plugin
but i dont know how to use it. Could someone please provide some example code?
| stackexchange/codereview |
I have stumbled upon a problem when creating a program of mine.
I have produced a text file called "values.dat", and within this file I have simply added characters such as below:
Z
D
H
V
Q
Z
D
H
.... and so on for example. I am using C# Language with visual studio 2010. regards.
I know how to read them into my progra... | stackexchange/codereview |
I would like to ask what's the difference between
bindConstant().annotatedWith(Names.named("keepAliveInterval")).to(60);
and
bind(Integer.TYPE).annotatedWith(Names.named("keepAliveInterval")).toInstance(60);
I would like to load all my configuration properties with Names.bindProperties(binder(), prop); in my module a... | stackexchange/codereview |
I have lots of Java code written by other people and not residing in an IntelliJ project.
Is there any plugin that will allow me to point to a directory (e.g. org) and have it traverse the subdirectories, locating each Java source file. I would then like to be able to open the source files readonly to browse them (with... | stackexchange/codereview |
I have done a few websites and applications with support for multiple languages where I've used language xml files and a keyword inside my code. For my web app, I believe that method sucks. I love to read and understand my HTML code. This code doesn't make any sense:
<h1><?= translate('main_headline'); ?></h1>
It look... | stackexchange/codereview |
jquery Ui AutoComplete has a property that named Source.
i want to value this property with static datasource for example generic list or filled dataset on my asp.net application.
is it possible?
would you please give me an example?
thanks.
| stackexchange/codereview |
How can I use the selected item from a jQuery-ui autocomplete in a further jQuery-ui autocomplete function?
e.g. for this HTML:
<div class="ui-widget">
<label for="project">Project: </label>
<input id="project" />
<label for="phase">Phase: </label>
<input id="phase" />
<label for="filename">Project... | stackexchange/codereview |
I've followed the tutorial here to load video files into a C program. But the frames aren't deinterlaced.
From what I've seen, the ffmpeg executable supports a -deinterlace switch. How to I do this in code? What library/functions should I read about?
| stackexchange/codereview |
I have a test sharepoint site with version 12.0.0.6219. I wanted to enable auditing feature, but I couldn't find a link or menu to enable it.
There is no Configure Audit Settings for site even particular document library. I couldn't view the Audit Log Reports either.
So, where I can enable auditing in sharepoint 3.0?
| stackexchange/codereview |
I am trying to do a join that could join on a possible null value.
from data in Data
join d1 in Data on new { a = data.pId, b = language } equals new { a = d1.pId, b = d1.language } into j1
from dta1 in j1.DefaultIfEmpty()
join d2 in Data on new { a = data.pId, b = fallback} equals new { a = d2.pId, b = d2.language } i... | stackexchange/codereview |
Someone here mentioned that We should avoid naming stored procedures in MS SQL server like sp_XXX
Because that taking addition time to SQL server while check does exist system sotred procedure named like that. Because all system stored procs are starting with sp_.
Now I wondering is that a case with Functions in MSSQ... | stackexchange/codereview |
I have a scenario about railway system. In this system there are
Rails
Normal : The rails don’t have any
extern support.
Electrified : The rails supported
with electricity.
Trains
High-Speed Train :This type of trains
track on electrified rails.
Passanger Train : Passanger trains
can move either electrified or norm... | stackexchange/codereview |
I am using Zend Framework 1.10.8.
I want to create a breadcrumb section in my layout.phtml. There are some links in my menu that have dynamic url parameters like http://mydomain.com/editor/edit/id/42
I try to figure out how to pass id=XXX to Zend_Navigation, while XXX comes from the database and is different in every r... | stackexchange/codereview |
I've got a class that stores a static list of connection instances. On callbacks, every instance in the list is called, and if the call fails the instance is removed from the list.
Devil's in detail, since sync is needed when adding, removing and enumerating list items. I'm currently using this pattern:
class Foo : IDi... | stackexchange/codereview |
The <link> tag is most commonly used to associate stylesheets with HTML documents, but as many know, it has a myriad of other uses as well. In general it represents some relationship between two documents. Its beauty and curse is that anyone can make their own rel values (relationship types) if they wish so. W3C has li... | stackexchange/codereview |
What is the trick that some apps after update keep original data saved before update for example scores or settings. I would like to use it with pList, but have not found how yet.
tnx
| stackexchange/codereview |
I have created what I call a "LabeledTextBoxWithLookupControl" which inherits from UserControl. I've put several of these controls on a form.
Now I'm beginning to think that this was a bad idea.
When I call TopLevelControl.SelectNextControl(this, true, true, true, true) from a KeyPress event assigned to the TextBox ... | stackexchange/codereview |
I'm using python on Django and Google App Engine. I'm also using the DateTimeProperty in one of my models. Occasionally I would like to display that date and time to the user.
What is the best to convert the datetime stored in DateTimeProperty into the user's datetime?
Or a more precise way of framing the question: Wh... | stackexchange/codereview |
I'm trying to setup devise with putting gem 'devise' , '1.1.2' in gemfile and run sudo bundle install and then I try to run rake --trace devise:setup. Then the error come out , do anyone know what is wrong with my Rails 3 app?
(in /home/wizztjh/work/testing123)
rake aborted!
Don't know how to build task 'devise:setup'
... | stackexchange/codereview |
Obviously I'm new to this, hence the content of this project. I have written some code that will translate English into Pig Latin. Easy enough. The problem is I want to find a way to translate the Pig Latin back into English using a logic block. The clone string just seems like a cheap way to do it. Any suggestions? He... | stackexchange/codereview |
The Python class has six requirements as listed below. Only bold terms are to be read as requirements.
Close to O(1) performance for as many of the following four operations.
Maintaining sorted order while inserting an object into the container.
Ability to peek at last value (the largest value) contained in the objec... | stackexchange/codereview |
I have a timer calling a function every 15 minutes, this function counts the amount of lines in my DGV and starts a thread for each lines (of yet another function), said thread parse a web page which can take anywhere from 1 second to 10 second to finish.
Whilst it does work fine as it is with 1-6 rows, anymore will ca... | stackexchange/codereview |
In the models.py of django/django/contrib/auth the username is length is changed to 64 fields instead of 30 and the username in database has varchar(64).But it doesnt allow to login with a long username like harry@sdsdasfdfdfgdfgdfgdfgdfgdfg.com
how can this be fixed
class User(models.Model):
"""
Users within the Dja... | stackexchange/codereview |
My java/groovy program receives table names and table fields from the user input, it queries the tables in SAP and returns its contents.
The user input may concern the tables CDPOS and CDHDR. After reading the SAP documentations and googling, I found these are tables storing change document logs. But I did not find any... | stackexchange/codereview |
I've got a GeometryDrawing similar like this:
<DrawingImage x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type wpfhlp:FokusGroupBox},ResourceId=IconTest}">
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Black" Geometry="M0,260 L0,600 L110,670 L110,500 L190,550 L190,710 L300,775 L300,43... | stackexchange/codereview |
The label is initialized with the value of the textbox. Upon clicking the label, the textbox is shown. The user can then edit the contents of the textbox. Upon blurring focus, the textbox is hidden and the label shown. Should the user delete the contents of the textbox or only enter whitespace into the textbox, the tex... | stackexchange/codereview |
Initially, my Tomcat is Started wit hsome Xmx Value. But it is changing with in 5 mins. But My Tomcat is running with heavy Load.? Is it possible OS can reduce/ increase Xmx Value dynamically?
| stackexchange/codereview |
Any grammar can I implement by operator precedence parsing?
| stackexchange/codereview |
We are using SLF4J+Logback combination at our project for a while now and are quite happy with it, but our logging strategy is fairly simple, using straightforward class based loggers and no fancy stuff like MDC or Markers.
What I want to know is if anybody in the community actually uses these features and how they are... | stackexchange/codereview |
I have a JTable with some columns. I have a HashMap of the column identifier mapped to the position in the view, for example:
TableHeader1 | TableHeader2 | TableHeader3
sth. sth. sth.
I know that:
TableHeader1 -> position 0
TableHeader2 -> position 1
TableHeader3 -> position 2
Now I want to reo... | stackexchange/codereview |
I am using Axis 1.4 to to create a webservice client because the service uses RPC encoding. I've autogenerated the client code using wsdl2java based on a provided wsdl file. I can't get the wsdl from the service itself using ?wsdl appended to the service URL because it does't accept GET requests.
When I try to access... | stackexchange/codereview |
I cannot call webmethod from jquery. I think its about web.config file. How can i set web.config file for web services and webmethod?
| stackexchange/codereview |
I have no idea why I'm not able replace & with &
This is my string: /Designers/batlak&selvig.jpg.
This is what I've tried so far:
$image = preg_replace("#(&(?!amp;))#U",'&',$brand['image']);
$image = str_replace('&','&',$brand['image']);
$image = htmlspecialchars($brand['image']);
$image = mysql_real_esca... | stackexchange/codereview |
When using the exec component is it possible to specify args inline rather than having to set them in the ExecBinding.EXEC_COMMAND_ARGS?
For example I have this Route:
from("seda:getPolicyListStart")
.process(new Processor() {
public void process(Exchange e) {
ClientRequestBean requestBean = (ClientRequestB... | stackexchange/codereview |
I have video files written in avi format and I would like to analyze these videos using Python. For that I would like to represent every frame of the video as a 2D matrix.
How can I do that? Google search gives me PyMedia as a way to go? Is it really the best choice or there some other approaches that I should to consi... | stackexchange/codereview |
I am using TortoiseSVN on Windows XP. I use GUI for operations like svn commit and svn update.
How can I start command line for SVN operations ?
| stackexchange/codereview |
How can I declare structure with a fixed size array in it?
I found solution, but it only works for primitive data-types. I need my array to be of type MyStruct.
So how can I declare a struct with an array of other structs in it?
ex.
unsafe struct Struct1{
fixed int arrayInt[100]; // works properly
fixe... | stackexchange/codereview |
I have an app that uses a cursor to select data via rawQuery from an SQLite DB to populate a ListView in Android. Every time the user clicks on a listview item I create a new instance of Activity to re-populate listview.
Is it better to call cursor.close() and db.close() to avoid memory problems? I actually have db.clo... | stackexchange/codereview |
Hopefully I provided the useful info, thanks.
Backtrace
(gdb) run
Starting program: D:\C++\fail/ircserver.exe
[New thread 4968.0x2f40]
[New thread 4968.0x2cdc]
Program received signal SIGSEGV, Segmentation fault.
Irc::Client::getIP (this=0xbaadf00d)
at D:/Dev-Cpp/include/boost/smart_ptr/shared_ptr.hpp:409
409 ... | stackexchange/codereview |
$string = "Test String for the test";
$match = "test string";
How to determine if $match is in $string?
| stackexchange/codereview |
I have an iPhone app that is showing a UIWebView which contains some fields. I would like the keyboard to be more compact. Is there any way to do this to make the keyboard use less real estate?
| stackexchange/codereview |
I've got the basics of LINQ-to-SQL down, but I've been struggling trying to get JOINs to work properly. I'd like to know how to convert the following to LINQ-to-SQL (ideally using method chaining, as that is my preferred format).
SELECT c.CompanyId, c.CompanyName,
p.FirstName + ' ' + p.LastName as Acc... | stackexchange/codereview |
How can we compress php script before upload to main server so that our web site will become so fast to browse & reduce page downloading time..?
Thanks.
| stackexchange/codereview |
I am using a negative margin to pull up an <li> for a overlay effect. This effect works in all browsers, including IE7, but does not in IE8. IE8 seems to pull the entire <ul> up -4px (the negative margin height)
I am done trying to fight it and would appreciate any recommendations by this community on how to resolve th... | stackexchange/codereview |
I recall seeing an API call or a .NET function where for example if I Start->Run
cmd.exe
it would search the %path% until it locates cmd.exe
So that API would look like
String path = GetFullPathOrWhatever("cmd.exe")
// RESULT would be: c:\windows\cmd.exe OR WHEREVER THE SYSTEM WOULD FIND IT
Any ideas which API does thi... | stackexchange/codereview |
I have a PHP app that I am looking to limit the number of users that can be active at any given time. I would like to keep it as light as possible as the reason for implementing it is because our current server can not handle the load - thus this is a temporary solution until we can upgrade. We store our sessions in me... | stackexchange/codereview |
I have the following PHP function
protected function &__group($ar_path, $b_create) {
assert('is_null($ar_path) || is_array($ar_path)');
$parent = &$this->ma_config;
if (!is_null($ar_path) && (count($ar_path) > 0)) {
if ($b_create) {
// Get with Create is necessary
foreach ($... | stackexchange/codereview |
I have recently been researching the SQL Server spatial data types and have decided to try and store my long, lat points in a geography field.
However I cannot figure out how to insert the data into the field, I have tried using stuff like "POINT(double, double), 0" and weird stuff like that, but no success.
Also im cu... | stackexchange/codereview |
Im trying to use the Ancestry gem. How can I display a value from a HASH to screen from a HASH that looks like this:
{ #<TreeNode id: 100018, name: "Stinky", ancestry: nil>
{ #<TreeNode id: 100019, name: "Crunchy", ancestry: "100018">
{ #<TreeNode id: 100020, name: "Squeeky", ancestry: "100018/100019">
... | stackexchange/codereview |
To login to a website I can use curl, what about when I need to login to a client software?
| stackexchange/codereview |
I try to insert JavaScript code to YAHOO.widget.Dialog.setBody(...), bit this does not work in Chrome (I have Ubuntu) (In Firefox the code is working)
The html file (simple example that not working in chrome browser):
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?... | stackexchange/codereview |
I have classes Video and Audio, which extend class Popular
In class, Video & Audio is a function of "public static function parsing ()" are different in themselves
So, as I can from the class of "Popular" address to the class that calls?
That is in a class of "Popular" is a function of "getSong" which has a function ca... | stackexchange/codereview |
I have 3 classes like:
public class Animal
{
... all sort of data ...
}
public class Cat : Animal
{
... more data ...
public virtual int Size { get; set; }
}
public class Dog : Animal
{
... other data ...
public virtual int Size { get; set; }
}
The classes are mapped using the "table per hierarchy" ... | stackexchange/codereview |
Consider the following code:
{
std::auto_ptr<Something> p1(pSomePointer);
std::auto_ptr<Something> p2(pSomeOtherPointer);
...
}
Is there any guarantee that p2 destructor will be called before p1's when exiting the scope? Common sense says that the stack variables should be destroyed from top of the stack first b... | stackexchange/codereview |
Can anyone help with the issue I have with the colour boxes on this page http://www.water-edge.co.uk/lamburngeeky/projects.html. The coloured boxes are supposed to align to the box but are being shunted to the right.
Other browsers are fine.
| stackexchange/codereview |
I am using jQuery tabs but when I click a tab, the hash doesnt appear on the browser URL. Is there a way to get it there? An option I am missing?
Thanks
| stackexchange/codereview |
I have developed a web based portal using php and some part of the site is only accessible by employees only. I would like to add an extra security layer so only employees whose PC is authenticated can access the restricted area.
If it was Dot NET it could be easily done by using activex components but I am not certain... | stackexchange/codereview |
In a recent question, I learned that there are situations where you just gotta pass a char* instead of a std::string. I really like string, and for situations where I just need to pass an immutable string, it works fine to use .c_str(). The way I see it, it's a good idea to take advantage of the string class for its ea... | stackexchange/codereview |
my goal is to target with a keyevent a specific application running either in foreground or background from a background service.
I tried many solutions, but have not yet managed to do it.
The few solutions tried (all from a background running service):
With a broadcast, I tried to target the first application (for e... | stackexchange/codereview |
Anyone know how to get this?
| stackexchange/codereview |
Is there any way to specify a default parameter in a variadic function?(Applies to templates also)
| stackexchange/codereview |
In my application , i need to decode EAN-13 barcode image.The image captured from a iphone camera.after capturing barcode image i have to decode .i am new to iphone.
please refer me some solution or tutorial?
Thanks in advance,
| stackexchange/codereview |
XML cannot be the whole program - anyone else seen this firebug error? happening when receiving remote data (json, as it were) via ajax.
If data type changed json to html, working fine.
This is my actual code in php:
I reloaded the page, once session has been expired.
if($action->getRequest()->isXmlHttpRequest())
{ ... | stackexchange/codereview |
So I just learned about the volatile keyword while writing some examples for a section that I am TAing tomorrow. I wrote a quick program to demonstrate that the ++ and -- operations are not atomic.
public class Q3 {
private static int count = 0;
private static class Worker1 implements Runnable{
publ... | stackexchange/codereview |
In Firefox I suddenly got this message from firebug:
$('a.close, #fade').live is not a function
Indeed, when I click the image gallery and popup displays. I cannot close out of it. The click event never registers due to this error message.
This is script:
$('a.poplight[href^=#]').click(function() {
var... | stackexchange/codereview |
I have a relatively simple myisam table in MySql which currently has about 20M rows.
I insert about 200k rows a night.
There are 3 indexes, one with 5 parts for a lookup, and 1 on the date technical key, and one on another technical key with very low cardinality. The server version is 5.0.45
What I'm finding is that a... | stackexchange/codereview |
Note: I've found the causant of my problem. See below for more info.
I'll be concise. Here's my scenario:
The HTML file:
<form id="login">
<label for="editable">i'm a label for editable</label>
<input id="editable" type="text" />
</form>
The CSS file:
#login label { display: block }
The JS file:
$(document).ready(fun... | stackexchange/codereview |
What is the recommended way to convert a floating point type to an integer type, truncating everything after the decimal point? CLng rounds, apparently, and the documentation for the = operator doesn't mention the subject.
| stackexchange/codereview |
I am having problems when using the strcat function in C++.
If I do :
MyClass::MyClass(char* myString){
char* AnotherString = myString;
strcat(AnotherString, "bob");
}
Then everything is fine. However, if I do:
MyClass::MyFunction(){
char* AnotherString = "fred";
strcat(AnotherString, "bob");
}
I get an unhandle... | stackexchange/codereview |
I have a Word template (suggestion from) which includes an autonew macro to insert a reference number at a book mark and an action button (Submit)which saves the resulting document with the reference number as part of the file name and closes Word. This works perfectly well when opening the template via Windows Explore... | stackexchange/codereview |
Grails has a few of these tags that I'm highly skeptical about.
<g:remoteLink action="show" id="1" update="success" onLoading="showProgress();">
Show Book 1
</g:remoteLink>
This gives me this garbage on the page:
<a href="/show/1" onclick="new Ajax.Updater('success','/show/1',{asynchronous:true,evalScripts:true,... | stackexchange/codereview |
When trying to call a web method from the .net compact framework I get the following (useless) exception in the debugger:
An error message cannot be displayed
because an optional resource assembly
containing it cannot be found
I get a slightly differently worded error on the mobile device, but it effectively says... | stackexchange/codereview |
I'm trying to debug some code that another developer wrote in jquery since page loads really slow and crashes the browser.
I need an advice how to test , debug big amounts of jquery code.
Need some good techniques in memory cleanup in point of view of existing code written by somebody else.
All the suggestions , too... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.