instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have used the libraries (libavformat and libavcodec) to decode some MMS streaming urls. But some of them are protected by DRM. When I try to decode them, the library will warn about it
In libavformat/asfdec.c:
if (!s->keylen) {
if (!guidcmp(&g, &ff_asf_content_encryption)) {
av_log(s, AV_LOG_WARNING, "DR... | stackexchange/codereview |
My application has a custom window design, which means that every window has the following parameters set (XAML):
WindowStyle="None"
AllowsTransparency="False"
One of the sub windows needs to display a Flash component, the Flash ActiveX component is hosted thrugh XAML:
<ax:AxShockwaveFlash x:Name="axFlash"/>
With reg... | stackexchange/codereview |
Is this correct way to convert string to float with two decimal places?
string s1 = "9.09";
string s2= "99,09";
string s3= ",09";
ConvertToFloat(s1);
ConvertToFloat(s2);
ConvertToFloat(s3);
private float ConvertToFloat(string value)
{
float result;
decimal de= Conv... | stackexchange/codereview |
Is there any jQuery Plugin to make "Bold" matched letters in a search query?
Like in any search engine, after a query is typed, the matches letters are made bold in the results.
| stackexchange/codereview |
i'm trying to create a ntier desktop application using vb.net 2008.I'm trying this code
Presentation Layer
Imports System
Imports System.ComponentModel
Imports System.Data
Imports System.Data.OleDb
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports Pos.Pos.BLL
Imports Pos.Pos.DAL
Imports S... | stackexchange/codereview |
Getting two warning when i run this program and i can't figure out how to stop this from happening. Any help would be appreciated!
warning: comparison between signed and unsigned integer expressions
Is the warning I'm getting for 2 lines in the extract_word function.
#include<iostream>
#include<string>
using namespa... | stackexchange/codereview |
I am trying to auto scroll my text view and reset it to the top once it's arrived at the end.
I use this code:
-(void)scrollTextView
{
CGPoint scrollPoint = stationInfo.contentOffset;
scrollPoint = CGPointMake(scrollPoint.x, scrollPoint.y + 2);
if (scrollPoint.y == originalPoint.y + 100)
{
N... | stackexchange/codereview |
We are wanting to modify our app and create a way to allow mobile users to shop at our store. I know apple get's 30% of the revenue from the App sales itself, but do they get 30% of the sales made through our app? If so, Would we be better off making an ecommerce website designed for mobile users and then making a link... | stackexchange/codereview |
I have a DataGridView attached to an XML DataSource. Everytime user edits a cell the program automatically updates the relative XML file. To handle editing I am using both:
private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
//do edit
}
private void dataGridView1_CellEndE... | stackexchange/codereview |
I am developing the asp.net mvc application . my one of forms requirement is that:
It has dropdown filling up with let say A,B,C values. If selected A then on UI there should be 2 text boxes should be visible and other should be invisible , if selected B, then must be add another 2 text boxes , i this way there should ... | stackexchange/codereview |
I'm trying to incorporate MFMailComposeViewController in my app. When I present it modally, the send button works fine and the email is sent, which implies that the result sent to the delegate is right in that case.
Whereas when I tap the cancel button it hangs up the app. The log shows no errors either, just the scree... | stackexchange/codereview |
I have an article list page. It needs to show some content information about this article.
If I only use:
truncate @article.content,:length=>100
It will show some html tag, and doesn't show the real content to the user. I want to find some way to get the text extract from the content, so I want to ask is there some e... | stackexchange/codereview |
I have been researching about the headless browsers available till to date and found HtmlUnit being used pretty extensively. Do we have any alternative to HtmlUnit with possible advantage compared to HtmlUnit?
Thanks
Nayn
| stackexchange/codereview |
From what I can gather arc4random() generates much better random numbers than rand() does, however I haven't seen a way to seed it, and I would like to just like using srand(). Is there a way?
| stackexchange/codereview |
Like I have mentioned in my question, I am pretty okay at working on the canvas element of HTML5 and have tried out some really cool "2D" effects with vanilla js and canvas drawing effects. But now I am kinda bored of this plus, I hate having to create most functions from scratch, then I saw some webGL examples, and I ... | stackexchange/codereview |
I want to read the arrayList objects Attributes that is assigned to request object from JSTL
how can I do this?
i tryed the following
here is the servlet code:
ArrayList<Employee> al = new ArrayList<Employee>();
/* code for filling the ArrayList with objects from class Employee */
request.setAttribute("alldata", al);`
... | stackexchange/codereview |
In my ORM model, I'd like to save some default values which are calculated based on other values. The best I could come up with is:
function save(){
if( ! $this->loaded()){
// Set values here
}
parent::save();
}
Does anybody know if there is a better/recommended way to do this, or should this be su... | stackexchange/codereview |
I'm using cURL in my PHP app to connect to a RESTful API. However, I just recently discovered that I'm not parallelizing my cURL connections and so performing several successive connection results in extreme latency for the end-user.
I've not used curl_multi before and I'm kind of at a loss after reading through the do... | stackexchange/codereview |
for some ungodly reason i am using
// @require https://github.com/sizzlemctwizzle/GM_config/raw/master/gm_config.js
I am trying to use this. when i say:
alert(typeof GM_config)
i get undefined. how in gods name do i include something to use in gm?
| stackexchange/codereview |
I am trying to create a simple application that needs to hide and show div content on click. It fine except for the fact that any time I click on a span or the list, the div doesn't observe a click. What is the best way to observe all the clicks within this div?
<div data-hour="16" data-minute="0" data-duration="1" cl... | stackexchange/codereview |
Hi i'm thinking about making midi step sequencer and I need to make a note grid/matrix that resizes/ adapts when you zoom. I've been searching for different ways of doing this but cant figure out a way that works well.
I thought about drawing cell objects made with (NSRect) but I couldn't figure out how to get the righ... | stackexchange/codereview |
Does the ANSI C specification call for size of int to be equal to the word size (32 bit / 64 bit) of the system?
In other words, can I decipher the word size of the system based on the space allocated to an int?
| stackexchange/codereview |
Hi Ladies and Gentlemans!
I have a MenuStrip and want to have a ContextMenu with same structure.
Can I use my MenuStrip as ContextMenu, or quick create ContextMenu with DataSource from MenuStrip?
Thanks!
| stackexchange/codereview |
I'm trying to develop a way of switching Windows Phone 7 application style depending on a setting.
The styles look like this:
core styles are separated and defined in WP7Style_Dark.xaml and WP7Style_Light.xaml
the rest of the styles are declared in Styles.xaml
I use the following code to hook up the themes in App.xam... | stackexchange/codereview |
I've been monitoring the Net panel of Firebug and noticed that the HTML has to be downloaded first before any other resources are downloaded. I guess this make sense since the other resources are defined in the HTML. Is there a way around this so that other components can be downloaded during the HTML download?
| stackexchange/codereview |
I'm pretty new to jQuery and it's limitations, I've seen a lot of cool stuff done with it but I'm wondering what the limitations are and if it is possible to recreate something like this - http://www.magnetme.co.uk/ in jQuery.
The reason I ask is we want to create some interactive elements to a new website and was thin... | stackexchange/codereview |
I am trying to understand what is the difference between Windows Azure and other competitors, in the technical level.
From what I understand Azure is a multitenant OS, meaning, that every application is running in some kind of a sandbox based on Hyper-V.
In other words, every application being loaded is running by Azur... | stackexchange/codereview |
I've written a post build script for my visual studio project
copy "$(TargetDir)ReportTemplates\*.*" "$(TargetDir)Excel\"
del /q "$(TargetDir)ReportTemplates"
and in the build output I get
V:\project\ReportTemplates\CRC150.xls
V:\project\ReportTemplates\SR558.xls
V:\project\ReportTemplates\SR559.xls
3 ... | stackexchange/codereview |
I am having a problem figuring out how to create a heatmap overlay having:
- set of points and their correspondig repetition counter
- maximum repetition counter for a single point
- minimum repetition counter for a single point
If you have any code examples I would appreciate.
Edit
I need to end up with an... | stackexchange/codereview |
I am using DateTime.UtcNow to measure time in my software and need to be able to tell if “action a” happens less more than 10 seconds after “action b”
However what if the system time is change? So how I do I detect if the system time is changed?
I don’t wish to use a stopwatch as we need to run on servers with more th... | stackexchange/codereview |
Yeah, I'm struggling with that. I cannot distinguish among them because every explanation I read is so unclear and philosophical enough. Can someone clear up these definitions for me ? Thanks guys.
These definitions apply as much to procedural-programming as oop ? Thanks.
| stackexchange/codereview |
I'm trying to use my own authorization by creating a base controller and override the OnAuthorization method.
It works fine when authorization fails, but I get a 401 page when my checks succeed (but the default authorization checks fail).
protected override void OnAuthorization(AuthorizationContext filterContext)
... | stackexchange/codereview |
My question sounds pretty weird, but my problem is that I don't know how to get a selected cell's row's FIRST cell's value.
For example:
column1 column2 column3
item1 item2 item3
Let's say I select item2, now how could I get item1's value?
Thanks!
| stackexchange/codereview |
I have a large list of old routes that I need to redirect to new routes.
I am already defining my custom routes in the Bootstrap:
protected function _initRoutes()
{
$router = Zend_Controller_Front::getInstance()->getRouter();
$oldRoute = 'old/route.html';
$newRoute = 'new/route/*';
//how do I add a 30... | stackexchange/codereview |
Using .NET MVC, I have a partial view of an address that I need to implement multiple times on the same page because the user might have different types of addresses. Being new to .NET MVC, I would like to find an example that would guide me through all the steps necessary.
Here is some of the code. This first part o... | stackexchange/codereview |
How do I get the actual filesize on disk in python? (the actual size it takes on the harddrive).
| stackexchange/codereview |
I have used html_entities for UTF-8 in php.
$input = "<div> 'Testing' </div>";
echo htmlentities($input,ENT_NOQUOTES,"UTF-8");
But, above encoding is working for normal input, if i give below input and use encoding then I am getting blank output.
$input = "<div>Other 'user' is working on this line. Please contribute ... | stackexchange/codereview |
Are there any best practices for implementing a long-lived JavaScript app, i.e. a web app that consists of a single page and loads other pages into the content area via AJAX? (Gmail is a good example of this.)
I already read about pro and cons, SEO, performance, etc. (http://stackoverflow.com/questions/1499129/one-page... | stackexchange/codereview |
I want to put a button on UIToolBar at the center position. What changes do I have to make in the following code?
CGRect toolbarFrame = CGRectMake(0, 0, self.view.frame.size.width, 44);
UIToolbar *mytoolbar = [[UIToolbar alloc] initWithFrame:toolbarFrame];
mytoolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth;
... | stackexchange/codereview |
I'm reading about destructors in C# but I'm having trouble finding a decent use-case for it.
Could someone provide an example of usage with an explanation?
Much, much appreciated.
Update
The code sample in the book implements both a Desctuctor and a Dispose() method, see this code snippet from the book.
class MyClass
{... | stackexchange/codereview |
Yes this is homework. I was wondering if someone could explain the process of Sollin's (or Borůvka's) algorithm for determining a minimum spanning tree. Also if you could explain how to determine the number of iterations in the worst case, that would be great.
| stackexchange/codereview |
I am trying to parse some JSON for my app.
When trying to set the "name" value I get the error unrecognized selector sent to instance'.
This is the line of code the error happens on: self.name = [json_object objectForKey:@"name"]; (json_object is an NSDictionary and "self" is an object in CoreData)
My JSON looks like... | stackexchange/codereview |
Does anyone know the best way to deserialize a form with a json object in jQuery? I see there are a couple plugins out there, but was wondering if anyone with experience in the area knows the best one or way to implement without a plugin. Thanks!
| stackexchange/codereview |
Have followed every step correctly from this link http://msdn.microsoft.com/en-us/library/ms746621.aspx
When trying to localize the file using locbaml.exe /parse I keep getting this error -
C:\MyData\Projects\APM V3\DEV-3.5.0\Meridium\Admin\DBUpgMgr2\ImportUtility\DBUpg
radeUI\obj\x86\Debug>
LocBaml.exe /parse DBUpgrad... | stackexchange/codereview |
I am attempting to access a public member of the Master page class from a User Class.
In my master page, I have:
Partial Class MainDisplay
Inherits System.Web.UI.MasterPage
Public Shared m_test As Integer
...
In my User Class, I have:
Imports Microsoft.VisualBasic
Imports System.Web.UI.MasterPage
Public Class m... | stackexchange/codereview |
i am new to flex. I want to create some buttons and when v click on that button, it should open some images. how to give this functionality in flex builder 3. Thanks for ur time
| stackexchange/codereview |
I am using a Mac and would like to create a simple objective c unit test file to try out with a continuous build process. What is the simplest unit test file that I can create that I can point xcodebuild at to execute from the terminal?
//Simple file
//with some setup and a simple assert equal statement
> xcodebuild ... | stackexchange/codereview |
I have a two column layout:
<html>
<head></head>
<body>
<div id="container">
<div id="header"></div>
<div id="sidewrapper"></div>
<div id="contentwrapper"></div>
</div>
</body>
</html>
I want to have both sidebar and content be 100% in height but the most top container's min-height ... | stackexchange/codereview |
I want the smallest server possible not a full blown opensource isapi server, it's for learning purpose not for real use. Can't find any on google.
| stackexchange/codereview |
I am developing a web browser in java. For parsing and rendering I am using cobra 0.98.4 .
cobra is not cookie enabled . So to save cookie I create a cookie management class. I can extract cookie from a web page . But I don't know how to send it. I know that to send cookie I have to set property of URL-Connection and ... | stackexchange/codereview |
i wrote extension class, for textbox control.
public static class Extensions
{
public static void AddMessage(this System.Windows.Forms.TextBox textbox,string message){
textbox.AppendText(DateTime.Now.ToString() + " " + message + "\r\n");
}
}
my textbox control, passed to the "Core" class via co... | stackexchange/codereview |
In python, How do I preserve paragraphs (i.e. keep newlines) when using lxml.html?
For example, the following will strip <p></p> tags and join the lines, which is not what I want:
body = doc.cssselect("div.body")[0]
content = body.text_content()
Here's what I've tried that doesn't work:
lxml.html.clean.clean_html:
W... | stackexchange/codereview |
I am dynamically generating a query like below that creates different combinations of rules by left joining (any number of times) on itself and avoiding rules with some of the same attributes as part of the joins conditions e.g.
SELECT count(*)
FROM rules AS t1
LEFT JOIN rules AS t2
ON t1.id != t2.id
AND ...
LEFT ... | stackexchange/codereview |
My app is a kind of a pocket guide with some data for the whole year. I'm assuming users will use the program at least once with Internet access to activate the license. Or at least that's my understanding of how the Android licensing system works. I'm using ServerManagedPolicy.
Does it check periodically for the lice... | stackexchange/codereview |
I'm working on a CMS website which sends newsletters based off an HTML page (and with a conversion to plain text as a multipart/alternative option). I wonder what would be the best practise for choosing doctype.
The design for these pages are of course simplified from the real website, and getting the right doctype for... | stackexchange/codereview |
I've built a new SharePoint 2010 Web Site. My authantication type is Claims Based Auth. As you know, we use groups,members to manage or add users/permissions in Site Settings. I want to know that if I can make it with programmaticly. I mean I want to add new page for ex Register.aspx and Login.aspx. I've done Login.asp... | stackexchange/codereview |
Is there a difference in themes for the Magento Community, Professional and Enterprise editions? If I develop a theme and test it using the Community edition, will it work on the other commercially available editions?
| stackexchange/codereview |
I'm trying to decide on the privileges for my moderator role.
All he should be able to do is to send messages to all users subscribed to his channel and to modify the page for it.
Here is what I have:
role :moderator do
has_permissions_on[:message], :to=> [:index, :show, :new, :create,:edit,:update,:destroy]
... | stackexchange/codereview |
The following program outputs "We have something else". How do I properly determine a DataType of the type being passed in?
void Main()
{
AFunction(typeof(string));
}
void AFunction<T>(T aType) {
if (aType.GetType() == typeof(string)) {
Console.WriteLine ("We have a string");
} else {
Co... | stackexchange/codereview |
I have x (millions) positive integers, where their values can be as big as allowed (+2,147,483,647). Assuming they are unique, what is the best way to store them for a lookup intensive program.
So far i thought of using a binary AVL tree or a hash table, where the integer is the key to the mapped data (a name). Howeve... | stackexchange/codereview |
Occasionally I run into the following scenario -- one procedure uses a global function f[x] to do some computation, meanwhile another procedure does f=5 which turns all subsequent calls f[x] into 5[x]
I know about localizing variables, but I prefer to use global variables early in the development.
I can't think of a le... | stackexchange/codereview |
I have one table in SQL Server which is based in London. That table is linked n MS access Database which is in Mumbai.
If i try to query the Linked Table i am getting error saying ODBC call Failed.
ODBC SQL Server Time Out.
Please help.
Thanks in Advance
| stackexchange/codereview |
How to sum up the number of words frequency using fd.items() from FreqDist?
>>> fd = FreqDist(text)
>>> most_freq_w = fd.keys()[:10] #gives me the most 10 frequent words in the text
>>> #here I should sum up numbers of each of these 10 freq words appear in the text
e.g. if each word in most_freq_w appear 10 times, th... | stackexchange/codereview |
I have an application that is very "connection-based", i.e. multiple inputs/outputs.
The UI concept of a "cable" is exactly what I'm looking for to make the concept clear to the user. Propellerhead took a similar approach in their Reason software for audio components, illustrated in this YouTube video (fast forward to ... | stackexchange/codereview |
I am the administrator and I need to delete a user.
If the user is authenticated at the moment I delete it, what is the best strategy to force the deleted user to logout at the next request?
Must I handle this operation in the Application_AuthenticateRequest event?
In other words, can be an idea to verify in the Authen... | stackexchange/codereview |
I created a site in Sharepoint 2010 and exported it using "Save as template". That created a .wsp which I imported into Visual Studio 2010 and created a solution. That solution contains a web template (which is just an onet.xml file) among all the site pages and assets. So far, so good.
Now, I developed some web parts ... | stackexchange/codereview |
Ok, I have four tables:
Table 1: "f_withholdings"
Table 2: "f_wh_list"
Table 3: "f_rpayments"
Table 4: "f_rp_list"
Table 1 and Table 2 are connected with each other by wh_id field
and Table 3 and Table 4 are connected by rp_id as seen in picture.
I want to union select both tables into one, something like:
SELECT
`... | stackexchange/codereview |
In the code below, PersonListArray is an NSMutableArray and I'm getting the list of persons from the sqlite DB and adding it to my array.
Person* tmpPerson = [[Person alloc] init];
tmpPerson.personName = @"Mike";
tmpPerson.personEmail = @"mike@mike.com";
[PersonListArray addObject:tmpPerson];
[tmpPerson release];
Ev... | stackexchange/codereview |
I have a very simple UDF I'll call GetNumber. It would be used in my LINQ-to-SQL queries like so:
var query = from a in db.TableA
where db.GetNumber(a.Something, Configuration.Setting) == 7
select a;
The second parameter is always going to be coming from a configuration setting, so I want to si... | stackexchange/codereview |
Im curios about this. I have for example this code :
button_article.addClickListener(new ClickListener(){
public void onClick(Widget w) {
GWT.runAsync(new RunAsyncCallback() {
public void onFailure(Throwable reason) {
// somethings
}
public void onSuccess... | stackexchange/codereview |
Are there any constraint-programming libraries for PHP? Something that would be capable of handling a situation like this.
| stackexchange/codereview |
http://jsfiddle.net/PZ5AZ/
Please advise me what to do to make text Send Vertical align middle .also please advise that these problems not came in future what can i do ?
| stackexchange/codereview |
I'm using Spring-JDBC to execute the SQL and fetch the results.
SELECT
SUM(spend) total_sum
FROM TABLE_NAME
WHERE
sup_id = ? AND
( ( YEAR = ? AND period IN ( ? ) ) OR
( YEAR = ? AND period IN(?)))
And the bind variables are passed as:
final Object[] paramMap =... | stackexchange/codereview |
I have a tabBarController which contain two tab, i would like 1 tab is support orientation but another one not,how to do that? i have tried the code:
@implementation UITabBarController (CustomTabbar)
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if(self.tabBarController.s... | stackexchange/codereview |
A Windows service written in VB.NET is using the My.Settings namespace for simplicity. There are only three settings to read, and these are read within the constructor of the ServiceLauncher.
I am attempting to install the service as such:
installutil GID.ServiceLauncher.exe
And this is successful, however the config... | stackexchange/codereview |
// Fahrenheit (°F)
I have the above code commented out in my java code, but I get the "unmappable character for encoding UTF-8". How do I fix this?
| stackexchange/codereview |
I have a textarea field where users can enter content. When it comes to displaying their entry on a page, rails returns \n for each line break, which appears as no break at all for html on the page.
From what I gather, the standard way of getting around this is a .gsub command, replacing \n with <br />, and then a .htm... | stackexchange/codereview |
In top command, i couldn't find any option. Can somebody help me out?
| stackexchange/codereview |
I want to know which one is the best way to implement autocomplete in aspx forms using jquery?
What is the difference between using bsn.autosuggest and jquery autocomplete.If possible pls explain
Thanks in advance.
| stackexchange/codereview |
I'm creating a Rails 3.0.3 gem and can't get it to work:
# attached.rb
module Attached
require 'attached/railtie' if defined?(Rails)
def self.include(base)
base.send :extend, ClassMethods
end
module ClassMethods
def acts_as_fail
end
end
end
# attached/railtie.rb
require 'attached'
require 'rails'... | stackexchange/codereview |
I've got this form, initialized from the data in a Mysql database entry. If the form is submitted, I want to check if the values (15 of them) in the form have been changed, I want to call a php script to update the database entry and then load the main page content in my div (redirection would be done in the php scrip... | stackexchange/codereview |
For the purposes of this question, I do not have the ability to use printf facilities (I can't tell you why, unfortunately, but let's just assume for now that I know what I'm doing).
For an IEEE754 single precision number, you have the following bits:
SEEE EEEE EFFF FFFF FFFF FFFF FFFF FFFF
where S is the sign, E is t... | stackexchange/codereview |
I'm a noob in python, and i'm creating a app into appengine with python.
I define class form Model's bug i don't know how order archives, normally, i create diferrent archives with all entities of my model, buy i don't know if in python is normal do the same think.
I think is normal define Model for all app in one file... | stackexchange/codereview |
I'm using json-simple and I need to pretty-print JSON data (make it more human readable).
I haven't been able to find this functionality within that library.
How is this commonly achieved?
| stackexchange/codereview |
I would like to add a parameter to each URL in my Rails 2.3.10 application. I played with the default_url_options but I want the parameter to be visible in the URL. Something like:
http://<server>/posts?token=XYZ
I'm building an affilate tracking system and I want people to share the link and be able to track who's li... | stackexchange/codereview |
I can create a new preferences file by calling Context.getSharedPreferences(String name, int mode), putting some values in the returned preferences' editor, and committing. However, I don't see an interface in the API to remove the created file when I no longer need it. I've tried Context.deleteFile(String name), pas... | stackexchange/codereview |
We have a form which has a submit button (input type="submit") and a bunch of a4j:commandButtons which are ajax buttons that translate into input type="button".
I'm able to use this jquery code to prevent double submitting of the submit button:
$('#createPostingForm').submit(function(){
$(':submit')... | stackexchange/codereview |
My program, at a certain point in its execution, reads its own /proc/self/maps line by line until (and including) the heap. The program's path is "/home/t4". Here is the output:
00400000-00403000 r-xp 00000000 68:06 21629911 /home/t4
00602000-00603000 r--p 00002000 68:06 21629911 /home/t4
00603000-00604000 rw-p 00003... | stackexchange/codereview |
There is an url like www.demoimage.com/?imageNo=34, and that url shows an image on the browser.
What i need is to save this image to hdd as .jpg , i tried this sample and works
http://www.co-scripts.com/url--den-resimleri-binary-olarak-alip-kaydetme
But some urls returns 0 bytes of reply tı my httprequest.
I change t... | stackexchange/codereview |
I'm a C/C++ developer and I also have experience developing web apps with C#, ASP.NET MVC and fluent nhibernate. I'm looking for non-MS alternatives for web development and I'm really interested in python so I went out after Django but I've been told that Django makes it difficult for me to personalize my HTML (not sur... | stackexchange/codereview |
i have a question
i try some function like
DIR=/path/tmp/
if [ -d "$DIR" ]; then
and
if [ -f "$DIR" ]; then
but only check /path/tmp this path
how can i do?
| stackexchange/codereview |
I require to generate some sources, so i attached a plugin goal to the generate-sources lifecycle phase.
When I run mvn package it works fine, but when I run mvn install I noticed that my source generation plugin executes twice.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<exe... | stackexchange/codereview |
How to evaluate the mathematical expression from the string in J2ME.
For example a string containing "2*4".From the string i want evaluate the mathematical expression and get the result as 8 (2*4).How should i done this in J2ME.
In "Java™ Platform Standard Ed. 6 " there is a package namely "javax.script" is used for ev... | stackexchange/codereview |
In my android application I have custom listview with an image and textview. In extended BaseAdapter under getView method click events of textview and image are associated with onClick method using setOnClickListener as shown in code below
public View getView(int position, View convertView, ViewGroup viewGroup) {
Str... | stackexchange/codereview |
How should i remove admin rights for each desktop user on Win XP, Win Vista and Win 7 programmatically using C# .NET ?
| stackexchange/codereview |
I have the newest wordpress installed in "example.com".
If I create the folder "example.com/my-app/" and there run index.php which fetches data from mysql, but not from the wordpress database (different user, different db), is there a security issue?
And if someone hacks into my wordpress account can they read the php ... | stackexchange/codereview |
What applications exist that can take a series of fields from my db (or csv output from my db) and insert them into a web-based form and then submit that form?
Big Picture Use Case:
I maintain an in-house registration management system for webinars that we produce/present. Currently we use GoToWebinar.com to host our ... | stackexchange/codereview |
I am working on a biztalk project and I need to copy (filtered) content from 1 xml to another.
I have to do this with xpath, I can't use xsl transformation.
So my xpath to get the content from the source xml file is this:
//*[not(ancestor-or-self::IN1_Insurance)]|//IN1_Insurance[2]/descendant-or-self::*
Now this retur... | stackexchange/codereview |
seeing this blog post : http://mine.tuxfamily.org/?p=111, I'm trying to disable the pivot flick when flicking on a control inside the pivot.
I've tryed the proposed solution with IsHitTestVisible, but it seems that the application locks when setting it to false.
To reproduce the problem, create a wp7 basic application.... | stackexchange/codereview |
I've recently started using Windows XP. I installed xaamp and wrote a test PHP script, but I can't run it because windows keeps chnaging the filetype by automatically appending .txt. How can I stop this? Thanks.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.