instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have this expression:
$content = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $content);
But a link like
http://photoartkalmar.com/Photoart%20Kalmar%20high%20res/Gigapixel/Vienna%2050%20Gigapixel/Donauturm.html
or that ends with something.jpg
The anc... | stackexchange/codereview |
I am having a hard time getting the 2nd level cache for hibernate working under Grails.
So I have an application using Grails 1.3.5 which is to be deployed on JBoss 4.2.1.GA.
The choice of app server is not mine and so unfortunately can't be changed/upgraded.
Originally I simply turned on the second level and query cac... | stackexchange/codereview |
I have a CSV file with a list of posts from an online discussion forum. I have the timestamp for each post in this format: YYYY-MM-DD hh:mm:ss.
I want to calculate how often a new post is submitted, as in "X posts per second". I think what I need is just the mean, median and sd for the rate of posting (posts per secon... | stackexchange/codereview |
I'm talking about POST requests, using:
WebClient wc = new WebClient();
String result = wc.UploadString("http://example.com/", "data=hello, world!");
Edit: This is my actual code right now:
String result;
using (WebClient wc = new WebClient())
{
result = wc.UploadString("http://" + "pastebin.com/api_public.php", "... | stackexchange/codereview |
I defined a layout, myLayout that has a left and center content.
I apply my layout to all pages and the layout is composed of a series of other components (Another layout, templates ...)
In a page A, there is a component part of the layout that should not be displayed in the page. To solve that i had two solutions
def... | stackexchange/codereview |
I have a SQL Server 2005 stored proc that takes a parameter: @includeClosedProjects.
There's a WHERE clause that I want to control based on this param.
create proc sel_projects
(@incClosedRel int = 1)
as
SELECT projectId, projectName
FROM project
WHERE CompletionStatusCID NOT IN (34, 35) <-- controlled by @incClosedRe... | stackexchange/codereview |
In a line, I want to remove any WORD that begins with a ! (negation mark).
Can any one help me with the regular expression that I need to use for this in Java?
String line = "hello world hello2 !xxx hello3, %643,!xxxxxxx. world5, !";
String pure = line.replaceAll("?", "");
I want to remove all !xxx in that example.
Th... | stackexchange/codereview |
So, I'm a bit new to rails routing, especially with querystrings.
I'm looking to create a URL that looks like this /dashboard/view_mode/2010/11/18. I also have the need for /dashboard/2010/11/18 and /dashboard/view_mode
Dashboard is a controller, the rest are parameters. I have this relevant lines in my routes.rb
map... | stackexchange/codereview |
I am a bit confused on how to create a overloaded constructor.
Below is my assignment:
Include the following:
i) A default constructor and an overloaded constructor.
ii) Accessor and mutator methods for each attribute.
Below is my pseudocode. From what I created so far I assume a OVERLOADED constructor is a cons... | stackexchange/codereview |
I'm taking a course called "database systems" and for our class project I have to design a website.
Here's an example of a table I created:
CREATE TABLE users
(
uid INT NOT NULL AUTO_INCREMENT,
username VARCHAR(60),
passhash VARCHAR(255),
email VARCHAR(60),
rdate DATE,
PRIMARY KEY(uid)
);
The professor tol... | stackexchange/codereview |
I have created html/css for modern browsers (IE7 and above, firefox, etc) and am good at it.
When I look into my html/css with ie6, there is always something wrong.
The fixes I create for it are usually ie6-specific (no problem though), and I usually don't know exactly what caused the issue (or how I fixed it sometimes... | stackexchange/codereview |
Im not too informed on the nitty gritty of modifying the responder chain, so if this is stupid pls dont bash me ;)
basically i have 2 view stacks(blue) as a subview of a parent view(red)
they are both occupying the full frame of parent at one point in time, so obviously only the one on top is getting touch events, whic... | stackexchange/codereview |
This is a bit convoluted but I will try to explain as best as possible.
I'm using the FileSystemWatcher with a notify filter of
toFileWatcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.FileName;
I have a .Created method and a .Changed method.
When the .Created event fires it runs through some preliminary ... | stackexchange/codereview |
I have a number of classes in a Classes file, and I want them all to be able to access the same, global method to save duplicating code. Problem is, I can't seem to access a method from another class in my file - any ideas?
So my class1.cs layout is similar to this:
public class Job1
{
public Job1()
{
}
}
... | stackexchange/codereview |
Is there a way to control the width of a nested table? It seems to default to the width of the outer table for me.
-Rod
| stackexchange/codereview |
I have a asp.net application where I'm trying to load few documents into memory and print it. I learned that I can't use PrintDialog in a web app and the only way is to print using javascript by writing the content into a (hidden) iFrame.
My question is how can Silverlight help me with this? Is it possible to show prin... | stackexchange/codereview |
Input
<?xml version="1.0" encoding="UTF-8"?>
<XML>
<Concept>
<Heading-1>This is First Heading</Heading-1>
</Concept>
<Concept>
<Heading-2>This is Second Heading</Heading-2>
</Concept>
<Concept>
<Heading-2>This is First Heading</Heading-2>
</Concept>
</XML>
Output should... | stackexchange/codereview |
I read some info regarding getting .h files for undocumented API. Most of sources recommend class-dump (or class-dump-x and class-dump-z).
However it doesn't work with iPhone Security.framework. It doesn't contain Objective-C runtime information.
The only other way which I found is to use nm or otool. This will give th... | stackexchange/codereview |
My Windows's default encoding is GBK, and my Eclipse is totally utf-8 encoded.
So an application which runs well in my Eclipse, crashes because the words become unreadable when exported as a jar file;
I have to write the following line in a .bat file to run the application
start java -Dfile.encoding=utf-8 -jar xxx... | stackexchange/codereview |
The installer needs to run the .NET 4 installer (dotNetFx40_Full_setup.exe) and Microsoft Surface Toolkit (SurfaceToolkitRuntime.msi). The problem is that the .NET 4 install needs to restart the machine AND the Microsoft Surface Toolkit requires .NET 4 to install.
From looking at other questions I appears I should be u... | stackexchange/codereview |
With the Facebook API are only recent things (wall posts, friends status updates etc) obtainable or is everything ever associated with the user's account obtainable?
| stackexchange/codereview |
I have created several sample apps for an Android virtual device. I have deleted these apps from the Eclipse java perspective, but they remain on the Android avd home screen.
How do I remove these app icons from the Android avd home screen?
| stackexchange/codereview |
What are unmanaged objects? Can you please explain it in terms of the CLR? I learned on the internet that they say unmanaged objects don't run under the CLR environment. Can you please give me an example of unmanaged objects?
| stackexchange/codereview |
I'm using Scala 2.7.7
I'm experiencing difficulties with access to the documentation, so code snippets would be greate.
Context
I parse an IP address of 4 or 16 bytes in length. I need an array of bytes, to pass into java.net.InetAddress. The result of String.split(separator).map(_.toByte) returns me an instance of Ite... | stackexchange/codereview |
I am trying to read in data stored in a custom binary file generated using LabVIEW. The data file is created by writing an array of clusters. I want to read in the cluster information from this data file using a program written in .net. Is there an easy way to do this without modifying the labview generated file?
| stackexchange/codereview |
I have a jquery animation script that is working properly, however, I feel like there is a way to reduce the overall overhead for the script. Here is a link to the development page:
http://dev.abinstallations.com
There are two parts to the animation, and these animations apply to six individual div elements. A separate... | stackexchange/codereview |
I have a Coldfusion Webservice that returns json data like below:
{"rows":[{"cell":[43,"USA","jon","doe","doe@gmail.com","HR"],"id":43},
{"cell":[44,"JAPAN","tanaka","yidi","yidi@aol.com","IT"],"id":44}],
"page":1,"records":2,"total":1}
I like to consume this Webservice from .Net using C#, and insert data into Sql ser... | stackexchange/codereview |
I'm using a winForm. I have 2 custom controls that I want to add dynamically.
The first one is added at the opening of the form. The second one is added when the user clicks a button. Nothing magic here. The problem is that when I instanciate and add the second control, instead of appearing on top of the other one, it... | stackexchange/codereview |
I am parsing a json string like so:
ring = JSON.parse(response);
Now, ring is an object but ring.stones is just a string when it should be an object as well.
If I call:
ring.stones = JSON.parse(ring.stones);
It is now the correct object.
I didn't know if this is correct behavior or if maybe I have an issue somewhere ... | stackexchange/codereview |
Hey, this is really annoying me.
I have a big code, but essentially, this part comes to transformation of a BitmapData to triangle points, using affine transformation.
Also - I know that BitmapData is rectangular - the last, fourth point of the transformation is just the first one reflected over the axis defined by the... | stackexchange/codereview |
I'm trying to send a Client certificate to the server. I'm constructing a SSLSocketFactory on a HttpURLConnection.
I think I need to make the key available via a KeyManager that the SSLSocketFactory knows about. The trouble I'm having is getting the key into the KeyManager.
The private key and certificate are in a PE... | stackexchange/codereview |
Dear all,
I am beginner in Python. I am looking for the best way to do the following in Python: let's assume I have three text files, each one with m rows and n columns of numbers, name file A, B, and C. For the following, the contents can be indexed as A[i][j], or B[k][l] and so on. I need to compute the average of A[... | stackexchange/codereview |
I have an SWF file which I water-marked.
and then, I thought of removing the watermark from the SWF file by modifying its raw data on disk.
And since SWF is an open standard, I've taken a look at SWF Flash Player 10 Specs from Adobe.
My watermark is a movieclip object which is loaded in the first frame. but till now I'... | stackexchange/codereview |
I have a "Groups" resource within my app that Users can join (a Group has_and_belongs_to_many Users and vice versa). The devise_invitable plugin allows an existing User on my app to email an invitation to another poetntial User to register on the site, but I want some extra functionality: I want a User to be able to in... | stackexchange/codereview |
Does anyone know how to create a table with m columns from table of n rows where the values in columns of each row represent a different combination or permutation of values from the original table?
For example the original table has 1 column (number_value) with 3 (n=3) rows:
1
2
3
The table which contains combination... | stackexchange/codereview |
Does anyone knows how I can influence the format of the instance
variable when it is returned after an ajax call.
At the moment when I try to render it I get the error:-
incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT
string)
This happens when the instance variable is being rendered in the
index.js.erb... | stackexchange/codereview |
I want to create a UIImage from a MKMapView. My map is correctly displayed in the view, however the UIImage produced is just a gray image. Here's the relevant snippet.
UIGraphicsBeginImageContext(mapView.bounds.size);
[mapView.layer renderInContext:UIGraphicsGetCurrentContext()];
mapImage = UIGraphicsGetImageFromCurren... | stackexchange/codereview |
I have an odd situation that I haven't figured out how to handle. We have developers working on multiple platforms, the primary platform is linux, but we also have people working on OS X and Windows.
We have a set of tests that all build and run fine on Linux. But when we try to run them on OS X they fail. The failing ... | stackexchange/codereview |
I've written small tcp socket client and server applications. Server sends text msg to client.
Part of servers code:
new_sock.Send(Encoding.UTF8.GetBytes("efgh"));
Part of clients code:
byte[] buffer = new byte[100];
int count = sock.Receive(buffer);
sock.Close();
textBox_received.Text = Encoding.UTF8.GetString(b... | stackexchange/codereview |
I have some form buttons
<input type="button" onclick="send_away('700302','update_item','0',2)" value="Change Quantity">
and they are calling the functions below: (different buttons call different functions from this script, which is embedded in the HTML file.
<script language="javascript" type="text/javascript"... | stackexchange/codereview |
I am loading a page which contains Google ads in to another page using jQuery's load function.
But Google ads don't appear even though they do when I open the page itself.
What should I do?
EDIT:
Some code:
function load php page:
function get_fb(g) {
$("#hhs").load("hhs.php?rid="+g);
}
and that hhs.php contains th... | stackexchange/codereview |
how to trigger a event in jquery when the value of a textarea is changing without losing focus form textarea.
| stackexchange/codereview |
I am running a grails test run-app all day with my application and it is fine. I type "grails prod war" to get a war, and dump it in the webapps folder of my tomcat install. Now i get the message like so:
11.11.2010 16:35:11 *ERROR* GrailsExceptionResolver: Executing action [index] of controller [ResumeController] ca... | stackexchange/codereview |
I have seen some widgets online that gives the user the possibility of including a short Javascript snippet in their own page, which when executed displays an Iframe, like in the following example.
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script><fb:face... | stackexchange/codereview |
I am using jira4r to connect to Jira. So far I am able to create new RemoteIssues, update existing RemoteIssues (standard fields like summary), but I am not able to update a custom field.
I am able to create a new issue with values in the custom fields, and I am able to read values from custom fields, but I have not b... | stackexchange/codereview |
Hello I have a table with columns:
*using oracle
ID NUMBER
USER_ID NUMBER
DATE_ADDED DATE
DATE_VIEWED DATE
DOCUMENT_ID VARCHAR2
URL VARCHAR2
DOCUMENT_TITLE VARCHAR2
DOCUMENT_DATE DATE
I want to know how i can get the most recently added docu... | stackexchange/codereview |
What areas get affected by it?
code readability? maintainability? performance? security? any other?
my views have been using something like
if(Model.Showthis) {<div id = "showthis">...</div>} }
and does doing something like the following have security implications? --
<%if (HttpContext.Current.User.Identity.IsAuthen... | stackexchange/codereview |
I'm looking for a blog engine or a framework for implementing a simple blog in Java. The application should be deployable on the Google App Engine platform.
Are there any suggestions?
| stackexchange/codereview |
I am new to android and have been teaching myself how to create apps through the android developers website. My app itself is like a recipe book. It lets me add my favourite recipes to a database so therefore where ever I am I am able to see what ingredients and the method for creating my favourite dishes. The list ... | stackexchange/codereview |
In ARM assembly
bic r0, r0, #0x1f
works fine. now I want #define MODE 0x1f and change above code to bic r0,r0, #MODE.
There is a risk here. If you forget include the header file where #define MODE 0x1f is defined, gcc assembles without complain, but the result is wrong, it turns out compiler translates #MODE as 0.
I ... | stackexchange/codereview |
When you associate a changeset with a workitem TFS defaults to resolving the workitem. I want to default to associating it.
I know in TFS 2008 you had to remove resolve check-in action using something like this http://www.woodwardweb.com/vsts/000230.html but I thought that I read somewhere that there was a better way ... | stackexchange/codereview |
I have migrated from one sever to another. I have restored my database and reset up my website. Since migrating however my website will not connect to the database I am getting the following error:
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Invalid Instance()).]Invalid connect... | stackexchange/codereview |
I'd like to detect when the date is changed in a JDateChooser field so that I can update another field.
Is this possible? And if so where should I be starting? I've already looked at the documentation and unfortunately there are no methods for adding something like an ActionListener or StateChangeListener (my first tho... | stackexchange/codereview |
What is the best way ?
Just looping through and putting the key and zero, or is there another more elegant or existing library method. I am also using Google's guava java library if that has any useful functionality ?
Wanted to check if there was anything similar to the copy method for lists, or Map's putAll method, bu... | stackexchange/codereview |
ArrayList<decimal> FindSumSubset(decimal sum, ArrayList<decimal> list)
{
for (int i = 0; i < list.Length; i++)
{
decimal value = list[i];
if (sum - value == 0.0m)
{
return new ArrayList().Add(value);
}
... | stackexchange/codereview |
I'm writing an iPhone app in which I'm playing some mono mp3 files using Audio Queue Services. When playing, I only hear sound on one channel. I've been searching for an example of how to get the files to play on both channels, with no luck. What I'm doing is pretty simple right now. I'm setting up my audio queue l... | stackexchange/codereview |
I have c++ dll with class in wich I want to send string from C# code, surly I can't use string because of CLR, i'll stried to change string into char in c++ dll, and send byte from c#(because c++ char=byte in c#) but c# don't understand c++ array I can send 1 byte and it will be ok, but not array, please help!
dll Code... | stackexchange/codereview |
I am working on a plugin for an application, where the memory should be allocated by the Application and keep track of it. Hence, memory handles should be obtained from the host application in the form of buffers and later on give them back to the application. Now, I am planning on using STL Vectors and I am wondering ... | stackexchange/codereview |
I've got one repo which contains some utility functions in a single file. I'd like to somehow add that file to another repo, keeping the link to the old one (so I can push/pull to keep up to date with it), while keeping all the other files out. The goal is that someone who pulls the second repository should also get th... | stackexchange/codereview |
I'm trying to create a UserControl that displays a multi-page image and allows the user to zoom, rotate, and browse an image. The one part I'm having a problem with is getting the keyboard shortcuts setup properly. I figured out I need to have the InputBindings setup on the Window class that is hosting the UserControl.... | stackexchange/codereview |
I am doing some custom audio post-processing using audio units. I have two files that I am merging together (links below), but am coming up with some weird noise in the output. What am I doing wrong?
I have verified that before this step, the 2 files (workTrack1 and workTrack2) are in a proper state and sound good. No... | stackexchange/codereview |
I'm developing a system based on Django admin. So all models could be edited also only from admin site. Model has a char field 'user'. I want to set current logged in admin username (or firstname, or lastname) as default value to 'user' field. How could I implement this?
Default values are set as parameters when defini... | stackexchange/codereview |
I am using Toolkit DataGrid. There is a custom header style when user sorts any column. But the data is refreshed after every few seconds and the new datatable is retrived from the server(I made the data in datatable sort based on the original sort).But because of this the header goes back to the default look.
I have t... | stackexchange/codereview |
I noticed that in Chrome and Safari, my Courier text is tiny. In Internet Explorer and Firefox, the Courier text is comparable in size to the rest of my text. Is there something wrong with my CSS?
#article pre,
#article code {
display: block;
font-family: courier, monospace;
background: #f7f7f7;
padding... | stackexchange/codereview |
I Use Fancybox to display complex forms on an intranet site. The page the Fancybox forms are launched from uses Datatables to filter filter and sort numerous records from the database. When the list is filtered significantly and the Fancybox is loaded, the Fancybox content can exceed the page body. This results in whi... | stackexchange/codereview |
written by Jeff Atwood, this program cleans the project folders from bin, obj and Resharper files ... BUT its downlaod link is broken , does anybody know where can I get it from ?
http://www.codinghorror.com/blog/2005/08/clean-sources-plus.html
| stackexchange/codereview |
I'm just getting started with mobile development, and after considerable searching I'm still confused about sending a message from my iPhone to another or an Android. For instance, in building a simple Tic-Tac-Toe game, if I want to notify the other phone of a move, what is the best way to do so? Wifi, bluetooth, 3G?... | stackexchange/codereview |
I do need sorting, filtering, row and column hiding, and column reordering.
I've been trying to get DataGridView to fit my needs but it seems too slow in Mono (fine when run native). I've tried manually updating the rows as well as using a custom datasource (my data is not coming from a database). When you have aroun... | stackexchange/codereview |
I'm using the TopLink persistence library with the MySQL db in my Java applications.
I've developed the class library which is used by several desktop applications, it contains some classes that are specific for my project. Classes are linked to each other, generally with one-to-many relationships.
I want to have DB En... | stackexchange/codereview |
Currently if you create a product in UberCart, you have to first create the product before accessing the stock tab to set stock levels. I want to be able to set the stock levels when I create the product. I.e. Right below where I set the "list price". How would I do this?
| stackexchange/codereview |
I want to write an app for my thesis that it will have some items/icons and i will drag'n'drop them in a box and then it will make a query in a database and return the result..but i can't find information on how to combine the drag'n'drop with the box...
| stackexchange/codereview |
I am trying to figure out how to place controls on top of one another in html.
For example. I am trying to place 2 labels on top of eachother. and also I am trying to place a text box under a dropdownList.
Is this even possible?
Thanks.
| stackexchange/codereview |
lets say i have an xml file "path.xml" that goes like this:
<paths>
<path id="first">
<url>http://blablabla</url>
</path>
<path id="second">
<url>http://blablabla</url>
</path>
</paths>
i have a jsp file from which i want to read url based on the id.
for example:
i want to write in the jsp fil... | stackexchange/codereview |
I'm writing myself a forum, and I want to have one of those "you are here" strings along the top ("home > forum > sub forum > topic > etc" kind of thing). Now, the depth the forums can go to is limited to something like 128 by TINYINT in the database, not that this matters.
My question is this: is there a way to select... | stackexchange/codereview |
I upgraded to Asp.net MVC 3 RC last night and I followed the instructions on the release notes. However, normal Aspx pages no longer work.
For example, when I go to the root (Home/Index), the following error occurs:
The view at '~/Views/Home/Index.aspx' must derive from ViewPage, ViewPage<TModel>, ViewUserControl, or ... | stackexchange/codereview |
I am trying to figure out the equivalent of foreign keys and indexes in NoSQL KVP or Document databases. Since there are no pivotal tables (to add keys marking a relation between two objects) I am really stumped as to how you would be able to retrieve data in a way that would be useful for normal web pages.
Say I have ... | stackexchange/codereview |
I'm having a little difficulty configuring Android logging. Here's what my code looks like:
if (Log.isLoggable("MY_TAG", Log.VERBOSE)) {
Log.v("MY_TAG", "Here's a log message");
}
Pretty simple, right?
However, I'm having quite a bit of difficulty getting the Log.isLoggable("MY_TAG", Log.VERBOSE) to re... | stackexchange/codereview |
I am having a InputStream Object which is actually a zip file. I want to change it back to zip file and save it. I am using DWR's FileTransfer class object to receive the uploaded data from client.
FileTransfer have 3 methods, getInputStream() is one of them. It returns InputStream from FileTransfer object.
In my cas... | stackexchange/codereview |
Let's say I have an application written in C# called EquipCtrl.exe which runs as a local process on a PC to control a piece of equipment.
Obviously, I would wish to have only one instance of Equipctrl to run on each PC. If I had two equip to control per PC, I would then limit it to two instances per PC.
The way I did i... | stackexchange/codereview |
I wrote (with lots of help from others) an awk command to total up a column in a CSV file. Unfortunately, I learned after some Googling that awk isn't great at handling CSV files due to the fact that the separator is not always the same (i.e. commas should be ignored when surround by quotes).
It seems that perhaps a Pe... | stackexchange/codereview |
I placed this control in a test app, and it works fine.
But in my business app, which has a Silverlight 4 implicit theme applied (AccentColor theme), the up/down buttons are too wide and non-functional. I know for sure this is not what the theme calls for - I found a site showing off the theme on various controls, and ... | stackexchange/codereview |
How do I get a partial refund (credit memo) working in Magento? I have a customer who bought 3 items but only wants to get a refund on one of the items. Is there a way to do that?
Also, can I move that item back to the inventory (like updating the stock automatically)?
| stackexchange/codereview |
This is a question purely to satisfy my own curiosity.
Here in Norway it's common for netbanks to use a calculator-like (physical) dongle that all account holders have. You type your personal pin in the dongle and it generates an eight-digit code you can use to login online. The device itself is not connected to the ne... | stackexchange/codereview |
So according to the jQuery Ajax docs, it serializes data in the form of a query string when sending requests, but setting processData:false should allow me to send actual JSON in the body. Unfortunately I'm having a hard time determining first, if this is happening and 2nd what the object looks like that is being sent... | stackexchange/codereview |
i have a c++ code file but has pretty ugly indetation. How do i tell emacs to reapply indentation to the file?
| stackexchange/codereview |
When should I use a struct instead of a class? I'm currently using classes for everything from OpenGL texture wrappers to bitmap fonts.
Is a class that I use just like a struct (no making usage of inheritance, polymorphism, etc.) still slower than a struct?
| stackexchange/codereview |
I have spider that I have written using the Scrapy framework. I am having some trouble getting any pipelines to work. I have the following code in my pipelines.py:
class FilePipeline(object):
def __init__(self):
self.file = open('items.txt', 'wb')
def process_item(self, item, spider):
line = i... | stackexchange/codereview |
$arr1 = array('a' => '1', 'b' => 'blah', 'c' => 'whatever...',
'aa' => '2', 'bb' => 'lbha', 'cc' => 'everwhat...', 'dd' => 'bingo',
'aaa' => '3', 'bbb' => 'halb', 'ccc' => 'revetahw...');
In the array I have three different index lengths a,b and c are all 1 in length. aa,bb,cc and dd are al... | stackexchange/codereview |
I have this situation where I have several controls that are related to each other. I use two-way binding for the Current/SelectedValue of said controls, so that when a user changes the value, the change is reflected in the property of my viewmodel. The thing is, after the binding triggers the change at the setter of t... | stackexchange/codereview |
Does anyone have any good tutorials on sending UDP packets from the iPhone SDK?
EDIT:
Was actually really easy to do this...
RTFM!
After including AsyncUdpSocket just add this in header:
AsyncUdpSocket *socket;
And in main:
NSData *data = ...
[socket sendData:data toHost:@"192.168.x.x" port:5002 withTimeout:-1 tag:1]... | stackexchange/codereview |
I want to be able to have two buttons that allow me to zoom in & out on a picturebox image but currently have no code for this. Please Help Me,
Thanks
| stackexchange/codereview |
Here's my button element:
<button type="submit" class="btn-submit"><span><strong>Let Me In, please!</strong></span></button>
and here's the CSS:
.btn-submit { margin: 0; padding: 0; border: none; font-family: Helvetica, Arial, sans-serif; font-size: 1.2em; line-height: 2em; font-weight: bold; color: #525252; backgroun... | stackexchange/codereview |
I was just writing code in C and it turns out it doesn't have a boolean/bool datatype. Is there any C library which I can include to give me the ability to return a boolean/bool datatype?
| stackexchange/codereview |
I'm trying to use javadoc to document one single java file on window 7,to simplify things, I only use the following simple command:
javadoc Attr.java
However, javadoc gives me IllegalArgumentException without detailed where it is wrong, actually, the file I used is copied from The Java Programming. So, I'm wondering w... | stackexchange/codereview |
I'm in a situation where I need to create my own authentication for a web application, and I want to get some input into how secure my approach is.
Pretty much, this is the logic I will follow:
Registration:
User sends over their user name and password over HTTPS.
Password will be encrypted using SHA1 and stored in th... | stackexchange/codereview |
I'm trying to output XML using PHP, and when I look at the page source in Firefox everything seems fine. However, the page itself doesn't display properly.
In Firefox, it usually says this at the top of the page when it's showing correctly formatted XML:
This XML file does not appear to have any style information asso... | stackexchange/codereview |
I know how to write to ordinary files, but I haven't found any resources on the web about binary files in Prolog.
I'm using Turbo Prolog.
| stackexchange/codereview |
My Application has around 4 UIViewControllers. Is it possible to find the current UIViewController?
| stackexchange/codereview |
I'm trying to find any information about template keyword used as disambiguator, but there is nothing about that. Probably I'm searching wrong keywords, but there is nothing like .template or ->template in standard. Google shows only GCC problems from different forums, but not really explanation what is it used for.
Co... | stackexchange/codereview |
I like the idea of the new MS-developed jQuery plugins, Templates and DataLinking, and actually have a need in my day job where they could possibly prove valuable. Thing is, the html I would need to template is non-trivial html that takes advantage of both built-in and custom Html helper methods via the MVC 2 framewor... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.