instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've written both a WCF client and a remote internet WCF server.
The remote WCF server is running WPF hosted in a traditional Windows Service wrapper (i.e. not IIS).
Currently, its working perfectly with basic HTTP binding. I'm using Visual Studio 2010 + .NET 4.0 + C#.
Can anyone point me in the direction of the right ... | stackexchange/codereview |
Suppose I have the following, completely pointless code:
object val1 = 1;
object val2 = 1l;
The below will return false, because the two boxed objects aren't the same, as objects they have different types:
val1 == val2
The same applies for:
val1.Equals(val2)
Or:
Object.Equals(val1, val2)
What is the easiest way to ... | stackexchange/codereview |
Possible Duplicate:
How to disable XDebug
I have installed xdebug, but it is making my unit tests much slower. Is there a way to disable it via ini_set or other way. I tried xdebug_disable(), but no difference at all, unless I change php.ini file.
My idea is to turn on xdebug only when code-coverage report is genera... | stackexchange/codereview |
OK so I'm a bit rusty on parts of T-SQL such as string manipulation
I got a string in a field called [path] the value of the field could look like
'foo\Branches\Bar\Baz\Helpers\FileNotFoundResult.cs'
I need to update the field (for all records) so that the result will be
'Branches\Bar\Baz\Helpers\FileNotFoundResult.cs... | stackexchange/codereview |
I want to know if there is a name for a function/method/library that converts a given date object with time information into something like:
a few seconds ago
2 minutes ago
about an hour ago
10 hours ago
yesterday
on 12-May-2010
and so on. I don't know what to google for, but I'm... | stackexchange/codereview |
I have a table which contains a value for every 30 minutes in a month, e.g.
20/03/2010 00:00 12
20/03/2010 00:30 14
etc
All of this data is stored in GMT
I need to do a select on this table for the data in bst/clock time
for example
select *
from tbl
where dt between '01 April 2010' and '30 April 2010 2... | stackexchange/codereview |
OK, say I've got a bunch of discs sitting on a plane in fixed known locations. Each disc is 1 unit in radius. The plane is fully covered by the set of discs, in fact, it is extensively over-covered by the set of discs, by an order of magnitude or two in some areas. I'd like to find a subset of the discs that still full... | stackexchange/codereview |
I have a complex json object on the client (nested arrays) and need to pass this to the server for processing. I am currently using an ashx, and am experimenting with jquery $.ajax and $.post calls trying to get a usable structure returned to the server. Could anyone advise me on the best way to pass my complex json ... | stackexchange/codereview |
My web application have a continuously running service to send a report to a ftp server, the file need to be encrypted by using a Public Key. Thus my question is where should I store the Public Key? I only have one Public Key so using an advanced Key Store seems to be overkill?
Should I just manually create a folder on... | stackexchange/codereview |
I am trying to see if using a custom index for a specific type of data might reduce fragmentation in my database.
[Edit: we are using MS SQL Server 2008 R2]
I have an SQL database containing timestamped measurement data. Lots of data is inserted all the time, but once inserted it practically never needs to be updated. ... | stackexchange/codereview |
when some link "Make Default" is clicked the following SP is executed.
What I want is that when the link "Make Default " is clicked then
only the "IsDefault" record corresponding to the particular "UserAddressID"
is set to 1 and ALL the rest of records to be set to 0 in the teable's column
giving me the following err... | stackexchange/codereview |
Could you recommend me some web portals or sites, where I can find good examples (or tutorials, screencasts) for the third version of Spring?
P.S. I'm beginner in Spring (and in java web-frameworks). And now I'm choosing the version of Spring to learn (between 2.5 and 3). Which one would be best for me?
| stackexchange/codereview |
I want to customize my archives to sort by month, but if it was in the previous year to group itself into a yearly category. Right now I have:
<ul><?php wp_get_archives('type=postbypost&limit=10'); ?></ul>
That shows the last 10 posts. I know that the following will sort by month:
<ul><?php wp_get_archives('type=month... | stackexchange/codereview |
I have the following problem.
I have some project written in Visual Basic (not Visual Basic .NET but simple Visual Basic - sic!). I can compile it and generate a dll.
Then inside my web application I add reference to this dll library. When I run my web application hosted in default Visual Studio server, everything is... | stackexchange/codereview |
UPDATE:
The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or '... | stackexchange/codereview |
I am using Joomla 1.5 . I have developed a custom component that's basically a product catalog but with many custom admin options for the product page and categories. I have also created a custom view. In the component, you can create categories and assign them to the products. After every category I add, I need to go ... | stackexchange/codereview |
I wrote a download counter:
$hit_count = @file_get_contents('download.txt');
$hit_count++;
@file_put_contents('download.txt', $hit_count);
header('Location: file/xxx.zip');
As simple as that. The problem is the stats number is truncated to 4 digits thus not showing the real count:
http://www.converthub.com/batch-ima... | stackexchange/codereview |
How std::input_iterator_tag is different from std::forward_iterator_tag?
Inspired by SO answers about C++ iterators. Both tags seem to be appropriate in same cases.
| stackexchange/codereview |
I’m trying to manage multiple models in a messaging based system. Each model might have values that are dependent on other models. For example:
public class V2Model : BaseModel
{
private int mSomeVal;
private byte mSomeByte;
// …
// Update mSomeByte based on multiple models values
... | stackexchange/codereview |
Such as the title
I need to add some details after load from json data format, however After I swap the two columns ( one is first column which used as rowid ), 'checkId' is no longer the rowid. In setRowData method, if each row of the swapped column' values are same, it can not identify each row.
I just a beginner of ... | stackexchange/codereview |
I only need to detect if is mobile device or not...
| stackexchange/codereview |
I have a Wicket 1.4 app. My .html files are in UTF-8.
But when rendered, the page is doubly-encoded, like if the UTF-8 content was treated as cp1250 and converted to UTF8.
Maven's pom.xml:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
...
<plugin>
<inherited>true</inh... | stackexchange/codereview |
Which is more expensive to do in terms of resources and efficiency, File read/write operation or Database Read/Write operation?
I'm using MongoDB, with Python. I't be preforming about 100k requests on the db/file per minute. Also, there's about 15000 documents in the database / file.
Which would be faster? thanks in a... | stackexchange/codereview |
I have a CCSprite with an image Texture. I want to modify this image inserting a circle in a different position at each frame.
I tried to insert a circle overriding draw() method. But it doesn't work for me because i need that the past draws persist while i draw the circle in different positions.
Any ideas??
Thanks in... | stackexchange/codereview |
This code works:
$('[id$=lbl]').val() == "0" ? alert('Bla') : null;
but this codes don't:
$('[id$=lbl]').val() == "0" ? function(){alert('Bla'); return false; } : null;
$('[id$=lbl]').val() == "0" ? alert('Bla');return false; : null;
$('[id$=lbl]').val() == "0" ? return false : null;
i need "alert" after "return fa... | stackexchange/codereview |
Wikipedia says that this should work:
echo "Some message" | mail -s "meeting today" somebody@example.com
But I do not get any mails, instead an error message:
$ echo "world" | mail -s "hello, " -c lazer@gmail.com
You must specify direct recipients with -s, -c, or -b.
$
What is the correct way to use mail?
| stackexchange/codereview |
we are working on a large web application with Rails for quite a while and produced a lot of css for our templates. Stylesheet definitions are organised in a bunch of css files that have grown with the project. As people are not always as disciplined as they should be, it seems to me that a lot of definitions have beco... | stackexchange/codereview |
I remember reading somewhere that to really optimize & speed up certain section of the code, programmers write that section in Assembly language. My questions are -
Is this practice still done? and How does one do this?
Isn't writing in Assembly Language a bit too cumbersome & archaic?
When we compile C code (with or... | stackexchange/codereview |
I found different syntax version of firing an event in c#, and I cant really figure out what exactly the difference is between:
if (OnMyEvent!= null)
OnMyEvent(this, new MyEventEventArgs());
and:
OnMyEvent.Invoke(this, new MyEventEventArgs());
especially if I dont have any thread context changes?
Thanks in advanc... | stackexchange/codereview |
If I want a home controller in Kohana, I can do that relatively simple.
APPPATH/classes/controller/home.php
class Controller_Home extends Controller_Base { ... }
But what if I want one that is called refer_a_friend?
I can't do this because Kohana sees an underscore as a directory separator.
APPPATH/classes/controller/... | stackexchange/codereview |
I have this flash header in my website. On older computers the flash file askes a lot of recourses and that is not considered user friendly. Can this effect be achieved in a other way of scripting for example with ajax or Jquery?
| stackexchange/codereview |
I'm trying to improve on a Winforms project where datatable rows are stored in the Tag property of ListViewItems. When the datatable is refactored to List<T> (or actually classes containing lists) it would help immensely if I could make the Tag property generic by using a subclass of ListView.
In the best of worlds, I'... | stackexchange/codereview |
How can i display the validation error messages just below the form field rather than showing all messages at the top of the page.
My Rails version is Rails 3.0.0
I have a table name category with fields id, title and description.
My model class is
class Category < ActiveRecord::Base
validates_uniqueness_of :title, ... | stackexchange/codereview |
I have a variable that holds the values 'Weekly', 'Monthly', 'Quarterly', and 'Annual', and I have another variable that holds the values from 1 to 10.
switch ($var2) {
case 1:
$var3 = 'Weekly';
break;
case 2:
$var3 = 'Weekly';
break;
case 3:
$var3 = 'Monthly';
... | stackexchange/codereview |
I have an Azure application that works perfectly on every one of my colleagues machines. On mine, the web application works, but not the azure project, which runs on the local development fabric.
I'm getting a 403 error, which causes a blank page in Chrome. The application_start method gets fired and sets up the routes... | stackexchange/codereview |
I have a Dialog with a EditText and a button. This EditText will name the database table I will create so its of the utmost importance it is validated. So i would like to pose 2 questions:
1) This is quite simple, but i couldn't fin it anywhere: what characters can a database table name accept? Can it accept numbers? A... | stackexchange/codereview |
How do I get the 'state' of a Tkinter Checkbutton? By 'state' I mean get whether or not it has a check mark in it or not.
| stackexchange/codereview |
i have a table like below:
create table info (username varchar(30),otherinfo varchar(100));
now i want to alter this table to have new field and this field has to have default value as
md5(username)
something like below:
alter table info add NewField varchar(100) default md5(username);
how to do so?
Thanks for your... | stackexchange/codereview |
I have a both onKeyDown and onMotionEvent overriden in my application. Both of these work, but the onKeyDown has strange behavior. I can always interact with the screen on the device, but after I have interacted with the screen, the buttons do not work. In order to make them work again, I have to push other buttons (on... | stackexchange/codereview |
I need to maintain 2 network connections on a Windows Mobile 6.x. When I plug in with the second USB to Ethernet device, it disables the previous one after about 30 seconds. How do I keep both of them enabled?
| stackexchange/codereview |
I like to create a progress bar for my ajax calls.
For this I can make my server side script to return the state of it's progress.
So I need for javascript to read this progress level and show it.
Is it possible or am I on the wrong road?
| stackexchange/codereview |
Is there a way to open a translucent or transparent activity so that you can still see the old activity behind it on the screen?
[Edit] To make the question more clear, I know how to create a transparent activity. The problem is when I start it using an intent, it clears the screen and you cannot see the previous activ... | stackexchange/codereview |
I just got access to MSDN... is there a "learning C#" curriculum is here somewhere?
(By this i mean a set of tutorials and exercises, etc.)
Thanks
| stackexchange/codereview |
I am currently working on an application that uses a SQL Server 2008 database that sits internally on a LAN. I am having two problems related to managing the database:
Currently, I have 2 databases in SQL server, one for test and one for production, and I copy tables and views etc... between these two databases when ... | stackexchange/codereview |
I have a encryption scheme implemented, the constituent components: The symetric cypher and its chaining mode, and the HMAC algorithm are hard-coded into the binary. Additionally, the parameters of the algorithms (HMAC key, symetric-key symetric IVEC) are specified in binary files, one for each parameter.
I would like ... | stackexchange/codereview |
I'm writing a simple desktop application in C# that displays a line of text in a Textbox whenever someone logs on or off the Active Directory. It is destined to run on the same machine as AD, under Windows Server 2008 and Windows Server 2003. So far so good, for S2008 I've managed to get triggered by a ManagementEventW... | stackexchange/codereview |
I am using vba to display pictures from file instead of a dummy image inserted into my form detail (i.e setting the Picture property of the Access image control), using:
Private Sub Form_Current()
On Error Resume Next
Me![imgFromFile].Picture = Me![txtPath]
End Sub
This works well when displaying individual forms on s... | stackexchange/codereview |
I have the following css defined in a style applied to a panel in my aspx page.
max-height: 70%; overflow: auto;
max-width: 70%; overflow: auto;
In Mozilla, I can resize my browser window and the panel will properly display scroll bars when the browser window becomes too small to contain the full content of the panel.... | stackexchange/codereview |
I have a database structure where one table extends another table, and then a third table has a foreign key that is valid in the first two tables.
For example:
TABLE Person
PersonId int
Name varchar
ShirtId int
TABLE Shirt
ShirtId int
Color string
TABLE SpecialShirt
ShirtId int
Sleeves int
The classes look like thi... | stackexchange/codereview |
In this jQuery code, I am dynamically adding boxes to the canvas div like this:
var canvas = $('#canvas');
canvas.append('<div id="1"></div>');
('#1').addClass('ui-boxer')
.css({ border: '1px solid white',
background: 'orange',
padding: '0.5em',
... | stackexchange/codereview |
I started on developing custom form elements and decorators. I save them to the zend/library/form folder is that right?
And how do I use this custom elements?
$d = new My_Form_Element_Date('dateOfBirth');
$d->setLabel('Geburtsdatum:')
->setValue('20 April 2009');
$this->addElements(array($d));
Gives me the error t... | stackexchange/codereview |
Example :
a = 1
b = 2
c = 3
..
..
z = 26
aa = 27
ab = 28
how to convert another string into an integer? for example i want to convert 'lmao' to an integer. please help me :) thank you.
in pascal :)
| stackexchange/codereview |
Let's consider this code sample:
<rich:tabPanel switchType="ajax">
<rich:tab label="tab1">
...
</rich:tab>
<rich:tab label="tab2">
...
</rich:tab>
</rich:tabPanel>
This will create a simple tab panel with 2 tabs, the content of the <rich:tabPanel> is refreshed using Ajax.
So if I am on ... | stackexchange/codereview |
I am running my application on my production server and it is giving me this error:
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
... | stackexchange/codereview |
hi I have image of my house.Top view image.I want to have latitude lotitude info displayed when i click on the image.
I do have latitude longitude value for 1 left top part of image.
Also how to maintain latitude longitude values while zooming in out of the image.
| stackexchange/codereview |
I have an ASPxMenu bound to my Web.sitemap file through a standard asp:SiteMapDataSource control. The menu is supposed to be horizontal, as my main top menu. Menu and items are as follows:
<dx:ASPxMenu ID="topMainMenu" runat="server" Orientation="Horizontal"
DataSourceID="siteMapDataSource" RenderMode="Lightweig... | stackexchange/codereview |
We are developing a software suite that heavily involves user interaction. We'd like to have a nice touch-based user interface, very similar to that of Android. Are there any libraries or other ways to easily build and use such user interfaces for own applications. We mainly develop in C++, but things in Python or Java... | stackexchange/codereview |
I want to kill a subprocess if the time of executing is too long.
I know I have to use os.kill or os.killpg.
However, the problems comes out when if I am not a root user. For example, in my designed GUI, I want to call subprocess, and os.kill or os.killpg to kill the subprocess. But my GUI is owned by apache. So when ... | stackexchange/codereview |
Have several html snippets that I want included in a 'parent' file.
The parent file contains relative paths.
These snippets also contain relative paths, relative to their location - not relative to the file they will be included into.
For example, one snippet is the header, common to all pages on the site.
<div style=... | stackexchange/codereview |
could you please explain me this piece of code? Thank you.
items.addItem("a").addItem("b").addItem("c").run();
| stackexchange/codereview |
State transitions in flex are very helpful. Is it possible to add an automatic state transition between state A and state B in case there is no user response for 5 mins in state A or pop-up an alert?
| stackexchange/codereview |
I have searched high and low, but have found very little to achieve my desired result, I am trying to take a bunch of images, and create a smooth auto scrolling horizontal image scroller, similar to this http://www.enova-tech.net/eng/lab/jmycarousel/1, the problem I have is that this plug-in was built on jQuery 1.3.2 i... | stackexchange/codereview |
I have a project that's made up out of an ear, some XSLT files, RNC schema files. I want to keep the XSLT, schema and document files external (for hot-replacement), and I want to package everything in a zip on release. Lets' name the project 'foo'. I have the following modules:
foo (parent)
foo-jar creates a jar file ... | stackexchange/codereview |
i would like to parse web content and get only text from the web content. I am getting web content as HTML/java script. Now i need only text from the content.
Can some one help me in doing this? I am using HTML parser to do this.
For example i need the text content in the below file which is in bold.
The URLConnection... | stackexchange/codereview |
I'm creating an app that has an "export" feature which converts the user's data into a CSV file, and allows the user to send it as an attachment to somebody (presumably themselves).
The CSV file is created successfully, but when I try to send the email, I encounter a problem. The device looks like it is going to send t... | stackexchange/codereview |
I have two programs interacting via a shared memory segment. When using the segment for read or write, they hold a lock.
Should either of them crash (get killed, typically - possibly with something untrappable) in a critical section, I would like them to release the lock so that the shmem isn't locked out completely... | stackexchange/codereview |
I have a page that when a user clicks a button, a PDF is dynamically generated and offered for them to download.
This is the code that's letting the user download the pdf:
// Omitted code that generates the pdf bytes
response.ContentType = "application/octetstream";
response.AppendHeader("Content-Disposition", "attach... | stackexchange/codereview |
I have the following ruby hash:
h = { i1: { q1: 1, q2:2 }, i2: { q1: 3, q2: 4} }
and I want to transpose it as follows:
{ q1: { i1: 1, i2: 3 }, q2: { i1: 2, i2: 4 } }
Now, I came up with a function that does what I want,
but I wonder if there is a more succinct/elegant way for the same thing?
My solution:
ht = H... | stackexchange/codereview |
hi i have a problem with sprite during startup
The problem is that the sprite rotates 180 degree to and fro once before setting to its position.
It happens very fast.
I know it is some bug but couldnt find the problem.
Can anyone please help me.
The code are as follows
CCSprite *arrowSprite = [[CCSprite spriteWithFile:... | stackexchange/codereview |
I call createTableData from viewDidLoad. What I don't understand is I'm doing an alloc for a NSMutableDictionary but I don't understand why that object is not released from memory-despite the release.
I do see memory leaks and Leaks seems to point at this section of code.
Can someone point me to a url where I might be ... | stackexchange/codereview |
I see these have been released for VS 2010. I am trying to locate them for VS 2008, but I am not able to find them. Can anyone provide a link? Much appreciated!
| stackexchange/codereview |
I am trying to adapt my application from a confirmation model to an undo model. For those of you who don't know, this is where you can delete something with one click but if it was a mistake you can undo it just as easily, as opposed to interrupting the user every time he/she wants to do something to ask the annoying ... | stackexchange/codereview |
I have a normal mapView, which can tell the users location, but when users location is located my map doesn't suddenly zoom in to the users location like Apples maps application.
Does anybody know how to implement this feature!
| stackexchange/codereview |
I have this query:
SELECT * FROM references WHERE title LIKE '%NSObject%'
Giving this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near references WHERE title LIKE '%NSObject%' at line 1
However, I cannot find my mistake. What... | stackexchange/codereview |
so I have been playing around with django for a bit and I really do like this framework. However, I would like to understand better how it actually works 'under the covers'.
Here is my current view of client-server-django world, which is very rough and will probably make your toenails curl (sorry)...
The browser send... | stackexchange/codereview |
The title is a bit weird, so let me clarify.
I have two objects, Garage and Vehicle, in a one-to-many relationship. There are multiple types of vehicles, such as car and truck; the type is persisted as a string in the Vehicle table.
Here's the two classes:
@Entity
@Table(...)
public class Garage {
....
@Colum... | stackexchange/codereview |
I'm really stuck with creating an RegEx that excludes files from being rewritten.
I am using Cherokee as web server and want to turn links like http: //example.com/123 to http: //example.com/get.php?short=123.
My problem is that I want to create a switch for files and no files.
/([^.]+) => /get.php?short=$1
/([.]+) => ... | stackexchange/codereview |
I am working on a NANT build project to build a VS project. One of the build file has a property definition like this:
<property name="App.dir"
value ="${directory::get-current-directory()}\Source\App"/>
This property value has been used in many other places. For example:
<exec program=".\test.exe" workingdir=".">... | stackexchange/codereview |
I'm deploying my Rails project on a hosting.
What folders and files can i safely remove from Rails project, that needed only in development ?
| stackexchange/codereview |
Is there a simple way to parse a string of floats to a float array? I'm writing an importer which needs to parse an ascii file to get some values out and I'm just wondering if there's a simpler way to do this then search for all the whitespace myself and use Float.parseFloat(s) for each whitespace-separated value.
For ... | stackexchange/codereview |
Is there any way to prevent web crawlers to crawl and cached my public facing web application website?
| stackexchange/codereview |
My .net application has a url that ends with .aspx like:
www.example.com/users/find.aspx?userid=234234
I don't want to re-write the url, I want to keep it as is.
Is it possible for a Rails 3 application (nginx, passenger) to respond to this request using a customized route?
| stackexchange/codereview |
I'm loading some dynamic content into a window with jQuery.
I would like the address in the browser to appear like it has loaded a new page ie
We are looking at:
url.com/articles
and we click an article so the address now looks like:
url.com/articles/something
I'm achieving close to this with:
location.hash = '/'+art... | stackexchange/codereview |
Is it possible to write the Y Combinator in Haskell?
It seems like it would have an infinitely recursive type.
Y :: f -> b -> c
where f :: (f -> b -> c)
or something. Even a simple slightly factored factorial
factMaker _ 0 = 1
factMaker fn n = n * ((fn fn) (n -1)
{- to be called as
(factMaker factMaker) 5
-}
fail... | stackexchange/codereview |
I'm trying to create a System.Drawing.Font from a LOGFONT using P/Invoke and Font.FromLogFont.
The requested font have been created, however it always have the same rendering quality - no matter which value I have assigned to the lfQuality member of the LOGFONT struct.
here is relevant code:
//LOGFONT struct
[StructLay... | stackexchange/codereview |
I am always a bit confused what the different @property parameters do. So I thought the easiest would be to look what XCode generates from it. For me the best documentation is always the source-code itself. In my naivete I am believing that XCode (respectively the pre-compiler behind it) makes some objective-c code fro... | stackexchange/codereview |
Given some user data.
Depending on the controller this data should be rendered either into a PDF or into a HTML file.
I really like the Zend way of the .phtml views combine HTML with very basic PHP.
Is there a similar approach for PDF and/or XLS that allows co-workers without strong programming background to change th... | stackexchange/codereview |
Does PHP have such options when saving file?
| stackexchange/codereview |
I have a simple Android application that loads a page in a WebView, then most of the real work is done by the server-side scripts. Everything is working great, except that I currently have the page URL hard-coded in the Android application, sort of like this:
mWebView.loadUrl("https://www.my-application-url.com");
Thi... | stackexchange/codereview |
Okay, I'm having one of those moments that makes me question my ability to use a computer. This is not the sort of question I imagined asking as my first SO post, but here goes.
Started on Zed's new "Learn Python the Hard Way" since I've been looking to get back into programming after a 10 year hiatus and python was a... | stackexchange/codereview |
I’ve been trying to get a JavaScript regex command to turn something like "thisString" into "This String" but the closest I’ve gotten is replacing a letter, resulting in something like "Thi String" or "This tring". Any ideas?
To clarify I can handle the simplicity of capitalizing a letter, I’m just not as strong with R... | stackexchange/codereview |
I have written a custom VirtualPathProvider for ASP.NET MVC 2 that searches assemblies for views and static content so that I can reuse content in multiple sites. It works just fine while using Cassini, but when I deploy the site to a server running IIS 7, static files are just returning a 404 and not even getting rou... | stackexchange/codereview |
I am currently looking at trying to generate custom urls/routing using magento, currently I have set a default route in config.xml within the local module.
<frontend>
<routers>
<portfolios>
<use>standard</use>
<args>
<module>Custom_Portfolios</module>
... | stackexchange/codereview |
What is the correct MS SQL syntax to select multiple ORDER BY columns when the ORDER BY is based on a CASE statement?
The below works fine with single columns, but I need to sort by multiple columns:
SELECT * FROM Products
ORDER BY
CASE WHEN @SortIndex = 1 THEN Price END ASC,
CASE WHEN @SortIndex = 2 THEN Price DESC,... | stackexchange/codereview |
I have this script which is used to append:
function append_place(type) {
var shop_type = type;
$("#shop_type").append(shop_type);
}
Then in my view.html.erb:
<div id="shop_type"></div>
where and type is the data in my Rails database column.
When type has the value cafe and the output of the HTML is:
... | stackexchange/codereview |
I have several WCF services.
When I check them on the server (example: ServiceTest.svc?wsdl), than I see an xml file with info about the wcf service. So the services works fine.
I have a Silverlight application on a different server.
I get the 'famous' crossdomain error.
When I place a clientaccesspolicy.xml in the dir... | stackexchange/codereview |
I'm using the Windows Ribbon Framework in an unmanaged C++ application in Visual Studio.
Is it possible to add a button or other control at runtime? I can set up my ribbon using IUIFramework::LoadUI, but I can't modify it afterwards.
| stackexchange/codereview |
I am trying to find posts within a category that are associated with a category. Right now, I have this:
$this->set('posts', $this->Category->Post->find('all', array('conditions' => array('Category.uri' => $uri))));
But this doesn't seem to work. An error is showing this:
Warning (512): SQL Error: 1054: Unknown column... | stackexchange/codereview |
I have 2 tables with the following structure...
Table cellphone_tokens:
-----------
| id (pk) |
| model |
-----------
Table cellphone_keys_vals:
-----------
| cell_id |
| key |
| value |
-----------
cell_id is the id of the corresponding model in the first table. I've also entered the model again in the sec... | stackexchange/codereview |
I'm using a Asp.net dynamic web site application and can't save configurations into web.config file.
I have tried something like this, but doesn't work!
var configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
configuration.AppSettings.Settings["Value"].Value = "Some val... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.