instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Within my android application, I'm wanting to update an ImageView, with an image specified from a URL. This URL has been fetched via an API as part of an AsyncTask. I have defined the ImageView as follows: <ImageView android:adjustViewBounds="true" android:scaleType="fitCenter" android:layout_height="wrap_c...
stackexchange/codereview
So I am trying to use LZO in my application. Here is how I have included it: #include "lzoconf.h" #include "lzodefs.h" #include "lzo1x.h" /* portability layer */ static const char *progname = NULL; #define WANT_LZO_MALLOC 1 #define WANT_XMALLOC 1 #include "portab.h" Then in the application I do: if (lzo_init() != LZO_...
stackexchange/codereview
I would like to keep a set of (Moose) objects, so each object could only appear once. I thought of using a hash where the key is the address of the object then check for existence of the key before I add an object. Is that a common practice? How do I get the address of the object? UPDATE On second thought, what's wrong...
stackexchange/codereview
I would like to shade entire rows in Excel based on the value of one cell. For example say I have the rows below: **File No** 1122 1122 1144 1155 1155 1155 1166 I would like the first two rows (where the value of the file # is 1122) to be shaded in color 1, the next row (where the value of the file # is 1144) to be s...
stackexchange/codereview
This is a very simple question. What should I write in Delphi post build events to execute a coomand line tool? I wrote this: c:\BinPath\signtool.exe sign /f c:\BinPath\Mypfxfile.pfx /p MyPassword /t http:// timestamp.verisign.com/scripts/timstamp.dll c:\BinPath\Project1.exe (where c:\BinPath is the Delphi output pat...
stackexchange/codereview
It seems that the HttpServletResponse parameter passed to HandlerInterceptor#postHandle is write only: there is no getStatus() method there. Any idea about how to find out which HttpStatus was set after the request?
stackexchange/codereview
My company (a small software-as-a-service provider in the healthcare IT industry) is currently building a hosted BI solution to offer all of our clients. The deadlines have been moved up significantly and we have very little time to choose a platform, but since our company is heavily invested in .NET/SQL Server, SSAS s...
stackexchange/codereview
I've got a Collection with the element type of <K extends Comparable<K>> because it's ordered. I'm trying to use Joda LocalTime with this collection - e.g. MyCollection<LocalTime>. Unfortunately, apparently Joda is pre-generics; LocalTime implements raw Comparable. I'm getting the compiler error Bound mismatch: The t...
stackexchange/codereview
I use reflection to specify the class name dynamically when I do file imports using FileHelpers like this ... Assembly assembly = Assembly.GetExecutingAssembly(); AssemblyName assemblyName = assembly.GetName(); Type t = assembly.GetType(assemblyName.Name + ".FileDefinitions." + className); FileHelperEngine engine = new...
stackexchange/codereview
I can't figure out why this code: CALayer *viewLayer = [aView layer]; [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:10.0f] forKey:kCATransactionAnimationDuration]; viewLayer.position = CGPointMake(200.0f, 200.0f); viewLayer.position = CGPointMake(320.0f, 480.0f); [CATransact...
stackexchange/codereview
I'm trying to extend SCOM 2007 to run some .NET code that I've written. This code can interrogate the state of an internal system and return its status. I'm new to SCOM and can only find ways of achieving this via an action probe that executes my code as a command. This can then captures some results which, for anyth...
stackexchange/codereview
everyone, I'm sure this is a feature and not a bug, and I'm overlooking something obvious here. But I just can't see it. I have the following code, which consists of HTML, peppered with some PHP stuff wrapped in short tags: $wtf = <<<WTF <h1>First header</h1> <p class="intro">First line of text</p> <h2>Second header</...
stackexchange/codereview
When i want to installed zip file of new component or module.i am getting below error * JFolder::create: Infinite loop detected * Warning! Failed to move file. how can i resolved this.
stackexchange/codereview
i am trying install sql server 2005 from last hour but i can't create username and password and domain in sql server 2005. But i am became mad bcz sql server is not accepting username and password of mine. i tried a lots of ones. i am only making simple application which is only for test purpose only. so any one can ga...
stackexchange/codereview
Hello I'm in need of a code to read columns and rows for C#. I've come this far: obj.MysqlQUERY("SELECT * FROM `players` WHERE name = "+name+";"); // my query function Grateful for help;]
stackexchange/codereview
Hi I am searching for functionality which works like the itemizedOverlay on the mapview, only for Imageview. So that I can add items on specific locations on the image and trigger actions on tap of the item. I am building an application for Android where you get Floorplans and on this Floorplan the rooms should be mar...
stackexchange/codereview
I have an SQL query similar to the following: create procedure test ( @param1 nvarchar(max) ) as begin select * from table where column1 in (@param1) end Now I need to pass the value of @param1 from my .net application in such a way that the above query works. Can some one please advise me on how to pass from m...
stackexchange/codereview
I need to create downloading bar, when URL is loading on UIWebview to my application. I need to following format when URL is loading time to my application.
stackexchange/codereview
I am setting the innerHTML property of document element within this way: document.getElementById('some_element').innerHTML = newHTML; And this works fine in web browser on desktop and on iPhone simulator. But on iPhone device this works good randomly. I mean, sometimes works, sometimes does not. One proposed solution ...
stackexchange/codereview
How can I track upload progress of HTTPWebRequest? When I scattered Debug.WriteLines() to track which parts of my code takes the longest time, i found out the function that took the longest time is var res = req.GetResponse(); I could use BeginGetResponse() but I have no way of tracking progress still? I read from va...
stackexchange/codereview
I want to to test my application's handling of timeouts when grabbing data via urllib2, and I want to have some way to force the request to timeout. Short of finding a very very slow internet connection, what method can I use? I seem to remember an interesting application/suite for simulating these sorts of things. M...
stackexchange/codereview
So far as I can tell, in order to use the validateable module, but selectively disable the email field's validations, you must define a protected method email_required? on your model and have it return false. I've done this, but it appears the email validation is still triggered. Is this a bug in devise, or am I missin...
stackexchange/codereview
I have this CSS dropdown menu. I want the homepage to start on the left side of the page, not on the center. Herein is the style sheet and the div tags for the dropdown navigation bar: ul, li, html, a { margin:0; padding: 0; } body { text-align: center; margin: 0 auto; padding: 0; font: 65% ar...
stackexchange/codereview
In my Spring+JPA/Hibernate+Wicket app, I have a QueryBuilder bean that I want to use in one of my DAOs which generates a typed query with the help of Criteria API: @Service(value="inboxQueryBuilder") public class InboxQueryBuilder { @PersistenceContext EntityManager em; CriteriaBuilder cb; public Inb...
stackexchange/codereview
I am following the instructions on this site to create a member login. When I add the profile provider information to the web.config, I get the following error message: http://www.pastie.org/1309972 Am I setting this up correctly.
stackexchange/codereview
I am looking a multi columns combo box by using HTML + JavaScript only. Is there any example or library available? As I came across some solution, they are in ASP.NET, but not pure HTML + JavaScript. Here is an example but it is implemented using Java Swing.
stackexchange/codereview
I'm following the tutorial here: http://iphone-3d-programming.labs.oreilly.com/ch01.html#ch01_id36002837 When I try to run the program, I get an error saying "Redefinition of 'void RenderingEngine1::OnRotate(DeviceOrientation)" Here's the code. The function is at the end of it: #include <OpenGLES/ES1/gl.h> #include <Op...
stackexchange/codereview
I have a windows service which recieves messages from a 3rd party service Each time it recieves a message it updates an in-memory record (held in List<MyObj>) and periodically broadcasts them I would like to test the state of the List Options I have come up with are Change the visibility of the List from private to p...
stackexchange/codereview
I'd like to know if there is a solution with CSS where I have code like below, and there may or may not be an image floating to the right. I want the text to flow only as far as the left of the image(s), so the text doesn't flow underneath them, almost like it forms its own column. <div class="content"> <h1>Page title<...
stackexchange/codereview
I'm using PHP with Apache and pretty URLs with mod_rewrite. I have an index.php where I include some other .php files that contain the content. Now I'd like to prevent people from viewing those (content only) .php files, unless they are included via my index.php script of course. This is the RewriteRule I'm using: Rewr...
stackexchange/codereview
My question is regarding ASP.NET performance. Does it make things more complex like in PHP when I need to make the site performs better? Do I need to use use caching as well? And is it easier to chach a website in ASP.NET?
stackexchange/codereview
I get this error when viewing the page in Internet explorer Webpage error details Message: Expected '(' Line: 152 Char: 4 Code: 0 <script>/* <![CDATA[ */qmad.mwidths=new Object();if(qmad.bvis.indexOf("qm_mwidths_a(b.cdiv,o);")==-1)qmad.bvis+="qm_mwidths_a(b.cdiv,o);";;function qm_mwidths_a(sub,item)...
stackexchange/codereview
I'm new to Haskell and I'm trying to figure out how IO works. I have a data structure, a tree, that I want to serialize to a file and then de-serialize back out to the data structure. It seems like I should be able to do it through show and read, but my use of read is throwing an error. Here's the relevant part of my c...
stackexchange/codereview
We are building a system that gets XML data from a database, uses XSLT to transform it to XHTML and at the same time use an external XML file to retrieve culture-specific labels (translations for our labels). Short Question Does the translation/culture-specific system seem logical ? Efficient ? Any alternative concepts...
stackexchange/codereview
I have a system of object instances that contain a reference to a definition object. I have a top-level class for each inheritance tree. The instance object has a generic reference to the corresponding definition class. Using generics in the getter, a subclass of the top-level object can get the right type of definit...
stackexchange/codereview
I'm trying to detect touch and hold gestures inside a UITableView, while keeping track of which cell was selected. I need to be able to differentiate between normal taps on a cell and touches that last longer than X seconds (probably 1s or so). The main challenge is that I'd like to do this without subclassing UITableV...
stackexchange/codereview
I've got the following relationship set-up between two models Story belongsTo StoryType StoryType hasMany Story I've set-up a form to select the StoryType for each story using the following code: echo $this->Form->input('Story.story_type_id', array('tabindex' => 2)); with this code in the controller to populate the ...
stackexchange/codereview
In my Android App Activity, I have a RelativeLayout with one ImageView and a couple of TextViews being populated at runtime. I also have a Save button in the activity that I use to save the image in the ImageView to the device SD Card. Now what I really want to do is Convert the elements (image and the text in the Rel...
stackexchange/codereview
I'm designing a rather long form that will auto-save every couple minutes (i.e., using Ajax, the form data will be inserted or updated into the MySQL database). However, if the user decides to exit the page before submitting the form, I want to make sure I delete the row that was inserted into the database. This is e...
stackexchange/codereview
So far, I have this code sample: ... int nbytes =0; vector<unsigned char> buffer; buffer.resize(5000); nbytes = recv(socket, &buffer[0], buffer.size(),0); //since I want to use buffer.size() to know data length in buffer I do ... buffer.resize(nbytes); Is it some another way, to know data length in buffer without usin...
stackexchange/codereview
I need to create a connection with a table that isn't in my control yet there's a one-to-many relationship so I'm having a bit of trouble with the hibernate mappings. table1: userId firstname lastname table2: user_id <= fk to table1.userId x_id create_date table3: x_id private1 private2 So my problem is that despit...
stackexchange/codereview
import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.JFrame; import class_program.NextPage; class Login extends JFrame implements ActionListener { JButton SUBMIT; JPanel panel; JLabel label1,label2; final JTextField text1,text2; Login() { label1 = new JLabel(); label1...
stackexchange/codereview
I have registered an facebook app ID with the url http://resihop.nu/facebook/ When I tried the sample code provided on my local computer it didn't render the fbml-elements. On what pages am I allowed to use the app-id provided?
stackexchange/codereview
During an installation process I need to check if a userprovided path is writable to a specified user. The Path (A UNC Path like \fileserver\share) may not be writable to the user, who is executing the Setup.exe (It's a Windows-Only Software), so I think How do you check for permissions to write to a directory or file?...
stackexchange/codereview
I have a form: <div id="form"> <form action="upload.cgi" method="get" enctype="multipart/form-data"> <input type="file" name="file" id="file"/> <input type="submit" value="Upload"/> </form> </div> and the upload.cgi is: saveFile n = do cont <- liftM fromJust $ getInputFPS "file" let f ...
stackexchange/codereview
I want to executing a shell scripting in my java program passing a argument showed bellow: Runtime.getRuntime().exec("./test.sh " + "\\\"param1\\\"\\\"param2\\\"\\\"param3\\\""); And the test.sh will call another java program passing the string argument like this: another.jar \"param1\"\"param2\"\"param3\" and final...
stackexchange/codereview
I'm currently storing a list of Tests with associated information, including database IDs, inside static variables in my code. Here's an example: public static class IsokineticTests { // Cervical Spine Group public static MyopathologyTest NeckFlexors = MyopathologyTest.Create(600, "Neck Flexors"); public st...
stackexchange/codereview
Is there a regex to get youtube embed code from youtube video page links? I want literaly the opposite of this question: Getting youtube links from embedded youtube video on pages? EDIT: i need code something like the following: public static String GetYoutubeEmbedCode(String YoutubeLink) { String Sourc...
stackexchange/codereview
I have a bunch of images in a vertical row, and when you swipe to scroll though them it's not smooth. It tends to jump up a little as each pic comes into view. However, once I scroll thru the images and back up it is smooth the second time around, like they are cached or something. I tried pre-loading images with no ch...
stackexchange/codereview
I'm developing a Facebook application in Rails. Some (not all) of the pages require the user to be logged in; if not, they are redirected to a "login" page. I can't use redirect_to for this, as the redirect needs to be done via Javascript (as it's redirecting the parent frame); furthermore, the redirection needs to k...
stackexchange/codereview
What is the algorithm used by php shuffle function or where can i get its code. I have to implement it in C language. I have implemented fisher yates algo in C but not good results as showed by php shuffle function.
stackexchange/codereview
This may be a very noob question, but I have absolutely ZERO linux knowledge. Once thing I have noticed is that the VPS / Server hosting costs are usually always lower for linux boxes. So, what I'd like to know is, as a user on a Windows machine, could I purchase a Linux VPS box from my provider and connect to it, an...
stackexchange/codereview
Here i created a dragable imageview .This is my sample code(not given full code) public class mainClass extends Activity { MyView obj1,obj2; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); ...
stackexchange/codereview
I have implemented the action bar (not the quick action bar) in my app. The action bar is based on the one used in the Google IO app and the Facebook app. I am stumped though, trying to understand how to keep the action bar fixed. When an activity needs scrolling, the action bar needs to be remain fixed. Can anyone hel...
stackexchange/codereview
I am using local IIS instead of the VS Web Server but instead of a virtual directory on the Default Web Site, I want to configure my web application project to run in its own IIS Web Site on port 8080. How can I do this?
stackexchange/codereview
I have a little problem with the token in django. When I write a POST form and add {{csrf_token}}, when I submit it the token is checked . But when I send a POST request (in ajax) and add the paramater manually csrfmiddlewaretoken , the token is not checked. But I don't know why ? Thanks.
stackexchange/codereview
(Warning: This is a C# n00b question! Trying to learn a bit of C# while making things easier for a console app I run frequently.) I'm trying to run a console application (consoleapp.exe) without having to manually type in the arguments each time - The command is typically of this form: C:/consoleapp.exe --username (...
stackexchange/codereview
I have a portal in my contacts table layout that shows related mention in a second "mentions" table. This related table has a relationship to a third "sources" table that I want the user to select from when they view the data in the "mentions" portal of my "contacts" layout. This works for the most part. The problem co...
stackexchange/codereview
I dont understand why this is forward recursion: int count(int x) { if(x<=0) return 0; return 1 + count(x - 1); } It's a question on a practice exam, and the answer is that its forward recursion. Why is this the case? How could I distinguish between the two?
stackexchange/codereview
I am trying to implement a selection wheel in an iphone application. I have got the wheel to track the users finger but now for some reason when the user touches the screen the wheel jumps so the same section of the wheel tracks the finger each time. How would I get it so the wheel rotates like the user is dragging it ...
stackexchange/codereview
So basically I have a main table, and I want to filter that data to another table (normally easy) but I want this based upon 2 criteria. e.g. I want to filter the data of a specific department but only for the current month. The way I display the current month in the main table is by inserting the date from a userform ...
stackexchange/codereview
Playing around with http://www.tcpdump.org/sniffex.c to get packet options. void payload (char *data) { // data contains full copied packet source without ethernet header. char *ptr = NULL; //ptr = data; //struct ip *pip = (struct ip *) ptr; ptr = data + sizeof(struct ip); struct tcphdr *thdr = (struct tcphdr *) ...
stackexchange/codereview
I'm trying to save an image to my sdcard but running into the following error: java.io.IOException: Parent directory of file does not exist: /sdcard/skdyImages/a46e2e08-9154-4fe7-96e8-2af0a7a92867.jpg I do have the permissions in my manifest <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> ...
stackexchange/codereview
I'm trying to define a DSL where rules (for the sake of this example, the rules define whether something is "good" or "bad") are specified in a block in Ruby. The following is a (grossly simplified) version of what I want to do: def test_block # Lots of other code is_good = yield # ... should give me true or fals...
stackexchange/codereview
How can I create a ListBox control on my Winforms application that has images in an orderly fashion, just like it holds text? I'd like the images to appear like this: Maybe I don't even need to use a ListBox. Maybe there's a better control out there for this purpose? Thanks!
stackexchange/codereview
The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. In other words, you'll most likely set this with the time() function plus the number of seconds before you want it to expire. Or you might use mktime(). time()+60*60*24*30 will set the cookie to expire in ...
stackexchange/codereview
Can somebody please extract a default template of a SurfaceCheckBox for me? I have tried using Blend 2 but failed miserably. The extracted template has some unresolved TargetName references. I am trying to change the template so that the check mark is top aligned. It is centered vertically by default and there doesn't ...
stackexchange/codereview
I have been working on this for hours, but I can't get it to work. Basically I am developing a REST client in Java for a REST server in PHP. Both the client and the server have to compute the md5 of a string and the server will compare them for authentication (kinda). On the server, the PHP code is: md5("getTokenapi_ke...
stackexchange/codereview
I am trying to write a cucumber step definition when user visit sign up page through credit referral.The url of the sign up page contains the ref_id which is actually the user id of the referrer. How do I write step definition for - When /^I visit sign up page with ref_id: "([^"]*)"$/ do |arg1| ....????? end
stackexchange/codereview
I have a problem, just redone a homepage that was in ASP (ASPX) to a PHP. The problem is that i have some links out there that gos like this www.example.com/work.aspx?jid=23 . I need to take controll over the links a redriect them to the main page. How to do that? I have created a work.aspx file that i have written som...
stackexchange/codereview
I want to know how to make a dot/pixel at a certain x,y co-ordinate on my JFrame. Anyone know some simple code for this?
stackexchange/codereview
So, I'm creating a mock object as a static variable on the class level like so... In one test, I want Foo.someMethod() to return a certain value, while in another test, I want it to return a different value. The problem I'm having is that it seems I need to rebuild the mocks to get this to work correctly. I'd like t...
stackexchange/codereview
I'm trying to build a simple drop down that will display the revisions of a specific file. From the option chosen, I use jQuery to fetch the current text contained in that revision and populate a textarea (using svn cat). The header in my HTML file: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-...
stackexchange/codereview
In my app i want to put my website's url on home screen and on clicking on it i want it to be open as a WebView. How should i go for this. Thanks,
stackexchange/codereview
When I specify columns in my jpql/jpa 2.0 query, i.e. select p.id, p.lastName, p.firstName from Profile p where p.group = :group I get the following error: [Ljava.lang.Object; cannot be cast to com.profs.ws.Profile... Anyone know how to resolve this casting issue? The Profile entity class itself has properties of the f...
stackexchange/codereview
I am developing an application with next and previous buttons. Between those buttons, I want to place numbers. This would look like: PreviousBtn 1 2 3 4 5 NextBtn How can I place the five numbers between the buttons? Instead of ButtonField I have a custom button class to implement buttons. I am using the following cod...
stackexchange/codereview
Dear Android hackers, I am attaching a gestureListener recognizing flings to a ListView. The rows of the ListView consist of a LinearView and some TextViews. Unfortunately, the fling is not detected, when it starts on one of the TextViews: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schem...
stackexchange/codereview
Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCanvasRenderingContext2D.drawImage]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://127.0.11.1/test/canvas5_b.php :: setup :: line 27" data: no] function setup() { ...
stackexchange/codereview
I have a new MVC-2 project where I added the area 'member'. I created a controller named: 'profile'. This works: http://localhost:1234/Profile (loads up the index() function) This however doesn't: http://localhost:1234/Member/Profile (i get a 404 error) Am I missing something here?
stackexchange/codereview
I have the same issue as that guy: Enter Key Press behave like Submit in JSF So my Enter button doesn't work in h:inputSecret too. The answers he got are not sufficient for me. And I want to add some code for you: <h:form> <div class="box-login runny-bg round-corners" > <h6><h:outputText value=...
stackexchange/codereview
Saving images to a given location i followed the above link and it works but i dont get actual image size...it is much bigger... how can i fix it... Thanks for any help
stackexchange/codereview
I have a class defined like this: This is not all complete and probably won't compile. class Server { public: Server(); ~Server(); class Worker { public: Worker(Server& server) : _server(server) { } ~Worker() { } void Run() { } void Stop() { } private: Server& _server; } voi...
stackexchange/codereview
Is there a tool available that can do performance profiling of OpenGL shaders?
stackexchange/codereview
I've got the following table schema in SQL Server 2005 and I'd like to denormalize it into an indexed view for some queries I'm writing until I can make the structural changes permanent. The tables are as follows Writing ( DocumentSerial int Grader1_ID int Grade_1 int Grader2_ID int Grade_2 int Grader3_ID int Grade_...
stackexchange/codereview
I am adding logging into existing source code (large source code) to give a detailed logging, we decided the backend for logging (using face book scribe, and tested ). I am thinking of using Aspect oriented ways to add logging calls into all the functions (to start with) Is this a good approach to use AspectJ to handle...
stackexchange/codereview
what does this xpath mean ? can someone decipher this ? //h1[following-sibling::*[1][self::b]]
stackexchange/codereview
In RSpec: Can I attach a message to a check the same way as I would do in xUnit style test frameworks? How? assert_equal value1, value2, 'something is wrong'
stackexchange/codereview
I am using this code to create an instant search for my site... http://woorkup.com/2010/09/13/how-to-create-your-own-instant-search/ Some of the phrases in our database our very complex and can be easily misspelt so on top of this I wanted to use spelling suggestions. Does anyone know of any ways to offer correct spell...
stackexchange/codereview
I've a problem with php file upload. In my php.ini 'upload_max_filesize' is set to 4mb. When i try to upload a file bigger than that I never get the UPLOAD_ERR_INI_SIZE error as expected, but the page show the form again without any information about the file ($_FILES is empty). What's the problem? Am I doing something...
stackexchange/codereview
I need to LEFT join to entire t2+t3 branch, but if I can find a matching join between t1 and t2, I want to enforce the t2 and t3 join. SELECT T1.name,T2.bob,T3.a FROM T1 LEFT JOIN T2 ON t1.id = t2.t1_id JOIN T3 ON t2.id = T3.t2_id What is the syntax? Sample data: T1 [id,name] 1 aaa 2 bbb 3 ccc T2 [id,t...
stackexchange/codereview
I have an array of Strings: Dim sArray(4) as String I am going through each String in the array: for each element in sarray do_something(element) next element do_something takes a string as a parameter I am getting an error passing the element as a String: ByRef Argument Mismatch Should I be converting the eleme...
stackexchange/codereview
Text File contents: &CRB A='test1' B=123,345, 678 &END Misc text potentially between entries ... &CRB A='test2' B=788, 345, 3424 &END &CRB A='test3' B=788, 345, 3424 &END &CRB A='test4' B=788, 345, 3424 &END What is the most efficient way to iterate through the entries bet...
stackexchange/codereview
I'm so curious because I'm maintaining a 3d engine written in Javascript. Which is faster, parseInt(el.style.width) or el.offsetWidth? Should I write parseInt(el.offsetWidth)? Which is faster, getElementById() or childNodes[]? Which is faster, new Image() or appendChild('img')? Give me please a link to a splendid Java...
stackexchange/codereview
I found net.sf.json-lib in the central repository. Copy-pasted the dependency (with version 2.3), and then when I build I get this error: [INFO] Unable to find resource 'net.sf.json-lib:json-lib:jar:2.2.3' in repository central (http://repo1.maven.org/maven2) [ERROR] BUILD ERROR [INFO] --------------------------------...
stackexchange/codereview
i'm using php module xml_parser and i need to set the maximum memory allowed above the default one, or to do something to avoid crashing where the xml is larger than standard allowed. by the way i'm using http://www.bin-co.com/php/scripts/xml2array/ to parse the xml, but if it's larger than 13K it just crashes at line ...
stackexchange/codereview
I'm trying to open a file using fopen, and I am getting the error: Warning: fopen(/var/www/views/images/favicon.gif): failed to open stream: Numerical result out of range The file exists at the provided path. I couldn't find any documentation on the error to fix it. Any thoughts?
stackexchange/codereview
HI, I have MAC OS X 10.6.4 dmg file. I want to make bootable DVD. Do I have to convert it to ISO? Or just burning dmg file will do? Any other things that needs to be done to make it bootable? Please let me know. Thanks!
stackexchange/codereview
How does this plugin works in translating to other language. I want to use this plugin for translating language. How it works and I need the documentation for this plugin. Where can I get it.? Any suggestions please>
stackexchange/codereview
I have a form in my existing project. My current task is to make a duplicate of an existing form and change few things on the new form. Making a copy of the form cs files would not do since the existing contents themselves refer to file information. Simply put, I am trying to crate a form name MyNewForm, which will be ...
stackexchange/codereview
I have three layers, two of which are hidden using CSS. I would like to make those layers visible/invisible depending on which input the user focuses on: The three I'm changing are layers are: #titleBox, #phoneBox, #addressBox, the inputs are #title, #phone, #address. The #titleBox is the only one visible on page load....
stackexchange/codereview