instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a part of a debugging framework that needs to be able to run time eval objects. Specifically, if I have a string like this "{a: 1, b:2}" it needs to evaluate it into an object with members a and b with those values. However, if I do eval("{a: 1, b:2}") it seems to evaluate it as a statement, and says something a...
stackexchange/codereview
I am trying to rotate an image. This I am succeeding in doing. The problem is that when I am clicking down and dragging slightly, the image rotates completely to reach the point where I have clicked and then rotates slowly as I drag the image clockwise. I am concerned to why it is rotating completely to the place that ...
stackexchange/codereview
I have a test suite that outputs test results in the Python Unit Test format: http://docs.python.org/library/unittest.html Is there an existing Buildbot module/plugin that can parse this form? Example: DigitalReadWrite_02 ... ok DigitalReadWrite_03 ...
stackexchange/codereview
When you print in IE it prints content in the layer below the top one. Any way around this. I'd rather do it via css than a setting in the browser. Many thanks, Jools
stackexchange/codereview
what is the best way to write and debug Server Side Action Script on Flash Media Server? I use Flash Builder for syntax highlighting, but that's all. I want to debug, make breakpoints and step-trough server application code. Any ideas? EDIT1: I know about administration console for viewing trace messages, but that is n...
stackexchange/codereview
I'm trying to install all my gems in ~/.gems. I wanted to install ferret as user but it doesn't work, because ferret need to install in /usr/bin. My question is, how to I find out which options (like install to different bin folder) exists, when I install gems?
stackexchange/codereview
Would anyone be able to explain to me what data encapsulation in Objective-C is? I've been told that this an important concept of Objective-C but I don't see why... Explain it to me as if I was 5 and then as if I was 25.... Thanks for your time, ~Daniel
stackexchange/codereview
Is there a TortoiseGit equivalent to TortoiseSVN's "global ignore patterns" setting?
stackexchange/codereview
I want to find a way to only allow certain objects into an array that have a certain word in thier class name. Or at least find the optimal way of doing something like this. Heres the details. I have an Array that stores all the objects dropped into a cart. function addProductToArray (e:MouseEvent):void{ currMC = (e.t...
stackexchange/codereview
typedef struct _MY_STRUCT { std::string mystring; int n1; int n2; } MY_STRUCT; class foo { public: foo(): m_mystruct() { } private: MY_STRUCT m_mystruct; }; int main(void) { foo oFoo; // Why doesnt this in...
stackexchange/codereview
I have a Solr/Lucene index file of approximately 700 Gb. The documents that I need to index are being read in real-time, roughly 1000 docs every 30 minutes are submitted and need to be indexed. In my scenario a script is run every 30 mins that indexes the documents that are not yet indexed, since it is a requirement th...
stackexchange/codereview
I am using Ubuntu 10.04, and studying programming of kernel objects. I have come across some rather complicated structs which I have difficulties reading, so I thought I'd try to find some tool that can help me visualise them. Only thing I could find so far is VCG, which has a C Struct Visualization Example, which lo...
stackexchange/codereview
I am making an ajax call to my controller which is going to perform a long operation. The operation can fail for many reasons or succeed. If I want to force the failure code of my ajax call to execute ("error"), what do I need to do in my controller before returning? Just throw an exception?
stackexchange/codereview
alist = [(1,3),(2,5),(2,4),(7,5)] I need to get the min max value for each position in tuple. Fox example: The exepected output of alist is min_x = 1 max_x = 7 min_y = 3 max_y = 5 Is there any easy way to do?
stackexchange/codereview
How is mod used to determine the beginning and end of a circular array in a queue?
stackexchange/codereview
I feel like I have to use way too many .children() in some of my jQuery functions. Here's my HTML: <div class="goal-small-container"> <div class="goal-content"> <div class="goal-row"> <span class="goal-actions"> And here's my jQuery: $('.goal-small-container').hover(function() { $(this).children('.goal-c...
stackexchange/codereview
I'm an mssql veteran who's received a job that involves tuning a mysql db. with mssql it was simply a matter of firing up the db profiler and then crunching up the data it collects. I can't seem to find anything similar for mysql. thanks in advance
stackexchange/codereview
First I've created a WPF application, then I added new RibbonWindows to the application, and called it RibbonWindow1. Now I want to set the content of the ribbon control via the code belowe and show the ribbon: RibbonWindow1 ribWindow = new RibbonWindow1 { Title = "This is a ribbon window",...
stackexchange/codereview
I have a database (SQL server 2005 Express) table wth columns PatientID (more than 1 records can have same patient ID) and TestNo. I want to retrieve the maximum of testNo column among all the records with same PatientID.What should be the SQL statement to do so?I am using RecordSet pointer to access the records in a v...
stackexchange/codereview
i have a struct who have a list of item and some other variable about struct i want to check that a enum in list have a specific value or not. like struct.list.havevalue == 5; how i can count all who have the specific value in enum in the itemlist of the structure
stackexchange/codereview
Hi I have added materials (colors) to a 3D model. How to export to an .obj file, along with a .tga file as a UV unwrapped file ? In other words, I want the .tga file to contain all materials (colors) that I added, so that an image file taken as reference. Thanks.
stackexchange/codereview
Thanks for your time, I have calculated scrollHeight of <textarea> and run it on Microsoft Internet Explorer 8 and Firefox. I am getting different scrollHeight in above mentioned browsers. Code used in my application function getScrollHeight(id) { textareaObj = document.getElementById(id); var scrollH = texta...
stackexchange/codereview
Ok. I'm working with GAE. And i want create something like this: I have types "group" "topic" "tag": each "group" can have as many "topics" as needed each "topic" can have as many "tags" as needed each "group" can have as many "tags" as needed it's something like circle. right now i have something like this: class To...
stackexchange/codereview
Soo... I am making a control like the Windows Update "panels". Everything's fine up to the "container" part. What I want to do is to allow the designer to place controls in a Panel which is inside my control. (The panel's variable is held in my control's class and inside the control itself.) How do I bypass this? A...
stackexchange/codereview
If I have a DateTime field within a table. How can I extract just the time from the row and then return an offset value. For example, I want to offset against midnight. So if the time is 00:45, I want the value 45. If the time is 23:30 I want the value -30. Thanks.
stackexchange/codereview
I was wondering why there is no X11 driver for the mali 3D arm gfx chip. I looked into building an X11 driver for the available kernel driver, but could not find any documentation on how to build an X11 3D driver. There exists only the minimal amount of documentation about how to build projects like DRI and Mesa, but...
stackexchange/codereview
I have an upload system based on SWFUpload which calls PHP script. The problem is that in case of any problem with the uploaded file (too small image dimmensions, too short mp3 file etc) the system is supposed to throw an error, by setting the cookie with error message (this is the way the whole CMS handles errors). Th...
stackexchange/codereview
I have a problem with headline tags when I float them around an image in compability-mode in explorer. <img src="1.gif" style="float: left; margin-right: 10px"><h1>Some headline</h1> The picture is like 100px high, and by default the text centers in middle, which it should, but with compability-mode on it aligns top. ...
stackexchange/codereview
I'm planning my first iPhone app and I'd like to get some inputs as to how to build it, right from the start. The iPhone app is being built to be paired with a public facing web application that is already built in PHP. I'd like the web platform to be central (data is housed in a mySQL database), and have the iPhone ...
stackexchange/codereview
Does anyone have or know of a good template / plan for doing automated server upgrades? In this case I am upgrading a python/django server, but am going to have to apply this update to many machines, and want to be sure that the operation is fully testable and recoverable should anything go wrong. Am picturing somethi...
stackexchange/codereview
I've added a dependency property to my view base class, that is supposed to allow the child UserControls to set some properties on the parent window, one being SizeToContent. When my OnSizeToContent method runs, when it tries to change the main windows's SizeToContent from WidthAndHeight to Manual, I get this odd error...
stackexchange/codereview
I would like to run an if statement but the condition uses a variable from the code behind. How do I call that variable? Side note... I am using a gridview and the variable is in a dataset (dsResult - idnbr colum) <ItemTemplate> <% string temp = (Eval("idnbr").ToString()); if (temp.Contai...
stackexchange/codereview
I came across the PHP's memory_get_usage() and memory_get_peak_usage(). The problem is that I found that these two functions do not provide the real memory used by the current script. My test script is: <?php echo memory_get_usage(); echo '<br />'; $a = str_repeat('hello', 100000); echo '<br />'; echo memory_get_u...
stackexchange/codereview
I have a div that contains checkboxes. I also have a function that accepts a jquery object parameter. It looks like this: function analyze_checkbox(cb) { ... } Given this, is there a straightforward way to know the child position of the cb parameter? I was thinking of something like this: cb.parent().index(cb) What i...
stackexchange/codereview
Whenever I try importing numpy in my new installation of Eclipse and Pydev, I get the following error: Traceback (most recent call last): File "Q:\temp\test.py", line 1, in <module> import numpy File "C:\Python26\lib\site-packages\numpy\__init__.py", line 132, in <module> import add_newdocs File "C:\Pytho...
stackexchange/codereview
How to get the updatestatus of a loggedin user in facebook? I am develooping a wpf application which is integrated with facebook. I want to show the status updates of the user. What is the query to fetch the Update Status. Pleas let me know. Thanks, Ashwin
stackexchange/codereview
This might seem trivial, but I'm new to JS. I have this piece of code: alert(elementAction); var argumentsBegin = elementAction.search("("); var argumentsEnd = elementAction.search(")"); alert(argumentsBegin); elementAction is a string. The problem with the code is it doesn't seem to find the parenthesis. The firs...
stackexchange/codereview
I was looking for a concrete answer on whether i should optimize my pages for singular or plural version of target keyword. Let me give an example: I have a computers website and from homepage i have links for my primary categories / keywords: Processors Motherboards Printers Scanners etc..... Now with google adwords t...
stackexchange/codereview
We have built an internal tool that generates the whole data access, each table has a class the represents it's data and all the common operations.(think lightweight Entity framework). These DataAccess objects always have a constructor that receives a connection string, and a Load function that receives a SqlDataReader...
stackexchange/codereview
I'm trying to assign blue text like this, exactly like this I'm using my own text field. In hex the color is #336699 I need to access my text color to this, I would have liked to use a UIColor but there doesn't seem to be one.
stackexchange/codereview
I'm just starting to work with JCR (apache jackrabbit), i want to ask simple question (because i coudn't find good tutorial for it): So for what do i need Node.checkout and Node.checkin methods? What do they mean? Thx
stackexchange/codereview
Let's say we have the below code: <Window x:Class="Consus.Client.UI.Sandbox.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" ...
stackexchange/codereview
Does anyone have a concise and robust implementation of Google's Encoded Polyline Algorithm in C#? I essentially want the implementation of this signature: public string Encode(IEnumerable<Point> points);
stackexchange/codereview
I have class like following: public class Tree<T extends Comparable<? super T>> { // private data omitted private Tree() {} // non parametric private constructor, not exposed // static factory method public static <T extends Comparable<? super T>> Tree<T> newInstance() { return new Tree<T>(); } } Now f...
stackexchange/codereview
there is a post here on how to bundle a framework within an application. But in my case this is not application but a plug-in i want to put the framework within.. The "Installation directory" cannot start with @executable_path. so i have no clue on how to define the plug-in path any help would be great, thank you
stackexchange/codereview
import java.util.Scanner; import java.text.DecimalFormat; public class WeightConverter { private double numOfLbs2Conv, numOfKilos2Conv, converted2Pounds, converted2Kilograms; private final double WEIGHT_CONVERSION_FACTOR = 2.20462262; private int desiredDecimalPlaces; private boolean toKilos, toPounds...
stackexchange/codereview
I have a Windows Phone 7 application and I regularly see "weird" UI glitches that take me AGES to debug. It's a range of issues like controls appearing to have extra margin, scrollbars not appearing, animations looking really glitchy, entire page scrolled down, combobox items offset, etc. etc. I'm happy to admit it mi...
stackexchange/codereview
I'm new to AS3 and was wondering if there is anyone out there that can help me with this... I'm creating a drag and drop Flash activity where there is 1 target and multiple draggable items. In my case I have 4 apples and I want to be able to put all apples into the same basket. I can get the draggable item into one tar...
stackexchange/codereview
In the NServiceBus interface, why are some things configured like this: NServiceBus.Configure.Instance.Configurer.ConfigureComponent(ComponentCallModelEnum.Singleton); And some things are configured like this: NServiceBus.Configure.With().DoNotAutoSubscribe(); What is the significance of "Instance" here?
stackexchange/codereview
UITextView doesn't inherit from UIControl, so there are not addTarget:forControlEvent: methods possible. I used to register an action method just to resign first responder when UIControlEventEditingDidEndOnExit happens. How can I do that with an UITextView? Is there some delegate + protocol I must implement so I can ma...
stackexchange/codereview
can I use QT Designer 4 to create / design tables or other controls with automatic binding to database connections? Or must I write specific code for that in my application? (i'm using python 2.5 with pyqt 4.8 on Windows xp, if it matters) Thanks.
stackexchange/codereview
I have just started working on web2py. Personally, I find it easier to learn than Django. My query is that I have to load a file at application startup. Its a pickled hashtable. Where should I store this file so that the system is able to see it My code is : import cPickle as pickle def index(): """ Load the fi...
stackexchange/codereview
at work, we're unable to use alSourcePause() to pause sounds, and in any case we might want to start the sound with an offset. We're performing a "resume" by doing alSourcei(this->sourceId, AL_SAMPLE_OFFSET, this->sampleOffset); with a sample offset that we retrieved with alGetSourcei(). We tried using AL_SEC_OFFSET, A...
stackexchange/codereview
I have a div that contains links (a href). All other margins are working with a href but Top margin is not working with a href. I want to place links in middle but because of not working of top margin it is not being possible. I heared by setting position or display it can work. Please suggest a cross broswer solutions...
stackexchange/codereview
I am new to the Visual Studio. I have MS SQL Server 2005 and 2008 preinstalled in my Windows Vista computer. Are they real servers? Or just some add-on for their server and I need to buy a server version of Windows for it? If not, How to run them? How to add a database, etc.? And basically how to connect Visual Studio...
stackexchange/codereview
I have an Html.ActionLink on my page and I am using the following CSS on it to give it an image and try and remove the underlining..... a.searchButton { background-image: url(/content/images/DropAcross.png); background-repeat: no-repeat; height: 16px; width: 16px; display: block; text-decoration...
stackexchange/codereview
hi im new to programming i have this small system for room reservations (school requirement). i have this question that is it possible to update the fields of my table on specific date? for example is today is 2010-10-14. if the field matches on the same date. it will clear/update my field automatically? i dont really...
stackexchange/codereview
I have a user control with a DependencyProperty that takes a UIElement. So far, so good, the problem is I cannot find the element's children. I think the problem is my lack of knowledge, could anyone tell me what the problem is and a possible solution? I have made a small test-program like this Usercontrol codebehind: ...
stackexchange/codereview
In a program of mine I'd like to catch all exceptions and explicitly print them (to be able to proceed with finally while still seeing exceptions). So I've tried this: try { ... } catch { case ex : Exception => { println ("\n" + ex) println ("\n" + ex.getStackTrace + "\n") } } finally { ... } But th...
stackexchange/codereview
I am trying to get this Javascript in my application working. function validateQuantity(field) { var value = field.value; //get characters //check that all characters are digits, ., -, or "" for(var i=0; i < field.value.length; ++i) { var new_key = value.charAt(i); //cycle through characters ...
stackexchange/codereview
I need to add a color picker to some input elements. I'm using: $(".element").colorPicker(){ ... } This works perfectly. The problem is that the page has a AJAX form, which - when submitted - will overwrite the previous form with a new one (new input fields etc). After that the colorPicker stops working. So how can I ...
stackexchange/codereview
I have a Java code that reads through an input file using a buffer reader until the readLine() method returns null. I need to use the contents of the file again indefinite number of times. How can I read this file from beginning again?
stackexchange/codereview
Scenario: You have a CMS where an user is able to determine what content will be displayed. The content consists of multiple colums with links underneath them. It looks something like this: Column name link1 link2 link3 link4 link5 link6 liiiiiiiiiiiiiiiiiink7 link8 liiiink9 liiiiiiink10 Column name2 link1 link2 link3...
stackexchange/codereview
Hey guys ive got the following code in my Model require 'RMagick' class Upload < ActiveRecord::Base belongs_to :card has_attached_file :photo, :styles => { :thumb => ["100x100", :jpg], :pagesize => ["500x400", :jpg], }, :...
stackexchange/codereview
This may not be a big problem but I find this one as irritating. I wasn't able to figure it out. I have anchors in my site using link_to and even normal tags. Example: <a href="#">Demo</a> will show up as Demo(#) <a href="/authenticate/">Authenticate</a> would show up as Authenticate (/authenticate) But if I view the ...
stackexchange/codereview
Is there a way to enable color support for Mercurial in Powershell on Windows 7? The ColorExtension page says to add [color] mode = win32 to your .hgrc file, but it doesn't seem to make a difference. Running hg status shows several files that have not yet been added to the repository, and I believe they should have a...
stackexchange/codereview
I have several extjs components in my page, the chart, gird ,formPanel and ect, and now I meet some problems about the refresh of them, take the gridPanle for example: This is the grid codes: var myStore=new Ext.data.JsonStore({ autoLoad:true, fields:['name','age'.....] }); var grid = new Ext.grid.GridPanel({ st...
stackexchange/codereview
I'm trying to use Python to processes some PDF forms that were filled out and signed using Adobe Acrobat Reader. I've tried: The pdfminer demo: it didn't dump any of the filled out data. pyPdf: it maxed a core for 2 minutes when I tried to load the file with PdfFileReader(f) and I just gave up and killed it. Jython an...
stackexchange/codereview
Ok so I am using some module/lib/plugin (not sure of the exact name), let's say its a authentication/authorization plugin like: http://github.com/technoweenie/restful-authentication class HomeController < ApplicationController some_module_name_here end Now just from adding the code above 'some_module_name_here...
stackexchange/codereview
I have an aspx page which has 18 (yes 18) dropdown lists and 18 text boxes. Each dropdown needs to be selected and each textbox needs to be filled. Dragging and dropping required field validators on these 36 controls and maintaining them is a painful task and does not seem to be the logical option as all I need is for ...
stackexchange/codereview
I want to mix to multiple ULAW samples together in Java. Is there a way to do so without converting to PCM? Im trying to do a 8000Hz 8bit VoIP app. Im testing with AU files (created in goldwave) since they use the ULAW encoding. My current implementation is: [code] AudioFormat f = new AudioFormat(AudioFormat.Encodi...
stackexchange/codereview
When I sign my jar file using jad tool and try to run on a phone I get the error message - 'Invalid File' Any ideas what could be wrong ? Has anyone had problems signing midlet jar files?
stackexchange/codereview
On my test machine running (Windows XP, IIS5.1) the following code executed within a C# .NET WebService (.SVC) under a custom process identity (using machine.config to specify the user) Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); correctly returns c:\Documents and Settings\myUserName\Applicat...
stackexchange/codereview
I have a program and many of its classes have some operators and methods with the keyword const like the followings: operator const char* () const; operator char* (); void Save(const char *name) const; void Load(const char *name); First: what does it mean const at the end of the method declaration?, is it the same lik...
stackexchange/codereview
Is there a Thor equivalent (ruby tool) or similar scripting framework for Javascript that could be used to build scripts?
stackexchange/codereview
I'm on rails 2.3.5 puts params[:_search] users = User.find(:all) do if params[:_search] == "true" puts "TESTTTTTTTTTTTTTT" pseudo =~ "%#{params[:pseudo]}%" if params[:pseudo].present? firstname =~ "%#{params[:firstname]}%" if params[:firstname].present? lastname =~ "%#{params[:la...
stackexchange/codereview
I have tried so many combination's of code I don't have a sample to show. I have a Objective C view controller, and in the interface I declare a C++ class that contains the preferences of what the user wants to have. I do my @property command in the header and @synthesize command at the top of the .mm file. Then I use...
stackexchange/codereview
I want to identify the an android native app user on my web service. I don't want to include a secret in my java, as that would be trivial to find. Using the javascript sdk on the website, the token is signed and I can verify it with the shared secret on the server, but the android sdk just gets a token. I had hoped th...
stackexchange/codereview
Im using XCode 3.2.3 and have created an app using the SplitView template with Core Data. When i run the default app on the device (3.2) in debug mode with instruments running i am seeing a leak. When the default app has no items added to the table view within the split view there is no leak. But after adding items and...
stackexchange/codereview
I need this code to, if #vid is present, add 855px to its current width. If not, it should do nothing. I'm not sure how to get jQuery to add to an already existing number, but I'm sure it's pretty simple. Here is the code I have so far: if ($("#vid").length) { $("#img-container").width(+=855), } els...
stackexchange/codereview
I have a web based application that requires images to be encrypted before they are sent to server, and decrypted after loaded into the browser from the server, when the correct key was given by a user. [Edit: The goal is that the original image and the key never leaves the user's computer so that he/she is not requi...
stackexchange/codereview
I have a MySQL query: SELECT DISTINCT c.id, c.company_name, cd.firstname, cd.surname, cis.description AS industry_sector FROM (clients c) JOIN clients_details cd ON c.id = cd.client_id LEFT JOIN clients_industry_sectors cis ON cd.industry_sector_id ...
stackexchange/codereview
I'm just finishing some work on a project viewer that presents a nested jQuery Cycle widget within a SimpleModal window. It's working very well, except that now I'm trying to debug a few things for iPad. Take a look a the graphic below for a better idea of what's happening, but basically SimpleModal seems to have troub...
stackexchange/codereview
So I have a map here How can I, using Google Maps API, detect whether or not a given coordinate is within that polygon? Is that possible? Thanks in advance.
stackexchange/codereview
If I want to separate out my ajax success function so that it is defined elsewhere in my <script>, does it have to be inside the $(document).ready(function() { section or could it be defined along with non-jQuery javascript functions? $.ajax( { url: '/load_prayer', cache: false, dataType: 'json', ...
stackexchange/codereview
I wonder if anyone has seen this. I am developing a web app and the dev server just output the following when I was doing some testing. logging on [21/Oct/2010 13:42:56] "POST /members/logon/ HTTP/1.1" 302 0 [21/Oct/2010 13:42:57] "GET / HTTP/1.1" 200 20572 [21/Oct/2010 13:42:59] "GET http://ppcfinder.net/judge.php HTT...
stackexchange/codereview
Having trouble with the binary_search function listed at the top. not sure where to go with it. I'm not very familiar with binary searching. #include <iostream> #include <cstdlib> #include <fstream> using namespace std; void get_input(ifstream& fin, int a[], int size, int & array_size); void binary_search (int a[], ...
stackexchange/codereview
curs.l : %{ #include <stdlib.h> #include "tree.c" #include "yycurs.h" %} L [a-zA-Z_] D [0-9] D4 [0-3] IDENTIFIER ({L})({L}|{D})* INT4 {D4}+'q' INT {D}+ %% {IDENTIFIER} {return VARIABLE;} %% int yywrap(void){ return 0; } curs.y: %{ #include stdio.h void yyerror(char*); int yylex(void); %} %token VARIA...
stackexchange/codereview
I need a macro that extracts pairs of number from a string that looks like this: n1-m1,n2-m2,n3-m3,n4-m4 (it could be longer) where n1,m1,n2,m2,... are numbers from 0 - 15. How can I go about getting the pairs (n1,m1), and (n2,m2), (n3,m3), etc inside my macro? I will need to use each pair once, after which I can...
stackexchange/codereview
Can any one of you help me in controlling The order in which the error messages appear in validation summary control. Thank you
stackexchange/codereview
I want to display a current track title with Cocoa. For now I could get the playing title with Scripting Bridge but I don't know how to get it just after a song is changed. Is there any way I can hook a listener to iTunes without a timer. Thank you.
stackexchange/codereview
i am trying to get the value of the raido boxes when you click on them. I am using jquery i have been looking at change. click. i cant get any of them to work. <table> <tr> <td>Some text 1 </td> <td><input type="radio" value="txt1" name="myRadio" id="myRadio" /></td> <td>Some text 2 </td> <td><input type="radio...
stackexchange/codereview
I want to build a rails query like the following. And would like to learn how so I can do it again on my own. Pseudo Code: @usersprojects = ?? Do I get record or just objects here? not sure? SELECT * FROM audit_log WHERE project_id IN (@usersprojects) IN the where IN () do I some how tell Rails to use the record.id? t...
stackexchange/codereview
I've recently discovered a website which does something really cool! Example: There are two links "Cat" and "Dog". There are two DIV containers, id="catImage" and id="dogImage" The initial URL looks like http://mysite.com/#cat Initially, the cat image is visible Clicking on the Dog link will fade out the catImage div...
stackexchange/codereview
I have a simple many-to-many relationship based around a through class. class Person(models.Model): friends = models.ManyToManyField('self', through='Friendship') class Friendship(models.Model): me = models.ForeignKey(Person) them = models.ForeignKey(Person) confirmed = models.BooleanField(default=Fals...
stackexchange/codereview
This seems like a simple problem, but I can't figure out how to edit the svn-ignore list from Eclipse. Strangely I couldn't find how to do so on a web search or on stackoverflow. Thanks!
stackexchange/codereview
Greetings, We can edit image attributes with this get_image_tag filter when we are adding images,but is there any similar filter or action that can we use to edit these attributes when post is added or edited - updated? Here is the link I found. http://www.webtechwise.com/wordpress-filter-examples-changing-attributes-w...
stackexchange/codereview
Our company's switching from traditional, lame Windows shared drive to a Linux install of Alfresco. I'm the sole developer here (...go me!) and I would like to hear any thoughts on what I envisage being an interface, created by me, accessible by my team, and drawing on files stored in Alfresco, to modify some HTML file...
stackexchange/codereview
I want to know if there is a way to use a user-defined variable in WHERE clause, as in this example: SELECT id, location, @id := 10 FROM songs WHERE id = @id This query runs with no errors but doesn't work as expected.
stackexchange/codereview
I would like to find the distinct CLOB values that can assume the column called CLOB_COLUMN (of type CLOB) contained in the table called COPIA. I have selected a PROCEDURAL WAY to solve this problem, but I would prefer to give a simple SELECT as the following: SELECT DISTINCT CLOB_COLUMN FROM TABLE avoiding the error "...
stackexchange/codereview