instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I used an UINavigationController pushViewController to present an ViewController, on the view of the viewcontroller, there is an UITablView.
I used the codes below to draw UILabel on UITableViewCell, but it does not display, only when I tap the row where the UIlabel is, it will appear, if I tap another row, it disappea... | stackexchange/codereview |
I want to make my classes have parametr ID which identificate this class.
For example I want something like this:
class Car
{
public static virtual string ID{get{return "car";}}
}
class SuperCar : Car
{
public static override string ID{get{return "superCar";}}
}
Car a = new Car();
//a.ID == car
a = new SuperCa... | stackexchange/codereview |
In some cases when I use open to get a web page in Ruby the content of the page has an encoding error. Example:
open("http://www.google.com.br").read
Chars like ç and ã are replaced by ?
How can I get the right chars?
| stackexchange/codereview |
I am integerating iphone app with google calendar using gdata api's.
Done with event add, delete, fetch, update
but the reminder is not adding in calendar event
My code is :
NSDate *anHourFromNow = [NSDate dateWithTimeIntervalSinceNow:60*60];
GDataDateTime *startDateTime = [GDataDateTime dateTimeWithDate:[NSDate date]
... | stackexchange/codereview |
In my application I want to create binding during runtime, and each object has to have a separate binding.
For example: I have two copies of a UserControl and each copy has property Text and it has to be bound to different data source.
And as Dependency property is static it won't allow to have a DP per instance, only... | stackexchange/codereview |
$.fn.resizer = function(o){
var s = {}
$.extend(s,o);
return this.each(function(){
$(this).css({
'width':s.width+20,
'height':s.height+20
})
.parent().css({
'width':s.width,
'height':s.height
});
});
}
... | stackexchange/codereview |
I have a javascript function that I am trying to validate the inputs of a gridview. My problem is that I cannot get the value of the cell. Here is what I have:
function fcnCheck() {
var grid = document.getElementById("<%= GridViewProducts.ClientID %>");
var cellPivot;
if (grid.rows.length... | stackexchange/codereview |
I'm a newbie in Linq and C# and I'm going need some help. These following marks "____" need to be filled out with the right syntax word. The main problem is that I can't find the last keyword between owner.OwnerID and dog.OwnerID.
From your point of view, do you think that I'm using right synax code instead of "____"?
... | stackexchange/codereview |
I've been fighting with this for a few days now and it looks like I really have to ask someone else.
For the purposes of this thread, here is the problem: I am trying to manipulate a string using PHP's preg_replace and the 'e' modifier to execute a function within it. I want to change any instance of [pdf]somefilename[... | stackexchange/codereview |
I am using JFlow for my content slider and would like to select one particular slide on page load. It can be the 5th slide or the second one but I don't want to re-order the slides.
Any ideas? link text
| stackexchange/codereview |
I'm working on a webapplication and i want to call a webservice through it's url. How can i achieve this?
I've got the following route registered in my global.asax;
routes.MapRoute(
"ServiceHandler",
"{*path}/{*.svc}",
new { Url = "Services/Service.svc/GetLatestTweets" }
... | stackexchange/codereview |
I have some Java code and I would like to translate it to C#.
srcParams is a Hashtable.
This is the Java code:
for (Enumeration keys = srcParams.keys(); keys.hasMoreElements()) {
key = keys.nextElement();
destParams.Add(key, srcParams[key]);
}
And this is my attempt in C#
IEnumerator key = srcParams.Keys.GetE... | stackexchange/codereview |
I'm using FileResult as a return value for a function in MVC that returns a PDF file.
What return type should I use in Web Forms?
Thanks
public FileResult PrintPDFVoucher(object sender, EventArgs e)
{
PdfDocument outputDoc = new PdfDocument();
PdfDocument pdfDoc = PdfReader.Open(
Server.... | stackexchange/codereview |
I'm debugging with concept check in boost and gcc. The code finds are error like this
/home/hoffman34/boostlibsinstall64/include/boost/wave/util/
cpp_iterator.hpp:2495:1: instantiated from
'boost::wave::pp_iterator<boost::wave::context<__gnu_cxx::__normal_iterator<char*,
std::basic_string<char> >,
boost::wave::cpp... | stackexchange/codereview |
To run some simulator we installed Windows Services for Unix.
This uses an UDP port 1035,
In some PC's this Windows service for Unix works fine, but in others it fails.
After some analysis I found that this is due to some Security application.
Now, this application will be installed in 100s of PCs and most of them with... | stackexchange/codereview |
I have two classes as Splash.java and Activity2.java!! I have tried simple code for splash as:
public class Splash extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Thread thread= new... | stackexchange/codereview |
Hello
Can any one tell me how to send request to a function in views.py in Django? Thanks
| stackexchange/codereview |
How to call more than one javascript function on the window's onload event?
For Ex,
window.onload=MyFunc(); //Single Function
But what if there are more than one functions to call on the window's onload event...
| stackexchange/codereview |
Hi I am facing an issue with Linux / GNUstep. My NSMutableArray(s) do not seem to retain any added objects to them. Shouldn't they? Example:
NSString * str = @"test";
NSMutableArray * arr = [[NSMutableArray alloc] init];
NSLog(@"before add retainCount: %d", [str retainCount]);
[arr addObject: str];
NSLog(@"after add re... | stackexchange/codereview |
Hey I would like to use Nested Stored Procedures in ASP.NET 2.
The first stored procedure returns all Campains and second one returns all items in the campaigns.
I have my 2 repeaters set up, and now I am trying to pass a parameter from the parent repeater to child repeater stored procedure i.e campaign id....this prov... | stackexchange/codereview |
I want to override the silent mode and/or media volume to make the phone broadcast a loud noise. I know the alarm clock can override silent mode. How do you do this through your app?
| stackexchange/codereview |
Starting to develop to actual code to my website and wanted to know how do i develop or design the website that is load balance friendly. I read a post on stackoverflow regarding scalability and the selected answer stated: "Make sure you consider load balancing when developing your application". How do I go about this?... | stackexchange/codereview |
In Doxygen, I would like to have more synthetic collaboration diagrams, i.e. where just the class name or just its public member functions are shown.
I do not want to disable the analysis of what a class is made of, I just do not want to see it in the diagram.
In the documentation I could not find a way to do it. I... | stackexchange/codereview |
Assume you want to build a database for some web application. This database already contains many tables and you might have to extend it in the future.
Also, you want the end user to be able to comment any kind of object in the database.
I would like to find a solution for this would be generic enough so that I don't h... | stackexchange/codereview |
If Internet goes down while we make a Ajax Request then how to give feedback to the user that the internet is down ?
| stackexchange/codereview |
How to select with relationship is many to one in JPA
in Many to One How to do select statement example
Student - Class
student is many to one class
class is one to many student
in class i can select
select c from Class c where c.studentid = :studentid
if if in student it have instance of Class?
how i do the same s... | stackexchange/codereview |
I have a grid which is dynamically added to the Layout-root which could have X amount of rows and X amount of columns. What I am wanting to do is when the client hovers over a cell in the grid the X and Y axis is highlighted.
Example Shown below:
| stackexchange/codereview |
I'm having issues keeping the parameters of the URL working after an .htaccess URL rewrite.
My .htaccess rewrite is as follows:
RewriteEngine on
RewriteRule ^([a-z]{2,2})/([a-zA-Z0-9_-]+)$ index.php?lang=$1&page=$2
Which means:
example.com/index.php?lang=en&page=product displays as example.com/en/product
For some re... | stackexchange/codereview |
I have a chat application server running on a PC which has dynamic IP.
nearly every hour it keeps changing.
how can i notify the users abt the changed IP?
| stackexchange/codereview |
i am using role provider and have it managing users on my intranet via their windows logins.
how can i pull their email address and maybe some other user content from asp.net using their user info?
do i need to hook into active directory? a sample fir this would be great if this is the way to go
thanks all
| stackexchange/codereview |
I'm running into some trouble with deploying Django on the passenger_wsgi module with virtualenv. The Python code in the passenger_wsgi.py file, which should fix my problem is:
import os, sys
INTERP = '/home/login/.virtualenvs/env_name/bin/python'
if sys.executable != INTERP:
os.execl(INTERP, INTERP, *sys.argv)
Th... | stackexchange/codereview |
I have a middle size of website that share a common header/footer and almost each page would have its own specific file for layout. I have put the common header/footer in a sperated html file, but I do not know where to put the css file because the link element in footer.html <link rel="stylesheet" type="text/css" hr... | stackexchange/codereview |
I have thousands of images in a directory divided in sub folders. I want to take all these images out of the file system and put them in a database. I dont think this kind of data is good for a normal database like sql server. is there a database out there that is good for holding thousands if not millions of small hig... | stackexchange/codereview |
I want to be able to find the IP address of my router programmatically in order to perform diagnostics. Is there any way I can find this out using public APIs in Mac OS X and/or iOS?
| stackexchange/codereview |
Anyone has pointers on how to get real time US gas station feeds via webservice ?
I'm trying to develop an iphone app that give users real time gas station price near their location. Currently i was wondering is there a legit government service that produce real time gas station price in the US on a daily basis?
I he... | stackexchange/codereview |
how do i connect two computers together using asp.net, similar to using TCP/IP where they connect through an ip-address and a port but im trying to avoid TCP/IP. How can i do a similar way with asp.net, http protocol
| stackexchange/codereview |
I want to find some elegant way to achieve this. Maybe like follwing:
hash={"1"=>"1","2"=>"2"}
r=[]
hash.each do |k,v|
if k!="1"
r<<k
end
end
puts r
Any better way to achieve this?
| stackexchange/codereview |
In Delphi 2009 and Windows API, is there a way to detect that a particular piece of code is running in the context of a secondary thread? In pseudocode, I would like to be able to say:
procedure DoSomething;
begin
if InvokedBySecondaryThread then
DoIt_ThreadSafeWay
else
DoIt_RegularWay;
end;
This is for a ... | stackexchange/codereview |
UPDATE2 I think I found the true source of the leaks. I had some business objects that have string properties I forgot to release. These string properties were copied from my custom xlm node object, created here (KGYXMLNode) I don't understandt why the leak is reported here instead of my custom class. My NSString prope... | stackexchange/codereview |
I currently have a site with a menu in a frame on the left and the content in a frame on the on the right. I want to move the menu frame to the top of the page (horizontal instead of vertical), but I want the menu to move up off the visible page when scrolling on a large content page, as though the menu was part of the... | stackexchange/codereview |
i want to developer an app with phonegap. But in my app, i have to open some local sqlite files, which are larger then (5mb), (my files are about 20mb). Because of the size limitation of HTML5 database, i was suggested to write a plugin for phonegap providing database access. I just think someone should have the same p... | stackexchange/codereview |
I'm working on my portfolio, making it entirely jQuery based. So my problem is when you go to a page, then refresh then it will take you to the home page again. So I have two questions, actually.
How do you (via jQuery/Javascript) get a "hash code" from the url?
E.G. I want the bold part of this: http://portfolio.th... | stackexchange/codereview |
I'm looking for a light-weight, low bandwidth, cross-browser solution to show some alternating texts in a div on webpage with fadein/fadeout.
So no including of entire Jquery JavaScript libraries.
The texts may simply be hard-coded in html.
| stackexchange/codereview |
I want to write a Python script to import the contents of CSV file into a Django app's database. So for each CSV record, I create an instance of my model, set the appropriate values from the parsed CSV line and call save on the model instance. For example, see below:
for row in dataReader:
person=Person()
perso... | stackexchange/codereview |
I am trying to learn assembly from scratch. I have been reading up quite a bit, but even the following simple program I found in a reference book has me stumped:
section .data
msg db "Hello!", 0xa
len equ $ - msg
section .text
global _start
_start:
move edx, len
move ecx, msg
move ebx, 1
move eax, 4
int 0x80
... | stackexchange/codereview |
guys :)
I'm trying to integrate facebook connect to my iOS application. However, I have a security concern. From the demo apps that come with Facebook iOS SDK, the only thing ever needed to use facebook services is a Facebook App Id, which is public and anyone can see it. From what I saw, the app security key isn't use... | stackexchange/codereview |
I have a problem in understanding how the winapi condition variables work.
On the more specific side, what I want is a couple of threads waiting on some condition. Then I want to use the WakeAllConditionVariable() call to wake up all the threads so that they can do work. Besides the fact that i just want the threads st... | stackexchange/codereview |
I have several stage event handlers to enable mouseovers over several dynamically generated moviecilps on the stage that then change their alpha to indicate the mouse is over that particular mc... fairly trivial (mcOver handler). Additionally, I also want to know what MC is clicked, so I update a public variable (publi... | stackexchange/codereview |
I am creating a C#/WPF project mainly for providing dialogs for use in other projects. I originally have an app.config but deleted it as the project is meant to be more like a library. I then got the errors
Metadata file
'D:\projects\SimpleColorPicker\SimpleColorPicker\bin\Debug\SimpleColorPicker.exe'
could not be... | stackexchange/codereview |
Is it true that inside of View, either we are showing static content, or else, all the method calls in View are helpers... are there methods that belong to ActionView?
| stackexchange/codereview |
Do you keep the developer's control panel and the application's web service, in 1 project? or do you separate them into 2 different projects?
(Developer's control panel, is used to setup the web service API, check logs, read document specification, and details about each web service)
When you host the solution you woul... | stackexchange/codereview |
Will this redirect work [a-z]* to example.com
ie., I want to redirect anything to example.com
Thanks Jean
| stackexchange/codereview |
<bean id="xyz" class="com.abc" >
<property name="name">
<bean
class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
<property name="staticField" value="com.abc.staticname" />
</bean>
</property>
</bean>
This is the way previously I used to set the name ... | stackexchange/codereview |
I'm creating a Notification table, with the following specification:
CREATE TABLE [Notification] (
[NotificationId] [int] NOT NULL IDENTITY (1, 1),
[IsActive] [bit] NOT NULL,
[TriggerKey] [nvarchar](50) NOT NULL,
[ObjectId] [int] NOT NULL,
[RecipientType] [tinyint] NOT NULL,
CONSTRAINT PK_Notifi... | stackexchange/codereview |
I have a SELECT in a FORM.
This select is populated using js.
I need to add a "Selected" attribute to one of these options.
I get which one, by checking a MySql database to see the name of the community which needs to have a "selected attribute" added to it.
<select name="community" id="community">
//OPTIONS HERE
<... | stackexchange/codereview |
I have a class, let's call it UserGenerator. It contains several injected DAOs (spring singleton beans), let's say UserDao and OrganizationDao.
UserGenerator's purpose is creating users for a new organization. So, what I want to have is:
@Transactional
public void createOrganizationWithUsers(Organization org, int userC... | stackexchange/codereview |
How do I hide the extensions of the pages?
Example ... access as is the normal asp page, but I would like to access the page or pages as ... without. asp
In my case I want it in web.config
Thanks!
| stackexchange/codereview |
if i am using paypal payment method for that should i need SSL for it?
can need SSL for paypal pro?
| stackexchange/codereview |
Once the AST is built, what is the best way implement the tree walker so that functions can be defined and called in whatever order?
For example, this is valid in PHP:
<?php
f(); // function called before it’s defined
function f() {
print 3;
}
?>
I’m guessing that somehow there must be a second pass, or a tree trans... | stackexchange/codereview |
I have an MFC event.
I declare it like this:
const UINT WM_SECEVENT = RegisterWindowMessage(_T("My Event"));
I raise the event by:
::PostThreadMessageA(dwCurThreadId, WM_SECEVENT, (WPARAM)pMsgParam,0);
In my MessageMap, I wrote:
ON_REGISTERED_THREAD_MESSAGE(WM_SECEVENT, OnThreadSecEvent);
Everything works fine, when W... | stackexchange/codereview |
I am doing a PHP project which is almost completed and uploaded to Production server for Client demo. Since The client is specifying some changes. I am doing that changes in my local server and later upload it to production server. Since some changes will took in more that 1 files its really difficult me to update th... | stackexchange/codereview |
I read about temporary tables, global temporary tables and table variables. I understood it but could not imagine a condition when I have to use this. Please elaborate on when I should use the temporary table.
| stackexchange/codereview |
I Googled to find tutorials and documentation on Entity Framework and read a couple of articles too. I referred to MSDN documentation also, but still I am not able to understand it clearly.
With a little that I followed is that:
(1) Each table along with rows are considered as a single unit.
(2) It provides a solution ... | stackexchange/codereview |
Why does this line in a ResourceDictionary not result in a compile-error?
<Window.Resources>
<ResourceDictionary>
<ImageSource x:Key="aKey">SomePath</ImageSource>
</ResourceDictionary>
</Window.Resources>
My understanding was that this would result in an instance of ImageSource being created using the ... | stackexchange/codereview |
What values can I choose for the attribute contenteditable.
| stackexchange/codereview |
I'm using Devise as the authentication mechanism for my app.
I want to add additional information to my user model, like User statistics, profile pic , and other relevant information about the user.How to achieve this?.
Even after creating "rails g devise : views" it creates only the views which I can customize it doe... | stackexchange/codereview |
I have created a custom adapter to display a list, there is an image that is displayed in each row ( the image is the same for all rows, except using an array i am assigning it different values depending on the position). An xml file defines the relative layout that i am using. My problem is that i can either get the e... | stackexchange/codereview |
I have a class with two constructors, both constructors have one parameter. Due to restrictions not worth explaining I cannot alter the constructors or use a descendent class.
I can't use unity to create instances of this class because Unity sees 2 constructors with the same number of parameters and complains that it ... | stackexchange/codereview |
Having read this article (and others) on .NET reliability features, I am led to believe that the following code should handle StackOverflowExceptions:
class Program
{
private static int s_exitCode = -1;
static int Main(string[] args)
{
RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(DoStuff, Cleanu... | stackexchange/codereview |
i'm a newbie in IPhone Dev,
i have an app that contains large amount of secured important data, after many searches i realized that SQLite is the most appropriate way to put my data(large amount) in,
but i found some people talking about breaking the password protected SQLite files,
should i make my own data structure ... | stackexchange/codereview |
I am attempting to convert my fixed pipeline code (OpenGL ES 1.1) to one using a shader pipeline (OpenGL ES 2.0). However only one texture seems to work and I get the error:
Validation Failed: Sampler error:
Samplers of different types use the same texture image unit.
- or -
A sampler's texture unit is out of range (gr... | stackexchange/codereview |
All,
I'm trying to load a cross-domain policy file from a custom location (instead of the root).
Specifically, the developer of a web service I'm trying to call has installed a cross-domain policy file on his server at:
http://[web_service_domain]/[some_subdirectory]/crossdomain.xml
So, in my SWF, I'm calling this:
Sys... | stackexchange/codereview |
What are the .net library calls and system calls that cause the most garbage?
I read somewhere DayLightTime causes a lot of garbage and result in garbage collector activity.
I need to find a list of such calls.
| stackexchange/codereview |
I'm struggling to understand the differences between ADO and ADO.NET.
ADO "Classic" has different lock levels... I'm wondering now, what is the default lock level for ADO.NET? How would I open a connection as Batch Lock or Read Only.
What is the default behavior of ADO.NET? What sort of lock does it place on a MSSQL da... | stackexchange/codereview |
I use the Facebook Like Box with the Javascript SDK and my own CSS stylesheet.
The CSS link is here.
What I want is to change the link color to #D90000 to match my site color. I tried everything but I just displayed like it is. So what should I add to the CSS to change my link colors?
Thanks ;)
| stackexchange/codereview |
Dear All: I have a C++ project (in Visual Studio 2008) that comprises of header.h, source_1.cpp file that contains main() and source_2.cpp file.
At certain points in the program, I need to output some intermediate results into a text file, say, "output.txt". The thing is, I am unable to do this. That is, I am unable to... | stackexchange/codereview |
I create a string and place it inside a cookie like this:
$cookie_value = $salt1.':'.$username.':'.sha1($row['alt_username']);
//THEN INSERT INTO COOKIE
Then I fetch the cookie data like this:
$data = $_COOKIE['cookie_name'];
I need to take out the $username out of the data in the cookie. How can I do so?
As you c... | stackexchange/codereview |
I get an error with the following code. Essentially the app confirms calling the number when it is selected from the table view. The EXC_BAD_ACCESS is coming in when the ViewContoller with this alert is dismissed.
It only happens if the alert is triggered. It does not if the table is only viewed with no selection. That... | stackexchange/codereview |
I need to put an adress into a appointment. The address is constructed out of several variables. Of course I also need some newlines. But "\n" doesnt result in an new line when i open the appointment in outlook.
Ok here is code snippet:
string address = name + "\n" + strasse + "\n" + plz.ToString() + " " + ort;
... | stackexchange/codereview |
Here is a link, to the source: https://docs.google.com/document/pub?id=1VxiZbysGLVx71ni0biGm2NbhhSCkPZmGWng-ik7IHNQ
<?php
$user1 = mysql_query("SELECT * FROM `users` WHERE `id`='$user->id'");
while($user = mysql_fetch_object($user1)){
$data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`start`) AS `start`,0 FROM `users`... | stackexchange/codereview |
I need to get the certificates from the iOS built-in (X.509) certificate store, and be able to read/parse them in order to decide whether to trust a server or not. Any idea what the APIs are to do this?
Thanks!
| stackexchange/codereview |
In a Cocoa document-based application, what's the best way to keep the menu item states in the menu bar in sync with the currently visible document?
For example, say you have a document with a ruler view that can be hidden/shown via "Show Rulers" (off state) and "Hide Rulers" (on state) menu items. The user has two do... | stackexchange/codereview |
I have multiple sites that sit off the www folder under a windows wamp install.
What I'd like to be able to do is specify relative paths for all links within each page / js / css throughout each site. So rather than having to use
http://localhost/sitea/_assets/images/image1.jpg, I could use /_assets/images/image1.jpg... | stackexchange/codereview |
I need to build an HQL query that uses the same entity twice, but with different constaints coming from previous entities.
For example:
select count(distinct a.id),
count(disintct b.id),
count(distinct c.id)
from
EntityA a
left join a.Children b
left join a.Children c with c.SomeConstraint = b.SomConstraint... | stackexchange/codereview |
Let's assume I have a parent entity "Firm" and a handful of child entities that inherit from Firm. Assuming the children are named "RedFirm", "GreenFirm", and "BlueFirm", what is the proper way to query the Firm collection if I want to retrieve only RedFirm and GreenFirm instances?
I know I can do context.Firms.OfType... | stackexchange/codereview |
I'm having trouble parsing some text. Here's an example of the text:
201 BBQ 0.000 9.000 0.099 0.891 9.000 0.000 0.000 0.000
705 W 1 PC 0.000 135.000 0.295 39.825 0.000 0.000 135.000 0.000
2106 ONL 9.99 41.141 3.000 4.110 12.... | stackexchange/codereview |
I have create a indexing catalog for my source code on Win7 but I can't find a tool to perform the searching.. Any pointer? Thanks in advance.
| stackexchange/codereview |
I am using iPhone Sen testing framework for testing. I need to test the asynchronous responses coming from server. Can anyone help me to find out the way to test it.
Thank you
| stackexchange/codereview |
i create form with TextBox on it. Text box have a ReadOnly true propertiy. when i add text to text box. all text inside the text box is selected. how i can rid that. i tried to change value of SelectionLength, SelectionStart, SelectedText properties but that did not help.
I Use VC# 2008 express.
| stackexchange/codereview |
The path in require and require_once is like (dir1/dir2/test.php).
Can we create objects the same like $obj= new class1/class2;?
If yes, please explain.
http://php-fedex-api-wrapper.googlecode.com/svn/trunk/htdocs/example1.php
$rateRequest = new ComplexType\RateRequest();
| stackexchange/codereview |
Is it possible to use object.hashcode mwthod in flex 3? If so, how to use that (like object.hashcode or System.identityHashCode methods in java). Anybody come across this, please give me some samples. Thanks in advance.
| stackexchange/codereview |
Does anyone know an ORM that can abstract JOINs? I'm using PHP, but I would take ideas from anywhere. I've used Doctrine ORM, but I'm not sure if it supports this concept.
I would like to be able to specify a relation that is actually a complicated query, and then use that relation in other queries. Mostly this is for ... | stackexchange/codereview |
What object can I use that has rows and columns, but not DataTable as it looks like an Excel Table?
| stackexchange/codereview |
I have a string separated by dot in Linux Shell,
$example=This.is.My.String
I want to
1.Add some string before the last dot, for example, I want to add "Good.Long" before the last dot, so I get:
This.is.My.Goood.Long.String
2.Get the part after the last dot, so I will get
String
3.Turn the dot into underscore excep... | stackexchange/codereview |
PHP 5.2.13, MS SQL Server 2008 R2
I have a stored procedure that looks something like this:
CREATE PROCEDURE [dbo].[StoreThing]
@pid int = 0,
@data binary(236) = NULL,
AS
BEGIN
INSERT INTO thingTable (pid, data) VALUES (@pid, @data)
END
(Greatly simplified, but that's beside the point)
I'm trying to call t... | stackexchange/codereview |
I'm attemping a bit of a dance to get some classical polymorphism in javascript; something like
function Inherit(base, sub) {
var baseType = typeof base;
sub.prototype = new baseType();
}
Anyone have a clue as to how to do this without having to new up base prior to passing it in?
| stackexchange/codereview |
i need to collect some data from complext dict based on Dot Notation key names
for example
sample data
data = {
'name': {'last': 'smith', 'first': 'bob'},
'address':{'city': 'NY', 'state': 'NY'},
'contact':{'phone':{'self':'1234', 'home':'222'}},
'age':38,
'other':'etc'
}
keys = ['contact.phone.self', 'name.... | stackexchange/codereview |
I am trying to override DS to use '/' instead of '\' in my Windows Dev machine. The reason for this is on certain javascript, it's using cake's DS for some ajax call.
For instance:
var data = '<?php echo 'image' . DS ?>';
This is a problem as javascript takes \ as an escape character, so the js becomes
var data = 'ima... | stackexchange/codereview |
Eventually, when I've finished the game I'm writing, I'd like to port it to XNA. I'm using C++ and OpenGL at the moment. My question is simply this: does XNA support OpenGL (I can switch from C++ to XNA language if need be)?
| stackexchange/codereview |
I want to set up a script to be run daily as a Windows Scheduled Task. The script should open an Excel spreadsheet, wait for it to run a macro (which is set up to run every time the spreadsheet is opened), and then close the file after the macro finishes saving the changes. The macro itself won't take very long to run.... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.