I want cell A1 to be a drop down menu (which I know how to do), and then cell B1 to be a drop down menu based off that initial selection. Example: If I select in A1 "Entertainment," in B1 I want a drop down menu that lets me select "Movies, Music, Sport". But if I select in A1 "Food," in B1 I want a drop down menu with "Dairy, Veggies, Fruit, Meat" etc. I know basic coding, but I'm mostly looking to use Excel's capabilities. Thanks! - Laura
I need to access some image file from my PC of any other PC in local. I have IP address of the server PC. I need to access the file (eg:img.png) at the server using http, Like http://192.168.1.30/home/user/img.png. So for accessing file from server do I need to install web server at the server side ?. And what are the procedure I have to follow on the server side?. I want to do this in Linux. Thanks in advance.......
I have an integer array like this : arr[20,120,111,215,54,78]; I need a function taking an array as its argument and returning the second largest element of that array.
When profiling code at the the assembly instruction level, what does the position of the instruction pointer really mean given that modern CPUs don't execute instructions serially or in-order? For example, assume the following x64 assembly code: mov RAX, [RBX]; // Assume a cache miss here. mov RSI, [RBX + RCX]; // Another cache miss. xor R8, R8; add RDX, RAX; // Dependent on the load into RAX. add RDI, RSI; // Dependent on the load into RSI. Which instruction will the instruction pointer spend most of its time on? I can think of good arguments for all of them: mov RAX, [RBX] is taking probably
Is there any way to get gfortran to reject the Fortran 95 additions to Fortran 77? I've tried using the -std=legacy flag but that only seems to remove deprecation warnings from f77 programs; the f95 enhancements still work fine.
Trying to find the documentation for the YouTube Content partner API. I am a content partner and I'm working with a developer to create a system, we're able to make content owner report calls on the analytics API, so I know my authentication works and I'm allowed to view and turn on the Content Partner API in the API console. I really need to do the following: "The YouTube Content Partner API allows the management of YouTube assets along with their associated content, references, ownership, rights and policies." but when I click through to Learn more the URL https://developers.google.com/youtu
I have multiselect picklist and I want to get selected values for insert and update operation. <apex:page standardController="Change_Request__c" sidebar="false" extensions="Change_RequestController"> <apex:selectList label="Select Pasenger(s)" value="{!Change_Request__c.Passenger_Name__c}" multiselect="true" onfocus="getSelectedID('{!$Component.empid}');" > <apex:selectOptions value="{!pax}" /> </apex:selectList> And this is my extension: public class Change_RequestController { private final Change_Request__c changer; public List<selectOption> pax; public Change_RequestController(ApexPages.Sta
I have an web application that when an user clicks on a button it prints an .rdlc directly to the printer without the Print Dialog box. This works fine when I run it local, but when I uploaded it to the intranet is not working at all. Can someone explain how to make this work in the intranet? UPDATE private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek) { Stream stream = new MemoryStream(); m_streams.Add(stream); return stream; } private void Export(LocalReport report) { string deviceInfo = "<DeviceInfo>" + " <OutputFormat>EMF</Out
As we all know, there's list comprehension, like [i for i in [1, 2, 3, 4]] and there is dictionary comprehension, like {i:j for i, j in {1: 'a', 2: 'b'}.items()} but (i for i in (1, 2, 3)) will end up in a generator, not a tuple comprehension. Why is that? My guess is that a tuple is immutable, but this does not seem to be the answer.
Advanced thanks to anyone who is stopping by to read this. Here's my scenario: SCENARIO OS is w7px64. I have not worked with .bat files before, but have some familiarity with cmd. I've created a successful .bat file with several dozen commands, modifying processes, services, scheduled tasks, and power schemes (using commands such as SC, net stop, schtasks, powercfg, etc.). I will always launch the .bat by double-clicking in Windows Explorer (will never initiate launch from within CMD itself). The file ends with a pause command, to keep cmd window open after completion of all tasks, enabling me
I want to get response time when I use urllib. I made below code, but it is more than response time. Can I get the time using urllib or have any other method? import urllib import datetime def main(): urllist = [ "http://google.com", ] for url in urllist: opener = urllib.FancyURLopener({}) try: start = datetime.datetime.now() f = opener.open(url) end = datetime.datetime.now() diff = end - start print int(round(diff.microseconds / 1000)) except IOError, e: print 'error', url else: print f.getcode(), f.geturl() if __name__ == "__main__": main()
I have a project with Hibernate.I tried to read the configuration file hibernate.cfg and got this error: Error creando una factoria de session.org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com/david/Categoria"/> jun 04, 2013 10:19:26 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: El Servlet.service() para el servlet [ControladorLibros] en el contexto con ruta [/App01HTML] lanzó la excepción [La ejecución del Servlet lanzó una excepción] con causa raíz org.hibernate.MappingException: An AnnotationConfiguration instance is
We have hosted our website with external agency, in the Linux environment. Now we have added cookies in our website code and want to track cookie in access.log. when we requested with our domain host provider they turn down the request to modify apache2.config file, instead they suggested to use .htaccess file to enable cookie in access.log. Right now we do not want to use any other method to log cookie other than .htaccess file. We did not find any solutions to enable cookie in access.log using .htaccess file. We need following questions to be answered. Is it possible to use .htaccess file to
I can update SVN well, but when I try to commit, I'm getting the following error: Error while performing action: Commit failed (details follow): Server sent unexpected return value (500 Internal Server Error) in response to PUT request for '/svn/!svn/wrk/89ff070d-5fb0-4a77-9609-0fd87964d712/project/trunk/templates/operator/default/settings.tpl' Any idea why I can't commit? Other team members can commit without trouble.
I want to change the use of Ctrl to Spacebar for three commands in a game but not for everything because then I can't use Spacebar to communicate. The normal commands are Ctrl+Q, Ctrl+W, Ctrl+E, Ctrl+R and Ctrl+RMB. I'm using Space::Ctrl with no result. The code below sent the keys how I wanted, but each shortcut triggered all shortcuts that followed. For example Spacebar+E triggers Spacebar+E, Spacebar+R and Spacebar. Also Spacebar still didn't work. I added Space::Space and can get a text space only by using the Spacebar+Q, W, E or R. SendMode Input SetKeyDelay ,0,30 #IfWinActive ahk_class R
I have been following a tutorial on YouTube for Java using Eclipse. Currently I am trying to multiply two doubles and output the result as a double using JOptionPane.showMessageDialog but it is giving me an error. Here is my code: import javax.swing.JOptionPane; public class Variables { public static void main(String arg[]) { double length = 3; double width = 2; double area = length*width; JOptionPane myIO = new JOptionPane(); myIO.showMessageDialog(null, area); } } and the error: Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method showMessageDialog(Component
The following code fails although I have the gtk bindings for python installed. This is a debian machine and I have the package named python-gtk2 installed >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gtk How can I fix this? Edit1: Per comment request: Python 2.7.3rc2 (default, May 22 2012, 01:05:47) Edit2: Per comment request: >>> print sys.path ['', '/home/lorb', '/usr/lib/python2.7/dist-packages', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/l
I have a set of data file that looks like below. I would like to get the interpolation final value (final,P) by referring to 2 sets of number range (scoreA and scoreB). Let's say for "Eric", his scoreA is 35 (value between range 30.00 - 40.00) and scoreB is 48 (a value between range 45.00 - 50.00). He will get 2 sets of final values range which are (22.88,40.90) & (26.99,38.99). And, I would like to get the final value of "Eric" and "George" in the data file. "George"'s scoreA = 38 and scoreB = 26. After formula calculation, I want to get the exact final value when his scoreA=35 & scoreB=45. L
If I am on a local branch that is not tracking any remote branch and I give the command git fetch Given I have several remotes defined in $GIT_DIR/config, from which remote is the fetch done? I tried to find out from the man page, but this point is unclear to me. Additionally: How can I change this default remote without making the local branch tracking?
I had some problems with my video blog. The preview of my video on Google is the default preview of videos. Even if the video last 1:20, Google shows that it lasts 0:20. Is it possible to modify it ? Best regards, Brunner Nathan
I have an app which uses AVFoundation and tracks the face, eyes, and mouth position. I use the CIFaceFeature to detect these and mark them on the screen. Is there a simple way to detect a wink using the framework?
This is a fairly general query as I'm very confused about how to do this. I want to use the apache server which I have downloaded as part of XAMPP in order to test the website I am building, which will use php and mysql. The general question is: how do I do this? As far as I understand it, the files go into C:\xampp\htdocs, which can then be accessed via localhost. What confuses me though is that the XAMPP admin stuff is also located here - so, for instance, I can't replace the file index.php without losing access to phpMyAdmin and so on. Do I have to create a new folder for the website within
I'm trying to auto size the columns of my sheet. I'm writing the file and in the end I try to resize all of my columns. // Add some data $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('B1', 'test1111111111111111111111') ->setCellValue('C1', 'test1111111111111') ->setCellValue('D1', 'test1111111') ->setCellValue('E1', 'test11111') ->setCellValue('F1', 'test1') ->setCellValue('G1', 'test1'); foreach($objPHPExcel->getActiveSheet()->getColumnDimension() as $col) { $col->setAutoSize(true); } $objPHPExcel->getActiveSheet()->calculateColumnWidths(); The above code doesn't work. Doesn't change th
I have tried to write a regular expression for the line below, but I was unsuccessful: Exp: "APStress_May-15---11.20.3_UIlog". In the above example, APStress and UIlog will be fixed, and the rest of it will be changed, i.e.: Month ->May, date -> 15, Hour -> 11, Minute ->20, Seconds ->3 I am writing a script for analyzing log files. For that, I have to choose this particular file among others.
I have a problem very similar to these: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo java.lang.ClassNotFoundException : com.sun.faces.config.ConfigureListener Error with Jboss while deploying a jsp/servlet web app "com.sun.faces.config.ConfigureListener" Error I've managed to find a workaround but still not solved the issue. When I deploy my application to Tomcat 7.0.34 which is configured in Eclipse Juno Service Release 1 (Build id: 20120920-0800) I get: INFO: Starting Servlet Engine: Apache Tomcat/7.0.34 maj 22, 2013 5:10:34
I'm receiving the following error while autoloading a library named 'phpass' as follows. An Error Was Encountered Unable to load the requested class: Phpass Code to autoload the library $autoload['libraries'] = array('database', 'phpass'); The phpass.php file resides in the application/libraries folder, and the class is declared as class phpass meaning that the issue cannot be related to capitalisation or the file path as suggested in the majority of other answers I have come across. Please can you tell me what I am missing? It works perfectly in MAMP, however, when uploading to my Linux Ubunt
In machine A for some reason I get a bunch of: ==21855== Invalid read of size 4 ==21855== at 0x422A26F: ??? (in /lib/i686/cmov/libc-2.11.3.so) ==21855== by 0x4216E2F: vsnprintf (in /lib/i686/cmov/libc-2.11.3.so) ==21855== by 0x41FE421: snprintf (in /lib/i686/cmov/libc-2.11.3.so) ==21855== by 0x804F95B: put_lines (lines.c:354) ==21855== by 0x805076B: examine_lines (lines.c:658) ==21855== by 0x80509D8: read_lines (lines.c:715) ==21855== by 0x804EED0: main (app.c:564) ==21855== Address 0x444230c is 12 bytes inside a block of size 13 alloc'd ==21855== at 0x40255BC: malloc (vg_replace_malloc.c:270)