instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a object, namely "server" which loses it existence when the control of program is out of scope. So in general for any such objects, and memory of objects, when a function is called from within a scope, is the object lost? like void main void { if this and that { //scope do this call_f...
stackexchange/codereview
So this is a follow up to this post. I need to replace some dropdown menus with radio buttons without modifying the HTML. In the post I linked earlier, someone came up with a really clever Jquery solution that successfully replaces the dropdown menu with radio buttons and updates the dropdown selection when one of the ...
stackexchange/codereview
My apologies if this is just another question that gets asked over and over. I've found some similar questions, the examples just haven't gotten me exactly where I need to be. This is similar to jQuery Closures, Loops and Events. $('a.highslide').each(function() { hsGroup = $(this).attr("rel"); if(hsGroup.lengt...
stackexchange/codereview
Is it possible to detect the last character of string in ruby on rails and replace it by "". Explanation :: Suppose I have string as "demo-" then i have to check its last character, If it is "-" then replace it by "", otherwise no action should be taken. Example - Code :: search_text.downcase! if !search_text.nil? now...
stackexchange/codereview
I am in the process of creating a consumer facing location based mobile app that will heavily need GIS support. I have narrowed down the databases to Postgres (PostGIS) and mongodb. I was wondering how someone who has experience with both would rate the geospatial support particularly in the area of: Performance Query...
stackexchange/codereview
I have a set of data that I'd like to present via a WPF ListView in this way: Column1 Column2 Column3 --GroupName1-- Item1 part2 part3 Item2 part2 part3 --GroupName2-- Item3 part2 part3 Item4 long_text_in_both_columns Item5 part2 part3 --GroupName1-- Item6 part2 part3 It...
stackexchange/codereview
For my work, I sometimes have to deal with logfiles from a binary protocol (the logfiles contain hexdumps of the messages). I want to write a Perl script that can interpret the binary data for me and print the contents in a more friendly format. I have a (machine readable) description of the protocol messages in a prop...
stackexchange/codereview
I have a particle system with X particles. Each particle tests for collision with other particles. This gives X*X = X^2 collision tests per frame. For 60f/s, this corresponds to 60*X^2 collision detection per second. What is the best technological approach for these intensive calculations? Should I use F#, C, C++ or C#...
stackexchange/codereview
As far as I know it is required to run CPAN with sudo on Mac sudo perl -MCPAN -e shell to install new modules. Theoretically, a module can be removed by deleting it from the Perl folders. My question is: Where are Perl modules put when installed from CPAN with 'sudo' and without 'sudo'? I installed BioPerl both ways a...
stackexchange/codereview
This is about embedded python using swig. I have an std::map<enum, std::string> exposed to python (embedded python). When the script is executed, swig spits out the below "warning" at the end (when the map goes out of scope - I guess): swig/python detected a memory leak of type 'std::map< MyEnum, std::string> ... no...
stackexchange/codereview
I have an button ("export") to export data from grid to excel. But it's inside an update panel. So I'm registering postback trigger. What should I assign to PostBackTrigger.ControlId ??? Thanks!
stackexchange/codereview
I am having a listbox with large contents. I have used a div outside the listbox (no fixed height and width set)with a fixed width and height sothat the div is having both horizontal and vertical scroll. The list box within the div does not have any scroll. The div will not scroll down when i use key down for the listb...
stackexchange/codereview
How can I display the users friends correctly on the users and friends side using my MySQL tables? My current code screws this up. Users Friends Table CREATE TABLE users_friends ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id INT UNSIGNED UNSIGNED NOT NULL, friend_id INT UNSIGNED NOT NULL, friendship_status TINYINT(...
stackexchange/codereview
My requirement is to update an XML file (some elements identified via a parameter, with new attribute values again identified via a paramenter). I am using XSLT to do the same via C# code. My code is as below: XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load(f_Xslt); XmlReader xr = XmlReader.Create(...
stackexchange/codereview
I need to hash some strings so I can pass them into some libraries, this is straight forward using the String.hashCode call. However once everything is processed I'd like to convert the integer generated from the hashCode back into the String value. I could obviously track the string and hashcode values somewhere else...
stackexchange/codereview
I tried this code: public class OwnFlowPanel extends FlowPanel implements HasClickHandlers{ public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } } and then I used this in another class: OwnFlowPanel panel = new OwnFlowPanel(); panel.addClickHand...
stackexchange/codereview
If I have this structure: namespace A { template <Class T> struct Point { Point<T>(T x_, T y_) : x(x_), y(y_) {} Point<T>() : x(0), y(0) {} T x; T y; } } How might I define an object from the Point struct? I tried: A::Point point; but it does not work.
stackexchange/codereview
How can I do a git svn reset to HEAD revision without specifying the revision number?
stackexchange/codereview
I'm using grep to match string in a file. Here is an example file: example one, example two null, example three, example four null, grep -i null myfile.txt returns example two null, example four null, How can I return matched lines together with their line numbers like this: example two null, - Line number : 2 e...
stackexchange/codereview
How to make Http Post Request using JSON. I tried every option which is available on Internet.But could not get the Data. So please post entire code to make a request.
stackexchange/codereview
What would be the easiest way to get all articles about people from Wikipedia? I know I can download a dump of all the pages, but then how do I filter those and get only the ones about people? I need as many as I can get (preferably more than a million) so using any sort of API is probably not an option.
stackexchange/codereview
I need a SQL Server Query for the following scenario: The Tables: CREATE TABLE [dbo].[JobStatus] ( [OID] [int] IDENTITY(1, 1) NOT NULL, [Name] [varchar](100) NOT NULL, [Code] [varchar](5) NOT NULL, [PictureID] [int] NOT NULL, [LastModifiedAt] [timestamp] NOT NULL, CONSTRAINT [PK_Job...
stackexchange/codereview
I am having a English learning DVD, i copy complete dvd into my hard disk then install that english learning software from hard disk, after i install i try to run the installed software it said your dvd is not into Dvd rom please insert dvd and they start play it.
stackexchange/codereview
I needed to pass a IGrouping on an anonymously typed index to a function. List<DataClass> sampleList = new List<DataClass>(); var groups = sampleList.GroupBy(item => new { item.A, item.B, item.C }); I needed to process each of the groups with a function. So I wrote this which works. static void ProcessGroup<T>(IGr...
stackexchange/codereview
I am curently busy with bulding a synthax document in SPSS and have a column of variable strings that consists of approximately 40 lines (it will be much much more in coming week). SPSS has a nice way of creating it (can be seen here :) http://vault.hanover.edu/~altermattw/methods/stats/reliable/reliability-1.html) bu...
stackexchange/codereview
I wanna use a CheckBox but I want it to have the RadioButton chrome. What's the easiest way to do this?
stackexchange/codereview
i am trying to write a java pmd rule to check source code comments. The rule should be able to identify all the method and variable declarations. If any method/variable declares without comment, the rule should give a warning as method/variable created without comments. any idea will be appreciated.......!
stackexchange/codereview
Let's say I have documents with two fields, A and B. I'd like to use SOLR's MoreLikeThis, but with a twist: I'm most interested in boosting documents whose A field is like my model document's B field. (That is, extract MLT's 'interesting terms' from the model B field, but only collect MLT results based on the A field.)...
stackexchange/codereview
I am facing some problem with html drop down. I want to keep the size of the drop down fixed, but when the user click on the drop down, the list should displayed in bigger size so that the entries are not truncated.This is the default behaviour in fiefox, this issue appears only in IE. Can any one suggest some work aro...
stackexchange/codereview
I am developing a Windows desktop application which requires the SQL Server 2005 Compact Edition (SQLServerCE31-EN.msi) to be installed. I am using InstallShield 2011 to install this as a pre-requisite during the installation process. In order to come up with the pre-requisite definition I used Process Monitor to see t...
stackexchange/codereview
I know that question has been asked many times (for example : How to resize TTTableSubtitleItemCell), but I never found a simple answer to it : is there simple way to set the row height of a TTTableView ? I really need to do this and I can't find any way to achieve it. Thanks in advance
stackexchange/codereview
I have one ASP.NET application which includes one gridview. This gridview contains 4 template columns of checkboxes and 2 template columns of link buttons. If I click on the first checkbox, then both of the link buttons should be enabled, otherwise they should be in disabled mode. This functionality is working fine. Bu...
stackexchange/codereview
In the process of translating an application with C# + Winforms, I need to change a button's text depending on the language. My problem is the following : Let's say I want to translate a button from "Hi all!" to "Bonjour tout le monde" ! As you can guess, the button's size won't be the same if I enter english text or f...
stackexchange/codereview
Possible Duplicate: C# 'var' vs specific type performance Hi all, I recently saw code that uses var a lot. E.g.: var myString = GetAnyString(); var myInstance = GetClass(); instead of string myString = GetAnyString(); MyClass myInstance = GetClass(); Besides the readability (I think that using var is not very read...
stackexchange/codereview
I have the Apress "Learn Cocoa" book (published in 2010 BTW) and I am getting a deprecation error on one of the lines. The code is: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { self.villain = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"Lex Luthor", kName, @"Smallville", kLastKn...
stackexchange/codereview
I want to parse a log file (log.txt) which contains rows similar to these: 2010-10-19 07:56:14 URL:http://www.website.com/page.php?ID=26 [13676] -> "www.website.com/page.php?ID=26" [1] 2010-10-19 07:56:14 URL:http://www.website.com/page.php?ID=44 [14152] -> "www.website.com/page.php?ID=44" [1] 2010-10-19 07:56:14 URL:h...
stackexchange/codereview
I have a Employee add page which has lot of information to be filled. So, user requested 'copy info' functionality from other Employee..On top of the add page i have 'copy info' button which in turn redirects to another page which lists all employees. from that user select one of the employee and whose informations are...
stackexchange/codereview
I was getting bored so I started looking a little into Cryptography. I got interested in this Fair-Coin Flipping protocol. This protocol works with public key cryptography but requires that the algorithm commute (something like RSA I guess). I thought it would be fun to write this in either C or C++ and was wondering h...
stackexchange/codereview
So I'm writing a basic feed aggregator/popurls clone site in Django and having trouble getting the feeds to update. For each feed source, I have a separate app to parse and return the requested info, for the sake of simplicity let's say it's just getting the feed title. eg: #feed source xyz views.py from django.http im...
stackexchange/codereview
I'm trying to create a custom report in the Magento back-end; my strategy is to first make my new module mimic the existing Reports/Sales/Orders functionality in the admin panel, and then make the required changes once I've seen how the pieces fit together. I've added my new menu item, and the module loads the basic ad...
stackexchange/codereview
trying to grasp the TPL. Just for fun I tried to create some Tasks with a random sleep to see how it was processed. I was targeting a fire and forget pattern.. static void Main(string[] args) { Console.WriteLine("Demonstrating a successful transaction"); Random d = new Random(); for (int i...
stackexchange/codereview
I'm pretty new in developing programs in Java. I'm currently writing a program that converts a flv video into mp3. I have already written such a program in Visual Studio.net C#, but the Problem is, that it isn't cross platform compatible... I used the ffmpeg binary to convert the video into mp3, but I can't find ffmpe...
stackexchange/codereview
I know that most screens are RGB, but is there a way in Java to detect if a display is physically using RGB or BGR order? (note that I'm definitely not talking about the way images are stored in software nor in the video card's memory but about the physical property of the display(s) the Java app is running on)
stackexchange/codereview
I am writing a C program to search a large number of UTF-8 strings in a database. Some of these strings contain English characters with didactics, such as accents, etc. The search string is entered by the user, so it will most likely not contain such characters. Is there a way (function, library, etc) which can remo...
stackexchange/codereview
I am removing a Child from its association(many to one) to Parent.When i use saveOrUpdate method on Parent, Hibernate by default tries to remove Child from the Table.Is it a bug with hibernate?? How can I avoid this condition???
stackexchange/codereview
This guide on optimizing DataBinding says: There is a significant performance impact when you data bind to a single CLR object with thousands of properties. You can minimize this impact by dividing the single object into multiple CLR objects with fewer properties. What does this mean? I am still trying to get famili...
stackexchange/codereview
How can we make from a jsp using a component-type browse, retrieve the full path to a folder on an intranet
stackexchange/codereview
I need to know about the lock concept in sqlserver why it is used ? and with any example .is there any pdf or ppt pls specify that
stackexchange/codereview
I'm trying to create an INI file for use in an unattended installation. I'm tried using various combinations of the 'createunattended' switch. setup /createunattendfile C:\temp\vs2008_install.ini and setup /createunattend C:\temp\vs2008_install.ini This launches the installer. Then, selecting a custom install, the VS i...
stackexchange/codereview
I want to create ad-hoc network using c# in my application automaticaly without force the user to make it using windows and users can connect to this network using my application
stackexchange/codereview
I realized I have this with all combo box. I want it to have a default value so I tried... TimeField field = new TimeField(); field.setFormat(DateTimeFormat.getFormat("HH:mm")); field.setRawValue("10:00"); But when I open the section, the value does not get set. It is still blank.
stackexchange/codereview
I've been looking around and haven't found an answer to the above question. Many forums say it cannot be done in most phones, but most of those entries date back to 2006-2007 or more. I'm hoping J2ME's gotten better in the past few years. :)
stackexchange/codereview
C++ is fast. Qt is fast. Python interpreter startup is relatively fast (2-3 seconds on my computer). PyQt is thin wrapper around Qt. Why then PyQt app startup (about 80 lines, even in .pyc form) is so slow (6-12 seconds)? I'm interested in reasons for this and, most importantly, ways to improve this situation.
stackexchange/codereview
I’m storing user state in an xml file in IsolatedStorage. When I run my app in the emulator I notice that these files often disappear. Everything works fine when the app is running – it seems to be when the app restarts (it happens when if keep the emulator open or not). Is Windows deleting my files in IsolatedStor...
stackexchange/codereview
I get this error on my application when i try to run in "Tomcat", in WEBrick works fine: SEVERE: Application Error org.jruby.rack.RackInitializationException: wrong # of arguments(0 for 1) from /home/gpereira/apache/apache-tomcat-6.0.18/webapps/vtsbackoffice/WEB-INF/app/controllers/application_controller.rb:5 an...
stackexchange/codereview
This question is about how to design a SQL relationship. I am pretty newbie in this matter and I'd like to know the answers of (way) more experts guys... I am currently migrating a ZopeDB (Object oriented) database to MySQL (relational) using MeGrok and SqlAlchemy (although I don't think that's really too relevant, sin...
stackexchange/codereview
i have this mysql schema: comments: ----------------------------- |id|pageid|userid| members: ----------------------------- |username|userid| sometimes the userid from comments is blank, cause anon comment. how i can get the username from members if userid from comments isn't blank. i need to get some...
stackexchange/codereview
Is that possible to establish a relationship between Tree and Branch such as: class Tree < ActiveRecord::Base has_many :branches end class Branch < ActiveRecord::Base belongs_to :tree end But with an array of foreign keys branch_ids stored in Tree? I know it's the opposite of the default process, but I want to do...
stackexchange/codereview
I m trying to generate a signature using md5 or sha1 hash on a linux system. This signature will be tested across a windows system to ensure it authenticates. What i find is both hash generated using same parameters are different. Please help how i can generate a common hash on both system for authentication.
stackexchange/codereview
I want to create a select tag using rails collection_select or options_for_select with the items of an array which are not model based. The value of the option should be the array index of each item. Example: desired output for ['first', 'second', 'third']: <select id="obj_test" name="obj[test]"> <option value="0"...
stackexchange/codereview
I have 4 DIV's with different ID's (but have same prefix (testDiv[1|2|3|4]) ) and i want to set their visblity(visible or hidden) on some event. How can i use to set the DIV visiblity property at one times something like $('testDiv*').css('visibility', 'visible'); OR $('testDiv*').css('visibility', 'hidden'); There ...
stackexchange/codereview
I need an app pool recycle to be completely transparent to the users of my web app. Currently, upon an IIS 7 App Pool recycle all users logged into my web app are kicked out and are required to log back in (Context.User.Identity.IsAuthenticated is set to false). I employ SQL State Server, I use forms authentication an...
stackexchange/codereview
I have a WPF DataGrid and i want to show a completion list below the cell currently being edited. I cannot seem to find a way to get the uncommitted value. I tryed catching all key down events but cannot find where the value is stored until it is committed.
stackexchange/codereview
I have a ListView with ContextMenu on each ListViewItem that has Click event, how can I detect in the event handler which Item was clicked in this ContextMenu? I need the item ID. <Style TargetType="{x:Type ListViewItem}"> . . . <Setter Property="Control.Template"> <Setter.Value> ...
stackexchange/codereview
It seems to me like a no-brainer, but I cannot find any information against or for it. From the point of view of demangling etc, I don't suppose this to be a big problem, but I can't figure out, how I can write a little tiny C program which calls a function from a little tiny C++ library. I am on linux right now, tryin...
stackexchange/codereview
I've got three objects (splistitemcollection) that im joining together which is working great but the problem im having is that there are a one to many relationship between the a contract object and a customers object. I need to grab just just the first customers object for each contract object during the join. Here is...
stackexchange/codereview
Bear my ignorance please! I always believed there were not so much Top Domain Name Extensions. What I knew were .com, .net,.edu, ect. And I was quit happy with all of those! (ignorance=happiness?) Until recently I found more and more companies are adopting strange domain extensions like: http://del.icoi.us, http://bu.m...
stackexchange/codereview
I have a table DEFINITIONS where I store my xml definitions form my components (form,layout,grid...) Then I have detail table PROFILES (1:M relationship) where I store my user profiles if there are any. This user profiles are only allowed if a component is of type grid. So far I've created just table DEFINITIONS and a...
stackexchange/codereview
While I love developing user interfaces in WPF and XAML, I've tried to embrace the scalability aspect by also creating my icons as vector images... but it's really hard! I very rarely get the same kind of crispness that I can with raster graphics and it almost always takes me longer to produce the icons. Am I wasting m...
stackexchange/codereview
i'm new on Android plattform. I'm trying make a View that divide the screen in three sections. The first section should be 200dip high, the third section should be 50 dip high and the middle section should take the remaining place in the middle. Is there any way to implement it? I tried some ways but either it doesn't ...
stackexchange/codereview
Can someone provide an example that make it clear?
stackexchange/codereview
In ClearCase, I would like to see a list of all the files that I am viewing on a certain branch (if I have branch Br I would like a list of all the files that I am viewing a version of them in that branch). Is that possible?
stackexchange/codereview
Is there any public info on what public IP address ranges Amazon EC2 uses? I would like to be able to lookup an IP and know whether or not it's an EC2 machine. I know that the DNS name given to EC2 machines gives a hint that it's an EC2 account, but I really prefer to just have an IP lookup available. Tx, Simon @ http:...
stackexchange/codereview
I try to use Ninject to inject a XmlReader. The problem is that it is created by a factory method insted of a constructor. And I can't add a [Inject] to code in the .NET Framework. Now I use following binding to create the XmlReader: Bind<IXmlReader>() .ToMethod( x => XmlReader.Create( ...
stackexchange/codereview
public partial class Form1 : Form { MyClass myClass = new MyClass("one", "two"); public Form1() { InitializeComponent(); textBox1.DataBindings.Add("Text", myClass, "Text1", false, DataSourceUpdateMode.Never); textBox2.DataBindings.Add("Text", myClass, "Text2", false, DataSourceUpdat...
stackexchange/codereview
In an open source project I maintain, we have at least three different ways of reading, processing and writing XML files and I would like to standardise on a single method for ease of maintenance and stability. Currently all of the project files use XML from the configuration to the stored data, we're hoping to migrate...
stackexchange/codereview
Say that I need to do something like: <copy todir="${DEPLOYMENT_DIR}" overwrite="true"> <fileset dir="dir1" /> <fileset dir="dir2" /> <fileset dir="dir3" /> ... <if> <equals arg1="${SPECIAL_BUILD}" arg2="true"/> <then> <fileset dir="dir7" /> <fileset dir="dir8...
stackexchange/codereview
I am using Load data as below, however getContentHeight never changes value. How can I force it to update. I have called this many times and the content height does not update till I manually click on the webVeiw. Any ideas? TIA private void UpdateMessageDisplay() { //loadData fires onPageFinished but without the ...
stackexchange/codereview
I have been tasked with creating a infosite for people with varying degrees of learning difficulty. I was wondering if anyone knew of any really good guides, tutorials or places to get advice regarding the issue.
stackexchange/codereview
I have created a dummy projet for testing collection and ICollection.I have a user class and wanted to create a collection.Example - ICollection<User> users = new Collection<User>(); Collection<User> users = new Collection<User>(); Both code are working fine whether I use Collection or I collection.Now can anyone tell...
stackexchange/codereview
Using DJ Native Swing it is possible to show a web page within a java application. When you do this it is also possible to communicate from the browser to the java runtime environment using the "command" protocol. The documentation has a code snippet which demonstrates it's usage: function sendCommand( command ){ ...
stackexchange/codereview
It's easy to display a single label with entirely the same text but what happens when you want to display one word in bold? Example: All your bases are belong to us.
stackexchange/codereview
Just a thought in my mind but would it not be possible to createa function in MySQL that can modify the LIMIT within a query The clause would be a simple calculation function that would work out the offset depending on the pageno * perpage Example SELECT * FROM items PAGE(4,20) this would be the same as SELECT * FROM ...
stackexchange/codereview
I have a function in my game that you only can use every 2 min. So I have this code $next = strtotime ("+2 minutes"); This function to check if 2 minutes has passed: if(time() <= $next){ Here I find the time when you can do the function again: date( "00:i:s", $next - time()) What I need is the number of seconds unti...
stackexchange/codereview
Basically, our solution is composed of about 30 sub-projects.. and growing. Compiling this monster is fast and compiler warnings/errors/general output just scrolls by in a mishmash of ... well, poo. On unix it's easy to write a filter to "pretty-ify" the compiler output into something readable and, ultimately, useful. ...
stackexchange/codereview
Every time i enter set of values like Group Name,Group Abbreviation,URL in the text boxes and click the save button automatically its saves in the database and for each set of values a new details view has to be generated dynamically with a web panel and the header of the web panel should have the value of Group Name....
stackexchange/codereview
Does anyone know how to make jquery autocomplete with comma seperated (just like in outlook)? thanks
stackexchange/codereview
Is there a function to test floating point approximate equality in python? Something like, def approx_equal(a, b, tol): return abs(a - b) < tol My use case is similar to how Google's C++ testing library, gtest.h, defines EXPECT_NEAR. Here is an example: def bernoulli_fraction_to_angle(fraction): return math...
stackexchange/codereview
I have a fullscreen UIScrollview(B) in a fullscreen UIScrollview(A). A has a contentsize = number of page Horizontally B has a contentsize = number of Subpage Vertically Inside B , I have a small UIscrollview (C) that scroll in the same direction than B... So vertically too. When C is wildly scrolling, it creates a ...
stackexchange/codereview
I need to do a pattern in Scala, this is a code: object Wykonaj{ val doctype = DocType("html", PublicID("-//W3C//DTD XHTML 1.0 Strict//EN","http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"), Nil) def main(args: Array[String]) { val theUrl = "http://axv.pl/rss/waluty.php" val xmlString = Source.fromURL(new URL...
stackexchange/codereview
I have looked at multiple other question similarly asked on StackOverflow, but nothing seems to fit my bill. My query is slightly more complex. Essentially, I need to find the rank of the entry. My table structure is: TestEntry Id, TotalTime, DateCreated GameResult GameId, TestEntryId, Duration, Score QuestionResult ...
stackexchange/codereview
How to force paint after setting Enabled = false in a C# windows usercontrol ?
stackexchange/codereview
NSString *test = @"d'escape"; NSLog(@"%@", [test stringByReplacingOccurrencesOfString:@"'" withString:@"\'"]); prints me this 2010-10-25 15:10:54.833 MyApp[7136:207] d'escape What am I doing wrong ? I want to get this : 2010-10-25 15:10:54.833 MyApp[7136:207] d\'escape
stackexchange/codereview
Part of a web application we have uses an in-house web control assembly. This assembly contains several web user controls where several of these are used by other web controls within the same assembly. The assembly is built as a website with a web deployment project. The main web application's pages are dynamically com...
stackexchange/codereview
http://docs.python.org/library/pty.html says - pty.fork()¶ Fork. Connect the child’s controlling terminal to a pseudo-terminal. Return value is (pid, fd). Note that the child gets pid 0, and the fd is invalid. The parent’s return value is the pid of the child, and fd is a file descriptor connected to the child’...
stackexchange/codereview
HI All, I have a .crt file and I need to get the associated keystore file. How to do so? Is keytool is helpful in that? Thanks.
stackexchange/codereview
I defined a variable in one of my JavaScript files. I want to access the value of that variable among JavaScript files. In one file I am initializing the value of that variable. I cannot access the assigned value in another JS files. Is there anything that I am missing ?
stackexchange/codereview
In C#, how do I check if a specific file exists in a directory or any of its subdirectories? System.IO.File.Exists only seems to accept a single parameter with no overloads to search subdirectories. I can do it with LINQ and System.IO.Directory.GetFiles using the SearchOption.AllDirectories overload, but that seem...
stackexchange/codereview
I am working in asp.net MVC.... Not sure if this is a bug, or a misconfiguration on my part, but the &format= doesn't work on the IIS7 staging server but it works fine on local VS Web server(2008) i.e. http://localhost:12345/<p1>/<p2>/&format=xml works, but www.example.com/<p1>/<p2>/&format=xml doesn't. please let me ...
stackexchange/codereview
i am working on sms application with twilio api, i faced a problem about sms formatting 1) a string " i'm here" in php this is going like this in sms body i\'m here i dont want that slash to come up in sms 2) i want to add line break in message how can i do that. like this Name age phone Simer 23 2546181541 Mark 25 352...
stackexchange/codereview