instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am tryin to develop a game in j2m using eclipse. To handle floating point I have downloaded the MathFp class. I did the following steps i placed the mathFP.class file in net/jscience/math/kvm/ directory 1> Ziped the folder containig the downloaded class. 2> java build path->libraries->ADD jar->selected my zipped fol...
stackexchange/codereview
I am looking at this github app, and they have a module named AuthenticatedSystem. I googled and found a rdoc, but can't find the source code for the module. Anyone heard of this? I know there are other authentication modules out there, but I am looking to just learn from this one as it looks simple to me.
stackexchange/codereview
Update: html5lib (bottom of question) seems to get close, I just need to improve my understanding of how it's used. I am attempting to find an HTML5-compatible DOM parser for PHP 5.3. In particular, I need to access the following HTML-like CDATA within a script tag: <script type="text/x-jquery-tmpl" id="foo"> <tabl...
stackexchange/codereview
I have billions of records (keys/values) that I want to compactly store in memory, and the only operation I need to support is looking up a value by its key. Keys and values are both small strings. The most important thing is how compressed the data structure is; it should use the internal structure of the keys in a de...
stackexchange/codereview
So I have two files with similar information. EXAMPLES test.txt 1=1 2=2 3=3 test_2.txt 1=1 2=4 3=5 4=4 5=5 6=6 Now I want to print each hashes keys and values. my %hash1; my $scalar_value1; my $scalar_value2; my $file = "/test/test.txt"; open (TEST, "<$file") or die "$!"; while (TEST) { ($sc...
stackexchange/codereview
"The SSL Certificate is not trusted." dialog occurs in Adobe AIR application. How can I detect this situation before it happens? (Actually I want my app to bypass the warning...) Please check the following code: var request:URLRequest = new URLRequest('http://bit.ly/dzKg2q'); request.followRedirects = true; request.man...
stackexchange/codereview
i'am looking for a way to attune a song to the heart rate of someone. I have a song in mp3 or wav format and i want to accelerate the speed of it while playing it. Or playing it in loop and between each loop accelerate it or slow it. Ideally it will be in python. Do you know a way to do that ? Regards and thanks. Bussi...
stackexchange/codereview
I am a little stuck. I can't figure out a much bigger problem than this, so I am going to the roots to eventually build my way up! I can't print the selected item in the combo box, currently I have an ActionListener for it: box.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt) { ...
stackexchange/codereview
Could you please give any basic example of a kernel timer (start_ktimer) implementation in Linux?
stackexchange/codereview
I'm writing a parallel program using Open MPI. I'm running Snow Leopard 10.6.4, and I installed Open MPI through the homebrew package manager. When I run my program using mpirun -np 8 ./test, every process reports that it has rank 0, and believes the total number of processes to be 1, and 8 lines of process rank: 0, to...
stackexchange/codereview
How do you get an iframe to fill up the height of the screen minus a 33px footer space at the bottom? I need the scrollbars of the iframe (both up and down arrow) to show. And it must be without Javascript (so it can degrade pleasantly :). (The only thing I've found on SO is to use padding-top which doesn't seem to w...
stackexchange/codereview
I need advance I am newbie in design pattern. I am developing messenger like ICQ, Skype, Pidgin-this is school project, it does not work with ICQ, Skype protocol, it works with own protocol. This messenger provides this functionality{methods}: *Log on on sever *Load contact list *Send message *Recieve message *Send co...
stackexchange/codereview
on my site, I have a link in my nav bar that says 'refer a friend' using jquery a box pops up with two input boxes, one that is a place to enter the persons email in which you want to send a referral email and one box to enter in their name. I am looking for a good tutorial in how to get started about dynamically addin...
stackexchange/codereview
I have a (hopefully) quick SQL question that is driving me nuts and I have not been able to locate an answer anywhere. I have the following SQL trigger: DECLARE @ABCOwnerGroup varchar(30) DECLARE @DEFOwnerGroup varchar(30) SET @ABCOwnerGroup='GROUP ONE' SET @DEFOwnerGroup='GROUP TWO' etc.. --IF OWNERGROUP IS MISSING (...
stackexchange/codereview
I'd like to set up my .vimrc so that NERDTree is open whenever vim (or MacVim) is called from the command line with a directory argument, but closed when vim is called with a file argument. I looked through the list of vim's built-in variables but couldn't find anything that looked promising.
stackexchange/codereview
Why the last section is not displayed at all? AFAIK It should. It starts with : <LinearLayout android:orientation="vertical" android:layout_height="match_parent" android:layout_width="70dip" android:minWidth="70dp" android:layout_weight="1"> Thanks in advance. Full XML layout: <?xml version="1.0" encoding="utf-8"?> ...
stackexchange/codereview
I've got a little problem with UserScripts in Google Chrome, to be precise with getting to the object window of an iframe. Very doable via the Google Chrome console, very impossible via the UserScript or so it seems so far. To be honest it seems as if it was on purpose, as if there was some reason why I'm not allowed t...
stackexchange/codereview
I can understand what inner class is and how to write program. My question is in what situation do programmers really need inner class?
stackexchange/codereview
Any simple code snipped to GET the number of subscribers to any feed URL? Thanks!
stackexchange/codereview
Does anybody know how I can see the code of a matlab p-code file?
stackexchange/codereview
I'm using Java 6. For simplicity, everything will be public. Suppose I have this simple class. public class A{ public String name; public String data; } I want to put my class A objects into a HashMap. I will use the field name as the key, and the whole object as the value. I will only search for an object in...
stackexchange/codereview
I notice that most android apps have some sort of standard in that they all look similar. Most of them have some sort of list of Text that are click-able. It's somewhat hard to explain but they look really nice and I was wondering is there some sort of tool or api that allows me to change the look of an app to make i...
stackexchange/codereview
what i want is this the date variable which i insert and select back in my table to echo should display the correct date like today date is 2005-10-27 when i insert the variable date and select to echo it display this 2012-10-20 also my U_date field i choose date for the type lastly how can i make the date to look like...
stackexchange/codereview
I'm not clear on the difference between a CA key and a certificate. Isn't a CA key simply a certificate? Let me try and clarify with an example. I have a client and a server. I'm only trying to validate my connection to my server and not trying to establish trust to others so I don't care about signing with a real C...
stackexchange/codereview
I'm using win32com to write some dates that I receive from a database, and my problem is that I'm having values like '01' and in Excel is just '1' - not '01'. Example: b = row[1] # b has the value 01 c = "-"+b+"-" # c has value -01- sheet.Cells(1,1).Value = b # I have in Excel '1' ; I've try with str(b), ...
stackexchange/codereview
is this in 3NF ? create table movies( id numeric primary key not null default autoincrement, name varchar(50) not null, release-date Date, price numeric, rating numeric, length numeric, description varchar(1500) ); create table movies( id numeric primary key, name varchar(20) ); create table ...
stackexchange/codereview
In my windows service I create one "parent" foreground thread that in turn spawns "child" threads using ThreadPool (which means they are background) to execute tasks. What is the best way to close foreground thread gracefully on windows service stop? Here is my current implementation (stripped out of task-specific logi...
stackexchange/codereview
How can you loop through all the "words" (spaces deliminate words) in an RTB (WPF Control) to see which ones are italicized? thanks
stackexchange/codereview
Possible Duplicate: Get QueryString values with jQuery Hey guys, I got a question if i have a tag that looks like this: <a href="?page=cart&amp;action=order&amp;ISBN={$boek.ISBN}">Add to basket</a> What would be the best way to select the value of ISBN in jquery?
stackexchange/codereview
I'm a long-timed Mutt user. Is there a way to read, delete and reply to Facebook private messages in mutt-like style, from a bash Ubuntu/Debian terminal? Thanks
stackexchange/codereview
In WPF I could apply a style to a target type without giving it a name. This would effectively style all elements of that type without explicitly setting the style on each button. <Style TargetType="{x:Type Button}"> <Setter Property="Foreground" Value="White" /> </Style> <Button Content="Button1">...
stackexchange/codereview
From within an action (not the view), I want to output some quick debug code. Does rails have a method for this? in asp.net I would do: Response.Write("hello");
stackexchange/codereview
I want to pass a uid to the next page through a query string. How do I pass it and how do I get it on the next page?
stackexchange/codereview
Hey guys, when clicking to add a new plugin ("Add Plugin" on a "Page" I get a 500 error. Using firebug I got this traceback: Environment: Request Method: POST Request URL: http://192.168.1.10:81/admin/cms/page/1/add-plugin/ Django Version: 1.2.3 Python Version: 2.6.6 Installed Applications: ['django.contrib.auth', 'd...
stackexchange/codereview
I have this line in my code: <label style="font-weight: bold" for="sedii18n_codice_paese_indirizzo">Codice paese indirizzo</label> but the label is showed normal. If I go to the Chrome Inspector I can see this: font-weight: normal !important; If I change font-weight in the inspector the weight of the font is modifie...
stackexchange/codereview
I need to implement a chat system for a website, so that customers of the can talk to their customer services representatives one-on-one online over the website. So what I need is a system which does: Shows a list of representatives in the browser, with status indicating if they're online or not Allows the user to ope...
stackexchange/codereview
I tried to bind my NSArraycontroller to an NSMutableArray; the array holds objects of type "iData" (it's a custom class). The class further contains some NSMutableString variables which are set as keys for KVC. Then I bound the my NSTableColumn to the NSArrayController and set key model paths of every column respective...
stackexchange/codereview
I am trying to upgrade my application from Weblogic 8.1 SP 6 to Weblogic 10.3. For this, I have installed Weblogic 10.3 and created a domain. WLS 10.3 started successfully from my domain. I recomplied the code in Java 1.6 and deployed successfully with out any code changes. I have deployed the application and trying t...
stackexchange/codereview
I'm editing a simple CSS file in VS2010 and the editor seems to have a rather limited understanding of CSS, for example: #my-rule { position:relative; } generates a warning: Validation(CSS 1.0): 'position' is not a known CSS property name I'm guessing that there is an option some where to change the CSS validati...
stackexchange/codereview
I have a issue about spinner. I have many images in spinner when I select some image it shows the image and if I change the orientation like change to landscape its selected item list starts pointing the top one in the list. How shall I prevent to do that?
stackexchange/codereview
I'm having a problem with a LINQ expression. With this class: class MyClass { public string of { get; set; } public string order { get; set; } public int qty { get; set; } public override string ToString() { return string.Format("OF: {0}, Order: {1}, Qty: {2}", of, order, qty); } } and...
stackexchange/codereview
I'm making some things with jQuery ajax function, and I have a problem when I put a form in the middle of the html. In a nutshell: I have a dummy form that is controlled by the ajax, when it is submitted the ajax function complets the inputs below. The data submited by the ajax is contained in a form tag that is submit...
stackexchange/codereview
I am attempting to use a GridView in asp using VB and I get an error message about content. I did some research and reformatted the XML document the datasource is referencing but still cant seem to get the GridView to generate. Error Message: "The data source for GridView with id 'GridView1' did not have any propertie...
stackexchange/codereview
I'm trying to use a command-line client to automate some work on an ASP.NET based website and have run into an issue with authentication that I've never seen before and am wondering if anyone else has. When I pull out my browser inspection tools I notice "login.x" and a "login.y" values posted that are integer values a...
stackexchange/codereview
I'm having trouble understanding how exceptions should propagate. My code (quite similar to the generic code below) executes otherCode() and fails to continue outer when doSomething() throws the exception. I need to loop over parsing a bunch of files, some of which may be formated incorrectly (causing an exception), ...
stackexchange/codereview
My standalone Windows app. is written on C# 2008 and back-end is MySQL 5.1. In a Windows Form, I have a TextBox control on top and a DataGridView below. Initially, as the Form loads, the DataGridView is filled with Item Names of products in sorted order. As and when the user starts typing few letters in the TextBox, th...
stackexchange/codereview
I would like to know how I can generate system wide events programatically on Windows. I am thinking of generating system wide events such as key presses, touch events and mouse clicks mainly. Is it possible to generate these events with an user mode application or I need to write drivers for this? Any samples or link...
stackexchange/codereview
Hey. I am trying to parse some JSON into HTML using jQuery. I’ve checked to see if my API request is working, and it is. I think it gets stuck when appending the HTML. $('button').click(function(){ $.getJSON('http://api.songkick.com/api/3.0/events.json?apikey=MY_API_KEY&location=ip:94.228.36.39', function(data) { ...
stackexchange/codereview
How can I perform web.config transformations using Visual Studio 2008? Someone had asked me if you can perform config transformations in Visual Studio 2008. I know you can as I do remember several articles on this. However, I can't seem to find any of the links as of now. Can anyone point to an article on Google/Bing/S...
stackexchange/codereview
I have been trying to use the comments.add REST api method to add comments to objects. I have all the publish_stream permissions and access_token's but its coming back with a 805. Anyone know how to get it to work? I'm trying to comment on a photo and I'm passing in its object_id.
stackexchange/codereview
Can you guys give me opinion on these scenario: 1. data list is large and update quite often 2. data list is small and does not update that often 3. any other interesting case that you guys think a noob like me should know
stackexchange/codereview
I try to convert a UTF8 string to a Java Unicode string. String question = request.getParameter("searchWord"); byte[] bytes = question.getBytes(); question = new String(bytes, "UTF-8"); The input are Chinese Characters and when I compare the hex code of each caracter it is the same Chinses character. So I'm pretty su...
stackexchange/codereview
Possible Duplicates: What's the comparison difference? Null check in Java Most of the developers have the habit of writing the null checking with null in the left hand side.like, if(null == someVariable) Does this help any way? According to me this is affecting the readability of the code.
stackexchange/codereview
Considering the code below: xmlns:interactivity="clr-namespace:Microsoft.Expression.Interactivity;assembly=Microsoft.Expression.Interactivity" ... <ToggleButton IsChecked="{Binding Path=IsGlobalControllerAttached}" Command="{Binding Path=AttachDetachGlobalControllerAction}" ToolTip="{Binding Path=GlobalControllerTo...
stackexchange/codereview
How should I go about identifying an android user to a server. Should I get the IMSI number and some salting algorithm? Considering androids space and performance limitations is there a library that isn't too heavy that I can use to do the calculation?
stackexchange/codereview
I want to implement a IPSEC protocol in java. I want to know how to create our own protocol. And how to embedded this protocol with packet. Please provide some code example so that it is easy to understand.
stackexchange/codereview
Does the stack pointer grow up or down? Espacially in Linux/Unix and Windows
stackexchange/codereview
In Java I want to store elements in ascending order by size. Before insertion I need to treat all the smaller elements. So I start enumerating the list treating smaller elements, and when I meet a larger element, I want to insert the new node before this larger element. What data structure would be the good choice? Arr...
stackexchange/codereview
When I use telnet to view my web, I get these weird numbers/letters in the output. This does not happen in a browser and they are definitely not in my source code. I have checked other sites and they do not have them. Any ideas why ? Are they garbage ? How can I get rid of them ? telnet www.mysite.com 80 GET / HTT...
stackexchange/codereview
Sory for the title and the topic, I didn't really know where to put my question :) . I'm looking for a way to automatically get the HTML source of an openned page in firefox so I can use it in a C# application. For example, I would browse a page in firefox. When I would like to get some data I would start my program an...
stackexchange/codereview
const struct sockaddr FAR* name,
stackexchange/codereview
Here is what happens to some users of IE8 when using the website i am responsible for: person logs in, credentials are verified, zend auth is created. After login, user is redirected to the default page. the default page has 5 ajax request that start on document ready. The ajaxes somehow don't have the php session in...
stackexchange/codereview
I am tracking a very tough memory leak (or more likely abandoned memory) situation. I do the following: 1) start my application 2) get to a point where the application will show the leak 3) start instruments using the 'allocations' choice 4) attach to my process and start recording 5) take an initial heapshot 6) take...
stackexchange/codereview
This question has been asked before, but it was answered a few years ago and the answer is refers to a broken link and is probably no longer the best method. pyxiv2 looks like it would do the task, but it has a lot of dependencies for a seemingly simple task. I'd also like to know what values will no longer be valid fo...
stackexchange/codereview
I want to find seed data to load into my dictionary. I just need the word's orthographic representation (letters) and the definition. I'm looking for a single text file that contains this information to parse and then load into my db. I'm using rails so if there is a gem or plugin that can do this that would be nice i...
stackexchange/codereview
Here's the situation: I have three files, Test1.cpp and Test2.cpp. Test1.cpp can be compiled as-is into a stand-alone application. Test1.cpp also contains some functions that I would like to re-use in Test2.cpp. I'm using an #ifndef #endif block to conditionally exclude the main function of Test1.cpp so that when I ...
stackexchange/codereview
Firstly, I want to have a clearly overall look at MFC, Win32API . Is: Win32API: The first layer between hardware and software in prog [ except assembly ] MFC : A wrapper by Microsoft ? It helps us in design GUI and a lot of library for easier and faster programming. My problem is : I want an easy coding in GUI, no need...
stackexchange/codereview
(Sorry in advance if the question is stupid or obvious -- I don't have a lot of experience with Haskell). Is there a way to express that a type should be an instance of a typeclass in more than one way? This is best illustrated with an example (which is probably somewhat silly): In mathematics, we can say that a semiri...
stackexchange/codereview
So, I've managed to get myself stuck in a situation where a database full of images ( transparent images of various products ) needs to be placed on the stage, all of which need to be aligned the same by the products height. My problem is that the png's of products are 'floating' and I have no control of where about's ...
stackexchange/codereview
Is it true that writing LINQ queries is not easy for complex queries? select a.sNavID, a.sNavText, a.sNavText as EName, ' '+a.sNavText as NameDisplay from ContentPageNav as a where a.navID=0 union select b.sNavID, a.sNavText + ' >> ' + b.sNavText as Name, b.sNavText as EName, ...
stackexchange/codereview
How do you create a list with a single value in R? For example, I want a list of 50 zeros. What is the easiest way to define this?
stackexchange/codereview
I started doing game for my school project in C++ with SDL library. But I cannot find what am I doing wrong in code below. I am using VC++ 2008, here is the compilator output: 1>Compiling... 1>initGame.cpp 1>.\dec.h(4) : error C2065: 'SDL_HWSURFACE' : undeclared identifier 1>.\dec.h(4) : error C2065: 'SDL_DOUBLEBUF' :...
stackexchange/codereview
I need to implement a system to limit the number of users that can concurrently use my app. I am thinking the best way to go is to count the number of sessions currently active and then limit based on that. How can I count the number of sessions currently active. I am using memcached to store my sessions if that makes ...
stackexchange/codereview
Hi I'm trying to reach this goal but as far as I am, I've got nothing. I wish to add some static method to string type, which would return new changed string. I've got: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Security.Cryptography; using System.Text; namespace ...
stackexchange/codereview
I need to add: an ID to the table in my form a numbered sequence of classes to a certain amount of TD's in every next TR in that table (three td's in this case) I've got next html-model: <form id="myform"> <table> <tr> <td>some text</td> <td>some text</td> <td>some text</td> </tr> <tr> <td>some text</td> ...
stackexchange/codereview
I see a lot of work at the moment on Entity Modelling in Code and interest in functional Programming. After some years working in Object Oriented Systems I have time and time again come up against the "Impedance Mismatch". Since Transact SQL implements some FOP with datasets being described as Sets in a declarative wa...
stackexchange/codereview
What I have is this object.innerHTML which is this: <TABLE > <TBODY> <TR> <TD > <IMG id=ctl00_Def_ctl00_ucXXXControl_gvGridName_ctl00_ctl05_imgXYZError src="etc/exclamation.png"> </TD> <TD> <SELECT id=ctl00_Def_ctl00_ucXXXControl_ctl00_ctl05_rcb123 name=ctl00$Def$ctl00$ucXXXControl$gvGridName$...
stackexchange/codereview
How can I dynamically change the background color of a button in Tkinter ? It only works when I initialize the button: self.colorB = tk.Button(self.itemFrame, text="", bg="#234", width=10, command=self.pickColor) I've tried this: self.colorB.bg = "#234" but it doesn't work.. thanks
stackexchange/codereview
I'm currently working on a C# application. What I would like to do is display a map of the UK, just a JPEG image (if possible), which also, when clicked, generates geographic coordinates of the point clicked. Ideally what I would like to move onto is displaying a marker at two points clicked with a line drawn between t...
stackexchange/codereview
<?php class a { public function foo() { echo __METHOD__ . PHP_EOL; } } class b extends a { public function foo() { $this->foo(); # I want to call a's foo method here. echo __METHOD__ . PHP_EOL; } } class c extends a { public function foo() { echo __METHOD__ . PHP_EOL;...
stackexchange/codereview
I try to make a small script, using c shell, that will take a file made of several lines, each containing a name and a number and sum all numbers that a have certain name. How can I put into a variable the next line each time? the summig part I do by: (after I'll be able to get a full line to $line) set line =($line) @...
stackexchange/codereview
We are trying to print to a PDF printer in an unattended application, and the filename that the PDF printer chooses is based on the Document Name that is sent to the printer. When printing in VB6, the document name that is sent to the printer is the title of the application (App.title). So, one way that you can get th...
stackexchange/codereview
I have a class function that I want to start up as a thread. The function takes as its argument a tuple value. The function works fine but my initial setup throws a TypeError. Here's some sample code: import threading class Test: def __init__(self): t = threading.Thread(target=self.msg, args=(2,1)) ...
stackexchange/codereview
i am using images that are 2048 x 500 and when I use cvShowImage, I only see half the image. This is not a big deal because the interesting part is on the top half of the image. Now, when I use the mouseHandler to get the x,y coordinates of my clicks, I noticed that the coordinate for y (the dimension that doesnt fit i...
stackexchange/codereview
Is there a way of profiling only slow PHP pages on a production server? At the moment we're logging slow pages to a text file, but without more information it's hard to say why they're slow (not consistently slow). I've used the Xdebug profiler before, but I really don't want to enable this on our production servers as...
stackexchange/codereview
I am finding a way to draw image with per pixel alpha using UIView on iphone, any one have tried that?
stackexchange/codereview
Is it a good idea to do the following in C++: typedef std::map<std::string, boost::any> MyVals; // Is the following typedef'd type inside a map a good idea? typedef std::map<std::string, MyVals> TagValues; These maps will be used a lot for sequential insertion and removal.
stackexchange/codereview
I have a query SELECT A.a, A.b, A.c FROM A LEFT JOIN X ON A.a = X.x WHERE X.x IS NULL which finds entries in table A which have no corresponding entry in table X. How can I insert the results of this query into table X? If I had only a few entries I would do INSERT INTO X(xa, xb, xc) VALUES ('a1', 'b1', 'c1'), ('a2'...
stackexchange/codereview
I had gridview which retrieve data from database .I did update statement in data ingridview I did my code but when I selected edit option in gridview this error apear (Procedure or Function 'Update_IntoModel' expects parameter '@Id', which was not supplied) . protected void GridView1_RowEditing(object sender, GridVie...
stackexchange/codereview
I'm running a number of CAML queries against a large list in SharePoint 2010, and displaying the results in a gridview to the end user. I wish to page through the results returned by the query to improve performance. However, I am required to display a total count of the items returned by the query on the paging contr...
stackexchange/codereview
So far I have this query SELECT COUNT(f.code_id) as item_count, f.code_desc FROM foo f INNER JOIN foohistory fh ON f.history_id = fh.history_id WHERE MONTH(fh.create_dt) = 6 AND YEAR(fh.create_dr) = 2010 GROUP BY f.code_desc UNION ALL SELECT COUNT(b.code_id) as item_count, ...
stackexchange/codereview
I have the following line of code which is running on a timer: NSLog( @" seconds: %i, elapsedhours %f", [self elapsedSeconds], [self elapsedSeconds] / 3600); It prints out: seconds: 0, elapsedhours 0.000000 seconds: 1, elapsedhours 0.000000 seconds: 2, elapsedhours 0.000000 seconds: 3, elapsedhours 0.000000 I'm wonde...
stackexchange/codereview
I have an extjs grid and one of the column renderer function has a for loop which goes through an array of numbers and compares them with the value for every cell for the column in consideration. so I was thinking since the renderer already loops for each row, and now i have for loop runner for each row. The question ...
stackexchange/codereview
i am trying to play an intro movie (like a splash screen). it used to work fine for sdk 3.0 but now i am doing it for iPad. and its not running movie instead it just show black screen before view appears. here is my code (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launc...
stackexchange/codereview
I add Oracle MIBs into net-snmp by: mibs +OR-mib in snmp.conf #MIBS=+OR-mib in shell #export MIBS #snmp restart but when I reload by: #snmpwalk -v2c -c private 127.0.0.1 .1.3.6.1.4.1.111 I get: snmpv2-smi::enterprises.111= no such available on this agent at this OID How do I fix this? Thanks
stackexchange/codereview
I need to extract this line of code from a script i am retrieving via ajax.. this line new Date(2010, 10 - 1, 31, 23, 59, 59) from jQuery(function () { jQuery('#dealCountdown').countdown({ until: new Date(2010, 10 - 1, 31, 23, 59, 59), serverSync: serverTime, timezone: +11, compact: true, format: 'HMS', expiryU...
stackexchange/codereview
My application needs to store a list of airports. This list needs be setup manually i.e. its not coming from a web service. I am thinking of creating a Core Data database and then inputting this list myself. This Core db will then ship with the App. Would you recommend any other ways of doing this? Should I perhaps ...
stackexchange/codereview
What is/are the main disadvantage of VirtualizingStackPanel? If it doesn't have any, then why it is not made as a default panel behavior/template in ItemsControl?
stackexchange/codereview
public static void main(String[] args) throws IOException { String st3[]=new String[]{"сто", "двести", "триста", "sdf", "sdfsd", "sdfsd"}; System.out.println(st3[1]); } In second line Netbeans displays an error: "non-static variable cannot be referenced from a static context". I know that the problem is in d...
stackexchange/codereview
Boost.asio documentation doesn't support any ftp examples. `boost::asio::io_service io_service; tcp::resolver resolver(io_service); tcp::resolver::query query("www.boost.org", "http"); tcp::resolver::iterator endpoint_iterator = resolver.resolve(query);` that resolve http site and get an HTTP endpoint. but tcp::resol...
stackexchange/codereview