joshl_1995 22 Twisted Digital

Even after installing all Antivirus programs it was still slow. I tried several different ones and all were the same.

joshl_1995 22 Twisted Digital

If it was a desktop I'd update somethings but it isn't and I'm not replacing parts.

joshl_1995 22 Twisted Digital

Hello again, I've restored it which didn't fix it so I've contacted HP and they will get back to me Monday and might have to send it in for them to look at.

joshl_1995 22 Twisted Digital

Hello All I have decided to just restore it so it's like new and hope it fixes it.

joshl_1995 22 Twisted Digital

Sorry I totally forgot to reply, are there any errors on the server?

Also if you like you can PM me the raw code used on the server you can blank out the key if you like doesn't matter but I can have a propper look at the exact code you are using. I was thinking of making this into a service but not many people supported it (which would make things easier but doesn't matter)

joshl_1995 22 Twisted Digital

I'm in the middle of trying a few of your possible solutions and I will get back to you...

joshl_1995 22 Twisted Digital

And is there any error logs?

joshl_1995 22 Twisted Digital

I'd love someone to know the right answer, but (don't get me wrong I appretiate the community trying to help) all I'm getting is it's the internet, hard drive, etc... although I've posted a picture and details about my computer stating what hard ware it contains and have said it is also slow offline.

joshl_1995 22 Twisted Digital

Thats all well and good but I think my first few comments have been ignored about the fact the my CPU is sky rocketing. I can see all the processes running but I don't know why they are even running. Again... I could only have a few things running and it could be at 99% and on my previous laptop I could have about the same amount of programs running and it would run perfect and stay around the 50 or so % mark and my previous laptop has 4GB less ram than my new one which has 8GB so I have no idea what the problem is.

joshl_1995 22 Twisted Digital

Well I've got Speccy but I don't see any error checking thing or whatever you said it has and like the picture and model number I posted at the start (that seems to be invisible to some) says details of my laptop. So IntergratedTweak what am I doing from here? if there are any details you want from Speccy I take a screenshot of it

joshl_1995 22 Twisted Digital

Sorry for taking a while to reply, I've been busy. So with fixing up the array to use the previous version array(...) function what error are you getting?

joshl_1995 22 Twisted Digital

Yeah I've just been busy talk later

joshl_1995 22 Twisted Digital

Ok never mind just another thing stuffed up about the new Daniweb I can't seem to find a way to live chat someone. Nevermind, when you're trying the script online are the 'POST_ID_TWO' and 'POST_ID_THREE' still there? if so try removing them, so removing them will look like this

    $posts = [
        "GROUP1" => [
            "565167146975015"
        ],
        "GROUP2" => [
            "1727257750831063"
        ],
        "GROUP3" => [
            "494510417393925"
        ]
    ];
joshl_1995 22 Twisted Digital

I'll start a live chat

joshl_1995 22 Twisted Digital

Hello,
Try changing this line $bumpResults['PageResults'][$page]['fails'][$key] = "Post: #".$key." failed to bump!"; to @$bumpResults['PageResults'][$page]['fails'][$key] = "Post: #".$key." failed to bump!"; and just see if that works

joshl_1995 22 Twisted Digital

I'll try that Speccy when I get home

joshl_1995 22 Twisted Digital

If you look at the picture I posted at the start it should say all the details needed and I think it's a Toshiba hard drive.

rproffitt commented: Yes you posted that. Anyhow, try cloning it and test with the clone given the story so far. +6
joshl_1995 22 Twisted Digital

There is 8GB of RAM and 1TB hard drive and what will Speccy do?

joshl_1995 22 Twisted Digital

Well if it's getting a 404 that wouldn't have anything to do with the script, either it didn't upload to the server of your searching for it in the wrong directory.

joshl_1995 22 Twisted Digital

Sorry for the late reply.
@rproffitt I've done all the necessary updates required, latest Windows 10 update and latest updates from HP.

@misi I've ran so many virus scans, malware scans, clean up scans and so on. At the moment I've got AVG PC Tuneup installled and have gone through that which did clean up a bit but still didn't help. In the past I've had Trendmicro, Comodo, Bit Defender, Malware Bytes and AVG installed on my computer and neither have ever picked something up. So I highly doubt it would be somekind of virus or something.

@IntergratedTweak I've gone through the computer and uninstalled a few things that I don't require I hate companies that install so much unneeded crap on deviced which is why I try to stick with HP my sister brought a Toshiba a while ago which was filled with so much crap, like Toshiba notice board or something to tell whats new with Toshiba or something like that. Like that is totally needed.
So the programs I've got on my laptop from HP is CyberLink, 3 Cisco Modules, HP Documentation, HP Registration Service, HP Support Assistant, HP System Event Utility and HP Wireless Button Driver.
The rest is all the programs I use, I usually like to keep my computer free of programs I don't use a lot only the main essentials, or programs to do with devices I have. So I got no idea.

At the moment I only have this …

joshl_1995 22 Twisted Digital

I've posted another Facebook related code snippet here which contains a guide on how to obtain an api key [HERE]

joshl_1995 22 Twisted Digital

Hello,
This script can either be ran locally on a computer using a program such as Wamp or even run it on a server like on a website then just run a Cronjob to execute it.

A cheap solution to this is registering with a free PHP website host then putting the script on there and just Google that basics of how to setup a Cronjob.

joshl_1995 22 Twisted Digital

I'm pretty sure its the laptop. The overall use of it is slow.

joshl_1995 22 Twisted Digital

Hello Daniweb Community,
I've finally gotten around to doing it but can someone for the love of god please help me and give me help with fixing my slow ass laptop.
I have only recently purchased it, as soon as I set it up I installed Windows 10 (coming from Windows 8.1) then from there I started installing all the same programs I had on my previous laptop (which is also running Windows 10, but runs fine) and it's just running so slow like it could sometimes take about 5 minutes to load Facebook or even if I go to watch a video on YouTube the video will stop and go to the lowest quality all using Google Chrome.

So whats weird is sometimes I could be just have Spotify and Windows Live Mail running (not fetching emails but just going through them) and the CPU could be bouncing around the 98% mark.

Laptop Details:
System_Details.png

joshl_1995 22 Twisted Digital

Well yeah I understand that, but when I post something I enter tags the relate to the whole post Eg. If I want help with a PHP script that'll require help with storing info in a database that could be related to Facebook I would multiple tags such as, PHP Database MySql Facebook, etc...

Although my post is about just PHP I enter tags to relate to the post.

This all doesn't matter anyway about seeking help but what about those why just want to give PHP help they now have to look for posts containing the tag PHP and that could lead them to a post that isn't even about seeking help with PHP but more like help with HTML that the user has PHP on the post but only needs help with HTML. So its annoying because you now have more to look through.

Plus why couldn't you just make this kind of list appear when they click the primary category? So when they click Web Development then it'll take them to every post then they can enter the tags they want to give help for.

joshl_1995 22 Twisted Digital

Hello Daniweb Community,
I'm wanting to incorporate my Facebook pages reviews into my website but I can't see the manage to get a permanent access token. I've tried the same key (which is permanent) that I use to get the news feed but that doesn't work with the reviews. At the moment I'm using THIS method which I posted here on Daniweb.

So what I'm wanting to know is there a way to get a permanent access token, the tempoary ones work but I'd rather not have to keep changing them when they run out.

joshl_1995 22 Twisted Digital

Yep number 1 for me!

-> You know what'll be a good idea.
-> What?
->How about we remove subgroups so this way users will have to look harder for topics to either get help with or look through to help others!

What the heck happened to user friendly? Ease of use?
Taking away subgroups doesn't only make it harder to find things but it from what I can imagine would make it harder to get help! Eg. people who want to give just PHP help now have to search the tag PHP which will give them multiple articles that contain the PHP tag. Nope you just lost a point. Don't think I'll be donating again if/ until this is fixed. I've dontated multiple times in the past and won't until I see and improvement. To see that this is what my money has gone towards, nope... don't like it.

For the sake of a user friendly experience, please fix it! if I want to give just PHP help, so be it!

joshl_1995 22 Twisted Digital

Yeah probably

joshl_1995 22 Twisted Digital

Hello Community,
I was just clearing up my (Android) phone and when I was looking in the downloads folder there is an Adobe Acrobat folder and inside of it is a random file I couldn't imagine I've downloaded its name is 'ChandlerIncidentReview.pdf' no a single clue how it got on my phone, I opened it and its a bunch of scanned documents from the Chandler Police Department. The document is about this case. How would it had gotten on my phone?

joshl_1995 22 Twisted Digital

What about PayPal? I watched these tutorials from Phpacademy that covers how to use the API.

joshl_1995 22 Twisted Digital

I don't mean to possibly offend you but are you just learning to code or just learning PHP?

joshl_1995 22 Twisted Digital

What do you mean? Can't you just make a function to get it from the database and use PHP to echo it out where you want it.

joshl_1995 22 Twisted Digital

Hello Daniweb Community,
I have been talking on a couple Facebook groups such as sale pages where you post your own stuff for people to buy. Most groups like this have rules about bumping like once per day, every 12 hours etc...
So it got to the point where it became annoying to have to bump my posts every so oftern so I managed to construct this script that'll do it automatically with the help of a cronjob that can be set to bump at whatever time you like. So I have made a simple easy to use (ha may not easy to understand) script that'll bump and delete the "bump" comment that keep your post clean of exsessive bump comments.

Sorry but I made this a little while ago and forgot how I got my token, so you'll have to "Google" it. Once you've entered your token start gathering your pages.

So this section of the code here

$posts = [
    "PAGE_NAME_GOES_HERE(This is only for your piece of mind knowing what page the ID's are for)" => [
        "POST_ID_ONE",
        "POST_ID_TWO",
        "POST_ID_THREE"
    ],
    "PAGE_NAME_GOES_HERE(This is only for your piece of mind knowing what page the ID's are for)" => [
        "POST_ID_ONE",
        "POST_ID_TWO",
        "POST_ID_THREE"
    ]
];

So as it say the page name is only so you know what page the ID's belong to, now for the POST ID (AKA the permenent link) example look at this link https://www.facebook.com/groups/YOUR_CHOSEN_GROUP/permalink/HERE_IS_THE_POST_ID/ to get the …

joshl_1995 22 Twisted Digital

Never mind, I've solved it myself just a few minor tweeks. If anyone is interested in this is what I used to do what I wanted.

joshl_1995 22 Twisted Digital

But it'll still be the same result. Doesn't matter anyway, I've started playing around with XAML and have found a perfect working solution. Works just the say I want it, however now seen I don't know much about XAML would anyone know how to edit a BitmapImage refer to this.
So what I've done is made a Windows Form Application and added a WPF UserControl then dragged it into the Form (Into an ElementHost) and am displaying it on there however I would like to know how to edit the masterImage as shown in the link.

So I want to set the image path then click a button that'll open the form hosting the WPF UserControl with the selected image entered. I found out how to set and get the image path but whenI press the button it just displays the default image and not the one I browsed for, if you know what I mean.

Would this be better to open this in a new article? or just keep it here?

joshl_1995 22 Twisted Digital

Didn't work just keeps coming up with that liner. Stupid thing, why!!!! I'm going to try a couple more methods then I'm just going to throw the whole idea out the windows into oncoming traffic (putting it in hospital) then pull the plug on it's life support.

joshl_1995 22 Twisted Digital

That makes sense, so I can't slice them using this method?
All I'm wanting is a method that works the same way as the code provided here but without that annoying liner.

joshl_1995 22 Twisted Digital

I've got a working script that is doing exactly what I want but at I said near the beginning I keep getting this result
Image_Grid_(5).fw_.png
Notice the liner
Image_Grid_(4).fw_.png

The code I'm using is this

Dim img As Image = Image.FromFile(Main.PictureBox1.ImageLocation)
Dim widthThird As Integer = CInt(CDbl(img.Width) / 3.0 + 0.5)
Dim heightThird As Integer = CInt(CDbl(img.Height) / 3.0 + 0.5)
Dim bmps As Bitmap(,) = New Bitmap(2, 2) {}
For i As Integer = 0 To 2
    For j As Integer = 0 To 2
        bmps(i, j) = New Bitmap(widthThird, heightThird)
        Dim g As Graphics = Graphics.FromImage(bmps(i, j))
        g.DrawImage(img, New Rectangle(0, 0, widthThird, heightThird), New Rectangle(j * widthThird, i * heightThird, widthThird, heightThird), GraphicsUnit.Pixel)
        g.Dispose()
    Next
Next
PictureBox1.Image = bmps(0, 0)
PictureBox5.Image = bmps(0, 1)
PictureBox8.Image = bmps(0, 2)
PictureBox3.Image = bmps(1, 0)
PictureBox6.Image = bmps(1, 1)
PictureBox9.Image = bmps(1, 2)
PictureBox4.Image = bmps(2, 0)
PictureBox7.Image = bmps(2, 1)
PictureBox10.Image = bmps(2, 2)

Which is ran on the forms load event. Then I just resize the window like normal (because the picture boxes are anchored)

joshl_1995 22 Twisted Digital

Well kind of what I want except for the liner. Look to the left of the 5th piece.

joshl_1995 22 Twisted Digital

I have no idea what is so confusing about this, the image will always be the same. The use will browse for the image then click a button that'll then open another form with what I'm wanting to do (refer to all my previous posts) so upon form load the image from the previous form (that the user browsed for) will be split into 9 pieces (at mentioned several times) those several pieces will then be stretch as mentioned in previous posts (hence making it the same picture throughout the whole use of this form (for all an eternity, until the form has been closed)).

As said before

hence making it the same picture throughout the whole use of this form (for all an eternity, until the form has been closed)

So yes the number will always be the same and as I said yes the corners will just be split and left alone unstretched.
And I got no idead how it makes a difference either resizing the window by pulling the sides or corner.

What do you mean by?

Is the scaling in the three events the same?

joshl_1995 22 Twisted Digital

It starts with a single image that is then split into 9 separate pieces and each piece will be placed into it's own PictureBox that have been anchored to expand, (like in previous images). So that way these will be resized is from the user manually resizing the window.

joshl_1995 22 Twisted Digital

No that won't work, I'm making this for notifications.
In this image
Split.fw_.png
I'm wanting to start with a single image then split it into 9 pieces, so in this image I'm wanting to resize part 2, 4, 5, 6 and 8.
I would like 2 and 8 to stretch width wise, 4 and 6 to stretch height wise and 5 to stretch to fill. Here (I hope) you can see what I'm talking about. Image_Grid_Expected_(3).fw_.png

I hope this helps.

joshl_1995 22 Twisted Digital

Here is a sketchup of the procedure (of how the images are placed and are resized) Image_Grid_(3).fw_.png and as you can see even in this example there is a liner of the background fading in.

joshl_1995 22 Twisted Digital

No that didn't work, as I said I didn't want to stretch the image. Image_Grid_(2).fw_.png

joshl_1995 22 Twisted Digital

Maybe it'll be easier to say I want it to scale, not stretch, scale so like the picture.
Image_Grid_Expected_(2).fw_.png
So I would like it so I can expand the top, sides and bottom then stretch the center to fill the center.

joshl_1995 22 Twisted Digital

Hello Daniweb Community,
I'm wanting to slice a square image into 9 pieces like below
Image_Grid_Expected.png
the code I'm currently using is this

    Private Function CropBitmap(ByRef bmp As Bitmap, ByVal cropX As Integer, ByVal cropY As Integer, ByVal cropWidth As Integer, ByVal cropHeight As Integer) As Bitmap
        Dim rect As New Rectangle(cropX, cropY, cropWidth, cropHeight)
        Dim cropped As Bitmap = bmp.Clone(rect, bmp.PixelFormat)
        Return cropped
    End Function

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        PictureBox1.Image = CropBitmap(New Bitmap(PictureBox2.Image), 0, 0, 21, 21)
        PictureBox3.Image = CropBitmap(New Bitmap(PictureBox2.Image), 0, 21, 21, 22)
        PictureBox4.Image = CropBitmap(New Bitmap(PictureBox2.Image), 0, 43, 21, 21)

        PictureBox5.Image = CropBitmap(New Bitmap(PictureBox2.Image), 22, 0, 22, 21)
        PictureBox6.Image = CropBitmap(New Bitmap(PictureBox2.Image), 22, 22, 22, 22)
        PictureBox7.Image = CropBitmap(New Bitmap(PictureBox2.Image), 22, 43, 22, 21)

        PictureBox8.Image = CropBitmap(New Bitmap(PictureBox2.Image), 43, 0, 21, 21)
        PictureBox9.Image = CropBitmap(New Bitmap(PictureBox2.Image), 43, 22, 21, 22)
        PictureBox10.Image = CropBitmap(New Bitmap(PictureBox2.Image), 43, 43, 21, 21)
    End Sub

but when I use this method I get this result
Image_Grid.png
for some reason it has a liner on it.

Does anyone know of a soulution to fix this? or if there is another script that'll do this?

joshl_1995 22 Twisted Digital

No matter I figured it out, it was because it went from a RichTextBox into a ListBox then tried looking through a TextBox for what I wanted replaced so I solved it using the code below

For Each lbItem In .ListBox1.Items
    TextBox1.Text = Replace(TextBox1.Text, lbItem.Replace(ControlChars.Lf, Environment.NewLine), "{HIDDED}")
Next
joshl_1995 22 Twisted Digital

Hello Daniweb Community,
I was wondering if there is a way to replace words from a listbox.
So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg.
Hello
There

It'll go into the listbox as HelloThere, so when I go to use the for each to replace them It doesn't work.

I've tried manually replacing it by using TextBox1.Text = TextBox1.Text.Replace("Hello" & Environment.NewLine & "There") it'll work, and if I try

For Each lbItem In .ListBox1.Items
    TextBox1.Text = Replace(TextBox1.Text, lbItem, "{HIDDED}")
Next

it doesn't work.

Any ideas why this is happening?

joshl_1995 22 Twisted Digital

Some have textboxes, pictureboxes, groupboxes (with radiobuttons).
I don't really want to have to clear them manually like each control (Textbox1.Text = Nothing, PictureBox1.Image = Nothing, RadioButton1.Check = True, etc...)

joshl_1995 22 Twisted Digital

Hello Daniweb Community,
I was wondering if there is a way to reset a tabcontrol.
What I'm wanting to do is have it so when the user will click New it will reset all the tabpages to the way they were when they started the program up.

I tried this

TabControl1.TabPages.Clear()
TabControl1.TabPages.AddRange({TabPage1, TabPage2, TabPage3, TabPage4})

But all it does it remove the pages then re-add them with all the data still there.