instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Getting following error while generating scema with FNH:
ValidationException: The Entity 'TemplateStatusInfo' dows not have an Id mapped.
Class mapping defined as below:
[DataContract]
public abstract class Template
{
[DataMember]
public virtual int? Id { get; set; }
[DataMember]
public virtual strin... | stackexchange/codereview |
CREATE TABLE IF NOT EXISTS customers (customer_id TEXT NOT NULL, time_stamp TIMESTAMP NOT NULL, customer_info TEXT), PRIMARY KEY (time_stamp)
The error is
mysql> CREATE TABLE IF NOT EXISTS customers (customer_id TEXT NOT NULL, time_stamp TIMESTAMP NOT NULL,
customer_info TEXT), PRIMARY KEY (time_stamp);
ERROR... | stackexchange/codereview |
Now I'm working to do twitter client with Javascript.
After I read this topic, I have question
Modify HTTP Headers for a JSONP request
He told impossible way to modify HTTP Header when using JSONP.
If it's true. How does twitter extension work in Chrome ?
I think Chrome extension use Javascript, too.
| stackexchange/codereview |
In the system I'm working on, we were seeing a particular SELECT use a clustered index scan, instead of using the index which was created for this SELECT. I took a look at the statistics for the index, and found that they were 26 days old. I updated the statistics with FULLSCAN. Now the SELECT is using the index.
AU... | stackexchange/codereview |
I get this message that tell that the xml was not found but then I get product ID, product name, I dont figure out how can I fix that, please help me
/* End of file welcome.php / / Location: ./system/application/controllers/welcome.php */ File“C:\Users\amaury\Documents\xml\myxml.xmlwas not found
PRODUCT ID PRODUCT ... | stackexchange/codereview |
I am building a web application where i am using multilingual support.
I am using variables for label text display, so that administrators can
change a value in one place and that change is reflected throughout the application.
Please suggest which is better/less time consuming for displaying label text?
using relati... | stackexchange/codereview |
I currently use firefox SQL Inject Me - to test for form data SQL Injection, Is there any tools that tests the same but for dynamic Sites i.e. URL querystrings.
| stackexchange/codereview |
how to write custom event handling classes, if any one having idea about how to create it or if you know any good article regarding this then please help me.
Thanks in Advance
| stackexchange/codereview |
Saw a thread about omitting the closing ?> in PHP scripts and got me wondering.
Take this code:
foo.php
<?php
echo 'This is foo.php';
include('bar.php');
bar.php
<?php
echo 'This is bar.php';
If you create these two scripts and run them, php outputs:
This is foo.php
This is bar.php
(new line added for artistic li... | stackexchange/codereview |
Is it possible for a program written in C (or assembly) and is linked with c stdlib using gcc to print the address of its entry? (Since the _start symbol denotes the program entry actually i ask if its possible to print the address of that symbol from inside the main function without using parsing of ELF executable fil... | stackexchange/codereview |
I want to get text from Edit text as it is and display in TextView.But whenver i get text using getText() it gives me text in one line. How to entered text in multiline EditText as it is. Please give me guidance?
| stackexchange/codereview |
I want to use the function IF() from Excel in a formula for some Cell, as shown below -
=IF(I2="SELL","(C2-F2)*D2","0")
Which means I want to see if Cell I2 has text- SELL in it (IF condition true), then I want the cell to have formula as (C2-F2)*D2, else if condition is false, it prints 0.
But trouble is that when co... | stackexchange/codereview |
I recently have an application develop with tapestry 5.1 deploy on Weblogic + oracle database. The pages work well under normal usage but went nuts after stress testing.
I am using hibernate + spring security module from tapestry on the web page login, and ramp up 1000 users on the login process. Upon processing 500 us... | stackexchange/codereview |
I want to get the width of an element including border, margin and padding.
I know using $(input).width() or $(input).css('width') give the width of the element.
But here is the requirement.
Suppose I created a text box like follows:
<input type='text' id='txtBox' name='txtBox' style='width:100%' />
or
<input type='t... | stackexchange/codereview |
I am working on a small scale website. It has a very simple idea, there are two sets of users, office and workers, both have to login to acess the site (the site is built with the Zend framework).
The problem: I want to have a calendar which is accessible by all the users. The office staff being able to edit the calend... | stackexchange/codereview |
Few days ago, I posted a question on how to resize an image while keeping the ratio of its dimensions. I get an nice answer which helped me understand how to do so.
Unfortunately, I've not been yet capable of exploiting that to solve my problem. The main problem resides in the type of file used to process the image.
1°... | stackexchange/codereview |
I am using C++ to solve by boundary element method, the I have a problem with my code:
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_linalg.h>
using namespace std;
string STRING;
int i,q,s;
int const nodes = 16;
double A[nodes][nodes];
double b[nodes];
int main(){
for (i=0;i<nodes;i++)
{... | stackexchange/codereview |
I keep getting this puzzling error upon invocation of a one-way callback to a WPF client from a WCF service.
The message could not be transferred
within the allotted timeout of
00:01:00. There was no space available
in the reliable channel's transfer
window. The time allotted to this
operation may have been ... | stackexchange/codereview |
As I write in a .txt file, how do I keep track of the changes? This will be from the creation of the file until I'm finished with it. Does the file need to be in a certain place? Special commands required? I have never used open source management software before, so as much advice as you have to spare would be welcome.... | stackexchange/codereview |
I'm trying to create a helper to display rating stars based on a model attribute.
I have the following:
def show_profile_stars(profile)
content_tag :span, :class => 'stars' do
profile.stars.times do
image_tag("stars.gif", :size => "30x30", :class => "gold")
end
end
end
'stars' is an int... | stackexchange/codereview |
I have tried to write a very simple code of jquery to append an element. Here is an example code -
<script type="text/javascript">
var v=$("strong");
$(document).ready(function(){
$("button").click(function(){
$(".c1").append($ (v) );
});
});
</script>
What happe... | stackexchange/codereview |
I'm just starting to learn internet programming.
After playing around with checkboxes, I found out the hard way, that it is only when the checkbox is checked that it transmits an 'on' value.
Why not also send an 'off' value?
| stackexchange/codereview |
My work setup is a Windows XP host, running an Ubuntu VM LAMP stack. I am using PhpStorm to edit my code on my host Windows machine. Upon saving files are automatically uploaded to the VM via SFTP. Everything works for this process, except debugging.
I have setup PhpStorm to have a server named "UbuntuVM" with the foll... | stackexchange/codereview |
I have an XML fragment that I would like to test against a complexType in a schema. The problem is the schema is hugely complex and the fragment I would like to test relates specifically to a single complex type. Is there a way to validate the element against the schema without having to wrap it in a massive mocked-up ... | stackexchange/codereview |
I'm struck with a problem in jboss. When I try to deploy my .war into the server, I get this following error,
java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserF
actoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
from which, it is quite evident that there is a clash of librarie... | stackexchange/codereview |
I have Invision Power Board web-forum. I want to add MediaWiki to this forum.
Found this extension for mediawiki: http://www.mediawiki.org/wiki/Extension:IPBAuth
It's all right, but I need to authenticate users by email, not by user logins.
I've changed some SQL in this extension, but even if I auth users by email they... | stackexchange/codereview |
Good morning guys.
This time a general question about versioning tools.
In my sw house 15 people works on ACU COBOL, producing a management software for pharmacy.
I'm the only .NET guy, working on other integration sw.
This management sw is composed by 300-400 programs, and my colleague often modify and release program... | stackexchange/codereview |
When creating a web application that doesn't have a "~/default.aspx" page, we would like to set the starting page to be "~/Pages/MyStartPage.aspx".
I know that the starting page property can be set in the IIS, or when we go to Project->Properties->Web-> and Set the Starting action to "Specific Page"=Pages/MyStartPage.a... | stackexchange/codereview |
Possible Duplicate:
What IDE to use for Python?
Which is the preferred text editor for python development, Vim, emacs or any other ?
| stackexchange/codereview |
I was trying to connect with groovy WSClient to Exchange server wsdl, but can't because i receive an empty file (when i want to parse the wsdl).
I am using the following lines:
Map mapClient=[
"https.truststore":"/path/jssecacerts",
"https.truststore.pass":"changeit",
... | stackexchange/codereview |
I have requirement where app has to make REST API calls over HTTPS POST. I am new to cakephp. I was thinking if I could do https calls using httpsocket.
I appreciate any help.
Thanks.
| stackexchange/codereview |
Currently I'm building quite a large app with flex4+robotlegs+as3signals+google app engine based on python.
1) Well the problem is that I'm finding myself redipsatching the same signals from the view to mediator and from mediator to context.
2) The other problem is that I'm executing commands for signals from mediators... | stackexchange/codereview |
I am looking for a Android tablet device that will permit me to modify, rebuild and reload the Android operating system in a fashion similar to what Google provides developers with the Nexus One phone. Are there any tablets out there that officially support this kind of development cycle?
Thanks for your help,
Patrick... | stackexchange/codereview |
I am planning to store the license information of my app to the app itself. Is it possible to write to an EXE in Delphi without affecting its logical function? If yes, How? My colleague says that there are only specific parts of the exe that is writable. Is this true?
| stackexchange/codereview |
I have a problem with IE(7&8) browser's handling of security certificate errors.
Our application needs to send out a secure link to the user's email, consisting of a randomly generated token which may have special characters. So before sending out, we encode the token. The sample URL would be like this:
localhost:8080/... | stackexchange/codereview |
Using ANSYS APDL, I'm looking for a quick and computationally inexpensive way to get all the current real numbers used in the model. Something like
*vget,real_numbers...
The best I can come up with is
! Get a list of all element types
*get,elemCount,elem,,count
elemReals= $ *vget,elemReals,elem,,attr,real !Get... | stackexchange/codereview |
I have created an RSS parser using NSXMLParser class. The feed has an item count of 20. I would like to know how to fetch the next 20 items from the feed?
If I add the same url to google reader it fetches lot of items and keeps continuing as I scroll down. is there any particular way to fetch next 20 items from the RS... | stackexchange/codereview |
I'm developing a small IIS7 native module.
I can't seem to get any output from it when I make page requests in IIS.
So I've taken a step backward to trying to make one of the msdn samples work first. Trouble is - I can't get any output from that either...
The sample is here:
http://msdn.microsoft.com/en-us/library/m... | stackexchange/codereview |
I have an ASP.NET MVC web application, and I've registered a number of routes in my Global.asax.
I would like to know how I can programmatically build (generate a string url) any one of those registered routes from within my Controller.
I did the same thing in Web Forms with .NET 4.0 using Page.GetRouteUrl(routeName, r... | stackexchange/codereview |
I've created a case switch option list,
First option list
option 1 go to option list A
option 2 go to option list B
option 3 haven't decided what this will do yet C
option 4 Exit
if option 1 is selected
option 1 Do A
option 2 Do B
option 3 Do C
option 4 previous Menu
option 5 Exit
So basically its a switch inside a s... | stackexchange/codereview |
Hey all,
I am trying to create an entity in spring STS with GWT scafolding. The entity is to be a superclass and abstract. When I tell roo to create the entity called Person, the following results.
~.model.Person roo> entity --class ~.model.Person --mappedSuperclass --abstract
Created SRC_MAIN_JAVA\tt\edu\sbcs\model\P... | stackexchange/codereview |
I know that email addresses, in the local part (before the @ sign), can include a +. And everything after the + can be used by the email system for filtering and other uses. But the email itself is delivered per the part before the + sign.
Example:
larry@foo.com Delivered to larry mailbox on foo.com
jim@foo.com... | stackexchange/codereview |
I have a TreeView controll with it's ItemsSource bound to an ObservableCollection of my ViewModel. I have the TreeView wrapped by a TreeViewDragDropTarget, so that users can move nodes of the tree around, ala Windows Explorer.
I have the TreeViewDragDropTarget AllowedSourceEffects set to Copy, Move.
Howerver regardles... | stackexchange/codereview |
Possible Duplicate:
Why pure virtual function is initialized by 0?
Hi all..
First off, I know that you declare a pure virtual method like this in C++:
virtual void myMethod() = 0;
.. but as I couldn't sleep last night, my nerdy head came to think if the "= 0"-part has any semantic meaning, or if it's "just" there t... | stackexchange/codereview |
Is there a simply way how to get the virt size of the Linux process from the C/C++ code? Thanks
| stackexchange/codereview |
I have HTML escaped string printing in view. But how to decode it to plain text? Have been looking for this for hours. Does Zend Framework have something reverse of $this->escape() that can be used in view files? An unescape function in Zend Framework?
thanks.
| stackexchange/codereview |
I have a string of characters that every 2 characters represent a hex value, for example:
unsigned char msg[] = "04FF";
I would like to Store the "04" in on byte and the FF in another byte?
The desire output should be similar to this,
unsigned short first_hex = 0x04;
unsigned second_hex = 0xFF;
memcpy(hex_msg_p, &fi... | stackexchange/codereview |
Hi I just want to know what the best practice is for dynamically creating html. I can do it in two ways
Direct PHP
<div id='id-here'>
<?php
$user->id = $_GET['id'];
$user->displayUserInformation( );
?>
</div>
jQuery ajax(js script called on page load)
$.ajax({
type: 'GET',
url: 'inc/use... | stackexchange/codereview |
I have an javascript image gallery that slides in images from offscreen in Mobile Safari. It seems like the offscreen images are not getting cached because every time they slide in it takes a few seconds to load them at which point they are already halfway to their destination. I'm trying to get all the images to loa... | stackexchange/codereview |
I have a model where one model object is represented multiple times in the displayed graph. Consider the following model:
There are many Partitions
Every partition has x SourcePorts and y DestinationPorts
Every SourcePort may be connected to a DestinationPort
One Partition is selected
I want to visualize this such th... | stackexchange/codereview |
I was looking at the registry access of vsjitdebugger.exe using Process Monitor, and I noticed that sometimes it queries the registry in the following manner (some info omited):
HKCU\Software\Classes\CLSID\{some-guid} NAME NOT FOUND Desired Access: Read
...
HKCU\Software\Classes\CLSID\{some-guid}\TreatAs NAME NOT FOUN... | stackexchange/codereview |
I would like to set the routings as follows
/url/http://google.com to urls controller and index action.
What I have now in routes.rb is:
match "urls/:url" => "urls#index"
The routing doesn't seem to work because the slashed in :url.
| stackexchange/codereview |
I want to use multiple instances of the log4j Logger. I need to attach different Properties objects to each of these log4j Logger instances.
Here is the code to configure for one instance:
LOG4J = org.apache.log4j.Logger.getLogger(Logger.class);
Properties log4jProps = new Properties();
...
PropertyConfigurator.conf... | stackexchange/codereview |
I have written some code in Java that will decode a SHOUTcast stream and return metadata. This code works as intended, but when I port it to Android the same code does not work. Specifically, I can't seem to parse the HTTP response header from the SHOUTcast server. Where I can parse it just fine outside Android, I s... | stackexchange/codereview |
Test classes generated by Visual Studio usually have a TestContext property, as follows:
private TestContext testContextInstance;
public TestContext TestContext {
get {
return testContextInstance;
}
set {
testContextInstance = value;
}
}
What MSDN had to say about this wasn't particul... | stackexchange/codereview |
I tried active but when I unclicked it wouldn't stay selected.
Here is where I am trying to do it. You will see that On the hover it gets selected.
http://www.prototypesyndicate.com/_forms/marketing_packages.html#premium
| stackexchange/codereview |
I've built a stackpanel like this
<g:StackPanel ui:field="ticketsPanel">
<g:VerticalPanel g:StackPanel-text="Tickets">
<g:Hyperlink targetHistoryToken='newTickets'>New tickets</g:Hyperlink>
<g:Hyperlink targetHistoryToken='myTickets'>My tickets</g:Hyperlink>
<g:Hyperlink targetHistoryToken='allTickets'>A... | stackexchange/codereview |
What is the best available EC2 AMI configured with
Django Stack
MySql Installed and configured
Apache or any other Server
After searching I have found only one bitniami djangostack. Have any of you ever tried it. Are there any other options.
Thanks
| stackexchange/codereview |
I have and audio recorder and player first i can record audio then the recorded audio can be played ,when audio is playing i want my seekbar thumb move smoothly but currently it have no smooth movement also the fast switching of play and pause sometimes fail my application by saying that illegal state :anybody please s... | stackexchange/codereview |
Can you tell me what is the meaning of " Java-class-file loader library in C"?
It's a homework assignment and I am not sure how I should approach it.
Update:
I just found out a link on github which exactly defines the topic but I still need some help to figure out what exactly this means?
| stackexchange/codereview |
I want to retrieve the value through query string and then use this value to pass in the url as offset of the page in asp classic.
| stackexchange/codereview |
I need a function similar to the ones explained here...
JS function for writing out a word, binary counter style
...but using base 7 (or others) to generate (count) letters up from A to G
Like so...
---a
---b
---c
---d
---e
---f
---g
--aa
--ab
--ac
--ad
--ae
--af
etc. up to gggg
Is ther... | stackexchange/codereview |
I need to get an .click() event and prevent form from behaving as it was initially designed and make my own changes and submit. How is it possible?
EDIT: Form input actually has an onclick defined behavior. I need to redefine it somehow.
EDIT: Some code
<form action='link' method='get'>
<input type="image" name="nam... | stackexchange/codereview |
Is it possible to query outlook address book using AS3?
| stackexchange/codereview |
I am developing an application. In my application I am display images using ImageView from url using xml parsing. I want to display zoom image when I double touch on the Image, then again double touch on zoomImage, I want to reset image. How to implement in image using Android?
| stackexchange/codereview |
I have some strings in a xml, for example
<string name="String1">My String 1</string>
<string name="String2">My string 2</string>
and I want to show in the activity something like My String 1: My string 2
Is it possible to add to the same TextView more than a
<TextView android:text="@string/String1"/>
<TextView androi... | stackexchange/codereview |
Trying to style a dropdown list in Silverlight 4 - I have successfully made all of the visual style changes. The part that has me stumped is I am trying to align the dropdown (pop-up) portion of the control so that the right edge of the dropdown is aligned with the right edge of the control. The default is the left edg... | stackexchange/codereview |
Is there an elegant way to fire an event when characters are available from System.in? I'd like to avoid polling InputStream.available().
| stackexchange/codereview |
I was going through the Spring documentation on JMX and came across the following paragraph:
By configuring NotificationListeners in place, every time a JMX Notification is broadcast
from the target MBean (bean:name=testBean1),the ConsoleLoggingNotificationListener bean
that was registered as a listener via the notific... | stackexchange/codereview |
This Question describes Firefox responding much slower than IE for debugging ASP.NET apps with visual studio:
Debugging asp.net with firefox and visual studio.net - very slow compared to IE
I am having the exact same problem with Chrome. Pages load very fast in IE, but there is about a 5 second lag loading every page ... | stackexchange/codereview |
I am pulling data from a section of one page into another in order to build a menu. I need to pull the data into a hidden element or variable as right now I end up with a duplicate menu. My dynamic fly out and the static <ul><li>'s. The menu is built of of these.
Here is what I have so far:
<script type="text/javasc... | stackexchange/codereview |
In this use-case I need to monitor Twitters stream for tweets with certain hash-tags and then pull those tweets out and store them. I am using Twitter4J for this and Twitters Streaming API. The hash-tags to monitor change frequently so I would like to refresh the filter every 10 minutes or so. When I refresh I am simpl... | stackexchange/codereview |
I feel like I'm missing something rather important in both circumstances, but I can't seem to figure either out:
1) I have a model named TestCase -
class TestCase < ActiveRecord::Base
belongs_to :test_suite
scope :queued, lambda { where("test_cases.suite_id IS NOT NULL") }
scope :assigned_to, lambda { |sid| wher... | stackexchange/codereview |
I've been tasked with implementing a JSON feed on an asp.net website that will be consumed by 3rd party apps (such as IPhone, Android, etc) and I'd like to follow best practices.
An example of what I'd like to achieve would be something similar to: http://api.entertainment.ie/restaurants/listbycounty.asp
I've chosen th... | stackexchange/codereview |
ok so i have this call
location.requests.group_by(&:song)
location is
>> location = Location.find 4
=> #<Location id: 4, venue: "Rod Laver Arena at Melbourne Park - Melbourne Vic, ...",
showdate: "2010-11-20", created_at: "2010-10-28 01:20:42", updated_at:
"2010-10-28 01:20:42", band_id: nil, artist_name: "Metallic... | stackexchange/codereview |
Is there any body who has used TREC_EVAL? I need a "Trec_EVAL for dummies".
I'm trying to evaluate a few search engines to compare parameters like Recall-Precision, ranking quality, etc for my thesis work. I can not find how to use TREC_EVAL to send queries to the search engine and get a result file which can be used... | stackexchange/codereview |
I'm trying to have a window with a <Menu> element in it bound to a dependencyProperty:
Here is my Xaml:
<Window x:Class="attachement.xWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://s... | stackexchange/codereview |
I am forcing the download of an image through my website.
Forced download works fine on Apache/Windows development machine.
However it pushes junk characters to the screen when live on my linux web server.
e.g. �����JFIF��H�H����6Exif��MM�*����
Firefox - junk
Chrome - junk
Internet Explorer 7 - displays the image in ... | stackexchange/codereview |
I'm using NSIS script to generate the windows installer for my Java project. In this installer, I want to check whether the computer has the right JRE version before proceeding.
This is my code snippet for getting the JRE version:-
ReadRegStr $1 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion"
# disp... | stackexchange/codereview |
I am using the the sample code provided by microsoft to automate Outlook.
But i get an Exception: HRESULT: 0x80004004 (E_ABORT) when i try to add the Recipient.
My Envoirement:
VS2010
Outlook 2007
WinXP 32bit
Domain
Any ideas what is going wrong? Do i require any special permissions?
Regards
| stackexchange/codereview |
I have a JPanel and I want it so that whenever a user clicks on it, a sliding window appears just below the panel and giving more information to what is already in the JPanel. How can I do this?
| stackexchange/codereview |
I want to use the Berkeley Aligner for some MT research I'm doing, since, apparently, it beats GIZA++ pretty handily (a 32% alignment error reduction in some reported results). For the most part the outputs in the Berkeley Aligner "examples" directory look like what Moses does to GIZA++ output files (i.e., paired alig... | stackexchange/codereview |
I am trying to automate a build, and the application uses COM+ applications with Components, and I need to figure out how to delete the component from the package using c#. I am using the COMAdmin library, and have built out a collection of the applications, but i'm kinda stuck from there. Any help would be appreciat... | stackexchange/codereview |
If i use accelerometer in my app should i add Required device capabilitiesi in info.plist and enter accelerometer ?if yes what should i add exactly?
| stackexchange/codereview |
I've downloaded a new api for Java that accesses excel files, but am unsure on how to install it so that it can be imported for use in my program. Help is appreciated. Thanks
| stackexchange/codereview |
I've been looking through Zend Framework's source code and noticed that most (if not all) comparisons are done with the operands in the reverse order I would expect:
if ((false !== $request) {
...
}
instead of:
if (($request !== false) {
...
}
What is the reason for this convention?
| stackexchange/codereview |
i'd like to handle orientation change on an iPad application with one UIViewController and two XIBs, let's say MenuView and MenuViewLandscape.
So, in the willRotateToInterfaceOrientation method of the MenuViewController, how can i change XIB without using another controller for the landscape mode ?
I'm using the follow... | stackexchange/codereview |
I am trying to get accustomed to the ways of PHP 5.3 and I am confused. :o
Are they both accomplishing the same thing?
| stackexchange/codereview |
The problem I am having is when I have a Perl script reading data (PE Executable) via STDIN and the stream contains a line terminator "0A" the conversion to hex misses it. Then when I convert the hex data back it is corrupted (missing 0A in the hex format). So how can I detect the "windows" version of line feed "0A" in... | stackexchange/codereview |
Hey. I'm working on an App Engine app that involves queries to the Google Maps API for geocoding. Google Maps doesn't like too much requests so I put a 1 second delay between each request with time.sleep(1).
I noticed that my quotas are running low in my GAE dashboard and decided to run a short test:
import cProfile
i... | stackexchange/codereview |
Is it possible to static link mfc90d, msvcp90d and msvcrd to make it possible
to run a debug version of the program on a computer without installed Visual Studio?!
(At this point I can't make a release version)
Thank you in advance!
greets leon22
| stackexchange/codereview |
I have converted an xml object returned from a php function into json format to send it to js file like.
function searchResults($q) { ...
$xml = simplexml_load_string($result);
return json_encode($xml); }
I receive/use it in js like
var msg_top = "<"+"?php echo searchResults('windows');"+"?"+">";
Then I re... | stackexchange/codereview |
I have a list of unsorted objects. Those objects represent a binary tree.
List of objects:
new List<Object>
{
new { Id = 3, Left = /, Right = / }
new { Id = 5, Left = /, Right = / }
new { Id = 4, Left = 2, Right = 5 }
new { Id = 2, Left = 1, Right = 3 }
new { Id = 1, Left = /, Right = / }
}
Binar... | stackexchange/codereview |
I'm trying to marshal a struct from a byte[]. Each part works except marshaling a string. It looks to me like a BSTR:
06 00 00 00 48 00 65 00 6c 00 6c 00 6f 00 21 00 00 00
So, that's a 4-byte length then "Hello!" in unicode with a double null terminator. Here's the marshaling code I have toyed with:
string auto = Mar... | stackexchange/codereview |
I created a keystore using keytool, but the thing is, we're using a JDK remotely ( and I don't have write priviledges on the server ).
I noticed that ant has a keystore attribute, and I would like to pass that along to the signjar task.
Is it possible to add the keystore into the version control repository, and use it... | stackexchange/codereview |
So if i am French and browse facebook in French, is it possible for an application to change its locale or language settings based on that of the user? In other words, if i open the facebook app, i would like to see the app content in French. Similarly for any other language. How can this be done?
P.S. I am using the... | stackexchange/codereview |
I made and committed changes to my branch.
Someone else mistakenly merged and committed those changes to the default branch.
To fix their mistake, they used hg backout on default.
Then people committed a bunch of other changes to default.
I didn't realise the backout had happened, and wanted the latest changes. So I m... | stackexchange/codereview |
I have some sound that is played in a loop as a noise is registered using an AVAudioRecorder.
Here is my code:
NSString *pathToFile = [[NSBundle mainBundle] pathForResource:@"foghornRepeat2" ofType:@"aif"];
foghornRepeat =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:pathToFile] error:nil]... | stackexchange/codereview |
I configured nutch with the following in my conf/nutch-site.xml
<property>
<name>plugin.includes</name>
<value>urlfilter-regex|protocol-(http|file)|parse-(text|html|pdf|msword)|in
dex-(basic|anchor|more)|query-(basic|site|url)|response-(json|xml)|summary-basic
|scoring-opic|urlnormalizer-(pass|regex|basic)</value>
... | stackexchange/codereview |
I have two tables (picture), AirportIn is a foreign key of AirportID, and AirportOut is also a foreign key of AirportID.
The problem is I can't make relations between these tables like this:
dataset.Relations.Add("AirportFlight", dataset.Tables["Airport"].Columns["AirportID"], dataset.Tables["Flight"].Columns["Airpor... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.