Sorry this doesn't help with what I need because I don't know what the sizes will be.
I was looking at this http://php.net/manual/en/function.imagecopymerge.php I was hoping to use something like that.
Also "Aussie, Aussie, Aussie, Oi, Oi, Oi".
Sorry this doesn't help with what I need because I don't know what the sizes will be.
I was looking at this http://php.net/manual/en/function.imagecopymerge.php I was hoping to use something like that.
Also "Aussie, Aussie, Aussie, Oi, Oi, Oi".
Hello Community,
I have spent almost an hour looking for a solution to combine several pictures side-by-side but can't seem to find anything.
I want to be able to get a dozen pictures (.png) and place them to the right of the previous picture then combine them as one (.png) picture.
Oh yeah, I was going to use that but I was looking to see if there was a way to do it the way I wanted. Well that sucks, Oh well.
Could you please give me an example.
Hello Community,
I was wondering if there is a way to call a pNotify notification using php. So after I submit a form I can use PHP to create the popup.
Oh
What are ppt websites?
Any tips will be great.
I just want to advertise all my programs there are too many to say but I just want to show them off and same goes for my services.
I've tried using these instructions but when I try sending an email to the address doesnexist@example.com I get an email (to the email address I'm sending the test email from) back with the subject "Delivery Status Notification (Failure)" I've tried many times but all don't work, I've even tried setting the default address to forward email to another email address but still get the same result.
Yeah could you please give me a script. That'll help a lot.
I can't seem to find anything that helps.
Is there even a way to make an email address like this this service http://www.fakemailgenerator.com ? I'm not wanting to make a fake emailing service but I want to make a system that creates email addresses like it, just type an email address the users wants and straight away it works like a normal address where the user can even check the email.
Please clarafy what reports you're talking about.
Hello Community,
I was wondering if there is a way to make dynamic email address that'll look like this example example_name1@subdomain.example.com or example_name2@subdomain.example.com the subdomains have been created using .htaccess and a wildcard subdomain.
So the "example_name" and "subdomain" would be created dynamically.
So can this be done using .htaccess? or anything similure?
Here this works
<?php
if (preg_match("/\s/", "hello there")) {
echo "Match";
} else {
echo "No match";
}
?>
Here you go, (?! +)
that should work.
Hello Community,
I'm trying to use dynamic subdomains which works but I'm only wanting .htaccess to to send subdomains without letters, numbers and underscores (_) to the 404 page. Here is my code.
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
#Remove www.
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [QSA,NC,L]
#Example: http://example.com/directory/name
RewriteRule ^([a-z0-9_]+)$ http://example.com/directory/index.php?name=$1 [P,L]
#vv This Section vv
#Example: http://name.example.com
RewriteCond %{HTTP_HOST} ^([a-z0-9_]+).example.com [NC]
RewriteRule ([a-z0-9_]+) http://example.com/directory/index.php?name=%1 [P,L]
#^^ This Section ^^
#Remove .php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
So if someone tries to use a subdomain that doesn't (only) contain letters, numbers and underscores (_) I would like them to be sent to the 404 page, but not so the 404 page is seen in the address bar like http://example.com/404.php but like http://name.example.com
The only alternative I can think of looking to see if there is a Gmail api for VB.net, then you can just design your own GUI. In a way that is what I would do.
Why don't you try this:
Private Sub WebBrowser1_NewWindow(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
Dim webbrowser As WebBrowser = sender
Process.Start(webbrowser.StatusText.ToString())
webbrowser = Nothing
e.Cancel = True
End Sub
So do you know what browser it's trying to open the url up in?
Do you get that pop-up when you try opening that URL in whatever browser it's trying to use?
I'm sorry I have no idea how to fix this problem.
Hello,
You could try disabling the popup blocker on the WebBrowser, opening the link then re-enabling the popup blocker. At the moment that is all I could think of as I just go out of bed.
Unless you can give me a little more information on the error/ issue you are having.
Thanks (both of you), I've never made a website for someone else. So all that I'm doing is having them pay for all the essentials, so all I'm doing is coding their website to give it fuctionality along with a few other things. Then when I'm done I'm handing them the "keys" to their website so it's all up to them to manage it as would make it now theirs. So that is the part the confused me the most.
Hello Community,
I'm about to start making a website for someone. So what I'd like to know is does the website creator credit themself, like have my name in the footer of the page.
What is the right way to go about doing this?
Hello Community,
I've been wondering if an SFTP connection would be worth it?
Hello Community,
I've recently been wanting to make a few videos on my software and services but I don't know what to do like what I need to include and what it take to make a good advertisement. Could you help me out.
Ok, I'll ask them. Thanks anyway.
Hello Community,
I was wondering if there is a way to transfer saved app data from one user account to the other? The saved data I want is from a game callled Mortar Melon and I want the data to work on the same game but on the other account.
I've tried looking online for any information on how to do it, but I can't seem to find anything.
Did you notice the quotation marks are double around the script type you'll need to change those to single quotes (') or place a backslash before each double quote (\")
Original
$recipient = "jadon.mayhew@me.com<script type="text/javascript">
/* <![CDATA[ */
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
</script>";
So this is what it should look like:
$recipient = "jadon.mayhew@me.com<script type='text/javascript'>
/* <![CDATA[ */
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName('script');l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
</script>";
Hello ashwinshenoy,
What you can do is download a program called "Inno Setup" then you'll just need to gather all the information you want, such as your program files.
As an example in Visual Basic 2008 make it so when you build your project send it the "Release" folder located in the "bin" folder (Eg. Example Name\Example Name\bin\Release).
Then what you can do is just get copy every file except for these (example): "Example Name.exe.config", "Example Name.pdb", "Example Name.vshost.exe", "Example Name.vshost.exe.config", "Example Name.vshost.exe.manifest" and "Example Name.xml".
So just copy the remaining files to a sepret folder located where ever you want. Launch Inno Setup and just follow the Wizard Guide and just so the user will know to install the .NET framework create a text file containing program details such as requirements to run the program.
So include that they will need to install the framework. First off make sure you will need to check what .NET framework you program is running. To do that goto the "Solution Explorer" and double-click "My Project" on the side make sure the "Application" tab is selected and there sould be a spot that says "Target framework:" that is the framework you will need to tell the user to install (In my case mine says ".NET Framework 4.5").
I did think of using a dictionary but it didn't work in the way I wanted it. So I can't be bothered trying to do this the way I wanted to do it, so I'm going to build it the long way.
Hello Community,
I would like to know if there is a way to get the corresponding list index of another list like below:
Dim panelTitle As New List(Of String)
panelTitle.Add("First Panel")
panelTitle.Add("Second Panel")
panelTitle.Add("Third Panel")
Dim panelName As New List(Of Panel)
panelName.Add(Panel1)
panelName.Add(Panel2)
panelName.Add(Panel3)
So when I choose "Second Panel" I want the returned panel in this case I want it to be "Panel2".
Thanks both or you have given me code that does what I want.
Hello Community,
I was wondering if there is a way to get only the visible section of the image from picturebox1 and place it in picturebox2.
So what I have is picturebox1 set to a certain size, and the image size mode is set to center. Picturebox2 is also set to a certain size but the size mode is set to sketch. In the example I've attached the dash line represents the border of picturebox1. So what is on the inside is what I want moved to the second picturebox. Note all the images in going in picturebox1, most of them won't be the same size.
Hello Community,
I'm trying to connect to my database using PDO but for some reason it keep coming back saying "Undefined variable: db_c" db_c is the variable I've chossen for the name of my database connection. I've placed the database connection in another file, and I'm trying to connect to the database in another file that contains functions.
So I've included the database file at the top of the page. Then that is what give me the error. So I tried putting the include at the top of the function I'm trying to use and I got it to work, but I don't want to include the database file at the top of every function.
Thank you but not a big deal but is there a way to make it so it doesn't insert newlines because I'm getting what I wanted but between each list item there is a linebreak. So is there a way to remove the <br>?
Hello Community,
I was wanting to make a bbcode system using regex but the one I'm having a problem with is the list (<ol> and <ul>) but for some reason it isn't working this is the code I'm using:
<?php
function convertBBCode($input) {
$bbCode = array(
"/\[b\](.*?)\[\/b\]/",
"/\[u\](.*?)\[\/u\]/",
"/\[i\](.*?)\[\/i\]/",
"/\[s\](.*?)\[\/s\]/",
"/\[url\](.*?)\[\/url\]/",
"/\[url\=(.*?)\](.*?)\[\/url\]/",
"/\[img\](.*?)\[\/img\]/",
"/\[ul\](.*?)\[\/ul\]/",
"/\[ol\](.*?)\[\/ol\]/",
"/\[li\](.*?)\[\/li\]/",
"/\[code\](.*?)\[\/code\]/"
);
$htmlCode = array(
"<b>\\1</b>",
"<u>\\1</u>",
"<i>\\1</i>",
"<s>\\1</s>",
"<a href=\"\\1\" target=\"_blank\">\\1</a>",
"<a href=\"\\2\" target=\"_blank\">\\1</a>",
"<img src=\"\\1\">",
"<ul>\\1</ul>",
"<ol>\\1</ol>",
"<li>\\1</li>",
"<code>\\1</code>"
);
return preg_replace($bbCode, $htmlCode, $input);
}
echo convertBBCode($_POST['inputText']);
?>
<form action="index.php" method="POST">
<textarea name="inputText">
[ol]
[li]Hello[/li]
[/ol]
</textarea>
<input type="submit"/>
</form>
Try the code out and you'll see what's happening, which is just inserting the [li]Hello[/li] and not the [ol] and [/ol] I've looked online for any examples on why it's happening but I'm thinking it could have something with the regex line thinking it isn't reading the newline (\n).
Ok, thanks.
Hello Community,
I have recently been having a big of a look into connecting to a database using PDO but I'm not too sure what I should stick with, the normal way to connect to a MySql database or should I start using PDO. What would be better to use? and what does PDO have over the normal MySql code? like what can it do that the other can't.
No I'm just pressing them once, but the weired thing is it doesn't happen in the Arduino IDE serial monitor, it just seems to happen in VB.NET.
It kind of doesn't matter now because I've just decided to go with another script I found on the internet that seem to work ok but it still is inserting new lines in mid port read eg.
BUTT
ONONE
instead of just
BUTTONONE
But I've just gones with inserting them into a dimed Textbox then just checking if the textbox endwith the button I'm looking for. So it's not what I was hoping for, but at least it's working.
I've figured why this is happening is because of the Facebook messenger I have installed. I just Googled the url and there are others that have came across the same problem so at least I know what it is.
Hello Community,
I was just wondering what this url is "https://fbcdn-photos-d-a.akamaihd.net/hphotos-ak-ash3/hellocdn.html?v=1" for some reason on start-up my computer will open this url not all the time but occasionally. It doesn't do anything it just gives my a blank page, the HTTPS certificate is in affect so I don't thing it's a dodgy website (I hope it isn't).
I'm running Trend Micro Titanium Maximum Security and that hasn't picked it up as a bad website, I've also scanned the URL using the Trend Micro url scanner and the Norton url scanner and both have said it's an "OK" website.
I have checked the start-up folder and there isn't a link in there to open the url so I have no idea what is could be.
Can anny one help me out I want to stop this if it shouldn't be happening.
Note:
OS = Windows 8 64Bit
This is the code on the Arduino:
int buttonOnePin = 2;
int buttonTwoPin = 3;
void setup() {
Serial.begin(9600);
pinMode(buttonOnePin, INPUT);
pinMode(buttonTwoPin, INPUT);
}
void loop() {
if (digitalRead(buttonOnePin) == HIGH) {
Serial.println("BUTTONONE");
}
if (digitalRead(buttonTwoPin) == HIGH) {
Serial.println("BUTTONTWO");
}
}
And this is the code from the VB.NET program:
Public Class Main
Dim WithEvents SerialPort As New IO.Ports.SerialPort
Private Sub Form1_ForeColorChanged(sender As Object, e As EventArgs) Handles Me.ForeColorChanged
SerialPort.Close()
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
ConnectSerial()
End Sub
Private Sub ConnectSerial()
Try
SerialPort.BaudRate = 9600
SerialPort.PortName = "COM3"
SerialPort.Open()
Catch
SerialPort.Close()
End Try
End Sub
Delegate Sub myMethodDelegate(ByVal [text] As String)
Dim myD1 As New myMethodDelegate(AddressOf myShowStringMethod)
'Private Sub myShowStringMethod(ByVal myString As String)
' Text = myString
' If myString = "BUTTONONE" & System.Environment.NewLine Then
' BUTTONONE()
' End If
' If myString = "BUTTONTWO" & System.Environment.NewLine Then
' BUTTONTWO()
' End If
'End Sub
'Private Sub BUTTONONE()
' ListBox1.Items.Add("Button one was pressed.")
'End Sub
'Private Sub BUTTONTWO()
' ListBox1.Items.Add("Button two was pressed.")
'End Sub
Sub myShowStringMethod(ByVal myString As String)
ListBox1.Items.Add(myString)
End Sub
Private Sub SerialPort_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort.DataReceived
Dim str As String = SerialPort.ReadExisting()
Invoke(myD1, str)
End Sub
End Class
I posted this here because I'm using VB.NET to read the code.and I'll post the code when I get home as I'm away from my computer.
Hello Community,
Why I the port I'm trying to read looking really weired. I'm using an Arduino to produce the port data (It just has two button inputting "BUTTONONE" and "BUTTONTWO" when pressed).
This is the result I'm getting:
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONTWO
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONONE
BUTTONTWO
BUTTONTWO
I don't know why it's got all the gaps bettween the button press inputs.
Hello Community,
I was wanting to make a controller to work with my program (which is coded in VB.NET) and I want to know how this would be done.
Example if I press a button on the controller it will press a button on the program, however I would also like it to work even if the program isn't focused on so if the program is minimized and I'm in like Visual Studio and I press the button it will still press the button on the program form.
I have looked at the Arduino but I'm not familure with the language C or what ever language it uses and I just want to see if there is a different way before I start looking at the.
So to do this would I have to make a driver or something? if so how?
Try it, I'm not sure if it does that. I only know of it working when the user closes the web page. You can still try it.
What is the error?
Also where is says "Contacts Name" put "$row['name']" as it will be what is displayed in the textbox.