instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Hey guys. This is a very simple question, I'm sure, but I'm getting myself tangled up in C references/pointers as per usual. I am trying to build a... sort-of-queue, using a sort-of-linked list. Basically, I have a struct which has contents and a pointer to the next element. I also have a pointer to the first and last ...
stackexchange/codereview
I have a question regarding Tab Item Content. How do I specifically choose what is the current tab that is chosen and what do I put on this code, assuming this is the tabItem TabItem TI = new tabItem(); TI.Content = __ ? How do I put it in code like if I want to put a user control/xaml page into the tab item content?
stackexchange/codereview
I got 2x public functions in a class that must call 1 private function with different parameters also in the same class... for some reason it tell me that it can't find the function... example: class Foo { private function Do(...) { .... return $whatever; } public function One(...) { retu...
stackexchange/codereview
The question is how could I stop a method being called twice, where the first call has not "completed" because its handler is waiting for a url to load for example? Here is the situation: I have written a flash client which interfaces with a java server using a binary encrypted protocol (I would love to not have had t...
stackexchange/codereview
Basically is to click button to generate table row, then click minus button to remove row. I have tried it with a few ways below, non of it work. -.bind -.live -normal way It seems like it is not working due to the table is generated dynamically. <script language="JavaScript" src="jquery-1.4.3.min.js" type="text/javasc...
stackexchange/codereview
I have a problem with the focus traversal system in Java. When I tab between components in a pane in my application everything works fine Tab moves the focus to the next component. Some of my components perform validation on loss of focus, if the validation returns errors then the screens save button is disabled. My pr...
stackexchange/codereview
Is python logger thread-safe or not? I use python 2.6.
stackexchange/codereview
I have following problem: I'm trying to implement Spring in existing ear application (using Jboss as App Server and Hibernate as ORM). The ear application consists of war(basically few simple servlets), har(hibernate archive which has only the data model-as classes and the corresponding hibernate mapping files - as xml...
stackexchange/codereview
I have been trying Simple XML but I can not navigate through the structure of the file. This is the URL I am trying to parse. https://ws.brreg.no/lod/data/982463718
stackexchange/codereview
I am doing a project with a PLC, im using sockets to interact with server listening on the PLC.I gave the instructions in the ASCII Format,untill 127 my instructions are working fine,when it exceeds 127 ,the code works but proper values are not sent to the PLC . how to overcome this. s= 130; Query = Convert.ToChar(00)....
stackexchange/codereview
The following code: foo.h #include "bar.h" class foo{ public: enum my_enum_type { ONE, TWO, THREE }; foo(); ~foo() {} }; foo.cpp foo::foo() { int i = bar::MY_DEFINE; } bar.h #include "foo.h" class bar{ public: static const int MY_DEFINE = 10; foo::my_enum_type var; bar() {}; ~bar() {}; }; ...
stackexchange/codereview
I'm using this tab script from Dynamic Drive. Here's the URL... http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm I have a page which has a search form for friends. When submitted I'd like the results to load into the content container.."countrydivcontainer" Basically here's my layout... <table cellp...
stackexchange/codereview
This is what I've used with remote_form_tag: <% form_remote_tag(:url => {:controller => '/companies', :action => 'update'}, :update => 'tags') do %> <%= text_field :company, :tag_list %> <%= submit_tag 'Save' %> <% end %> This is in a Company.view, where Company is a model that is acts_as_tagga...
stackexchange/codereview
i am working on application in WP7 , i would like to pass a list box as parameter to client_DownloadStringCompleted method. My code looks like below , WebClient client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
stackexchange/codereview
I have created a shell script to run a jar file in Mac : #!/bin/sh java -Xmx512m -jar test.jar; I have renamed this script "app.command" to run directly when double clicking it. And i have applied "chmod +x" command to it to have executable permissions. Now when double clicking this script, i get "Unable to access jar...
stackexchange/codereview
In my game i'm currently working on, i only need very basic physics, so i don't want Newton, ODE, Bullet or similar. I basically only want to fall as long as no node (all equally sized blocks) is beneath me. I tried to send a ray from the camera and 100.0 units downwards. But it gives false positives. selectedNode = NU...
stackexchange/codereview
I'm having an issue that I'm unable to fix, I've a pivot with a bing Map in one of its screens, the thing is when you flick (scroll horizontally) on the map, the pivot transition is also performed... Is there a solution or even a hack/workaround to avoid this side effect ? Thanks in advance Miloud B.
stackexchange/codereview
I have Hibernate method which returns me a BigDecimal. I have another API method to which I need to pass that number but it accepts Integer as parameter. I cannot change return types or variable types of both methods. Now how to convert the BigDecimal into Integer and pass it to second method? Is there a way out of th...
stackexchange/codereview
My page looks correct in Firefox and IE8. But in IE7, a nested gridview spills into the adjacent cell, much like the issue here. Looking at it in the developer tools, there is an inline-style associated with the table that ASP.NET generated, and it has a width attribute of 100%. If I remove this, the nested table pop...
stackexchange/codereview
I'm using pre and post build events of my service to uninstall and install the service. The only problem is that the first time another developer uses the pre build event it fails since the service is not yet installed. My current pre build event which uninstalls is %WinDir%\Microsoft.NET\Framework\v4.0.30319\InstallU...
stackexchange/codereview
The code below echoes out an HTML table, populated with values from a MySQL database. The CSS changes when a field called "topten" equals 1. When "topten" equals 1, I would like to have a rectangular background 100 pixels high, 800 pixels wide, and color #A6FFFF;. When "topten" does not equal 1, I would like there ...
stackexchange/codereview
I have a text area in HTML where the user can enter text, but when the form is submitted, and its passed to a php script which echo's it, there aren't any newlines. Knowing that HTML does that, I tried doing a preg_replace() before echoing it... echo preg_replace("/\n/", "<br />", $_GET["text"]); but still everyth...
stackexchange/codereview
I'm trying to find a way to update a RibbonMenu's items (like a few RibbonButtons) when the RibbonMenu is clicked (i.e. something like a BeforeDropDown). I know I can update it with the event of another control, but how do it update it when it is clicked? This doesn't seem to be of much help.
stackexchange/codereview
I'm trying to convert a byte array to a string in Silverlight, but I get the following compilation error: 'System.Text.Encoding.GetString(byte[])' is inaccessible due to its protection level This is the method that I'm using: string text = UTF8Encoding.UTF8.GetString(myByteArray); How else can I achieve this?
stackexchange/codereview
We have a script to delete the svn:mergeinfo property from all folders inside a Subversion working copy, but not the working copy root directory itself. It's currently an NAnt build script invoked via a separate batch file, so I'm trying to replace it with a simpler PowerShell script. I've had three attempts at it, r...
stackexchange/codereview
import java.util.regex.*; import java.io.*; class Patmatch{ static String str = ""; public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter name to see match"); try{ str = br.re...
stackexchange/codereview
Please could someone help with the following: Using PHP I want to be able to post the details entered into a form to a csv file. This is quite straight forward on its own, however one of the fields in the form needs to upload a file, so the csv file needs to contain a link to where the file is saved. Thanks
stackexchange/codereview
I am releasing two versions of an app--free and paid. The differences between the two are few, and I would like to release both using the same codebase (maybe a different constant defined for the other build?). Has anyone done this? Can someone point me in the right direction? Thanks!
stackexchange/codereview
The following C code doesn't work (it just clears the list): /* Takes linkedlist of strings */ static int insertSort (linkedlist *list) { linkedlist sorted; void *data; node *one, *two, *newnode; unsigned int comp, x; removeHeadLL (list, &data); initLL (&sorted); addHeadLL (&sorted, data); while (list...
stackexchange/codereview
I've been working with the Dropbox API as of late, and have run into an infuriating but interesting snag. The SDK saves OAuth tokens in standardUserDefaults, and if the user wants to disable the Dropbox functionality the OAuth tokens have to be removed (otherwise the SDK finds them and goes off to work). Here's the wei...
stackexchange/codereview
Incorrect key file for table '/tmp/#sql_185e_0.MYI'; try to repair it What does this error mean? "Incorrect key file for table '/tmp/#sql_185e_0.MYI'; try to repair it" I'm inserting 400k records in a table by 25k per batch using PHP in command line. If I inserted only 1k records then it will not produce the MySQL er...
stackexchange/codereview
I was wondering what are the most popular open source obdc/database connection libraries are. I've heard of pyodbc, but I wasn't sure how widely used it was. Thanks
stackexchange/codereview
Hey i was wondering if anyone had any insight on how to crop an image by pixel color using the Emgu Wrapper. I have it already turn the image grayscale for processing and all the image that i don't need is black. Is there any way to crop these pixels out? Now I'm not talking about making them transparent, i physically ...
stackexchange/codereview
I'm trying to eager load roles in many to many collection off of my User object. Role role = null; IQueryOver<User, User> query = session.QueryOver<User>() .Fetch( p => p.Roles).Eager .JoinAlias( q => q.Roles, () => role) .W...
stackexchange/codereview
I'm writing an application that listens for sound events (using messages passed in with Open Sound Control), and then based on those events pauses or resumes program execution. My structure works most of the time but always bombs out in the main loop, so I'm guessing it's a thread issue. Here's a generic, simplified ...
stackexchange/codereview
So here is the problem: Recently someone bought a new PC for server to replace an older dating from before 1985 (i wonder how it is possible to work daily from then) . He wants to put there the old COBOL software and he isnt willing in any means to rewrite it to something better.. So is there any compiler for 1985 cobo...
stackexchange/codereview
I have listview that contain checkbox and an image when the checkbox is clikced I show a button at bottom of the screen that perform deletion, but when listview height more ,then the listview some portion move under the button ,so I need an alternative option for delete can anyone help me, I except something like menu?...
stackexchange/codereview
I have a label in my web page as label for="title" How can i style this specific label element?
stackexchange/codereview
I am developing an application in which I want to pull out some information through the DHCP server. so I am sending a DHCPINFORM packet on port 67 UDP Broadcast. The problem I am facing is that I am not getting response i.e. DHCPACK or anyother message from DHCP server all the times, means some times it send back an D...
stackexchange/codereview
I wish to shuffle the lines (the rows) of a file at random then print out to different five files. But I keep having exactly the same order of lines appeared in file1 to file5. The random generation process does not work properly. I would be grateful for any advices. #!/bin/bash for i in seq 1 5 do awk 'BEGIN{srand(...
stackexchange/codereview
I'm learning Scheme in a class and my professor doesn't answer questions after 8:00, so I'm hoping you all can help me out. Basically I have a family tree type thing and I'm trying to get all the ancestors of one person, and display them as one string, sorted alphabetically. The problem is, because of the recursion,...
stackexchange/codereview
Good afternoon, This may sound like a silly question, but it would be really useful if there was a way around this... Is there any way I can get custom bit-depth integers (for example, a 20-bit integer) in C#? Thank you very much.
stackexchange/codereview
As a disclaimer I am not at all familiar with Win32 development. I was wondering if there was any way to automate control input to a GUI application if that application is minimized. Most automation tools I have seen specifically use coordinate offsets from the window (tlx,tly). I don't need a testing framework, I s...
stackexchange/codereview
If I set the properties of "buttonMode" and "useHandCursor" to true in DataGrid, it does not work as I expect. Only if I move the cursor to the edge between two rows, the hand cursor displayes. What I expect is that no matter where the cursor is moved, it should always show hand cursor. The following the itemRenderer:...
stackexchange/codereview
I am building an app with Google App Engine (and Python). I have two questions about retrieving data from datastore. I have information about users and information about posts made by users. Here is part of DB Models: class User(db.Model): country = db.StringProperty() # many other entities class Post(db.Mode...
stackexchange/codereview
First; On my development server (localhost; default XAMPP on OSX) everything works fine, though when I deploy the exact same code (and data) to the staging server (managed Apache2 on Redhat) it breaks. I'm caching some data using Zend_Cache using the File backend and auto-serialization. Special characters used in the o...
stackexchange/codereview
I’m thinking of all type of game categories. My experience is that there aren’t any open source games that really challenge the commercial ones, considered game value, graphics, sounds etc.
stackexchange/codereview
This seems like such a simple thing but I just can't get it to work. I have a single line text box that has a lot of text. What I want to happen is that whenever the text box receives focus, it scrolls to the end of the text so that it comes into view and the cursor is at the end ready to accept new text. In the text ...
stackexchange/codereview
When I try to debug my app I get a runtimeexception when I include this xml in my layout. I cannot see what is wrong with it, can you? I am using android eclipse plugin, eclipse 3.5.2, with the latest android plugin and the latest java 6...21 on winxppro 32 bit sp3 Thank you. <ImageButton android:id="@+id/map_butt...
stackexchange/codereview
My UI is using QTreeView with QFileSystemModel to be able to select folders and files. The documentation for QFileSystemModel says that file structure update is done on a seperate thread which would mean the UI would not be blocked. However, this is not the case for me and I can't figure out the discreptency and how ...
stackexchange/codereview
I am working on a large website (1600+ pages) that needs upgrading to pass standards compliance. As a result, for every OnClick there has to be, say the Standards, an OnKeyPress handler, so that people not using a mouse can still access the content. Some tags have an onclick javascript handler. EG: <a onclick="doSuma...
stackexchange/codereview
How can i get the width and height of the canvas element in JavaScript? Also, what is the "context" of the canvas I keep reading about?
stackexchange/codereview
Can you please tell me why this works: $customer_data_date14daysAgo = mysql_query("SELECT COUNT(*) AS count FROM tableName WHERE datetime BETWEEN '$date14daysAgo%' and '$dateToday%' ") or die(mysql_error()); But this doesn't? $customer_data_date30daysAgo = mysql_query("SELECT COUNT(*) AS count FROM tableName WHERE...
stackexchange/codereview
I want to check permissions of a logged in user before presenting the iframe login to request extended perms, but the iframe popup gets blocked by the browser (ff, chrome tested). I want to avoid this and i'm pretty certain its because the results of the js functions are 'nested' - my js cleverness is limited so excus...
stackexchange/codereview
I am trying to use the Microsoft Bing API. $data = file_get_contents("http://api.microsofttranslator.com/V2/Ajax.svc/Speak?appId=APPID&text={$text}&language=ja&format=audio/wav"); $data = stripslashes(trim($data)); The data returned has a ' ' character in the first character of the returned string. It is not a space, ...
stackexchange/codereview
How can I detect if a user holds their finger down on an onscreen object for 1 second ? Thanks, Martin
stackexchange/codereview
How can I save a byte[] array into a SQL Server database? This byte[] contains a HashAlgorithm value. The data is needed again for later use. So converting it and NOT getting it back in its original state, is not what I want.
stackexchange/codereview
I am newbie in ASP.NET. I have prepared an arraylist of Product and want to display in the page. Easiest way is binding the arraylist to GridView. But I don't have flexibility there, since it will automatically generate a TABLE behind the scene. Is there any other way to give us flexibility to really control the HTML o...
stackexchange/codereview
I have a application which has very bulky page and i can not reduce the functionality any more. Because of this my every page is taking too much time to load completely. Is there any way to load the page in sequential manner. Link once i hit the URL few content get displayed immediately and other contents will get dis...
stackexchange/codereview
Something i'd never noticed before, but it seems that in Chrome/Firefox (and probably Opera/Safari, i've not checked those specifically) using a strict doctype prevents table rows from being displayed smaller than a value that i'm unable to determine the calculation of. The following document displays as one might imag...
stackexchange/codereview
When I import country data using RODBC I often use ISO2 codes. The unfortunate part is Namibia with ISO2 "NA" always gets set to missing. There are various ways around this of course, but I wonder if anyone has found a way to just import correctly. I've tried df <- sqlFetch(ch,"data_from_database", na.strings="") df <-...
stackexchange/codereview
What would be the easiest way to have the same kind of behavior that is in vim for the word back and forth navigation? In vim when you press "w" it moves a cursor forward one word, where word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white spa...
stackexchange/codereview
I asked a question a couple weeks ago about using setTimeout for a factorial function, but it was unfortunately with an unregistered account and I never got a complete answer. My main issue is that I'd like to write a function that calculates the factorial of a number but uses the setTimeout or setInterval commands. T...
stackexchange/codereview
I started reading about GADT in Haskell Wiki but didn't feel quite comfortable understanding it. Do you recommend a specific book chapter or a blog post explaining GADT for a Haskell beginner?
stackexchange/codereview
Does cygwin (1.7.x) understand Windows NTFS junction points (as created by mklink in Win7/2008 or sysinternals' junction.exe)? How do they differ from a symbolic link as created by "ln -s "?
stackexchange/codereview
I previously have an FBML application in Facebook and now change to an IFrame application in FB, using the graph API. (under the same name, same game account. Just switch from FBML to iFrame). I had a list of people with Extended Permission accepted for email. Since I change to IFrame, I can get their email... by wha...
stackexchange/codereview
Actually, memcpy works just fine when I use pointers to characters, but stops working when I use pointers to pointers to characters. Can somebody please help me understand why memcpy fails here, or better yet, how I could have figured it out myself. I am finding it very difficult to understand the problems arising in ...
stackexchange/codereview
I have a logo that is a transparent png and i want to overlay it on my bg image but when i do it shows only the background color. Here is an example: I am using a modified copy of the WP theme Colourise The Css is here: http://files01.s0urc3.ismywebsite.com/colourise/style.css And the page here: http://s0urc3.ismywe...
stackexchange/codereview
I just downloaded the latest version of Netbeans - 6.9.1. I've been using 6.8 for some time for my PHP and HTML development on websites and whatnot. My business partner needs a cross-platform desktop application developed and so I figured that Java would be the way to go. Here's my problem - I downloaded the 6.9.1 vers...
stackexchange/codereview
I'm currently trying to run some unit tests on a class that uses HTTPtransport and is part of an Android application. The docs for google-api says that this should be fine since the Apache transport is built into Android. However, when running my tests I get the following error: java.lang.IllegalStateException: una...
stackexchange/codereview
I have a XIB file of type View XIB. In it I have a View controller, and in the View controller I have a label. I have long text that I want to break, but it doesn't - it gets truncated. I tried this solution - I did it in the attribute window - but it doesn't help.
stackexchange/codereview
Working on a prebuilt system that grabs remote images and saves them to a server. Currently there is no checking on the image as to whether it indeed exists at that remote location, and it is of a certain file type (jpg, jpeg, gif) and I'm tasked with doing both. I thought this was quite trivial as I'd simply use a sim...
stackexchange/codereview
Sometimes I stub dependencies in test class setup and then want to restub some of them in concrete test. But Rhino mocks remembers only the first stub value and it is a bit inconvenient. someStub.Stub(x => x.SomeMethod(1)).Return(100); var value1 = someStub.SomeMethod(1); someStub.Stub(x => x.SomeMethod(1)).Return(200)...
stackexchange/codereview
I have some (library API, so I can't change the function prototype) function which is written the following way: void FreeContext(Context c); Now, at some moment of my execution I have Context* local_context; variable and this is also not a subject to change. I wish to use boost::bind with FreeContext function, but I ...
stackexchange/codereview
Eclipse has the Mark Occurrences feature where it highlights all occurrences of a selected variable/method. Is there a way to navigate to next or previous marked occurrence?
stackexchange/codereview
I'm trying to open Shadowbox on page load, i've tried different code i found here and on the web but cant get it to work. Keep getting a container is undefined error... Heres my code <link href="js/shadowbox-3.0.3/shadowbox.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://code.jquery...
stackexchange/codereview
For starters this is a homework question. I have an idea but I am still not able to get the correct answer. I'm not asking for the answer I am just asking for help to answer the question. I am currently trying to write a context free grammar for the language a(iterated i times)db(iterated j times), for i and j>=0, a...
stackexchange/codereview
I just don't know why i get this error: 2010-10-28 16:32:29,925 ERROR [ache.commons.digester.Digester.error :1635] - Parse Error at line 45 column 56: Attribute "cascade" must be declared for element type "put-attribute". org.xml.sax.SAXParseException: Attribute "cascade" must be declared for element type "put...
stackexchange/codereview
I'm new to git so I apologize (and please correct me) if I misuse terminology here, but I'll do my best. I'm trying to set up a bare git repo (hub) and a development site working copy (prime) on a web server. I've tried to pattern it after this article. I want the development working copy to be updated whenever the hub...
stackexchange/codereview
Does anyone know how to configure Qt-Creator to use cygwin's make to build a project? Maybe this is a simple cygwin-mangled Windows path problem, but I can't get Qt-Creator to find/run cygwin's make. My make lives in /usr/bin, which is actually c:\cygwin\c\usr\bin on my system. Either way, Qt can't seem to find it u...
stackexchange/codereview
This is a very narrow scope of the code, but it is where the issue lies. function getJSON(tabUrl){ $.getJSON(tabUrl, function(data){ console.log(data); }); } I am using jquery 1.3 because getJSON in 1.3 can handle malformed JSON. The server I'm getting my json from uses the old parameter:'value' format. Here ...
stackexchange/codereview
I'm using the jQuery Cycle plugin to cycle through some words, but I don't want it to start or show any of the words until a few seconds after page load, perhaps 10 seconds or so. This is the code I have: $(document).ready(function() { $('#questions').cycle({ delay: 10000, speed: 2000 }); }); What would ...
stackexchange/codereview
I'm planning to setup my own build server. I'm primary building C#, C/C++ and Java projects. I would also like my build server to run some external programs/scripts such as my unit tests, code static analysis and doxygen. Suggestions?
stackexchange/codereview
I am aware that mysql does not support storing timestamp columns with millisecond precision. My question: is there a mysql function I could write that will output the current time as a BIGINT(13) to millisecond precision. For example, as now() outputs a timestamp: mysql> select now(); +---------------------+ | now() ...
stackexchange/codereview
From the man page of qsort, in an example of sorting strings: static int cmpstringp(const void *p1, const void *p2) { /* The actual arguments to this function are "pointers to pointers to char", but strcmp(3) arguments are "pointers to char", hence the following cas...
stackexchange/codereview
I have installed Eclipse 3.61 ( + Aptana 2) and really tired of annoying validation messages. Removed all but cant get rid of this. How can I disable these popups?
stackexchange/codereview
hey guys, i'm working on a concept for university. i wonder what's the easiest and best way to measure certain vibration in a room. imagine a room full o people dancing. is there any affordable device i can put on the floor that sends data to my computer so i can read out vibration values or use vibration as data? than...
stackexchange/codereview
What is it and why is it used/useful?
stackexchange/codereview
Im sending a list from my controller class to my View which contain a list of values of type long. Now i want to traverse on that list in jquery to be able to view these values and perform my next operation. Im using Asp.net mvc and jquery. how to convert it so i can access each value?
stackexchange/codereview
I have using cakephp and I want to obscure all numbers which is more than six digits. something like this $string = "My id number is 77765444 in Sales dept."; becomes $string = "My id number is XXXXXXXX in Sales dept." I appreciate any help. Thanks.
stackexchange/codereview
Hi A software named G09 works in parallel using Linda. It spawns its parallel child processes on other nodes (hosts) as /usr/bin/ssh -x compute-0-127.local -n /usr/local/g09l/g09/linda-exe/l1002.exel ...other_opts... However, when the master node kills this process, the corresponding child process on other node, namely...
stackexchange/codereview
I am starting an android camera app for taking pictures. When I ctrl-shift-O to get the import for the Camera class there are two choices: android.graphics.camera and android.hardware.camera. Which one should I use and what are the main differences?
stackexchange/codereview
The schema is as follows: CREATE TABLE [Structure]( [StructureId] [uniqueidentifier] NOT NULL, [SequenceNumber] [int] NOT NULL, -- order for siblings, unique per parent [ParentStructureId] [uniqueidentifier] NULL, CONSTRAINT [Structure_PK] PRIMARY KEY CLUSTERED ( [StructureId] ASC ) ) ON [PRIMARY] AL...
stackexchange/codereview
I have a persistence related java-ee code which I need to rewrite to make the app work on the Google App Engine and its data storage. When I use java-ee persistence providers, I generate persistence entities with my IDE and I keep them the way they are in case I need to regenerate them. However autogenerating entity cl...
stackexchange/codereview
Is there are a reason why android menu icons are always monochrome and not color? Is there any reason why i shouldn't use color menu icons?
stackexchange/codereview
I'm in the beforeRequest handler, and would like to know what the current sort column is. How can I find that?
stackexchange/codereview
I Have tried both of them online (created online account). BittAds seemed a bit glitchy but anyway - which is better in your opinion and why? Maybe there are better solutions? I don't have a huge website...
stackexchange/codereview
I want to disable inputs with a particular class, however I want to do this for any future inputs added to the page. live() and delegate() can bind to events on elements that don't exist yet. Is there some sort of selector that can run some code on future elements in the same way?
stackexchange/codereview
my onchange isn't firing the javascript method properly. Select code (in HTML file) <select id="crit_1" onchange="crit1Update()"> <option value=null>Criteria 1</option> <option value="major">Major</option> <option value="grad">Graduation Year</option> </select> crit1Update() code (in external filter.js file in s...
stackexchange/codereview
Please see this UI sketch image, I have this div in sidebar (black box) on a certain site and as I scroll down or scroll up, I don't want it to hide...I want it to move itself down as I scroll down and move itself up as I scroll back up so that it never hides out. Can you recommend me some jQuery that can get this done...
stackexchange/codereview