Books for Code review
Hi All, Can anyone please suggest me books which teaches towards making better code reviews? Basically, best practices for coding. Regards ...
Hi All, Can anyone please suggest me books which teaches towards making better code reviews? Basically, best practices for coding. Regards ...
Hello, I have to install a code versioning system for a project. I would like to have two branches, one public and one private; each branch has it's own set of users. I would like to write some hooks for the private branch - when a developer commits code in the branch, some files are copied into another localation (similar to a deployme...
I need to build and print a deeplink to any given comment. So that the user can directly access the specific comment with just clicking a link. I could not find a native drupal function to get this so i build it my own. My solution <?php global $base_url; $base = drupal_lookup_path('alias',"node/".$node->nid); $path = $base...
Hi, I am trying to invoke opencv library from my android code. I previously stored my haar xml under the /data/data/org.siprop.opencv/files/ directory and passed this file path (i.e. /data/data/org.siprop.opencv/files/haarcascade_frontalface_alt.xml) to the opencv library. This xml was successfully read by the opencv code. But I noti...
this: public void foo() { for (int i = 0; i < rows; i++) // <--- no brace! for (j = 0; j < columns; j++) // <--- no brace! table[i][j] = new Blabla(i, j); other(); } or this: public void foo() { for (int i = 0; i < rows; i++) { for (j = 0; j < columns; j++) { table[i][j] = ne...
Hi This is what i need. Lets say there is a file temp.txt Lets say temp.txt has the following content : name=@name age=@age email=@email And my batch file create.bat should ask for the three parameters as input from the user, and then replace the temp.txt with the respective values. Say. Pls enter your name:Tom Tom - Confirm Y/N...
Hello I have a native code that has UPnP API. Its a tested code that is working fine with the Android UI that came with the code. I have created another UI and I am trying to bring up the UPnP by calling Native UPnP API using JNI to interface my UI with the native code. The device is getting detected in the UPnP network as a UPnP enabl...
I need to use (not implement) an array based version of Dijkstras algo .The task is that given a set of line segments(obstacles) and start/end points I have to find and draw the shortest path from start/end point.I have done the calculating part etc..but dont know how to use dijkstras with my code.My code is as follows class Point { pub...
So I'm a bit lost here... I'm dealing with a video hosting service that, rather then provide the traditional object/embed code, gives you a javascript/html code snippet that somehow renders an embed code within the client's browser. How does this work? Any insight/info would be appreciated as I need to reproduce this functionality for...
Possible Duplicate: FxCop / StyleCop for Delphi? Hi ! Has anyone encountered with some coding style tool like StyleCop, but for Delphi 2010 ? I would appreciate if someone recommends any free tool. ...
I want to a visualize web file compare tool,that can embed into my app,I know there some software like beyond compare,it has done great job,but it on windows & need buy licence,if someone has develop a web version,then it can cross platform, does some already achieve this? if it is python - friendly is great appreciated ...
The target framework is .NET 4.0. My solution is a ASP.NET MVC2 project. I'm using the latest Gallio/mbunit build 3.2.603. When trying to run code coverage on some mbunit tests, I get no results : Empty results generated: none of the instrumented binary was used. Look at test run details for any instrumentation problems. The tested mbun...
I have the following PHP code that I can't seem to get working. I have looked over and over again for the error(s), but can't find it/them. <?php $actkey = rand() . "\n"; $con = mysql_connect("HOST", "USER", "PASS"); if (!$con) { die('Unable to connect: ' . mysql_error()); } mysql_select_db("TABLE", $con); mysql_query("UPDATE m...
I see that in different plugins and codes, but I don't understand what does that function... In the jQuery api isn't referenced! ...
Apart from Dll concept that provides ability of loading/unloading methods or functions at run-time, I'm wondering if a compiler may ever say something like, ok as this particular part of the code takes considerable amount of space in code segment and is never gonna be used again after this point during program execution, it'd be good to ...
Hello! What is the proper way to have a favicon for a website in XHTML? 1.Does it have to be .ico or can it be .gif or .png? 2.Is this the proper code for embedding and rel value: <link rel="shortcut icon" href="http://yoursitedotcom.here/favicon.ico"/> 3.Does the favicon file have to reside in the root of the site or it can be ...
i'm thinking of building a code base for my company - to hold libraries, classes, etc. developed by employees internally and used in different applications in time. The purpose would be code reusability in time. The platform I target is .NET only - winForms, WPF, WEB, Silverlight, and others. I was thinking of building a solution that wo...
Does anybody know what text editor supports a feature which is auto completion for codes in mysql prompt? I really have trouble in finding the answer. I cant find what text editor it is. Im dealing with my research project now. Thanks for replies. ...
for(int i=0 ; i++ ; printf("%d",i)); printf("%d",i); O/P is 1 . If we take i=1 then there is an absurd output and if i=-1 then output is 01. How is the For loop functioning.Plz Help.Thanx. ...
At the moment my Form1 code is extremely heavy, mainly full of menu and control events. One thing I would like to do is organize it in some way, so I could expand or collapse "related code" (in Visual Studio). My first attempt at this was to put code relating to the main menu, for example, inside a nested class called "MainMenu", which ...