instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Background So, last time I inquired about PHP templates, I got a lot of responses like: it isn't needed; PHP is a good enough templating language on its own. it's hard to develop a templating language that is both powerful and easy for designers to work with (or around). it's already been done, use templating framew...
stackexchange/codereview
I wrote this to get the groups a particular user belongs to: DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer"); DirectoryEntry user = AD.Children.Find(completeUserName, "user"); object obGroups = AD.Invoke("Groups"); foreach (object ob in (IEnumerable)obGroups) { // Create ob...
stackexchange/codereview
Recently I upgraded my development tomcat from 7.0.0 to 7.0.4. I had things like: <c:set var="static" value=".." /> <c:set var="class" value=".." /> Both worked on 7.0.0 but stopped working on 7.0.4. I opened a bug, it was closed, with the answer that: In and of itself, that tag will compile. The checks for Java iden...
stackexchange/codereview
I'm using orientation for my application in iPad. i need to increase my orientation speed while i do the orientation(landscape, portrait, portrait upsidedown, landscape left, landscape right). but it little bit slow when orient the view can you please give the solution for my issue. edit: i have two controller landscap...
stackexchange/codereview
I'm using acts_as_taggable_on to add tags to posts, other tagging plugins/gems don't work with rails 3. I can edit/display tags on the post model and the tags controller displays the posts tagged by name i.e /tags/post-tag-name/. The functionality I want is to turn the tags on the posts pages into links to display the ...
stackexchange/codereview
I decided to, for fun, make something similar to markdown. With my small experiences with Regular Expressions in the past, I know how extremely powerful they are, so they will be what I need. So, if I have this string: Hello **bold** world How can I use preg_replace to convert that to: Hello <b>bold</b> world ...
stackexchange/codereview
whenever I am running My code it is showing an error
stackexchange/codereview
Let's say I have an sql server table: NumberTaken CompanyName 2                      Fred 3                      Fred 4                      Fred 6                      Fred 7                      Fred 8                      Fred 11                    Fred I need an efficient way to pass in a parameter [Star...
stackexchange/codereview
I am attempting to create an application which, at some point, I would like to sell. I understand that any protection scheme can be bypassed. Could you recommend any ideas on what would be easy for the end user but also be at least slightly resistant to piracy. I've had some ideas about: The user creating an account w...
stackexchange/codereview
I have a very simple operator problem in VHDL. I try to compare some inputs with logical operators but get an error message... entity test is port ( paddr : in std_logic_vector(15 downto 0); psel : in std_logic; penable : in std_logic; pwrite : in std_l...
stackexchange/codereview
I want to implement search on Mkmapview. I mean searching all the annotation pins based on their title or subtitle. Please let me know if there is any way.. I have been searching this on web from the last couple of days. NO clue till now. Please let me know. thanks in advance. suresh
stackexchange/codereview
I've created 2 controllers in my Yii application: FirstController.php and SecondController.php in default controller path. FirstController.php: <?php class FirstController extends Controller { public static function returnFunc() { return 'OK'; } } SecondController.php: <?php class SecondController extends Controll...
stackexchange/codereview
After I enter my username and password and click "Login" it sends me back to the Login page with NO error messages. The URL changes to include a session key and that's it. Everytime I click Login again, the session key is regenerated and I still can't log into the admin interface.
stackexchange/codereview
My iPhone app consumes a Java web service in order to get data. At my company we have 3 environments - development, testing, production. Each environment's URL, that points to the web service, is different. Thus, each time we promote the project to the next environment I must change the hard-coded URL in the iPhone cod...
stackexchange/codereview
I am trying to get the native windows icons and file type names for a file I am reading in using OpenFileDialog. The FileInfo doesn't contain this. I need something similar to shell32.SHGetFileInfo and szTypeName, but I believe shell32 has permission problems with silverlight. Is there a way for me to do this?
stackexchange/codereview
I have a simple C++ code, but I don't know how to use the destructor: class date { public: int day; date(int m) { day =m; } ~date(){ cout << "I wish you have entered the year \n" << day; } }; int main() { date ob2(12); ob2.~date(); cout << ob2.day; return 0; } The qu...
stackexchange/codereview
I'm in my second year of my CS major, and I've only had courses in C (first course and then a polymorphic data structures course), C++ (OOP focus), MIPS assembly, and a compiler course. I worked in WinForms and C# over the summer. I worked through the Little Schemer and I'm really interested in learning some sort of LI...
stackexchange/codereview
I have a local file SVN repo of a project that needs to move to GitHub. I know from what I've read on the GitHub site and a related question here on stack-overflow that it's a simple matter to move the repo from an SVN server into the GitHub repo. But my problem is that I have a local file repository. What is the rec...
stackexchange/codereview
I have a DevExpress LookUpEdit that I am using withing Visual Studio 2008 in VB.Net. I have the LookUpEdit bound to my datasource and the value that it is displaying may be null or one of the rows in the datasource. My program displays a treelist and when a node is select the LookUpEdit is supposed to display the assi...
stackexchange/codereview
So Im trying to input a postfix expression that is stored in a queue into an expression tree. When i send the queue to my build(QueueLi postfix) method, it works fine until the elseif(isOperator(token)) statement takes the operator and attaches the two operands from the stack and pushes it into the stack. I tried print...
stackexchange/codereview
I have a xcode project with multiple targets (for logic and app unit tests). I am also using core data with the mogenerator plugin to autogenerate source files from the .xcdatamodel. The generate files are not being generated with any of the "target" flags selected. This causes build errors. Is anyone aware of a sol...
stackexchange/codereview
How can I create a multiple files release using Maven? I.e. the release of my application need to be given as a set of directories and files within them, e.g. like a installed JBoss directory structure. How it is possible to do this with Maven? I could produce the main jar file of the application. I have to give it ins...
stackexchange/codereview
what's the best way to create a label to link a web page? thanks in advance! Paolo
stackexchange/codereview
I've got my routes configured as below: routes.rooms.type = "Zend_Controller_Router_Route_Static" routes.rooms.route = "/rooms" routes.rooms.defaults.module = "rooms" routes.rooms.defaults.controller = "index" routes.rooms.defaults.action = "index" routes.rooms.chains.room.type = "Zend_Controller_Router_Route_Regex" r...
stackexchange/codereview
I'm trying to compile Redis for Windows x64 with no luck. I tried different things Cygwin works perfectly but GCC produces only 32 bit executables Compling with Mingw-w64 will not work without a lot of code changes (My understanding is that MinGw does not provide POSIX compatibility for Windows) Microsoft Services for...
stackexchange/codereview
Im using arte for jquery to call a page via ajax every 10 seconds. It calls to one of my php pages, that php page queries the database and spits back html code. In that html code are some jquery calls. The problem is those calls dont work unless I include the jquery script in the php file being called. But that causes ...
stackexchange/codereview
I'm creating objects with private/public access restrictions as commonly promoted by Crockford. For example, I have something like this: var foo = (function() { var myPrivateVariable = "whatever"; return { myPublicFunction:function(str){ return str; } } }()); If...
stackexchange/codereview
How to correct the Flaw in this function class MyClass { private $_callingscript; public function __construct(){ $this->_callingscript= basename($_SERVER['SCRIPT_NAME']); } public static function Setvalue($k,$v){ if (!empty($k)) { $_SESSION[$this->_callingscript.'_'.$k]= $v...
stackexchange/codereview
Just looking for an easy answer that I can't find on Google. Simply put. Is there a way to tell when ScrollView has stopped scrolling after a fling?
stackexchange/codereview
How do I create a table with fixed header and scrolling rows in struts 2?
stackexchange/codereview
In a new app, I'm building, I want to display an html email in a table in the browser. The issue is that the html emails are changing the background color of my webpage and at times ends an html table I am using to display multiple emails. The emails usually contain full html, body, div, and table tags. A normal o...
stackexchange/codereview
Here is a snippet of my code: include("JSON.php"); $json = new Services_JSON(); $value=array('jsonrpc'=>'2.0', 'method'=>'methodname', 'params'=>array('param1',"param2"),'id'=>1); $output = $json->encode($value); print($output); $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept: application/js...
stackexchange/codereview
When two models are related to each other, Doctrine automatically generates foreign key constraints in the MySQL database beautifully. The default behaviour for onDelete and onUpdate RESTRICT, but can also be set to SET NULL or CASCADE. Now, I want to create a migration diff from an existing database compared to a YAML...
stackexchange/codereview
I have a list of textboxes as an array created using jQuery <input type="text" name="salaries[]" value="100,000"> <input type="text" name="salaries[]" value="200,000"> <input type="text" name="salaries[]" value="300,000"> <input type="text" name="salaries[]" value="400,000"> Now in C# : Request.Form["salaries[]"] give...
stackexchange/codereview
how do I check whether the scrollbar is at the beginning or end with jquery? For the beginning part i would check if $(window).scrollTop <= 0, but what should i use for the end? Thank you
stackexchange/codereview
I am using a datalist inside which I have defined an itemtemplate. I am using asp:LinkButton inside this itemtemplate. I have used an OnClick="methodname" in this linkbutton tag. I have the corresponding mehtodname defined in my code behind, However I keep getting a Java runtime error when the page loads up and when I...
stackexchange/codereview
I create an application using Coredata. I create a XML file and store all data into XML file. Then using coredata I store them into Database. Now I want to view the all records from core data. My application create a sqlite file. But if I use select command in sqlite, there is no records displayed. But it shows "no err...
stackexchange/codereview
Let's say I make a class, like, which contains a char array. Now, what operator handles this: myClass inst; cout << inst; At the "cout << inst;" what is called, by simply the class' name? Thanks.
stackexchange/codereview
I want to create a reusable component (a custom control) for the iPhone. It consists of several standard controls prearranged on a View, and then some associated code. My goals are: I want to be able to use Interface Builder to lay out the subviews in my custom control; I want to somehow package the whole thing up s...
stackexchange/codereview
I'm trying to make an iOS app. As part of the app, I want a UIScrollView to scroll every X seconds. I believe that I need to use NSTimer. Is this correct?
stackexchange/codereview
MobiStudio is an Eclipse plugin to develop mobile phone applications. The projects are written in mscript, and then need to be compiled into phone specific packages. Has anyone already tackled this? Thanks, Mike
stackexchange/codereview
I would like to do the following in Java: I have an element, and I would like to know what would be its index had it been inserted into a collection of other objects (given they're already sorted). So if I have a vector of ints like this: 1,3,5,7,9 and I had the int '2' in hand, I'd know that its 'would-be' index is i...
stackexchange/codereview
I have been trying to use the query functionality of the ItemFileReadStore to filter the list of a select widget's selectable options and it seems that my queries are having no effect on the widget. The query is being done through the onChange event of another select widget, my objective is that when one widget selects...
stackexchange/codereview
I need to produce an invoice-like document using XSL-FO. On the first page of the document, I want to display a simple and short summary table, after which I should display footnotes. If the footnotes could not all be displayed on the first page (which will happen), I want the footnotes to continue displaying on the ne...
stackexchange/codereview
I find it difficult to export classes from one project into JAR file, so that I could import it in another project. How do I try? I right-click on project in Package Explorer -> Export -> Java -> JAR file -> select all the packages I need. 'Export generated class files and resources' option is checked, other options a...
stackexchange/codereview
Kindly provide me the Android code to get the User-Agent from the Android mobile device like in J2me where we can get System information about the mobile device using the J2me API. Also , is there any list of Rdf or useragent string/ xml for the different Android devices available in the market.
stackexchange/codereview
I want to display a text box on my webpage which has a Date input mask. For example: When the user visits the page; the text box should be prefilled with dd/mm/yyyy in light grey color. He should overwrite the same using some valid date like 20/12/1990. How to accomplish this task (JQuery, JavaScript)? Any inputs would...
stackexchange/codereview
Is it 100% impossible to get the browser URL from the iframe html of an iframe that is loaded onto a separate domain? I tried javascript and it did not work. What language could I do this in? Thanks! UPDATE Thanks for the help! PHP does work. <?php if(isset($_SERVER['HTTP_REFERER'])) { echo $_SERVER['HTTP_REFERER...
stackexchange/codereview
I have a class which uses an ISet as a collection type as below: public class Client { private ISet<Contact> _contacts = new HashedSet<Contact>(); public virtual ISet<Contact> Contacts { get { return _contacts; } } } I don't want the collection itself to be able to be modified externally. However, if I c...
stackexchange/codereview
I am developing cli with python version 2.4.3. i want to have the input exception check. The following is part of the code. With this code, I can type addcd -t 11 and if I type addcd -t str_not_int or addcd -s 3 I will catch the error of wrong type argument and wrong option. However, it is not sufficient. e.g. add...
stackexchange/codereview
there are thousand of websites on the internet that have live coverage of the channels ,cricket matches.how does they do that? from where does they pick the coverage? i am asking this because i have no idea . any input will lead me to go further in the implementation i want to implement this in an asp.net website
stackexchange/codereview
I have a transparent table view (UIViewController with subview UIImageView, and another subview UITableView on top of the UIImageView sibling with background = clearColor, UITableViewCells background = clearColor). I also want taps on the cells to toggle the cell's accessoryType between checkmark and none. If I modi...
stackexchange/codereview
I have a CHAR(250) column being used as a foreign key to a varchar(24) column. In MySQL I recall that I could create an index specifying column(24) in order to create an index on the leftmost 24 characters. This doesn't appear to be possible on MS SQL Server. My question is this: Is it possible to use an indexed view ...
stackexchange/codereview
Is there a way to access the objects in the model set by a Controller on a View in Spring 2.5? I'm using a SimpleFormController but instead of using a proper Validator, I perform the checks directly into the onSubmit() method because I'm working with jQuery on the client side and I don't want the whole ViewForm (a comp...
stackexchange/codereview
This was asked in one of the interviews and i cant seem to find any clue about it. The question is: I have 40 x 20 screen, and i want to store these pixels in a byte array so that i can reconstruct this screen again from the byte array. The size of byte array is 100bytes. Another way of looking at it is. How do we sto...
stackexchange/codereview
In my application, I am using our own server for posting xml's and to parse them. My doubt is does apple allow to use it OR will they demand to take some space in the apple server and then to do all the things?
stackexchange/codereview
I am a bit new to Objective C and was wondering if there is a better way to count words in a string. ie: NSString *str = @"this is a string"; // return should be 4 words .. The way I now how to do it is by breaking the string into an array of words space (' ') character and count the array. Any advise will be appreci...
stackexchange/codereview
Example code below; function a() { var a = 123; //some stuff b(); } function b() { //some stuff } a(); So my question is whether the variable 'a' is in memory while b() is executed ? Thank you.
stackexchange/codereview
I have setup a jquery based marquee, This works perfectly fine until I have attempted to add in pausing the marquee on hover. On hover it pauses it fine, But upon resuming there is a gap after the current marquee. What would be causing this? A working example is at: http://202.78.151.195/marquee.html The javascript is ...
stackexchange/codereview
I would like to implement a custom database initialization strategy so that I can generate the database schema and apply it to an EXISTING EMPTY SQL database using a supplied User ID and Password. Unfortunately the built-in strategies don’t provide what I’m looking for: // The default strategy creates the DB only if i...
stackexchange/codereview
im in trouble with implemenetation of a service layer, i think i did not understand this concept very well. In a DAO implementation i can write all CRUD logic for a specific technology and entity (for example hibernate and User table), and in a service layer we use a DAO for all data operation for the entity in DAO (li...
stackexchange/codereview
Given a block of text, I need to parse it for the existing of a keyword. Then on the first appearance of the keyword, I need to wrap bold tags around it (if it doesn't already have them), on the second appearance of the keyword, italics, and on the third, underline. Example using the keyword "help": This is some text w...
stackexchange/codereview
I currently have a class that sets the current time when an object has been created from it. After the object has been created, I have code that goes into an infinite loop that sleeps once every second. All this is triggered by a user going to a web page (so at this point, your browser would just be waiting). Now, i...
stackexchange/codereview
Currently I'm trying to implement LINQ to SQL in my project. I'm trying to use LINQ to SQL with the famous repository pattern. here is what I was trying to do: Create table, for example customer table. Generate LINQ to SQL (.dbml) for my customer table. It generated partial Customer class complete with all the propert...
stackexchange/codereview
The program below prints each character written on standard in, but only after a new-line has been written (at least on my system!). public class Test { public static void main(String[] args) throws java.io.IOException { int c; while ((c = System.in.read()) != -1) System.out.print((char)...
stackexchange/codereview
I'm new to visual basic. I'm trying to execute .exe file from VB. But I'm not getting the output. My .exe is having command line args. Following is my code Private Sub Command1_Click() Shell "D:\FEP\extractFEPData.exe data.txt", vbNormalFocus End Sub In cmd prompt If I give command extractFEPData.exe data.txt It...
stackexchange/codereview
I am looking for a tool to send html emails from WCF Service. Currently using Chilkat to do same but in some version of outlook it is showing html emails as multiple attachments (of html file and Images). Can anyone guide for solution to above or any better tool to send html emails. Thank you!
stackexchange/codereview
I want to make two regex replacements on one string, i.e. in Java terms myString.replaceAll(pattern1, replacement1).replaceAll(pattern2, replacement2); However, suppose that myString may be very long, so it would be desirable to avoid doing two passes over it. Can this be done in single pass? String pattern = ...; St...
stackexchange/codereview
I'm new with spring framework. I'm currently building some news manager form. Here a sample of my news entity : class News { @NotNull long id; @NotNull long idAuthor; @Size(max=255) String content; } As you can see, I use JSR303 annotation validation with Spring. I want to validate my "news edi...
stackexchange/codereview
Using vim; I'm trying to add a file (a .py file) into a directory via NERDTree. I just had to browse to the directory I want to put my file in and hit "m" and then "a" to name my file into the directory. Problem is that NERDTree keeps telling me this: "NERDTree: Node Not Created." which means that the file was not crea...
stackexchange/codereview
I'm trying to switch between 2 templates on the basis of a data trigger. But I app crashes with the "Object reference not set to an instance of an object." If I comment out the setter for the template it runs fine. Here's my XAML: <Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}"> <Setter Prop...
stackexchange/codereview
i have a form, that consist of: <input type="text" id="model"> <input type="text" id="serial"> <input type="text" id="lot_no"> <select id="line"> beside that i have data in settingdata table: Model Serial Lot_no Line abc 0001 012a 1 abc 0101 022a 1 i want if i type...
stackexchange/codereview
I am using this code for importing encrypted excel into access 2007: xlApp.Workbooks.Open FileName:=dlgOpen.SelectedItems(i), PASSWORD:=strPasswd It works nicely if I give the correct password, or nothing (I'll prompt user to enter the password again for they give a blank password), but not for wrong password, Access ...
stackexchange/codereview
I am trying to run a stored procedure that has multiple in and out parameters. The procedure can only be viewed in my Connections panel by navigating Other Users | <user> | Packages | <package> | <procedure> If I right click , the menu items are "Order Members By..." and "Create Unit Test" (greyed out). The ability to...
stackexchange/codereview
I have an API which which provides authentication via a signed response to a random chalange. Server sends a random string to the client, the client signs this data using a previously established key pair and then sends this data back to the server. I need the format of the signature to be something roughly equivalen...
stackexchange/codereview
Getting the (hex) error code from an IOException, or regular Exception! Is this possible? i know it HAS a error code, (HResult) but the get accessor is private. I would do some sort of ComException thing, but im not sure about the pros/cons of doing this, and if its even possible/the same.
stackexchange/codereview
Some of Apple's obj-c API's still use C functions, e.g.: -(NSArray * ) sortedArrayUsingFunction: (NSInteger (*)(id, id, void *))comparator context:(void *)context ...which is great, except I'm struggling to see how you can store fn-pointers inside ObjC classes. e.g. to share the same "sort" function in different pa...
stackexchange/codereview
I have enum say ErrorCodes that public enum ErrorCodes { INVALID_LOGIN(100), INVALID_PASSWORD(101), SESSION_EXPIRED(102) ...; private int errorCode; private ErrorCodes(int error){ this.errorCode = error; } //setter and getter and other codes } now I check m...
stackexchange/codereview
I have a grid, and in the grid I am setting my first element to be focused: <Grid FocusManager.FocusedElement="{Binding ElementName=companyNameField}"> When the window opens, the correct control is focused. But if I tab through the whole form, when the above focused field, should have the focus, there is no cursor evi...
stackexchange/codereview
My app. is in C# 3.5 and MySQL 5.1. It is a Windows based standalone application. It is running successfully since last two years except few issues and that too were later found out to be MySQL bugs. The bug disturbed the real-time reports as it store the same timestamp in two rows. I don't know whether MySQL fixed it ...
stackexchange/codereview
I am trying to use Bluetooth SPP to communicate over it. In some Android phones, SPP profile is not activated. I faced the problem in the application that SPP was not activated and so the connection could not be established over bluetooth and when I started another app that is 3g hotspot which I think activates SPP and...
stackexchange/codereview
Im a bit stumped on how to make a string uppercase in php while not making the markup uppercase. So for example: <p>Chicken &amp; <a href="/cheese">cheese</a></p> Will become <p>CHICKEN &amp; <a href="/cheese">CHEESE</a></p> Any advice appreciated, thanks!
stackexchange/codereview
I'm creating an h:form within a cycle, and I'd like each form to have a hidden input with the value taken from the cycle's variable. Like so: <ui:repeat value="#{controller.elements}" var="element"> <h:form> <h:inputHidden value="#{element.value}"/> <!-- Taken from element.value, but submitted to controller...
stackexchange/codereview
i need to get a difference of two dates ,one date from a table and one the current date, and the difference should be less than 9 0days. i need to use this as filter in where clause of the linq i tried doing this var list = from p in context.persons where ((p.CreateDT).Subtract(DateTime.Now).Days < 90) ...
stackexchange/codereview
I'd like to be able to invoke the find button on the search dialog when the "Enter/Return" key is pressed. Unfortunately the 'savekey' option doesn't submit the form and the same way it does in the edit and add Form Editing. Here's a snippet of the code I'm using. $("#list").jqGrid('navGrid', '#pager', {edit: tru...
stackexchange/codereview
Example: I need to manage users in a website,'manage' means: register and allow them to send comments. user registration will use: username, email, password and user_id comments will have: date, link, text and user_id Now, I have several projects with similar structure - give or take a table/field or two.. I hate writi...
stackexchange/codereview
I don't understand what I'm doing wrong here... line 3 is reporting missing : after property ID $(document).ready(function() { $('#imagegallery img').each(function({$(this).css({ width: '100%'});}); $('#imagegallery').cycle({ timeout: 0, fx: 'scrollHorz', width: '100%', height:...
stackexchange/codereview
I'm using php with mysql Hello I have a couple of tables with information about books. One table is like this id, bookTitle, BookText The other is like this id, bookid, amountofsales I would like to search the text of the book, and the book title from one table, but also be able to include amountofsales from the other ...
stackexchange/codereview
I've calculated the range of projection with given angle, height and velocity. How can you draw a projection curve of that using GDI?
stackexchange/codereview
Given the following database table: WORDS alphagram....varchar(15) word.........varchar(15) PK length.......int Where: 'alphagram' is the letters of a word in alphabetical order (e.g. AEINNRTT is the alphagram of INTRANET) the primary key is 'word', and there are indexes on alphagram and length I've found a way ...
stackexchange/codereview
I currently have the android sdk running with eclipse. It happens to be that I also want to download stanford's customized version of eclipse in order to learn some other stuff. Will there be a problem downloading and installing this customized version if I already another version of eclipse installed on my computer?
stackexchange/codereview
i am using a tree with an array collection, i have tried to run busy cursor on expandItem but now i dont know were to stop it when the tree finishes loading children,
stackexchange/codereview
I'm trying to connect a browser extension (Firefox, Chrome, IE...) with an external application. Using a non-polling system to notify the messages between the components. I've already seen several approaches, but I'm not sure which ones are possible and which ones are the best. One solution could be trying to use a IPC...
stackexchange/codereview
my treeview consists of the newslines with dates. The user can filter by specifing "today", under 1 week", "under 1 month", etc to make Treeview's list shorter or longer. For shorter list, I can remove the older lines that have no child nodes. I am struggling to find the method how to remove or hide the older lines wi...
stackexchange/codereview
I am trying to add a global shortcut to a gtk.MenuItem which has a sub menu. Here is my code: import pygtk, gtk import keybinder dlg = gtk.Dialog('menu test') dlg.set_size_request(200, 40) menubar = gtk.MenuBar() menubar.show() menuitem = gtk.MenuItem('foo') menuitem.show() menubar.append(menuitem) mitem = gtk.MenuI...
stackexchange/codereview
I have the following files structure: temp main index.php a.php b.php Here are the files; index.php echo "index.php ---> " . __DIR__ . "<br />"; require('../a.php'); echo "OK<br />" a.php echo "a.php ---> " . __DIR__ . "<br />"; require('./b.php'); echo "a is here<br />" b.php echo "b is here...
stackexchange/codereview
I have one class named investmentdetails. I created two different controls for displaying separate data (properties) from same class. Is it possible? If yes then how?
stackexchange/codereview
I have web project and window project.Web project reference from window project and I want to debug from web project to source code in window project. Where do I setup to look for debug source code in window project. I copied all source code from another computer. but on another computer can debug just fine.All that di...
stackexchange/codereview
Is it possible to take a Drupal site offline using Drush?
stackexchange/codereview
I want to change the text color of an anchor link that sits in a table cell on a hover. However, the change I wrote in my CSS file to accomplish this, doesn't seem to work. Could someone suggest what I might be doing incorrectly? This is what I have in my CSS file: td:hover { text-align: center; background:whi...
stackexchange/codereview