instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've been trying to learn the ins-and-outs of Windows Phone 7 programming over the past few weeks. I have learned most of the basics but I've been having trouble finding a tutorial explaining exactly how to do something with XML. I want to create a very basic app which accesses an XML file at a web address and displays... | stackexchange/codereview |
Is there a way to access and alter the settings of the standard Android browser programmatically?
| stackexchange/codereview |
I am writing some application in which i need to send mails. My application is in JAVA so probably i will be using javamail. But i dont know how to use it and how to configure mail server from my local pc so that i can test if mails can be sent.Please suggest.
| stackexchange/codereview |
I didn't find any answer on web with vb.net (I find millions of samples with c#)
I translated a sample controller to vb.net but doesn't upload
My ResimController.vb
<AcceptVerbs(HttpVerbs.Post)>
Public Function Anasayfa(ByVal forms As FormCollection) As ActionResult
Dim errors As Boolean = False
If String.IsNu... | stackexchange/codereview |
I have a web app that wraps the main site content in an Iframe to enable some elements that are persistent across the site (only way to do what I'm after as far as I can tell).
It works fine on most browsers, but there is a scrolling problem on the Iphone: The content displays, but trying to scroll does a drag and drop... | stackexchange/codereview |
I just want to know the problems associated with copying objects within the Java context? any ideas?
| stackexchange/codereview |
I tried to install ruby-ldap on Snow Leo, but it failed:
~/WorkingFolder/temp/test$ sudo gem install ruby-ldap
Password:
Building native extensions. This could take a while...
ERROR: Error installing ruby-ldap:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby extconf.rb
--with-openldap2
checking ... | stackexchange/codereview |
I am new to Android and relatively new to Java so please bear with me. I have an XML file stored in the res/xml that I am trying to write to. I know how to read it using XmlResourceParser, but I have not been able to find a way to write to that file locally. Could someone point me in the right direction please.
| stackexchange/codereview |
I am using a datagrid that is allowing to drag its rows. My problem is that when i try to scroll down on my grid using the mouse on the side scroller, i get the 'no enterance' sign that means that "drag and drop is not allowed here, dude...". How can i modify my drag and drop function to recognize that this is not a dr... | stackexchange/codereview |
i have this in my index.php
include 'app/Core.php';
echo Core::getPageHtml();
in Core.php
final class Core
{
public static function getPageHtml()
{
ob_start();
include 'layout.php';
$html = ob_get_clean();
return $html;
}
}
layout.php is normal html code, i can see de page, just perfect... | stackexchange/codereview |
OK I have a base query that is returning a list (ObjectQuery, actually but I don't think it matters)
I have about 5 subtypes based on the main type and I need to filter them. Everything works fine until I want
the results to be of the main type (not a subclass)
Basically I have a query that includes everything, then I ... | stackexchange/codereview |
I need to add video and audio recording functionality to an existing app that uses Core Data. I've been thinking that I should save them to the file system and reference them using Core Data but I wondered if I can put them into Core Data as Transformable attributes and ignore the file system altogether?
My gut feelin... | stackexchange/codereview |
Im trying to reference this config file that is in the same folder as the class that contains this code. I'd like to do some type of relative reference to it, so I can use it from other places. When I try using just the file name without the path, the application doesn't find the file. I debugged and the folder it se... | stackexchange/codereview |
I have a project that I need to make a service that we will add to it about 500 RSS for different sites and we want this service to collect new RSS feeds from these sources and save Title and URL in my SQL Server database.
How can I determine the best architecture design, and what codes would help me in that?
| stackexchange/codereview |
My OpenGL ES classes and code are derived from Apple's GLES2Sample code sample. I use them to show 3D objects rotating smoothly around one axis, at what I expect to be a constant rotation speed. Currently, the app uses a frame interval of 1, and each time the OpenGL view is drawn (in the EAGLView's drawView method), I ... | stackexchange/codereview |
What articles/tutorials can you recommend for LINQ Expression Trees?
| stackexchange/codereview |
I need to stop a running translate animation. The .cancel() method of Animation has no effect; the animation goes until the end anyway.
How do you cancel a running animation?
| stackexchange/codereview |
I am trying to find a sample code for download a file in python. To be exact, I am trying to convert a php to python.
My php sameple code:
$http_request = "POST $path HTTP/1.0\r\n";
$http_request .= "Host: $host\r\n";
$http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
$http_request .= "Content-Len... | stackexchange/codereview |
So. I have a table of data, in a MySQL database, eg:
Artist Name
Artist Biography
Artist Age
lets say for example: 100 artists.
Because this data will be modified very rarely, I have created an interface whereby when the data is modified by the administrator using the content management system, the system queries t... | stackexchange/codereview |
I have a standalone aspx with vb.net backend file. I need to import google api referance in this file. If i put this file in a asp.net application project, the referance gets imported easily by using "add referance". But when i use a standalone file, the referance cannot be imported.
How can i import this google api r... | stackexchange/codereview |
Why is Bash producing two different outputs for these two commands:
$ echo $(tput cols 2>/dev/null)
80
$ echo $(tput cols)
141
PS. Widen your terminal to have more than 80 columns (most shells default to 80).
| stackexchange/codereview |
My image says it all.
At #1 screenshot is how it is right now
At #2 is how I want it to be
How can i do this?
Here's my current html:
<div>
<span style='float: left; margin: 10px; width: 60px; display: block;'>
<img style='border: 1px solid #FFF; width: 61px; height: 80px;' src='images/profilePhoto/thumbs/104.jpg'>
<b... | stackexchange/codereview |
I have a file called "config.php" that looks like this:
define("DB_NAME", "mydatabase")
in another file I have:
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
defined('SITE_ROOT') ? null : define('SITE_ROOT', 'C:'.DS.'inetpub'.DS.'wwwroot');
defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.DS.'lib'... | stackexchange/codereview |
Lets say for example, I push a large amount of data onto the stack using some assembly code. My question is, is it possible to manipulate this data in a language such as c++ by passing the address of the stack pointer to the c++ program(or some other way)? If so, how would c++ handle this data? Meaning, how would I det... | stackexchange/codereview |
servlet-api.jar I shifted this jar file from one system to the other.
But I get the following error like -jar not loaded. Offending class:javax/servlet/servlet.class when I start the tomcat server.
Kindly let me know what would be the cause for this error and how to resolve the same.
Tomcat version is 5.5 in the curren... | stackexchange/codereview |
I have a very simple statemachine that sets some control signals to interact with a third party IP. The code looks roughly as follows:
entity testip is
port (
...
fifo_dataout : in std_logic_vector(0 to 31);
ip_dataout : in std_logic_vector(0 to 31);
ip_ce : out std_log... | stackexchange/codereview |
I am using ipinfodb.com to get geolocation info for IPs, but it only gives postal codes for US addresses.
I am also getting GPS coods from mobile devices, but I need to get more useful information from these GPS coods, that is the country, state, city and postalcode of that GPS coods.
Two questions, 1) is there a more ... | stackexchange/codereview |
I think that my Eclipse is trying to destroy my brain.
Actually I'm creating a project from a svn trunk and everything worked fine till this morning when I opened Eclipse and it said me that there is an error, the I opened all the class and packages to find where it is but there are no red asterisk so, where is the pro... | stackexchange/codereview |
In ruby you can do this:
class A
def self.a
'A.a'
end
end
puts A.a #-> A.a
How can this be done in python. I need a method of a class to be called without it being called on an instance of the class. When I try to do this I get this error:
unbound method METHOD must be called with CLASS instance as fi... | stackexchange/codereview |
This problem is a little difficult to describe, so bear with me if it isn't clear.
I want to implement a doubly-linked list with a single, universally accessible [to the items inside] Head, End and Iter pointers - this would greatly reduce memory overhead and processing/accessing times...
Static almost fulfills this ro... | stackexchange/codereview |
I only can think to use GPS location to calculate the distance ...
What if the two device is in the same building,but different floor
How to get the vertical distance ?
or any better ideas ???
| stackexchange/codereview |
I am having a weird issue. I am developing a WPF app, and I added a Setup Project in order to create an installer. I am developing on XP. If I install the app on my machine it works fine, but if I install it on a Win 7 Virtual Machine it crashes when closing. On Win 7, if I run the app as administrator it doesn't crash... | stackexchange/codereview |
When I upload a file onto mediawiki with Special Characters in the name it mangles the filename into something that looks like this:
Waterford_(Dáil_Éireann_constituency).png
when it actually writes it to the file when it should actually look like this:
Waterford_(Dáil_Éireann_constituency).png
Which means that whe... | stackexchange/codereview |
And both be included by a project, if they are in different namespaces? I'm having a problem just including them because of duplicity...
| stackexchange/codereview |
I have a shell command like this
sudo nohup coffee -c -w *.coffee &
disown $!
wait
but when I run the shell scrit it says nohup: appending output to 'nohup.out' and makes me hit enter.
How do I get around having to hit enter?
| stackexchange/codereview |
Assume you have one box (dedicated server) that's on 24 7 and several other boxes that are user machines that have unused bandwidth. Assume you want to host several web pages. How can the dedicated server redirect http traffic to the user machines. It is desirable that the address field in the web browser still disp... | stackexchange/codereview |
How to keep CakePHP 1.3 session after browser is closed?
| stackexchange/codereview |
I tried to compress a tikzpicture using the following newcommand:
\newcommand{\tchild}[3]{ child { node{#2} #3 edge from parent node[above]{#1} } }
%intended usage: \tchild{edge label}{vertex label}{child nodes}
If I apply it to the following example, I get a working document. However With the example given below pdfl... | stackexchange/codereview |
hi
I have a program that log some data in text file in specific path.(log.txt)
I can open the file (log.txt) with notepad and read what is in it.
now I'm writing a program to read log.txt but I get the exception
"The process cannot access the file 'log.txt' because it is being used by another process."
what should I do... | stackexchange/codereview |
I'm working on a project of which a large part is server side software. I started programming in C++ using the sockets library. But, one of my partners suggested that we use a standard server like IIS, Apache or nginx.
Which one is better to do, in the long run? When I program it in C++, I have direct access to the ra... | stackexchange/codereview |
I'm writing an app that will allow iPhone users to login to their accounts. Once logged in the user can pull information, change passwords, change other types of data via webservices. I'm new to iPhone programming and I'm a bit confused on my viewController setup to handle this. What I would like to do is the follow... | stackexchange/codereview |
What are the benefits of installing mamp or another package vs enabling php in httpd.conf and manually installing mysql? I am really not sure of which option is better and would love some info.
Thanks,
| stackexchange/codereview |
consider the following array of bytes that is intended to be converted into a single unsigned integer:
unsigned char arr[3] = {0x23, 0x45, 0x67};
each byte represents the equivalent byte in integer, now which one of the following methods would you suggest specially performance-wise:
unsigned int val1 = arr[2] << 16 | ... | stackexchange/codereview |
So I have a color picker. Users can pick colors using RGB or HSB. There are sliders/properties for each value. When user sets Red for example, I will calculate HSB values to reflect new color value. When user sets Hue, the RGB value will be recalculated from the HSB values. But see there's a loop there. When I set RGB ... | stackexchange/codereview |
So, I've tried looking all around for information on how to recreate a UILabel (ideally, or a UITextField) with a title (for lack of better work).
Since it's quite hard to explain (half the reason I couldn't find what I was looking for) I've attached an image from the Facebook App.
How would I go about creating labels ... | stackexchange/codereview |
Yeah I've drawn a blank on the this one, and after playing about with it a bit the css isn't as neat as I'd like it to be. The navigation / roll-over images work the way I want in Firefox, but I can't get it working in IE. IE stacks the rollover links on top of each other basically. http://www.plumberkendal.co.uk <--- ... | stackexchange/codereview |
Considering the following:
a) you want some confidentiality (as in not telling everybody how many orders you've received).
b) you want a check digit (e.g., using the Verhoeff algorithm) at the end so you can easily tell misspells and help dealing with errors when scanning barcodes, if this is the case.
c) you've to con... | stackexchange/codereview |
With regards to this solution.
Is there a way to limit the number of keywords to be taken into consideration? For example, I'd like only first 1000 words of text to be calculated. There's a "Take" method in Linq, but it serves a different purpose - all words will be calculated, and N records will be returned. What's th... | stackexchange/codereview |
I have very bad code written in php. It consumes a lot memory, and then it brakes down, clears the sessions and bows!
I need to know when the garbage collector runs, so that I can prove that this is indeed the case, but as far as i know php5.2 doesn't provide such of functions. The code is written by an inexperienced... | stackexchange/codereview |
Do you use StringUtils.EMPTY instead of ""?
I mean either as a return value or if you set a the value of a String variable. I don't mean for comparison, because there we use StringUtils.isEmpty()
| stackexchange/codereview |
Is there a way for an NUnit test to end and tell the test runner that it should be considered skipped/ignored, rather than succeeded or failed?
My motivation for this is that I have a few tests that don't apply in certain circumstances, but this can't be determined until the test (or maybe the fixture) starts running.
... | stackexchange/codereview |
I feel like I've been neglecting this powerful tool and not using it to full capacity. What are the most useful Visual Studio capabilities or tools that you use most often?
| stackexchange/codereview |
A friend of mine is in the real estate business and after being showed the art of writing copy for real estate ads, I realized that it is very formulaic. Especially when advertising online as there are predefined fields you fill in.
Naturally, I thought about creating a generator that pretty much automates writing the ... | stackexchange/codereview |
Two books (Learning Rails and Foundation Rails) both use restful_authentication gem / plugin to do user registration / activation. Is it a gem comparable to AuthLogic and OmniAuth?
Is it still a good useable plugin for doing so and work well with Rails 3? I thought GEM is the preferred method, and restful_authenticat... | stackexchange/codereview |
You'll need Opera 9.62 to see what this is all about... Because that is the only browser that behaves strange when I do cross-sub-domain JavaScript calls (with Ajax involved). Please consider the following three simple files and place them at appropriate domains.
foo.html (parent of boo.html iframe) at foo.example.com... | stackexchange/codereview |
As I'm not too much familiar with cpu registers, in general and in any architecture specially x86 and if compiler-relevant using VC++ I'm curious that is it possible for all elements of an array with a tiny number of elements like an array of 1-byte characters with 4 elements to reside in some cpu register as I know th... | stackexchange/codereview |
With the help of a onchange event on a drop-down menu, I make that only the paragraph relevant to a category are displayed. It works on FF and Opera, but on IE 7 and IE 8 there is no change when selecting a new option on the drop-down menu, and only the default paragraph are displayed.
The javascript code does work as ... | stackexchange/codereview |
In MySQL, you can select X random rows with the following statement:
SELECT * FROM table ORDER BY RAND() LIMIT X
This does not, however, work in SQLite. Is there an equivalent?
| stackexchange/codereview |
I'm a strong proponent of version control, and am starting work on a Django project. I've done a few before, and have tried a few different approaches, but I haven't yet found a decent structure that I actually feel comfortable with.
Here's what I want:
a) Source code checked into version control
b) Preferably the envi... | stackexchange/codereview |
In the autocomplete result list. How do I capture the click event? Currently results are links. When clicked they open a new window with the embedded url but when this happens the autocomplete doesn't lose focus and the result box gets stuck open. It stays open even when the user comes back and clicks anywhere on the p... | stackexchange/codereview |
When I deploy my web part locally everything is fine. The web part is registered as safe, and is completely usable.
When I deploy the wsp to another server the web part comes back with the following error although everything appears to be deployed correctly (and the SafeControls appear within the web.config). :
Web P... | stackexchange/codereview |
I want to open a video when i tap the first cell, and i want to open an other video when im tapping the second cell and so on.
Can somebody please ell me how i have to do this? i have this code.
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section
{
return 3;//[array count];
}... | stackexchange/codereview |
I want to ensure all surnames are uppercased, so in php I use:
$surname = ucfirst(strtolower($dataField));
How do I ensure that any names such as O'Brien, don't result in O'brien
| stackexchange/codereview |
I have developed an application in WPF and C# as client requirement. Now I am facing problem in bill printing. Printer is WEP DR-400 series and I am using "FlowDocument" to preview bill and printing. Now my client wants these issue to solve;
Printing is slow than previous Foxpro based app
Numbers printed on bill creat... | stackexchange/codereview |
It's fairly obvious how to model a database table that would act as an access control list (ACL) when you're just dealing with discrete users who have some level of access to a discrete resource. Something like this:
TABLE acl (
user_id INT,
resource_id INT,
access_type INT
)
... where access_type is a number ... | stackexchange/codereview |
I am creating a streaming eventmachine server. I'm concerned about avoiding blocking IO or doing anything else to muck up the event loop.
From what I've read, ruby's non-blocking IO can be used to stream files in a non-blocking way, or I can call next_tick, but I'm a little unclear about which of these approaches is p... | stackexchange/codereview |
Is there anyway to write a robots.txt file that forbids indexing of all content except for specified directories?
Currently disallow is the only valid way which means I need to explicitly specify which directories I do not keep out - however I'd rather not announce these directories to the world...
Has anyone tackled t... | stackexchange/codereview |
I would like to create a device that will log when a person falls asleep. Of course, someone can't just open a software application and make an entry say "fall asleep, 10:13pm" and be asleep a few seconds later. Instead, I was thinking about hacking a blackberry to log whenever a person powers it on to check the curr... | stackexchange/codereview |
Aside from catching the bad_weak_ptr error thrown when trying to call shared_from_this() on a pointer that is a raw pointer, is there a way of testing whether or not the object is being reference counted?
I have functions that deal with the raw pointer and shared pointer and I want to be sure that the error is obvious ... | stackexchange/codereview |
I would like to make a wiki syntax parser in Java. I have one in PHP that goes a little something like this:
private static function runAllConversions($pString) {
$tConverted = $pString;
$tConverted = stripTags($tConverted);
// Bold and italic text.
$tConverted = preg_replace('/\'\'\'\'\'([^\n\']+)\'\... | stackexchange/codereview |
I am using the following xml file (users_doc.xml)
<users>
<user trusted="false">
<userid>vsony7@vt.edu</userid>
<password>sony</password>
</user>
<user trusted="false">
<userid>shivi</userid>
<password>shivi</password>
</user>
<user trusted="false">
<userid>xyz</userid>
<password>xyz</... | stackexchange/codereview |
I'm trying to convert a component from .net 3 to 4. The component has com interp functions that must be installed into a Component Services application. Current I'm using a WiX constructed install to do the work via the Complus action. However, when the component is changed to .net 4 if just get invalid reference probl... | stackexchange/codereview |
I have a simple .shtml file that I have declared a variable in it.
<!--#set var="testVar" value="12345" -->
But when I want to print the value using
<!--#echo var="testVar" -->
it says
Variable 'testVar' cannot be found
What's the problem? I'm using IIS 7.5 and I also tested in on Apache2 but it's not working eithe... | stackexchange/codereview |
I have a 16x16 pixel image that I want to display in an UIImageView. So far, no problem, however 16x16 is a bit small so I want to resize the image view to 32x32 and thus also scale the image up.
But I can't get it to work, it always shows the image with 16x16, no matter what I try. I googled a lot, and found many snip... | stackexchange/codereview |
Eclipse has a java compiler setting called
"field declaration hides another field or variable" that can be set to warning/error.
How important is this warning in your opinion?
What is a good standard way to handle this problem?
Code example of where this happens:
public class Test {
private String caption = null;
... | stackexchange/codereview |
I've got an app which has grown too big and I'd like to split it into two. It's not an easy task code-wise, but I'm more afraid of the database migrations I'll have to perform. Is there a proven way of doing such kind of thing?
Currently my thoughts are something like this:
Use south
Copy models to another app
Make a ... | stackexchange/codereview |
I'm looking into writing an PHP REST API that would allow registered users interact with the web service from third party applications.
What I need the API to be able to do is:
provide support for secure user authentication
allow registered users to interact with the service from 3rd party applications
this applicat... | stackexchange/codereview |
I am learning prism and I have hit a problem.
I have made an app very similar to the one that Mike Taulty makes in is great tutoral about Prism. The biggest difference is that my app is a WPF app instead of Silverlight.
I am finding that I have hit a problem though. When I close the main shell window, the app does no... | stackexchange/codereview |
how can i set the cursor:pointer; to an input file field?
html
<form id="up_1" name="up_1" action="" enctype="multipart/form-data" method="post">
<div style="position: relative;">
<input id="file_input" type="file" name="file_input" style="position: relative; text-align: right; opacity: 0; z-index: 2;" /... | stackexchange/codereview |
During development a lot of times I need to apply just a small enhancement to an html tag.
For example : a red border ,or a float left.
The best practice dictate to keep all the code in one/several css files,avoid inline styling
and keep ids to a minimum.
So how do I keep organize the css file with so many small group... | stackexchange/codereview |
I am working on C#.Net 4.0. I created WCF Dataservice and i have a client layer.
i have two tables and its been joined through SQL Server 2008 "View",. while i seeing in the SQl 2008 management studio or from the Web browser i was able to see the right output.
But when i connected from the client(through Proxy genera... | stackexchange/codereview |
I am using this to put the contents to a file
file_put_contents('abc.txt', $text);
I need to have a pop up for the user after this to save/download the file
how would I do that
| stackexchange/codereview |
I have a list of keys and values that I would like sorted by key via a custom Comparer(Of T).
I tried using a SortedDictionary, but kept getting incorrect results because it used the comparer to see if the items were the same. For example calling SortedDictionary.ContainsKey() would return false, even though it did con... | stackexchange/codereview |
Probably someone has already asked this question but I'm not sure what I'm looking for.
I've seen a couple of applications in PHP that are doing this kind of url rewriting "http://site.com/index.php/myaction/avariable"
I've done a similar thing with mod_rewrite where you'd have almost the same link "http://site.com/wha... | stackexchange/codereview |
I'm creating an application using Quartz.NET, along with an ASP.NET project to add jobs and configure the system. I'd love to be able to utilise Quartz.NET calendars, but I need a way for users to create/configure the calendars via an ASP.NET page. Is there an easy way doing this? Could I use the AJAX calendar control?... | stackexchange/codereview |
I'm going through Agile Web Development with Rails and I'm having some trouble with the form helper text_area. Specifically, I want to make the text area smaller (the form submits correctly and everything goes into the database correctly). According to the book this code should work:
<%= form_for(@request) do |f| %>
<... | stackexchange/codereview |
i have a string ex:
string word = "Background-color:red;"
don't be confused i am not talking about css
i split the word by "-"
now i forget what thing i used for split the word and
two thing first split result
Background [0]
color:red; [1]
and
string word = "Background-color:red;"
how can i check the chara... | stackexchange/codereview |
I tried to load a list of values from a table, but the cursor returns a length of -1?
Is there a possibility to view a sqlite database on a android emulator?
The Code which is buggy:
final Cursor c = db.query(
ACCESS_TOKEN_TABLE,
new String[] { ACCESS_TOKEN_COL_ID, ACCESS_TOKEN_COL_VALUE },
ACCESS_TOKEN_COL... | stackexchange/codereview |
The code in the next example,
open System.Drawing
let testColor c =
match c with
| Color.Black -> 1
| Color.White -> 0
| _ -> failwith "unexpected color"
doesn't compile. The error is Error 1 The field, constructor or member 'Black' is not defined.
How do I pattern match against .Net constants or enum... | stackexchange/codereview |
I have a SWFUpload on my page, I click the button and the file selct window comes up, I select a file but I do not know how to get the filename that was uploaded? and I dont even know if the file is being uploaded.
Can anyone help me please?
I am using ASP.NET VS2010
| stackexchange/codereview |
I can see branching is easy if you're using rails or django, which has development servers in their development directories (django-admin.py runserver).
At the moment I'm developing php served by Apache (windows). If I make a branch out of my php directory, I need to edit httpd.conf and add the new branch.
Is there a w... | stackexchange/codereview |
I use EF almost one year ago. I just try to use TransactionScope deal with quite complex query like the following code.
using (var tran = new TransactionScope())
{
// Clear all data in some table
DataContext.SomeTables
.ForEach(x => DataContext.SomeTables.DeleteObject(x));
DataContext.SaveChanges()... | stackexchange/codereview |
How can I write this PHP code in JavaScript?
I have no knowledge about JavaScript... :-s
<?php
$pozethumb=scandir("./pics/flori/thumbs");
$size=count($pozethumb);
$nrpoze=$size-2;
for($i=2;$i<$size;$i++)
{
echo"<img src=\"./pics/flori/thumbs/$pozethumb[$i]\" class=\"thumb... | stackexchange/codereview |
Hey, I'm attempting to setup SSL for my server protocol. Anyways, when I go to set the kCFStreamPropertySSLSettings, it returns false. Not sure why.
Here's my sslDict:
2010-11-04 15:48:59.742
bytestest[30897:207] sslDict = {
kCFStreamSSLAllowsAnyRoot = 1;
kCFStreamSSLAllowsExpiredCertificates = 1;
kCFStream... | stackexchange/codereview |
How do you get the first element from an array like this:
var ary = ['first', 'second', 'third', 'fourth', 'fifth'];
I tried this:
alert($(ary).first());
But it would return [object Object]. So I need to get the first element from the array which should be the element 'first'.
| stackexchange/codereview |
I'm porting over a few scripts from Watir to Selenium-RC to see how difficult the change may be for our organization.
I have a table with class 'global-list', that contains 4 columns, each column with an unordered list, and each list element containing a word with a hyperlink.
In Watir, I would simply use:
@browser.... | stackexchange/codereview |
I am trying to run a query for my media player as follows:
audioCursor = getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null,
AlbumColumns.ALBUM + "='" + albumKey + "'", null,AudioColumns.TRACK + " ASC");
A problem arises when the album has an apostrophe in it, as it ends the albumKey s... | stackexchange/codereview |
Background about binary decision diagrams can be found here BDD on wikipedia.
The simplest approach is to build BDT (Binary Decision Tree) and then reduce it due to two rules:
- Merge any isomorphic subgraphs.
- Eliminate any node whose two children are isomorphic.
But there is one major problem BDT can be really huge ... | stackexchange/codereview |
I would like to know if it's possible to force a CSS Color on a "disabled=true" textbox?
By default, this attribute is removing the css font color and replacing it by a very light gray.
Thanks
| stackexchange/codereview |
What options do I have to connect from VS 2010 to other databases like Oracle etc.? What's the best solution?
Now I'm using entity framework (for MSSql DB) and would like to know if it's posssible to use it also for Oracle? I think there are some third party solutions but want to avoid them because of the costs.
Thank... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.