Computing desk | ||
---|---|---|
< June 1 | << May | June | Jul >> | June 3 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Let's take
/info/en/?search=Uniform_resource_locator as an example. In my rudimentary knowledge of the URL, there would be a wiki
directory and in that would be another directory named Uniform_resource_locator
. Would there then be an index.html file or index.php file in that directory? If so, which one, html or php? I realize that the actual content of the article is pulled from a database. I'm just interested in the hierarchy and the file name though. Thanks,
Dismas|
(talk) 05:50, 2 June 2014 (UTC)
wiki/Uniform_resource_locator
") can be interpreted in any way the web server chooses, it doesn't have to be a physical file path. I am not a WikiMedia developer, but I would guess there's simply a PHP script that receives the name of the article and fetches it from the database. There probably aren't separate directories and files for every single article.
JIP |
Talk 06:11, 2 June 2014 (UTC)
When Microsoft was still small but growing big, how did Bill Gates manage to buy out all the other shareholders? Surely they could see like he could that the company was rocketing to success. Did he employ underhand tactics to make them sell? — Preceding unsigned comment added by Modeltrainsets ( talk • contribs) 10:59, 2 June 2014 (UTC)
Hellow! I need a box in Simulink, that at first accepts a constant as input, and later accepts the output of a computation of another box. Something like this:
a = 1; b = a*2; a = b+1; b = a*2;
How can I do this in Simulink? 77.125.164.49 ( talk) 15:03, 2 June 2014 (UTC)
I'm using VS express 2013, and want to access\edit jpeg metadata. From what I can find, it looks like the best way is by using the classes 'JpegBitmapDecoder', 'BitmapImage', etc from the 'System.Windows.Media.Imaging' namespace.
If this is right, what 'reference' do I need to include to access the 'System.Windows.Media.Imaging' namespace?
MSDN says this is in the PresentationCore (in PresentationCore.dll) assembly, but I cant find this!
Any idea what namespace or assembly I should reference, or dll to use?
Apologies if this is the wrong place to ask this, I've tried searching Wikipedia, msdn, google etc. with no luck. Any advice would be really appreciated - this is driving me crazy!
Many Thanks, Andy — Preceding unsigned comment added by 31.122.115.65 ( talk) 18:30, 2 June 2014 (UTC)
Thanks! I think you're right - but when I try 'BitmapSource' or 'System.Windows.Media.Imaging.BitmapSource' in my code I get a not defined error! Any idea how to get past this?
Andy — Preceding
unsigned comment added by
31.122.115.65 (
talk) 19:02, 2 June 2014 (UTC)
using System;
using System.IO;
using System.Windows.Media.Imaging; // need PresentationCore, WindowsBase, System.Xaml assemblies
class Program
{
static void Main(string[] args)
{
// a good sample image:
// http://metadatadeluxe.pbworks.com/f/1242531528/GettyVillaExifToolImport.JPG
Stream fileStream = new FileStream("test.jpg", FileMode.Open, FileAccess.Read);
JpegBitmapDecoder decoder = new JpegBitmapDecoder(fileStream, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
BitmapSource source = decoder.Frames0];
Console.WriteLine("width:" + source.Width);
Console.WriteLine("height:" + source.Height);
BitmapMetadata metadata = (BitmapMetadata)source.Metadata;
Console.WriteLine("Format:" + metadata.Format);
Console.WriteLine("ApplicationName:" + metadata.ApplicationName);
Console.WriteLine("Comment:" + metadata.Comment);
Console.Read(); // wait
}
}
Finlay, this works great! Huge thx for ur help - much appreciated! Andy — Preceding unsigned comment added by 213.205.240.249 ( talk) 11:33, 4 June 2014 (UTC)
Are computer mice in other languages still named after rodents or is being named after cheese-eaters an English thing only? 88.167.253.167 ( talk) 22:08, 2 June 2014 (UTC)
Computing desk | ||
---|---|---|
< June 1 | << May | June | Jul >> | June 3 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Let's take
/info/en/?search=Uniform_resource_locator as an example. In my rudimentary knowledge of the URL, there would be a wiki
directory and in that would be another directory named Uniform_resource_locator
. Would there then be an index.html file or index.php file in that directory? If so, which one, html or php? I realize that the actual content of the article is pulled from a database. I'm just interested in the hierarchy and the file name though. Thanks,
Dismas|
(talk) 05:50, 2 June 2014 (UTC)
wiki/Uniform_resource_locator
") can be interpreted in any way the web server chooses, it doesn't have to be a physical file path. I am not a WikiMedia developer, but I would guess there's simply a PHP script that receives the name of the article and fetches it from the database. There probably aren't separate directories and files for every single article.
JIP |
Talk 06:11, 2 June 2014 (UTC)
When Microsoft was still small but growing big, how did Bill Gates manage to buy out all the other shareholders? Surely they could see like he could that the company was rocketing to success. Did he employ underhand tactics to make them sell? — Preceding unsigned comment added by Modeltrainsets ( talk • contribs) 10:59, 2 June 2014 (UTC)
Hellow! I need a box in Simulink, that at first accepts a constant as input, and later accepts the output of a computation of another box. Something like this:
a = 1; b = a*2; a = b+1; b = a*2;
How can I do this in Simulink? 77.125.164.49 ( talk) 15:03, 2 June 2014 (UTC)
I'm using VS express 2013, and want to access\edit jpeg metadata. From what I can find, it looks like the best way is by using the classes 'JpegBitmapDecoder', 'BitmapImage', etc from the 'System.Windows.Media.Imaging' namespace.
If this is right, what 'reference' do I need to include to access the 'System.Windows.Media.Imaging' namespace?
MSDN says this is in the PresentationCore (in PresentationCore.dll) assembly, but I cant find this!
Any idea what namespace or assembly I should reference, or dll to use?
Apologies if this is the wrong place to ask this, I've tried searching Wikipedia, msdn, google etc. with no luck. Any advice would be really appreciated - this is driving me crazy!
Many Thanks, Andy — Preceding unsigned comment added by 31.122.115.65 ( talk) 18:30, 2 June 2014 (UTC)
Thanks! I think you're right - but when I try 'BitmapSource' or 'System.Windows.Media.Imaging.BitmapSource' in my code I get a not defined error! Any idea how to get past this?
Andy — Preceding
unsigned comment added by
31.122.115.65 (
talk) 19:02, 2 June 2014 (UTC)
using System;
using System.IO;
using System.Windows.Media.Imaging; // need PresentationCore, WindowsBase, System.Xaml assemblies
class Program
{
static void Main(string[] args)
{
// a good sample image:
// http://metadatadeluxe.pbworks.com/f/1242531528/GettyVillaExifToolImport.JPG
Stream fileStream = new FileStream("test.jpg", FileMode.Open, FileAccess.Read);
JpegBitmapDecoder decoder = new JpegBitmapDecoder(fileStream, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
BitmapSource source = decoder.Frames0];
Console.WriteLine("width:" + source.Width);
Console.WriteLine("height:" + source.Height);
BitmapMetadata metadata = (BitmapMetadata)source.Metadata;
Console.WriteLine("Format:" + metadata.Format);
Console.WriteLine("ApplicationName:" + metadata.ApplicationName);
Console.WriteLine("Comment:" + metadata.Comment);
Console.Read(); // wait
}
}
Finlay, this works great! Huge thx for ur help - much appreciated! Andy — Preceding unsigned comment added by 213.205.240.249 ( talk) 11:33, 4 June 2014 (UTC)
Are computer mice in other languages still named after rodents or is being named after cheese-eaters an English thing only? 88.167.253.167 ( talk) 22:08, 2 June 2014 (UTC)