instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I've written about this a few times, but am still having difficulty seeing how to work with many-to-many relationships in MVC2 with EF4, specifically when it comes to Create and Edit functionality. I think part of my problem is that I decided to create my database tables in such a way that the pivot tables aren't visi...
stackexchange/codereview
Scott Hanselman (alternate link) suggested in a twitter tweet on November 18, 2010 that "OpenID might be Dead". If this were true (I'm not saying it is), what other options are there for universal sign-in (similar to OpenID)? further info I'm currently involved in a pretty good sized project, and it's public facing ...
stackexchange/codereview
Update 10/27: I've put detailed steps for achieving consistent scale in an answer. Basically for each Graphics object you need to fix all padding/margins to 0 and manually specify plotRange and imageSize that such that 1) plotRange includes all graphics 2) imageSize=scale*plotRange Still now sure how to do 1) in full g...
stackexchange/codereview
I've created some queries and can't understand why the results are not as I expected. I don't understand why Query II and III don't return the same results. I would expect query II to return all rows not selected by Query I. I would have expected Query II and III to give the same results. In my opinion the results of ...
stackexchange/codereview
I find that when I change a class from public class MarkdownEditorOptions : ObservableObject to public class MarkdownEditorOptions : INotifyPropertyChanged, DependencyObject as I wanted to use dependency properties, I get the error Default value for the 'Options' property cannot be bound to a specific thread. ......
stackexchange/codereview
I'm in the process of starting to build a strategy game (think warcraft) for the web. I've been doing research on HTML5 Canvas and CSS3 sprites and still can't decide which technology to use. The game won't be completed for another 6 months. Any advice would be appreciated.
stackexchange/codereview
I am developing one android application which select wifi access point from list of wifi. I used following code.. WifiConfiguration wifiConfiguration = new WifiConfiguration(); wifiConfiguration.SSID = hotSpotSsid; wifiConfiguration.allowedKeyManagement.set(KeyMgmt.NONE); wifiConfiguration.BSSID = hotSpotBssid; wi...
stackexchange/codereview
Problem I am making ajax call to server1 i.e. csce and once I got the response I am sending the response as contents to server2 i.e.yahoo server after getting response from there I want to refresh the page or atleast redirect it to the same page. Both ajax calls are working fine. The contents I am sending are also save...
stackexchange/codereview
Can we do this using jQuery? if so, how?
stackexchange/codereview
How to show a Context Menu when you right click a Menu Item in a DataGridView ? I would like to add delete in the menu so that the entire row can be deleted . Thanks in Advance
stackexchange/codereview
I have a ragged hierarchy of parents and children. Some parents have 5 children, while others have 0 children. The expandableListView displays the "Expand/Collapse" icon even if there are no children. Is there a way to hide the icon for only those Parents (rows) that have no children? I still want to show the row of th...
stackexchange/codereview
I hope that someone would be able to help me to solve this simple problem. My goal is to get the value in the array from selection drop down list. Basically, I create an Array in Javascript and a selection drop down list in the body. <script type="text/javascript"> var even = new Array(2, 4, 6); </script> . . . <se...
stackexchange/codereview
So I'm pretty retarded at this sort of stuff, this is my first attempt at coding something so here goes: This is in my view: <?php echo form_open(); echo form_radio('name1', '1'). " 1"; echo form_radio('name1', '2'). " 2"; echo form_radio('name1', '3'). " 3"; echo form_radio('name2', '1'). " 1"; echo form_radio('name2...
stackexchange/codereview
I want to slideUp one div after clicking a link, then slideDown another div, then go to the next page. Problem: new page loads before the animations are finished. Question: How can I do this? Should I use preventDefault and then some way to resume it? This is the URL: http://www.jolandaschouten.nl/wordpress This is t...
stackexchange/codereview
I heard that ArrayCollection on Flex, so how can I use ArrayCollection like feature in ActionScript 3.0 and Flash IDE.
stackexchange/codereview
While running a junit test, I cannot get the application context to load properties from external properties files. Given the following: TestClass @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:spring/app-config.xml") public class JdbcWatsonDaoTests { @Autowired JdbMyDao...
stackexchange/codereview
My company builds a web application for Real Estate Institutions -- initially coded in classic ASP with an incremental migration to .NET. Essentially, its a website with backend DB, mixed with custom windows services/dll's. Pretty standard for .NET apps. In my past companies, we had a traditional software design life...
stackexchange/codereview
I've created an AJAX enabled web application. In my application all contents [that I want to be appear in search pages] are loaded using AJAX. However I observed that despite of valid sitemap submitted to google, my page raking is very very poor. What all I need to do and what to avoid in order to improve page ranking...
stackexchange/codereview
I've got a basic extension that - highlights text (currently an xml open tag ) and provides a context menu button which will open a WPF form. What I'd love is an easy way to pass the content of ... to the form when the button is clicked (and back from the form later). What would be fine as well is doing the same with...
stackexchange/codereview
I have a python FastCGI server which accepts POST from client, I want to use JSON as the format to communicate between the client and server, but it really confuse me how it works. The JSON representation in javascript is: {'login_user': {'username':username, 'password':password}} When I post this JSON object, the jqu...
stackexchange/codereview
I'm trying to select a substring of column, i.e. select substring(description, 1, 200) from category where id=1 Is it possible to have a substring function within a select statement in JPQL/JPA 2? If yes, how? If no, are there any alternatives? Thanks.
stackexchange/codereview
I need to include assembly info on my dll which I manually compiled the XSLT files using command prompt with XSLTC.exe. Anyone knows how? ILmerge?
stackexchange/codereview
I am playing around with tool development in Valgrind and am getting the following error: valgrind: mmap(0x8048000, 4096) failed in UME with error 22 (Invalid argument). valgrind: this can be caused by executables with very large text, data or bss segments. but my executable has nothing but simple variable assignments...
stackexchange/codereview
The situation is a bit strange but bear with me. I need a scripting language that can easily be called in C (not cpp, C). preferably the script function can be called as a regular C function. I need the scripting language to use tuple's so i can write something like the below. Keep in mine its nonsense, i just want to ...
stackexchange/codereview
I implemented an obstacle avoidance algorithm in Matlab which assigns every node in a graph a potential and tries to descend this potential (the goal of the pathplanning is in the global minimum). Now there might appear local minima, so the (global) planning needs a way to get out of these. I used the strategy to have ...
stackexchange/codereview
My concern is, how long will our activity be there in the stack? What I mean is, when the home button is pressed from my app and then my app is launched again by clicking its icon, it will regain the correct place from where I pressed the home button without writing any special code for this. I don't know whether I...
stackexchange/codereview
keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore. -storepass android -keypass android gives me the error: keytool error: java.lang.Exception: Keystore file does not exist: /Users/syalam/.android/debug.keystore. I'm not sure how I can sign my debugkey so that I can use Google Maps. I have verif...
stackexchange/codereview
I need to allow user to configure my addon setting though web site. In the first run it redirect to the web site, though my web page user can configure it settings.( Ex: WOT). Is there any specific way to implement this one? Thank you,
stackexchange/codereview
This has always bothered me. Why is it people say to unit test in rspec but integration test in cucumber? I am not asking why these tests are necessary - I know what the difference is between integration and unit testing. I just don't see why, given cucumber's completely customizable syntax, it isn't used for unit test...
stackexchange/codereview
At the moment, my code uses the command key in combination with other keys to call functions within our javascript. This functionality currently works within firefox, however in safari by pressing combinations such as command + "+" or command + "1" it does not do the intended functionality and instead does the functio...
stackexchange/codereview
I've got a WinForm application with separate groupboxes and objects, but the code isn't sorted by groupbox and pretty messed up. Can the code be split in 2 files or something with the objects on the same place? EDIT: this is my code: how should i split it? (i need everything with News and everything with Dir changed)...
stackexchange/codereview
Is it possible in SearchKit (on OS X) to actually store document fields in the search index, as it is possible in some other search libraries? This would allow for quickly displaying certain fields (author, subject, date, etc) without having to read the files corresponding to the underlying documents as the result of a...
stackexchange/codereview
I'd like to keep my usage documenation in a readme file (duh) instead of comments at the top of my script. How do I get RDoc::usage to pull the usage information out of the readme instead of the script comments?
stackexchange/codereview
I'm sure I'm not the only one with this issue, but I couldn't manage to find a question for it. So I want to add a new unit to my project, the process goes like right click project -> Add -> New Item -> Type in name -> Select .h as type -> Hit Ok. Then repeat the whole process again for the cpp file. The logical choice...
stackexchange/codereview
When I run my code below I get a: ValueError: invalid literal for int() with base 10: '0.977759164126' but i dont know why file_open = open("A1_B1_1000.txt", "r") file_write = open ("average.txt", "w") line = file_open.readlines() list_of_lines = [] length = len(list_of_lines[0]) total = 0 for i in line: values ...
stackexchange/codereview
I have this "observer" that watches the UISwitch for a change in value: [cell.switcher addTarget:self action:@selector(switched:withName:) forControlEvents:UIControlEventValueChanged]; When the value is changed this method is called: -(void)switched:(UISwitch *)switcher withName:(NSString *)name; As you can see I hav...
stackexchange/codereview
I'm writing a terminal wrapper for a command-line program in Java, and I spawn the subprocess using ProcessBuilder. To send keystrokes to the subprocess, I just write e.getKeyChar() from the GUI straight to the OutputStream given by proc.getOutputStream(). To receive output from the subprocess, I basically have a wh...
stackexchange/codereview
I've found that in execution plans using common subexpression spools that the reported logical reads get quite high for large tables. After some trial and error I've found a formula that seems to hold for the test script and execution plan below. Worktable logical reads = 1 + NumberOfRows * 2 + NumberOfGroups * 4 I don...
stackexchange/codereview
I have two tables table1: { id, name } table2: { id, table1_id, time_added } It is possible to get all items in table1 with only the last added related item in table 2 in a single query?
stackexchange/codereview
In Matlab the command 'axis equal': sets the aspect ratio so that equal tick mark increments on the x-,y- and z-axis are equal in size. This makes SPHERE(25) look like a sphere, instead of an ellipsoid However, when using the loglog plotting function, this doesn't work "properly". What I would like to happ...
stackexchange/codereview
what is the best possible way to merge multiple documents and convert them to pdf. also we need to insert blank pages for every odd pages.
stackexchange/codereview
I have an activity Alert, which is defined in the manifest like so : <activity android:name="Alert" android:label="@string/app_name" android:theme="@android:style/Theme.Dialog" android:launchMode="singleInstance" android:noHistory="true"> </activity> ...
stackexchange/codereview
The following statement is returning a 1 in php. I've serialized and output the result and every other credential, and it is doing this on three seperate queries. When I run the query in sqlpro or phpmyadmin I get the result as 8. Please tell me someone has a bright idea. $numRFPsSwitch = 0; $bquery = " SELECT COUNT(rp...
stackexchange/codereview
UISegmentedControl allows me to make individual segments have text or images. I'd like to use a system icon (that is appropriate for what I'm trying to do), but I don't see how to grab the UIImage out of the UIBarButtonSystemItem. Any help is appreciated.
stackexchange/codereview
Did ask a question about the same problem here: Silly problem with UTF8 but somewhat screwed up the thing so i do a new question and try to to it cleaner. I do apologize if i ask this again. I have been trying to get this to work but just can't get the result i want. I have tried the recommendations from my previous th...
stackexchange/codereview
I'm trying to write a dynamic control in Microsoft MVC that lets me edit the entity in a grid (specifically using jqgrid). Well, I build my columns and colmodels in my controller based on the entity I'm trying to modify. I'd like to have a way to mark a column as a hidden column, but I'd like to not just create arbit...
stackexchange/codereview
I am trying to get a rmi connection going. I have ran into many security issues but have been unable to find a way past all this. I execute my jar file with: java -Djava.security.policy=java.security.AllPermission -jar "myjarfile" The code I have been using to create this is: public class server { public static vo...
stackexchange/codereview
Is "URL slug" a completely arbitrary word? Or does it stand for something? I used the word in a conversation with someone and when they asked me why it's called that I realized I didn't know. I know what it means of course. The Stack Overflow tag for [slug] currently defines it as: part of a URL that makes it more hum...
stackexchange/codereview
Possible Duplicate: In Win32, is there a way to test if a socket is non-blocking? This is how I set socket to non-blocking mode in windows. unsigned long mode = is_blocking ? 0 : 1; int ret = ::ioctlsocket(m_Socket, FIONBIO, &mode); In my complex library I'm getting occasional locks because some sockets passed to ...
stackexchange/codereview
Is it possible to get information about the host where a dump file was been created e.g., OS version, service pack, .NET framework version etc.
stackexchange/codereview
I'm using Joda Time DateTime to handle date and time. I persist objects of this kind using the class PersistentDateTime bundled in the jodatime hibernate code. I have large collections of DateTime objects, and I currently persist them in the following way (an excerpt of an hibernate mapping file follows): <set name=...
stackexchange/codereview
I am a beginner in iOS development and am trying to create a offline/local highscore database for a simple iphone game and use it. this would be my first time to create and use a database on a ios device i know sql i don't care if i would directly use sqlite3 or core data the database should be arranged by highscore my...
stackexchange/codereview
I'm doing an application using NSXmlParser. I'm getting data from server.I have to display details of the item including item image also. I'm getting image data from parser, which is not adding to imageView .I'm using code as UIImageView *warrantyCardImage; warantyCardImage.image=[UIImage imageWithData:[NSData dataWith...
stackexchange/codereview
when generating an activerecord.cs from mysql using subsonic, some foreign keys are overlooked by the template. it acknowledges the table and columns, just not the relations. i have checked all the basic things like made sure its the correct db, flushed tables, deleted classes etc. the db is created using a dump. when ...
stackexchange/codereview
can anyone tell me approaches to tackling the following which is a very typical use case. User 1 is editing page 1 which is modifying a users roles etc. User 2 is also modifying the same user as user 1. How do i prevent the changes overwriting one another??? this is for asp.net site with framework 3.5??? thanks Niall
stackexchange/codereview
I have been working on Neural Networks for various purposes lately. I have had great success in digit recognition, XOR, and various other easy/hello world'ish applications. I would like to tackle the domain of time series estimation. I do not have a University account at the moment to read all the IEEE/ACM papers on th...
stackexchange/codereview
I am running a python2.5 script on a windows 2003 server as a service. I am getting this error for simple print statments: IOError: (9, 'Bad file descriptor') I deleted all the print statements because they were only used for development purposes, but I am unsure why a print statement would cause me any greif. I ran t...
stackexchange/codereview
I need openssl to return two files ssl.pem and ca.crt the ssl.pem is for my lighttpd webserver to give if they include https instead of http. the ca.crt is what they must download from my site and then install on their computer. I am using linux-mint with openssl installed by default.. I will transfer lots of my files ...
stackexchange/codereview
Is it possible to dynamically load foreign C library (dll) and call its functions in Go? I know there is cgo which is used to statically bind to C functions, but I'm interested in dynamic way.
stackexchange/codereview
I'm trying to feed data from SQL database to FLEX, using php script in the middle. I see the data in body of message in the Network Monitor and in "Variable" window during debug, but I can't retrieve them to XML. Below (event.message.toString()) (mx.messaging.messages::AcknowledgeMessage)#0 body = "<?xml version="1.0...
stackexchange/codereview
I am just starting to use the Qt library. I am trying to compile my very first test script with the following header: #include <qwebview.h> However it won't compile: g++ main.cpp -o run.main main.cpp:2:22: error: qwebview.h: No such file or directory main.cpp: In function ‘int main()’: main.cpp:10: error: ‘QWebView’ w...
stackexchange/codereview
I'm trying to set up my (iframe) Facebook application to use OAuth for authentication. I used the python-sdk from Facebook, but I'm not really satisfied by the result, yet. The problem is that when I redirect a user that never accessed my application to the login page, my iframe diplays an ugly intermediate page, such ...
stackexchange/codereview
HI, Wit linq i populate a generic list in DAL. then in UI layer the user removes and updates items from the list. Is it possible for LINQ to keep track of the changes without having to write code to check which items have been removed and deleting them/adding new items and updating others etc. it seems that this is not...
stackexchange/codereview
Me and my partner installed from scratch eclipse with subclipse...But neither me or he can compare the files!! Right Clicking a file >Compare with > Revision or anything we tried in order to make a comparison it failed and always will! I get an error of java.lang.nullpointerexception and nothing more! Here is what i g...
stackexchange/codereview
Is there any way to do this without any programs or scripts? (Maybe through osascript?)
stackexchange/codereview
I have an ascx control for fruits that contains following code: <div id = "fruits"> .... Ajax stuff1 UpdateTargetId = "fruits" Ajax stuff2 UpdateTargetId = "fruits" <%Html.RenderPartial("PagerAjax", (Pager)ViewData["pager"]); %> </div> now this fruit control can appear on a number of webpages and the pager would ...
stackexchange/codereview
First off, sorry for the title, it was hard to come up with a description. I am attempting to create a structure that will access a peripheral that has quite of few internal registers that are controlled by 3 address lines. So I have the following structure definition: typedef struct { union { unsigned char *r...
stackexchange/codereview
I've seen this problem listed on getsatisfaction.com, but don't understand the workaround. http://getsatisfaction.com/railstutorial/topics/listing_10_15_causes_user_validation_failure_running_rspec This code is failing for some reason in users_controller_spec.rb and maybe it's because the factory isn't creating both a...
stackexchange/codereview
I have several images that are exactly the same size and absolutely positioned on top of one another. All of them are transparent .gifs with the exception of the background image (the one with the lowest z-index). Behavior-wise, the background image always stays on my page. The other images are able to be toggled on or...
stackexchange/codereview
Can anyone tell me why i should use the Enterprise library Data application block as opposed to using standard ado classes such as SqlConnection,SqlCommand etc??? also if using Enterprise Library how should these connections,adapters be created. i.e. using the using statements all the examples i have seem do not use us...
stackexchange/codereview
I'm not sure how to even explain this, which makes it very difficult to search on (especially because I am SURE this is an error in thinking). I have an array of objects: var a = [ { url: "http://www.discusionboard.com/list-of-boards/", name: "Discussion Board One", threads: [] }, ...
stackexchange/codereview
This code is given in python official essays on graph theory. Here's the code: def find_all_paths(graph, start, end, path=[]): path = path + [start] if start == end: return [path] if not graph.has_key(start): return [] paths = [] for node in graph[start]: ...
stackexchange/codereview
Does such an encoder exist? The GDI+ one is not very fully featured. For example, it will always render out 32bpp images, even if you're using 8bpp indexed in-memory. I'm about to start writing out a lot of PNGs from a web server that should really be 8bpp indexed with transparency (PNG supports alpha levels in the p...
stackexchange/codereview
Can I use the same class for a JSF backing bean and a hibernate entity? I assumed that I could but when I do some JSF validation on the backing bean, the fields are not set (i.e. null). Is there something I'm missing to make these two technologies play nicely together? Or is it simply not the practice to use the same...
stackexchange/codereview
For normal columns, you can get at them via the columns class method. However, associations may be named something quite different if the foreign_key option is set in the relationship method. For example, given class Post has_many :comments, :foreign_key => :message_id # this is a contrived example end if I did Post...
stackexchange/codereview
Is it possible to use JavaScript in Android?? if so, how? Please provide some examples. Thanks.
stackexchange/codereview
I have a php page query mysql database, it will return about 20000 rows. However the browser will take above 20 minutes to present. I have added index on my database and it do used it, the query time in command line is about 1 second for 20000 rows. but in web application, it takes long. is anyone know which causing th...
stackexchange/codereview
How can I make OpenOffice 3.2.1 to listen a socket (Windows XP)? I used soffice "-accept=socket,host=localhost,port=12345;urp;" or soffice "-accept=socket,host=localhost,port=12345;urp;StarOffice.ServiceManager" Have tryed different ports.. OOo starts, but netstat doesn't show any connection with such port number. I t...
stackexchange/codereview
I have some graphics that is already scaled and cut correctly for my project. I choose to build the UI in IB and positioned everything correctly, under size and position I left it a "Frame" (instead of layout). At runtime my graphics is moved and stretched according to which UIViewContentMode I set. If I was doing this...
stackexchange/codereview
I have installed my ASP.NET MVC 2 app to our QA servers. I set up a virtual directory and an app pool. Both have been started. But when I got the URL I get the error Service Unavailable. Not sure what this is? If I go to the log files in C:\WINDOWS\system32\LogFiles\HTTPERR then the only error that I see is: 2010-...
stackexchange/codereview
i am running my apps with different provisioning profiles.(I am creating one provisioning profile for each application an running in device). but i want to run all applications in my device(without overwritting previous apps) with only one provisioning profile.I hope , it is possible.when we set apple id only in plist ...
stackexchange/codereview
I'm creating an iPhone app, which will run on iPhone 3 and iPhone 4. To that point, I was trying to make the images adjust to the resolution, but it turns out that even when running on the iPhone 4, the size of my window is 320x480. On the XIB I specified "fullscreen at launch" and for the ViewController I even specifi...
stackexchange/codereview
How to changing existing COM+ applications identity via vbs script. like Authentication level = none and identity to this user via vb scripts. found many posting on add/delete com+ applications but not changing existing one. please help
stackexchange/codereview
I keep getting every time I add the selected bit of Xaml to the UserControl Could it be that I cannot add a UserControl within a UserControl? Bigger image is at http://i53.tinypic.com/2ekupo0.png
stackexchange/codereview
I have a node id. In my code I want to output this node to the screen using the standard template for the node. How do I print the node to the screen?
stackexchange/codereview
Gurus, I googled so many times on this issue but I can barely find any useful information. So assume that we have a base.html template as: {% block test %}This is the base!{% endblock %} And 2 child templates under that, a.html and b.html a.html: {% extends "base.html" %} {% block test %}This is the A!{% endblock %} ...
stackexchange/codereview
I have a tab-based app with two table view tabs, set up in IB. On one of the tabs, there is a button that causes another view to pop up and let's the user enter some info. When the user closes that view, I need the tab views to reload with the new info. I've heard about the reloadData method, but I can't call it becaus...
stackexchange/codereview
Multiselect in JQGrid only allows either multiple selection or single selections and the shift functionality isn't what I'd expect the shift select to do. I also don't like that we need comboboxes with multiselect. What other solution could I use for multiselect?
stackexchange/codereview
I'm just meddling with OSX after a few years on Linux. There's a lot that I'm liking, but one thing that's slowing me down is that if I run the 'terminal' command via shortcut/spotlight/quicksilver, it whisks me off to any existing terminal in whatever space already has a terminal instance open. I regularly like to pop...
stackexchange/codereview
I couldn't find the answer to this probably simple question. I have been having problems getting OpenCV to work on my computer with either Dev C++ or VS 2010. My question is not about the specifics but instead is about what CMake contributes to the process. I have worked my way through a lot of C++ programs, learning...
stackexchange/codereview
I am implementing my first syncing code. In my case I will have 2 types of iOS clients per user that will sync records to a server using a lastSyncTimestamp, a 64 bit integer representing the Unix epoch in milliseconds of the last sync. Records can be created on the server or the clients at any time and the records a...
stackexchange/codereview
I am starting a project and i would like to be able to test everything :) And i have some problems with CanCan and devise. For exemple, I have a controller Contacts. Everybody can view and everybody (excepts banned people) can create contact. #app/controllers/contacts_controller.rb class ContactsController < Applicatio...
stackexchange/codereview
I am looking for a functionality some thing like as that of the following link: http://www.steveandco.com/it/v/1988/Bretelle/Bretelle-stretta-Oro.html Here when we click on the box meant for color selection the image and the associated information like unique number , product name , color name changes. Please guide me...
stackexchange/codereview
I am trying to simulate job checkpointing for grid computing in java. I am having two classes Job and CheckPointInterrupter that are threads. The CheckPointInterrupter Class takes checkpoints of a job at regular intervals. To keep the simulation simple, I am just taking the values of the variables of Job as the checkp...
stackexchange/codereview
I have seen many number of software used for HTML code encryption, the pages which have undergone encryption, when clicked "view source" show an encrypted code, My questions is .. what is the significance of this? Is it an attempt to protect the contents of the website, like music, pictures? or possessiveness about the...
stackexchange/codereview
Is using the PrintServer and PrintQueue classes the same as looking at the jobs via the printer in Windows? We have an application that can print to a windows printer directly, but it cannot create a byte array or anything similar that we could use to call AddJob. Would enumerating the printer using the PrintQueue.G...
stackexchange/codereview
Domain driven design has become my architecture of choice. I've been able to find a abundance of books & tutorials for applying DDD principles within the ASP.net framework. It mostly seems inspired from what Java developers have been doing for a good while now. For my personal projects, I'm starting to lean more towa...
stackexchange/codereview
Possible Duplicate: (C#) Get index of current foreach iteration Good morning, Is there any way I can get the index of an Enumerator's current element (in the case, a character in a string) without using an ancillary variable? I know this would perhaps be easier if I used a while or for cicle, but looping through a s...
stackexchange/codereview
I'm trying to run a MapReduce Job with Pig and Cassandra and I always get the error: ERROR 2118: Unable to create input splits for: cassandra://constellation/logs [SOLVED] There were some environment variables I missed to set: PIG_RPC_PORT, PIG_INITIAL_ADDRESS, PIG_PARTITIONER /opt/cassandra-0.7.0-beta3/contrib/pig$ b...
stackexchange/codereview
I have a problem with setting a starting position, that depends on the class of item that has been clicked. I have two lists: 1) List of previews with classes in -tags (class="1", class="2"...); 2) jcarousel list of the same items. Second list is hidden. When user clicks at any item of the first list, the script hides ...
stackexchange/codereview