I thought that I can do it using the database where the idea was to get the image from the ngg_gallery_pictures table, where the browser URL is equal to URL of the image in the table.
Then I will get only one image and that's also what I want.
Probably I have some mistake here since I don't have a lot of knowlednge in sql but I would like to find the solution for it anyway..
Please let me know what you think and if you can include the code for mysql, it will be great (it is really short from examples that I saw)
Many thanks!
Related
it's for work so i can't disclose details, but basicly orders come in and they get listed via a external website. the thing i want to do is to list them so i can copy them easily. i've been searching for a way to export the page to excel, but this didn't work out. now i'm looking into devtools for chrome to filter them out.
what i'm looking for is a way to filter a bunch of numbers from a page, and quickly be able to copy them. it doesn't really matter how. below i added a picture to show the overall scructure of the page itself.
All suggestions are welcome!
greetings, niels
Yes you can with Javascript.
However, the image you provided does not contain the necessary information to help solve your exact question.
Get the element that contains the value that you want to receive via element inspect in your browser.
Use .innerText to retrieve the value inside of the element.
For example, let's say I want to fetch your Stackoverflow username from this post, here's how that would go (you can copy paste the code in your web-console to see the result):
document.getElementsByClassName('user-details')[0].childNodes[2].innerText
The same principle applies to numbers or other values/data. Without the page structure, it is impossible to give you a concrete answer to your question. Hopefully the above gives you some guidance as to what you should be looking for.
I am currently creating a support system for my department and are using our old database for this.
When we receive a new ticket, the email is saved as an attachment and added to the database as the data type Image.
The content looks like this: (In this example an image) 0x21485A4C0A18000015EE76BA799CB69B03197D7707ABD4E877A300E576E03D3E5325600BEEE37A77564318DFFDC6173AF1D2D6A1D6706657F975E5AB924CD28594003C2674... this example is 2k+ characters long.
Full example here: https://pastebin.com/x4KzSY5Y
My best guess is that this is some kind of hexadecimal. But honestly, I have no idea; I usually store files as blobs in MySQL.
What I have tried so far is to base64 encode the "hexadecimal." I have tried converting the content to various types. But so far, no luck, the image won't display correctly.
I would appreciate it if anyone knows how to display the image as an <img> in HTML.
Unfortunately, I cannot make any changes to the database. I know that the data type Image is swapped out for something else, can't quite remember what it is called.
I have never asked a question on StackOverflow before, so I am very sorry if it is unclear what I am asking.
Was hoping that there was a simple, turnkey way to download the metadata that Clarifai generates as a .CSV file. Ideally I would then take that information, format it, and then upload into our DAM system to round out the metadata for images.
Have looked through their documentation and while interesting, isn't pointing me in an actionable direction. I'm not a coder nor have the time to experiment too much, so wondering if there's something out there.
So there isn't a way currently to do this in bulk, but you can do it image by image if you'd want. When you look at the image, on the bottom right side you should see the option of either JSON or TABLE for the metadata.
(The image I posted has an image without metadata but you get the idea).
If that works for what you're looking for you would probably have to scrape the site for the data you want :(.
It might be worth contacting the customer support to request this feature though.
Sorry for the long title, I have no clue how to properly explain this in a efficient way as I dont know the terms for it. An example of what I want to do is done by stackoverflow itself. Take the most voted question in here, if I want to share a answer with you guys I can just use the url with the following https://stackoverflow.com/a/16184827/8782879 that would take the user to the specific area of the page.
I want to do something like this with my page, not necessary an answer but I would like to take them back to a certain point of the page once they re-visit that page. But as you all can see I dont know where to start looking for it as I dont even know the terms for this type of functions. Any help and tutorial on this would be very helpful to get me started.
I include the tags that I will possibly be using for this.
What are you looking for is called anchors and it is a HTML feature, not PHP.
Just set id to a element like this
<div id="my-anchor">Your content here</div>
then use it like this http://localhost#my-anchor
Here you can see working example: http://www.tagindex.net/html/link/anchor_example1s.html#a001
I just did a quick search for my question and couldn't find anything directly on point.
I'm still very new to HTML and was wondering if someone could tell me how I could add a picture to my website and set the code so that if I click on it, it enlarges the picture in a new window.
I'm going to be adding around 600+ pics to my website so I was also wondering if there's a way to write the code once and have it apply to all the pics I add.
Thanks in advance,
- Danny B.
There's many many ways in which you could do this. The basic HTML for inserting an image with a link to a new window will be:
<a href="enlarged.html" target="_blank">
<img src="photos/photo-name.jpg" />
</a>
But it is a fair bit more complicated if you want to be able to dynamically display a large number of photos. If you want to code this yourself, you'll want to look into using something like PHP to output the HTML code automatically for 600+ images. Then instead of pointing the link for each to a new page, you might want to consider having the images load in a cool way, such as a javascript lightbox/colorbox some of the other answers suggest.
One possible alternative solution might be to look for some pre-created photo album script. I don't have any experience of these so I'll let someone else make some suggestions on that.
There are several ways to do this, but I'm assuming you'll have a simple site with lots of images on one page, and you'd like the images to zoom open "in a cool way".
Check out this: http://colorpowered.com/colorbox/
... click on View Demonstration and then see the various photo handling options.
This needs just some basic HTML and minimally configured Jquery. Very simple to use and produces a nice effect.
Google around using the keyword lightbox. Most of the solutions are ready-to-use Javascripts. Just include once, assign some IDs/classes, execute during onload and that's it. I personally have good experiences with Lightbox2 and jQuery Lightbox plugin.
I decided to go w/ target="_blank" -- Lightbox2 seems like it'd be great, but I'm really not sure how to use it and where to put all the code. The instructions I've found for it still assume the user has some standard knowledge in the field, that of which I do not currently possess. So, I'll stick to the target/blank approach until I can get more familiar w/ coding and then I'll upgrade to Lightbox.
Once again, I want to say thanks to everyone. You guys always respond quickly and accurately.
With much appreciation,
- Danny B
The simplest way would be to add a link to it, and set the target attribute to target="_blank". The link should point to the image itself. This would regularly open a new tab though, if you want a whole new window, you should tryhref="javascript:window.open('myimage.png','_blank','toolbar=no,menubar=no,resizable=yes,scrollbars=yes')",which would open a new, standalone window. If you're looking for fade/resize effects and such, try one of the other answers posted.