instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm new to Facebook API on Android, and basically, what I'm trying to do is creating custom wall post for an application I'm developing. Like when you listen a Shazam a song and you can share the result with your friends. I believe I've got to create a custom attachment. Here's my code for setting the attachment: mPost...
stackexchange/codereview
I use a LinearLayout and first I have a MapView and below the map I have a TableLayout with informations fields. Now I would like to add additional information fields (e.g. a new TableLayout) when the user select a specific menu item on the Options Menu. I would like to have these fields either between the MapView and ...
stackexchange/codereview
I have created a query block with begin/end and want to run that in SQL*Plus. But how can I run it in the command line? Actually the code is from some blog and it is used for searching text in the database. ABC is the texts to be searched. set serveroutput on size 1000000 declare TYPE QueryCurType is REF CURSOR; query1...
stackexchange/codereview
I have a mapping that looks like this: <class name="Record"> <map name="Values"> <key column="RecordFK"/> <index column="FieldFK"/> <element column="Value"/> </map> </class> Translating this to English: a Record maps Fields to Values. In HQL, I can query this map, as follows: from Record ...
stackexchange/codereview
So I have code like: <ul> <li><FORM><INPUT class="eButton" type="button" value="stream1!" onClick="window.open('./CSI1.html','win1','width=400,height=200,left=0,top=100,screenX=0,screenY=100')"> </li> <li><FORM><INPUT class="eButton" type="button" value="stream2!" onClick="window.open('./CSI2.html','win2','width=400,h...
stackexchange/codereview
I have a progress bar with an accompanying label on my view, and am trying to display the progress of a file download. Here is my code so far -(void)downloadXML { if(responseData == nil) { responseData = [[NSMutableData alloc] init]; } progressView.progress = 0; NSString* updateURL = [NSString...
stackexchange/codereview
I'm using EditBin to increase the stack size of an application I'm writing. I have this in the post-build event command line for Visual Studio: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\editbin.exe" /STACK:268435456 "$(TargetPath)" When I build my project, I get this error: Error 470 The command ""C...
stackexchange/codereview
Anyone have luck 'activating' a given window (move to top with focus)? Say we want to activate a workspace window in dev image (VW). This does not work? | window main | window := Workbook allInstances first. main := window mainWindow. main forceActive. thank you
stackexchange/codereview
When I use: for i in Selection: Q = "SELECT columnA FROM DB WHERE wbcode='"+i+"' and commodity='1'" cursor.execute(Q) ydata[i] = cursor.fetchall() I get: ydata = {'GBR': [(u'695022',), (u'774291',), (u'791499',)... ]} How can I change my code to get: ydata = {'GBR': [695022, 774291, 791499,...]} Thank yo...
stackexchange/codereview
I'm using this Songkick wrapper and it works for getting grabbing events by artist like so: sk.events(:artist_name => "Balimurphy") But I'm having trouble grabbing events by location. Songkick is expecting the query to look like this location=geo:lat,lng I'm having trouble finding the right syntax to pass lng=-73.58...
stackexchange/codereview
Model: public class Model { public ItemType Type { get; set; } public int Value { get; set; } } public enum ItemType { Type1, Type2 } Controller: public ActionResult Edit() { return View(new Model()); } [HttpPost] public ActionResult Edit(Model model, bool typeChanged = false) { if (typeChanged) ...
stackexchange/codereview
I have two tables as shown below The master Table ID keyword_tags ----------- --------------------------------------------- 10932 international foo data and a child table(join clause on id = fk_id) fk_id date_value observ_value ----------- ----------------------- -------------...
stackexchange/codereview
I cant install imagic so I need to use GD.. maybe phpThumb() but latest version released May 28, 2008
stackexchange/codereview
$xml = new SimpleXMLElement(getpage('http://api.themoviedb.org/2.1/Genres.getList/en/xml/APIKEY')); $genres = $xml->xpath('/opensearchdescription/genres/genre'); foreach($genres as $genre) { echo $genre->id; } I'm not sure why it isn't working :( (yes APIKEY is replaced in my code) The XML is: <?xml version="1.0" ...
stackexchange/codereview
I'm trying to implement a default valued map, and I'd like filters, maps, etc. over a DefaultingMap to also produce a DefaultingMap whenever possible. Here's my initial implementation: class DefaultingMap[K, V](defaultValue: => V) extends mutable.HashMap[K, V] with mutable.MapLike[K, V, DefaultingMap[K, V]] { overri...
stackexchange/codereview
I have a couple of .SWF files that I am trying to get onto our BOBJ server and am having no luck. I am using XCelsius 2008 SP3.3 and trying to put it on an XI R3 server. What can I do to achieve this?
stackexchange/codereview
I'd like to "pause" all the events of a page which means removes all the event set... and be able to put them back after. Even the first part = removing all the events of a page, I don't see how to do so! Do you have ideas? I don't find anything working for it! Edit: Why? I want to act in a page already loaded. The use...
stackexchange/codereview
This is my requirement i need to deserialize an object and then i need to do some xml parsing(i know how it sounds) So here is my code XmlTextReader myFileReader = new XmlTextReader(path); XmlSerializer serializer = new XmlSerializer(typeof(MyType)); MyType par = serializer.Deserialize(myFileReader) as MyType; XEl...
stackexchange/codereview
I have a product and payment_notification model with the following association class Product < ActiveRecord::Base has_one :payment_notification end class PaymentNotification < ActiveRecord::Base belongs_to :product end I'm setting up a named scope which should fetch all products whose associated payment_notificat...
stackexchange/codereview
i want to open PDF file in a iframe OR windows Extjs and let user click to add labels what scripts can i use ? im coding with Extjs / php /mysql i use fpdf/fpdfi libraries to write on a PDF file any idea ? help please thank
stackexchange/codereview
here is my page here is my CSS dot { background:url("images/non_selected.png") repeat scroll 22px 22px transparent; height:22px; width:22px; } when i change it to url("images/non_selected.png") norepeat scroll 22px 22px transparent nothing displays...what gives
stackexchange/codereview
Another newbie question. I have a context menu that I apply for a ListView that simply allows the user to move items up or down, or delete the item. I have code in onContextItemSelected() to prevent things from moving up past top or bottom of the list, etc., but I'd rather hide the context menu items in the first pl...
stackexchange/codereview
This question is very much related to: A) How to separate CUDA code into multiple files B) Link error LNK2005 when trying to compile several CUDA files together Following advice from here: https://meta.stackexchange.com/questions/42343/same-question-but-not-quite and here https://meta.stackexchange.com/questions/8910/a...
stackexchange/codereview
My employer is switching their internal portal over to SharePoint. One of the highly used features of the previous portal was a 'people search' that allowed partial names. SharePoint 2007 defaults to keyword searches which only match against the exact word(s) given as search terms. It can do full-text searches but y...
stackexchange/codereview
I'm tring to Extend DataGridColumn, and in the extending class, trying to specify a value for paddingLeft, but I am unable to compile it. Using Flex Builder 3 : mainApp.mxml : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"> <mx:...
stackexchange/codereview
I'm trying to write a Chrome extension that will login to my Grails application using the Spring Security Core plugin's AJAX abilities. If there was no previous login and I login from the extension (ajax), it works. Then if I logout (ajax), that works as well, but any further logins (ajax) fail but I get an ajax succes...
stackexchange/codereview
I have a query like : (q1) select a,b,c,d from abc where param='x' union (q2) select e,f,g,h from abc where param='y' I want to know if value of <param>='y' would query1 get executed ?? This is because the recodset "abc" is very very big and actual query involves 5-6 unions on the same parameter(u may see that only ...
stackexchange/codereview
Visual Studio 2010 (paid edition) gives a selection of four target CPUs for .NET programs: AnyCPU, x86, x64 and Itanium. What exactly do those settings do? I noticed that (on a x64 Windows 7 machine), the binaries created with AnyCPU and x86 are of the same size and binaries created with x64 or Itanium are of the same ...
stackexchange/codereview
In my new project I am asked to use ADO.NET Entity framework and WCF Services. I am quite to new to this but when I studied and worked on few samples I found idea behind using Entity framework entities as WCF contract is pretty confusing. So wanted to know what is the general opinion on this. I studied about Persistenc...
stackexchange/codereview
at the top of my template workflow I put a ReceiveRequest / SendReply block where I'd like to perform synchronous operations, enabling then the user client to receive a timely response of the workflow being started. Client calls the WF via WCF. Client knows about the status of the current request with status of an entr...
stackexchange/codereview
I have a .desktop file which associates my application (mmxfer) with specific mime types, and this works fine. When I right click a media file it gives me the option to use mmxfer to open it. But what if I want to associate a project with a specific file extension, say '.sply', which really just contains some data seri...
stackexchange/codereview
It's clear to me why a materialized view is preferable over just querying a base table. What is not so clear is the advantage over just creating another table with the same data as the MV. Is the only advantage to the MV really just the ease of creation/maintenance? Isn't an MV equivalent to a table with matching sche...
stackexchange/codereview
Below is a simple query and the result: Is the a way to aggregate the total EVENTs by 7 days, then sum up the total EVENTs? Would a rollup function work? I am using SQL SERVER 05 & 08. Thanks again, folks. SELECT DATE_SOLD, count(DISTINCT PRODUCTS) AS PRODUCT_SOLD FROM PRODUCTS WHERE DATE >='10/1/2009' and DAT...
stackexchange/codereview
I'm using Python to process some plain text into LaTeX, so I need to be able to write things like \begin{enumerate} or \newcommand to a file. When Python writes this to a file, though, it interprets \b and \n as special characters. How do I get Python to write \newcommand to a file, instead of writing ewcommand on a...
stackexchange/codereview
Good morning! I have a user login page "/Account/Login.aspx" which uses a custom I've included an tag for the user to reset their password - <a href="javascript:ConfirmPasswordChange();">Forgot Password?</a> My post doesn't call my page "/Account/LoginMethods.aspx" (No breakpoint firing), but instead returns the resu...
stackexchange/codereview
I am attempting to compile a list of Android phones which can be put into USB Host mode or have serial capability. Are there any phones, other than what is listed here that have either USB Host/USB OTG or Serial capability? Serial: HTC Dream HTC Magic HTC Hero HTC/Google Nexus One USB: Motorola Droid Nexus One Galaxy N...
stackexchange/codereview
I know some of the solutions in SQL but couldn't find any of them from SQlite. I just want to execute a select query that returns a resultset of numbers ranging from 1 to 100. Numbers 1 2 3 4 ...... 5 A correction: I don't actually have a table at all. (however a solution is encouraged with a virtual ta...
stackexchange/codereview
I designed a website on my Computer with XAMP, but as I uploaded it to my Host all the Javascript and Jquery just stopped working. the only Error I get back looks like this $("#link1").FontEffect is not a function All the required .js files are imported. And my script looks like this: <script src="./script/jquery-1....
stackexchange/codereview
I am trying to display an erb template inside a facebook page tab. I am successful in doing so using wordpress, but with rails I am getting this error. FBML Error: illegal tag "body" under "fb:tab-position" The output of wordpress and rails are exactly similar. They are generating the same html. While in case of wordpr...
stackexchange/codereview
I'd like to know the HZ of the system, i.e. how many mili seconds is one jiffy from Python code.
stackexchange/codereview
I need to extract URL from a text using jquery. Lets say i have sowhere on the page following textarea code <textarea rows="20" name="textarea" style="width:100%;"> @techreport{blabl, blabla = {}, url = {http://server.com/thepdf.pdf}, wrongurl ={http://server.com/thepdf2.pdf}, blablabla = 1998, ...
stackexchange/codereview
Suppose you have a model Entry, with a field "author" pointing to another model Author. Suppose this field can be null. If I run the following QuerySet: Entry.objects.filter(author=X) Where X is some value. Suppose in MySQL I have setup a compound index on Entry for some other column and author_id, ideally I'd like the...
stackexchange/codereview
I am trying to perform the build of a Spring Roo project (= Spring MVC + aspectj + hibernate) on my hudson integration server. The project is configured tu use <dependency> <groupId>javax.persistence</groupId> <artifactId>com.springsource.javax.persistence</artifactId> <version>1.0.0</version> </dependency> The build...
stackexchange/codereview
I just installed Visual Studio 2010 with .NET Framework 4.0 and C# and I can't find anything under the System.Management namespace except for System.Management.Instrumentation. All the online documentation at MSDN about WMI keeps telling me that I have to use classes such as System.Management.ManagementObjectSearcher o...
stackexchange/codereview
The documentation on CancellationToken.CanBeCanceled describes what it does, but doesn't mention when it can ever be false. Hence it's not entirely clear to me when I should pay attention to this property. In which circumstances can it be false and when should I look at it?
stackexchange/codereview
Is there a way to limit the number of rows fetched from a table when creating a report with the Report Wizard? Say I have a table with a million records. I use the report wizard to select this table and some fields. Before I can get to the step where I can use the select expert; Crystal Reports fetches everything rec...
stackexchange/codereview
Possible Duplicate: LINQ to SQL Every Nth Row From Table This doens't work in Linq2Sql: context.Enquirys.Where((e, index) => (index % g) == gs); Is there any other way to implement this?
stackexchange/codereview
I'm building a cell-based game that essentially works like dominoes: you start with one tile in the center, then connect additional tiles to it that can branch out in all directions. I have my game table all set up and working great... now I just need to make it scroll to accommodate the expanding content. So, this doe...
stackexchange/codereview
I have a proc that returns two fields as a custom class generated by the EF framework (a mapped class for the custom result). Can I join the proc results in with a ADO.NET EF LINQ query? I'm getting errors that suggests no, but I'm not sure. Thanks.
stackexchange/codereview
I am wondering for using css sprites which tag html is best? I mean i can use < img src="trasparent.png" style="background-position:ecc"> or ? I saw Google using < span> for the "o" of G"o o o o o"gle thanks
stackexchange/codereview
How can i add to a .htaccess file so that the following rules don't apply if the url contains a certain variable? # Options All # Options -Indexes # # RewriteEngine on # # RewriteCond %{HTTP_REFERER} !^$ # RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC] # RewriteRule (.*)$ /shared/php/v1/hotmusiclink....
stackexchange/codereview
I have this code: $("#leftbutton").click(function(e){ /// do xyz }); $("#rightbutton").click(function(e){ /// do xyz (same thing) }); How do I combine them so that if you click #leftbutton or #rightbutton it does xyz? Something like this: $("#leftbutton OR #rightbutton").click(function(e){ /// do xyz });
stackexchange/codereview
There is an address book that already has contacts. That is why the open contacts link is on the page when it loads. If the user does not want to add a current contact to populate these fields then once they have supplied data to the fields I want the add to contacts button to appear. Would a setInterval function be ap...
stackexchange/codereview
I get segmentation fault accessing an object which looks valid and fully accessible in gdb. Isn't segmentation is always about inaccessible memory? EDIT: more details. The crash happend under gdb so I could examine the object's memory. It had the members set to proper values so there is no chance I was accessing read-...
stackexchange/codereview
Here's a live demo for your convenience: http://jsfiddle.net/Lr6NQ/2/ On ul#navigation ul, if there is an explicit width, the links appear on their own "line" as intended. However, as the links have varying widths, I'd rather leave it as "auto" so the <ul> isn't really wide for lists with short content. How can I preve...
stackexchange/codereview
I've started an EC2 instance and installed the ec2-api-tools. Environment variables (JAVA_HOME, EC2_PRIVATE_KEY, EC2_CERT) are set up. Running ec2-describe-instances doesn't return anything. According to the EC2 command line reference information on all currently running (and terminated) instances should be returned. W...
stackexchange/codereview
Is it possible to calculate a math function f(x) that in a string. Something like this: $function = '2x+3'; $x = 4; math_function($function, $x); //Shoud produce 11 I can't find a library for tasks like this on PHP.net or with Google, but I don't think I am the first one that wants this?
stackexchange/codereview
Note: Please re-tag and/or re-name appropriately I have a class, FooEnumerator, that wraps a Foo and implements IEnumerable<FooEnumerator>. The Foos represent a tree-like data structure, the FooEnumerators that are enumerated are the child nodes of the current node. Foo is a vendor supplied data object. FooEnumerator ...
stackexchange/codereview
how can run this cmd command "bcdedit /set testsigning on" by c#? this my code - no run : string strCmdLine; strCmdLine = "bcdedit /set testsigning on"; Process.Start("CMD.exe", strCmdLine);
stackexchange/codereview
All the GWT examples/tutorials talk about GWT client-side code being activated by events such as onPageLoad(). I want to use GWT to create a library that can be invoked by user-written Javascript function calls. Can anyone point me to the information needed to do this?
stackexchange/codereview
I use Eclipse and I write jsp files with HTML5 content. So I have for example this line: <div class="test" data-role="test123"> In Eclipse I get the warning: Undefined attribute name (data-role) What needed to be done so these warnings won't appear anymore? In HTML5 this attribute is allowed (data-*) as you can see...
stackexchange/codereview
i have a stored proc in sql2005 and it makes use of xml functionality in the manor listed below: SELECT rr.item.value('@id','varchar(50)') as id, rr.item.value('@name','varchar(50)') as name, rr.item.value('@value','varchar(50)') as value, rr.item.value('@type','varchar(50)') as type ...
stackexchange/codereview
do i need to create foreign key in migration to let has_many belong_to work? Can i don't create any foreign key such as :options => "CONSTRAINT fk_box_storage REFERENCES box(id)" and still have use has_many and belong_to in model?
stackexchange/codereview
I want to hide the linear layout so i used LinearLayout mainLayout=(LinearLayout)this.findViewById(R.id.mainLayout); mainLayout.setVisibility(2); but why is doesn't hide ??!!!
stackexchange/codereview
iterator insert ( iterator position, const T& x ); Is the function declaration of the insert operator of the std::Vector class. This function's return type is an iterator pointing to the inserted element. My question is, given this return type, what is the most efficient way (this is part of a larger program I am runn...
stackexchange/codereview
I have a JTable with four columns, the first one containing either a number or a text, the other three only text. I'm trying to filter this table with the help of a RowFilter: sorter = new TableRowSorter<TableModel>(myOwnTableModel); The checkboxFilter I got works well enough: sorter.setRowFilter(RowFilter.regexFilt...
stackexchange/codereview
I im creating a simple testing app that runs a check every hour on the selected directory/s using thread.sleep() through JFileChooser. But when i select the directory and the method runs the ui panel goes grey and the swing bits disappear. The thread seems to be putting the ui to sleep as well as the method its calling...
stackexchange/codereview
I'm new in node.js. I'm testing socket.io for real time messaging. I love it and I want to use. I have a question. How many concurrency can run in Node.js server ? Our program will be approximately 100 concurrency. So, I'm worry about that. I found another real time messaging server , APE. Which one is better ? I love ...
stackexchange/codereview
Is there a simple and easy to use product that will allow users to view/run Access DB queries on the web? We'd also like reports to be available too. We have a large number of Access databases, many of which act as front ends to data pulled from other DB systems (Oracle and SQL Server mainly). Access allows our power u...
stackexchange/codereview
Is there any way to configure an SVN server such that it does not accept commits if a descriptive message related to changes are not entered or filled in? PS: I use TortoiseSVN as the client and svnserve, version 1.4.2 (r22196) as the server (available default with the distribution).
stackexchange/codereview
I have a FieldSet object in a form, but for some reason i can't remove it. It says "Cannot set the FieldSet's form to null". My code is something like this. Form form = new Form("form"); FieldSet fsTest = new FieldSet("fsTest", ""); //constructor public ClassName(){ fsTest.add(new Submit("clear", "Clear Fields", this...
stackexchange/codereview
I have a Maven project that declares a dependency on another Maven artifact using an open ended version range, such as this: <dependency> <groupId>org.terracotta.toolkit</groupId> <artifactId>terracotta-toolkit-1.0</artifactId> <version>[1.0.0-SNAPSHOT,]</version> </dependency> (I know that it is to some degree ...
stackexchange/codereview
All is in the title. I get the URL param : $log = $request->getParameter('logement'); Widget's statement : $this->widgetSchema['logement'] = new sfWidgetFormInputText(); And I pass it in the form to prefill my widget 'logement' : $this->form = new bailForm(array('logement' => $log)); I have read it in symfony's doc,...
stackexchange/codereview
I just switched from XAMPP to MAMP and now this rewrite rule does not work anymore RewriteRule ^([0-9]{6}+)/?$ includes/redirect.php?ref=$1 [L] In the Appache error log: [Mon Nov 22 13:59:24 2010] [alert] [client 172.xx.xx.x] /Applications/MAMP/htdocs/myapp/.htaccess: RewriteRule: cannot compile regular expression '^(...
stackexchange/codereview
I am using the UpdatePanel and need to display some kind of Ajax anination while the page refreshes with the UpdatePanel. What would be great is to be able to disable all controls and display a ajax loading message.. I would love to put a Div over the top of everything - like an overlay. Jquery UI dialog box does prett...
stackexchange/codereview
What I am trying to do: My bash shell script contains a modprobe -a $modulename. Sometimes loading that module fails and the modprobe statement just gets stuck. It never returns and hence, my script is stuck too. What I want to do is this: Call modprobe -a $modulename , wait for 20 secs and if the command does not retu...
stackexchange/codereview
I'm having trouble with setting up an Ortho view for drawing 2D ontop of the 3D scene. I set up my view like this: public void onSurfaceChanged( GL10 gl, int width, int height ) { gl.glViewport( 0, 0, width, height ); gl.glMatrixMode( GL10.GL_PROJECTION ); gl.glLoadIdentity(); GLU.gluPerspective( gl, 45...
stackexchange/codereview
An AJAX query returns an HTML string that has 2 tables. I want to put table1 into div1 and table2 into div2 If the HTML representing both tables (they're sequential, not nested or anything funny like that) is stored in variable twoTables, how can I use jQuery selectors (or any other method, although I am trying to avoi...
stackexchange/codereview
Why wont .style.top = "200px"; work in this code? Calling the event within the element using oclick="this.style.left='200px';" doesn't work either. <html> <head> </head> <body> <div id="theDiv">The Div</div> <button id="theButton">Do</button> </body> </body> </html> <script type="text/ja...
stackexchange/codereview
Can anyone give me any tips, or point to documentation, on how to use the imageresize plugin for CKFinder, I can find nothing on this at all? Thanks, Toby
stackexchange/codereview
I need help defining what approach to use. I have a SOAP response giving me an xml file. I need to end-up with 3 correlated lists displayed on screen. When you select one item on the first list, the corresponding choices will appear on the second list etc. I am only interested on how to organize efficiently the data af...
stackexchange/codereview
I'm currently working on a CKEditor plugin which would add internal links to our CMS. One of the thing their current link plugin does is that it'll parse through a link when it loads the link dialog to figure out what "type" it is. Since I created the internal type I need to add a regular expression to compare it to an...
stackexchange/codereview
I need to find a windows mobile device that has a barcode scanner built in or attached. It's important that I can use the barcode scanner from the .NET compact framework application. Also, the device's price should not exceed $300. Please advice if you used something similar in your projects. Thanks!
stackexchange/codereview
i am coding up a cms site which also has a blog section by using wordpress. the website previous had a blog section at /blog, which powered by wordpress, and a bunch of static pages. now they want to convert entire site to wordpress. basically what i did is making a handful of "page"s , and set the website's index page...
stackexchange/codereview
I am currently developing a Windows Service in .NET 4.0, Visual Studio 2010, Windows 7-32bit. I have an installer project that does the installation for me. When I install the service, uninstall it, and try to install again, I get the following error: Error 1001. The specified service has been marked for deletion In ...
stackexchange/codereview
I have very little knowledge about ClearCase and would like to learn more. I have created a branch BR_PHASE2 under /main. I have used the following command to checkout the files into the branch: element * CHECKEDOUT element * .../BR_PHASE2/LATEST element * /main/LBL_MS_PHASE2_04-NOV-2010 -mkbranch BR_PHASE2 The prob...
stackexchange/codereview
I have a filehandler class that moves an xdoument to cache using a lock. Psuedo code: public FetchDocument() { var xdoc = Cache[_Key1]; if (xdoc == null) { lock(_lockobject) { // in case prev.thread has done upload will currth read waiting xdoc = Cache[_Key1]; if (x...
stackexchange/codereview
Both horizontally and vertically? I am using jquery ui's draggable feature constrained within a div, and I need a large internal area to work with.
stackexchange/codereview
I want to give Access Permission on OU of Active Directory. I have done some part as below, which removes all access of OU. The code is as below: DirectoryEntry rootEntry = new DirectoryEntry("LDAP://OU=Test OU,DC=test,DC=com"); DirectorySearcher dsFindOUs = new DirectorySearcher(rootEntry); dsFindOUs.Filter = "(ob...
stackexchange/codereview
a.why is there so many wait states in the in the vms/vax process states ?
stackexchange/codereview
I have a core data many to many relationship of article to category. When attempting to save, I get the following error. I am unable to find information about what it means, and why there are two versions when the database is empty. Can anyone shed some light? Error: NSMergeConflict (0x76ae720) for NSManagedObject (...
stackexchange/codereview
I have the following fields: First Name: <input type="text" id="tFName" name="tFName" maxlength="50" /> Last Name: <input type="text" id="tLName" name="tLName" maxlength="50" /> I want to use javaScript specifically dojo to update the value of the following hidden input fields: <input type="hidden" name="tFName" val...
stackexchange/codereview
I'm getting this error when I alter table alter column from nvarchar(4000) to nvarchar(max): Cannot create a row of size 8064 which is greater than the allowable maximum of 8060 I've looked through the similar questions and I still can't explain why this doesn't work Converting nvarchar(4000) to nvarchar(max) Cannot cr...
stackexchange/codereview
On Windows 2003 Server and Windows 7 when a COM+ application client proxy is exported, the DLL which is proxied is not included in the MSI file that is created. The MSI will install, but since the DLL is not included, the remote application cannot be instantiated. The same COM+ application exported from a Windows 20...
stackexchange/codereview
I have string "Tue Nov 12 2010",I want to parse it in java.util.Date object. I write below code for this DateFormat format = new SimpleDateFormat("dd/MM/yyyy"); Date date= format.parse("Tue Nov 12 2010"); It is giving exception like below: java.text.ParseException: Unparseable date: "Sun Nov 21 2010" Not getting what ...
stackexchange/codereview
I'm writing a module to manage a DHCP server co-located with the service in which the module exists. I have code in place using the DHCP Server API which is able to create a subnet and add DHCP reservations. What I don't seem to be able to do is actually enable/activate the subnet scope. I had assumed that DhcpSetSubne...
stackexchange/codereview
I have to add all the Id from the dataset that has Status value same as "Active" to the int array PromotionID. How is that possible. What am i missing? int[] promotionID; foreach (DataRow dr in ds.Tables[0].Rows[i]["Status"].ToString() == "Active") { promotionID = new int[] { Convert.ToInt32(dr["Id"]) }; } The er...
stackexchange/codereview
How do I rearrange the following array [0] => Array ( [id] => 1 [parent_id] => 0 [name] => Accueil ) [1] => Array ( [id] => 2 [parent_id] => 0 [name] => Exposants ) [2] => Array ( [id] => 3 [parent_id] => 0 [name] => Visiteurs...
stackexchange/codereview
We have a web application with feature for logging in with credientials The important requirement is once the user logs in he is not allowed to login from any other system or even another browser on same system We used following solution which is mssql based : We have kept " Is_Loggedin" as a column with data type ...
stackexchange/codereview
I have a really simple e-commerce in my website. It's just a shopping cart, a table named "orders" and a integration with a payment gateway. The gateway is doing well, since when I click on "buy", it redirects to gateway's https website and everything is done there. My question is: this gateway returns a status code to...
stackexchange/codereview