So is dreamweaver the best tool to use while making a website? Also should I get android studio I've used IntelliJ last year and liked it. I want to finish some old projects this semester break.
I prefer brackets.io
So is dreamweaver the best tool to use while making a website? Also should I get android studio I've used IntelliJ last year and liked it. I want to finish some old projects this semester break.
I just use Sublime Text, works for me.
I use it too but I guess what I really meant to say is how do I make my website look it was made in 2004.
So is dreamweaver the best tool to use while making a website? Also should I get android studio I've used IntelliJ last year and liked it. I want to finish some old projects this semester break.
I use it too but I guess what I really meant to say is how do I make my website look it was made in 2004.
Android Studio has no business using 1GB+ of memory, god damn.
edit: 20 mins to start the emulator, lol. It'd be faster to buy a phone at the local mall.
It's just bits of information that the program reads
Code:Monarch M141 16 6 10.5 10.5 20 20 20 30 Princess P103 18 5 40 45 45 60 80 Empire E77 24 7 20 20 20 20 20 20 50 Crown C110 14 10 10 15 15 15 15 16.3 16.3 15 30 32 Bootle B2618 4 1 9
inFile.nextLine();
Well, I put together a lookup table and it worked ok. I'm sure I could have done better, but it was a small improvement.Any recommendations on a fast approximation of a Gaussian function?
Try adding a
after your for-loop. It's probably reading the empty line as the next ship name and throwing off your inputs.Code:inFile.nextLine();
While you're at it, change your inFile.next() calls to inFile.nextLine() also. next() only reads until white space, nextLine() will read the whole line.
Nope that didn't work
Ok this is a simple java code and I really should have no trouble with it but I don't know why the scanner is giving me a token mismatch error. Any takers?
Code:for (int i = l; i <= s; i++); { // HERE IS THE PROBLEM ; THAT IS WRONG rate = inFile.nextFloat(); totalwages = (totalwages + (rate * l)); }
Could you elaborate please ? My brain isn't working properly..Yatta!!
Could you elaborate please ? My brain isn't working properly..
tbh that entire line feels wrong. Why are you iterating from "l" anyway? Did you mean to type 1?
Well, I put together a lookup table and it worked ok. I'm sure I could have done better, but it was a small improvement.
MSSQL's database diagram designer itself is broken garbage. Does anybody have any good recommendations for generating database diagrams from a MSSQL server? Schema already exists, just need something that will make pretty pictures quickly and easily.
Created an interesting program for my image processing class' final project. The idea is that it creates a water reflection effect on the input image.
I used a warp that alternates between sine and cosine for every 15 pixel rows. Then applied a gaussian blur and tonemap to the lower half. (I also applied these to the last 5 pixels of the top half to make it more seamless)
It had a strange bug for the first few rows that grabbed pixels from the wrong side, but the warping formula was pretty rough and I didn't feel like perfecting after spending 30+ hours on group projects this week.
I thought it was pretty neat
What language?
Do you mind sharing it on GitHub?
Created an interesting program for my image processing class' final project. The idea is that it creates a water reflection effect on the input image.
I used a warp that alternates between sine and cosine for every 15 pixel rows. Then applied a gaussian blur and tonemap to the lower half. (I also applied these to the last 5 pixels of the top half to make it more seamless)
It had a strange bug for the first few rows that grabbed pixels from the wrong side, but the warping formula was pretty rough and I didn't feel like perfecting after spending 30+ hours on group projects this week.
I thought it was pretty neat
It was written in CPP. I used the OpenImageIO library for input and output of the image data. OpenGL is used to render it, checkout the readme for controls.
Heres the github:
https://github.com/seanrowe3/WaterWarp
Amazing. Post the source code here if you can
std::weak_ptr<someClass> wp;
void MakeSharedFunction()
{
//This is the only shared pointer to this instance
auto sp = std::make_shared<someClass>();
wp = sp;
} //Shared pointer destroyed, but memory for instance remains due to weak pointer still needing reference
void NewFunction()
{
//This is the only shared pointer to this instance
std::shared_ptr<someClass> sp(new someClass());
wp = sp;
} //Shared pointer destroyed and with it, the allocation for the instance of someClass. The (small) allocation for reference remains until wp is removed
MSSQL's database diagram designer itself is broken garbage. Does anybody have any good recommendations for generating database diagrams from a MSSQL server? Schema already exists, just need something that will make pretty pictures quickly and easily.
As far as I can tell, your understanding is correct. The allocation for the shared_ptr control block will stay around no matter what, but if you use make_shared or allocate_shared, the existence of weak_ptrs will prevent the allocation for the actual object from being released. Using shared_ptr without make_shared performs worse and spends more memory in the first place, though, so it should rarely be the better option in practice.Was wondering if anybody can help me get some clarity on using make_shared vs not with shared and weak pointers (C++).
...
Is this understanding correct? From my readings it seems make_shared is generally preferred, but in the situation where you have multiple weak_ptr and you are not sure when they will be destroyed it seems like passing an initial raw pointer would be preferred.
Sorry, but I tried, and 15 minutes in I felt he'd lost me enough times to give up. I think I missed his "concurrency 101" talk maybe? Too many assumed unexplained concepts and acronyms. Diagrams full of acronyms with effecively "see, this is the problem!"PSA: Everyone who sees this, please watch this video on linearizability by Kyle Kingsbury.
Seriously one of the best technology related videos I've ever seen (and I usually hate technology videos).
[TypeConverter(typeof(ExpandableObjectConverter))]
[Serializable()]
public class Foo
{
private string m_Code;
private Bar m_Bar = new Bar();
[DisplayName("Code")]
[Description("The Code of Foo")]
public string Code
{
get { return m_Code; }
set { m_Code = value; }
}
public Bar Bar
{
get { return m_Bar; }
set { m_Bar = value; }
}
}
[TypeConverter(typeof(BarConverter))]
[Serializable()]
public class Bar
{
private string m_Name;
[DisplayName("Name")]
[Description("The Name of Bar")]
public string Name
{
get { return m_Name; }
set { m_Name = value; }
}
}
public class BarConverter : TypeConverter
{
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
{
Bar _Bar = (Bar)value;
return _Bar.Name;
}
}
What compiler and compiler options are you using? Using gcc 4.8.3 with the following console command, it works with that header.
Code:g++ --std=c++11 -Wall -o main main.cpp
Most of your errors are telling you you're using C++11 features which means you're trying to compile to the C++98 standard. Like closer to the edge said, use the 'std=c++11' flag when compiling with gcc as it defaults to 'std=c++98'.
First of all, thanks for helping me to understand the error. It is marked, but I do not know how to fix it. If I assume correctly, I should force the compiler using C++11 features when compiling the source code in terminal.The C++11 compiler messages are only warnings, which makes me think he has -Wextra on, but is still compiling with C++11 support. The only compiler error is in the randint function. The gcc version that ships with Mac OS is pretty ancient IIRC, so I'd guess that's why it's not compiling.
Eh, these days it's pretty simple. Bootstrap, decent color choice, decent header image, and decent logo is enough.
It also ensures the site looks nice on all devices too.
To your first question, yes if you are interested in Android dev you should at least try out Android Studio and see if it works for you.
For the second question, you should look into CSS frameworks and CSS preprocessors. Front end dev has come a long way and you can make a very nice looking website without relying on tools like Dreamweaver.
There are tons of frameworks out there, but Bootstrap and Foundation are probably the most popular. You can use something like Flat UI or Pure if you are looking for a certain style as well.
Preprocessors are very useful now. These include things like SASS and LESS.
All this can be done through Sublime Text, or my new favorite, WebStorm.
Do you have the Intel x86 Emulator Accelerator installed through the SDK Manager?
edit: Just tested and my emulator boots an app in 32 seconds. There must be some settings wrong with your's, or your computer is just slow with the emulator.
They don't mean the same thing at all.My mind is full of fuck right now.
I was under the impression that using templates, typename and class literally mean the same thing, yet
template<template<typename,int> typename T>
does not compile while
template<template<typename,int> class T>
compiles just fine. What sorcery is this?
You guys are throwing me off by using "C++98" when you mean "C++03".
They don't mean the same thing at all.
class is like struct, in that it describes an object.
templates are evil. typename is syntactic magic used when doing dark template magic. Ok, this is not that helpful. Let me explain a bit more. Templates are like an entirely different programming language that gets run at compile time to generate more code that you will not see or interact with, unless you do it wrong in which case you will get to read a 500 line compiler error.
My advice to any C++ newcomer, but especially to myself 8 years ago, is to avoid templates (and the rest of the preprocessor) like the plague until you understand the rest of C++ forwards and backwards.
Templates will be useful once you do really know what you're doing, but there's so much other stuff you should learn first when writing C++. Like, the rest of C++.
C/C++ question here:
Can anyone tell me the difference between what ++*p and p*++ is? What does each do?
C/C++ question here:
Can anyone tell me the difference between what ++*p and p*++ is? What does each do?
Do you have an Intel processor? You can use HAXM to run 32/64-bit Android versions in the emulator at a faster pace than ARM ones.Android Studio has no business using 1GB+ of memory, god damn.
edit: 20 mins to start the emulator, lol. It'd be faster to buy a phone at the local mall.
A question from a person who has very limited programming experience (I coded a few websites in the early 2000's): How difficult would it be to develop a Chrome extension that does the following?
First, for context go here: http://tier2.iema.state.il.us/FOIAHazmatSearch/Default.aspx and enter "Chicago" in the city field and hit search. You'll get a page of 20 items, but 401 pages total.
I'd like to be able to display all 8000+ results on one page instead of having them broke up by 20. Additionally, if possible, I'd like to export that to an Excel document.
I tried to do some Googling, but I had no idea where to begin that search.
Am I in over my head, or could this be a weekend project?
Sure... not sure if I can help, but I've dabbled in octave.Is MATLAB discussed here? I'm having trouble trying to write working code to create an iteration.
You're in over your head, but with some research you could eventually get it done.
It would require you to learn how to connect to a database and query it, how to write a Chrome extension, how to interact with the data you receive from the database, how to display that data, and how to export that data to an Excel friendly document.
Off the top of my head I would assume it would involve Javascript + HTML + whatever database language language the information is using. (probably a form of SQL)
I don't really see why you'd need a database for that. I can't access that page but I assume it's some sort of form that you have to fill out and then spits out some data, probably in a table. You probably can't query their database directly (unless they expose some public API which would make it easier). The issue I'm seeing is that the data is probably not completely contained one one page, you'd have to click through all of the pages to to get all the data and I'm not sure if you can do that with plain Javascript.
Personally I'd probably not use a Chrome extension to do this but some sort of web scraper, which is basically a library or a program that simulates a web browser and can collect data from a web page and process it in some form. You can read more about it here. The basic process would be to open the website, fill out the form, click the submit button and then collect the data from all of the pages into one long array of objects that you can then export into a CSV file to open it with Excel.
Yes, definitely. I'd recommend to start with something like Learn Python The Hard Way and then look at this library for instance.You're right. I was thinking about the process from the wrong way.
This advice would be better to follow, but I still feel this is fairly involved for a beginner weekend project.