instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am creating a XML navigation for my website. This line below is causing a simpleXML issue:
<label>Osnabrück</label>
My PHP code, using HTMLentities has changed Osnabrück into Osnabrück. However, when trying to parse my XML with this line in it, I get this error:
/application/configs/navigation.xml:318... | stackexchange/codereview |
Can someone explain the working principle of asp.Net below?
I have 2 separate code-block asp.Net expressions in an aspx markup, with an html content between (span element in the example below).
In the first code-block, there is "i" as an increment variable for the for loop.
Then the code-block is cut with an html cont... | stackexchange/codereview |
I've seen the Mario live wallpaper uses admob ads in the settings screen, but I haven't been able to do it myself. If I put the adview into the settings.xml like you would with a normal layout I get a class cast exception.
Here's a screenshot of the mario live wallpaper to illustrate what I'm trying to do.
| stackexchange/codereview |
I would like to know as how to commit a file/folder to multiple folders in one go using subversion tool.
I can place the file in multiple folders and then do commit, but i just want to place it is a single folder and it should create copies in the required folders. Is it possible?
| stackexchange/codereview |
Let's say I have a collection of objects of different classes. Each class has its UserControl DataTemplated in a resource file.
Now I want to use ItemsControl to display the collection, but I want an Border or Expander around each item.
I would expect something like this to work:
<ItemsControl ItemsSource="{Binding MyO... | stackexchange/codereview |
I have a project with various parts.... One of which is the calculate the area of all the polygons on a map. When I run the query "select st_area(nycpp.the_geom) from nycpp;" I get a list of all the areas.
Next, I tried adding the results of the query to the nycpp table with
UPDATE nycpp SET area_sizes = (select ... | stackexchange/codereview |
I am trasferring some old 'inhouse' html sites to a new system.
The current folder structure is that all htmls of all sites are in one folder, and all the images of all those site are in /images folder.
Ofcourse i need to have seperate folders for each html and its images.
Just before writing some code to do the Job :... | stackexchange/codereview |
Are there any disadvantages or performance slowdowns related to the use of expressions like
from i in Enumerable.Range(1, Math.Min(strTexto.Length, tamMax) + 1)
select Tuple.Create(strTexto.Substring(0, i - 1), strTexto.Substring(i - 1))
in C#? Is it preferable to build "hard-coded queries" like
foreac... | stackexchange/codereview |
I am using the MVVM structure for our application. I have added the view as a data template to a grid (Developer Express DXGrid).
<DataTemplate x:Key="cardTemplate">
<ui:MediaEnquiryParticipantView x:Name="mediaEnquiryParticipantView"/>
</DataTemplate>
Now, my problem is that i want that View(MediaEnquiryParticip... | stackexchange/codereview |
I have a matrix A which is:
A <- matrix(c(1:15), byrow=T, nrow=5)
A
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9
[4,] 10 11 12
[5,] 13 14 15
Now I want to create a matrix B, which is 8x8 dimensions (or 10x10, or 15x15, etc), which would look like this:
[,1] [,2] [,3]... | stackexchange/codereview |
I make a post request to the the page getremote.php with post data but the $_POST array seems to be empty. Would be grateful if anyone can tell me what I've done wrong.
The javascript code to make the request is
var postdata = "Content-Type: application/x-www-form-urlencoded\n\nedits=" + this.createEditXMLtext(this.edi... | stackexchange/codereview |
I'm working in SQL Server 2008, and I'm trying to select into a temp table based on a certain condition...for a report, I need up to 18% of the records to be of a certain product type.
if ((@totalRecords * .18) > @productTypeCount)
select * into #tmpLP_REIT
from myTable where productType = @productType
else
... | stackexchange/codereview |
I am using log4net code found at:
http://logging.apache.org/log4net/release/sdk/log4net.Appender.AdoNetAppender.html
How do I write the code behind to insert the information in to the table?
| stackexchange/codereview |
I have a SQL database table column which has data in this format "0000-00-0000"
for ex: "1234-98-2010"
For it has data in other formats as well.
I need to pick out all the records where the format is "0000-00-0000" irrespective of the data. Its the format which i am after
Please, can some one advise me on how i can pi... | stackexchange/codereview |
I am wondering if the counter_cache would work in single table inheritance.
For these models:
class User
has_many :questions
end
class Question
belongs_to :user, :counter_cache => true
end
class SimpleQuestion < Question
end
class ComplexQuestion < Question
end
So will the following counters work?
create_table(:... | stackexchange/codereview |
We have been building ASP.Net websites for many years. During this time we gathered a lot of knowledge of ASP.Net. We know what to use, a what not. One problem is still, persistently, bugging us. I hope to solve this for once and for all.
We have a fairly large solution with lots of aspx-files. All aspx-files reside in... | stackexchange/codereview |
I certainly don't know how to title this question, sorry.
I'm having some problems to design the following system.
I need a class which will make some work, but this work can be done in a bunch of different ways, say that this work will be made through "drivers".
These drivers can have different interfaces and because ... | stackexchange/codereview |
A very popular choice for running Perl web applications these days seems to be behind a nginx webserver proxying requests to either a FastCGI daemon or a PSGI enabled webserver (e.g. Starman).
There have been lots of question as to why one would do this in general (e.g. Why use nginx with Catalyst/Plack/Starman?)
and ... | stackexchange/codereview |
I've experienced a strange issue running (my own) applications on the HTC Desire.
When I call getApplicationContext().getCacheDir() or getApplicationContext().getFilesDir() from my activity this always returns null. In the emulator /data/data/com.myapp.android/cache respectively /data/data/com.myapp.android/files is r... | stackexchange/codereview |
I have a very weird thing that we cannot understand or fix.
The short version:
Some very simple SELECT-queries in MySQL hangs the whole application/program who made the query. However, its not consistent. If I have the EXACT same MySQL version locally, with the exact same table structure and the EXACT same data, the qu... | stackexchange/codereview |
I've created a login on my website using forms authentication,
I do not understand why after creating the ticket and adding it to the cookies
if I check for HttpContext.Current.Request.IsAuthenticated
i get false. Only on the successive request the user become authenticated
this is my code
var fat = new FormsAuthentic... | stackexchange/codereview |
I have the following object model I want to get working - have been banging my head against the clone bit! Is this possible? I can't seem to get access to the SubClass constructor from within the baseclass without hard coding it.
The code is for a queue of arbitrary operations that all share a lot of common functionali... | stackexchange/codereview |
For example I commit some files, the next day some more files, and so on. After some days I want to view all my committed files and view their difference with the remote repo. Note that I have not pushed anything. I just want to verify that if I push some thing then it will go to the remote repo as I expect.
| stackexchange/codereview |
View have a central report server running SSRS, all our reporta are already built and present on the server.
How can i now dispaly one of those reports using ReportViewer Contontrol in ASP.NET?
My Control:
<rsweb:ReportViewer ID="ctReportViewer" runat="server" />
My CodeBehind:
var reportServer = ctReportViewer.Serve... | stackexchange/codereview |
I am having issues manipulating a matrix. Any help would be much appreciated! Say I have a matrix:
xb =
1.00 2.00 3.00 6.00 5.00 9.00
and another matrix:
cb =
3000.00 4000.00 4000.00 0 0 0
Is there a way to... | stackexchange/codereview |
i write a little code to simply read a char from the keyboard but the program fails, why? How must i read a char?
int main(int argc, char** argv)
{
char op;
do
{
printf("¿Sigues?");
scanf("%c",&op);
}while(op=='s' || op=='S');
return 0;
}
| stackexchange/codereview |
I have pretty simple problem. I have a large file that goes through three steps, a decoding step using an external program, some processing in python, and then recoding using another external program. I have been using subprocess.Popen() to try to do this in python rather than forming unix pipes. However, all the da... | stackexchange/codereview |
I am in a c# project, in this project I reference (using a project reference) another class library written in vb.net.
Now, when I right click and view definition on the class. It doesn't take me to the exact source code in the vb.net project, instead it takes me to a dynamically generated c# representation of the vb.... | stackexchange/codereview |
What I need is to parce my projects' resource files and change its version number. I have a working JS script but I would like to implement it with python.
So, the problem stands in using re.sub:
version = "2,3,4,5"
modified_str = re.sub(r"(/FILEVERSION )\d+,\d+,\d+,\d+(\s)/g", version, str_text)
I understand that bec... | stackexchange/codereview |
I'm using A/Bingo for Rails, and it seems to be working fine, except for counting conversions. It looks like conversions for the first user that converts are counted, but then it gets stuck and doesn't record any other conversions. I know that conversions occurred because I see them in two completely separate and unrel... | stackexchange/codereview |
I often prefer to do this:
a, b = lambda do |data|
[f1(data), f2(data)]
end.call(some_function(some_data))
instead of this:
data = some_function(some_data))
a, b = f1(data), f2(data)
or this:
a, b = f1(some_function(some_data)), f2(some_function(some_data))
Is there any negative consequence from using lambdas fo... | stackexchange/codereview |
I just installed Eclipse IDE for Java EE developers on my Ubuntu system. Is SVN already part of the Eclipse package?
If not,
How do I install SVN from Eclipse - so that I could create a new project from files checked out from a repository?
Do I need to download and install a subclipse package from tigris? Can't I do ... | stackexchange/codereview |
The question is &str[2], if I write str+2 then it would give the address and its logical but where did I used pointer notation in it?
Should I prefer writing &(*(str+2))?
| stackexchange/codereview |
I've been looking around, with no luck, for a java mail api that supports ESMTP pipelining. javamail does not, nor does ha-javamail.
does anyone know of an api that supports pipelining?
| stackexchange/codereview |
Looking at Google Calendar on my android web browser I noticed the time selector looks like a native Android selector as opposed to looking like an HTML selector drop-down. To see it:
go to http://calendar.google.com/
Touch the plus button at the top right
Touch the time drop-down
You should see the native-looking se... | stackexchange/codereview |
Anyone here haveRails 3 with Uploadify & Paper_Clip experience?
I'd like to allow the user to upload photos:
Here is my view:
<input id="fileInput" name="fileInput" type="file" />
<script type="text/javascript">
$(document).ready(function() {
$('#fileInput').uploadify({
uploader... | stackexchange/codereview |
Is there any procedure/API provided in Android SDK/NDK to check if "JPEG HW Decoder" exists in the underlying android phone handset?
If yes, then
Is there any procedure/API provided in Android SDK/NDK to access "JPEG HW Decoder" for decompressing JPEG image?
( I guess PV Media framework provides access for the same, b... | stackexchange/codereview |
I have a signed XAP (Silverlight version 4.0.50401.0) installed with elevated trust in OOB.
Each new version of XAP was successful installed in OOB mode (automatically download and ...) - all work as expected.
Now I installed latest Silverlight development stuff (now I have Silverlight 4.0.50917.0).
All my clients who... | stackexchange/codereview |
I used the XML Binding Wizard to create a descendant of TXMLDocument. The files generated by this class would declare the namespace in the root node and create just plain, unadorned nodes for the rest of the document.
<?xml version="1.0"?>
<RootNode xmlns="URL" xmlns:xsi="URL" xsi:schemaLocation="URL">
<SomeNode>
... | stackexchange/codereview |
The only way I found to passing objects between the JS and Obj-C it's by encoding the JS object by using JSON.stringify() and pass the json string to PhoneGap.exec
PhoneGap.exec('Alarm.update',JSON.stringify(list));
... and rebuild the object in Obj-C:
NSString *jsonStr = [arguments objectAtIndex:0];
jsonStr = [js... | stackexchange/codereview |
I am currently writing a black box trading bot and I am in the process of designing the way data is passed around. I realize I want an async sort of architecture. So I have been implementing ActionListeners and ActionPerformers but some of the listeners when they get data need to do calculation which could take a while... | stackexchange/codereview |
We've been using the the java-facebook library for quite some time (a few years), though it appears one reason we're not getting any new users through FB, is that new users are seeing an error, which I understand is because of FB's new (in June) security.
Currently, we have a "simple" Canvas FB app, using FBML, which u... | stackexchange/codereview |
I have a list:
a = [32, 37, 28, 30, 37, 25, 27, 24, 35, 55, 23, 31, 55, 21, 40, 18, 50,
35, 41, 49, 37, 19, 40, 41, 31]
max element is 55 (two elements on position 9 and 12)
I need to find on which position(s) the maximum value is situated. Please, help.
| stackexchange/codereview |
I am using TreeView to display my data in UI. Now my application refreshes every 5 seconds so that it shows the most current data. Is there a way I can save my expanded state or collapsed state of treeview even after window reload? Because if I have a huge amount of data and I take more than 5 seconds to go to desired ... | stackexchange/codereview |
I am looking all over for this dll but can't find it anywhere? anyone know where to get it and can help me?
Thanks!
| stackexchange/codereview |
I'm just getting into Test Driven Development with mock objects. I can do it the long way with UnitTest++, but now I want to try to minimize typing, and I'm trying to use AMOP mock framework to do the mocking.
AMOP states:
The main differences between AMOP and other mock object library is that,
users DO NOT need to... | stackexchange/codereview |
I'm trying to allow the user to draw a rectangle on the canvas (like a selection box). I'm getting some ridiculous results, but then I noticed that even just trying the code from my reference here, I get huge fuzzy lines and don't know why.
it's hosted at dylanstestserver.com/drawcss. the javascript is inline so you ca... | stackexchange/codereview |
Is it possible to count overall emails sent per day and save that value somewhere in a text file or in mysql?
I need to compare numbers of mails sent from website and mails sent directly or via mail clients.
Thanks ;)
| stackexchange/codereview |
I recently had a look at the Google Data API. Its looking good.
What I want to do is create a "G Drive" Type application. This will basically come up as a drive in explorer with its own icon. From there you will be able to drag and drop operations to and from Google Docs, and create folders. Yes I've heard of Gladinet... | stackexchange/codereview |
Am having a real problem with the geodjango saving an entry.
It produces a "Error: Access Violation reading 0x???????"
The error does not indicate which file or folder it's trying to gain read/write access to.
Upon researching i found other non-django programs that also have this issue, some were fixed by turning off V... | stackexchange/codereview |
This is my Code. It does not work for me. But it works in the solution of a friend. I don't know whats the reason. I don't get any error. All seems to be fine. But if I click my radiobutton nothing happens.
<h:form id="form">
<h:panelGrid id="baseData" columns="2">
<h:selectOneRadio value="#... | stackexchange/codereview |
I've just downloaded xhtmlrenderer and iText jar files. I can make pdf files by using these jars.
What I exactly want is:
I need to create pdf if I give one valid URL (say "https://xhtmlrenderer.dev.java.net/news.html") in the place of "inputFile". Is it possible with flying saucer and iText?
If yes, please guide me t... | stackexchange/codereview |
I want to make something read from inputstream to store in an int[] when I type "read 1 2 3 4". what should i do?
I do not know the size of the array, everything is dynamic...
Here is the current code:
BufferedReader stdin = new BufferedReader(
new InputStreamReader(System.in));
String line = stdin.readLine();
String... | stackexchange/codereview |
I am using <pre> tags to preserve long strings of text that include user-entered line breaks.
When the input into the original form was exactly:
Paragraph 1
Paragraph 2
Paragraph 3
...the pre returns:
Paragraph 1
Paragraph 2
Paragraph 3
In the database, the string is stored:
"Paragraph 1\r... | stackexchange/codereview |
Anyone have some good pointers on how to get multiple teams doing concurrent asp.net development using Microsoft TFS?
i have been using subversion for the past many years now and it allowed my team to work freely without exclusively locking files and doing auto merges when possible (like 99% of the time)
but this all f... | stackexchange/codereview |
im working in a code that detects changes in a file (a log file) then its process the changes with the help of fseek and ftell. but if the file get deleted and changed (with logrotate) the program stops but not dies, because it not detect more changes (even if the file is recreated). fseek dont show errors and eiter ft... | stackexchange/codereview |
I'm trying to follow this tutorial on binding:
http://andrehoffmann.wordpress.com/2009/09/03/phonebook-tutorial-for-dummiesxcode-3-1-3/
but the app keeps crashing at run time.
In IB I have a NSBUtton, NSTableView, NSArrayController and a NSOBject (named AppController)
The tableview has 3 cols. Ad Name, Col and Height... | stackexchange/codereview |
I want to search module like this site.
http://www.carsales.com.au/all-cars/results.aspx?N=1216+1246+1247+1252+1282&keywords=&tsrc=allcarhome&Nne=15
Im want to know that how i develope this type of component?
or if any body know direct componet so plz tell me
its urgent
| stackexchange/codereview |
Is there any way to capture document download or item view actions in SharePoint 2010/2007?
Thanks.
| stackexchange/codereview |
I think it is possible to write a TDI-Application with MFCs CPropertySheet class. Is this the right way to do it, or is there a standard way with not using this class?
It should also be possible to include a status-, menu- and toolbar into the application.
Thanks!
| stackexchange/codereview |
Is there any problem with the syntax in the following code, there is a error as
Invalid block tag: 'else'
{% ifequal chat_profile 1 %}
{% extends "chatprofile/chat_profile1.html" %}
{% else %}
{% extends "chatprofile/chat_profile.html" %}
{% endifequal %}
| stackexchange/codereview |
class User < ActiveRecord::Base
validates_each :name, :email do |model, attr, value|
if value =~ /groucho|harpo|chico/i
model.errors.add(attr, "You can't be serious, #{value}")
end
end
end
Confused as to how this works.
Is :name, email the items it will loop?
| stackexchange/codereview |
Are there any websites/blogs (perhaps by F# team members?) where thoughts about the future of F# are regularly discussed/revealed?
I know of some team members' blogs, but none that I've found contain this type of content.
| stackexchange/codereview |
In a git repository, a remote branch I am not tracking was deleted. When I type
git branch -r
the deleted branch still shows up (and I can check it out)
What git command do I have to run to update this info?
| stackexchange/codereview |
I have a form with a few textboxes which are used for calculations.
When I enter a value in one textbox, I want the other textboxes to get filled immediately when a value is entered. I want to use JavaScript for this. How can I do this when my textboxes are server-side?
| stackexchange/codereview |
I've inherited some VB.net code. My task is to find out why it isn't working. I have 2 applications. The first one
is run as a service, infinitely checking a table to see if there are any tasks to be handled. If it finds one, its supposed to fire off the second application to handle the task then returns to the lo... | stackexchange/codereview |
I have been looking back at some old code from when I first started learning Objective-c and I have a quick question:
// THIS IS MY OLD CODE
@implementation syntax_UINavAppDelegate
@synthesize window;
@synthesize navController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary... | stackexchange/codereview |
I want to convert a for loop which increments the iterator by 2 every pass into a Parallel For loop using the TPL. The data is not order dependent or constrained in any way, but I only want to process the data in every other element of my source array (which is _Datalist in the code below), hence the need to increment ... | stackexchange/codereview |
Grails coberatura plugin is doing code coverage on BuildConfig.groovy. I have tried all these configurations on BuildConfiguration to exclude BuildConfiguration from code coverage have tried all these.
coverage {
exclusions = [
'*/BuildConfig*',
'BuildConfig*',
"BuildConfig*",
'Build... | stackexchange/codereview |
I'm working on a C++ program that accepts a filename as a command line input, reads a bunch of data from that file, computes two things about the data, then exits. One of those computations must be done, but the other is much more optional, so I thought it would be neat to add a -c flag to turn it off. Naively, I would... | stackexchange/codereview |
Has anyone had success compiling QJson statically into an application? I am trying to use QJson statically in my Qt application (Windows/Mac), meaning I'm trying to use the source files directly rather than compiling a DLL and using it. Is this possible? My program is producing lots of errors when I attempt to do it, m... | stackexchange/codereview |
I am writing highly concurrent application, which is extensively modifies objects of MyClass. The class is composed of several fields. My question is how to prevent modifications of particular object during its serialization by another thread?
Regards,
Matt
| stackexchange/codereview |
hi i have following code in this i have div card-208 on click i dont want to show the divtoshow div but on mouseover i want to show it wil some delay but not on click
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org... | stackexchange/codereview |
I have the following classes with associations:
class Customer < ActiveRecord::Base
has_many :orders
has_many :tickets, :through => :orders
has_many :technicians, :through => :ticket
has_many :services, :through => :ticket
end
class Order < ActiveRecord::Base
belongs_to :customer
has_many :tickets
has_... | stackexchange/codereview |
i am trying to basically replace a webpage's url with its ip address for example, instead of
www.facebook.com
i want to replace it with
66.220.153.11
Rationale
i have recently discovered that our school blocks websites based on a particular string patern in the url for example www.facebook.com is blocked but 66.220... | stackexchange/codereview |
I have a form which inserts data in DB on Submit button click but the problem is when client click the button multiple times its sends multiple create requests means multiple button click events for the same time of same data, which must not be.
I tried to disable the button when client click the Submit button first ti... | stackexchange/codereview |
Installing a recent gitextensions on a windows 7 machine gives me
an "invalid short file name username.user".
Installing as a different user, even as local admin works, but the extensions work only when I am logged on as this user.
As normal user, I can start the exe and it works fine, but the explorer integration and ... | stackexchange/codereview |
Python 2.7 (32-bit) Windows: We're experimenting with Python 2.7's support for themed Tkinter (ttk) for simple GUI's and have come away very impressed!! The one area where the new theme support seems to have come up short is how OS specific common dialogs are wrapped.
Corrected: In other words, the MessageBox and Color... | stackexchange/codereview |
How do bind to more than one property in WPF?
I know that you can use the ItemStringFormat="{0} my hard coded string" to describe a string value but I am interested in something like this ItemStringFormat="{0} ({1})" where item zero is a property and item one is a property in the bound class.
public class ExchangeRate
... | stackexchange/codereview |
I would like to study more on the subject of complete data design patterns. Specifically, the different mixes of technologies to store, process, cache, and retrieve data. In other words, look at how many components are used in large systems like facebook.
To my knowledge, we have RBMS and NoSQL flavors of database cate... | stackexchange/codereview |
We have some code that given a property name uses reflection to implement a Comparer.
I would like to store a delegate/Func to get the value rather than paying the reflection price each time we need to get a value.
Given a class like this:
public class Person
{
public string Name { get; set; }
public int Age { ... | stackexchange/codereview |
When I open an Excel file stored on Sharepoint, I have the option to open it Read Only or in Edit mode. If I open it Read Only, Excel opens up and I see "Server Workbook To modify this workbook, click Edit Workbook". I need to retrieve this Excel file through an ASP.NET application, yet still have this Server Workboo... | stackexchange/codereview |
I want to create a new mail with the default mail client and attach a file automatically to it.
To create a new mail to dummy@somewhere.com with subject foo and body bar, I can do the following:
open "mailto:dummy@somewhere.com?subject=foo&body=bar"
How can I attach a file now?
If this is not possible this way (with o... | stackexchange/codereview |
I've written a class called PuzzleBoard that represents an nxn board. I will be keeping several PuzzleBoard objects in a HashSet, so I have to overwrite the 'int hashCode()' method.
Below are the fields of my class:
private int N;
private int[][] puzzle;
private int blankCellX;
private int blankCellY;
private int ... | stackexchange/codereview |
I used ScalaQuery and Scala.
If I have an Array[Byte] object, how do I insert it into the table?
object TestTable extends BasicTable[Test]("test") {
def id = column[Long]("mid", O.NotNull)
def extInfo = column[Blob]("mbody", O.Nullable)
def * = id ~ extInfo <> (Test, Test.unapply _)
}
case class Test(id: Long, ... | stackexchange/codereview |
I have an item-to-item similarity matrix set up with these tables:
items (id, ...) (Primary key `id`)
similarities (item1_id, item2_id, similarity) (Index on `item1_id` and `item2_id`)
The similarities tables contains pairs of ids with a similarity index, i.e:
item1_id item2_id similarity
1 2 0.3143
... | stackexchange/codereview |
In my create script for my database create script looking something like this:
CREATE TABLE IF NOT EXISTS `rabbits`
(
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`main_page_id` INT UNSIGNED COMMENT 'What page is the main one',
PRIMARY KEY (`id`),
KEY `main_page_id` (`mai... | stackexchange/codereview |
class Base
{
private:
int var;
};
class Child : protected Base
{
void someFunc()
{
var = 5; // Error: Base::var is private
}
};
What's wrong is there?
| stackexchange/codereview |
I've got an organisation database table which holds the following fields:
organisationid, organisationname, organisationaddressid, mainadminname, mainadminaddressid.
The two address ids are pointers to two records within the address database table. The address database table conatins the following fields:
addressid, ... | stackexchange/codereview |
I am writing an IVR script for Asterisk in PHPAGI and trying to use Cepstral for TTS. Though I have licensed the product, when I call $agi->swift(), before my text is "read" (during a call), the engine / voice states that the product isn't licensed. Has anyone else encountered this and know of the solution?
Thanks
| stackexchange/codereview |
I am on Drupal6, and even with the WYSIWYG disabled, something is putting in white space where I don't expect it.
For example if I enter:
<p>HI there (you)</p>
All is good.
If I enter:
<p>HI there (<strong>you</strong>)</p>
I get a space between the opening parentheses and "you":
Hi there ( you)
When I save and go b... | stackexchange/codereview |
How does one split a list which is passed as an argument to a function and tag each element with a number?
The problem I have is how to increment in erlang as there are no for loops.
Thanks
| stackexchange/codereview |
I would like to use a flowPanel to contain a list of tags. The tag contain a name and a close button.
However, when I add HTML / Label to flowPanel, it will create a new line because it's a DIV element.
If the HTML / Label is a span element, there is no new line. However, I can't create spanElement on demand.
Does an... | stackexchange/codereview |
I have the following code:
try {
DOMConfigurator.configure(url+log4j.xml);
} catch(Exception e) {
e.printStackTrace();
}
And I would expect a FileNotFoundException if the log4j.xml doesn't exist, and then the catch-block would be executed.
But I don't see an exception when the file doesn't exist, why i... | stackexchange/codereview |
We're using Redis for monitoring on a high traffic web application.
The app is written in c and uses the credis client
library.
We're seeing enormous numbers of TIME_WAIT connections left over from
our communications with Redis:
$ netstat -a | grep 6379 | grep TIME_WAIT | wc -l
15865
Any idea what's going on here?
"
... | stackexchange/codereview |
I have VS 2008 SP1 and SQL Compact Compact 3.5 SP 1 installed.
I can see "ADO.NET Entity Data Model" when I go to Add -> New Item in Web Application project but same is not shown in Smart Device 2.0 application.
How to use Entity Framework (which version) with .NET CF 2.0 application and SQL Compact 3.5 SP 1?
| stackexchange/codereview |
I have skin a button with up, down, over, and disable states. I hope to know if there a code enable a button to keep press (down state) when the user press and hold a specific key link to that button. Something like down_button state.
| stackexchange/codereview |
yep, it sounds like an unholy alliance but I need to configure how to do it...
for starters I have on my PC installed Oracles PL/SQL environment, with latest client (11g, I think) ... I can work in theirs IDE w/o any problems. I even can code desktop apps with C# and Oracle connector (etc.)
Now, from MS site I can clic... | stackexchange/codereview |
How can I pass two arrays and a string to a sub?
Here's what I'm trying to do:
use strict;
use warnings;
my @x = qw(AAAA BBBB CCCC DDDD EEEE);
my @y = qw(1111 2222 3333 4444 5555);
my $z = "hello";
Hello(@x,@y,$z);
exit(0);
sub Hello {
my (@x,@y,$z) = @_;
print "$_\n" for @x;
print "$_\n";
print ... | stackexchange/codereview |
Table 1
slitem firstname lastname
1 aaa bbb
Table 2
slitem firstname lastname
1 null null
2 null null
Result :
slitem firstname lastname
1 aaa bbb
2 null null
i want to join this two table....
he... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.