instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a coverflow-like image carousel grabbing photos w/iPhoto scripting bridge. I have the view set to accept first responder and have implemented methods for left and right arrows, but cannot figure out, conceptually, how to approach making the layers clickable. I know that accepting mouse-down events is the contain...
stackexchange/codereview
My SQL Query is select ID, ModuleID, (SELECT ((CAmount * CPercentage)/100) FROM Table1 ) as Percentage from Table1 order by ModuleID ; It works perfectly if there is only one value but if there is more than one value i get an error. how to handle it, i want all the amount in the table to be converte...
stackexchange/codereview
I have an ordered list which has a <input type="text"... and <button> field. When I render them I get the fields in 2 separate lines. How do I get them to come in the same line? HTML- <li> <input type="text" value="Paste URL here"></input> <button id="i">Go</button> </li> I have even removed them from <li> & p...
stackexchange/codereview
The following two expressions are equivalent: (third (list 1 2 3 4)) (first (nthcdr 2 (list 1 2 3 4))) However, using "third," "fourth," "fifth," etc. isn't always practical and (first (nthcdr n list)) seems a little verbose. Is there a way to say something like (item 2 (list 1 2 3 4)) to get the nth item in a list?
stackexchange/codereview
I am working on a project where I have to perform calculations on arrays of data in PHP. Some of these calculations involve working with multiple arrays. All are the same length (count). Question: Is it more efficient (memory and processor usage) to place the data into a multi-dimensional array or keep in two arrays. K...
stackexchange/codereview
I'm using Flex 3 with Flash 9. I'm trying to make a timer that will run once after 1 second. Unfortunately, me timer keeps repeating. How do I get it to stop? public var myTimer:Timer = new Timer(1000, 1); private function visFunc():void { myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, imageProducer); myT...
stackexchange/codereview
I'm attempting to write ONE query that will do a COUNT on several columns, group them by their respective column. Here's the query I have right now: SELECT COUNT(*) as total, COUNT(q3_pay) as q3_pay_total, COUNT(q3_holidays) as q3_holidays_total, COUNT(q3_vacation) as q3_vacation_total, COUNT(q3_sick) as q3_sick_total,...
stackexchange/codereview
I seem to remember there was a way to access the parenthesized matches of a regex in Perl (i.e. $1, $2, $3, etc.) as an array, but now I can't seem to find that. Neither @+ and @- are what I mean. Edit: I should add that I want to access this array inside a s/// (substitution), like so: s/(foo)(bar)+(baz)/mySubst(@!)/...
stackexchange/codereview
I have sensitive information stored in a database which goes through the following process: user enters information through webform. information entered is encrypted using AES 256-bit and salted using unique id to each user (although this is stored in the same database, and sometimes same table). The encrypted pass 1 ...
stackexchange/codereview
So I have this <div /> with overflow: auto. Inside of it are some <input type="text" /> elements. Half of the div is hidden; the user is supposed to click some navigation links to hide the first half and show the second half. It turns out that, in Chrome (not in Firefox or IE), if the user puts his cursor inside the <i...
stackexchange/codereview
I have a website where a user of my community can import his KML file (exported from Earth of Google Maps) and display a map (ex his favorite restaurants in Chicago). this part was ok and easy but now I would customize the icons on the map, and i dont see how is it possible using KML files... there is any othe solution...
stackexchange/codereview
How is JSON support added to dispatch-servlet.xml (XML is working without problems)? Commented text was just fail attempt... <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springfra...
stackexchange/codereview
Do I create multiple memory leaks by: NSMutableArray *array=[[NSMutableArray alloc] init]; [array addObject:[[NSNumber alloc] initWithBool:boolVariable1]]; [array addObject:[[NSNumber alloc] initWithBool:boolVariable2]]; [array addObject:[[NSNumber alloc] initWithInt:intVariable]]; [array addObject:[[NSNumber alloc] in...
stackexchange/codereview
I have a situation where I am using TFS builds to deploy an MVC site to various environments. I would like to use the web.config transforms with the TFS builds to ensure things like connection strings are correct for each environment without me having to edit the web config manually. I have created new Configurations (...
stackexchange/codereview
I'm a Java/Eclipse noob and I want to generate class diagrams from my source. I'm unemployed so Free would be a good price. What are some reasonably stable plugins for Galileo to do this? BTW, I know the Eclipse project has a UML sub-project. I couldn't quite tell what state of readiness it was in or whether it co...
stackexchange/codereview
Can non-local-returns be implemented in JavaScript, so that you could write something like: function some_function() { function some_other_function(value) { non-local-return true; } some_other_function(); return false; } true === some_function(); where some_function would return true, then?
stackexchange/codereview
I feel terrible having to ask but everything I have come across is for end users looking to pin installed app tiles to the start menu. When you create an app in VS you are given a graphic that is used in the menu but when you pin the app to your start menu you get a blank tile in the chosen accent color with the name o...
stackexchange/codereview
I am having problem create a tablelayout inside an activity. So far i managed to display the resulting query using textview. ( (TextView) view.findViewById(R.id.tv_id) ).setText( listItem.getId()+""); ( (TextView) view.findViewById(R.id.tv_name) ).setText( listItem.getName() ); ( (TextView) view.findViewById(R.id.tv...
stackexchange/codereview
I have a tab bar control and need a method in the view controller of each tab to get called once a tab bar item is selected. Does anybody know which method gets called? Thanks
stackexchange/codereview
I have a file which is in project folder my wampserver www directory and I want to create a path to this file in my PHP script. I am not sure what is right in accomplishing this as I have seen the use of "./", "../" and the full root directory of "c:/...." I foresee a situation where the use of C: would restrict the us...
stackexchange/codereview
I am using GSON to decode JSON into an object of type T e.g. public T decode(String json) { Gson gson = new Gson(); return gson.fromJson(json, new TypeToken<T>() {}.getType()); } This however returns an exception - java.lang.AssertionError: Unexpected type. Expected one of: java.lang.reflect.ParameterizedTy...
stackexchange/codereview
How to get current mouse coordination on the screen? I know only Mouse.GetPosition() which get mousePosition of element, but I want to get the coordination without using element.
stackexchange/codereview
I made a little example of my problem here: http://peterbriers.be/test/float_html5.html As you can see, I have a 'navigation list', and a floating header. WHY is the header IN the navigation list? That is'nt normal behaviour is it? The navigation list even inherits the height of the header. :s
stackexchange/codereview
I am looking for a solution that will allow me to create a PDF outfile from C# that also merges in a seperate, static PDF file as the background watermark. I'm working on a system that will allow users to create a PDF version of their invoice. Instead of trying to recreate all of the invoice features within C# I think ...
stackexchange/codereview
I am required to automate software tests for my job and I currently use groovy to do this. However, I am thinking about adding Ruby to my repertoire. Mainly because I can see myself working on a rails project in the future. How long do you think it would take to become relatively proficient at scripting with Ruby? I...
stackexchange/codereview
i am adding tracing for audit purposes of a simple process i have built as an .exe and set in the scheduler to run every 10 minutes. i want to have the application output the results into an xml file. if the file exists then open and append data to it, if it does not exist i want to create a new xml file that will be...
stackexchange/codereview
Possible Duplicate: How to get the insert ID in JDBC? Hi, I'm using JDBC to connect on database through out Java. Now, I do some insert query, and I need to get the id of last inserted value (so, after a stmt.executeUpdate). I don't need something like SELECT id FROM table ORDER BY id DESC LIMIT 1, because I may ha...
stackexchange/codereview
Ok, I need to create two arrays like this: double[][] TrainPatterns = { new double[] { 0.0, 0.0 }, new double[] { 0.0, 1.0 }, new double[] { 0.0, 2.0 } }; double[][] TrainResults = { new double[] { 0.0 }, new double[] { 1.0 }, ...
stackexchange/codereview
If I post a form using Ajax.BeginForm, do I have to set all the ViewData values again? That doesn't make sense, right? Why would ViewData slip?
stackexchange/codereview
I have site with single Post which has comment form. How could I receive id of post in my add() method of Comment controller? Thx!.
stackexchange/codereview
How can one hook into this info? I need to do some auditing, and while it is rather trivial to handle the request info, the response info seems to elude me. Currently, I can only view this info locally via Fiddler or Wireshark (and I dont really feel like running Wireshark on the server). Thanks
stackexchange/codereview
Any suggestions as to how to approach how I would find out a list of package names that exist on the current classpath? This needs to be done programmatically at run time by one of the classes loaded (and executing) on the classpath (i.e. inside out, not outside in). More details: One approach I considered was to use ...
stackexchange/codereview
I want to use Aptana Studio 3 Beta for all my Ruby developments. I am planning to write a Windows appl. using FxRuby framework, but how to integrate this framework with Aptana Studio 3?
stackexchange/codereview
I need to get from a full file path just the name of the file. I've tried to use: $out_fname =~ s/[\/\w+\/]+//; but it "eats up" also purts of the file name. example: for a file: /bla/bla/folder/file.part.1.file, it returned: .part.1,file
stackexchange/codereview
I have two view whose perspectives are xy and xz. These views have their own scrollbars and x side of these views are equal. When i move scroll bar of x sides , i want x scrollbars to move simultaneously. Class of views is QGraphicsView and scrollbars of these views are their own scrollbar. How can i make it? Any hel...
stackexchange/codereview
I want to create a matrix representation for a graph algorithm using the least memory possible. So I decided to try using a bit representation of the values of the matrix, but I also know that doing this by C is (AFAIK) impossible, because a bit is not addressable. Then I read a post here suggesting to use a struct tha...
stackexchange/codereview
ifstream file1; file1.open("in1.txt"); istream_iterator<string> iterator1(file1); copy(istream_iterator<string>(file1), istream_iterator<string>(), back_inserter(lstr)); Can we have two input stream iterators pointing to a single file? As in the above case the iterator is getting advanced (only one time deferencing, a...
stackexchange/codereview
Using BizTalk 2010. I have XML data that is hierarchical in structure. For example, it looks like this Rec1 Rec2 Rec2 Rec3 Rec3 Rec2 Rec1 Rec2 I get this data by calling a webservice that returns it in one Schema. I map it to another schema and it works fine, I get the correct structure and...
stackexchange/codereview
How do you install native library for Tomcat 7.0 under Linux system such as CentOS?
stackexchange/codereview
i have a table view in which each cell has a TextField where the user input data. I want when the user press a button get all the texts in the fields in order to check if the data is valid. But i don't know how to get the Text Field in each cell. Thanks!
stackexchange/codereview
From cygwin git on Win7 I'm trying to coordinate with my linux workstation. Both were cloned from the same upstream repository. First I do a "git fetch origin", then try to fetch from my workstation. $ git fetch origin [... all ok ...] $ git fetch b scheib@b's password: remote: Counting objects: 2031, done. remote: Com...
stackexchange/codereview
I have a class with a static method that returns a Dictionary. The signature of the method is as follows: public static Dictionary<int, string> CodeLookup<T>() where T : EntityCodeBase At the moment, I'm using this method to bind to my comboboxes in the code behind, like so: this.cboState.ItemsSource = CodeCache.CodeL...
stackexchange/codereview
I'd like to be able to pass in a long command to expect. It's a multiple command somehow. First here's my expect script #!/usr/bin/expect -f set timeout -1 spawn telnet xxx.xxx.xxx.xxx expect "*?username:*" send "someusername\r" expect "*?assword:*" send "somepassword\r" # Here's the command I'd like to pass from the ...
stackexchange/codereview
First of all, I hope this question isn't too basic, obvious or inappropriate for this forum. I'm very new to using map data. I'm working on a project on locating service terminals in a geographic region. Abstractly, given a simply connected region in the plane (for the purposes of what I'm doing, a contiguous map, say ...
stackexchange/codereview
I have a jQuery UI autocomplete field. It works, but when the suggestions pop up, the all show up in the very upper left-hand corner. I've included what I believe to be all the necessary CSS files but it's not showing up in the right place. In fact, even when I include ALL the CSS files that come with jQuery UI, the au...
stackexchange/codereview
What is a URI in HTML, XHTML and XML?
stackexchange/codereview
not sure if this is possible without having to go through several passes, but I'll ask anyway (my XSL is a little rusty) I have an XML document, which contains nodes as follows: <structures> <structure id="STRUCT_A"> <field idref="STRUCT_B" name="b"/> <field idref="STRUCT_C" name="c"/> <field idref="FIELD_D" ...
stackexchange/codereview
I want to be able to detect a double click on a <a> tag and then if it matches a particular regex pattern, run a function. In this case I will be checking if the link being clicked on is a valid link to a Youtube video. I'm wondering what the best way to detect a double-click with Javascript is, other than changing all...
stackexchange/codereview
I would like to be able to format java.util.Date objects in a "long" English, Spanish, and German date format. By "long" I mean the locale-dependent date format that corresponds to the LONG style pattern constant in java.text.DateFormat: DateFormat.getDateInstance(DateFormat.LONG, myLocale).format(myDate); With a stan...
stackexchange/codereview
I've got a bad case of analysis paralysis on this one so I thought I'd open it up to SO: I have a table view, the contents of which represent activities that took place on a given day. When the app loads, today's data is downloaded, parsed (both by a central singleton), and displayed. Simple enough, and it works grea...
stackexchange/codereview
i am parsing a json object and storing the song objects in songs, a nsmutable array. while am displaying the image of the song i.e. while accessing the object from the array its giving all values nil in that object. in the following code in setSongsScrollView method, in for loop while accessing the song object from so...
stackexchange/codereview
I'm creating a Win32 application that controls another application which is coded in Java using AWT components. I figured that if I can retrieve the main List of the application and cast it with the JLIB library I'd be able to read its content. First of all, am I right or I won't be able to get the real content of the...
stackexchange/codereview
I have a CrystalReports XI Developer Full Product (Release 1) license and found out recently that it has a limitation on the number of concurrent requests it can process. The SAP website isn't very useful and I could not find a list of products/features/limitations/cost that I could consult for more details. Does som...
stackexchange/codereview
I am currently working on a zend framework site using an ACL. The ACL works and uses a DB for storing privaliges. What I have done so far is, on in a preDispatch I capture where the user wanted to go to, and if they need to login to get there the page displays the login form. I have also captured if a user has submitte...
stackexchange/codereview
When you talk on the phone in Android the light sensor is working. If you cover the top left corner of the screen, the display turns black and you can't see anything. I would like to cancel that feature and I tried working with Android Sensors and the Light Sensor but it is not working. This is my code: senMgrLight=(...
stackexchange/codereview
Let's say you have parameters(s) in your LINQ query where clause, how do you handle that? Here is an example: var peoples= from i in individuals where (string.IsNullOrEmpty(lastName) i.LastName.Equals(lastName)) select i;
stackexchange/codereview
I'd like to re-use code from project A in project B (both in separate repositories), so I'd like to move several files from the original project repository A to a common repository C which will be used by project B. (dependencies managed by Maven, etc.) I can extract just the files I want to move from A into their own ...
stackexchange/codereview
I'm looking for a way to store data generated by an excel template somewhere on SharePoint 2010. I am very new to SharePoint and still learning some of the abilities etc. The goal is to store the data created by an excel template when a staff creates a quote using the template. I want to have the quotes available for h...
stackexchange/codereview
So I have this code. Basically it should be able to take a stock of any type, and you should be able to buy from this stock into a collection of any type, including Objects. For the main function i have this. Basically i have an stock inventory of strings, and I want to buy form this stock inventory of strings into a...
stackexchange/codereview
i am doing this: foreach (DataPoint point in chart1.Series[0].Points) { if (point.yvalue > mean*1.3) ... .... } i need to be able to compare every yvalue of every point to a double. how can i do this?
stackexchange/codereview
I have the folowing tests: [TestClass] public class GeneralTest { [TestMethod] public void VerifyAppDomainHasConfigurationSettings() { string value = ConfigurationManager.AppSettings["TestValue"]; Assert.IsFalse(String.IsNullOrEmpty(value), "No App.Config found."); } [TestMethod] ...
stackexchange/codereview
Files with a .SQL extension when opened in Visual Studio 2008 have T-SQL syntax highlighting. How can I persuade the editor to apply this syntax highlighting to files with a different extension (in my case, .PLPGSQL). The SQL editor doesn't appear to be an option in the Tools > Options > Text Editor > File Extension > ...
stackexchange/codereview
I am new to the gettext and Gtk+ programming world. First of all, I am developing an application on windows using the gtk+ library. I read that glib integrates the gettext library and makes the translation more "friendly" by providing some wrappers. I follow the documentation from the glib library and include the glib/...
stackexchange/codereview
If I have two System.Drawing.Rectangle objects on a canvas and a Point, what is the best way to calculate which Rectangle (any part of the Rectangle, not just its Location Point) is closest to that Point? An example from a unit test: Rectangle one = new Rectangle (0, 0, 10, 10); Rectangle two = new Rectangle (20, 20, ...
stackexchange/codereview
I have written this code I learnt from a beginners jQuery book, which works great as a preloader for the page, but how do i create a percentage (%) counter for it? - Based upon how much body content is loaded? At the moment I just have an animated GIF - but I'd like something a little more advanced! :) // Lets preload!...
stackexchange/codereview
I have two celery workers, worker 1 has tasks A and B, worker 2 with tasks A, B, and C. If I submit a task C, it doesn't seem to be executed in the celery worker that has task C; is there some way I can make sure that only worker 2 gets assigned tasks C?
stackexchange/codereview
I am using c# to integrate Lotus mail inbox woth my application.I am trying to debug my c# code and in that process i m getting a null value at my inbox near the code db.GetView("$Inbox").I am accessing Lotus mail client8 in my company and i tried accessing the same with my c# application. while debugging i even closed...
stackexchange/codereview
Hopefully I can ask this in an understandable way... Overall, I am trying to determine what type of object I am currently dealing with. I'm creating a collection (HTML is example, not literal) and I need to filter my collection to certain elements eg: <div id="tabContentWrap"> <div id="tab"> ...
stackexchange/codereview
lets us assume that i am using service or database path in my application,so whenever i change the location path, i don't want to edit in all the ton times in coding. so is it possible to store the value in some xmlfile or manifest file and read it directly to a variable? or i have to use xml parser? any idea?
stackexchange/codereview
I'm trying to implement a Quicksort algorithm, I have read how to do it with pseudocode and since I'm learning Java ('cause I have already done quicksort some months ago in C++) I want to implmenet it to such language, but I get an stackoverflow or heap space problem whenever I try to run it, can you please check my co...
stackexchange/codereview
i need a geolocation service and i wanted to try some of them before buying anything for my client. i tried api.ipinfodb.com and is pretty good... then i recently tried Quova APi, that as far as i remeber Quova was considered good... well...i tried it and the result is really sloppy... the zipcode with ipinfodb.com was...
stackexchange/codereview
I have a site with users that I want users to be able to identify their ethnicities. What's the best way to model this if there is only 1 level of hierarchy? Solution 1 (single table): Ethnicity - Id - Parent Id - Name Solution 2 (two tables): Ethnicity Group - Id - Name Ethnicity - Id - Ethnicity Group Id - Name I ...
stackexchange/codereview
I have a UDA in SQL 2005 that keeps generating the below error. I'm guessing this is most likely due to the limitations of the max byte size of 8000....Is there any work around I can use to get around this? Any suggestions for avoiding this limitation in 2005? I know 2008 supposedly took these limitations off but I can...
stackexchange/codereview
I've some problems committing a rST file like ===== TITLE ===== Chapter ======= Section ------- blablabla I got this error: Transmitting file data .svn: Commit failed (details follow): svn: Commit blocked by pre-commit hook (exit code 1) with output: Some parts of your commit look suspiciously like merge conflict...
stackexchange/codereview
I have a nice polynomial, which is in fact the non-posted answer to this question (I guess it is homework, so I'll post nothing until the asker shows some brain activity :D ): jj = 1 + 54 #1 + 855 #1^2 + 6300 #1^3 + 37296 #1^4 + 221706 #1^5 + 385782 #1^6 + 1899783 #1^7 - 713709 #1^8 - 8772909 #1^9 + 1718343 #1^...
stackexchange/codereview
Is it possible? Just need the CRC32_MD5 hash they use, but can't seem to find the way of doing it. Note that this is not a dup of this other question since the question and it's answers are focused on getting the plain email, not the hash.
stackexchange/codereview
I have a query that is making use of GROUP BY so that the results are grouped by a date column. My question is this: When I move through the cursor to get the results of the query, how can I get the multiple items associated with each group into my vector? For example, I want to get BOTH "Item X" and "Item Y" for Oct...
stackexchange/codereview
How can I choose one of multiple stylesheets using ASP? Heres my ASP at the moment: <% T=Request.Cookies("THEME") %> It's in the head, there are two themes. I just need somone to show me how to do a conditional operator and if it's 1 then set a stylesheet. I could complete it from there Thanks :)
stackexchange/codereview
I read a comment about malformed tags being used for XSS attacks. How am I supposed to sanitize against these. If I use a library like HTMLPurifier, does it take of this as part of its work? or is this an independent thing? I don't hear people talking about it much.
stackexchange/codereview
I've heard rumors that the latest game console from Microsoft (Kinect) was built partly with using some Silverlight constructs - is this true? I can't find any documentation on it. Any help on this will be greatly appreciated.
stackexchange/codereview
Hey, I am making a cocoa touch static library, And I have this problem: I am running my project in the simulator with the Leaks instrument, And I am coming up with leaks for autoreleased objects. I know for a fact that I have at least one NSAutoreleasePool in place at a time (in my main() method), my question is, how ...
stackexchange/codereview
I have some data that looks like this myobject{keyone:"valueone",keytwo:"valuetwo",keythree:"valuethree"} myobject{keyone:"valueone",keytwo:"valuetwo",keythree:"valuethree"} myobject{keyone:"valueone",keytwo:"valuetwo",keythree:"valuethree"} And I'm wondering what the best way to create a bunch of objects from it woul...
stackexchange/codereview
Does the page load faster if i use the javascript before the </body> tag? Example: <body> balbllb content <script type="text/javascript" src="jQuery.js"></script> <script type="text/javascript"> $(function(){ }); </script> </body>
stackexchange/codereview
when i'm trying to use scanf and gets, i'm having trouble, i need to put gets twice, if i put it once my program is terminated, it's homework and i have to use those functions in those places. the code : int main() { int i=0,operation=0; char str[100]; printMenu(); scanf("%d",&operation); swit...
stackexchange/codereview
I have this repeater on my page..Under the default column what I want is that there should be an IF condition that checks my table's "IsDEfault" field value. If IsDefault=True then the lable below "label1" ie "Yes" should be displayed inside the repeater else "Make DEfault" link should be displayed.. Now how do I inc...
stackexchange/codereview
Hey, I've a search in website. If i search for a particular world it works fine in all pages but not in contact us. contact us page contains validation controls. I tried with removing validation controls, then the search works fine. any help on these how to make search though validation controls, are present. ...
stackexchange/codereview
I've got a Django form with a bunch of fields that I'm rendering in the template. I've also got some straight HTML input elements which I want to validate in the view by accessing the request.POST vars. If those don't validate, I want to inject an error into the Django form so I can display it on the page. Is there a w...
stackexchange/codereview
I'm using the C# excel interop framework to automating generate a bunch of reports for my company and I'm wondering if anyone knows how to do equation dragging with this. If I could do this with a named range this would be even better, but even if I have to hard code the rows so it's along the lines of drag A10:J10 d...
stackexchange/codereview
I'm trying to create my own small Windows 7 Phone app. I have downloaded the tools and I'm writing code. I'm wondering how I can install my app on my phone? Do I have to register to become an app developer and then upload my code? Is there a way to distribute my app outside of the marketplace? I found this link: Se...
stackexchange/codereview
Is there a way to 'preload' a user interfaces but to not display it until I am ready? I have a service which has a receiver to listen for action_screen_on to occur. When that occurs, I would like to load an activity. However, as it is now, it takes about 1 second to load. I would like to preload the layout in adva...
stackexchange/codereview
I'm looking to use the java2d API to make a graph in which users can manipulate certain features using their mouse - such as the scale used for an axis or move around the different points plotted on the graph. So far all I have found is the drawX methods on a Graphics2D object, however there does not seem to be an easy...
stackexchange/codereview
Having an XML sitemap is important for SEO, but should I limit the pages that are listed in the file? Here is my situation: My client wants a high school biology review site. One of the features is a 'Word of The Day', which is a specific word, a 2 sentence quick explanation, and a separate 2-3 paragraph explanation ...
stackexchange/codereview
For some reason this page won't work in Opera + Safari http://dev.reggi.com/clients/mike2/ this is the main code I wrote that I believe is failing: /*this script finds the multiples of the box_width and makes that the with of the container so the grid can be centred*/ /*sets variables*/ var box_width= 250 + 5 + 5 + 5 +...
stackexchange/codereview
So right now if I have something like this: //div[@class='artist']/p[x]/text() x can either be 3 or 4, or maybe even a different number. Luckily, if what I am looking for is not in 3, I can just check for null and go on until I find text. The issue is I would rather know I'm going to the right element every time. So I...
stackexchange/codereview
I'm defining a delete trigger, and I need to backup the row deleted but only a few arguments from the original and including one column from other table: TableC: * Column 1: value from a column in TableA * Column 2 to 6: values from colums 1,2,3,5,6 from TableB All I want is something like this: INSERT into TableC va...
stackexchange/codereview
I have seen a number of posts similar but wasn't able to achieve my actual desired feel. So this is what I have. I need to have all my past urls forward to the INDEX.PHP file. Which is fine and I have that so far, but I need to add an exception of a specific folder the 'images' folder so the images show up, b/c since ...
stackexchange/codereview
I'm guessing it is using a custom NSWindow, NSTextField, NSSecureTextField, NSButton? I don't necessarily want to replicate it, I would just like to know what would be involved in customizing my app's UI to this level.
stackexchange/codereview
So I've got the following: NodeList nodeList = element.getElementsByTagName("rowset"); if (nodeList.getLength() > 0) { for (int i = 0; i < nodeList.getLength(); i++) { Element entry = (Element) nodeList.item(i); Element _titleE = (Element) entry.getElementsByTagName("row").item(0); Node ...
stackexchange/codereview
I'm writing a method which should receive a point: 'in_centre', which will be in the coordinate system of the current view ( also passed as another parameter: 'target' ) I need to convert this point into window coordinates. The documentation says I should do this by setting the second parameter here to nil: centerPoi...
stackexchange/codereview
In Computer graphics, what's the difference between material and texture?
stackexchange/codereview