instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Is it possible? I'm not familiar with silverlight architecture, but i know about wpf and asp.net mvc. is it possible to replace mvc view page with silverlight ones?
stackexchange/codereview
I have build a program in Visual Studio. The program creates a logfile and writes into it while the program is running. Therefore I constructed an installer (setup-project), that should set write permissions for my program-folder regardless which user works with the program. currently it looks like this: // ... } Ini...
stackexchange/codereview
I'm building a Rails application which uses Authlogic for authentication, which I've now set-up to run using the OAuth extension, meaning a user can be created by signing in from Twitter. This stores their OAuth token and OAuth secret, meaning they're accessible, but I was wondering how I would actually go about sendin...
stackexchange/codereview
I'm currently working on storing pixels in XML format using Matlab. The problem is that I have no idea about data storage under XML. Can any expert please give me some guidelines? Any relevant materials are welcome and appreciated. Thanks!!
stackexchange/codereview
I am currently working on creating an RDLC report for the Avery 5168 labels. The report is being created in Visual Studio 2010 and the will be for mailing labels. The report should show the addresses 2x2 on each page of the report. I have tried several different solutions with no success. Any suggestions would be great...
stackexchange/codereview
I'm diving into ASP.NET MVC 2 and I'm trying to understand how it handles different request formats. In Ruby on Rails, you specify in the controller which response format to return based on the request... respond_to do |format| format.html #action.html.erb format.xml { render :xml => @employees.to_xml(:root => "em...
stackexchange/codereview
I need to determine the argspec (inspect.getargspec) of a function within a decorator: def decor(func): @wraps(func) def _decor(*args, **kwargs): return func(*args, **kwargs) return _decor @decor def my_func(key=1, value=False): pass I need to be able to inspect the wrapped "my_func" and retur...
stackexchange/codereview
I have an ASP.NET webforms website that uses the .NET MySql connector and MySql as a back-end. I'm using role-based authentication to protect certain areas of my site. The problem is that the user's role information is not being persisted after I move my site to the server (works fine on my local development machine). ...
stackexchange/codereview
Friend's I'm sending an SMS from my android device,here i enter the number manually in the edittext box,and i have message to send,here how can i check the entered phone number is valid number from phone directory.help me..
stackexchange/codereview
I have a query that retrieves some data, among those data I have some that are returned with a value like 0. I would like the query to NOT return the columns when that's the case. How can we do such a thing? Regards, MEM
stackexchange/codereview
The following code compiled with MSVC9.0 runs and outputs Destructor four times, which is logical. #include <iostream> class SomeClass { public: void CommitSuicide() { delete this; } void Reincarnate() { this->~SomeClass(); new (this) SomeClass; } ~SomeClass() { std::cout...
stackexchange/codereview
I am trying to initiate a drag&drop on a spark tilelist so the user can re-order the list manually. The problem is : each time i drap and drop, the dropped/dragged entry is duplicated. My main application is : <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="libra...
stackexchange/codereview
I have a problem with sorting collection. User saves few values and he sorts it. At next launch program must order a new collection. Values which have been saved by user can be in new collection, but It can be situation , when those values aren't in new collection. I wrote some code, and I want your feedback If it h...
stackexchange/codereview
I'm reading a lot on this topic for some time now. The information on the web about this topic is quite confusing. Use case: A User visits site hostA.com, which includes a "tracking pixel" from site hostB.com . The user never visited hostB.com before. hostB.com sets a cookie with the response. Which browsers will accep...
stackexchange/codereview
We have an application which, for various reasons, needs to be compiled as both a 32-bit and 64-bit app. The thing is, we want to distribute both setup files (msi) on a single CD. Is there a launch condition or autorun.inf entry that we can use to know which setup.exe to launch? Or do we need to write a separate lit...
stackexchange/codereview
<tableLayout> <tableColumn width="250"/> <tableDivider spaceAfter="0" spaceBefore="0"/> <tableColumn/> <tableDivider spaceAfter="0" spaceBefore="0"/> <tableColumn/> </tableLayout> When selecting the width for the current "column" using the above data (not my decision to stru...
stackexchange/codereview
I have an SQLite db and I have to make it work with an Android application. So my question is: Is there any way to generate JAVA classes automatically from an SQLite db model? This db has several tables and I would like to get a JAVA class for each table to handle easily my datas. Thanks.
stackexchange/codereview
how do I redirect a category or page /my-page/ to a new page /my-new-page/ using htaccess?
stackexchange/codereview
I have a dialog in qt that has multiple groupboxes, each using a form layout. Something like this: https://dl.dropbox.com/u/4494367/Groupbox_Layouts.png Is there a way to get the form layouts to link, so that the have the same column widths?
stackexchange/codereview
I have a RelativeLayout like this: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dip"> <Button android:id="@+id/negativeButton" ...
stackexchange/codereview
The javascript code below is about half way on my php page, I can't directly modify the radio buttons with IDs q_251_789 and q_251_790 on my page unfortunately, hence why I'm using JS to add attributes to those two radio buttons: <script><!-- $("#q_249_249").hide(); $("#q249").hide(); $("#q_251_789").attr("onClick","ye...
stackexchange/codereview
I am having difficulty getting one of the page divs to display over a temporarily prepended div. The div i want to keep at the fore at all times is .outer_box The Jquery: $(document).ready(function() { $("<div/>", { "class": "DooSuperOverlay" }) .prependTo("body") .animate({opacity: 1.0}, 3000) .fadeOut("slow"); ...
stackexchange/codereview
im really having a tough time trying to upload images using php and mysql, and i really need help! this is what i want to do in natural language: 1. upload an image 2. check if format is okay(png, jpeg, gif) 3. rename the image file, so theres no ambugity in this format(eg. pic-$userid.gif) 4. upload the pic to the im...
stackexchange/codereview
I am trying to delete a record from one table in my db, but another table has references to this row (foreign keys). So I want to make on delete cascade using SQL Developer in Oracle 11g. How can I do this?
stackexchange/codereview
After performing an update to a new version of the Eclipse Android Plugin, it stopped working. There is no Android Tool visible anywhere. The Window/Preferences tool does not show the Android plugin to configure. And yet, it is installed (says the "Eclipse Installation Details"). I tried uninstalling the Plugin, and re...
stackexchange/codereview
I have an ObservableCollection<Item> and I want to set it as the ItemsSource property of a TabControl. The Item class contains a Property TabItem that returns a System.Windows.Controls.TabItem. I want the TabControl to display the TabItems from the collection. (In reality, there are lots of properties on the "Item" c...
stackexchange/codereview
Hi i need help with refreshing div, but not auto refresh! I have my div like this. <div id="osvezi"> <?php include('moduli/skupina_artiklov/osvezi.php'); ?> </div> I want that i clicked some button they refreshed me only div osvezi. Thanks for help.
stackexchange/codereview
My project runs on Wicket+Spring+JPA/Hibernate. When I run it using the command: mvn jetty:run I'd like jetty to print logs I make in the code. I have for example the following DAO implemented: @Repository(value = "isinDao") public class IsinDaoJpa implements IsinDao { @PersistenceContext private EntityManag...
stackexchange/codereview
I am currently running a Python scripts both on Linux and Windows 7. The file is executed in an execv style with which I mean that the interpreter is defined in the beginning of the file in a command. In Windows system, the interpreter specification is: #!C:\Python26\python.exe However in Linux this needs to be #!/usr...
stackexchange/codereview
I wrote a Python script that I need to have installed on Windows Server 2003 R2, that will run when a specific directory is changed in any way (new files, deleted files, etc). I believe I need to register this as a system service, in order to listen for that, but I'm really not sure. So, my question is this: does such ...
stackexchange/codereview
I am using a ScatterView and am currently binding to a folder so that when my app starts up some sample images are displayed, this works great. <s:ScatterView x:Name="MainScatterView"> <s:ScatterView.ItemTemplate> <DataTemplate> <Image Source="{Binding}"/> </DataTemplate...
stackexchange/codereview
I am creating a platform for some clients. Each client needs to have contacts and manage them in groups, categories (which depends of the group) and subcategories (which depends of the category). The database is going to be very big, and Im afraid about the performance. I want to optimize the database; now, I have thes...
stackexchange/codereview
I have one problem Looking below: I have this model: class Shoes(models.Model): shop = models.ForeignKey(Store, related_name="%(class)s") name = models.ForeignKey(ShoesItem) size = models.ManyToManyField(ShoesSize, help_text=_("Get useful sizes")) price = mode...
stackexchange/codereview
Here is my code within (document).ready $('.checkfirst').click(function() { if ($(".textbox").is('.required')) { var x = $(this).offset().top - 200; $(this).focus(); $('html,body').animate({ scrollTop: x }, 500); divHint = '<div class="formHint">This is required!...
stackexchange/codereview
I hope to add audio from audio library to a MPMediaItemCollection. I hope I can store the MPMediaItemCollection So I write the MPMediaItemPropertyPersistentID to an array. When I need to reload and replay the audio MPMediaItemCollection, I check if the audio's MPMediaItemPropertyPersistentID existes in current audio li...
stackexchange/codereview
How to take svnadmin hotcopy into the same directory (eg. when this command is in the scheduled tasks)? C:\>svnadmin hotcopy c:\temp\testrepo c:\temp\hotcopy_backup C:\>svnadmin hotcopy c:\temp\testrepo c:\temp\hotcopy_backup svnadmin: 'c:\temp\hotcopy_backup' exists and is non-empty So what is the best practice, beca...
stackexchange/codereview
I have a TreeView whose contents (nested TreeViewItems) are generated from a dataset via databinding, which all seems to work fine. The issue I'm running into is that when I try and manipulate the contents of the TreeViewItem headers in code, the Header property returns the DataRowView that the TreeViewItem was generat...
stackexchange/codereview
const char IsPressed = 1; // 1 const char WasHeldDown = 2; // 10 const char IsFirstPress = 4; // 100 char* keystates[256]; Class::CalculateKeyStates() { for(int i = 0; i < 256; ++i) { if(this->IsDown(i)) { keystates[i] |= IsPressed; // turn on if(keystates[i] & WasHeldD...
stackexchange/codereview
Interesting problem I ran across which makes total sense. I have a generic method like so: public TResult Run<TResult>(Func<SqlDataReader, TResult> resultDelegate) { TResult result; using (SqlDataReader reader = command.ExecuteReader()) // command is SqlCommand with attached SqlConnection { result = re...
stackexchange/codereview
I'm just starting to play with Node.js today, and thought I'd start with what I thought would be a simple script: Connecting to a server via sockets, and sending a bit of data, and receiving it back. I'm creating a command line utility. Nothing in the browser. An example of a server would be memcached, beanstalkd, etc....
stackexchange/codereview
I have a string that I want to parse using regex. It has the follow format: "random text [id value] more text [id value] other stuff" I would like to find the pattern that will match [id value] the brackets included. Do I have to do anything special to return two matches instead of one match. My concern is that I wi...
stackexchange/codereview
hi in this code in .net 4 i used copyto method of gzipstream System.IO.MemoryStream ms = new System.IO.MemoryStream(byteArray); GZipStream DecompressOut = new GZipStream(ms, System.IO.Compression.CompressionMode.Decompress); MemoryStream outmem = new MemoryStream(); DecompressOut.copyt...
stackexchange/codereview
The other day I sat with a regular expression problem. Eventually I solved it a different way, without regular expressions, but I would still like to know how you do it :) The problem I was having was running svn update via an automated script, and I wanted to detect conflicts. Doing this with or without regex is trivi...
stackexchange/codereview
I am running Windows 7 Professional 64-bit with visual Studio 2010. I have installed the Microsoft Speech Platform - Server Runtime v10.2 and the en-US language packages. I created a Web Service (Web Application) using Microsoft.Speech. In my test the Web Service receives a string and simulates the recognition based o...
stackexchange/codereview
Ideally I would like to send an object of type ArrayList<ArrayList<ASimpleClass>> from a remote service in one APK to an application in another. I'm not sure if this is even possible as the API demo code suggests that it isn't: /** * This demonstrates the basic types that you can use as parameters * and return va...
stackexchange/codereview
I am having trouble to upload(from Silverlight 4) a wav file to the server(WCF .NET 4). The file is uploaded from SL to server and write it to disk. But the uploaded file is changed. The two files(before uploading and the uploaded one) have exact same size but different content. And I tried the uploading in a normal co...
stackexchange/codereview
Is there anyway to create cross platform hardware accelerated games in Silverlight? (OpenGL binding or something similar) Does libraries like Balder usable for writing large 3D games (e.g MMORPGs) in Silverlight?
stackexchange/codereview
Ok so I'm trying to recreate the partial fold animation like in the standard google maps app on the iphone where the toolbar at the bottom stays where it is, but the views above it curl and such. Here are some images: https://i.stack.imgur.com/MjTx6.png (Wont let me put in hyperlinks for some reason <_<) http: // i.img...
stackexchange/codereview
I need a custom control where I can select a value from a horizontal scrolling text. Basically I am building a converter app in WP7 and want a control which allows me to select a value from a scrolling text. The values should scroll horizontally and as soon as the value comes in focus should get selected. Any advice wo...
stackexchange/codereview
I am new with programming, how do play music in Java program Javascript? make like winamp A program that looks like Winamp.
stackexchange/codereview
I have a string that is of the: type 'field1^Afield2^Afield3^A' I need to break this string and get one of the fields. All the string functions I see in MySql that help you break by delimiter expect a string as the delimiter , example: SUBSTRING_INDEX("Hello. Break this. for me", ".", 1) would give = "Hello" How do i ...
stackexchange/codereview
Project Lombok makes it trivial to implement the boilerplate code in the classes. Is that possible with .NET attributes? Is any .net port there?
stackexchange/codereview
I need to delete old user datas in the DB, if user session is timeout. How can I solve this problem with using PHP?
stackexchange/codereview
I need a audio and videoplayer that is usable both in non flash-browsers (such as iphone-safari) and in non html5-video-enabled browser (such as all old browsers) Apart from this clean asthetics(think vimeo), support for many codec-types and easyness to implement are all bonuses. Free or paid doesn't matter!
stackexchange/codereview
My brain aint functioning atm.. Can you pls help me out here: Got a table with date, analyseid, groupid I want to get unique groupid's.. perhaps with a count on same groupid's. Also if there are rows with same groupid the date is also the same. SELECT date, analyseid, COUNT(*) AS 'amount', groupid FROM myT...
stackexchange/codereview
How to read real add on android device. The sample add are appear on the emulator but when i try it on real device it does not work. please help me, what i am doing wrong, reply. thanks in advance
stackexchange/codereview
I need help! I'm facing a problem that is got to do with Slider + Tree View + Video. Using Blend and WPF, language C#. Header (a) sub header X << Play Video (a) only on click (b) sub header Y << Play Video (b) only on click Video (a) [Duration 0:00 to 0:09] and Video (b) [Duration 0:10 to 0:20] I have combined the ...
stackexchange/codereview
I'm using Rails 2.3.8 and accepts_nested_attributes_for. I have a simple category object which uses awesome_nested_set to allow nested categories. For each category I would like a unique field called code. This would be unique for the category per level. Meaning parent categories will all have unique codes and sub ca...
stackexchange/codereview
rails@george:/srv/fsg_distro$ sudo passenger-status *** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one... # mkdir -p /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux # cd /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-...
stackexchange/codereview
OK, suppose I want to check whether the template parameter has a nested type/typedef XYZ. template <class T> struct hasXZY { typedef char no; typedef struct { char x[2]; } yes; template <class U> static yes f(typename U::XYZ*); template <class /*U*/> static no f(...); enum {value ...
stackexchange/codereview
This is exactly the same case as this one, but with Hg instead of SVN. I have MercurialEclipse installed, and I have changed the password of my remote repo. Now when I synch it fails. I have not found any conf file in "C:\Documents and Settings\%USER%\Application Data..." about Hg. I have deleted the .keyring eclipse ...
stackexchange/codereview
I have the following snipset of code <xsl:variable name="cId" value="c001" /> <clients> <c001>Mario</c001> <c002>Luigi</c002> </clients> And Based on variable's value, I need to select the correct element under clients. For Example. variable cId is assigned with value c001. Is there a way for me to select th...
stackexchange/codereview
I think that i have noticed moving certain methods around causes errors when i compile that are remedied by putting the method back where it was. am i making this up? is there are rhyme or reason to the order that these need to be in? is decided by the order of my .h? what about delegate methods and inherited methods?
stackexchange/codereview
I want to position "Game on Sep 27" in the lower left-hand corner, across from "Lost 100 chips." But I can't see to get it positioned in the lower left-hand side. Here's my current CSS: Any suggestions? Much appreciated!
stackexchange/codereview
When animating a width toggle, it's not animating the padding, so i looked into .outerWidth() but i'm not exactly sure how to implement this... $('#shareheart').click(function(){ $('.share-text').animate({outerWidth: 'toggle'}, 2000) })
stackexchange/codereview
What is the Dependency property in WPF and Silverlight. Why we required and where we can use it. Thanks...
stackexchange/codereview
I've got a problem with a project repository setting in Redmine, in that; I've tried to set a repository with GIT, entered an invalid GIT path, and now I'm stuck as I can't seem to delete the path which has been set. Clicking delete sends me to the next page, stating that the following; Ideally I want to delete this ...
stackexchange/codereview
Is there any way using any of the standard XML tools or E4X tools in Flex 4 (Adobe Air WindowedApp) for me to validate an XML against an XSD schema I have created?
stackexchange/codereview
I've setup emacs 23.1.50.1 with CEDET 1.0 and ECB 2.40 (heavily inspired by Alex Otts setup at http://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el and his gentle introduction to Cedet ( http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html ), thanks Alex). It works quite well, but I need more...
stackexchange/codereview
After following the official tutorial here: tutorial I'm still having issues adding rows/creating a TreeIter object. Here's what my code looks like: builder = gtk.Builder() self.treeview = builder.get_object("treeview") self.treestore = gtk.TreeStore(str) self.treeview.set_model(self.treestore) se...
stackexchange/codereview
I try to return a set of result from an xml document using xquery but I didn't figure out. Here are my queries: DECLARE @Data xml SET @Data='<main> <person> <name>Daniel</name> <cars> <model>y75</model> <model>b25</model> </cars> </person> <person> <name>Marc</name> <cars> <model>h20</model> </c...
stackexchange/codereview
I want to understand how tinymce functions. the rich text editor contains an html document within an iframe. how are the nested DOM elements inside editable, In other word how am I able to type inside a <div> or a <p> layer when there is no textarea or input field involved (at least I dont see any)? are the elements co...
stackexchange/codereview
I have a couple of iOS applications which present inherently linearly organised information, allowing the user to move forward and backward through the data with on-screen controls. I would like to allow users with the keyboard dock or a paired bluetooth keyboard to use the arrow keys to move back and forth as well. ...
stackexchange/codereview
I've a problem trying to make my page printing out the JSONObject in the order i want. In my code, I entered this: JSONObject myObject = new JSONObject(); myObject.put("userid", "User 1"); myObject.put("amount", "24.23"); myObject.put("success", "NO"); However, when I see the display on my page, it gives: JSON formatt...
stackexchange/codereview
From my understanding, JSPs are compiled anyway, so I would anticipate you'd get similar performance from both. I want to display a lot of data, and I'm thinking of using JSP for the basics and calling a servlet to generate the code for each row in the table. Unless there's a good way to generate the entire table wit...
stackexchange/codereview
I have the following relationship defined in Core Data Person --> Worked <-- Job I have a view that shows Person information in a tableview. The user can then click on Worked Items to see all worked items for that person (Worked entity shows hours worked and related job). I then push a view showing worked jobs for that...
stackexchange/codereview
This should be straight foreward, but I simply can't figure it out(!) I have a UIView 'filled with' a UIScrollView. Inside the scrollView I wan't to have a UITableView. I have hooked up both the scrollView and the tableView with IBOutlet's in IB and set the ViewController to be the delegate and datasource of the tableV...
stackexchange/codereview
I'm creating a project that is utilizing Quartz.NET (with ADO.NET DB storage). There is the core component, i.e. the component that executes jobs (console application at the moment, will be a Windows Service), plus multiple web forms where users can add jobs and edit job (edit the datamap values to be specific). I'm ha...
stackexchange/codereview
i create a template file for my site... it's like: <!-- template.php --> <?php function showheader() { ?> <head><body> <!-- some of style files and menus --> <div class="content"> <?php } ?> <?php function showfooter() { ?> </div></body></html> <?php } ?> i use this file as a template like this: <?php include_once("t...
stackexchange/codereview
I am using PyQt4, but this is general enough that it could just apply to QT. I have a series of QComboBoxes that I fill from left to right (i.e. selecting an item in the leftmost will populate the next one. Selecting an item in that one will populate the next, and so on) I am having difficulty getting my signals to fir...
stackexchange/codereview
Is there anyway of marking several different rows in a scrollable data table ? I know how to mark one row b.div(:id, "listProductsForm:productList:bc_4_0").click I just want to simulate the "Ctrl"- button is pressed down
stackexchange/codereview
Is it possible to convert jxl LabelCell to jxl NumberCell somehow?
stackexchange/codereview
Quoted from here: CMediaType mymt; AM_MEDIA_TYPE pmt = (AM_MEDIA_TYPE*)&mymt; Why can a CMediaType object be cast to AM_MEDIA_TYPE? Is such feature available in c? UPDATE Can someone answer it seriously what's the principle behind cast subclasses to their base classes, can I do it the other way around? UPDATE2 AM...
stackexchange/codereview
Possible Duplicate: C# driver development? Why do we use C for device driver development rather than C#?
stackexchange/codereview
Ok, with all the answers to this question I'm still not able to handle my problem. I have the following constellation: In a JSF (1.1) webapp I have a request scoped bean beanof class Bean. When the user quickly clicks a commandButton multiple times to redirect him to the insult.xhtml page the doSomethingThatTakesALittl...
stackexchange/codereview
I am running the jQuery Cycle plugin and noticing that IE is applying background colors to what should be transparent elements. I assume this is part of IE's terribly handling of PNGs and alpha transparency, but I'm not entirely certain as to whether I should be trying to modify the plugin or simply scrap it in favor o...
stackexchange/codereview
I'm very new to rails so hopefully this should be a quick fix. I'm writing an application that searches a database and reloads the page displaying the desired results. In rails how does one save a input into a text_field and post it so that it can be retrieved and used in the query for retrieving data. My view: ...
stackexchange/codereview
Possible Duplicate: Limiting variable scope Is there a way to force R to ignore all objects set in the global environment? For example, let's say I have 'df' as an object outside of my function and I wish to use the same shorthand within my function, but not in reference to the object in the global environment
stackexchange/codereview
I totally agree that we should not use Hungarian Notation to name variables. But it seems that Hungarian Notation is still useful to name controls (especially Winform controls). Consider these: GridView grvUsers TextBox txtPassword etc... I really doubt that should we avoid Hungarian notation in this case? If should, ...
stackexchange/codereview
Can a .jar be run as a webservice? Since jar file consume a lot of cpu on my development machine, I would like to call and run it on another machine via network. Need advice on this, what is the best way of doing it? Thanks.
stackexchange/codereview
I'm wondering if it's possible to compare values in regexps with the regexp system in Python. Matching the pattern of an IP is easy, but each 1-3 digits cannot be above 255 and that's where I'm a bit stumped.
stackexchange/codereview
I'm making a webpage (http://example.com/calculation/). This site will do simple calculations. The page will present the user with two input fields in the form of text boxes (asp:TextBox). I'm wondering how do I go about handling clicking on the "Calc" button (asp:Button)? Do I use the controller for the page since I'm...
stackexchange/codereview
I'm working on an open source project (Logbus-ng), and I need to implement a web service spawned by a console application in a way that works both on Windows and Mono. Currently, thanks to the tutorial by MSDN Magazine, I succeeded in doing this on Windows. A console application can spawn its own web server and actuall...
stackexchange/codereview
In my .sh file, I have this, cp $file $SOME_PATH, while $SOME_PATH is exported as export SOME_PATH="~/path/to/path/". But when I ran this .sh file, I got error message saying like no such "~/path/to/path/" exists. I replaced ~ as $HOME, then the error was gone. So what's up here with the tilde? Thanks in advance.
stackexchange/codereview
First, any support and help on this is largely appreciated. I'm trying to write a simple Bash script (completely new to this) to replace a file in a given directory. Basically, I need to write a script to replace the safari preference file, here's what I have..and what's not working for that matter: #!/bin/bash find ...
stackexchange/codereview
So I'm working on a large rails app that has a bunch of selenium tests. Running a local dev instance of the site (apache w/ mod_passenger) works fine, but when I run the selenium test suite I get a bunch of failures, particularly on re-directs. The HTTP response header comes back poorly formatted. Among other proble...
stackexchange/codereview
I've got a string looks like this ABC(a =2,b=3,c=5,d=5,e=Something) I want the result to be like ABC(a =2,b=3,c=5) What's the best way to do this? I prefer to use regular expression in Python. Sorry, something changed, the raw string changed to ABC(a =2,b=3,c=5,dddd=5,eeee=Something)
stackexchange/codereview
I have several Rails applications with version 2.3.8, which I run using the thin server. I want to install Rails 3.0.1 on the same machine for testing purposes. The installation worked fine, but after installing Rails 3.0.1, running Rails 2.3.8 applications with thin fails with this error: >> Using rails adapter Missin...
stackexchange/codereview
Java specification allows the compiler and the VM to reorder memory writes in the interest of efficiency. Does the Dalvik VM take concrete advantage of this ? Disclaimer : I have no intention of relying on order even if Dalvik does not do it (besides the compiler may do it too), but it would be nice to know.
stackexchange/codereview
Although I will be using Ruby on Rails, this is a general questions about the best way to model a database and design a custom access control system for a CMS. So it does not matter what language/db. I would be happy to hear input from all experts. My problem: I am in the early process of developing an online tutorial ...
stackexchange/codereview