instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to write a script that counts the number of processes running matching a patern. If it exceeds a hardcoded value then do something...else do something else.
I am finding out the count of processes using:
ps ax | grep process_name | wc -l | sed -e "s: ::g"
If the output of the above command is greater than 1... | stackexchange/codereview |
I am using facebook login on my site. Everything is working using the facebook button. I would like to change the graphic image to be my own image. How can I change this?
I currently am using the following to display the button.
<fb:login-button v="2" size="medium" onlogin="FB_ConnectPostAuthorization()">Facebook</fb:l... | stackexchange/codereview |
For a given XML Node I need to get the key value pairs of it. For an example:
For XML :
<root>
<detail1>
<test1> Text1 </test1>
<test2> Text2 </test2>
<test3> Text3 </test3>
</detail1>
<detail2> description 1 </detail2>
<detail3> description 2 </detail3>
</root>
I need a table a... | stackexchange/codereview |
We have a large solution comprising of many different libraries. We have just migrated to development on a 64bit system and this has us thinking about what platform target we should specify for each individual project in the solution.
At the current time, we only have one library project which references a 32 bit DLL f... | stackexchange/codereview |
There is a one-to-many between table A and B, and again between table B and C. I need to list all records in table B, along with their parent from table A, and the sum() of a particular field in C. How can I do this?
I think it is something like:
SELECT A.fldlist,
B.fldlist,
SUM(C.field)
FROM A
I... | stackexchange/codereview |
Is there a way in in MS Access to detect a changed TextBox value where the TextBox's controlsource is e.g. =[txtSubTotal]-[txtDiscount]?
The TextBox is Locked=No, Enabled=Yes but obviously cannot be directly edited by the user since it is a calculated field.
What I'm looking for is the something like the Winforms TextC... | stackexchange/codereview |
Could you tell me, please, how can I embed java module/source code into C# application? For example i have some logic that written on java and this logic uses some third party libraries which can be found only on java platform. And i have main host logic that written on C#. It will be very cool, if i'll be able to regi... | stackexchange/codereview |
Is this a shorter, more elegant, more DRY way to write this in Ruby?
if first_variable
first_variable # return variable if it exists
else
second_variable # otherwise, return something else
end
Or this?
if first_variable
first_variable.method_name
else
second_variable
end
| stackexchange/codereview |
My Android application is calling a JSON service via HTTP and I would like to only allow my application to call the service and block others.
What is the best way to do it?
One way I can think of is using private/public key encryption. Can we embed a private key securely in the application?
| stackexchange/codereview |
I am trying to learn how to use the CLLocation class for the purpose of building an iPhone app that takes the user's current location, and then uses it to retrieve results from a sqlite database. To do this, I need to initially acquire the user's present location by using the CLLocation class, and specifically, the me... | stackexchange/codereview |
How to achieve with JQuery that when I move mouse over some div, it shows different pictures(backgrounds ). For example, my div id="slide" have width="100px, so when mouse in width position 0
Like on http://qgallery.quadrifolia.de/
| stackexchange/codereview |
There are a number of other Rails2 -> 3 routing questions but mine is less complex and is actually not giving me an error. So why the question? Well I want to make sure I am not using additional unnecessary code. Disclaimer: I am new to Ruby/Rails learning Rails3 via Simply Rails 2 book trying to adapt/figure out all t... | stackexchange/codereview |
In C I bind a datagram socket (AF_INET, SOCK_DGRAM) to INADDR_ANY. I then periodically use this socket to send and receive datagrams, and monitor the flow of packets with pcap. The problem is, I can't tell whether a packet is incoming or outgoing using pcap.
The transmission/receiving and the pcap monitoring are runnin... | stackexchange/codereview |
I just wrote some code, looked it over, and wanted to cry. Lines that end in .'\');">'; cannot be a good thing.
I'm writing an ajax function to return a new row to add to a table. The row uses javascript to be user editable.
$ident=mysql_insert_id().'_c_label';
$html='<tr>';
$html.='<td class="label" id="... | stackexchange/codereview |
I have an NSArray which holds Foo objects defined like so:
@interface Foo : NSObject <NSCopying> {
NSString *name;
}
@property (nonatomic, retain) NSString *name;
@end
and the query:
NSPredicate *filterPredicate = [NSPredicate predicateWithFormat:@"name BEGINSWITH[cd] %@", filterString];
//NSPredicate *filterPredi... | stackexchange/codereview |
I'm looking for the best read performance for a bunch (~200) cached 80px by 80px images. A large chuck (~50) will all needed to be accessed at once.
Should I store the uiimages (as binary data) in a plist or using core data?
| stackexchange/codereview |
I have a project running simple built tool as building tool. All of my sub projects are sharing the same dependencies, so I want them to use the same lib folder. I could do so by creating symbolic links to my shared lib folder, but I hope to find a configuration in sbt that lets me change to path of my libraries.
over... | stackexchange/codereview |
For creating word documents based on data from an SQL database, I'm using Office Open XML SDK to avoid using interop. This speeds up the process and it eliminates the requirement for a Microsoft office suite installed on the client system.
While this works very well, there is a problem I'm having when replacing certain... | stackexchange/codereview |
I have a jquery code that shakes a div when clicked.
$("#error").click(function() {
$("#box-login").show('shake', 55);
$(".header-login").show('shake', 55);
$("#content-login .error").show('blind', 500);
return false;
});
I want to call this as a function when there is a form va... | stackexchange/codereview |
So I'm playing with ILDASM and noticed an oddity that I can't find a really good explanation for on Google.
It seems that when using With blocks in VB.NET, the resulting MSIL larger than w/o. So this leads me to ask, are With Blocks really more efficient? MSIL is what gets JITed into native machine code, so smaller c... | stackexchange/codereview |
how to split a string at positions before a character?
split a string before 'a'
input: "fffagggahhh"
output: ["fff", "aggg", "ahhh"]
the obvious way doesn't work:
>>> h=re.compile("(?=a)")
>>> h.split("fffagggahhh")
['fffagggahhh']
>>>
| stackexchange/codereview |
I am learning programming in C/C++ with sockets, and am trying to move a binary file from the server to the client. Here's what I have on the server side.
ifstream file(argv[1],ios::binary|ios::ate)
size = new char[file.tellg()]
memblock = new char[size]
file.seekg(0,ios::beg);
file.read(memblock,size);
After having ... | stackexchange/codereview |
This has been asked so many times in the forum but I need to clarify the concept behind this. I am declaring a const NSString *key = @"SomeConstValue"; and passing that to a method which accept a NSString pointer type. However it results me in some warning "discards qualifier from pointer target type". What does this m... | stackexchange/codereview |
There are two namespaces with class Image. One is iTextSharp and another WPF System.Windows.Control.Image.
Now I've to use complete reference i.e. System.Windows.Control.Image a = new .. and iTextSharp.text.Image b = new ...
Is there any way to Aliasing the namespace, so I don't have to write complete namespace.
| stackexchange/codereview |
I happened to use the below CSS hack for WebKit-based browsers, according to http://www.webmonkey.com/2010/02/browser-specific_css_hacks/.
@media screen and (-webkit-min-device-pixel-ratio:0) {
#my-id { height: 100%; }
}
It works. But, later I found that it doesn't work in production environment. I found out that ... | stackexchange/codereview |
I have a basic Layout question.
When using the layout tab (rather than the coding tab) in my main.xml, I am trying to create a home screen for when my app opens.
There is going to be the logo at the top center, then 3 simple buttons below, all centered.
How do I go about formatting the Logo so it maintains a size relat... | stackexchange/codereview |
I'm trying to follow my college notes, and I've tried googling the error and looking on stackover flow but I can't seem to figure out whats wrong.
I've read on so many places that you need to have both implementation and specification files in one file (header) so I've done so. I've just copy and pasted from my printed... | stackexchange/codereview |
Can someone comment on this,
I want to do a vector dot product. My float vector are [2080:2131] and [2112:2163], each one of them contains 52 elements.
a[52] = {2080 2081 2082 ... ... 2129 2130 2131};
b[52] = {2112 2113 2114 ... ... 2161 2162 2163};
for (int i = 0; i < 52; i++)
{
sum += a[i]*b[i];
}
The result s... | stackexchange/codereview |
I have a component that requires .NET 4.0 to run, how can my Inno Setup installer verify that it is installed, and if not, prompt the user to install it?
| stackexchange/codereview |
I need to know the feasibility of "mmaping" a virtualmemory and loading binary code into it and execute the binary code. The binary code (presented as shared library) may be mach format or elf format, which will be loaded into the memory through file-mapping way by our binary loader other than the apple's own unix bina... | stackexchange/codereview |
Stores Table : a table to store information about different stores
StoreId Name PlaceCode
-------- -------- --------
1 Addidas AB1
2 Nike KS3
3 Puma LS6
4 Nike AS2
5 Nike WR4
Area... | stackexchange/codereview |
How can I make a layout like this in XUL?
--------------------------------------------
elem11 | elem12 | elem13 |
--------------------------------------------
elem21 | elem22 | elem23 | elem24 | elem25 |
--------------------------------------------
<grid> doesn't appear to allow one element to span m... | stackexchange/codereview |
I know W3C just publish their draft version of Web Notification to notify user. So, there is no browser that implement this method in their current or latest build browser.
Web Notifications Overview
After I search a lot of webs for finding all possible desktop notification in most browser.I found any 2 major browser t... | stackexchange/codereview |
i used netbeans 6.5 for developing android application. i need to add LWUIT for this application. how we can add into this application?
| stackexchange/codereview |
I have been writing a JavaScript library for a few weeks now and it works brilliantly in Firefox, Chrome and Safari. I had not tested it in IE until recently. I do not own a Windows box so after testing it on my friends and realising it wasnt working I started going over my code for things that could be causing it to b... | stackexchange/codereview |
Write an applet which displays the
interface for the program described
below. When the applet is executed it
will display the screen in the
appropriate layout, and responds to
the user's actions.
The program simulates a student
management system having the following
characteristics:
The interface is at... | stackexchange/codereview |
i wanted to know whether or not,there is a way by which we can extract HTML contents of a <div> using jQuery,given that the HTML content is not present but is extracted from another file such as a PHP file,dynamically
$("#layer").html() just gives a null value,as originally the file has no HTML inside <div id="layer">... | stackexchange/codereview |
Consider this F# code which computes a factor of a number:
let n = 340339004337I
// A sequence of all factors:
let factors = seq { 1I .. n / 2I} |> Seq.filter (fun x -> n % x = 0I)
// Pull off the first factor from the sequence:
let factor =
if factors = seq [] then
n
else
factors |> Seq.nth... | stackexchange/codereview |
I recently installed eclipse 3.6.1, and the m2eclipse plugin to use with my existing maven build, but im running into a lot of problems trying to get it working.
My existing maven project builds fine from the commandline.
After importing my project tree into eclipse, I ran a build on one of the projects. It eventually... | stackexchange/codereview |
I've just discovered multiple xib for languages ui support, I'm very excited because is simpler than I expected.
Now I was wondering if it's possible to apply same method to have multiple xib for different orientation simply creating different folders in project containing a xib with the same name.
| stackexchange/codereview |
Is there anyway I can transfer data from an fstream (a file) to a stringstream (a stream in the memory)?
Currently, I'm using a buffer, but this requires double the memory, because you need to copy the data to a buffer, then copy the buffer to the stringstream, and until you delete the buffer, the data is duplicated in... | stackexchange/codereview |
Can I using LINQ return a List<Person> from a List<String> like the following:
// this is not valid code, just to explain the idea
var persons = new string[] {"Tom", "Adam"}.ToList<Person>(str => Name = str);
Thanks in advance.
| stackexchange/codereview |
(function($){
$.fn.kwicks = function(options) {
var defaults = {
isVertical: false,
sticky: false,
defaultKwick: 0,
event: 'mouseover',
spacing: 0,
duration: 500,
};
var o = $.extend(defaults, options);
var WoH =... | stackexchange/codereview |
I want to get the full image path of the image stored in the PhotoGallery inside the iphone.How to get it? I used the image.nativePath But it's not working.. Please Help Thanks....
| stackexchange/codereview |
I would like to get the same type of functionality as the SO editor (including the preview) for my own site. Is it a separate project that has been incorporated into SO that I can use too? Or is it designed by SO, and if so can I get it and use it?
| stackexchange/codereview |
I know this is not quite "restful" but, I want to learn if and how I can handle all requests which do not match any of the methods in my REST resource (I want to proxy these requests to another server). For example, it could be a method like:
@GET
@Path("*")
public Response defaultMethod(@Context HttpServletRequest ... | stackexchange/codereview |
I would like to put more than one icon in a TreeView ( Winforms, .Net 3.5 ). I've took a look at this codeproject project ( http://www.codeproject.com/KB/tree/treeviewadv.aspx ) but it doesn't work for me.
If it's possible I don't want to change our current TreeView, i.e. I don't want to use a commercial tool.
It's pos... | stackexchange/codereview |
thanks to the folks who answered my last question
i keep getting this error: Function name must be a string in /home/pulsergf/public_html/these/vars.php on line 4
<?
$array = array('555', '666', 'aaa', 'bbb', '777', '888');
$rand_index = mt_rand(0, count($array) / 2 - 1) * 2;
$define('BOUGHT','echo "$array[$rand_index]... | stackexchange/codereview |
i want to add minmun/maximum button on tabnavigator header.......how i could be possible
| stackexchange/codereview |
I'm just looking for ideas/suggestions here; I'm not asking for a full on solution (although if you have one, I'd be happy to look at it)
I'm trying to find a way to only upload changes to text. It's most likely going to be used as a cloud-based application running on jQuery and HTML, with a PHP server running the back... | stackexchange/codereview |
I have started to learn assembly. I came across these lines.
;*************************************************;
; Second Stage Loader Entry Point
;************************************************;
main:
cli ; clear interrupts
push cs ; Insure DS=CS
pop ds
Here on second line of code, the code segment is pu... | stackexchange/codereview |
I am working on a appliaction in which I have a following schema
Tasks Master
Task_ID
Task_Name
Task_Details
Task_ID
Task_Date
Task_Count (can be any number like 2 or 3 or 4 or 40)
the Input Form is like that which the staff will fill at the end of the day.
Date | Task Name | Task_Cou... | stackexchange/codereview |
After reading some posts, I'm trying to implement an observer to fire an event before the user login. I'll explain: I have a forum and a blog, using another framework, and I want the visitor to log only once: blog, forum or eshop. After that, he will be logged for other areas. For example, I am browsing the forum and I... | stackexchange/codereview |
i am having a table with fields
item_no item_amount_from item_amount_to price
101 200 300 10
101 300 400 20
101 400 500 30
101 500 null 40
i want to make a query which can retrieve price if i... | stackexchange/codereview |
I wonder if it's possible to reference a XML string value in another XML String resource.
Things like the following are possible:
<string name="title">MyTitle</string>
<string name="activityTitle">@string/title</string>
But in case of an concated resource string, I found no solution yet, so what I'm searching for is t... | stackexchange/codereview |
I have a ListView that I'm populating with names and images (if one exists) for each contact on my phone. This works fine when the app initially loads, but once I start to scroll through the ListView the images that were originally correct disappear. The only thing I can think of is that the resources are used and th... | stackexchange/codereview |
I can't use getIntent()..
What else do I need to use getIntent(), What I want to do, is retrieve data from the parent activity. and I have put some values,
Do I need to declare Intent?
getIntent.getExtras().getString("CallerClass");
| stackexchange/codereview |
I found a pretty weird thing that I cannot write double quote inside Scala block comment(/**/), I got an error said:
IO error while decoding xxxx.scala
with UTF-8
If I change the double quote to single quote, it compiles fine.
I am using IntelliJ IDEA Community Edition 98.231 with a nightly build Scala plugin.
So w... | stackexchange/codereview |
I was wondering if anyone has any opinions regarding the usage of xVal or MVC 3.0 model validation? I originally started using xVal because of its ability to validate both client and server side but the project appears to be dead (perhaps dormant is a better word) and it appears that validation in MVC 2.0 and 3.0 has g... | stackexchange/codereview |
For a homework assignment I have a "health" or basically a BMI/BMR calculator. When I try to create a new class object using values picked up previously in my Tester class by the scanner it's telling me cannot find symbol. I feel as if it's something obvious but at the same the fact that I'm getting an error doing such... | stackexchange/codereview |
RowFilter.regexFilter seems like a an easy way to filter my JTable.
I'd like to let people type in filters in a GUI that are straight-up text (i.e. not regex expressions) and then filter based on them. Like this:
RowFilter<TableModel, Object> filter = RowFilter.regexFilter(".*" + pUserFilterString + ".*", pColumn);
T... | stackexchange/codereview |
I am trying to convert a mono linear pcm file to an aac file. After much struggle I finally got it out output using the below settings, but now the file won't play. I really don't know where to look - all of the examples I have found are similar to what I already have.
All of the samples I have seen have destFormat.mBy... | stackexchange/codereview |
I've started using Hudson based upon a suggestion from a co-worker, and I really enjoy it. However, he is pointing Hudson to Maven to handle deployments of the WAR, while I am using Ant for a legacy project. I know Ant has a deployment task that I could tell Hudson to run, but it works with the Tomcat manager (not an o... | stackexchange/codereview |
I am treating a spark TextArea as text input(by setting heightInLines="1"). The TextArea is part of an mxml component and I want to resize the component when the text is changed.
I haven't been able to use textArea.measureaText(textArea.text) to get line metrics and use it. I get this error "Parameter antiAliasType mu... | stackexchange/codereview |
I would like to better understand how the various common search algorithms relate to each other. Does anyone know of a resource, such as a hierarchy diagram or concise textual description of this?
A small example of what I mean is:
A* Search
-> Uniform-cost is a variant of A* where the heuristic is a constant functio... | stackexchange/codereview |
The use case is as follows :
I have a script that runs a series of
non-python executables to reduce (pulsar) data. I right now use
subprocess.Popen(..., shell=True) and then the communicate function of subprocess to
capture the standard out and standard error from the non-python executables and the captured output I lo... | stackexchange/codereview |
At work, I am on a sizable development team. Our current project is in Silverlight 3. We cannot upgrade right now due to all the regression testing (company policy)
Well, our LAN dept worked on my dev box and they uninstalled silverlight 3. Now the project will not load due to :
The imported project "C:\Program File... | stackexchange/codereview |
So i have a aspx that gets IP Addresses. but if i have multiple machines coming from an IP address I need some info that will distinguish each machine differently.
What would you use?
| stackexchange/codereview |
I have added the following to my environment.rb:
config.gem "json", :version => '>=1.2.3'
When I run
rake rails:freeze:gems
the json gem does not install. I get
Freezing to the gems for Rails 2.3.8
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
Unpacked gem: '/Users/chad/www/aromapersona.localhost/vendor/r... | stackexchange/codereview |
I'm hoping that I'm just using the API incorrectly, but for some reason, when I query my oData service from wp7, I am only receiving the last entry in the sequence. I'm pretty sure the service is working just fine as I'm able to just visit the oData query URL in the browser and get the correct results. However, the fol... | stackexchange/codereview |
Can someone suggest some literature about development under WM 6.0 via C# (sockets, bluetooth, user controls...).
| stackexchange/codereview |
Does anyone know a complete JSF 2.0 sample or open source application using JSF 2.0 features (Facelets, Composite Component, Templates, Ajax, Navigation, etc.). Would be a good reference to learn some best practices. I'm talking about an application that you would also use in production. The only ones I know are ScrumT... | stackexchange/codereview |
I'd like to modify the enter key to fire off a window.open(ui.item.url)
Could someone help me do this? The autocomplete key code block is here:
.bind( "keydown.autocomplete", function( event ) {
if ( self.options.disabled ) {
return;
}
var keyCode = $.ui.keyCode;
switch( event.keyCode ) {
case keyCode.PAGE_UP:
... | stackexchange/codereview |
I have a problem loading multiple images at the same time using matlab. Could anybody me?
| stackexchange/codereview |
Hello I'm writing a jQuery code for my application and got some issues (like function called once, running three times).
I must know if exist any site that people audit source code and comment my mistakes..
most of my code is like this i/e:
$('a.openBox').click(function(){
//do something
$('.box').show();
$('a.op... | stackexchange/codereview |
Hi I'm writing an app for DroidX which is 480x854. I set up my AVD as follows:
target:API level 7
skin:480x854
hw.lcd.density:160
That's it. The emulator loads fine and looks great but my app doesn't fill_parent for some reason. See here:
It doesn't scale all the way up and I'm not sure why. Here is my XML:
<?xml ve... | stackexchange/codereview |
I'm trying to make a test app which measures the performance for threads. However, I'm trying to set an image to imageview on a thread and it's not updating. In fact, the methods setImage1 and setImage2 aren't even getting called. Any ideas?
Look at the code for details
#import "UntitledAppDelegate.h"
#import <QuartzCo... | stackexchange/codereview |
I'm having a heck of a time figuring this out. I have a WCF service that I need to puch information to Silverlight client, but I need a console application to also be able to participate in this. Could anyone give me a hint on to what my Web.Config should look like to specify an additional binding that the console app ... | stackexchange/codereview |
Can I get the objects created in Interface builder in xcode by program ?
I have set the tag and name of the objects (UIButton).
The situation is that I used IBAction for "button pressed" action and I can get the current button which trigger the action, but what if I want to get the previous pressing button and set its... | stackexchange/codereview |
I have a class named dot and many instances of this same class are created when the app runs. Problem is I need to be able to click on one of the instances of this class and have the clicked instance only change colors.
The problem is whenever I click on one of the dot instances, all of them change color instead of jus... | stackexchange/codereview |
I am trying to install Apache 2.2 and PHP 5.3.3 on a Windows Server 2008 R2 box. I've managed to setup Apache, but PHP is not working correctly: I've downloaded the latest zip from windows.php.net (VC6) and I've modified http.conf in order to load the php5 module (LoadModule, AddType & PHPIniDir). So far, so good - php... | stackexchange/codereview |
Problem:
I have two (or more) classes which are very similar: The properties of one class are a subset of the properties of the other class. More specifically, the property names and semantics are equal, but not necessarily their types. However, if the types of a property with the same name differ, these types are agai... | stackexchange/codereview |
Recently, I meet something in other's source code. I don't quite understand the template in C++. Could you help me it?
struct my_grammar : public grammar<my_grammar>
{
...
};
Why my_grammar can be used as a type parameter like it?
Best Regards,
| stackexchange/codereview |
Guys I have the following structure in my project.
application/
Bootstrap.php
configs/
application.ini
modules/
default/
controllers/
models/
views/
Bootstrap.php
main/
controllers/
UserController.php
forms/
models/
... | stackexchange/codereview |
I'm porting a large VBA project over from Windows to the new Mac Word 2011. It's actually going very well...almost all of the code is working.
My code needs to call scripts on my server. On Windows, I call the system function InternetOpenUrl to call a script and InternetReadFile to read the results returned by the scri... | stackexchange/codereview |
Note: this question relates to stack overflows (think infinite recursion), NOT buffer overflows.
If I write a program that is correct, but it accepts an input from the Internet that determines the level of recursion in a recursive function that it calls, is that potentially sufficient to allow someone to compromise th... | stackexchange/codereview |
Could you tell me, what is the best Web Server engine for embedding into Java application? I have some logic written on Java and I want this logic to be wrapped into Web Server. Solution must be stable, fast and do not have memory leaks.
| stackexchange/codereview |
I was trying to use the count() Mongodb feature (db.collection_name.count({data:value}) using the Ruby Driver. I tried using de collection.count method, but it don't accept any parameters.
I checked the collection.count() method docs, it only returns the total amount of objects in the collection, where is no way you ca... | stackexchange/codereview |
I am just adding items to a list but can't get it to work. It keeps throwing errors expected ;, expected ).
using System;
using System.Collections.Generic;
public class Employee
{
private int _id;
private string _FName;
private string _MName;
private string _LName;
private DateTime _DOB;
privat... | stackexchange/codereview |
I am studying how to use MiniDumpWriteDump() method to create minidumps. After I read some articles, I got the feeling that all I can do is to provide some callback function and various flags to tell the OS what I want to dump. Then OS will collect various info such as call stacks into a dump file.
But is this all I c... | stackexchange/codereview |
I have a webpage application.
I wish to customize my pages to suit the resolution 1024 by 768.
Currently, when i change my display resolution, my tables are affected in the display browser using firefox. Please assist.
| stackexchange/codereview |
I am writing a common web service which will be invoked by different applications. I can foresee that some web methods should be resuable since the schema of soap request will be same. However, the response schema might be updated depends on client type. To reduce this impact of modifition, I would like to design the r... | stackexchange/codereview |
I have a form which posts 13 objects right now. Some of the objects can be optional, such as the Referrer, others can not be. The problem is that if I uses DAV and decorate the objects with validation attributes such as [Required] even if the object is optional the entire post will fail because the ModelState will be i... | stackexchange/codereview |
I have a string which is basically a block of content with normal formatting (p tags, bold etc..) and sometimes contains HTML links editors have put in.
But I want to keep all the other HTML, but just strip out the links. But not sure the fastest and most efficient way of doing this as the string can be large (As they... | stackexchange/codereview |
I'm trying to convert a basic tkinter GUI program to an .exe using py2exe. However I've run into an error using the following conversion script.
# C:\Python26\test_hello_con.py py2exe
from distutils.core import setup
import py2exe
setup(windows=[r'C:\Python26\py2exe_test_tk.py'])
C:\Python26\py2exe_test_tk.py is the... | stackexchange/codereview |
Is it possible to execute a MySQL query using "=" or "like" operations that ignore accentuation?
Example:
select * from address where name like "Rua Tabapua"
returns
Rua Tabapuá
Rua Tabapuã
Rua Tabapuà
and etc...
Is it possible to do it using Ruby on Rails ActiveRecord API without using find_by_sql?
Thanks,
Rubem
| stackexchange/codereview |
How do I send an image through MMS from a server?
I went through the JDE samples, and I know how to send an attachment from the BlackBerry file system.
| stackexchange/codereview |
I'm struggling trying to parse this html. There are h2s acting as titles for paragraphs. Both are in separate divs, and separated by more divs. The paragraph isn't a child of the h2. I'd like to group them together, but I can't figure how out. I thought find would do it but it didn't work:
html = doc.cssselect('h2.titl... | stackexchange/codereview |
Does anyone know how I can reload an UpdatePanel on my parent C# page from an action on my pop-up page WITHOUT refreshing the entire parent page. My parent page doesn't retain its state in the Url, so the user may have expanded a div here, refreshed a list there, and that parent page state needs to be preserved. All th... | stackexchange/codereview |
I have a jQuery script in my header that updates the last_active datetime database field every 60 seconds. The problem is, if the user has multiple windows open then this puts extra pressure on the server as each page is updating after 60 seconds.
I would rather fix this problem without having to resort to frames... if... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.