I have a so-called signal_table in Oracle 11G which has the columns below: signal_type VarChar(2) signal_time VarChar(2) signal_time has a format HH24:MI:SS (e.g. "15:35:30"), which means that an application fires this type of signal at 15:35:30 every day. Now, I am trying to write a query which lists up all the signals that are due to be fired in 30 seconds from now. I tried something like select signal_type, signal_time, from signal_table where to_number(to_char(substr(signal_time,1,2)))*3600 + to_number(to_char(substr(signal_time,4,2)))*60 + to_number(to_char(substr(signal_time,7,2))) - to_
I am using SSRS 2008. I have 3 different groups above my report details that are calculated sums. I am trying to color the limit red if any of the invoice sums(A) in a child group is above the limit(B). I am currently using this expression, but it is only looking at the first or last invoice amount. The limit report item is in a parent group just above the invoice's group. =IIF(ReportItems!Invoice_DueDate.Value>ReportItems!Limit.Value,"Red","Black") My Solution: I decided to use SQL to get the sum of the invoice amount grouped by due date. I then called that field in the parent group.
Hello fellow Stackoverflowers. I have an issue that i need some help with: We're making an http GET web service call from a smartphone app to a Java/Spring MVC application. We're on a Tomcat application server that is fronted by an Apache server with a mod_proxy proxy setup. One of the parameters imbedded in the URL is the word "Männen", which is the organization name that's one of the parameters. The app makes a Jquery Ajax GET request and the parameter leaves the app as "M%E4nnen", which to my understanding means the "ä" has been properly URL-encoded. When it arrives to the Spring controller
Can someone explain why when creating meta boxes the callback needs the post id to be passed via $post->ID, however with the action hook 'save_post', the function can pass $post_id. A general explanation of when to use which one would help clear up some issues I've been having, thanks. ex: function show_custom_meta_box($post) { $meta = get_post_meta($post->ID, 'custom_meta_class', true); // Use nonce for verification echo '<input type="hidden" name="custom_meta_box_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />'; // Begin the field table and loop echo '<table class="form-table">'; e
How would you go about having a where condition in an association? Since it's returning a CollectionProxy which there's barely any information, even in the DOCS, about it. I can't figure out what to do, why wouldn't something like this work? @new_notifications = self.notifications.where({:seen => false}) Figured it out! For some reason, passing a hash into the where statement was the problem. This works: @notifs = self.notifications.where(:seen = false)
I create new theme in Magento and want to show latest or new products on home page with pagination and number of show product. I copied catalog/product/list.phtml from it's cored file to my template so that i can customize it. Below is code in layout update in homepage: <reference name="content"> <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> <action method="setCategoryId"><category_id>3</category_id></action> <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> <block type="page/htm
Problem I need to give some priority for scrolling events in my Activity. I'm using aiCharts (charts library) and I need to zoom, pan, etc. on my areas. Without any ScrollViews it works fine, but, if I use the mentioned Layout, these features works bad. I think because of priority of views. Possible solution I tried to use setOverScrollMode(View.OVER_SCROLL_ALWAYS); on views that need to be on "top" of ScrollView and HorizontalScrollView but doesn't work properly. Layout <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <HorizontalScrollView android:layout_w
Consider following code: a=(1 2 3) a='seven' export a declare -p a The output (from declare) is: declare -ax a='([0]="seven" [1]="2" [2]="3")' So a is an array. Questions: How to change second line, so a will not be an array anymore, but a simple variable with the value seven? I'm looking for a one-liner, without unset etc. Assigning an variable to the array replaces only first element, not the whole array. Where is this behaviour specified? Note: Bash v. 3.2.48 (OS X). (I've answered this question today, which got me thinking on this problem, and I'm looking for a cleaner solution). Edit: I'm
I am developing a Chrome extension to capture the Authentication information. I want to get the HTTP Authorization Header. I tried the Chrome API webRequest.onSendHeaders, but it didn't work following is my code: /***************onsendHeaders*************/ chrome.webRequest.onSendHeaders.addListener(function(details) { console.log(details.url, details.requestHeaders); for(var i = 0; i < details.requestHeaders.length;i++) { var header = details.requestHeaders[i]; if(header.name.toLowerCase() == "authorization") { alert("AUTH!"); /*Never get alert when I login to websites*/ } } }, {"urls":["*://
Been encountering this error "System error 64 - the specified network name is no longer available" in one of my windows batch script while trying to NET USE \server\drive\folder to connect to a network folder. However, when I re-run the script, the Net Use command executed successfully and is able to map to the network folder. These issue seems to happen only on the first run, as subsequent re-run were able to complete successfully. The code that cause the err: net use \\qserver\adrive\RAG\SQR /persistent:yes System error 64 has occurred. The specified network name is no longer available. Anyo
https://github.com/joeyrobert/bloomfilter uses Random class for the hash function which is a performance killer. What I'm trying to do is input the class with byte[]s instead of a generic argument(T) and get rid of private int Hash(T item) { return item.GetHashCode(); } I know there is a huge performance benefit but I have no idea how to replace _random.Next(_bitSize) here: #region Public Methods /// <summary> /// Adds an item to the bloom filter. /// </summary> /// <param name="item">Item to be added</param> public void Add(T item) { _random = new Random(Hash(item)); for (int i = 0; i < _numb
I have just finish installation of OTRS-3.2.10-02.noarch.rpm and now I am trying to connect it to Windows Server 2003 SP2 based Active Directory (LDAP). Here is the contents of my configuration (from /opt/otrs/Kernel/Config.pm): # -- # Kernel/Config.pm - Config file for OTRS kernel # Copyright (C) 2001-2013 OTRS AG, http://otrs.org/ # -- # This software comes with ABSOLUTELY NO WARRANTY. For details, see # the enclosed file COPYING for license information (AGPL). If you # did not receive this file, see http://www.gnu.org/licenses/agpl.txt. # -- # Note: # # -->> Most OTRS configuration should b
Given a list, is there a way to get the first non-None value? And, if so, what would be the pythonic way to do so? For example, I have: a = objA.addreses.country.code b = objB.country.code c = None d = 'CA' In this case, if a is None, then I would like to get b. If a and b are both None, the I would like to get d. Currently I am doing something along the lines of (((a or b) or c) or d), is there another way?
I have a question about using ADB. I know that this command: adb shell dumpsys activity can show me all the activities that are currently running on the device. But I notice that sometimes, the intents appear like this: Intent { ...some_intent/activity_name.... (has extras) } I know that extras mean that the activity has been started with some sort of parameters passed to it (I may be wrong here, please correct me if I am). So my question is, how can I get the extras of the intent/activity through ADB ? The reason I need this is because I'm trying to launch an apk (that is installed on the pho
Actually mine is Wowza behind. It comes out with following streams for my Application: http://.................../mychannel/playlist.m3u8 rtmp://.................../mychannel&streamType=live rtsp://.................../mychannel http://.................../mychannel/Manifest I am fine with using native HTML5 Video Tag for HTTP, Flash Embed for RTMP, and direct RTSP link for RTSP Streams. (Manifest/Smooth is ignored as i still don't know how to play/setup with Silverlight) But how can i properly setup this streams all together in one pure Player? Like FlowPlayer or JWPlayer Thanks & appreciate so
I have an array variable like this $data[code] = "xyz123"; $data[type] = "train"; and the query I write in the model is like this: $this->db->select('*'); $this->db->from('table1'); $this->db->join('table2', 'table2.id = table1.id'); $this->db->select('table3', 'table3.id = table1.id AND table1.code LIKE $data[code] AND table1.type LIKE $data[type]'); When I try, it's not working and I think the syntax with AND and LIKE is wrong. How should I change my model method?
I know we can manually enable or disable 8.3 short path name support by setting NtfsDisable8dot3NameCreation. But how do I read this system information through code? I have to disable some functionality based on whether the system has 8.3 enabled or not.
I recently installed the springsource tool suite plugin for eclipse, running on windows 7. But when I open a command prompt (by typing cmd in the windows start menu) and type in: mvn --version I get the following response: 'mvn' is not recognized as an internal or external command, operable program, or batch file. So I then downloaded the stand-alone version of springsource tool suite, which is not what I want. And nonetheless, I still get the same response on the command line when I type in mvn --version. Can anyone tell me how to fix this problem? I get the same response when I type in java
The scenario: Word documents that contain a selection of sentences (strings). There might be up to 30 possible strings (which vary from 5 to 20 words in length). The document will contain only a selection of these strings. Aim: Macro that searches through the document, finds each occurrence of a particular string and inserts a specific text code (such as " (ACWD2553)") after each occurrence. This is repeated for all the other strings in the set, with each different string having it's own distinct code. Some strings won't be in the document. The strings can be located in document body and table
I have 3 tables, restaurants, orders, users. orders table has fields restaurant_id, status and user_id. restaurant -> hasMany orders orders belogsTo Restaurant orders belongsTo users I need to find only those restaurants that have order with status = 1, and at the same time need to fetch user's info. So, I am making inner join with orders table, $options['joins'] = array( array('table' => 'orders', 'alias' => 'Order', 'type' => 'INNER', 'conditions' => array( 'Restaurant.id = Order.restaurant_id', ) ) ); But how Can I also get users' information along with this, because according to cake docum
I have some client side script in an ASPX file that enables or disables a required field validator based on whether the form field is visible or not. var oVal1 = document.getElementById(v1); var oVal2 = document.getElementById(v2); ValidatorEnable(oVal1, true); ValidatorEnable(oVal2, false); When I alert the enabled properties of oVal1 and oVal2, they show the correct settings for this condition - oVal1 is enabled, oVal2 is disabled. The problem is the validators are ALWAYS firing. I need to selectively disable one since the field isn't visible, it's not required in this case.
I am working on a Win 7-64 bit machine. I have a software installation package which contains the .msi file, a CAB file and some MST files. I wanted to modify the cabinet file. So I extracted the cab file using CABARC utility. But before making any changes to the extracted files, just for testing the utility I removed the original cab file from the current directory. And created a new cab file from the files extracted from the original cab file, again using CABARC utility. But now if I run the .msi file, it shows the error: ERROR:1334. The file "XYZ" cannot be installed because the file cannot
I have been looking for some time now for a solution to my sticky sidebar problem. I have a specific idea of how I would like it to act; effectively, I would like it to stick to the bottom as you scroll down, and then as soon as you scroll back up I would like it to stick to the top, in a fluid motion (no jumping). I am unable to find an example of what I am trying to achieve, so I have created an image that I hope will illustrate the point clearer: Sidebar sits under the header. As you scroll down the sidebar remains level with the content of the page so that you can scroll through both sideb
I currently have a WordPress site installed where users can book a tour of our facility (we are a university). I have used the ContactForm7 plugin to create a form within a page where visitors can enter their contact information and then can use a datepicker field to select the specific date that they want to take their tour on. My question is (I've searched high and low for a solution to this but to no avail) is there a way that I can disable or block specific dates from being selected in this datepicker field in the form? For example, there are a number of days when tours are not available (
I am using forms 6i with 10g. To call a form, I am using following code call_form('frmtemp.fmx',no_hide); window properties of form being called are as follow window style = dialog Modal = No If I call any form with a command button, it works fine, and no 2nd form can be displayed before existing first form , but when form is called from menu with same code, we can call other forms. What I need is, if I called one form from menu, no other form can be displayed. regards.
I am using MVC extensions for Kendo UI editor. Is there an option to set the minimum and maximum number of characters excluding the HTML content. I used StringLength attribute but that includes the HTML content.
I'm trying to read data from a BLE device but keep getting permission error. Demo project can be found here: https://github.com/sergiomtzlosa/CoreBluetooth-Demo (keep in mind - my codes are a bit different than this one). No problem with connection and reading value in general but there are some characteristics (which are essential) give permission error. Console log: Update error!!! Characteristic: "Unknown (< fff4 >)" with error: "Reading is not permitted". So, when I subscribe or read data from that characteristic, it sends me NULL everytime (probable reason: no read permission). Console lo
I was trying to develop a webservice client using spring webservicetemplate. I am newbee to both spring and webservices. I am badly struck with this error. I am getting soap fault with the below exception, if i remove the handler from the marshallandsend call it gives me 404 Not found error : org.springframework.ws.soap.client.SoapFaultClientException: 400200 at com.xaptum.commandrouter.CheckTest.theSoapActionName(CheckTest.java:99) at com.xaptum.router.SendSmsTest.main(SendSmsTest.java:126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.
My laravel installation was working fine yesterday but today I get the following error: Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Does anyone know where I am going wrong?
I'm not sure if this is possible ... but I'd like to use the autoComplete component, where the value attribute is of type String and where the completeMethod returns a List of some heavy object. It is also a requirement for me to use forceSelection="false" This is what I think should work (but doesn't): <p:autoComplete id="it_demandeur" value="#{utilisateurDemandeurCtrl.critereRechercheDemandeur}" var="demandeurItem" itemLabel="#{demandeurItem ne null ? demandeurItem.numeroOW.toString().concat(' - ').concat(demandeurItem.nom) : ''}" itemValue="#{demandeurItem.nom}" completeMethod="#{utilisateu