Member Avatar
pty 497 Replied To a Post in How to create Sitemap
Topic by davy_yg in Search Engine Strategies
seo
What's missing?

The 'read more...' links on your blog index don't go anywhere, the pagination list contains no links, the portfolio is just images.

I think that the generated sitemap looks ok.

I think you might have accidentally [uploaded some stuff that shouldn't be there](http://advance-web-studio.com/public/images/ShoppingOnline.jpg) to your portfolio. Reply by pty
Member Avatar
rproffitt 1,112 Gave Reputation to sachitha_1 -3 in java
Create three classes the Calculation class, Conversion class and Menu Class.
The Conversion class should have the following methods.
double KMToMiles(double distance)
double MilesToKM(double distance)
double FeetToMetres(double distance)
double MetresToFeet(double distance)
double KgToPounds(double weight)
double PoundsToKg(double weight)
double CelciusToFahrenheit(double temperature)
double FahrenheightToCelcius(double temperature)
The Calculation class should have the following … First Post in Topic by sachitha_1 in Software Development
Member Avatar
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (1, N'East')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (2, N'West')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (3, N'North')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (4, N'South')

I have a text file like above. From the above insert statements i want to write code so that it turns into … Topic by Chandrai in Software Development
Member Avatar
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (1, N'East')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (2, N'West')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (3, N'North')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (4, N'South')

I have a text file like above. From the above insert statements i want to write code so that it turns into … Topic by Chandrai in Software Development
Member Avatar
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (1, N'East')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (2, N'West')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (3, N'North')
INSERT [table].[Region] ([RegionID], [RegionDesc]) VALUES (4, N'South')

I have a text file like above. From the above insert statements i want to write code so that it turns into … Topic by Chandrai in Software Development
Member Avatar
sachitha_1 -3 Created java
Create three classes the Calculation class, Conversion class and Menu Class.
The Conversion class should have the following methods.
double KMToMiles(double distance)
double MilesToKM(double distance)
double FeetToMetres(double distance)
double MetresToFeet(double distance)
double KgToPounds(double weight)
double PoundsToKg(double weight)
double CelciusToFahrenheit(double temperature)
double FahrenheightToCelcius(double temperature)
The Calculation class should have the following … Topic by sachitha_1 in Software Development
Member Avatar
Featured gentlemedia 577 Marked Solved Status for Parse only a certain amount of records of a JSON array
I'm using `file_get_contents()` to parse data of a JSON file within a `foreach()` loop onto my page.



<?php

$url = 'data/gigs.json';
$data = file_get_contents($url);
$gigs = json_decode($data, true);

foreach ($gigs as $gig) {
echo '<tr>';
echo '<td><time>' . $gig['date'] . '</time></td>';
echo '<td>' . $gig['event_venue'] . '</td>';
echo '<td>' . … Topic by gentlemedia in Web Development
Member Avatar
Topic by gentlemedia in Web Development
I figured this one out myself. There is a `array_slice()`, so I've added this to my `foreach() `and voila.



<?php

$url = 'data/gigs.json';
$data = file_get_contents($url);
$gigs = json_decode($data, true);

foreach (array_slice($gigs,0,5) as $gig) {
echo '<tr>';
echo '<td><time>' . $gig['date'] . '</time></td>';
echo '<td>' . $gig['event_venue'] . '</td>';
echo … Reply by gentlemedia
Member Avatar
What is the code of calculator in c# by using variable size . Topic by Alex_79 in Software Development
c#
Member Avatar
I'm using `file_get_contents()` to parse data of a JSON file within a `foreach()` loop onto my page.



<?php

$url = 'data/gigs.json';
$data = file_get_contents($url);
$gigs = json_decode($data, true);

foreach ($gigs as $gig) {
echo '<tr>';
echo '<td><time>' . $gig['date'] . '</time></td>';
echo '<td>' . $gig['event_venue'] . '</td>';
echo '<td>' . … Topic by gentlemedia in Web Development
Member Avatar
Topic by Fo.katia in Software Development
Here is an update



def main():
phrase = input("Enter a sentence:")
wordcount = len(phrase)
print("The total word count is: " + str(wordcount))
main() Reply by Zion_1
Member Avatar
Topic by Tony_9 in Software Development
"""
After extracting the RAR, we run this to move all the files into
the appropriate train/test folders.

Should only run this file once!
"""
import os
import os.path

def get_train_test_lists(version='01'):

# Get our files based on version.

test_file = os.path.join('traintestlist', 'testlist' + version + '.txt')
train_file = os.path.join('traintestlist', 'trainlist' … Reply by Ankush_4
Member Avatar
Topic by garyrichard in Databases
SELECT (t1.log_id + 1) AS gap_starts_at,
(SELECT MIN(t3.log_id) -1 FROM logtable t3 WHERE t3.log_id > t1.log_id) AS gap_ends_at
FROM logtable t1
WHERE NOT EXISTS (SELECT t2.log_id FROM logtable t2 WHERE t2.log_id = t1.log_id + 1)
HAVING gap_ends_at IS NOT NULL Reply by Shivraj_1
Member Avatar

Hello,

I am trying to create a sitemap to improve my seo. My site is: www.advance-web-studio.com

I create a free sitemap generator through google:

<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->


<url>
<loc>http://www.advance-web-studio.com/</loc>
<lastmod>2018-02-20T14:48:27+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>http://www.advance-web-studio.com/public/innovation_book.pdf</loc>
<lastmod>2017-08-04T06:56:36+00:00</lastmod>
<priority>0.80</priority> … Topic by davy_yg in Search Engine Strategies
seo
Member Avatar
James19142 -4 Marked Solved Status for Problem with C++ Template Methods
Inside of a class template having parameter `typename T` the compiler generates an error concerning 2 functions. `T` does not seem to be recongnized as the template class parameter it was declared as.

template <class Return, class ...Args>
void executeOnAll(Return (T::*function) (Args &&...), Args &&...args)
{
for(T &s : *this) … Topic by James19142 in Software Development
Member Avatar
Hello All,

I have an issue with Windows 7: sometime the copy paste doesn't work and when this issue appear => the only way to remove it is by rebooting my pc.

The copy paste doesn't work (wether using using [Ctrl]+[C], [Ctrl]+[V] or by context menu (right-click menu)) for all … Topic by Simple_3 in Microsoft Windows
Member Avatar
Reverend Jim 2,157 Replied To a Post in UseVisualStyleBackColor
Topic by johnnyd1963 in Programming
You didn't read my answer. `UseVisualStyleBackColor = True` is the default. In any case, if you want to set the same base settings for a bunch of controls at design time, just select them all then set the properties. Or you can create one button with the properties you want, … Reply by Reverend Jim
Member Avatar
johnnyd1963 Marked Solved Status for UseVisualStyleBackColor
Who can help me with the following

For Each Con As Control In GroupBox1.Controls
If Con.GetType Is GetType(Button) Then
Con.BackColor = SystemColors.Control
Con.UseVisualStyleBackColor = True
End If
Next

Can someone help me to fix it with
Con.UseVisualStyleBackColor = True

or do i have to do the for all buttons separate … Topic by johnnyd1963 in Programming
Member Avatar
Featured rproffitt 1,112 Replied To a Post in High CPU Usage with Threads / Sockets
Topic by ryantroop in Software Development
The reply below is about an exit and "To avoid the infinity loop simply use a WaitHandle. To let the process be exited from the outer world use a EventWaitHandle with a unique string. Below is an example."

If you simply had a loop, then CPU should go to 100%. … Reply by rproffitt
Member Avatar
johnnyd1963 Replied To a Post in UseVisualStyleBackColor
Topic by johnnyd1963 in Programming
Oke. Than i have to do for each button separate like

Me.Button1.UseVisualStyleBackColor = True

and that work it's only a lot typing.
thanks Reply by johnnyd1963
Member Avatar
Reverend Jim 2,157 Replied To a Post in UseVisualStyleBackColor
Topic by johnnyd1963 in Programming
`UseVisualStyleBackColor` is True by default. To set other properties for all buttons you could do, as an example

For Each btn As Button In GroupBox1.Controls.OfType(Of Button)()
btn.BackColor = Color.Cyan
Next

You can't change the defaults like

Button.DefaultBackColor = Color.Cyan

because default properties are read-only. Reply by Reverend Jim
Member Avatar
Reverend Jim 2,157 Gave Reputation to JamesCherrill in help for coding
Topic by Tejindra in Community Center

> @james - that's "Mad" world.

Oh yes. Now don't I look foolish. But Lambert really was amazing anyway. Reply by JamesCherrill
Member Avatar
Featured ryantroop 100 Replied To a Post in High CPU Usage with Threads / Sockets
Topic by ryantroop in Software Development
That whole thread is about using Sleep() or Event Objects to work as a shared handle for signaling. :-P

Unless I missed something else in there that you would like to point out.

If that's the answer then so be it - event driven programming is fine. I do it … Reply by ryantroop
Member Avatar
Who can help me with the following

For Each Con As Control In GroupBox1.Controls
If Con.GetType Is GetType(Button) Then
Con.BackColor = SystemColors.Control
Con.UseVisualStyleBackColor = True
End If
Next

Can someone help me to fix it with
Con.UseVisualStyleBackColor = True

or do i have to do the for all buttons separate … Topic by johnnyd1963 in Programming
Member Avatar
Who can help me with the following

For Each Con As Control In GroupBox1.Controls
If Con.GetType Is GetType(Button) Then
Con.BackColor = SystemColors.Control
Con.UseVisualStyleBackColor = True
End If
Next

Can someone help me to fix it with
Con.UseVisualStyleBackColor = True

or do i have to do the for all buttons separate … Topic by johnnyd1963 in Programming
Member Avatar
Who can help me with the following

For Each Con As Control In GroupBox1.Controls
If Con.GetType Is GetType(Button) Then
Con.BackColor = SystemColors.Control
Con.UseVisualStyleBackColor = True
End If
Next

Can someone help me to fix it with
Con.UseVisualStyleBackColor = True

or do i have to do the for all buttons separate … Topic by johnnyd1963 in Programming
Member Avatar
Featured Dani 1,665 Created AdSense Auto Ads
Has anyone had a positive experience with the new AdSense auto ads?

They say they use machine learning to find the optimal placement for ads on your page, but they don't show any examples. How much faith can/should I put in their placement AI? Topic by Dani in Digital Marketing
Member Avatar
Topic by Arnold_7 in Programming
We are an English-only community. Can you please post your question in English so that we can help you? Thanks! Reply by Dani
Member Avatar
Featured rproffitt 1,112 Replied To a Post in High CPU Usage with Threads / Sockets
Topic by ryantroop in Software Development
About 100% CPU use in a loop. That's not unusual at all. You do need to move to an event driven system to get rid of an infinite loop.

Example at https://stackoverflow.com/questions/7402146/cpu-friendly-infinite-loop Reply by rproffitt
Member Avatar
Ingreso una operaciĆ³n donde ingreso 0.25 pero me da por respuesta 25.0 , por lo tanto no puedo guardarlo en la base de datos

Private Sub btningresar_Click(sender As Object, e As EventArgs) Handles btningresar.Click
tara = CDbl(LblIndicador2.Text)
PB = CDbl(lblindicador.Text)
'Calcular el peso:
PN = Convert.ToDouble(PB - tara) Topic by Arnold_7 in Programming