instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Using jQuery 1.4.2 from Google hosted Code. Is there a reason why the following javascript does not fire all 3 document.ready functions when the document is ready? The first $(document).ready() function, which renders headers, and the second, which gives a 'Foo' alert box triggered, but subsequent ones in new <script> ...
stackexchange/codereview
Let's say there is a parameter n. Can n be any numbers? For example, question like this: Given a non-negative number num, return True if num is within 2 of a multiple of 10. This is what I am thinking: def near_ten(num): n = int #So I assume n can be any integer if abs(num - n*10) <=2: return True R...
stackexchange/codereview
I have 2 questions : i) How can put this code in a transaction ? With ObjectContext in EF, I use ExecuteStoreQuery() method to start some stored procedure. I have a block of code like this : { foreach(...) { objectContext.ExecuteStoreQuery( @"INSERT MyProcedure (arg1, arg2) VALUES ...
stackexchange/codereview
We're using Mercurial on our production servers for some smaller web projects to easily deploy applications by pushing changes to the server over SSH. The repositories reside in the public_html folders of their respective accounts. Now if I do a hg clone http://www.domain.com I get real URL is http://www.domain.com/ r...
stackexchange/codereview
I generate pdf documents with TCPDF. It's fairly easy to setup and very good for creating pdf files with <10 pages. I can generate 50 pages long PDF files within the 60 seconds default php timeout and can generate upto 200 pages when the timeout is set to 300 (SET_TIME_LIMIT(300)). I have also allocated 256 mb memor...
stackexchange/codereview
How would you implement a modal window saying "In order you to access this area you have to be logged in.." in combination with a login form below it every time a user tries to access authorized content. I'm using Rails 3, Devise and CanCan. My first thoughts were do put it somewhere in the application_controller.rb: #...
stackexchange/codereview
Folks, coming from the Java/Swing world, I am sometimes puzzled by the UI programming on the iPhone. I've spent the last hours with Googling for information but it seems that I asked the wrong questions by thinking too much in Java. Could you please point me to resources to get more familiar with the GUI concepts to be...
stackexchange/codereview
I need to custom marshal/unmarchal a TDictionary in Delphi (XE). The dictionary is declared as: TMyRecord = record key11: integer; key12: string; ... end; TMyDict: TDictionary<string, TMyRecord>; Now, if i marshal the dictionary without registering a custom converter, the marshaller will put all kind of fields ...
stackexchange/codereview
Specifically, I am trying to detect Windows XP users as they are not compatible with my software. Is there a way to detect with at least 70% or higher accuracy?
stackexchange/codereview
I have a partial class using an interface because I can’t inherit what was an original abstract class due to the other partial class being auto-generated from Entity Framework 4 and therefore already inheriting ObjectContext. I have the following for my partial class: namespace Model { using Microsoft.Practices.Ent...
stackexchange/codereview
I found this piece of C++ code on a forum that I can't fully understand. Since I don't have their library that performs matrix/vector math, I need to manually figure it out and replicate the functionality. Calculate Euler rotation angles between 2 vectors .. we use Rodrigues formula vector $V1 = << my first vector ...
stackexchange/codereview
The CMS I use struggles with UpdatePanels in some of my custom controls and master pages during edits. I'd like to convert them dynamically to regular panels on Page_Load or Page_Init or something based on whether the page is being edited. I'd like to convert all the UpdatePanels on a page to Panels dynamically. Findin...
stackexchange/codereview
I'm writing an Objective-C wrapper for a C library and having problems accessing the references of my ivars. The C library requires that I specify a function pointer that handles events, I specify it during the initialization of my Objective-C class. - (id) init { [super init]; RegisterClient(&handleEvent); ...
stackexchange/codereview
Running into a problem with UIWebview, it doesn't seem to react to gesture recognizer. I would like to get a popover to appear whenever I do a long press on a link (or image) with different actions. Any help would be greatly appreciated =). Thanks.
stackexchange/codereview
I called a getElements method which returns Iterable<Element>. I did this: List<Element> elements = (List<Element>) getElements(); This generates the error: java.lang.ClassCastException: com.utesy.Element$3 cannot be cast to java.util.List I thought a List was a type of Iterable?
stackexchange/codereview
I have been reading a lot of the questions here on vim. I can't locate something that I want to do with vim but I am sure its possible. I like vim(I am still new at it) using tabs and I have adjusted my vimrc so that H & L keys take me back and forth between tabs. I was hoping to find a way to be able to use tab comman...
stackexchange/codereview
I was just wondering why certain website don't allow anything other than letter and numbers in the password field. Is there a security reason or perhaps it's just a limitation of the DB they are using? Thanks for the info. Edit: It appears that Oracle's database doesn't acknowledge uppercase and lowercase? Is this true...
stackexchange/codereview
I'm using the prototype javascript libraries. My code is below. I've created a class and in that class I have created an event listener for one of the class methods. In that method I need to access both the attributes of the form element that triggers the event and the class properties. Currently, the code understan...
stackexchange/codereview
Eclipse is warning that I'm using a deprecated method: eventDay = event.getEvent_s_date().getDate(); So I rewrote it as eventDay = DateUtil.toCalendar(event.getEvent_s_date()).get(Calendar.DATE); It seems to work but it looks ugly. My question is did I refactor this the best way? If not, how would you refactor? I ...
stackexchange/codereview
Is it possible to scroll(0,0) to the top of the parent page when the user browses in an iframe? For example, we have an iframe that is the entire height of the page with search results. When you click the next page button in the iframe, the focus stays at the bottom of the page. I'm not even sure if it's possible to ...
stackexchange/codereview
I'm trying to search in sphinx from node.js code. The only way to do it I know is to connect to searchd as to mysqld server. I'd absolutely all known mysql libraries, but no of them even connected to sphinx.
stackexchange/codereview
I have a filter class wherein the user must declare the type (e.g. Filter<Double>, Filter<Float> etc). The class then implements a moving average filter so objects within the class must be added. My question is how to do this? I'm sorry if the answer is simple but I've muddled myself up by thinking about it too much I ...
stackexchange/codereview
I'm having some trouble with a couple of hmwk questions and i can't find th answer- How would you write an expression that removes the first or last element of a list? i.e. One of my questions reads "Given a list named 'alist' , write an expression that removes the last element of 'alist'"
stackexchange/codereview
How do I post a XML and get the response status from the response? I want to post <myExampleRequest><myValue>xyz</myValue></myExampleRequest> to http://domain.com/GetStatus.aspx The page responds with <myExampleResponse><status>True</status><Message></Message></myExampleResponse>
stackexchange/codereview
I am slowly moving my (unreleased) CMS from $_SESSION to $_COOKIE. Content on the internet seems to be biased more towards $_SESSION (I assume because ease of use). I am looking for security tips on saving cookies. Currently, I am storing (somewhat similar WordPress) a cookie in the format: 'logged_in_%hash_key%' => "...
stackexchange/codereview
Possible Duplicates: Disable browser's back button How do I disable the F5 refresh on the browser? Hi, I created an application in C# that will download data from the internet (and this is done one time only) and put it in a webbrowser and this data should be static. I want to know if there is a way to disable the F...
stackexchange/codereview
I am looking up keyvalue stores that support C#, but i found that most of them are implemented by Java. Could anybody recommend some to me? It would be super if it is very light-weight, i.e., appearing as a library. thanks!!
stackexchange/codereview
Let's say that I need to make a mapping from String to an integer. The integers are unique and form a continuous range starting from 0. That is: Hello -> 0 World -> 1 Foo -> 2 Bar -> 3 Spam -> 4 Eggs -> 5 etc. There are at least two straightforward ways to do it. With a hashmap: HashMap<String, Integer> map = .....
stackexchange/codereview
Code: $(".box-collapse").live("click",function(){ if(updating()) return false; var b = $(this).parent().parent(); b.find(".album-div").stop(true,false).slideToggle(); $.ajax({ url: addNonce($(this).attr("href")), success:function(data){ c = b.attr("id"); var resp ...
stackexchange/codereview
I'm writing an application where I would like to use a few backgrounds that contain the Android "green robot, and perhaps even one that says Google underneath the robot. Is this against the terms of service or does it violate any copyright laws? If it is against any laws, will it matter if the app using the icon is fre...
stackexchange/codereview
I have a strange situation: in a .NET CF project there is a class (call it A) which has the following structure: public partial class A: Form, INotifyPropertyChanged { //for simplicity stripping off everything unrelated to this problem private int _SelectedRowsCount = 0; public int SelectedRowsCount ...
stackexchange/codereview
I am new and want to start developing apps for iPhone, but I can't afford the high price tag of one of Apple's Intel machine right now, can I start developing iPhone apps on Apple Power PC G5 or Apple MacBook Pro with Intel? Thanks for your help
stackexchange/codereview
I am not sure if this question is relevant but I see the expression "the method is invoked" a lot , So Is there a technical difference between invoking a method or calling a method or It's just other word for the same action ? P.S : Clearly , I am not an English native speaker and looking for invoke definition on the w...
stackexchange/codereview
I've found a handful of libraries, which claim to be plug'n'play, but without understanding how OAuth even works, I am not confident in my ability to fix any bugs that arise. Could someone please just give me an OAuth For Dummies lecture here?
stackexchange/codereview
I want to add an alarm, so I used the following code: public void SetAlarm(Alarm alarm) { mTimeTarget = PendingIntent.getBroadcast(mContext, alarm.getRowID(), new Intent(HomeScreen.ACTION_CHECK_TIME_ALARMS), PendingIntent.FLAG_UPDATE_CURRENT); mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAK...
stackexchange/codereview
We currently develop our web apps in JSF 1.1 and looking to move to JSF 2.0 (Primefaces), but we'd also like to reuse CMS functionality and allow the business users to edit content and UI design elements. So rather than roll our own CMS we're looking for a good programmable Java CMS (Content Management System) that use...
stackexchange/codereview
I am trying to rotate UITextField at 90 angle.It is rotationg perfectly..but text inside the UITextField, is displaced.I am unable to find out the reason behind it.
stackexchange/codereview
I have this variable dirpath2 where I store the deepest directory name of a path: typedef std::basic_string<TCHAR> tstring; tstring dirPath = destPath; tstring dirpath2 = dirPath.substr(destPathLenght - 7,destPathLenght - 1); I want to be able to compare it it another string, something like: if ( _tcscmp(dirpath2,fail...
stackexchange/codereview
In my background (background.html) page I have the following js: function capturePage(){ chrome.tabs.captureVisibleTab(null, function(img){ var screenshotUrl = img; chrome.tabs.create({"url":"history.html"}, function(tab){ var t = tab; var addImage = function(){ var view = chrome.extension...
stackexchange/codereview
I am trying to find some good articles for .Net developers on how to ensure Winforms apps work correctly for non-English users. Articles explaining potential pitfalls and advice on how to test for these pitfalls would be perfect - but I haven't yet found any yet. Areas I am most interest in are: decimal amounts, Dates...
stackexchange/codereview
In my mvc asp.net application, I am getting an error in edit function : in given code public ActionResult Edit(int id) { var res = (from r in objeEntities.DocumentationsSet.Include("DocStatus") where r.textid == id select r) .First(); } I am getting this exception: Source : Syste...
stackexchange/codereview
Well I have this page < %@ .............. Inherits="System.Web.Mvc.ViewPage < Something.Models.SomeModel >" %> < % Html.RenderPartial("SomeControl",Model);% > and this user control page < %@ Control Language="C#" Inherits="System.Web.Mvc.ViewPage < Something.Models.SomeModel>"%> < p>< %: Html.TextBox("text",Model.Nam...
stackexchange/codereview
Possible Duplicates: A clear, layman's explanation of the difference between | and || in c# ? What's the difference between | and || in Java? what is the difference between the operator | and the operator || ?? and also what is the difference between & and && ?? thanks...
stackexchange/codereview
I am currently make a Server, I learned to make something like this: while(true) { SOCKET s = accept(s, ....) // do something with the connection printf("connection\n"); } I learned that it will stuck at accept(..) while there isnt a connection. In my Program there isnt any connection yet, but it get o...
stackexchange/codereview
What are the key steps and tools it takes to creating a 3d video game. For example, I understand that a 3d artist will create 3d models in 3d Studio Max, or Maya, but where do these models go from there? Are the 3d models first animated by a 3d animator in 3d Studio Max/Maya? Then do these models along with the anima...
stackexchange/codereview
i will try to be clear.. here i am working on a datagrid. in datagrid one column is editable as i am passing DataGridTextColumn to it and holding the data when users enter data into it and writing back to database. i am saving to database using datagrid_celleditending event also i am using the datagridcelleditendingeve...
stackexchange/codereview
How does Google find relevant content when it's parsing the web? Let's say, for instance, Google uses the PHP native DOM Library to parse content. What methods would they be for it to find the most relevant content on a web page? My thoughts would be that it would search for all paragraphs, order by the length of each ...
stackexchange/codereview
I have a folder on the server with some images in it. I would like to have my client code read this folder's contents (images) and then display this image on a div. I thought this would be easy with AJAX, but it seems that AJAX returns some raw data embedded in the image. I have been looking all over for a way to ge...
stackexchange/codereview
I've experience with WPF and WCF, with WCF I can set maxConnection to limit maximum connection per service. Now, I'm moving that application to Silverlight and WCF RIA but I can't find that property so it can do only 4 connection parallely. Anyone know how can I configure WCF RIA to accept more connection?
stackexchange/codereview
Hi I have this PHP array of Amazon Sub Categories what I am trying to do is loop through the array and split into 3 seperate ones, Heres the Array, and needs to be split into 3 arrays $request, and all the children under it $subCats and final variable $Ancestors. The $subCats will contain all the [Children][BrowseNod...
stackexchange/codereview
I have a class which communicates with an API and needs to do some transformations to any data it touches. This class is the equivalent too: public class SerializeMe { public SerializeMe(string someString) { _someString = someString; } private string _someString; public string TransformedV...
stackexchange/codereview
I am watching the MIT lectures and Eric Demaine says that they discussed some of the applications of Order Statistics Algorithms. I was wondering if the SO community would help me figure out some of the applications of the selection algorithms.
stackexchange/codereview
Let's say we want to build a big social network (because social networks are all the rage at the moment). We'll start with a simple premise that anyone who wants to use our social network should be able to register under their name and then become friends or fall out with other people registred with us: import scala.co...
stackexchange/codereview
I'm considering the scenario where an MVC view would pass the model to a Silverlight application (to display preferably as a modal form), which in turn would send back the updated model to the view before submitting. Is this at all possible?
stackexchange/codereview
I have a control for which I need to enforce a certain Width or Height, depending on a property called Orientation, which, obviously can be Vertical or Horizontal. So if the Orientation property is Vertical, then the Width must always be 2. If the Orientation property is Horizontal, then the Height must always be 2. ...
stackexchange/codereview
Simple problem which is causing enormous headaches. I'm using the JQuery modal plugin (jqm) which is normally initiallised with a function that looks like this: $().ready(function () { $('#popup').jqm({ trigger: $('.trigger') }); }); Where #popup is the ID of the element you want to show when the modal is displa...
stackexchange/codereview
I am given a log file(see below), I need to make it to this format using bash script: title pdfspool date rip date bmpspool date CLAB date Sometitle12 10/09/23 00:56:40 10/9/23 0:56:46 10/9/23 0:56:50 10/9/23 1:01:13 log file !!Begin Source aserver:pdf_spool:the, Job 844b015e0043469e, Inst 844b015e00...
stackexchange/codereview
Without wanting to bug sacha too much, does anyone know what the Cinch V2 way of closing a View from a ViewModel command? Previously I have used a RelayCommand in the ViewModel base to accept the Escape keybinding command action and wired up a RequestClose event in the View code behind to do this.
stackexchange/codereview
I'm trying to set a variable from a SQL query: declare @ModelID uniqueidentifer Select @ModelID = select modelid from models where areaid = 'South Coast' Obviously I'm not doing this right as it doesn't work. Can somebody suggest a solution? Thanks!
stackexchange/codereview
I'm have problems opening IDLE - I can only get it to open when I right click > edit with IDLE on a PY file. I'm running Python 2.6.4. I tried using 'python.exe Lib\idlelib\idle.py', and I get a few errors: C:\Python26>python.exe Lib\idlelib\idle.py ---------------------------------------- Unhandled server exception! ...
stackexchange/codereview
When i run silverlight 4 application with the developer server, it seems to use a default port as localhost port 1091. How do i change to a different port?
stackexchange/codereview
I have a database with a listing of documents and the words within them. Each row represents a term. What I'm looking to do is to count how many documents a word occurs in. So, given the following: + doc + word + +-------+--------+ + a + foo + +-------+--------+ + a + foo + +-------+--------+ + a ...
stackexchange/codereview
`li = [(1106257, (255, 255, 255)), (1, (16, 16, 118)), (1, (32, 32, 128)), (1, (48, 48, 122)), (9, (249, 249, 249)), (1, (64, 64, 126)), (406, (247, 247, 251))]` I want to sort li depending on the first number in each element eg.1106257, 1, 1,1,9,1,406 How to do this fast? Thanks
stackexchange/codereview
I have a file I read from that looks like: 1 value1 2 value2 3 value3 The file may or may not have a trailing \n in the last line. The code I'm using works great, but if there is an trailing \n it fails. Whats the best way to catch this? My code for reference: r=open(sys.argv[1], 'r'); for line in r.readlines():...
stackexchange/codereview
Specifically, I want to add an spatial index in a multi_polygon column. This works nicely in PostgreSQL but not in MySQL, so I was thinking of somthing like: create_table :figures do |t| t.multi_polygon :polygon end add_index :figures, :polygon if database_adapter == :postgresql Is it possible and a good idea?
stackexchange/codereview
Possible Duplicates: Difference between float and double strange output in comparision of float with float literal I am using visual C++ 6.0 and in a program I am comparing float and double variables For example for this program #include<stdio.h> int main() { float a = 0.7f; double b = 0.7; print...
stackexchange/codereview
My c/c++ skills are non-existent and there's some custom string array data that needs to be returned from an old C dll fyi - The C/C++ code can be modified as needed
stackexchange/codereview
Is it possible to share a same webview object in two different activities in android ? Here is my use case. I have an Activity A that has a webview W. W occupies 50% of A. Now When I click on Webview W, in activity A, I want to launch Activity B with whole of it occupying webview W. In acitivity B, I do not want webvie...
stackexchange/codereview
I have a CakePHP application that allows a user to register and post projects. At some point whilst I have been tinkering with it I have managed to change the way the current date is captured when the user record is created :( when a new user account is created the date is defaulted to Jan 19th 1970, 01:00 Here is my...
stackexchange/codereview
I'm using the Authorize() attribute to secure my controllers/actions and want to only display the Login action to unauthenticated users - or to put it another way, deny access to authenticated users. I haven't been able to find anything on the web dealing with either denying permission or allowing negative permissions ...
stackexchange/codereview
In my app I have a Controller that's started by the main method. The controller initializes hooks, database connections, the UI, another connection, and other things. It holds most of the state of the program (no, its not a Singleton). In another example there's a controller for the bot that handles interpreting and se...
stackexchange/codereview
I'm developing with a really complex cms system, and sometimes I need to know if something was sent to my html rendering. Since this is a huge cms system, I have at least 30 resources linked to a page (js, css), and going through each one, clicking and searching for a string is not the best way to do it. I would like t...
stackexchange/codereview
Maybe I misunderstood this but from what I read I may have several problems creating many to many objects relations in the data store. So I hope I am wrong. Can anyone provide me with ideas on realizing such a system on GAE/J? What I need is many students can have many files (meaning Student A can have File A and Stude...
stackexchange/codereview
I have developed some basic web services using WCF. So far the return types have been fairly simple. Here are the Operation contracts that are working correctly: [OperationContract] string Vessel(int ID); //lists all vessel [OperationContract] List<string> Vessels(); [OperationContract] List<string> PortsLike(string ...
stackexchange/codereview
I'm developing an Android application. How can I setup the row id for every item on a ListView? I don't want to use SimpleCursorAdapter. I have my owns objects, and I want to use them. These objects have and ID and a NAME. The name will be displayed and the ID will be stored to retrieve it on onListItemClick(ListView p...
stackexchange/codereview
Is there a way to do incremental deployments with these three tools when in a multi-module project? Example of Maven project: project project-data project-service project-webapp The above are Maven modules with dependencies between them. The project-webapp module contains the .war file, but I don't want to create a n...
stackexchange/codereview
I have a div with an id of dropdown. I want it to drop down for 5 seconds then go back up again but I can't get the delay to work properly. It comes down but doesn't go back up again. Here is what I have: $('#dropdown').slideDown().delay(5000).('#dropdown').slideUp() Any help much appreciated thanks
stackexchange/codereview
Have heard of developers waiting 2 to 6 weeks in 2009. When they reject the app, you resubmit and wait another 2 to 6 weeks. So finally the review takes a few months. Same for fixing bugs. Does this rule still apply?
stackexchange/codereview
Here is my JS: function declassifyAjax(e) { var items = getSelected(); var docIds = new Array(); items.each(get); //get ids of QcItem/docId we are dealing with function get(count, el) { docIds[count] = $(el).parent().attr('id'); } var dataObj = new Object(); dataObj.batchId = ...
stackexchange/codereview
Here is the format of the css I'm trying to edit using jquery. /*8d*/ .class{color:#444444;} /*5d*/ .class{background-color:#444444;} /*3f*/ .class{color:#444444;} /*9d*/ .class{color:#444444;} I want to replace several entire lines within using Regular Expressions. For example, How do I select line 5d the replace wit...
stackexchange/codereview
I am a .NET / Java guy and have to do some website stuff. Complete beginner with CSS etc. I've been working with a template and had to convert the menu to a drop down and have been having loads of difficulty. I've uploaded the current iteration and it can be found here with the barebones menu and css pages: http://www....
stackexchange/codereview
I'm a student working on a project where a need to integrate my iPad (or iPhone) application with a Rails Web App, populating the database from the iOS side and displaying the contents in the web app. I've found ObjectiveResource, but I've had difficulty getting it up and running (went through the getting started, and ...
stackexchange/codereview
so let's say I ask the user to specify what he wants to call a new file System.out.println("What do you want to call the file?"); String outputFile = keyboard.nextLine(); now to write the file I would do: PrintWriter outputFile = new PrintWriter(fileName); My question are: I know by default it saves to the local fo...
stackexchange/codereview
I have an application that allows users to create forms and assign validation to each field (think http://www.phpform.org/ or http://wufoo.com/). I can easily get each field’s name and label from the database, as well as the array of associated validation rules. Say, for example, I wanted to apply a blanket rule of “re...
stackexchange/codereview
In my mvc web application, I am getting this error: Anonymously Hosted DynamicMethods Assembly Stack Trace : at Read_<>f__AnonymousType14(ObjectMaterializer1 ) at System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext() at project.com.Concrete.DetailsRepository.GetDetails(String type) in path Mess...
stackexchange/codereview
I have a strange thing going on with the .net fileupload control. If I remote desktop to the server that houses the web app and db server, I am able to upload files and store them into a varbinary(max) column. However, when clients connect to the web server from their desktop, then can do all the things they need to s...
stackexchange/codereview
I've decided to dip my toe into the world of asynchronous python with the help of twisted. I've implemented some of the examples from the documentation, but I'm having a difficult time finding an example of the, very simple, client I'm trying to write. In short I'd like a client which establishes a tcp connection with ...
stackexchange/codereview
I have the following form in my Rails application: <% form_tag password_resets_path, :id => 'recoverPasswordForm' do %> <label for="passwordRecoveryEmailAddress">Email Address:</label>&nbsp; <%= text_field_tag "passwordRecoveryEmailAddress" %> <%= submit_tag 'Recover' %> <br /> <div id="forgotPasswordLoginL...
stackexchange/codereview
I have top-down game for iPhone (no gravity) and I'm using Cocos2d and Box2d. I try to move a bullet by this code: // 'targetPosition' is a point of touch b2Vec2 touchInWorld = b2Vec2(targetPosition.x/PTM_RATIO, targetPosition.y/PTM_RATIO); b2Vec2 direction = b2Vec2(touchInWorld.x - ballBodyDef.position.x, touchInW...
stackexchange/codereview
I've defined these relationships in my models: Lead hasMany Job Job HABTM Employee Job HABTM Truck I'm trying to do a find('all') from my Truck model, and limit the results to: All Trucks, all jobs associated with those trucks that have a certain pickup date, the employees assigned to those jobs, and the lead associ...
stackexchange/codereview
How do you write an XML file from an System.Xml.XmlReader? I thought this would be a simple question but whenever I search I seem to be ending up with reading the file to a reader or writing node by node. The XmlReader object conveys xml that was stored in a database and just needs to come out of the database to a file...
stackexchange/codereview
I tried alBufferf (myChannelId, AL_MAX_GAIN (and AL_GAIN), volumeValue); and got error 0xA002.
stackexchange/codereview
In 5 days I'm going to ETL interview. It's my first interview on this subject. What question would I be asked? Most likely they will be about MS SQL Server Integration Service. If possible, provide the answers. =)
stackexchange/codereview
public void itemStateChanged(ItemEvent event) { if(event.getSource() == doctorBox) { if (doctorBox.isSelected() == true) JOptionPane.showMessageDialog(null, "you are a doctor"); else if (doctorBox.isSelected() != true) JOptionPane.showMessageDialog(null, "you are not a do...
stackexchange/codereview
I am trying to use an application that has a dependency of ctypes, but am getting this error: $ python peach.py -t ~/Desktop/fuzz/wav/template.xml ] Peach 2.3.6 Runtime ] Copyright (c) Michael Eddington Traceback (most recent call last): File "peach.py", line 335, in <module> from Peach.Engine import * File ...
stackexchange/codereview
For example consider: var hset = new HashSet<int>(); // Fill the hset. var enumerable = hset as IEnumerable<int>; bool enumerable.Contains(0); Does LINQ use the fact that the HashSet has an efficient implementation of Contains, or does itsimply operate on the enumerator as one would expect? The reason I'm asking is t...
stackexchange/codereview
I have an android app I want to connect to a Google App Engine based server. I can get the auth token from the AccountManager. It seems the next thing I am supposed to do is talk to an auth page to get a cookie. Following the awesome instructions here: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine...
stackexchange/codereview
I have a string in the following format: "R: 625.5m E:-32768m" What's the most efficient way to pull out the 625.5?
stackexchange/codereview
I am trying to read the XML Documentation file (C#) using this ocde - Type classType = typeof(Point); string documentationFileLocation = classType.Assembly.CodeBase; if ( !string.IsNullOrEmpty(documentationFileLocation) && documentationFileLocation.StartsWith("file:///") ) { ...
stackexchange/codereview
I am using Google maps API version 3. I would like my double click event handler to work as follows: google.maps.event.addListener(map, 'dblclick', function(e) { if (/* ctrl is pressed */) { doSomething(e) } else { doSomethingElse(e) } }); It looks the the event handler only provides a MouseEvent which ...
stackexchange/codereview