instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
In the below piece of code I tried to make the objects with class "rot" to change the inner HTML by using the value attribute that includes an array of chars. I want that this characters will rotate with an interval. I noticed that the problem is in the inner for loop - I need there a setTimeout or something like this ...
stackexchange/codereview
Which detect location most accurate.
stackexchange/codereview
I'm reading up on DataSource, here, and trying to implement it in my own little project by using a simple file as my "data source". I've created a class that is pretty simple at the moment... public class QueueData implements DataSource { ... } though the reason it is simple is because I haven't been able to find a r...
stackexchange/codereview
I´m just learning programming in Objective C and I got stuck with getting the information from a .ics file to appear on my tableview. The tableview works fine. I´ve tried it with information stored directly to the NSArray. I get a detailed information view when clicking on the headers. When i try to get the information...
stackexchange/codereview
This is a bit of an obscure issue, but I'm using jQuery Sortables and trying to get two connected lists working together nicely when one is positioned as fixed. It all works fine until you scroll the page a bit such that the two lists end up positioned on top of each other. Then the lists seem to get confused as to whi...
stackexchange/codereview
Hi all SQL Server Blackbelt masters out there. I have a simple question that I need to solve. I am trying to do some quirky update on a table. Specific structure of the table is not important and my problem can essentially be reduced to the following one: update SalesTotal set @total = total = @total + sales, @flag = f...
stackexchange/codereview
I have come across prototype inheritance in javascript. What I wanted to achieve is an outline of methods, which when are inherited must be implemented/defined. I would like to know if this is possible and if so, how.
stackexchange/codereview
I am completly new in asp.net and I'm having some problems with it. I created litle web form for demo and learning and I have some problems with it. Hopefuly you can help me :) What I want is that: when I click on "Kill X" button in table, I get "You pressed button Kill X" message in label "lblMsg". I Also want that...
stackexchange/codereview
So I am trying to embed some simplified Chinese into my flash file. When I turn off embed fonts the flash file is fine. If I add simplified chinese char set it makes the swf massive. Is there a way to embed a smaller character set than the ones flash offers. Standad English Characters if I add all the characters and pn...
stackexchange/codereview
I have 3 class which derived from each other: class Basic{ ... } class Extended : public Basic{ ... } class Full : public Extended{ ... } I have a template class which holds 5-5 from this classes: template <class T> class group{ public: ... private: T one, two, three, four, five; ...
stackexchange/codereview
The class I wish to use is: https://github.com/philsturgeon/codeigniter-curl/blob/master/libraries/Curl.php How can I use this in a Wordpress project? Do I just take out the code igniter specific snippets out?
stackexchange/codereview
Is it possible to add watermark to QR code generated by google charts api using jquery or cakephp. I appreciate any help. Thanks.
stackexchange/codereview
In a Windows Phone 7 Silverlight app I have to manipulate square objects inside a matrix. The only operation I have to do on them is changing their fill color, but I have to do it in a rapid continuous loop, so it must be efficient. Obviously this requirement is more XNA-like than Silverlight, but I have weighed pro/co...
stackexchange/codereview
The following data is created by joining two sql tables together: I would like to group together distinct rows of DateStamp/UserName/StudentName/InstructorName/TableName/PrimaryKey (I'll call this 'group records') and then group under these ColumnName/PreviousValue/NewValue (I'll call this 'subgroup records') The end ...
stackexchange/codereview
Im a very poor programmer, and i was given a program to supposedly help me on my aerodynamic hw. but its in fortran, and im trying to use MATLAB to run this program. any help on converting it to a language matlab understands? (preferabbly c++) program joukow c c computes joukowski airfoil and finds pressure co...
stackexchange/codereview
Ask the user to enter payroll information for the company. Set up a loop that continues to ask for information until they enter “DONE”. For each employee ask three questions: name (first & last) hours worked this week (only allow 1 through 60) hourly wage (only allow 6.00 through 20.00) VALIDATE the hours worked and ...
stackexchange/codereview
I have a User that wants to see his online profile, in a site where he previously has registered at. I am in charge of making a Dataflow Diagram out of this situation. I know for sure that the System will return a Profile. That is why I put an arrow from System to User. How can I express that the User is requesting his...
stackexchange/codereview
I am having trouble getting the right syntax for this. Say I have two instantiated objects, obj1 and obj2. Now, I want to check two things: 1) Is the type of obj1 is a subclass of the type of obj2. 2) Is the type of obj1 is the same as the type of obj2. I'm pretty sure I can achieve 1) by just doing obj1.GetType().IsS...
stackexchange/codereview
I've extended the pages table and now I want to use some of the data in a domain object called "Tags". So I tried the following in the /Configuration/TypoScript/setup.txt: plugin.myextension.persistence.classes.Tx_myextension_Domain_Model_Tag { mapping { tableName = pages recordType = Tx_myextension...
stackexchange/codereview
i was totally surprised that the 3rd solution doesn't work (Compiler says: ; is missing). bool isFoobar = true; isFoobar == true ? isFoobar = false : isFoobar = true; // [1] works ( isFoobar ? isFoobar = false : isFoobar = true ); // [2] works isFoobar ? isFoobar = false : isFoobar = true; // [3] failed Ehm, why does...
stackexchange/codereview
In Firebird I want to generate the scripts for adding all the constraints in a database and also I want to generate the script for dropping all the foreign key constraints. How do I do this?
stackexchange/codereview
How to convert XML to CSV (to be shown in Excel file) using XSLT? Provided XML value itself contains comma, e.g. <name>The,Bad Boy</name> My logic considers "The" & "Bad boy" as separate values as it goes in different columns after opening in Excel file.
stackexchange/codereview
public class TestProcedure extends StoredProcedure { TestProcedure(BasicDataSource dataSource, String procName) { this.setDataSource(dataSource); this.setSql(procName); this.declareParameter(new SqlParameter("@test", Types.INTEGER)); } public List<Detail> executeProcedure(Integer studentId) { Map inPa...
stackexchange/codereview
I'm working on the iPad app, In which I have to rotate a arrow in a circle by touch. But I'm facing problems in it. The problem is in the angle calculation to which the image must be rotate. You can check it here . I have to rotate the big red arrow image around the circle. Can anybody help me, How to get the angle o...
stackexchange/codereview
What is the __main__.py file for, what sort of code should I put into it, and when should I have one?
stackexchange/codereview
Scenario: Lets say we got to check for address lines. which includes addressline1, addressline2,Town,Country,Postcode If any one of the property is entered, all other fields are mandatory. If none of it is entered, the validation doesnt have to get trigged. To achieve it, I ended up with two lines of If statement. Like...
stackexchange/codereview
I have two appenders: console, and file I have three packages uk.co.bar, uk.co.bar.foo, uk.co.pip I need all messages (debug and higher) from uk.co.* to be fed into the file. I want info messages from uk.co.bar.foo to fed to the console I want all messages from uk.co.bar.pip to fed to the console If I use a logger it r...
stackexchange/codereview
I'm making an app that uses the classic "follow" mechanism (the one used by Twitter and a lot of other apps around the web). I'm using MongoDB. My system has a difference, though: an user can follow groups of users. That means that if you follow a group, you'll automatically follow all the users who are members of that...
stackexchange/codereview
I'm need to redirect a a bunch of URL's through mod_rewrite. The URL structure is as follows: www.mysite.com/somescript.php?&lang=asp&variable1&variable2 Needs to redirect to www.mysite.com/somescript.php?&lang=php&variable1&variable2 So, basically, any URL with &lang=asp in it needs to be redirected to exactly the s...
stackexchange/codereview
Hi I am facing a problem I want my application to pick up resources from the framework. Here is my code snippet of an xml. For this to be achieved following changes were made in attrs.xml and themes.xml at the framework level @android:drawable/btn_minus_ss The drawable btn_minus_ss.png is added to drawable-hdp...
stackexchange/codereview
When a json result is returned by the controller the object name seems to be missing, I normally wouldn't mind but the flexbox jquery plugin requires the json result in a particular format. Flexcombobox expected format {"results":[ {"id":"1","name":"Ant"}, {"id":"2","name":"Bear"}, {"id":"3","name"...
stackexchange/codereview
I have a class public class GAE_SERVLETREQUESTServlet extends HttpServlet { Not sure what the spec says about recycling of the HTTPServlet: Should the servlet container create new instance of this class on each incoming request or can the implementation reuse classes between requests? I'm investigating a funny issue w...
stackexchange/codereview
I am writing a framework and I have an object with a custom init method: @implementation OSDatabase @synthesize database; // MEM - (void)dealloc { sqlite3_close(database); [super dealloc]; } // INIT - (id)initWithDatabasePath:(NSString *)path error:(NSError **)error { if (self = [super init]) { if (!sqlite...
stackexchange/codereview
Can you advice how to store email MessagePart hierarchy into database (SQLite)? Parts can be of different MIME type (text, image, etc). Also they can be multipart. The only way I see is to store all parts in single MessageParts table with content_bytes field and mime_type field + parent_id for multipart Is it ok? Is th...
stackexchange/codereview
I have a custom control that contains two elements that can be clicked (a button and a check box). I'd like to be able to put events in the XAML for each of these events. i.e. <Control OnButtonClick="SomeEvent" OnCheckBoxClick="SomeOtherEvent" /> I have no idea how to bind events like that. Any pointers? The fo...
stackexchange/codereview
I have a question about javascript's protected memory. If I have a function done like this: var obj = function(){ var secret = "secret", super_secret = "my super secret string"; return { get_secret: function() { return secret; }() } }(); Is it possible to get string f...
stackexchange/codereview
I'm tring to set values for two models that have a has_one association using accepts_nested_attributes_for, but nothing in the fields_for is being shown on the view. I have confirmed the same code works on Rails 2.x, and it works fine when its a has_many. Code below. Model class Parent < ActiveRecord::Base has_one :...
stackexchange/codereview
Possible Duplicate: What is the best way to slurp a file into a string in Perl? Is this code a good way to read the contents of a file into a variable in Perl? It works, but I'm curious if there is a better practice I should be using. open INPUT, "input.txt"; undef $/; $content = <INPUT>; close INPUT; $/ = "\n";
stackexchange/codereview
i'm attempting to draw a red stroke (1 thickness) around a rounded rectangle but the stroke is not lining up correctly around the rounded corners. my rounded rectangle's corners have an ellipseWidth and ellipseHeight of 40. since they are equal i'm confident in assuming that the curvature of each corner begins at min...
stackexchange/codereview
I have created a Zend Framework model by extending Zend_Db_Table_Absract as follows (simplified example): class Foos extends Zend_Db_Table_Abstract { protected $_schema = 'Foo'; protected $_name = 'Foos'; protected $_primary = 'id'; protected $_sequence = true; public function insert($data) { ...
stackexchange/codereview
This is a bit nitpicking and I might have overlooked something simple Sometimes I have some integers and have to be able to lookup whether they're true or false. I've always solved this by using an Dictionary<int,bool> , inserting a true and just using ContainsKey to see if something is true (it's false by default.) Bu...
stackexchange/codereview
I have the passed argument argv[1] in my C program, and I want to convert that string into a character array. How may I do this? int main(int argc, char* argv[]) { char c [] = argv[1]; // This is what I want to do... } EDIT: What I'm trying to do is get certain characters from argv[1] and check if they are numbers...
stackexchange/codereview
im not sure why i am having problems with ostream. If i use using namespace std; it throws up a bunch more errors like linker errors. This is my code where i am having problems and the errors. virtual void Put (ostream&) const; error C2061: syntax error : identifier 'ostream' error C2065: 'ostream' : undeclared identi...
stackexchange/codereview
this code is suppose to do, is when the user clicks the image in the #thummbnails_div, the Text in #show_div is replaced with the youtube video with that ID . Since i am new here i can't post images. So the code to insert an image is incorrect i know. Thanks in advance. <script type="text/javascript"> $(document).ready...
stackexchange/codereview
Possible Duplicate: what is this notice referring to can i get an answer in plain English please i am new at this .. the better it is explained the fewer times i will need to repost Notice: Undefined index: username in C:\wamp\www\espn.com\login.php on line 16 Notice: Undefined index: password in C:\wamp\www\espn...
stackexchange/codereview
#include <stdio.h> #include <stdlib.h> int main(void) { char *abc = "abc"; char *new_str; new_str = getStr(&abc); printf("%s", abc); } char *getStr(char *str) { printf(str); return str; } What's wrong with the code above?
stackexchange/codereview
right now I'm storing a date in the database, in the format date("Y-m-d") and im storing it in date column. Now, I've retrieved it from the database but how can i display it like October 31st 2010 Thanks!
stackexchange/codereview
I wonder if I were to develop a mobile Web app (now, in two weeks, or in a month), which one should I go for? Which one would you mobile Web developers go for? If jQM 1.0 were officially released today, I would most likely embrace it (as long as it actually delivers what it promises). Now that it is in alpha, I wonder ...
stackexchange/codereview
I have create an Excel Add-In. In that add-in are some modules and let's say module1 is one them. In module1 I have a sub declared as public sub abc() end sub In my workbook I want to be able to use the function abc defined in the add in. It doesn't seem to work! E.g. I install the Addin so that now it appears in the V...
stackexchange/codereview
I'm working in Python to create images from text. I've already been back and forth with PIL and frankly, its font and alignment options need a lot of work. I can subprocess Imagemagick and it works great, except that it seems to always need to write a file to disk. I would like to subprocess the image creation and just...
stackexchange/codereview
Sorry for another non programming question, but I'm using Quartz.NET, a scheduler for .NET applications, for a Windows Service which allows users to schedule transferrig of files that match a regular expression from various sources - for example the user may schedule a job to occur every day at 6pm that transfers the ...
stackexchange/codereview
So I've just been experimenting with ASP.NET MVC and I'm really starting to like the way everything has one single purpose (as far as the separation of purpose between the models, views and controllers) but I'm still having some trouble applying my basic knowledge to a somewhat practical purpose. So, I was thinking of ...
stackexchange/codereview
I have a property file which is not located in a classpath in Maven. Therefore I can't reach it with: ClassLoader.getSystemClassLoader().getResourceAsStream(PROPS_FILE); How can I add the folder containing the property file to the classpath, so it will be available during build and test of the project?
stackexchange/codereview
I'm trying to develop side scrolling game for android involving many many textures so I was thinking if I could create a separate layer, all a single unique color (very similar to a green screen effect) make a collidable and make it invisible to the player. (foreground layer) visual Image (2nd layer)collidable copy of...
stackexchange/codereview
(First of all this is not HW, I have all the answers) I have a simple BNF grammar <UNIT> ::= ( <CLAUSE> ) | a | b | c <ITEM> ::= not <UNIT> | <UNIT> <CLAUSE> ::= <CLAUSE> and <PHRASE> | <PHRASE> <PHRASE> ::= <ITEM> | <ITEM> or <PHRASE> and operator is Left associative (left-hand recursive ) or operator is Right associ...
stackexchange/codereview
I'm using Moq to create a Mock<HttpResponseBase> to test an FileResult I'm creating for my MVC2 application. In the WriteFile(HttpResponseBase response) method of the FileResult, I have the following code at the end: // Write the final output with specific encoding. response.OutputStream.Write(output, 0, output.Length)...
stackexchange/codereview
I have a form_tag that works fine using html, but when I use ajax with the remote => true I am getting this error:- My terminal log shows:- Started GET "/" for 127.0.0.1 at 2010-11-01 01:19:49 +0000 Processing by HomepagesController#index as HTML Homepage Load (0.6ms) SELECT "homepages".* FROM "homepages" Rendered...
stackexchange/codereview
I am developing an ASP.NET MVC2 application in which I have a User class with a property named SecurityQuestionID as follows: public class User { [RangeAttribute(1, 5, ErrorMessage = "Security Question is required")] [DisplayName("Security Question")] public virtual int SecurityQuestionID { get; set; } } T...
stackexchange/codereview
I'm currently using PIL to display images in Tkinter. I'd like to temporarily resize these images so that they can be viewed more easily. How can I go about this? Snippet: self.pw.pic = ImageTk.PhotoImage(Image.open(self.pic_file)) self.pw.pic_label = TK.Label(self.pw , image=self.pw.pic,borderwidth=0) self.p...
stackexchange/codereview
I'm having trouble getting the "@header" or any other @ rule to work in ANTLR. With a very basic grammer, like this: grammar test; options { language = CSharp2; } @header { using System.Collections.Generic; } tokens { TEST; } something : TEST*; TEST : '0' .. '9'; This seems to adhere to the ANTLR docu...
stackexchange/codereview
Possible Duplicate: Why would someone use WHERE 1=1 AND <conditions> in a SQL clause? I've been tasked with reviewing some SQL stored procedures and have seen many that look like the following: SELECT X, Y, Z FROM Table WHERE 1 = 1 ORDER BY X Why would someone use '1 = 1' for the where clause? Thanks!
stackexchange/codereview
I'm building a newsreader app for wp7. I'd like to have some background activity occur, like writing downloaded content to isolated storage. Is there any way to do this without blocking the UI thread? The DownloadStringCompleted event of WebClient is asynchronous, right? Could I just do it there?
stackexchange/codereview
Basically, everytime anybody does anything on this website, I need to retrieve a new javascript from the server (it is a complex math thing, and I am not concerned with speed). I make the AJAX call, and stick it in the browser in a tag, like this: getandplaceajax('id=showtotals','main'); // The first is the URL para...
stackexchange/codereview
I cannot seem to find any Object Databases for Ruby (do not confuse with Document Oriented, like Coach and Mongo). Do more or less mature OODBMSs for Ruby exist? Thanks.
stackexchange/codereview
If I have the following classes: class A { ... } class B { ... } class C : public A, public B { ... } and somewhere I detect that the pointer of class B that I have actually points to a class C, but a function requires a pointer to class A, what can I do to get that pointer to class A?
stackexchange/codereview
I have a (Sql Server 2008) table called Courses with course_id,course_name and course_description as its fields In the front end, I have a text box and a search button. In the text box, when I give a course name (even a part of it)..in the button click event, all the course names should show up. How do I code this in C...
stackexchange/codereview
Is it possible to count the number of hops to a website using javascript (in browser javascript) ? where hop count : the number of hops a packet has taken toward its destination. if no ? what are the other options that i have ?
stackexchange/codereview
Which one of the two alternatives below is more efficient? Any recommendations to further improve it? Alternative A: for i in BAR_Items: if BAR_Items[i] != A and SHAPE[i+"_SHP"] != A: continue if i in Selection: Selection.remove(i) BAR_Items[i].clearActions() BAR_Items[i].add(vizact.spin...
stackexchange/codereview
I'm trying to use the flowplayer tooltip tool (http://flowplayer.org/tools/demos/tooltip/table.html) to display a tooltip over a particular element. Here is my html: <table id="menu-table" cellspacing="0" cellpadding="0" width="714" border="0" style="padding-top: 4px;"> <tr> <td title="menu-one" style="backgroun...
stackexchange/codereview
I need to return an error message to the client, if they have entered invalid data when calling my web service. So if my code is: If Not IsNumeric(strOrderID) Then Throw New SoapException("Invalid Order ID", SoapException.ClientFaultCode) End If I get a web page saying: System.Web.Services.Protocols.SoapExce...
stackexchange/codereview
I'm importing an Excel file (about 1000 records only) to a dedicated SQL Server database. As I need to work on the incoming data from Excel (add a GUID per row, some data conversions) I want to do it row by row and don't want to bulk import (I have nothing against transactions, though). I'm confused on how to do it cor...
stackexchange/codereview
Just installed Apache 2.2 (installed as a module) and latest PHP build on my local win 7 machine. However when I try to include a file I ma getting a permission denied error. I tried all kinds of combination of permission setting but nothing works. Does anyone know if there is a good write up on this problem? or if yo...
stackexchange/codereview
I'd like to evaluate a form field using a regex. What expression do I use to actually compare the value to the regex? I'm imagining something thus: if($('#someID').val() == /someregex/) {doSomething()} But that doesn't work. Any advice?
stackexchange/codereview
test.class type is right? How to? What should I do? <Preference android:key="test" android:title="test" android:summary="test"> <intent android:action="test.class" > <=== **ERROR/AndroidRuntime(2384): android.content.ActivityNotFoundException: No Activity found to handle Intent** </intent> </...
stackexchange/codereview
I have a dnn site I host. It was hosted initially on a win 2003 server. Now I want to move it to Win 2008 server. It was on a different hdd then win2003 os (userdata hdd) so I installed it in 2008 machine, installed database, created the site under IIS7 and poinyted to the website folder. But when I want to access the ...
stackexchange/codereview
How should my comments table look like when I allow a user to enter comments for a post. Below is my MySQL table as of right now. The uniqueID is to stop users from hitting the submit button multiple times. CREATE TABLE acomments ( commentID INT UNSIGNED NOT NULL AUTO_INCREMENT, parent_commentID INT UNSIGNED NOT ...
stackexchange/codereview
I'm getting this error since I updated to ruby 1.9.2p0 (2010-08-18 revision 29036) & Rails 3.0.1. How can I fix it? undefined method `getlocal' for Sat, 30 Oct 2010 08:32:42 +0000:DateTime activesupport (3.0.1) lib/active_support/time_with_zone.rb:75:in `localtime' activerecord (3.0.1) lib/active_record/connection_ada...
stackexchange/codereview
I'm working with EF CTP 4, using POCO models, adding a new object and call SaveChanges() works but updating the object doesn't work. Here's the code for update: public void UpdateContact(Contact contact) { var findContact = GetContact(contact.ContactID); findContact = contact; ...
stackexchange/codereview
I am trying to issue simple POP3 commands to Gmail like so: openssl s_client -connect pop.gmail.com:995 +OK Gpop ready for requests from XX.XX.XX.XX USER my-email@gmail.com +OK send PASS PASS mypassword +OK Welcome. Connection and authentication all works fine. However when I issue a STAT or LIST command I receive the...
stackexchange/codereview
<div id="divAnswerHeader"> <div id="divAnswerSubHeader"> <h2><asp:Label ID="lblTotalAnsw" runat="server" Text=""></asp:Label> Answers</h2> <div id="divTabs"> <asp:LinkButton ID="oldestAnswer" runat="server" title="Answers in the order they were given" OnClick="...
stackexchange/codereview
I'm aware that Oracle does not have a boolean type to use for parameters, and am currently taking in a NUMBER type which would have 1/0 for True/False (instead of the 'Y'/'N' CHAR(1) approach). I'm not a very advanced Oracle programmer, but after doing some digging and reading some ASKTOM posts, it seems like you can r...
stackexchange/codereview
I have a data structure that looks like this: public class Node { public string Code { get; set; } public string Description { get; set; } ... public List<Node> Children { get; set; } } I want to write a method that will return a specific node, given the specified Code. Normally I would just do a ...
stackexchange/codereview
How I read the file IFF raster graphics, and make changes to it?
stackexchange/codereview
I am writing a class that will save wide strings to a binary file. I'm using Delphi 2005 for this but the app will later be ported to Delphi 2010. I'm feeling very unsure here, can someone confirm that: A Delphi 2005 WideString is exactly the same type as a Delphi 2010 String A Delphi 2005 WideString char as well as a...
stackexchange/codereview
I think the title of my question is some mess! Sorry! I have two Grid in same window. First named loginBox and second is operationBox. I want to disappear loginBox after validating user, using DoubleAnimation class and then operationBox will be appear in same time (during 00:00:01). Scenario: Grid named loginBox is sh...
stackexchange/codereview
It seems that roboguice can only inject views from the contentView defined in onCreate(...) of the activity. Outside onCreate(), for example, if I have my custom dialog, which has also a content view (e.g. dialog.setContentView(R.layout.dialog_layout);), how can I inject views from this dialog_layout in my activity? (I...
stackexchange/codereview
I hava a strongly typed datatable and a list(of String). I want to build a linq query to return a datatable of the same type where the fields of a certain column of the table are in the list. I thought of doing a Join, although in normal sql I would have added SELECT FROM Table WHERE Table.ID IN(...); This is what I ...
stackexchange/codereview
I am on the verge of actually hiring someone to fix this for me, but I hope it doesn't come to that. I have no experience with Rails/Ruby, but I do know my way around computers in general. I have two domains on one server (Hostingrails, I am beginning to hate them more and more these days). My secondary domain works 10...
stackexchange/codereview
I'm fairly new to Tomcat and Java web development and am banging my head against a wall with an issue im experiencing. I have a web application that works fine on my local box (windows xp), I have Tomcat 6 installed with the WAR file deployed to the webapps folder and within the c:/apache-tomcat-6.0.18/conf/Catalina/lo...
stackexchange/codereview
Just curious to know, Test module won't work properly with django 1.2.3 when update from django 1.1.1 (now on python 2.6.5)
stackexchange/codereview
Silverlight's Socket.ConnectAsync method never calls the Completed event - I am using 127.0.0.1:4510 . I have configured IIS to serve clientaccesspolicy.xml file on port 943. I am using following code: SocketAsyncEventArgs args = new SocketAsyncEventArgs(); //args.UserToken = tcp; args.RemoteEn...
stackexchange/codereview
how can i print something (for debugging purpose) to console inside a linux system call? Or is there any not very diffucult way of debugging kernel code? thanks
stackexchange/codereview
I'm reading the source code of some device driver for Windows XP, and I want to know the exact include paths of the WDM compiler. I know that these should be included : C:\WinDDK\7600.16385.1\inc\api C:\WinDDK\7600.16385.1\inc\ddk C:\WinDDK\7600.16385.1\inc\crt But, I know there must be some other paths the WDM build ...
stackexchange/codereview
I have a rest webservice that takes a POST metod with multipart message: @Path("transferFile") @POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(MediaType.APPLICATION_XML) public String multipartTest(com.sun.jersey.multipart.MultiPart data) { try { // get first body part (index 0) BodyP...
stackexchange/codereview
I need to create for my blog in PHP, a chat like facebook-chat in erlang. But I don't know how to share the username+password between APACHE and Ejabberd. How do I do this ?
stackexchange/codereview
Im trying to update a simple model in MVC,but its not working,it throws an exception saying that the Model could not be updated: [HttpPost] public ActionResult SignIn([Bind(Exclude="TxtEmail")]Usuarios usuario,FormCollection fc) { try { UsuariosModel userM...
stackexchange/codereview
Is there any way to check the size of a record in Ocaml? Something like sizeof of C/C++?
stackexchange/codereview
I know this is not related to coding. But this is important for coding, so posting here. What does Trunk, Branch mean. How does a release process go on in SVN? I have 4 layers . developer machine code. stage02 stage03 production what should be made the trunk?
stackexchange/codereview
Iam using .NET 3.5. I have asp.net mvc app. There is base controller: public abstract class BackendController<TModel> : BaseController where TModel : class { // skipped ... public ActionResult BatchDelete(int[] ids) { var entities = repository.GetList().Where(item => ids.Contains(item.ID)); repository.delet...
stackexchange/codereview
I have inserted a div with some text into a parent div tag on add button click on client side. Now I want to retrieve same data client side when I tried to find the element which i just inserted using 'id' it is returning me null. Some how i want to get this information on client side send it back to the controller on...
stackexchange/codereview