if don't have error submit form
◷
تاریخ انتشار: 1395/2/11 | ساعت: 23:42
Vote count: 0 public function Link() { $id=$this->params['id']; $url=$this->params['url']; $dviId=$this->params['divId']; $url=Yii::$app->urlManager->createAbsoluteUrl($url); $js2="$('#".$id."').on('click', function() { $.ajax({url: '".$url."',type: 'POST',success : function(res){ $('#".$dviId."').h...
Mail all users in my database
◷
تاریخ انتشار: 1395/2/11 | ساعت: 23:42
Vote count: 0 So im trying to make a script so i can mail all users in my database mailing them about updates etc the problem i have i can send a email to one user but not muti would this work? $sql = 'SELECT email FROM users ORDER BY id'; foreach ($db->query($sql) as $row) { $to = $_row['email']; $...
Combining a Vector
◷
تاریخ انتشار: 1395/2/11 | ساعت: 23:42
Vote count: 0 I have a data frame (called honey) that looks like: Importer year tons USD Japan 2010 523 776 Thailand 2010 1095 975 Singapore 2010 1 2 ... I want to parse out the distinct countries, and add one to the list in my code. unique(honey$Importer) Retu s the expected result; a list of 8 cou...
Why does this block my PHP code?
◷
تاریخ انتشار: 1395/2/11 | ساعت: 22:19
Vote count: -3 The query is $q1 = "SELECT * from `event` ORDER BY `upload_date` DESC"; This is the function function display_content($r, $dis){ foreach($r as $part) { $dis .= '<br /><div id="event_box">'; $dis .= '<div id="event_name"><a href = " http://'.$part['link'].'" target="_blank"> '.$part['n...
how to add protractor locator for add click function in this menu
◷
تاریخ انتشار: 1395/2/11 | ساعت: 22:19
Vote count: -1 I have two menus 'Setup' and 'Reports' with submenus 'admin users','Reports dashboard','partner dashboard','partner relationship' etc marked with red color. I want to navigate or click using protractor locators but unable to find how to select these menus that have no id and common cs...
Visual studio Team foundation corrupted file
◷
تاریخ انتشار: 1395/2/11 | ساعت: 22:19
Vote count: 0 My machine crashed in the midst of a Team Foundation sync, and now when I try to commit changes, or change branches in my solution, I get the error: An error occurred. Detailed message: Invalid data in index - incorrect header signature How can I get my commits/sync working again? edit...
Where to instantiate a New List?
◷
تاریخ انتشار: 1395/2/11 | ساعت: 20:35
Vote count: 0 I have the following model in my Asp.Net Mvc project. When a new object is created, a new list of both Options and Foto's is also created so that you can simply add new Options and Pictures to the object. public class VehicleModels { [Key] public virtual int Id { get; set; } public vir...
Adding dependencies to a custom gradle plugin
◷
تاریخ انتشار: 1395/2/11 | ساعت: 20:35
Vote count: 0 I'm creating a gradle plugin that uses gson, but when I use the plugin at my client it throws this java.lang.NoClassDefFoundError: com/google/gson/Gson I expect I am linking my dependencies in the plugin in a wrong way, but i'm not quite sure so any help would be great. The build.gradl...
Date & Time Picker Native on Phone, Works on Desktop with Multi Browser support
◷
تاریخ انتشار: 1395/2/11 | ساعت: 20:35
Vote count: 0 I have now spent 2 hrs looking into how to implement a date and time picker that works as follows: Detects device If Phone / Tablet, then allow for native pickers If PC then generate one which works across browsers I have never done this before (I have used datepickers for just dates) ...
System.Windows.Markup.XamlParseException in Windows xp SP2
◷
تاریخ انتشار: 1395/2/11 | ساعت: 19:28
Vote count: 0 We have created a WPF application using .NET4 and VS2010. The application is getting successfully installed. When trying to launch the application we are getting an error as mentioned below in the Event Viewer of the Machine: Description: The process was terminated due to an unhandled ...
Rails + MongoDB + Set scope for only_name in User Model
◷
تاریخ انتشار: 1395/2/11 | ساعت: 19:28
Vote count: 0 In Rails Project, I am trying to set few columns of table in select statement for mongodb but I am not able to find those values. Model - User Columns :- _id, name, age, address, city, ... scope :only_name, select("id, name") But giving error for User.only_name wrong argument type Stri...
C++ Template Variadic - Call a member function once for every template argument
◷
تاریخ انتشار: 1395/2/11 | ساعت: 19:28
Vote count: 0 I have an EntityComponent-System and there's one component which should call functions on various other components. For this example here I've chosen a simple combination of the results of a boolean function. The ResultCombinerComponent has variadic template arguments and for each of t...
How to pass values to another php
◷
تاریخ انتشار: 1395/2/11 | ساعت: 18:26
Vote count: 0 <?php $sql="select * from $dbname.product_details"; $result=mysql_query($sql); if (! $result) { # code... die("invalid query to server"); } if (mysql_num_rows($result) > 0) { # code... while ($row=mysql_fetch_assoc($result)) { # code... echo "**<big><b><a href='productpage.php'>".$row[...
Python - Code keeps returning an unwanted "None" statement
◷
تاریخ انتشار: 1395/2/11 | ساعت: 18:26
Vote count: 0 My code below is retu ing an unwanted "None" statement. I have searched other questions in hopes to find a solution but I cant seem to figure it out. Any help would be appreciated. def int_mult(no1,no2): try: no3 = int(no1) no3 = int(no2) except ValueError: retu print("Error: Invalid A...
Remove Link from author and date meta on Homepage of WordPress blog
◷
تاریخ انتشار: 1395/2/11 | ساعت: 18:26
Vote count: 0 On my blog homepage, Author and date meta (Author name and date) are in link form. I want to show them only in text. When I tried to remove the link the text is also removed. Kindly help me to remove the link. Codes of display.php are if (!function_exists('swift_meta_generator')): /** ...
looking for metrics and tool to estimate process cpu usage from command line
◷
تاریخ انتشار: 1395/2/11 | ساعت: 16:02
Vote count: 0 I'm trying to get an estimate of the total cpu ressource usage of a process. The idea is to track ameliorations in programs through the careful monitoring of each test timing before and after a commit (for instance) and retrieve only a meaningful metric highlighting a measurable differ...
multiple tabs in one asp.net page with dataBase
◷
تاریخ انتشار: 1395/2/11 | ساعت: 16:02
Vote count: 0 i have 2 tabs in my web page. i have one model,2 repository folder in which i am calling stored procedures from back end,one view and one controller.i am able to insert data from both the tabs.but when i insert from second tab it is inserting row with null values in first tabs's table....
ADO.Net Entity Data Model does not find Oracle in Visual Studio 2013
◷
تاریخ انتشار: 1395/2/11 | ساعت: 16:02
Vote count: 0 I have installed Oracle 11g on my laptop and I already use Visual Studio 2013. When I open Server Explorer in my Visual Studio, I can find oracle co ection in "Choose Data Source". But, I can't find it when I want to create ADO.Net Entity Data Model. What's the problem on my Visual Stu...
cannot be null - PhP PDO Funkcion
◷
تاریخ انتشار: 1395/2/11 | ساعت: 15:01
Vote count: 0 I have a problem with one function, function should be sent a text to base (phpmyadmin), or menu displays error.. Error code: Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'Code' ca ot be null My funcktion: public function UploadInvoice($CONN) { $SubmitOK = '1'; $...
pattern not matched fluentd elasticsearch
◷
تاریخ انتشار: 1395/2/11 | ساعت: 15:01
Vote count: 0 I am stucking with writting format of logs in fluentd for magento exception logs. single exception of exception.log [2016-04-30 11:37:42] main.CRITICAL: exception 'Exception' with message 'Report ID: webapi-571f53065307a; Message: Notice: Array to string conversion in /var/www/html/mag...