instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Can someone guide me on how to send packets in Scapy to an ip address, with all flags in the TCP header set to null ? I have so far tried sending packets without specifying which flags to set, but it seems to set the Syn flag everytime I send the packet.
I would like to know it so that I can learn more about TCP Null S... | stackexchange/codereview |
Is there a way to sort the views that get added to a ItemsControl region? The views being added are registered with the container and added to the region in each unique module.
Some pseudo code...
Shell:
<Window>
<ItemsControl Prism:RegionManager.Region="ItemsRegion"/>
</Window>
Modules: This is the initializ... | stackexchange/codereview |
ID Name Department Salary Designation
---------------------------------------
1 Kent Engineering 100000$ senior-engineer
2 Smith null 50,000$ administrator
These are the records of a big file I have. I need to parse this file to retrieve salary and designation. The key has to be ID,Name,Department and if tha... | stackexchange/codereview |
I am trying to retrieve a specific NSCell data from an NSTableView through [NSTableColumn dataCellForRow] but every time it shows different value for same row and same column. The data source remains the same at all time. The NSTableView is bound to an NSArrayController .Please if anyone can suggest a better way to do ... | stackexchange/codereview |
When dealing with an enumeration containing none, one or many of an item the foreach loop makes it easy to iterate over them and LINQ Select makes it easy to project items from the enumeration.
foreach (var attr in p.GetCustomAttributes().OfType<A>()) ...
When dealing with an enumeration containing none or jus... | stackexchange/codereview |
I want to preview an image before uploading it to the server. I have written a little bit code for it, but it is only being previewed in Internet Explorer, not in other browsers like Safari, Chrome, Firefox, due to some type of security reasons. Is there any solution to preview the image in these browsers?
<body>
... | stackexchange/codereview |
i have 2 projects when the user Click on a button in the first project
he suppose to see the form which in the Second Project ??
i am using C#
| stackexchange/codereview |
I'm trying to use xdebug to debug remotely to my server, I have the following in my php ini on the server:
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
[XDebug]
xdebug.remote_enable = 1
;xdebug.remote_host = "<MYIP>"
xdebug.remote_port = 9000
xdebug.idekey = "netbeans-xdebug"
xdebu... | stackexchange/codereview |
I am developing location based service. FYI, the database will expand vastly as time and location are the variables. I am considering GAE for initial deployment. I am open for any of python or java based development. While calculating the scalability, I am getting confused. I never thought of scalability before as I ha... | stackexchange/codereview |
I'd like to store a few variables which will be referenced throughout lifecycle, starting with a db access in PreInit event. ViewState isn't an option, since it won't persist if saved so early during the page lifecycle. Given that data should not be altered by a user, what would be the best alternative?
| stackexchange/codereview |
I have a really basic question on SQL.
Relational Schema:
Student (Sid, Sname )
Class (Sid, ClassName, mark)
ClassName = { MATH, ENGLISH, PHY, .......}
I want to list out all the student who have taken MATH, and their MATH class average minus the student's math mark
Select DINSTINCT S.Sname, (E.Mark - AVG (E.Mark)) ... | stackexchange/codereview |
I have a running HTTP web application and I am facing problems to make it run over HTTPS.
I am thinking of bringing some HTTPS Proxy that accepts user requests and forward it to the HTTP web app.
What do you think of that? and How can I accomplish that?
| stackexchange/codereview |
I have an ExtJs TreePanel in which i've set the enableDrop as true and set the property ddGroup to one of the groups. I have this another ExtJs view from where i need to drag and drop the images. And i know that ddGroup defined for this is media
However the drag and drop never happens. This is my code snippet:
var tree... | stackexchange/codereview |
Hi i m adding UIView to window.
this view has drawRect as-
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
// Initialization code
}
return self;
}
- (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineW... | stackexchange/codereview |
I am using vb6 and trying to read an mdb file into a
Set rs = New ADODB.Recordset
rs.Open SqlStr, mvarDB
this my criteria string "id = 'SA / -AS 0N' And mp <>'N'", there is a record in the table which id is the above mentioned and its mp column is not N. but when the
rs.MoveFirst
in watch window i can see the val... | stackexchange/codereview |
I have:
I:
public interface I
{
void Something();
}
A:
public class A : I
{
public void Something()
{
}
}
B:
public class B : A
{
}
Why isn't B forced to implement (the decired) Something method, as expected?
Do I really have to inheried I on all my B's(subclasses to A)?
public class B : A, I
{
p... | stackexchange/codereview |
Welcome,
I'm looking for php class what allow me to backup MySQL (5.x) databases under PHP.
I test many from phpclasses but most all are written for mysql 4 and under mysql5, generate wrong code.
Class should allow me to dump my database into file.
easy restore that file.
generated file (.sql) should be compatible w... | stackexchange/codereview |
How do I fill an ArrayList with objects, with each object inside being different?
| stackexchange/codereview |
Really quick question..
Does Linq2NHibernate always create a left join to retrieve relationships? Is there a way that I can get an inner one instead?
Thank you in advance.
Filipe
| stackexchange/codereview |
I am creating a new schema in SQLServer 2008.
Should I create a new user with the same name as schema owner?
Should I use 'dbo' user as schema owner?
| stackexchange/codereview |
I am using Beamer in order to make a presentation. In one of the frames I want to write something like this:
"Italics is like that"
I used a command \it of Beamer for doing this:
\it{Italics} is like that
But as a result I get:
"Italics is like that"
Is it possible to make italics only a piece of text?
| stackexchange/codereview |
I'm attempting to create what a believe (in my ignorance) is known as a class factory. Essentially, I've got a parent class that I'd like to take an __init__ argument and become one of several child classes. I found an example of this recommended on StackOverflow here, and it looks like this:
class Vehicle(object):
d... | stackexchange/codereview |
I'd Like to be able to have my web service accept multiple POST parameters, some of which will be XML. Is this possible? The code below will generate a server error:
WebResponse resp = (WebResponse)req.GetResponse();
string programId = "1";
string statusMessages = statusMessagesXML.ToString(SaveOptions.Disabl... | stackexchange/codereview |
I have a controller post action that receives an IList<> as a parameter, and would like to iterate that list and TryUpdateModel for each item in the list. Like
[HttpPost]
public ActionResult SaveList(IList<Stuff> listOfStuff)
{
// Get existing list of Stuff objects
IList<Stuff> currentStuff = db.GetStuffList()... | stackexchange/codereview |
Good afternoon ladies and gents --
I've been tasked with finding and fixing a bug in an unfamiliar legacy application that had some recent changes made to it, but I don't have an easy way (that I know of) to test my theory. I'm hoping your collective knowledge will verify the test for me.
This application lazy loads lo... | stackexchange/codereview |
I am trying to learn C# coming from a C++ background, but I cannot figure out how to link two source files together. I have a relatively simple program called test.cs and a main.cs. All I want to do is in main.cs say:
#include <"test.cs">.
The closest I've been able to come up with is:
<Compile Include="test.cs"/Co... | stackexchange/codereview |
I'm looking for a C++ container that will enjoy both map container and list container benefits.
map container advantages I would like to maintain:
O(log(n)) access
operator[] ease of use
sparse nature
list container advantages I would like to maintain:
having an order between the items
being able to traverse the lis... | stackexchange/codereview |
I am trying to deploy a web app on an Ubuntu system. The WAR is an EXPLODED folder. There are no issues with build. But I am unable to deploy to Tomcat6 server. Everything was working fine. Same Code, Same files. All of a sudden, unable to deploy.
The main difference I find now is that - the logs at /var/lib/tomcat6/lo... | stackexchange/codereview |
I am currently trying to design a memory dump tool that could get the memory dump of a crashed process from another process. But I am totally new to this and I want to take this as an opportunity to get a solid understanding of memory dump techniques.
I want to know the working paradigm of creating a memory dump for t... | stackexchange/codereview |
I have a page that allow user to upload a photo and the path of the photo would be save in db, which is something like this '~/images/1288598614_house - Copy_000002.png'.
So, i would like to check is the file exists when user retrieve the photo.
I have tried the code below:
Dim myPhoto As String = ~/images/1288598614_h... | stackexchange/codereview |
I have created a app that displays all the content from res/raw folder.
I need that when i click on .doc file it should open and I can view its content.
please help me.
I have ThinkFree.
enter code here
public class FileList extends ListActivity {
public static final Field[] fields = R.raw.class.getFields();
/** Call... | stackexchange/codereview |
I have a Silverlight 4 MVVM app that uses databinding to boolean properties like isEditingCustormer, isEditingOrder, isEditingOrderItem, isEditingEmployee etc. on the ViewModel to set state of certain parts of the View.
The requirement is that only one region should be editable, not two at the same time. Therefore insi... | stackexchange/codereview |
I would like to append a set of conditional where clauses onto the end of an ObjectSet. However, the clauses do not get executed and instead the original query is run, for example:
using (Entities context = new Entities()){
var q = context.AuditLogs;
q.Where(o => o.WebsiteId == 1);
}
The where clause is not executed a... | stackexchange/codereview |
I wrote a nice little script to do some lightweight work. I set it to run all night, and when I eagerly checked it this morning, I found that I had left a module name prefix out of one of its variables. Is there any way to check for this kind of chicanery statically? The trouble is that this thing sleeps a lot, so runn... | stackexchange/codereview |
I have a custom customUIViewController in a UISplitViewController and want to access the instance of the customUiViewController from the detailView (which is another UIViewController inside the UISplitViewController) from another class; how can I do this?
CODE SNIP (Dont worry about the syntax; it is shorten up)
myAppD... | stackexchange/codereview |
Does anyone know the difference between the orientation sensor and magnetic field sensor on Android?
My understanding:
orientation => digital compass
magnetic field => magnetometer
Since I've read that magnetometer is synonymous with digital compass I'm a little bit confused. What are they really?
| stackexchange/codereview |
I'm guessing nope, but you never know.
Browser loads <img src="http://example.net/lolcat.png">
example.net redirects lolcat.png to http://static.example.net/bandwidth-exceeded.gif
Can I detect this?
Cross-browser isn't important, just looking for an option that will work in any 1 popular browser.
So far my best opti... | stackexchange/codereview |
I'm trying to replace the last dot in a String using a regular expression.
Let's say I have the following String:
String string = "hello.world.how.are.you!";
I want to replace the last dot with an exclamation mark such that the result is:
"hello.world.how.are!you!"
I have tried various expressions using the method St... | stackexchange/codereview |
I have some GWT application that run on the server.
we are subscripting with some solution that pings this application in a regular interval of time.
The point is, this solution (service) checks the returned response from the server to contain some pre-defined keywords.
But as you know, GWT return plain empty HTML page... | stackexchange/codereview |
I am a new learner about sensors. I have no knowledge about this sensors. However I have done some sensor module which contains with accelerometer,gyroscope and magnetometer. All of them have 3 axis data (X,Y,Z).Now i have data as a TXT file format but I couldn't find any solution for extraction this data features. I a... | stackexchange/codereview |
There's example HTTP Client at http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/http/client/async_client.cpp
Please help me to change maximum buffer size like explained in following code (it's from examples downloaded with library, not from site):
void handle_write_request(const boost::system::error_cod... | stackexchange/codereview |
My first page contains 3 tabs. I want to retain all these 3 tabs through out my entire application. That means I want to see these 3 tabs in every view. For example : I have 3 views. First view is Main.class. It contains 3 tabs (Home tab, Favourite tab, settings tab). When I am clicking any one tab (Ex: Home Tab), it s... | stackexchange/codereview |
I have logged all my applications transaction using Log4net. Is there any way I can disable and enable logging from a common place without altering the code written for logging.
| stackexchange/codereview |
In perl, I want to check if the given variable holds a floating point number of not. To check this I am using,
my $Var = 0.02 # Floating point number
if (int($Var) != $Var) {
# floating point number
}
But the above code will not work for 0.0,
How can I achieve this?
| stackexchange/codereview |
I've created a class that contains all of the movie clips from the stage. These variables are referring to the instance's name on the stage. Everything seems fine as long as I keep all of my functionality in a single class. However, when I try to use another class to manage the properties of a movie clip, I run into re... | stackexchange/codereview |
how to change to australian date format for this example?
http://trentrichardson.com/examples/timepicker/
| stackexchange/codereview |
Assume that I had the following t-sql:
select * from customer where contains(suburb, '"mount*"').
Now it brings back both: "Mount Hills" and "Blue Mountain". How do I strict it to search only the very beginning of the word which in this case is only "Mount Hills"?
thanks
| stackexchange/codereview |
We get an app that was working fine until update Windows from Vista Home Basic to 7 Home Premium. We use mscomm32.ocx to control serial port, but it seems it's not supported for 64 bits OS.
Each time we try to read the port: Thisform.msCommControl.Input We got the following:
OLE IDispath exception code 0 from MSComm:... | stackexchange/codereview |
We have an object of class Asset. This Asset has an interface member EntityCollection of type IList<AssetEntity>. In a .asmx web service, we are serializing this Asset Object into XML and returning this XML.
But we are getting an error "Cannot serialize member EntityCollection of type System.Collections.Generic.IList[A... | stackexchange/codereview |
I have a NSMutableArray, each item in this array is different class. In each class has many field such as CPPlot, identifier,... (I am using CorePlot to develop a stock application). Now I would like to store this NSMutableArray to load when user reopen application, this will load all the chart they used before.
I try ... | stackexchange/codereview |
I have implemented silent error reporting (in background) for iPhone app by using try catch. This reports my server through webservice.
Do I need to notify the user if I am sending the error report. Will the app store reject if I do the silent error reporting.
Regards,
Malleswar
| stackexchange/codereview |
I have a parent form called ISSUE.
This Issue form has a button called IG on the Form Ribbon that opens custom Html Page.
Now after the Submit button is clicked on the Custom form that performs some Inserts into CRM and Closes directly. Now I want to refresh the parent ISSUE form on closing the child HTML Page to refle... | stackexchange/codereview |
I am on my first Android application and I am on a timeline so details and examples will be useful since my knowledge is still minimal.
I want my first screen to present the user with a list of activities to choose from. In my situation it is a recipe app where the user first chooses the type of food, such as, Beef, Ch... | stackexchange/codereview |
I need to unrar some files in Objective-C (iPhone). I tried to compile the unrar sources in xcode, but failed.
Appreciate it if some experts could teach me how to unrar in Objective-C (iPhone).
Any suggestions is welcome. Thank you.
| stackexchange/codereview |
DROP TABLE IF EXISTS `items_stock`;
CREATE TABLE IF NOT EXISTS `items_stock` (
`ItemStockID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ItemID` mediumint(8) unsigned NOT NULL,
`Date` date NOT NULL,
`CurrentStock` decimal(14,2) NOT NULL DEFAULT '0.00',
`CreatedBy` int(5) NOT NULL,
`CreatedDate` datetime NOT ... | stackexchange/codereview |
Below is a script I am using to modify some files with placeholder strings. The .htaccess file sometimes gets truncated. It's about 2,712 bytes in size before editing and will vary in size after editing depending on the length of the domain name. When it gets truncated, it ends up around 1,400 bytes in size.
$d_part... | stackexchange/codereview |
Hello everybody
How can I add something in my div (something like a banner) trough my codebehind?
<div id="myDiv" runat="Server">
</div>
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
?????????
}
| stackexchange/codereview |
I'll make this clear and simple, since I'm on a deadline here. Doing some reports for my section, and I came to a part where I could really use an interpolation in Excel.
Now, I've never had any practice with its functions, or VBA in general. So, is there a place where I could, or do anyone of you guys know some, ... ... | stackexchange/codereview |
i have written a perl script for inserting data from a text file to database but i want to know how to add a quality check to it ie hw can i check the data inserted into database or not ie it should display saying the data has been inserted successfully.. and also when the date had been inserted from text to database i... | stackexchange/codereview |
I have created a Silverlight 4 application, that is running out of browser. As you will know, there is a function that is checking if a new version of the app is available and installing it.
But what if I want to only check for the update and not installing it?
Personally, I do not like applications that silently updat... | stackexchange/codereview |
I need to track size change of div control. Is there are any event like onresize that works for div? How could I do this? It should works in IE and Firefox.
| stackexchange/codereview |
I am running iPad simulator version 4.0 - and it appears as though it has no Korean language support.
Does anyone know why, or if there is a way to enable this?
I had Korean support in my iPhone app, and the simulator for that had the proper language support.
| stackexchange/codereview |
Lets say I have a function
str_rev(string &s, int len) {}
which reverses the string s of length len
I want to reverse a substring of long string starting at index 5 and of length 10
for this I was forced to first call substring function and then call the str_rev function passing the substring
sub_string = long_str.su... | stackexchange/codereview |
I come across to a strange behavior while trying to override a method with default accessor (ex: void run()).
According to Java spec, a class can use or override default members of base class if classes belongs to the same package.
Everything works correctly while all classes loaded from the same classloader.
But if I ... | stackexchange/codereview |
I need to draw an image in a rectangle so for that am using drawRect method.i observed that it is not being called.The output i can see only the blank screen.Am using MAC OS and i need to test the App in Iphone OS 3+.Please can anyone solve my problem.Here is my code:
-(IBAction)calling
{
int a=0;
a=a+1;
[self... | stackexchange/codereview |
I've been stuck for a few hours over this. I found lots of information online but nothing that solved my issue.
I'm hosted on Dreamhost with a custom PHP installation (5.2.14).
The site returns a 500 Internal Server Error with this .htaccess file.
It looks like the rewrite rule is also applied to my php.cgi file but I ... | stackexchange/codereview |
I want to change the class loader delegation order on a web module deployed to WAS6.1 from it's default of parent first to parent last. The reason is I would like to use JSF 1.2 etc and WAS6.1 doesn't normally support it.
In the integrated solutions console for the locally deployed instance, under Enterprise Applicati... | stackexchange/codereview |
i've been reading up whether to use myisam or innodb for a log table (lots of writes, very few reads). While some people say that myisam is overall faster and less resource-intensive, other people say that myisam would actually be the worse choice because it only has table-level locking.
Does anybody have actual exper... | stackexchange/codereview |
My app ends up doing a lot of background processing via Actors, specifically loading Mapper instances and then doing some work upon them. It's very repetitive and I'd like to cache some of these lookups across my Actor code.
I'd typically use a ThreadLocal for this. However, since the thread initialization is handled... | stackexchange/codereview |
When I check for a table's visible indexPaths with 'indexPathsForVisibleRows' during UIScrollViewDelegate's scrollViewDidScroll and scrollViewDidEndDragging, it seems to be accurate.
But sometimes just when scrolling and dragging is ending and 'cellForRowAtIndexPath' is invoked, the call to 'indexPathsForVisibleRows' r... | stackexchange/codereview |
I have a photo gallery with a bunch of thumbnails.
<img src="/images/33113_thumb.jpg" class="thumb" />
<img src="/images/1233_thumb.jpg" class="thumb" />
<img src="/images/99513_thumb.jpg" class="thumb" />
What I'd like to do is use jQuery so that when a user clicks on an image, I can load the full-size image into vie... | stackexchange/codereview |
I am looking for a way to modify font types in ggplot. At the moment I would be happy enough to simply change fonts to the 'courier' font family, but ultimately my goal is to call a custom font template--any input on this latter point would be very much appreciated.
I've done a bit of homework, looking at the followin... | stackexchange/codereview |
I know it sounds like a redundant and obvious/stupid question, but the documentation doesn't explicitly state it.
If I initialize a variable inside main would it get to be reinitialized each time a glut event occurs (like the window gets resized, the mouse moved, a key gets pressed, etc.)?
| stackexchange/codereview |
I wonder if it is possible to assign temporary/ virtual IDs for a query result?
For instance, I have this as my query,
SELECT
pg_id AS ID,
pg_url AS URL,
pg_title AS Title,
pg_content_1 AS Content
FROM root_pages
ORDER BY pg_created DESC
output:
ID URL Title Content
53 a A xxx
40 b B ... | stackexchange/codereview |
I'm trying to solve my first really hard EXC_BAD_ACCESS problem. I see from a lot of tutorials and blogs that I can use Zombies to help me figure out where I'm going wrong. But I don't think my zombies are working, and I'm DEFINATELY not getting anything useful out of the console.
When I start the program I see this: T... | stackexchange/codereview |
I want to check if two references point to the same object. It seems I can simply use
if ($ref1 == $ref2) {
# cheap numeric compare of references
print "refs 1 and 2 refer to the same thing\n";
}
as mentioned in perlref, but I vaguely remember seeing the use of some function for the same purpose. Is there any rea... | stackexchange/codereview |
I have a database to keep track of the services clients have. But need to be able to find all the services (on different rows) and display them in an HTML table.
i.e.
Service Company Status
-------------------------------------
Service 1 Company 1 Complete
Service 2 Company 2 Pending
Service... | stackexchange/codereview |
i have a UItableview and i want to change the cell background when it is seleceted and keep it like that so i tried to use
[cell setBackgroundColor:[UIColor purpleColor]];
but that made other cells get colored at same time and i dont know why
i also tried to use
[cell.textLabel setBackgroundColor:[U... | stackexchange/codereview |
ColdFusion's LSCurrencyFormat function appears to be using round-to-half-even (banker's rounding). Is there anyway to change this? I'd like to change it to standard round-half-up rounding that most people are taught in grade school.
An example:
LSCurrencyFormat(39.7340): $39.73
LSCurrencyFormat(39.7350): $39.74
LSCurre... | stackexchange/codereview |
I have used a external js file for a upload operation in my page.. once the file get loaded in temporary folder, it gets loaded from there even if new changes are made the old version that exist in temp folder gets loaded... i have written
Response.Cache.SetCacheability(HttpCacheability.NoCache);
on my page But it sti... | stackexchange/codereview |
Certain websites (notably Facebook games) have a step by step tutorial for new users, where JavaScript is used to create a pop-up which tells the user where to click next and what is happening.
How does one create such a system? What sort of architecture is required?
I suppose that a script is loaded if a flag is a tut... | stackexchange/codereview |
I need help to remove the string /* s */ (comments in .c and .h files) from some files using Ruby. Is it correct to use gsub to do this. I know that this string is always placed at the beginning av a line.
thx.
| stackexchange/codereview |
What is the native database the windows phone use like (coredata and sql-light in the iphone)
Do you know a manual that explain how to use those DB's... preferably with code samples.
I don't like to use DBs no matter how good they are if they are not considered main stream such that I can trust future microsoft versi... | stackexchange/codereview |
I was sent some Java code that uses classes in the sun.awt.shell package, which is not part of the JDK public API, so Eclipse will not compile the project:
Access restriction: The method getIcon(boolean) from the type ShellFolder is not accessible due to restriction on required library /System/Library/Frameworks/JavaV... | stackexchange/codereview |
Recently my linux server got infected with malware and as a result, I have 100+ files infected with a single line of Javascript code:
document.write('<sc'+'ript type="text/javascript" src="http://alienradar.ru/Kilobyte.js"></scri'+'pt>');
I would be too tiring to remove it manually, so I dig into google (not knowing m... | stackexchange/codereview |
I have this table
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(10) unsigned NOT NULL auto_increment,
`thread_id` int(10) unsigned NOT NULL,
`forum_id` tinyint(5) unsigned NOT NULL,
`cat_id` tinyint(3) unsigned NOT NULL,
`message` mediumtext collate utf8_unicode_ci NOT NULL,
`userid` int(10) unsigned NOT NU... | stackexchange/codereview |
I'm developing an app in maven and it's deploy name is concatenation of artifactId + "_" + groupId + "_" + "packaging" + "_" + version which is pretty ugly. And I'm lookuping for an EJB and I would need to change the uri after eventual version change.
Do you know how to change this deploy name?
I'm deploying it via net... | stackexchange/codereview |
I am working on an app with xml parser, uiwebview, navigationcontroller, displaying a lot of images on the main controller, that remains in the memory throughout the whole life of the app. I store my data using core data.
I tried to figure out the memory footprint of the application since I am getting the following war... | stackexchange/codereview |
I need my query parser to only read fields that are "text".
for example, lets say my query is:
text:"this fox" OR title:"brown dog"
for highlighting purposes, i need the parser/searcher to only search using the text:"this fox" part.
in 2.4 this worked fine, but since upgrading to 2.9.3, something has changed.
example c... | stackexchange/codereview |
could anyone please explain what's wrong with it ? am I doing something wrong ?
>>> class qw:
... def f2x(par1, par2, par3):
... print par1, par2, par3
...
>>> obj = qw()
>>> obj.f2x("123", 13, "wert") Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f2x() takes exa... | stackexchange/codereview |
is it possible to access the Cacti RRD (Round Robin Database) from a different machine over the network? We want to be able to create our own custom graphs by querying the Cacti RRD database (e.g. given a router hostname, give me the bandwidth usage on all its interfaces for the past 4 hours). So all we really want fr... | stackexchange/codereview |
It's been 3 days since I've programmed in objective-C and I still don't quite understand the concept of self.
When should we use a self. in an implementation code?
If I understand this correctly if I have defined it as a property then I should use self.
But then the question is why? I've been reading many i-phone prog... | stackexchange/codereview |
I'm having a really rough time wrapping my head around prototypes in JavaScript.
Previously I had trouble calling something like this:
o = new MyClass();
setTimeout(o.method, 500);
and I was told I could fix it by using:
setTimeout(function() { o.method(); }, 500);
And this works. I'm now having a different problem, ... | stackexchange/codereview |
I'm writing a task manager app that downloads a list of tasks and subtasks from a server and creates a new checkbox for each item and adds it to a linear layout (called ll below). The problem I'm having is that I cannot set the "layout margin left" using java like I can with XML (this is for the subtasks to indent them... | stackexchange/codereview |
I am running hadoop in Pseudo-Distributed mode and using hadoop streaming to do my map-reduce operations. But the problem is I keep getting Streaming Job Failed error message. Following is the log:
stderr logs
java.io.IOException: Cannot run program "input/StdInOut.exe": CreateProcess error=2, The system cannot find t... | stackexchange/codereview |
I am trying to create a program in C# in Visual Studio which would acquire html source of a current opened (or selected, or all) tab(s) in Internet Explorer 8/ (prefered) 9. I am tired of copying by - browser-> View Source, alt+a, alt+c, program -> alt+v
Anyone got an idea how to solve it?
| stackexchange/codereview |
I'd like to use NDepend at home for an open source project, but I can't find if it run on linux with mono 2.6.8.
Any one have succesfully used it on a mono only machine?
| stackexchange/codereview |
What is TCP response packets?
How to meet this requirement in access-list on a router?
| stackexchange/codereview |
Though I liked LINQ very much and using in our current project, sometimes we are facing problem to solve the following.
Returning multiple results (tables) with single DB call from database and binding the same in ASP.NET.
In case of stored procedures, using single SP we can perform multiple operations with single DB ... | stackexchange/codereview |
I'm new to hadoop. I'd like to run some approaches with you that I came up with.
Problem:
2 datasets : A and B.
Both datasets represent songs: some top level attributes, titles (1..), performers (1..).
I need to match these datasets either using equality or fuzzy algorithms (such as levenshtein , jaccard, jaro-winkl... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.