w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to avoid the 'tlsv1 alert unknown ca' error in libmproxy?
This happens when the proxySG certificate that is presented to the user isn't signed by a trusted CA. I had this error too, I fixed it by pushing the CA (the one used for ssl proxy) to the actual browser, through group policy.

Categories : Ssl

Postfix - status=bounced (unknown user "myuser")
you have added mydestination = mydomain.com and so the valid users for mydomain.com will be searched in local_recipient_maps. It is very clear from the logline that local delivery agent is selected to deliver the mail, as local domain class matched. See postfix address classes for more help Modify your main.cf like below #/etc/postfix/main.cf mydestination = # set to localhost localhost.$mydomain or remove mydomain.com for now # Ensure that postmap -q mydomain.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf is returning mydomain.com and # postmap -q myuser@mydomain.com mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf succeeds

Categories : Linux

aspxGridView disappears when showing javascript alert but reappears when alert is closed
I used the above code to achieve the desired result if (!String.IsNullOrEmpty(message.Trim())) { message = message.Replace("\n", "\\n"); string script = "setTimeout("alert('" + message + "');",0);"; System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), script, true); } Call this method and pass the message string

Categories : Asp Net

iOS push notification alert message based on data in alert
No this is not possible in the way you want. iOS handles the push notification and your app has no influence on the way the notification is presented. iOS will just present what you send in the notification. However you can use localization to achieve what you want: "alert" : { "loc-key" : "ALERT_FORMAT", "loc-args" : [ "FriendsName", "pink"] }, Where the ALERT_FORMAT is a localization in you Localizable.strings file: "ALERT_FORMAT" = "Color from %@ is %@" But you will have to change the type of notification on the server, so the notification you send it an invite you will need to change the notification on the server. So you will send something like this for the invite: "alert" : { "loc-key" : "ALERT_INVITE", "loc-args" : [ "drinks", "adress"] }, Where the ALERT_INVITE is a lo

Categories : IOS

Difference between alert and navigator.notification.alert in PhoneGap
navigator.notification.alert provides more modification flexibility, e.g. change button text alert callback Reference: http://docs.phonegap.com/en/1.0.0/phonegap_notification_notification.md.html#notification.alert

Categories : Cordova

is there a difference between alert() vs notification.alert() using phonegap in xcode?
What Google geolocation code are you using that is doing the alert? API should not be doing any alert. The alert and notification.alert are two different functions. Default alert webview/browser display the page URL in the title. Phonegap people did a great thing by providing the additional notification (alert, prompt, and confirm) API. This is a feature/benefit of PhoneGap. It is also required if you don't want to be rejected by Apple with app must be native look and feel clause. Just change all your alert to notification.alert. You can also hack/override default alert with window.alert = notification.alert, but I do not recommend this. Alternatively, you can do something like my AngularJS phonegap $notification friendly factory shown in my response here: Angularjs + phonegap

Categories : Javascript

Alert box for `alert($('input:number[name=userNum]').val());` does not pop-up
For the input type as number, we can use the code like: alert($('input[name=userNum]').val()); Since, in jquery we don't have a selector for number yet! Even though we have a selector for :text.

Categories : Jquery

How to set Alert text size in alert dialog
EDIT 2: This is the best method you can go with AlertDialog.Builder builder = new Builder(this); builder.setMessage("Record and Images will be deleted?") .setTitle("MyTitle") .setCancelable(true) .setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); finish(); } }) .setNegativeButton("No", new DialogInterface.OnClickListener() { public voi

Categories : Android

Error: Unknown symbols found":" Unknown property type filter, even when everything seems working
filter is non-standard property only for IE, so I guess NetBeans is picking on that wrong syntax and firing an error. Maybe you just need to update your NetBeans as it is a fixed bug: https://netbeans.org/bugzilla/show_bug.cgi?id=168406

Categories : CSS

Web App: Gathering unknown amount of data from user an unknown number of times
Do you mean something like this http://www.labs.mimmin.com/inlineedit/ http://dev.iceburg.net/jquery/tableEditor/example_new.php I found it on google by using 'jquery inline editable table' I know Yii has a nice admin interface specifically fast input, but I sense you wrote the code yourself, transferring to Yii might be a bigger challenge that solving this in a nice way. good luck

Categories : PHP

C# retrieve data from database - unknown datatype and unknown column name
You can use reader.GetSchemaTable() to get a table of the schema of the data reader or reader.GetType(n) or reader.GetProviderSpecificType(n) to get the datatype of a particular field. You can then use that information to decide which method to call: if (reader.GetType(n) == typeof(string)) { string value = reader.GetString(n); }

Categories : C#

unknown character / unknown token, json string
This smells like you've got a BOM in the front. Save PHP files without BOM and that should do it. :) See as well: UTF-8 BOM signature in PHP files

Categories : PHP

Javascript audio not working in Firefox (x-unknown/unknown)
Hmm. Based upon my experience with the JS Audio elements, you're missing a line. var audio = new Audio('tune.wav'); audio.load(); audio.play(); I don't think that's causing the error though. Based upon the responses to this question: Firefox won't play .WAV files using the HTML5 <audio> tag? and the back-and-forth in this forum: https://bugzilla.mozilla.org/show_bug.cgi?id=524109 (comment 7) It looks like Firefox simply doesn't support 24-bit WAVE files. 16-bit is probably a safer option.

Categories : Javascript

Notice: Unknown: Skipping numeric key 1 in Unknown on line 0
The PHP session storage mechanism was originally built around "registering" variables, so the keys in $_SESSION must be names that could be treated as variables in their own right. This means that $_SESSION[42] is invalid, because $42 wouldn't be a valid variable name, and since $foo[42] and $foo['42'] refer to the same thing, $_SESSION['42'] is invalid as well. The solution is either to use a prefix on your session variables (e.g. $_SESSION['row_count_' . $x] = $row['Count'];) or make them into an array, which you can then loop over etc later (e.g. $_SESSION['row_counts'] = array(); ... $_SESSION['row_counts'][$x] = $row['Count'];) Note: this limitation is actually part of the "serialization handler" used when writing the session to disk, which is why the errors have no context (they'

Categories : PHP

How to make alert with a alert in fragment?
Its working fine for me.. public void EditDaytoDayTask() { // Log.i(TAG,"Inside editdaytoday"); //((ViewGroup)view.getParent()).removeView(view); //final String taskName=bundle.getString("TASKDAYTODAY"); //Log.i(TAG,"TAsknamedate:"+taskName+" "+date); final AlertDialog.Builder alertViewTaskDescription=new AlertDialog.Builder(hostActReference); LayoutInflater inflaterViewTaskDescription=(LayoutInflater)hostActReference.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View viewTaskWithDescription = (View)inflaterViewTaskDescription.inflate(R.layout.pdf_save_dialog,null,false); //TextView textviewTask=(TextView)viewTaskWithDescription.findViewById(R.id.taskidDaytoDayView); //TextView textviewDescription=(TextView)vi

Categories : Android

Exception: conversion from UNKNOWN to UNKNOWN is unsupported
The problem was that sql server is not happy to save a serialization (as done when implementing externalizable). .setObject() fails. The solution is to use setBinaryStream(). // Sql Server can't do an stmt.setObject(4,o) "Conversion from UNKNOWN to UNKNOWN not supported" // Serialize the object to an output stream and then read it in again into the stmt. Object o = ri.getReportModule(); ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream objectOutput = new ObjectOutputStream(bos); objectOutput.writeObject(o); objectOutput.flush(); InputStream objectInput = new ByteArrayInputStream(bos.toByteArray()); stmt.setBinaryStream(4, objectInput); Cheers Christian

Categories : Sql Server

Use of $ in postfix expression
In this case, I am certain the operator is exponentiation. 8 3 4 + - 3 8 2 / + * 2 $ 3 + is: 8 3 4 + - = 1 3 8 2 / + = 7 1 7 * = 7 7 2 $ = 49 49 3 + = 52. Or maybe 7 2 $ = 128 128 3 + = 131. Depends on how your instructor defined the operator.

Categories : Database

Postfix with ip address instead domain name
As far as I know there is no way to make postfix send mail to the Internet without FQDN. It can be set up to exchange mail between local users, though, but that's obvoiusly won't help you. The reason behind it is quite simple: vast majority of the mail servers are verifying peer's identity on SMTP connection using reverse DNS lookup. If your IP has no nice DNS name assigned, then your mail is quite likely to be considered a spam. So even you will manage to bypass FQDN requrement your recipients still may not receive your mails. It can be even dangerous, as your IP may get stuck into spam lists after that. I see two options for your here: Wait for the correct domain name to be associated with your IP Or use mailbox on an established public service like gmail or hotmail to send mails from

Categories : PHP

operator++ postfix is not declared
If vec1 and vec2 are vectors, they don't have increment operators. They're containers. You need to use iterators to traverse them. Something like: auto it1 = vec1.cbegin(), it2 = vec2.cbegin(); while ( prefix_length < 3 and it1!=vec1.cend() and it2!=vec2.cend() and equal(*it1++, *it2++) ) ++prefix_length;

Categories : C++

It's possible to read email using ID on Postfix?
Try to grep /var/log/mail.log.1, /var/log/mail.log.2, etc files too. But if the email was not bounced via postfix there are no way to recover it. By default postfix keeps emails in undeliverable state (i.e bounced) within 5 days (parameter maximal_queue_lifetime).

Categories : Email

PHP force transport into PostFix
Take a look at php.ini file /etc/php5/apache2/php.ini on debian: [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = localhost ; http://php.net/smtp-port smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = me@example.com Uncomment sendmail_from: and set it to your needs. Make sure you do: service apache2 restart or service httpd restart to change take effect. Hope it helps, Mirko

Categories : PHP

Send mail using php and postfix
PHP runs on the server. onClick executes Javascript on the CLIENT machine. You can NOT directly invoke PHP functions via Javascript code, or vice versa. What you're doing can be accomplished with a simple form: <?php if ($_SERVER["REQUEST_METHOD"] == 'POST') { $to = $_POST['to']; $text = $_POST['text']; mail($to, .....); } ?> <form method="POST" action=""> <input type="text" name="to" /> <input type="text" name="text" /> <input type="submit" /> </form> There is no need to use Javascript at all.

Categories : PHP

Emails with same domain does not go out from postfix
Check the settings in your /etc/postfix/main.cf file, specifically the setting for virtual_mailbox_domains. If your domain is in this line, but another server is the MX for your domain, then this would explain the problem - i.e. the postfix server thinks it's handling incoming mail for your domain, but the MX records say otherwise.

Categories : Email

Overloading postfix operator ++
Non-member overloads also use a dummy int parameter to distinguish them: friend void operator++(Number&); // prefix friend void operator++(Number&, int); // postfix Note that some people might expect these to emulate the behaviour of the built-in operator by returning, respectively, the new and old values: Number& operator++(Number& fst) { fst.number=fst.number+1; return fst; // reference to new value } Number operator++(Number& fst, int) { Number old = fst; ++fst; return old; // copy of old value }

Categories : C++

alias_maps in postfix like GMail does
Postfix and virtualmin both support alias "like" gmail with simple config. Just go to "System Information > Postfix Mail Server > General Options" (http(s)://<yourserver>:<vitualminport>/postfix/general.cgi). Search for "Separator usernames / address extensions" field (press ctl+f and type "address extensions", for quick search) and fill it with "+". Alternatively you can edit /etc/main.cf and place a line like recipient_delimiter = +

Categories : Email

Postfix statistics of each user, how do?
Try using postfix-logwatch # Sample Usage perl postfix-logwatch --nosummary --nodetail --limit envelopesenderdomains='2 1:10: 2:8:' /var/log/maillog # Command says Give 2 level output in which give top ten domains in level one( 1:10:) and top 8 users in each domain ie. level two ( 2:8: ) ****** Detail (2) ********************************************************************************** 72488 Envelope sender domains ----------------------------------------------------------------- 14055 intranet.domain1.com 6912 domain1-owner 1203 owner 486 cmowner 370 sysaduser 219 cowner 185 towner 175 autoowner 167 cpanel-owner ... 8867 live.com 8867

Categories : Linux

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: unknown protocol
The problem appears to be that your target site, aristo4stu3.bgu.ac.il, is picky about SSL/TLS handshaking. I got two different results with the following OpenSSL command with different versions of OpenSSL: openssl s_client -connect aristo4stu3.bgu.ac.il:443 This does connect with the stock OpenSSL 0.9.8x on OS X 10.7.5. However, it does not connect using OpenSSL 1.0.1e - in that case the server just closes the connection (by sending a Close Notify alert) immediately after receiving the Client Hello. I captured packets with Wireshark, and the difference between what these two versions send is that 0.9.8x is sending an SSLv2 Client Hello advertising support through TLS 1.0, while 1.0.1e is sending a TLSv1 Client Hello advertising support through TLS 1.2. If I tell 1.0.1e not to use T

Categories : Ruby On Rails

Text Scanning to read in unknown number of variables and unknown number of runs
For any given file, are all the lines equal length? If they are, you could start by reading in the first line and use that to count the number of fields and then use textscan to read in the file. fID = fopen(strcat(pwd,'/',inputFile),'rt'); firstLine = fgetl(fID); numFields = length(strfind(firstLine,' ')) + 1; fclose(fID); formatString = repmat('%s',1,numFields); fID = fopen(strcat(pwd,'/',inputFile),'rt'); vars = textscan(fID, formatString,' '); fclose(fID); Now you will have a cell array where first entry are the var names and all the other entries are the observations. In this case I assumed the delimiter was space even though you said it was a csv file. If it is really commas, you can change the code accordingly.

Categories : Matlab

EC2 Postfix custom email domain
The problem is solved by using the domain name generic mapping. http://www.postfix.org/ADDRESS_REWRITING_README.html#generic The above link describes how to do it. But it is a temporary solution that replaces the lengthy internal domain (ip-xxx-xxx-xx-xxxx.us-west-2.compute.internal) by mydomain.com for every OUTGOING email. For local email, the system still uses the lengthy internal domain name (ip-xxx-xxx-xx-xxxx.us-west-2.compute.internal) The problem is: postfix seems to have bypassed the $mydomain, $myorigin, $myhost variable I set in the /etc/main.cf file. If anyone can solve it, I will greatly appreciate it. Harry

Categories : Amazon

Prefix and postfix operators necessity
POSTFIX and PREFIX are not the same. POSTFIX increments/decrements only after the current statement/instruction is over. Whereas PREFIX increments/decrements and then executes the current step. Example, To run a loop n times, while(n--) { } works perfectly. But, while(--n) { } will run only n-1 times Or for example: x = n--; different then x = --n; (in second form value of x and n will be same). Off-course we can do same thing with binary operator - in multiple steps. Point is suppose if there is only post -- then we have to write x = --n in two steps. There can be other better reasons, But this is one I suppose a benefit to keep both prefix and postfix operator.

Categories : C

Retrieve email from Postfix using Java
Did you find the JavaMail FAQ? There's lots of tips there, including tips on how to debug and what additional information we would need to see to help you figure out what's wrong. So far all you've told us is that something's not working. Without more details, we can't offer more than general suggestions.

Categories : Java

Infix to Postfix Converter with parenthesis
Thre are two minor bugs in the code. First, you are skipping the last character in the expression - which, as it turns out, is a right parenthesis: while(infix.length() > 1){ //should be infix.length() > 0 // .... } Second, your code used 'x' as the multiplication operator, while your expression uses '*'.

Categories : Java

Why it the F postfix needed here to avoid an error?
Because floating point numbers are by default of type double. To make it a float you append an F. You are getting error in the below assignment: float f = 3.4028235E38; because a double as more precision than a float. So, there is a possible loss of precision. I would have expected just the opposite as floating point literals are by default double and should be more precise. Let's check the binary representation of your number till double precision: 0x47EFFFFFE54DAFF8 = 01000111 11101111 11111111 11111111 11100101 01001101 10101111 11111000 Now since float is a single precision 32-bit floating point value. It can't store all the double values, which are double precision 64-bit floating point values.

Categories : Java

Getting weird expception with Zend_Mail and Postfix
You'll always have an issue if you try to send emails without a recipient address. Postfix is telling you: 8 12:44:59 bv-webserver postfix/sendmail[18647]: fatal: sales@website.com(33): No recipient addresses found in message header Fix that and you should be Ok. You might need to look into why the application apparently lost the email addresses for the seven transactions in question.

Categories : PHP

Mac OS Postfix GMail Relay Configuration
It looks like you have an incomplete or a doubtful hash mark, check your entire file and see if there is a symbol/character before one of the "#" marks. It happened to me, fortunately it was on the first line. Indoor case it looks like its on the bottom of the file, just before when you added the lines for GMAIL relay. Hope it helps

Categories : Osx

creating tree from postfix expression
You have a local array of mynode pointers, stored in stack: mynode *temp,*stack[100]; These are all uninitialized. You assign temp->right and temp->left each one of the uninitialized mynode *'s, temp->right=stack[--k]; temp->left=stack[--k]; Then you try to dereference the uninitialized pointer's to get to the data element. //printf("%c %c ",temp->left->data,temp->right->data); That's why your code dies.

Categories : C

Variables infix to prefix to postfix
I have found a good implementation in the evalmath class provided by Miles Kaufmann here : http://www.phpclasses.org/package/2695-PHP-Safely-evaluate-mathematical-expressions.html Infix to Postfix code : // Convert infix to postfix notation function nfx($expr) { $index = 0; $stack = new EvalMathStack; $output = array(); // postfix form of expression, to be passed to pfx() $expr = trim(strtolower($expr)); $ops = array('+', '-', '*', '/', '^', '_'); $ops_r = array('+'=>0,'-'=>0,'*'=>0,'/'=>0,'^'=>1); // right-associative operator? $ops_p = array('+'=>0,'-'=>0,'*'=>1,'/'=>1,'_'=>1,'^'=>2); // operator precedence $expecting_op = false; // we use this in syntax-checking the expression

Categories : PHP

Whitelist certain email addresses in postfix
Show some logs please. I suspect that you are sending emails via /usr/bin/sendmail or postdrop. Both this commands bypass the smtpd and so the smtpd_recipient_restrictions, as they delivery the locally to the postfix, not via network. If the sent email arrived via network (and so via smtpd) then show the config too (postconf -n) as you may have other configs that are changing the final result for those emails.

Categories : Email

ubuntu 12 postfix smtpd authentication
I deployed postfix the previous week, so I'm new in this area but as I can see in the logs you provided first you get the warning: postfix/smtpd[5728]: warning: hostname spotCUST.spot.net does not resolve to address 93.37.128.33: Name or service not known which means that you have to add 127.0.0.1 spotCUST.spot.net in your /etc/hosts. The next steps are to configure Postfix to use SASL for SMTP AUTH. Make sure that you have installed the modules: sudo apt-get install libsasl2-2 libsasl2-modules Then edit /etc/default/saslauthd in order to activate saslauthd. Remove # in front of START=yes, add the PWDIR, PARAMS, and PIDFILE lines and edit the OPTIONS line at the end: # This needs to be uncommented before saslauthd will be run automatically START=yes PWDIR="/var/spool/postfix/var/run/

Categories : Email

How to evaluate a sign in a postfix expression?
You need to push a different operator. You can tell when parsing the expression whether it's a unary or binary minus, and you need to preserve that in your reverse-Polish notation. So you need a separate operator for unary minus.

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.