instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'am currently developing a WYSIWYG editor for my CMS and got serious bugs here. After switching from IFRAME to DIV contenteditable the behavior changed dramatically.
Using execCommand('formatBlock') to create headlines causes unwanted BR tags to the source code, but only in Mozilla. I thought the reason could be <br _... | stackexchange/codereview |
I have a win-service what make calls to wcf-service, hosted inside sharepoint 2010.
In wcf-service i access a SPList on the sp-site.
But I can't access a list becouse of win-service uses anonymous call to wcf-service.
How can i implement authenticated request to sharepoint wcf-service.
My win-service runs under identit... | stackexchange/codereview |
I generated a histogram by using matplotlib
import numpy as np
import pylab as P
mu, sigma = 200, 25
x = mu + sigma*P.randn(10000)
P.figure()
bins = 10
n, bins, patches = P.hist(x, bins, normed=1, histtype='bar', rwidth=0.8)
P.show()
I want to make the picture smaller, how could I do that?
Thanks for your help
| stackexchange/codereview |
I want to sort a list in C#.
Like where structure property AVC goes to true then show them first then AVC goes to false. Are any way to do this in C# LINQ?
| stackexchange/codereview |
I have around 300 records in some table in mysql database. And I have a requirement to fetch 40 random records with one query. How to write the query?
need help
thanks.
| stackexchange/codereview |
I would like to build an internal search engine (I have a very large collection of thousands of XML files) that is able to map queries to concepts. For example, if I search for "big cats", I would want highly ranked results to return documents with "large cats" as well. But I may also be interested in having it retur... | stackexchange/codereview |
I want to match roman numbers using Groovy regular expressions (I have not tried this in Java but should be the same).
I found an answer in this website in which someone suggested the following regex:
/M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})/
The problem is that a expression like /V?I{0,3}/ is not greed... | stackexchange/codereview |
We're using jstree for a navigation menu editor, and have been assigning metadata to the nodes of the tree like this:
var data = currentNode.data("jstree");
data.title = textBoxTitle.val();
data.linkType = textBoxLink.val();
I can see that the data object contains the relevant properties, but not too sure where jquery... | stackexchange/codereview |
I created a form that randomly selects 12 T/F questions from an array of 16, displays them in a random order and will score it all at the end. The problem is that I cannot get the form to clear on refresh. When I try with nearly any method, the form, questions and all disappears.
The reset button, however, does work.
H... | stackexchange/codereview |
I'm having troubles in overloading comparison operators in order to compare two pair struct in such way:
typedef pair<string, unsigned int> INDEX;
bool operator>(INDEX &v1, INDEX &v2)
{
if(v1.second == v2.second) //if integer parts are equal
{
//string that comes earlier in the dictionary should be lar... | stackexchange/codereview |
This question is a general one.
I have java code for hmac(sha1 and md5) coding and a client server key exchange protocol(both codes in java).
Now i want to embed/integrate this with a browser to implement password hashing. Any ideas how i might proceed about it?
| stackexchange/codereview |
I'm having trouble figuring out a solution to this. I have several tables in my database with attributes having a date type. However, in one of my tables I was not thinking during the design process so the attribute is not of date but is a varchar. The dates in the "incorrect" table is formatted as dd-MMM-yyyy where... | stackexchange/codereview |
// javascript for ajax pagination//
document.observe("dom:loaded", function() {
// the element in which we will observe all clicks and capture
// ones originating from pagination links
var container = $(document.body)
if (container) {
var img = new Image
img.src = '/images/spinner.gif'
function c... | stackexchange/codereview |
Does anyone know if it's kosher to pass a boost::unordered_set as the first parameter to boost::split? Under libboost1.42-dev, this seems to cause problems. Here's a small example program that causes the problem, call it test-split.cc:
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/str... | stackexchange/codereview |
I am writing data to yaml files from ruby and I frequently get aliases dotted about the file. Things like:
- &id001
somekey: somevalue
- *id001
In my case I am using the yaml files to aid readability and add names to values in the files as the existing data is just | separated values with no keys. How can I preven... | stackexchange/codereview |
Im developing an asp.net mvc 2 project and I would like to implement the following licensing scheme:
Customers can buy the solution compiled or with the source code (the second option it will be more expensive). So if they buy the source code they can customize it as they need. But I would like them to pay for each cop... | stackexchange/codereview |
His,
I am using UiBinder whenever possible to improve application performance when possible. However, as far as I understand, UiBinder is at its best when corresponding template contains losts of static information.
In my case, mobile app, most of the screen areas contain dynamic information. For instance, there is a... | stackexchange/codereview |
For those of you who have used the Facebook app, it has an interesting way of showing more information on the home activity by having a draggable view at the bottom of the screen that, when dragged up, shows Facebook notifications. Dragging the same view back down hides the notifications. Note that this will work eit... | stackexchange/codereview |
I am working with SharePoint using http post request.
My url contains '[' so I am getting some exception.
Does anybody knows how to send a Post or Get request if the url contains '[' or ']' character?
| stackexchange/codereview |
HI all
can anyone please refer me, the iphone image gallery source code?
Any link ,sample code will be great help.
i am trying to show some 70 to 100 images as thumbnails , and on selecting any image, it should give a full view of that image,i am trying to accomplish, whatever is in iphone's picture gallery,
i thoug... | stackexchange/codereview |
I want to use a 4:3 video as a background on a site. However, setting the width and height to 100% doesn't work since the aspect ratio is kept intact, so the video doesn't fill the whole width of the site.
Here is my HTML and CSS code.
HTML:
<!DOCTYPE HTML>
<html land="en">
<head>
<link rel="stylesheet" type="text/cs... | stackexchange/codereview |
I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist?
I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entere... | stackexchange/codereview |
Is it possible to get the SignedInGamers name on WP7 like you do with the XBOX? I've tried testing it with:
SignedInGamer gamer = Gamer.SignedInGamers[0];
gamer.DisplayName;
But have only received a null value for the gamer object on the phone.
Thanks
Sebastian
| stackexchange/codereview |
I'd like to pass an argument {{x}}to my custom file change_form.html, which is located in /home/django/project/app/template/admin/change_form.html. I found this code but it doesn't work:
class MyModelAdmin(admin.ModelAdmin):
# A template for a very customized change view:
change_form_template = 'admin/change_fo... | stackexchange/codereview |
I am facing issues with logging of 2 applications deployed in same JVM.
I have 2 applications say A & B running in Websphere application server.
A is EJB project having log4j.jar in EJB jar
B is also EJB project but doesn't have log4j.jar as part of EJB jar and it refers to log4j jar available in Websphere lib.
A & B h... | stackexchange/codereview |
I currently have a copy of the app deployed to my local IIS as debug.wifclientapp.com and it will go to the ADFS server to authenticat but when it redirects after successful authentication it goes to www.wifclientapp.com which is the test instance on a remote server.
I setup the test instance first. How can I get it t... | stackexchange/codereview |
My requirement is I need the scope of Hudson's environment variable in the subproject's build parameter for svn url.
I want to set SVN Branch name as an environment variable of Hudson, as I want it to be used by all my projects configured there.
If I access my environment variable [BUILD_BRANCH] as
http://svn/repos/pro... | stackexchange/codereview |
I'm trying to remove the first link-image below the h4 and prepend it to div.image-thumb. The code i use work's fine if it's just one table row ".tr-class" .
But when I have multiple rows, it copies all the link-image into .image-thumb. So if I have 10 rows, then each row will have 10 link-image each. How can I can get... | stackexchange/codereview |
I have multiple websites running on Tomcat:
<Context path="/foo"......</Context>
<Context path="/bar"......</Context>
When I surf to one of the applications, it takes approx. 3 minutes to load. However, if I hit the refresh button midway through the 3 minute wait/load time, the site comes up right away.
In general, is... | stackexchange/codereview |
I have a form with 2 text inputs and 2 span controls. Normally, when textbox A is changed an event is fired to change span A, and when textbox B is changed, an event is fired to change span B.
However, in one particualar case I would like a change either textbox A or textbox B to update both span A and B. I tried wirin... | stackexchange/codereview |
I am working on an app where i am doing some code in a class which is derived from NSObject and in this class i want to call another class which is a UIView type class and add it above current view or if possible over window. Can someone suggest me how will i do it as i cannot call [self.view addsubview:view] from a NS... | stackexchange/codereview |
I have a page that lists all from my Post table, it looks like this:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>TODO supply a title</title>
</head... | stackexchange/codereview |
I have a string property on an entity that I would like to mark as required. For example,
public class Product
{
public virtual string Name { get; set; }
}
In my mappings, I can declare Name as required (using Fluent NHibernate):
mapping.Map(x => x.Name).Required();
However, this only restricts the string from be... | stackexchange/codereview |
When I touch a control outside of the PopupWindow, the popup dismissed, but the touched control does not get focus.
Q: What can be done, to make sure the clicked control get focus?
I tried setOutsideTouchable with no luck, it looks like this method is for some thing else.
| stackexchange/codereview |
I have a struct in a web service in c#. When I use "Select * from TABLE1"; in a WebMethod I get a fully populated struct. But when I add a WHERE clause, I get null in response. Why is this? I have searched everywhere for a simple explanation but haven't found one.
How can I use a SELECT * FROM TABLE1 WHERE _id=" + id ... | stackexchange/codereview |
How can I convert these:
[172592596,93038592,154137572]
To look like these:
['172592596','93038592','154137572']
| stackexchange/codereview |
Say I have the following .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_COOKIE} name=value [NC]
RewriteRule ^image01.gif$ http://www.domain.tld/images/partner/image01.gif [NC,QSA]
RewriteCond %{HTTP_COOKIE} name=value [NC]
RewriteRule ^image02.gif$ http://www.domain.tld/images/partner/image02.gif [NC,QSA]
What ... | stackexchange/codereview |
I've got a jquery roller/scroller that displays snippets of records returned from my 'Helpful Hints' database table query. I want to keep the scroller to about 15 records but not always the first 15 records.
Is it more efficient to write a query like:
SELECT *
FROM table
ORDER BY RAND()
LIMIT n
Which returns a random... | stackexchange/codereview |
How can I save the state of my Silverlight application in case user pressed back button (or for example pressed on banner inside application) to set the same settings on application resume.
Is there anything similar to registry in Windows Phone 7, some local storage?
Can I use any database to hold application settings ... | stackexchange/codereview |
I have a TimeZoneInfo property on some object which I need to save to a Microsoft SQL Server 2008 database. What type of database field type should I use, please?
If it helps, I'm also using Entity Framework 4, which came with my Visual Studio 2010.
| stackexchange/codereview |
The page is
"http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo_extended.html"
Let's look at the y-axis, the numbers there do not make any sense, could we change it to something else that is meaningful?
| stackexchange/codereview |
I have a timestamp that looks like 25-OCT-10 04.11.00.000000 AM. I'm trying to convert this to a time format with
Time::Piece->strptime("25-OCT-10 04.11.00.000000 AM","%d-%b-%y %I.%M.%S.%6N %p")
but it keeps throwing errors. I've tried %OS, %SZ. They dont seem to work. Can someone tell me what I'm doing wrong?
| stackexchange/codereview |
I've downloaded the source code from code.google from android.
Because they dont come with the eclipse project. I've import them into eclipse.
Assuming i've downloaded ABC source code with package named com.example.abc
1. I can't import via "Existing Projects into Workspace".
2. I tried create a android project named ... | stackexchange/codereview |
iam working in an silverlight application witha datgrid displaying the records as per the value of a text box
when the records exceeds 3000 it displays an error as below and it works fine when the rcord count is below 3000 ? how to overcome this exception or to handle this
base {System.Net.WebException: The... | stackexchange/codereview |
Hi i wrote simple script as .bat file, and if i run this using windows scheduler , it kill the application and restart , but after that application runs in background as a proces, what shoud i do to see it in my screen?
taskkill /F /IM program7.exe
start D:\AIMR\CS\program.exe
if u run manualy that it works, but if i ... | stackexchange/codereview |
I have an existing class I need to convert so I can append functions like my_class.prototype.my_funcs.afucntion = function(){ alert(private_var);} after the main object definition. What's the best/easiest method for converting an existing class to use this method? Currently I have a JavaScript object constructed like t... | stackexchange/codereview |
I'm trying to map/mask a subfolder to a different folder on the same server. I've done it plenty of times before but I can't get this to work properly. I want the user who accesses directory "a" to see "oldsite/a" instead, but I do NOT want them to be redirected, or to see the new address in the browser.
<IfModule mod_... | stackexchange/codereview |
I have read, at various times, both the documentation and a number of blog posts on Dist::Zilla. I have never felt confidence in my understanding of it.
In response to another question, @Ether raised the possibility of converting Crypt-SSLeay to use Dist::Zilla.
So, where can I find a concise guide showing me how to co... | stackexchange/codereview |
MyTable in SQL Server contains _TimeStamp, Column1, Column2, and Column3, which have the following values:
_TimeStamp Column1 Column2 Column3
'2010-10-11 15:55:25.40' 10 3 0.5
'2010-10-11 15:55:25.50' 20 9 0.7
'2010-10-11 15:55:25.60' 15 2 1.3
'2010-10-11 15:55:25.70' 17 8 2.7
'2010-10-11 15:55:25.8... | stackexchange/codereview |
I have two sets of lists (state lists)
One called state_o and one called state_d and I have a function I do on them
function selectCountry(sel) {
document.getElementById("country_o").selectedIndex = states[sel.value];
}
Now what I want to do is determine if the "sel" is state_o or state_d and change the getElement... | stackexchange/codereview |
If I have an array of strings, such as
string[] names = {"John Doe", "Doe John", "Another Name", "Name Another"};
How do I sort this array, using insertion sort?
Wikipedia has some examples: https://en.wikibooks.org/wiki/Algorithm_implementation/Sorting/Insertion_sort#C.23
static void InsertSort(IComparable[] array)
{... | stackexchange/codereview |
I have two tables, applications and applicationRevisions, structured:
applications (id, time, user, views)
applicationRevisions(id, application, time, user, name, description)
The latter holds 'revisions' of an application page, containing title and description, so it's a one-to-many relationship. When an application ... | stackexchange/codereview |
I can use regexp to list hits from a Sqlite3 db, but what is the syntax for a "search and replace" using regexp.
| stackexchange/codereview |
For some reason, I can't understand the logic of a program that:
Takes in a list of numbers
Goes through them (via a for each loop) to find the least number
displays the least number via writeline
If leastNumber must be initialized to 0, then won't the leastNumber ALWAYS be 0?
(I've provided a basic txt file contain... | stackexchange/codereview |
Question
Example Table
+-------------+----------------------+--------+
| category_id | name | parent |
+-------------+----------------------+--------+
| 1 | ELECTRONICS | NULL |
| 2 | TELEVISIONS | 1 |
| 3 | TUBE | 2 |
| ... | stackexchange/codereview |
I am trying to repeat something inside a jquery function. I tried a for loop, but it seems it doesnt like the syntax.
for instance i have the variable
var number = 2;
now i have
$('tr').html('<td id="'+number+'"></td>');
what i want to do is loop from 0 to number (0,1,2) so that in the end i end up having 3 .
Thanks... | stackexchange/codereview |
We're currently generating reports for our web application using html5 / css3, and they look good on screen, but obviously when the user hits print who knows what is going to come out of the printer. So, what I would like to know is what is the best way to convert these reports to PDF for download / printing while main... | stackexchange/codereview |
Good night,
I would like to know how can I highlight a part of the text contained in a TextBox, Label (preferably) or RichTextBox. For example, given the string
"This is a test.",
I would like the control to show "This is a test.". Is there any easy way I can do it?
Thank you very much.
| stackexchange/codereview |
I need a way to export a stashed change to another computer.
On computer 1 I did
$ git stash save feature
I'm trying to get the stash patch to a file and then import it to another computer
$ git stash show -p > patch
This command gives me a file that I can move to another computer where this repo is cloned, but the q... | stackexchange/codereview |
I have a helper in my plugin test_plugin/lib/test_helper.rb:
module TestHelper
def test_render
render 'test_plugin/test_partial'
end
end
I have a partial test_plugin/app/views/test_plugin/_test_partial.html.erb:
<p>Hello World!</p>
In my application app/views/tests/index.html.erb when I do this:
<%= test_rend... | stackexchange/codereview |
I'm importing a bunch of pages that have ampersands in the title, from Mediawiki. These are encoded as %26. Drupal, for various reasons, has decided to double encode the URL so it becomes %2526. I simply can't create the alaises within Drupal so I have to use htaccess.
I need example.com/something_%26_else to become ex... | stackexchange/codereview |
Is it possible to get layout from QMenuBar object and add items to it. What I am trying to do is a menu bar containing custom widgets (a clock and login/off widget) on the right.
This code crashes.
QPushButton *b1 = new QPushButton("Button",ui->menuBar);
QHBoxLayout *rlayout = new QHBoxLayout(this);
ui->menuBar->layou... | stackexchange/codereview |
I'm new to .NET and while starting to learn ASP .NET MVC2 framework I see that you can create a .mdf file inside the App_Data folder and connect to it or you can connect to a SQL Server.
What is the difference between these to methods of interacting with a database? What are the advantages/disadvantages of one over the... | stackexchange/codereview |
I have a text box with a mask that requires 4 digits. How can I determine whether or not a sequence was entered (1234, 6789, 5432, etc.)?
Thanks.
| stackexchange/codereview |
Here I am trying to filter only the elements that do not have a substring world and store the results back to the same array. What is the correct way to do this in Perl?
$ cat test.pl
use strict;
use warnings;
my @arr = ('hello 1', 'hello 2', 'hello 3', 'world1', 'hello 4', 'world2');
print "@arr\n";
@arr =~ v/world/... | stackexchange/codereview |
I'm trying to implement a simple search, using LIKE in my SQL statement:
Using cmd As New OracleCommand
cmd.Connection = conn
cmd.CommandType = CommandType.Text
cmd.CommandText = "select * from TABLE where FIELD like '%:text%'"
cmd.Parameters.AddWithValue("text", sear... | stackexchange/codereview |
I am trying to load multiple files using HTML5.
This is my code I found on some site.
In the PHP code it doesn't recognize it as an array.
Am I doing something wrong? Can someone show me a working solution?
Thanks.
index.html
<form action='save.php' method='post' enctype='multipart/form-data'>
<input name="uploads" typ... | stackexchange/codereview |
Greetings
I'm using the scala version 2.8.0 and version 2.1 of lift to compile my project with maven I mark the following error:
error: type mismatch;
[INFO] required: **scala.actors.Actor**
[INFO] Auctioneer !? AddListener(**this**, this.itemId) match {
[INFO] ^
error: type mismat... | stackexchange/codereview |
Lets say that you are trying to figure out what the best path to take is. You have z number of possible moves and can make x number of moves at the same time. You always do x number of moves at once, no more or less. How can you figure out the branching factor in terms of x and z?
| stackexchange/codereview |
i want to parse this string
appDelegate.gpsArray= "\n\n 21.318\n03.863\n\n\n 21.317\n03.864\n\n\n 11.316\n113.864\n\n\n"
so that i cant get value like
1) a[0]=21.318, a[1]=03.863,a[3]=11.317,a[4]=113.846....
or how to get this as 2d array like
2)
a[0,0]=21.318,103.863
a[1,1]=21.318,103.863
i did this but of no use
NS... | stackexchange/codereview |
I am trying to setup a “view shopping cart/basket” page within a site in which logged in users earn points/credits. Once they earn a certain amount of these points they can then go to a shopping cart and pay with these points only. (No money changes hands, so no paypal/checkout/shipping/taxes etc are involved)
So far ... | stackexchange/codereview |
I'm trying to make a data filter with php and to do so, I want to use a form with 'get' method. Not the problem is, that I get this notice, when I'm trying to refer to any of the $_GET['var']'s.
echo $_GET['kraj'];
Notice: Undefined index: kraj in C:\wamp\www\inc\pages\filtr.php on line 23
And here is the URL code:
... | stackexchange/codereview |
I am trying to use base64 data string for images and for some weird reason some of the images are not getting rendered on IE8 or IE7 (I don't care about IE6), however they work fine on IE9 and FF (I tested on FF 3.5.0 and above). Is there any limit on the amount of data supported by IE as base64 data strings?
| stackexchange/codereview |
How can I write an equation with one curly brace ({), and on the right-hand side next to the curly, two statements in two different lines?
| stackexchange/codereview |
I am trying to create a file ,if it doesnot exist and tried to write some data to it. The same program I did in java, it was running fine.But when I try to do the same thing in Android I am getting NullPointerException at the place where I am trying to write data to file. And also, I did not find any new file in the cu... | stackexchange/codereview |
I knew gcc linker always looking extern function in later obj or lib file. is there a way tell linker looking reference in entire obj file or lib, if linker did not find in later obj.
for examole,
ld a.obj b.obj c.obj
if linker did not find x function in a.obj, it will looking into b.obj or c.obj.
if linker did not fi... | stackexchange/codereview |
in my app i am unzipping a zip file(in splash view controller) later i am displaying an image and firing a timer with 4 secs to change image of the previous image view. and later in view did appear i am firing another timer with 10 secs to call next view controller(home view controller).. and there i have a button to g... | stackexchange/codereview |
How do I get those values? I see the example on the YUI page to do this but using a click event, and then calling the get('winWidth') method on the event target. But how can I get these values without the use of any event? Thanks
| stackexchange/codereview |
I have the following code iam trying to make the text div under the image editable by using keyup and using .val() but iam having a problem when i click on another image and edit the textbox to update the new image text they all change.
$('.HeaderGifs').live('click', function() {
var img_class = $(this).attr("class");... | stackexchange/codereview |
Is there any way to access the voicemail from the SDK. As I know this cannot be done. At least in the new SDK have they given any control over it?
| stackexchange/codereview |
I have two sets of scattered data x y z and x2 y2 z2
The following code should produce two overlapping surface plots
F = TriScatteredInterp(x,y,z);
z2i=F(x2,y2);
tri = delaunay(x,y);
plot = trisurf(tri,x2,y2,z2,'edgeColor','blue','FaceColor','blue','FaceAlpha',.5);
hold on
trisurf(tri,x2,y2,z2i,'edgeColor','red','Fac... | stackexchange/codereview |
I have a string like this that is delimited | and can contain any character in between:
"one two|three four five|six \| seven eight|nine"
I'd like to find a regex that returns:
one two
three four five
six | seven eight
nine
I can think about how I want to do this but, I don't know regex well enough. I basically want... | stackexchange/codereview |
I have two very large WinForm applications built on the now dead Composite Application Block ("CAB") from Microsoft Patterns & Practices. I was an earlier adopter and jumped in first to embrace and use CAB. Well, now that it's truly dead I'm starting to think more and more about the future and what framework I can mi... | stackexchange/codereview |
I working on a combinatorial optimization problem that I suspect is NP-hard, and a genetic algorithm has been working well with our dataset. We're a research group and plan to publish our results in our field (not in math or CS), and I'd like to explore the NP-hard question before sending the manuscript out for review... | stackexchange/codereview |
So I am very new and inexperienced to the ways of TCL programming. I wrote a script that calls a proc written by someone else, first removing the output file. It then does some additional logic I wrote.
I moved the logic into a second proc and instantly a bunch of it broke (namely the rm commands).
From what I can tel... | stackexchange/codereview |
I'm using sizeWithFont:constrainedToSize:lineBreakMode: to calculate the actual height of a UILabel.
However, the height I get is always based on the complete NSString (before it gets truncated).
In fact, both sizeWithFont:constrainedToSize:lineBreakMode: and sizeWithFont:constrainedToSize: produce identical results a... | stackexchange/codereview |
I am working with several different php pages and php scripts.
For example I have the page index.php
The user can click on the link script_page.php?id=415354 on the index.php page, and the script_page.php page will check for the id and using some other scripts to verify access it will forward to employees.php using:
di... | stackexchange/codereview |
Perhaps this just sounds ridiculous but I'm wondering is this possible with Ruby? Basically I have a function...
def add a,b
c = a + b
return c
end
I'd like to be able to pass the "+" or another operator e.g "-" to the function so that it'd be something like...
def sum a,b,operator
c = a operator b
return c
end
i... | stackexchange/codereview |
I am trying to create 'Table per entity hierarchy' I want to set the discriminator to one of my Foreign Keys but that field does not show up in the list of available fields to pick from???
The following fields show:
PK id (int)
isDeleted (bool)
userID fk (int)
but another FK setup the same as userID but links to ano... | stackexchange/codereview |
(I am coding in C#)
I want to pass a pointer to structure through an API.
Say structure is,
[StructLayout(LayoutKind.Sequential,CharSet= CharSet.Ansi)]
public struct PassThisStruct
{
public Int32 Param1;
public Int32 Param2;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=1... | stackexchange/codereview |
I have a Adobe Flex project in which resides the following layout markup.
<s:TileGroup id="grid" width="467" height="467" requestedRowCount="15" requestedColumnCount="15" horizontalGap="0" verticalGap="0" verticalAlign="middle" name="tg">
<s:BorderContainer width="31" height="31" name="container">
<s:Label... | stackexchange/codereview |
How can I draw a line between one point (the center of one UIView) to a point that moves (touch location), and the line moves the 2nd point as the touch moves.
| stackexchange/codereview |
Our company uses ClickOnce to internally deploy our main application (AppA). I'm in the process of writing a helper application (AppB) that, ideally, would be started via AppA. We were planning on including AppB in AppA's solution, then adding a reference to AppB.
Is there any way to actually do something like Proces... | stackexchange/codereview |
To start with, I am a newbie in the world of WCF so pardon me if this sounds naive.
To my understanding , unlike ASP.NET based websites which use ADO.NET to communicate to the database, a silverlight based app always needs a WCF or RIA services to communicate to DB. We know that ASP.NET websites are not tightly couple... | stackexchange/codereview |
What is the best PHP developer setup for Windows 7 64bit? I just purchased PhpStorm and what to get a developer env setup on my Win 7 laptop.
| stackexchange/codereview |
I had the debugger working in pgAdminIII at one point, some time before upgrading to 9.0, but as of right now I can't seem to get it working using the usual steps. I believe it may have something to do with the DLL not loading correctly, because the following query:
LOAD '$libdir/plugins/plugin_debugger.dll';
show sha... | stackexchange/codereview |
I have a website about to go live. I'm wondering what I should be doing about the connectionstring in the web.config. Do I obfuscate it and it so how?
Thanks!
| stackexchange/codereview |
I get the error. The way I am looking at is I want the value that is returned from dayrental() * 19.95 to be stored in rental.
Use of unassigned local variable 'rental'
private void button1_Click(object sender, EventArgs e)
{
double rental;
if (checkBox1.Checked == true)
rental = day... | stackexchange/codereview |
It seems there are lots of improvements in .NET 4.0 related to concurrency that might rely on concurrent priority queues. Is there decent priority queue implementation inside framework available for reuse?
| stackexchange/codereview |
I need to determine the type of OS the PHP server is running on.
By type, I mean strings like "windows" or "linux", not "wince", "winnt" etc.
So far, I have to leads: PHP_OS and uname(), the later being more reliable than the earlier (PHP_OS says what OS PHP was built on - according to documentation).
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.