instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have openssl directory for whole openssl code. It has some folder hierarchy.
I want to use for example RSA algorithm in openssl, how can I include open-sll in my project?
If I just include that directory, program cannot find all files properly. Always error about cannot find some definition or something like that.
W... | stackexchange/codereview |
I have a gridview that creates check boxes.
I would like to display on my page how many checkboxes have been clicked without the use of a button. I would like for it to be displayed dynamically.
So if I click on 3 checkboxes I will see the number 3 being displayed. (displayed inside div tags would be ideal).
| stackexchange/codereview |
How could nested pattern matching, such as the following example, be re-written so that None is specified only once? I think the Maybe monad solves this problem. Is there something similar in the F# core library? Or, is there an alternative approach?
match a with
| Some b ->
let c = b.SomeProperty
match c with
... | stackexchange/codereview |
I am completely blanking-out.
I want a content type to have the path field, so I can alias its path from node/n to /foo.
I can't seem to remember how to do this. When I go into Content>Content Types>Edit My_Content_Type, the path field is greyed out and doesn't display when I view an instance of the content type.
I ma... | stackexchange/codereview |
I have an UIImageView and a few buttons defined in interface builder. I want to display an image with the buttons on top of it. I add an image to the UIImageView programatically but it covers up the buttons. I tried using sendSubviewToBack and the image disappeared completely. Here's my code
UIImageView *imageView = [[... | stackexchange/codereview |
I have the following DataAll.plist:
<array>
<dict>
<key>ID</key>
<integer>1</integer>
<key>Name</key>
<string>Inigo Montoya</string>
</dict>
....
</array>
I want to get the ID value from it. My code gets the Name correctly, but the ID is a weird value. Here's what I'm doing:... | stackexchange/codereview |
I am trying to create a dynamic image that will be created from PHP using GD... What I need to do is be able to specify the layering of one image over another. The images are supposed to overlap slightly and get smaller as you move towards the right of the image... however the only way I can get php to render the image... | stackexchange/codereview |
I was looking to upload an image (jpg) to a SQL Server database using MVC.
Basically - my user would be able to navigate to a page, Browse their computer using a file upload textbox/browse button, and click submit to have the file uploaded to the database.
Fairly new to MVC and not quite sure how to go about this.
The... | stackexchange/codereview |
I have a node.js module like this:
# couchdb.js
var couchdb = {
// code
}
module.exports = couchdb;
How do I do to be able to use require("couchdb") in all my files?
| stackexchange/codereview |
I'm really frustrated with this one. I'm trying to extend a C# created interface in C++/CLR. The interface has one method and I've declared it in my class, but the compiler keeps telling me that I must still provide an implementation for the interface method. What more can I do? What am I missing!?
Does anyone have... | stackexchange/codereview |
Is it okay to put some custom validation methods in AppModel and call those from my app's Models? I want phone number validation to work the same for all phone numbers on my site and I want that validation rule to be in one place only. Is there a better way to do this?
| stackexchange/codereview |
Possible Duplicate:
Comparing two collections for equality
I need to verify if two IEnumerable<T> lists have the same elements, not necessarily in the same order.
I'm targetting .NET 3.5.
Here are the tests. The question is, how should HasSameElements() be implemented?
var l1 = new[]{1,2,3};
var l2 = new[]{3,1,2};
... | stackexchange/codereview |
I have used cfhttp to read a .cfm file, but I want to store the data in one variable or array and pass this variable to a cfchart to display it in chart format. How can I do this?
| stackexchange/codereview |
We are using suser_sname() and SYSTEM_USER to return the user name (via trust connection). Within the past month, someone's login name was changed in Active Directory. However these 2 functions are still returning the old login name.
The individual has rebooted their PC several times since the change. I'm not sure if ... | stackexchange/codereview |
I want to use image in a group definded in defs tag. But on Chrome nothing works. In Firefox only the .png file is displayd. Only Rectangle apears but with strange bug in Chrome. Is this is supported by SVG or im not using it right.
plane.svg
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG ... | stackexchange/codereview |
My app needs to write (and move) files to a folder from a non-admin user, and that user has no permission to use that folder.
I tried changing the permissions for the folder but it doesn't appear to have an effect.
Are there built-in restrictions from allowing me to do that?
What I do is write to Documents and then att... | stackexchange/codereview |
Iam developing a VOIP platform which would allow users to make 100s of calls concurrently using my service.
Asterisk stores all call detail records in the CDR table. I would like to know where is best place to keep this table for the best possible architecture of my system.
Should I keep it on the Asterisk Box and run ... | stackexchange/codereview |
I updated to Rails 2.3.10, Rack 1.2.1 and now none of my flash messages are showing up. I found that during a redirect the notice is passed in like this
redirect_to(@user, :notice => "Sorry there was an error")
And in my view the flash hash is empty
<%= debug flash %>
!map:ActionController::Flash::FlashHash {}
Bu... | stackexchange/codereview |
I have an empty div at the beginning:
<div id="mydiv"></div>
I know how to add for the first time html into my empty div using jQuery:
$('#mydiv').html('my html!');
But my problem is that I don't know how to push more html at the end of my non-empty div:
<div id="mydiv">my html!**how to add more html here**</div>
| stackexchange/codereview |
Basically I want a custom UINavigationBar. I don't want it to be "translucent" or anything, like the pictures app.
I basically want to completely remove it, but I still want to be able to add back buttons and such when navigation controllers are pushed, and I want the views (EG: UITableViewController) to be pushed down... | stackexchange/codereview |
I have implemented a UITableView with search bar (and search display) - all works fine, but the table results do not get updated until the search bar cancel button is tapped.
Delegate methods:
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
// asynchronous request with [self.tableView reloadData] i... | stackexchange/codereview |
I am making a little library(DLL) to manage users and their roles/privileges. The plan is to be able to add this dll to an MVC project and be able to manipulate users/roles/etc. All the data resides in a SQL db.
I am using entity framework for data access.
So when I initialize a new RoleManager(this is the name of th... | stackexchange/codereview |
I am implementing C2DM for push notification in an android application, it need at least
one log in Google account. I create a Google g mail account and login on device, but I am
not able to sync it.
Please help me.
Thanks in advance.
| stackexchange/codereview |
I have a .NET 4.0 WPF application where the user can change the language (culture)
I simply let the user select a language, create a corresponding CultureInfo and set:
Thread.CurrentThread.CurrentCulture = cultureInfo;
Thread.CurrentThread.CurrentUICulture = cultureInfo;
In the C# code this works fine. However in the... | stackexchange/codereview |
I search a about one week with this problem and i realy dont no how to solve. The dialog is modal and only is block some part of my page, and i want the dialog modal over all page.
The problem is when i click over the
<input type="button" id="AddEpisodes" value="+"> button
I have the one div my page like this:
<scrip... | stackexchange/codereview |
I am using .Net. I want to match last name which has charecters other than a-z, A-Z, space and single quote and len of charecters should not be between 1-40 . The string that has to be matched is a XML look like this <FirstName>SomeName</FirstName><LastName>SomeLastName</LastName><Address1>Addre1</Address1>
I wrote re... | stackexchange/codereview |
I have having trouble figure out how to write this code.
I have a list of items, the items all have an ID. There is also another value that we will call otherID. If otherID is zero or null, we will ignore it. However, if otherID contains the ID of another item in the list, I want to remove that item from the list.
Exam... | stackexchange/codereview |
In an interview question, I saw this. How inverse the content of this list without loose the references.
List<string> list = new List<string>() {"AA", "BB", "CC" };
Update:
The question is more like this, you have:
public void ReversedList<T>(IList<T> listToReverse)
{
// To be implemented
}
sample the list has 1,2... | stackexchange/codereview |
Hi all I'm making a system which is essentially a scheduled task system. I have included functionality to email the administrators whenever there's an error, but there needs to be some functionality to not overload the admins emailbox if there is a catastrophic global failure and every job fails.
So far I've allowed th... | stackexchange/codereview |
Now that CSS3 includes styles to add rounded corners to images automatically, does this mean that adding rounded corners to images without CSS should be discarded?
I would assume that shaving off some of the image would load the page faster then shaving off some of the CSS, but at the same time, that would all depend o... | stackexchange/codereview |
Is there a way to tell Microsoft Windows to AutoPlay an Adobe AIR application?
I have an AIR application on the users sd card, and I would like it to run whenever the user inserts the card into his computer.
| stackexchange/codereview |
I have an imageswitcher as the only component on the screen. I want to capture the swipe gesture and click event separately for it. But it is not able to get the events separately. If I set the onclicklistener method for imageswitcher object then it always fires onclick method even if I have swiped.
Can someone let me ... | stackexchange/codereview |
I have implemented location identification using GPS in android in my application but now if GPS is not available or disabed then how to identify location when internet is enabled in device. Whether using google API or triangulation or some thing else. Thank You.
| stackexchange/codereview |
I have the need to be able to accurately find the months between two dates in python. I have a solution that works but its not very good (as in elegant) or fast.
dateRange = [datetime.strptime(dateRanges[0], "%Y-%m-%d"), datetime.strptime(dateRanges[1], "%Y-%m-%d")]
months = []
tmpTime = dateRange[0]
oneWeek = timed... | stackexchange/codereview |
Simple function: Check if a webserver returns a non-200 HTTP status.
Private Function RemoteFileOk(ByVal Url As String) As Boolean
Dim req As HttpWebRequest = TryCast(WebRequest.Create(Url), HttpWebRequest)
req.Method = "HEAD"
Dim rsp As HttpWebResponse = TryCast(req.GetResponse(), HttpWebResponse)
Return (rsp... | stackexchange/codereview |
I have a rewrite rule in my htacces that rewrites POST http authorization requests and converts it in to a get request. But this happens to every http auth request.
I actually only need it to rewrite if it is going to the www.mysite.com/googlecheckout/api url:
This is what I currently have:
RewriteCond %{HTTP:Authoriza... | stackexchange/codereview |
I have 2 uiimageviews foo1,foo2 which are not intersecting each other, and I have 3 functions touchesBegan, touchesMoved, touchesEnded
- (void) touchesMoved:(NSSet *) touches withEvent:(UIEvent *) event
{
UITouch *touch = [touches anyObject];
if (foo1 == [touch view]){
NSLog(@"foo1");
}
... | stackexchange/codereview |
Here's my code:
function hideColumnAndShowOther(columnToHide, columnToShow) {
$(columnToHide).fadeTo("slow", 0.0, function() {
$(columnToShow).fadeIn("slow");
});
}
In this case the callback function isn't called. I have used the firebug tool to get the root of the problem... | stackexchange/codereview |
Is there a good way to detect that particular disk went offline on server on Linux, via Java?
I have an application, that due to performance reasons, writes to all disks directly (without any RAID in middle).
I need to detect if Linux would unmount any disk due to disk crash during run-time, so I would stop using it. T... | stackexchange/codereview |
I'm computing data from database (~130 000 000 rows).
Because of big amount of rows I select 1 mln compute them save results then select another 1 mln and so on.
I use select .. orderby .. skip m... take n...ToList()
because I want to have this objects in memory.
When I skip 1 mln then 2 mln then 3 mln ... then lets sa... | stackexchange/codereview |
Not sure how to accomplish this in Django.
Models:
class LadderPlayer(models.Model):
player = models.ForeignKey(User, unique=True)
position = models.IntegerField(unique=True)
class Match(models.Model):
date = models.DateTimeField()
challenger = models.ForeignKey(LadderPlayer)
challengee = models.ForeignKey... | stackexchange/codereview |
I am using Delphi 2010 to create a Windows service that will monitor several registry keys, and perform an action when a change occurs. I am using RegMonitorThread from delphi.about.com, and my issue is that my main service thread never receives the message that is sent from the TRegMonitorThread.
type
TMyService = c... | stackexchange/codereview |
I have a flex compiled swf module inside my flex program
I just need to pass it some values like I do it when I use
chat.swf?username=john : that works !
I tried it with flex swfLoader and Image
SWFLoader source="../bin-debug/chat.swf?username=john"
Image source="../bin-debug/chat.swf?username=john"
This does not work:... | stackexchange/codereview |
In the middle of an XML document I'm transforming, there is a CDATA node which I know itself is composed of XML. I would like to have that "recursively parsed" as XML so that I can transform it too. Upon searching, I think my question is very similar to Handling node containing inner escaped XML.
That was a year ago:... | stackexchange/codereview |
How to handle database connection with multithreaded application. I have developed one application that created more thread. But when i run application it run correctly but after some time application is going to hang....?? what i have to do ..? How to handle Database connection with multithreaded application .?
| stackexchange/codereview |
I'm having a really strange issue with .htaccess - I'm trying to rewrite the domain so it always prepends www to the domain when loaded - this works for about five minutes and then just turns the page blank!?
.htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.thedomain.co.uk$ [NC]
cRewriteRule ^(... | stackexchange/codereview |
I downloaded the Facebook IOS SDK from http://github.com/facebook/facebook-ios-sdk, and tried to run the sample/DemoApp. All functions seemed to run fine, except that I couldn't publish a stream. The FB dialog (FB box with blue border) just showed that my FB app has a problem.
In the XCode proj, I only filled-in my F... | stackexchange/codereview |
All, I would like to create a gridview list with the same behavior as SharePoint's lists. I want to be able to group items togather and have groups collapesd.
I want to use keep it simple.
I wouldnt mind using the Accordion that comes with jQuery: http://docs.jquery.com/UI/Accordion
Bill.
| stackexchange/codereview |
Having way too much trouble making this CMD line curl statement work in python script...help! Attempting to use Urllib.
curl -X POST "http://api.postmarkapp.com/email" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Postmark-Server-Token: abcdef-1234-46cc-b2ab-38e3a208ab2b" \
-v \
-d "{Fr... | stackexchange/codereview |
Does anyone know how to convert "Date().getTime()" to UTC?
Obviously the getTime() is the users local time so I need a function to get the users timezone, convert the timestamp to UTC so I can then * it by -8 to get the current PST time.
| stackexchange/codereview |
If I have a that thread:
Thread sendMessage = new Thread(new ThreadStart(timer.Start()));
will, the Tick event of the timer will be on the main thread or on the sendMessage thread?
Edit:
I have a queue and i want that every x milisecond the timer will tick and the program will dequeue arrays from the queue, but this i... | stackexchange/codereview |
<html>
<link rel="stylesheet" type="text/css" media="screen" href="blogstyle.css">
<title>Welcome to my blog</title>
<body>
<frameset cols="10%,60%,30%" border="0" framespacing="5" frameborder="0">
<frame src="leftpane.htm" name="left_frame" scrolling="no" />
<frame src="middlepane.htm" name=... | stackexchange/codereview |
I am trying to get this hello world android application working.
I go through this installation process and read about how easy this thing is to get up and running with a "Hello World" application. I run the simple hello world application (following every step exactly as it says) and POOF... nothing. I get an error jav... | stackexchange/codereview |
this is a really basic question (I hope). Most of the exception handling I have done has been with c#. In c# any code that errors out in a try catch block is dealt with by the catch code. For example
try
{
int divByZero=45/0;
}
catch(Exception ex)
{
errorCode.text=ex.message();
}
The error would be displayed in... | stackexchange/codereview |
When using the proxyHost, proxyPort and nonProxyHosts properties in Java to modify a URL connection, what are the valid uses of wildcards in the nonProxyHosts property? Could I do any or all of the following?
explicit server name: nonProxyHosts=server.company.com
any server in subdomain: nonProxyHosts=*.local.company... | stackexchange/codereview |
I have an external library which has a method which performs a long running task on a background thread. When it's done it fires off a Completed event on the thread that kicked off the method (typically the UI thread). It looks like this:
public class Foo
{
public delegate void CompletedEventHandler(object sender,... | stackexchange/codereview |
how can i change the default arrow pointer style to hand when client move the pointer to a particular division?
| stackexchange/codereview |
In the directory "data" are these files:
command-1.9a-setup
command-2.0a-setup
command-2.0c-setup
command-2.0-setup
I would like to sort the files to get this result:
command-1.9a-setup
command-2.0-setup
command-2.0a-setup
command-2.0c-setup
I tried this
find /data/ -name 'command-*-setup' | sort --ve... | stackexchange/codereview |
As resharper 5 now has DIY patterns, what patterns have you writen that fix coding idioms that you've seen? Is there an online resharper pattern repository? I thought here would be a logical place to vote for your favorite patterns.
I think of this as programming in the small.
| stackexchange/codereview |
I am attempting to run a FullTextSqlQuery. But I keep getting the error "Your Query is malformed". Any ideas on what is causing it to break?
FullTextSqlQuery sqlQuery = new FullTextSqlQuery(currentSite);
sqlQuery.ResultTypes = ResultType.RelevantResults;
sqlQuery.TrimDuplicates =... | stackexchange/codereview |
Regarding this security issue: http://techcrunch.com/2010/10/24/firesheep-in-wolves-clothing-app-lets-you-hack-into-twitter-facebook-accounts-easily/
Is it true to say "any time a user logs into a site, and isn't redirected to SSL/TLS/HTTPS connection, that the session cookies are vulnerable"?
What is the best solution... | stackexchange/codereview |
I have another question which i think is most easily solved by using javascript to find out if flash exist or not and dynamically modify the page. In my case place a placeholder, call jcupload code if flash exist or replace the placeholding div with my html
But the problem is i havent been able to find any javascript f... | stackexchange/codereview |
My question will probably be best explained by an example.
For example, I have 2 classes: A base class and a derived class:
class baseClass
{
public:
baseClass()
{
foo();
}
virtual bool foo() { printf("baseClass"); return false;}
};
class derivedClass : public baseClass
{
public:
bool foo(... | stackexchange/codereview |
is it possible to run FileZilla client via command line and be able to set server name, user, password, FTP protocol (e.g. FTPES, SFTP), port number? i looked online and can't seem to be able to find any such command. also, i am using windows 7, i am not sure if that somehow has a smaller set of commands. thanks.
| stackexchange/codereview |
i need to know what control in asp .net 2.0 to use to get this layout:
i need to display 8 videos at a time using 2 rows with 4 columns, but the control should also have paging (to display 8 items per page).
i've thought of using a formview but the paging for formview is per one article content / datarow only.
i'm also... | stackexchange/codereview |
I want to declare my DTD to force the XML node should have a value.
For example I have the following XML structure.
<Employees>
<EmployeeID></EmployeeID>
<EmployeeName></EmployeeName>
<EmployeeAddress></EmployeeAddress>
</Employees>
I want the EmployeeID node value must exist for all the XMLs. So I want to cr... | stackexchange/codereview |
I want to modified the Internet Explorer CLSID element in the registry: (HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046} )
It is possible to copy this entry and replace the GUID and create a new alias?
Where can I defined a new alias?
(Later I want to open this Com Object in PowerShell)
| stackexchange/codereview |
I have a column which has decimal value of 18,8. I was asked to extend it to 18,18 to hold more places after ,.
ALTER TABLE [dbo].[TransakcjeGotowkowe]
ALTER COLUMN TransakcjeGotowkoweKwota decimal (18,18) NULL
Msg 8115, Level 16, State 8, Line 1
Arithmetic overflow error converting numeric to data type numeric.
The ... | stackexchange/codereview |
SQL Server 2008, Visual Studio 08 and C#
The task is to create the same database on multiple servers. If it were only two or three tables I would have done it manually but there are more than 50 tables in the database..
So I thought why not create a backup and restore the backup file wherever needed
error
the file is i... | stackexchange/codereview |
I have the following
<div id="big" style="width:100%">
<div id="slider">
<div class="item" id="item1"><img src="some50x50.jpg" /></div>
<div class="item" id="item2"><img src="some50x50.jpg" /></div>
<div class="item" id="item3"><img src="some50x50.jpg" /></div>
<div class="item" id="item4"><img src="some50x50.... | stackexchange/codereview |
I find myself doing the following a lot:
C:\Code>hg pull
pulling from http://server/FogBugz/kiln/Repo/Project/Rebuild/trunk
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 4 changes to 4 files (+1 heads)
(run 'hg heads' to see heads, 'hg merge' to merge)
C:\Code>hg ... | stackexchange/codereview |
I am very new playing with syslog.
We have decided to use syslog to track some special events in our Rails application.
The problem is that I don't want to use the default /var/log/system.log file but use a custom one like /var/log/myapp_events.log.
I see that for that I have to define my own facility in /etc/syslog.co... | stackexchange/codereview |
I have a ArrayObject structure that is quite complex to output, it can/and consists of multiple levels of relationship e.g. Parent -> Child -> Children -> Child etc.
Structures like this are quite complex to work with when using a foreach, for or while loop. I've looked into SPL Iterators and I think this can be used. ... | stackexchange/codereview |
I have an .aspx page. I populate a public variable in the code behind (.cs) page and then access that variable in JS on client side. I have the script declared after the FORM tag as below :-
<body>
<form>
...
</form>
<script language="javascript" type="text/javascript">
debugger;
var data = "<%=cS... | stackexchange/codereview |
I am to access a method on my master page. I have an error label which I want to update based on error messages I get from my site.
public string ErrorText
{
get { return this.infoLabel.Text; }
set { this.infoLabel.Text = value; }
}
How can I access this from my user control or classes that I set up?
| stackexchange/codereview |
I'm coming from a javascript backend to Python and I'm running into a basic but confusing problem
I have a string that can contain a value of either 'left', 'center', or 'right'. I'm trying to test if the variable contains either 'left' or 'right'.
In js its easy:
if( str === 'left' || str === 'right' ){}
However, in ... | stackexchange/codereview |
i seem like this :
class myData(db.Model):
today= db.DateTimeProperty()
how to set 'today' to now time for Per hour ,not using open the webpage ?
thanks
| stackexchange/codereview |
I want to create a calendar object that is the epoch date. What's the 'correct' (if any) way to do it?
Date epochDate = new java.text.SimpleDateFormat ("dd/MM/yyyy HH:mm:ss z").parse("01/01/1970 01:00:00 GMT");
Calendar epochCal;
epochCal.setTime(epochDate);
// or maybe
Calendar epochCal;
epochCal.setTimeInMillis(1)... | stackexchange/codereview |
This might be the simplest question of the day.
I'm looking for the best answer based on all knowledged across community, not a basic tab effect but one that could be scalable, easy to implement and compliant with standards.
What could be a good and simple (compatible) way to accomplish having different sections with J... | stackexchange/codereview |
I have been used to following code pattern while writing my test
public void TestMethod_Condition_Output()
{
//Arrange----------------
Mock<x> temp = new Mock<x>();
temp.setup.......
//Act--------------------
classinstance.TestMethod()
//Assert------------------
temp.VerifyAll();
Assert.... | stackexchange/codereview |
When I'm importing data from SQL Server 2008 DB to another using SSMS 2008, I get errors during the importation because it tries to insert data in a "read only" fields, or cuz some conflicts of relationships between tables' keys.
I'm wondering, how could I close the eyes of the SSMS until he finish the transformation :... | stackexchange/codereview |
In SQL Server, I'm trying to do a comparative analysis between two different table structures with regard to insert performance given different keys. Does it matter if I use a table variable to do this testing, or should I use a temporary table? Or do I need to go to the trouble of actually creating the tables and in... | stackexchange/codereview |
I am using this code to delay the entrance of an element to the viewable area of the screen, but the first animate is wholly unecessary, other than to start a queue that delay can then delay.
$("#top-message").animate({top: '-500px'},400).delay(1000).animate({top: '0px'},800).delay(3000).animate({top: '-500px'},800);
... | stackexchange/codereview |
I implemented the T4 Repository/ Unit of Work templates by Gil Fink for use in a project I am working on, my first full scale project using MVC. I am, however, getting an error I wasn't getting before, and I can't track it down. I don't know if it's something with the templates, or just a setting somewhere I have set... | stackexchange/codereview |
In my MS Access application I have several forms that are very data intensive (several subforms based on even more tables). My users are complaining that when opening the data across the network the load times are unbearably long.
I have do have a slit front end / back end setup using the excellent autofe application.
... | stackexchange/codereview |
I try create animation in my application written on cocos2d. I make it on this tutorial
http://getsetgames.com/tag/ccanimation/
All work fine. But I write all code in my Engine class. Also I have class for object which I would like animate. And I have special class for create object. Now
I try next
File which must hav... | stackexchange/codereview |
I have a small script that searches through all files in a directory using something like this;
Get-ChildItem $location -recurse | select-string -pattern $pattern | select-object Path, FileName, LineNumber > C:\test.txt
The problem I have is that the Path gets enshortened, like this;
C:\program files\new folder\new f... | stackexchange/codereview |
I've got a class which overrides equals() and I want to see where this equals method is being used in the workspace. Using Eclipse, I generally do Ctrl-Shift-g which finds all references in the workspace. Unfortunately, for equals(), its pulling back every single reference of equals in my workspace from any type, not... | stackexchange/codereview |
Currently my ListView is filling up with the given String[] but I wanted to alternate some styles on the ListView items.
Something weird is happening (I'm surely missing something obvious); The ListView Index is not fixed and the styles are not alternating as supposed.
My Code is the following:
package com.blah.blah;
... | stackexchange/codereview |
Is there ever a performance benefit to stored procedure that can't be achieved without them?
| stackexchange/codereview |
How do you use hist() to plot relative frequencies in R?
If I do the following, I will get a density plot, but I want a relative frequency plot:
a <- c(0,0,0,1,1,2)
hist(a, freq=FALSE)
I want to see a histogram with the following relative frequencies:
.5 for 0 to 1,
.33 for 1 to 2,
and .166 for 2 to 3.
| stackexchange/codereview |
I have created a startcam from my app.. and this is how the cam activity looks like.. I don't know how to klick to take a picture, where is the button?
What I want to do is also that when he has taken the picture and he is statiesfied, he click on a "finished button" so the picture will be shown on my app.
| stackexchange/codereview |
I have a MySQL select statement dilemma that has thrown me off course a little. In a certain column I have a category term. This term could look something like 'category' or it could contain multiple CSV's, like this: 'category, bank special'.
I need to retrieve all rows containing the term 'bank special' in the comma ... | stackexchange/codereview |
I'm looking into JTA as I need distributed transactions (across JPA, JMS and EHCache).
I'm trying to understand whether JTA can supply an additional functionality which I'm considering.
If I have 3 different servers, each running Glassfish and each server has a different EAR (a different module of mine).
Can I have a ... | stackexchange/codereview |
I'm working with the google safebrowsing api, and the following code:
def getlist(self, type):
dlurl = "safebrowsing.clients.google.com/safebrowsing/downloads?client=api&apikey=" + api_key + "&appver=1.0&pver=2.2"
phish = "googpub-phish-shavar"
mal = "goog-malware-shavar"
self.type = type
if self.ty... | stackexchange/codereview |
I have a ColdFusion CFC function like this:
<cffunction access="remote" name="getResults"
returntype="struct"
returnformat="JSON"
output="no">
<cfargument name="q" required="true" type="array" />
...
</cffunction>
How do I call this function from jQuery? Neither form of array encoding by jQuery will... | stackexchange/codereview |
Do the statistics (which help decide whether an index is to be used) take into account the number of rows per actual column value, or does it just use the average number of rows per value.
Suppose I have a table with an bit column called active which has a million of rows, but with 99.99% set to false. If I have an ind... | stackexchange/codereview |
It looks like -- in Scala 2.8.0 -- if you map() a Map instance to a sequence of 2-tuples that you end up getting a Map back. When this happens, any of the 2-tuples with the same first element are considered duplicates, and you only end up getting the last one. This is different from what happened in 2.7.7. This is e... | stackexchange/codereview |
While doing some reading, I came across the terms "Intermediate Language" and "3AC".
IL, as I understand, is the middle "step" in the source code compilation process. More specifically, I'm reading about bytecode (Java) and C.
The way I interpret it (correct me if am wrong) is;
Source Code 1 (ex. Lisp) ->
Intermedi... | stackexchange/codereview |
How can I exclude libraries which I have compiled only for the iOS device architecture (libssh2, etc.) from an Xcode project when I am compiling the app to run on the simulator?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.